@zeniai/web-cockpit-ui 1.14.99-qa → 1.15.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-DYlcHRQe-lxtPXqrl.js +21 -0
- package/dist/assets/{AIPerformancePage-4v4Fkm9f-DUcsUVHO.js → AIPerformancePage-DpXZ7sco-B8d5E6QI.js} +107 -107
- package/dist/assets/AccountInfoPage-BEOrrVQS-L5aJOIaA.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-wIa9sgDk.js → AccountInfoPageContent-BJkLJK6O-CmMcM25y.js} +23 -23
- package/dist/assets/AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-CVe_BGr2.js → AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js} +12 -12
- package/dist/assets/{AccountRow-BM3xLbeh-C9nPMFva.js → AccountRow-B0gU16A_-Ks_Pft1z.js} +25 -25
- package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-DDt_Zemi.js → AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js} +28 -28
- package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +6 -0
- package/dist/assets/{AddToWalletPage-OJBvAKUj-XVOfQuES.js → AddToWalletPage-DNPLnpTq-CxRyEwld.js} +23 -23
- package/dist/assets/{AgingReportsPage-n-UKn3Ei-CjF9jy-F.js → AgingReportsPage-Bff4u7T1-DOBvEqCj.js} +10 -10
- package/dist/assets/{AllUserItems-BsvKEVcx-vYDMuwob.js → AllUserItems-D8zdAu_1-C-zZqgmo.js} +10 -10
- package/dist/assets/ApAgingDetailPage-2NsAj3gO-DfogwLMb.js +46 -0
- package/dist/assets/{AppBasePage-DoCF494Z-BRxN6hsW.js → AppBasePage-Uyk9GOud-D7f8hWuo.js} +8 -8
- package/dist/assets/{AppDrawerContent-DM1t0oLS--F7ZXSDX.js → AppDrawerContent-RX7rx40V-DlBxQF_L.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-NDfqC6oW.js → ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js} +6 -6
- package/dist/assets/{ArAgingChart-CsFDVdeO-_8aNigLw.js → ArAgingChart-BxTkvrC9-BgC5YBPR.js} +4 -4
- package/dist/assets/ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js +46 -0
- package/dist/assets/{AttachmentView-B0d42oAf-Dwm5X4k6.js → AttachmentView-zHGhIkWo-C64qXCAp.js} +6 -6
- package/dist/assets/{BankAccountSection-Bgdk93V0-Chzpiy1x.js → BankAccountSection-HRSyjIxV-CV6PAaFg.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-DMRmF2yM-BdJjldMh.js → BankAccountWarningSection-CNusQFRM-4Y94-VD5.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-BN6MQ3Wf.js → BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js} +22 -22
- package/dist/assets/BillDetailPage-CgCMZFw1-pAtGUG0W.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js +241 -0
- package/dist/assets/BillPayPromoPage-DOEbuNgH-BglT_61W.js +84 -0
- package/dist/assets/{BillPaySetUpPage-DRCjyEfB-CPwXijdB.js → BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js} +4 -4
- package/dist/assets/BillingSettingsPage-ZupDcNHz-B6O6l_7B.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-CpoIPy5L.js → BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js} +1 -1
- package/dist/assets/{BoxItem-WOrvBzns-CXp5-zCF.js → BoxItem-42doFhpg-BDC_fDqi.js} +5 -5
- package/dist/assets/BusinessVerificationPage-De9zCAm7-geq4Sk8A.js +138 -0
- package/dist/assets/CardNumberSubText-C6jdBRC2-YbNbzp0H.js +21 -0
- package/dist/assets/{CashbackDetailPage-D-kXy6LW-CVfqswmT.js → CashbackDetailPage-B2drd1Nz-BAvHe1xx.js} +27 -27
- package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-nORZSqLY.js → ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js} +254 -254
- package/dist/assets/ChargeCardListPage-DlI8ZfB0-CMLNFzih.js +412 -0
- package/dist/assets/{ChargeCardListTable-EGkwcy7i-L1WMinl5.js → ChargeCardListTable-CooASbVZ-CSvbg9sF.js} +71 -71
- package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +553 -0
- package/dist/assets/{ChargeCardPromoPage-BwqrXrY--Cc4CzTaW.js → ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js} +38 -38
- package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-Dp9uDn2Z.js → ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-jXnZgPWF.js → ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js} +9 -9
- package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-BOtwhkHh.js → CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js} +18 -18
- package/dist/assets/{CollapsableReportTable-xkNXkjfh-fTkLh_hx.js → CollapsableReportTable-DLOi0feI-SZFbl9NV.js} +41 -41
- package/dist/assets/CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js +330 -0
- package/dist/assets/{CompanyPassportCard-BOxM716U-C-8IS15c.js → CompanyPassportCard-B8PLT6MG-BUc5HZU7.js} +7 -7
- package/dist/assets/CompanyPassportPage-CQZPgrNF-KJN_fT4M.js +347 -0
- package/dist/assets/{CompleteProfile-BjGSPASa-BJc80ypG.js → CompleteProfile-fNSWTbef-pSYliRNx.js} +3 -3
- package/dist/assets/ConfettiBurst-B6ej_xoO-BzptsIBR.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-BNAzVQDc.js → CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js} +17 -17
- package/dist/assets/CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js +227 -0
- package/dist/assets/{CurrencySelectField-AjAWhg6e-XBhQHgG3.js → CurrencySelectField-DsZTOj_T-DmNXNRTP.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-BJhw-PvI-DiGnLxj5.js → CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js} +29 -29
- package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-mvqO2b3D.js → CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js +66 -0
- package/dist/assets/CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +202 -0
- package/dist/assets/{Dashboard-_o0Ftdv8-CDqjjP2e.js → Dashboard-cbXIPzMy-DLCpLMr4.js} +21 -21
- package/dist/assets/{DashboardReportPage-Cu5wqWkj-DFUvXwPl.js → DashboardReportPage-Pc0G2Tok-BRmpg3ok.js} +28 -28
- package/dist/assets/DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-DMX2MMgq.js → DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-9RjTUtB-.js → DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-FGdEilUB--8ykG62O.js → DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js} +1 -1
- package/dist/assets/{DownloadOverlay-c57lEf_V-bd6stznG.js → DownloadOverlay-C7r6PAam-BvXPoC9j.js} +25 -25
- package/dist/assets/{DrawerPage-inbhWwND-T1v5rbMQ.js → DrawerPage-BEV7nWrL-CqfdeYhP.js} +18 -18
- package/dist/assets/EditPeoplePage-BnQqStEx-Cbm0H-hi.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js +865 -0
- package/dist/assets/{EntityDetailPage-DbTiF9Hs-BDSzDuf0.js → EntityDetailPage-BaKoO9FG-BDiZrnyD.js} +2 -2
- package/dist/assets/{EntitySummarySection-CHgrPo86-DCLGdQrf.js → EntitySummarySection-C361-4tS-UJPRLBoI.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-PT7ngRRs.js → ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js} +30 -30
- package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-C6AraAtl.js → ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js} +58 -58
- package/dist/assets/{ExpressPayPage-CIp_R6ZQ-CBlwPWei.js → ExpressPayPage-CDowSjHC-DolGHHJS.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-qsUO3mUu-Rwf8tTxB.js → FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js} +2 -2
- package/dist/assets/{FollowStepsSection-ebmR-eLP-DoIxQlf0.js → FollowStepsSection-h449vQkQ-BXixJ0VK.js} +8 -8
- package/dist/assets/{GlobalReviewListPage-9V-xoqvs-VS2DUZKK.js → GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js} +18 -18
- package/dist/assets/{InformationCardStack-DnB7TmOk-Cw6GDJcT.js → InformationCardStack-xhdujEcL-COTShhF9.js} +9 -9
- package/dist/assets/{InsightsCardStack-BBczCYEz-c7iZPQzY.js → InsightsCardStack-zRynyTFj-CqnhwImM.js} +9 -9
- package/dist/assets/InsightsSection-C4fMfxQ4-BGGNiljS.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-Cu1qCaSF.js → IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-FMNGU2_9.js → InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js} +22 -22
- package/dist/assets/InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js +65 -0
- package/dist/assets/{InviteFormPage-XsnZcAvb-C7pXISKZ.js → InviteFormPage-C7fxnyMS-ChsV2A2J.js} +37 -37
- package/dist/assets/{InvitePageListView-HfsehyxK-B0_zaBFS.js → InvitePageListView-ktOXziSw-ClMd1Rgx.js} +67 -67
- package/dist/assets/InvitePeoplePage-C_4adNch-DPbyAjsn.js +12 -0
- package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-CRiQw4ob.js → InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-xbfFhV0O-CwB3p9IN.js → IssueChargeCardPage-CdV757XH-B0b8pyku.js} +19 -19
- package/dist/assets/{LabeledAddressValue-CB_KH7v5-CTa2kSF8.js → LabeledAddressValue-Ce_wDml5-CoYtFscl.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-CaMqjCgZ.js → LabeledAddressValueField-BrYbXck--8qVwdGMU.js} +5 -5
- package/dist/assets/LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js +16 -0
- package/dist/assets/LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js +234 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-BMOfzbkc.js → LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js} +4 -4
- package/dist/assets/LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-GLWqacX3.js → LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js} +8 -8
- package/dist/assets/LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js +220 -0
- package/dist/assets/{LabeledText-yhm8qxrA-CAV7zkMz.js → LabeledText-D7eLbH80-Bs-kfAE-.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DaFuaU2w.js → LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js} +25 -25
- package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-CfX5Nizk.js → LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js} +28 -28
- package/dist/assets/LinkJETransactionPage-DicS5kKg-DOb356xm.js +98 -0
- package/dist/assets/{LockCardPage-DaVzuRMw-WfXdd7GO.js → LockCardPage-DRYg_fxU-CFGUEJ0X.js} +76 -76
- package/dist/assets/{LowBalancePopup-Dd9HLWlh-CzozjvI8.js → LowBalancePopup-BJfagMN7-DFWlKz1e.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-Co-KdioC.js → MagicLinkSuccessPage-BRWymdWH-suMYBps1.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-Bx92291D-Cip3RyJg.js → MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js} +4 -4
- package/dist/assets/{MailingDetailsSection-D-tnK244-iwYcV_GF.js → MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js} +1 -1
- package/dist/assets/{Menu-0YHUdU0n-ykadCuU8.js → Menu-C9v-W9TY-DRVyGpH4.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-CMJSje5O.js → MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js} +5 -5
- package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-lkcW7KY-.js → MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-ClGN_Ywf.js → MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js} +9 -9
- package/dist/assets/{NavBarWithPicker-aXn2QYh1-EJKdDhD-.js → NavBarWithPicker-Cv7tOmjd-BXBZWsng.js} +5 -5
- package/dist/assets/{NavigationArrow-JLUXaIrz-DTB6lnvW.js → NavigationArrow-DAs7ECFZ-rFu_aZmo.js} +8 -8
- package/dist/assets/{NavigationDots-B0_dDbgu-C1OUFooh.js → NavigationDots-DISWi4Mq-BdTnuTup.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-B_019EtP-DQaHcEZD.js → NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js} +7 -7
- package/dist/assets/{NoDataChart-DLKHNXD4-CZveDZyz.js → NoDataChart-gfqauMvY-CAbYCdyQ.js} +1 -1
- package/dist/assets/NoDataTable-C1_gqVi7-D4ANXF0d.js +8 -0
- package/dist/assets/{NotFoundPage-BEya4LS2-CeoKWJuY.js → NotFoundPage-CdWhiWjz-DDjAX_Ng.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-C9SjRKCu-F18qKnKq.js → NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js} +23 -23
- package/dist/assets/{NotificationsListConfig-OCeJNw1G-DGmqr_WZ.js → NotificationsListConfig-B-g9kb6x-CND-RON9.js} +1 -1
- package/dist/assets/{NotificationsPage-FJHx_WBG-DuB0DLNl.js → NotificationsPage-jxpX3iRG-UGS5Y_9i.js} +29 -29
- package/dist/assets/{OpExByVendorPage-Dxk68R6U-BqVDaMyS.js → OpExByVendorPage-B13tAq03-Dd8cq0hz.js} +24 -24
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-j7YCqph9.js → OverlayContainerPage-Daz3A7cI-DlMlal7_.js} +1 -1
- package/dist/assets/PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js +107 -0
- package/dist/assets/PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js +107 -0
- package/dist/assets/{PeoplePage-DN5VtG7Q-nYdb8W0g.js → PeoplePage-Du_TRX4h-C2Rmmn5d.js} +18 -18
- package/dist/assets/Preview-CSeZ_uBx.js +1 -0
- package/dist/assets/{ProductsCarousel-6gthLCkf-Csrsm4r_.js → ProductsCarousel-y6q9BbqK-B9m9tH0o.js} +12 -12
- package/dist/assets/{PromoBaseCards-CzPzj69A-BfaxdPQK.js → PromoBaseCards-CLQMN7aT-BxeQG0rP.js} +8 -8
- package/dist/assets/{QBOConnectionDialog-BFy0lMZd-C1tu8oqS.js → QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js} +6 -6
- package/dist/assets/{QBOSetupSection-DcLYyQ5m-D0DkS0no.js → QBOSetupSection-D--nxfIh-Difre144.js} +16 -16
- package/dist/assets/ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js +32 -0
- package/dist/assets/ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js +243 -0
- package/dist/assets/ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-MweW-4DO-DmsMevam.js → ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-2g5gata7.js → ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js} +13 -13
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-KY60bbA9.js → ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js} +1 -1
- package/dist/assets/{ReloadCard-9KpQCrce-DSFKeIcW.js → ReloadCard-BT0lSFUP-CF34SUO7.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BPliEsuo-C5akejbK.js → ReportTableViewSelector-rl6XGWA_-CSxPHelL.js} +5 -5
- package/dist/assets/{ReportsPage-h2DAaQfK-rm8V3hZY.js → ReportsPage-DV0bbi_D-1o0LJL4r.js} +10 -10
- package/dist/assets/{RevenueChart-DY2s_upY-BteR_6zS.js → RevenueChart-CxvHfkxr-BmSB0A7U.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-BiYxRnvA-BdMJ-sdU.js → ReviewDetailsPage-CX2XB44j-BHiKofo4.js} +52 -52
- package/dist/assets/{ReviewOverlay-BvPN7IKD-BXG7ADPa.js → ReviewOverlay-DdOo3pcK-BVp3d9bK.js} +9 -9
- package/dist/assets/RoleWithToolTip-C08wfnGb-CFjb8VCB.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-KB7qB_BG.js → ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-DebosLND-BrNQar2A.js → ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-QwBSHiHh.js → ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js} +50 -50
- package/dist/assets/ScreenRoutes-BOb1-zin.js +201 -0
- package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-BE16TcfB.js → SetUpAccountSection-Clz60vjw-CDcwloM0.js} +15 -15
- package/dist/assets/SignIn-B79R5ayU-BtVW5pl0.js +491 -0
- package/dist/assets/SignInScreen-CsaRmLqD.js +1 -0
- package/dist/assets/SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js +785 -0
- package/dist/assets/SpendManagementSection-mtTZeiX8-DB_R_dFU.js +246 -0
- package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +31 -0
- package/dist/assets/{StatementsPage-DVR5LhTi-CK4DNN1F.js → StatementsPage-DgoXqABR-NsGiWIFr.js} +3 -3
- package/dist/assets/{StatusSwitcher-Cy5ITFgi-WNbBQL_H.js → StatusSwitcher-DRDFuzoj-DFWyQSIu.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DhsES2OW-Ba9WstlT.js → SubTabSwitcher-Bj1N3zLn-DocBm2NX.js} +3 -3
- package/dist/assets/{SummaryCard-Byv4Hw8Q-Cya4iYRL.js → SummaryCard-BNrPt21W-z-I2nOL_.js} +1 -1
- package/dist/assets/{TaskManagementPage-CVXMOPf2-Cj3it9IL.js → TaskManagementPage-svW7FNT3-CdR83JXD.js} +27 -27
- package/dist/assets/{TimeRangeSwitcher-jct2_5PE-jdBQXqjL.js → TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js} +4 -4
- package/dist/assets/{TimeframeSwitcher-BK-qliOX-D6zGRAVk.js → TimeframeSwitcher-234cbGUX-GrV_gRdd.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js +31 -0
- package/dist/assets/{TopExCard-o4Q3ze1b-DaQrihbx.js → TopExCard-DFm0V6Sa-CuS6D-g2.js} +7 -7
- package/dist/assets/{TopExDetailPage-BsCwwwDi-CoRmHcau.js → TopExDetailPage-B4UamIS--DvTevd6J.js} +11 -11
- package/dist/assets/{TransactionDetailPage-rpCG65yC-pn0dPq-f.js → TransactionDetailPage-BiGPVM2O-BIqR8D1A.js} +23 -23
- package/dist/assets/{TransactionList-YI4oZaim-BeW25N4W.js → TransactionList-BQ2dvALf-DExPb7_Y.js} +15 -15
- package/dist/assets/{TransactionListBig-D_Jw9Ip2-DUthp3Uu.js → TransactionListBig-Ca4yYTqY-DpBtFr0L.js} +10 -10
- package/dist/assets/{TransactionListPage-B2yWm7eA-DoyaJLS9.js → TransactionListPage-CaSfmS5A-B8TNgEwP.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-Dr5C4-7q-LcfF0abM.js → TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js} +4 -4
- package/dist/assets/{TransferDrawerPage-BnEVH7Mc-Cc2Z_6P5.js → TransferDrawerPage-5IgzdfVN-CuTPVgyu.js} +41 -41
- package/dist/assets/{TreasuryOverviewPage-C927Rdkg-mfpMLnDZ.js → TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js} +43 -43
- package/dist/assets/{TreasuryPromoPage-C6D3bF2f-CzyRKa5_.js → TreasuryPromoPage-DQabp_BI-lYWtZagK.js} +15 -15
- package/dist/assets/TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-CskcJOaK.js → TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js} +3 -3
- package/dist/assets/{TrendChart-BI4Tz813-PlKdXGQX.js → TrendChart-DLlQzxzM-PPRPEN_l.js} +4 -4
- package/dist/assets/{TrendWithTransactions-BicIDSlC-Bhg4sKIS.js → TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-BfCTTems.js → UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js} +9 -9
- package/dist/assets/{UnitIntegrationPage-CZUyjeh5-3UKmMNlz.js → UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js} +10 -10
- package/dist/assets/{UploadAdditionalDocumentOverlay-4AWDV_HK-fyZHHxgB.js → UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js} +8 -8
- package/dist/assets/{Vendor2FAPopup-C_PmEAQ7-CN2t48ys.js → Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +1 -0
- package/dist/assets/{VendorDetailPage-CLFKkF8I-C1IdXHu1.js → VendorDetailPage-DcpigP-V-CLpuuI3V.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-B1pRF1hT.js → VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js} +17 -17
- package/dist/assets/{VendorFirstReviewPage-C6MnbIan-SeG_ubbN.js → VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js} +61 -61
- package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-r_6eJH9r.js → VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js} +20 -20
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +1 -0
- package/dist/assets/{VendorsAccountsSection-CVh1n81R-BiCjwBhE.js → VendorsAccountsSection-V7IwNhkN-D-eiPu30.js} +4 -4
- package/dist/assets/{VerifyDevice-BHocExfO-DjIMPNA8.js → VerifyDevice-Dc3oeJbw-D5d8Wn7A.js} +7 -7
- package/dist/assets/{VideoPlayer-9rYRtSLf-BjvT2OMT.js → VideoPlayer-XU1YwohK-BaDXYiVP.js} +2 -2
- package/dist/assets/{VideoPopup-D1o92dj6-CD3Smh1W.js → VideoPopup-BKLcIVcV-C8tsI7gn.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-CzufXgaN-BMm0pY72.js → WarningsDrawerPage-DE6hNSem-DTjl6BDC.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-Ge7VgWuS.js → ZeniAccountDetailPage-B3txxml4-BrnXOri_.js} +38 -38
- package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-DvSsusPJ.js → ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js} +17 -17
- package/dist/assets/ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-D5lVCJaq.js → ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js} +20 -20
- package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP-C1Wgqq9R.js → ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js} +1 -1
- package/dist/assets/{ZeniCopyright-CztmWsFm-Bq1pkV4V.js → ZeniCopyright-DqbjGQWk-D3uyyuTN.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-bFllmPoH.js → ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bk9iUnjH.js → add-to-wallet-DgdBD8_G-CF63trjm.js} +1 -1
- package/dist/assets/{analytics-BUkj7jvZ.js → analytics-D0z7Cz17.js} +1 -1
- package/dist/assets/{analyticsHelper-D4lKCWjQ-DwDJBUY0.js → analyticsHelper-C2PAija--B2XRbUD9.js} +1 -1
- package/dist/assets/{analyticsHelper-B4bPMH3g.js → analyticsHelper-D1UvETVa.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-D6-JBGih.js → arrow-south-east-round-PEovUgvH-Cun1Cxd1.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DyrE-vz9.js → auto-transfer-rule-mbafm5D3-DPk-N0wE.js} +1 -1
- package/dist/assets/{chartTypes-BPPSjkhb-qpDZo76P.js → chartTypes-B9jQTJLQ-B-uICCus.js} +1 -1
- package/dist/assets/{commonDimensions-Ds75pRzR-CknYEsxH.js → commonDimensions-BgvFMAEM-jw0M4GDE.js} +1 -1
- package/dist/assets/commonTypes-PtDfk70--ByVvU-Tm.js +1 -0
- package/dist/assets/{constants-e1joQwxq.js → constants-DleDZ7Hr.js} +1 -1
- package/dist/assets/{core-DSEA1DeO.js → core-9PMMelIA.js} +2 -2
- package/dist/assets/{dash.all.min-ErqzSjBm.js → dash.all.min-ClWxXI22.js} +1 -1
- package/dist/assets/{detailCommon-DdZdfmYT-BGt3SMo9.js → detailCommon-BjRXEZFj-BMuJy_GS.js} +7 -7
- package/dist/assets/downloadPdf-ZSABdzxr-CSS_LmUU.js +1 -0
- package/dist/assets/empty-Bp9uyDV_.js +1 -0
- package/dist/assets/{empty-C0VR_6w-.js → empty-D5Zf29Ub.js} +1 -1
- package/dist/assets/epic-Di7g1fbQ.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CpWMLhiV.js → gift-box-Cmt9OgIZ-m0hJlqL5.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-Ck-UlMHZ.js → graphic-no-data-l-DU4J8fDt-cg6FAACa.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B0NcDeLD.js → graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BKg5Zl7K.js → handshake-BPg58FML-DFhtOw8z.js} +1 -1
- package/dist/assets/{index-CrF-DUPb.js → index-0WIxY_w_.js} +1 -1
- package/dist/assets/{index-CzZbMptt.js → index-4hZvJwkO.js} +1 -1
- package/dist/assets/{index-L_AK35Oo.js → index-BLOmj_st.js} +1 -1
- package/dist/assets/{index-DKQM71dS.js → index-Bs2B-MQ4.js} +4523 -4511
- package/dist/assets/{empty-BC8tDj-C.js → index-CbXRL6aP.js} +1 -1
- package/dist/assets/index-DNxMom6d.js +1 -0
- package/dist/assets/{index-BpWgzcsf.js → index-DW6fMwk4.js} +1 -1
- package/dist/assets/{lexical-D8ee32sQ.js → lexical-CaQwXIc3.js} +1 -1
- package/dist/assets/{liveblocks-Bth6iRPZ.js → liveblocks-48Yy2aTy.js} +1 -1
- package/dist/assets/{lottie-BcjGrMJ9.js → lottie-ChwWMuYN.js} +2 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-rrJBbsC8--SbDIUwj.js → mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DfQk4Tsr-UXPU4xby.js → mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-C_x9HXWn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js} +1 -1
- package/dist/assets/{mui-Bm7nuuAo.js → mui-snKYaegN.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Cdu8-KMO.js → page-detail-CWX5S47F-D1nl1r9M.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Bl0MojvA.js → radio-default-CiSgisfh-BY9nqKUM.js} +1 -1
- package/dist/assets/{react-nT9GYl0Y.js → react-B2deW7HO.js} +1 -1
- package/dist/assets/{react-3iEIv6n1.js → react-BNn_K56n.js} +2 -2
- package/dist/assets/{react-BN52OPO2.js → react-BddMC_36.js} +3 -3
- package/dist/assets/{react-CkNFk2ew.js → react-BpEW9tPq.js} +2 -2
- package/dist/assets/{react-jcR3ufXW.js → react-C-MrqhIX.js} +2 -2
- package/dist/assets/{react-D6HVaxcq.js → react-CiQEdtzT.js} +2 -2
- package/dist/assets/{react-CybtaVCD.js → react-DHTHtXgj.js} +1 -1
- package/dist/assets/{react-Cq1uO9gu.js → react-o70ZlKb0.js} +1 -1
- package/dist/assets/{recharts-sqzNidKh.js → recharts-DGmpNqLb.js} +1 -1
- package/dist/assets/{sentry-3Q4-6z2o.js → sentry-gm2R3TtK.js} +2 -2
- package/dist/assets/{shield-DOlUxcFf-BkG4GSM2.js → shield-DOlUxcFf-DNx-Nq5U.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +1 -0
- package/dist/assets/toChartData-CVxc3i6E-Jb1kbIeZ.js +1 -0
- package/dist/assets/{uploadAttachment-B4ddYCCL-Cj9tfjtm.js → uploadAttachment-CBATb9_e-Bf8RMkbX.js} +22 -22
- package/dist/assets/{uploadReceipts-CPw64UYa-BgpQylmh.js → uploadReceipts-CPw64UYa-DwtdWb2a.js} +1 -1
- package/dist/assets/{url-Dvga04s1.js → url-B3spPAaB.js} +1 -1
- package/dist/assets/{url-Cenve78-.js → url-CsktLD4A.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-usvVYHad.js → useLongPress-GCK2COYQ-5GfLl0ml.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ByjIwRIy.js → usp-line-BBd1wKwW-DO5-Shw0.js} +1 -1
- package/dist/assets/{utils-gMT26ExF.js → utils-C7Aiy3iw.js} +1 -1
- package/dist/assets/{zeni-epic-state-1LR8oCdb.js → zeni-epic-state-D2RxwWrl.js} +32 -32
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-BRWOdhMx-B5vqTcQC.js +0 -21
- package/dist/assets/AccountInfoPage-Ca_vKG58-CmolE_M0.js +0 -18
- package/dist/assets/AccountLockedInfoModal-CEk5d9hq--KHKaMTx.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-DfOyebHX-tEW9jx2i.js +0 -6
- package/dist/assets/ApAgingDetailPage-Duu2uAEr-CHYiB4_n.js +0 -46
- package/dist/assets/ArAgingDetailPage-CaOr6vAU-DExwExvL.js +0 -46
- package/dist/assets/BillDetailPage-BG7FhHEq-BJc5bg2f.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-BxxZuroQ.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-D3Z89838.js +0 -235
- package/dist/assets/BillPayPromoPage-aGKOv8Ur-DyPqmebu.js +0 -84
- package/dist/assets/BillingSettingsPage-CdYb74V7-C_ZbNI2K.js +0 -44
- package/dist/assets/BusinessVerificationPage-CbqJIVpz-D5Pnrd4V.js +0 -138
- package/dist/assets/CardNumberSubText-DBOH0_yP-NStUUB4L.js +0 -21
- package/dist/assets/ChargeCardListPage-130ILwkr-Bn2UNOpv.js +0 -412
- package/dist/assets/CompanyOfficerDetailsSection-BtUBatbQ-BgEQYkh1.js +0 -260
- package/dist/assets/CompanyPassportPage-DzE7sm8S-F-LnGTlT.js +0 -574
- package/dist/assets/ConfettiBurst-1rYKpbAj-7_ntB1dO.js +0 -1
- package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-DWTS2vWG.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-FKs-62hv.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-eoICSPrF.js +0 -66
- package/dist/assets/CustomerOnboardingPage-CvN9Jrdy-TK7lm7QW.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-DLYrpbnI.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-B8QX9JeN.js +0 -12
- package/dist/assets/EditPeoplePage-DJthuIP4-DFiVe4fX.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-oGYtPUJx.js +0 -865
- package/dist/assets/InsightsSection-BTXj5WUe-Dnd7T8n1.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-kIajgPZt-BCl1VoBc.js +0 -292
- package/dist/assets/InvitePeoplePage-DrBtwpMH-jVWIt_-k.js +0 -12
- package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-FQPDCWhk.js +0 -16
- package/dist/assets/LabeledDocumentField-C73vQNgq-ClbLbe81.js +0 -41
- package/dist/assets/LinkJETransactionPage-C0onrP5t-qiX2Dqs6.js +0 -98
- package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-DW1n8bX2.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-DHDPluRy.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-BcWdztI5.js +0 -1
- package/dist/assets/NoDataTable-BMD2qygC-D3zLqMv-.js +0 -8
- package/dist/assets/PandLWithForecastPage-Bu49FbWD-B1CQW0Ds.js +0 -107
- package/dist/assets/PaymentAccountSetupBillingAddressSection-s9EEHxoG-4TpDZPEe.js +0 -107
- package/dist/assets/Preview-a-JlTlEm.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DfP6S3rb.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-BDz7EXy3.js +0 -237
- package/dist/assets/ReimbursementDetailPage-DatcF8rt-CXM71NE4.js +0 -314
- package/dist/assets/RoleWithToolTip-aW95rpRe-BrXKfiz8.js +0 -22
- package/dist/assets/ScreenRoutes-C3DV_-a8.js +0 -201
- package/dist/assets/SignIn-DQBJB5ad-D2MMlFVA.js +0 -448
- package/dist/assets/SignInScreen-B7P5eb-y.js +0 -1
- package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-BO9QxuYF.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-BQjpDK4V.js +0 -754
- package/dist/assets/SpendManagementSection-Ci2yOCJ9-HulA5gL6.js +0 -230
- package/dist/assets/StatementItem-hcBoe79o-Du93pBl-.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-Do0VDrMC.js +0 -31
- package/dist/assets/TreasuryStatementsPage-BE54gWl6-BmltGAJ9.js +0 -58
- package/dist/assets/VendorACHDetailsPage-DMMoCytX-XMV6oQdd.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-1eo_KTtv.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-Bp91Qzlg.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-sO3GACzv.js +0 -14
- package/dist/assets/downloadPdf-B8UMaJCC-BFUHIY4h.js +0 -1
- package/dist/assets/epic-ChbeUbgS.js +0 -2
- package/dist/assets/index-BBszPXVa.js +0 -1
- package/dist/assets/index-BjHrSGfO.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-C9B3pLm1.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CWvamMX2-BXiUP_C8.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-CsmN8zhY.js +0 -1
- package/dist/assets/toCOABalancesWithID-CkjRB0sJ-CHosyNVt.js +0 -1
- package/dist/assets/toChartData-CMi2WgAy-C7CbsXKi.js +0 -1
- package/dist/assets/transaction-placeholder-CpOwZAMG-D5UmMc1z.js +0 -1
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import{DO as Jf,DP as qt,DQ as Kf,iN as ot,hv as xl,iP as Ye,hs as Xf,hz as ql,DR as Ca,hB as Qf,hC as eh,DS as Vt,DT as Lt,h0 as th,DU as jr,DV as ea,cO as rh,f2 as ta,e$ as Ir,f7 as rt,f5 as nh,DW as Ll,DX as kl,hQ as ih,hN as oh,DY as ah,h$ as sh,hW as Pa,hT as uh,hI as ch,DZ as lh,dJ as fh,cU as hh,i$ as Nl,D_ as dh,bL as Or,hF as ja,hK as ph,oL as Dl,iO as xr,D$ as Ne,ib as ra,E0 as mh,j5 as gh,B as Re,E1 as na,E2 as yh,gZ as vh,E3 as bh,E4 as Ml,E5 as wh,nj as xa,mQ as Eh,E6 as Sh,mW as Hr,E7 as _h,mY as Rh,E8 as Ze,mN as Oh,cB as Ih,iS as Fl,iT as Ul,iR as ia,iQ as oa,iU as Th,E9 as Ah,nm as Ch,Ea as Ph,n3 as jh,ng as xh,Eb as qh,n7 as Lh,Ec as kh,Ed as St,Ee as aa,Ef as Nh,Eg as Dh,lQ as Mh,lW as Bl,Eh as $l,gu as Fh,CU as Vl,Ei as Uh,CO as Bh,Ej as $h,Ek as Vh,lZ as Gh,El as zh,CZ as Hh,CN as Zh,qg as Gl,Em as Zr,En as zl,A0 as sa,zO as Wh,A3 as Hl,zR as Yh,Eo as Jh,zW as Kh,zI as Xh,zL as Qh,Ep as ed,A7 as td,zZ as rd,c4 as nd,bd as id,Eq as od,Er as lt,Es as ad,Et as sd,Eu as ud,i3 as Jo,ba as cd}from"./zeni-epic-state-1LR8oCdb.js";import{j as N}from"./liveblocks-Bth6iRPZ.js";import{a as K,p as X,d as Zl,c as Wl,g as ld}from"./sentry-3Q4-6z2o.js";import{d as ht,q as qr,e as pe,z as be,f as fd,W as hd,y as Pe,g as Lr,i as dd,N as Je,F as kt,j as dt,k as at,m as kr,o as tt,r as pd,X as md,R as nt,t as ua,v as it,Z as gd,Y as yd,c as Wr,A as vd,w as Yl,K as bd,x as Jl,O as Kl,C as Ko,E as wd,S as Ed,H as Sd,G as Xl,I as _d,J as Rd,P as Od,Q as Id,T as Td,U as Ad,_ as Cd,$ as Pd,a0 as jd,a1 as xd,a2 as qd,a3 as Ld,a4 as kd}from"./index-DKQM71dS.js";import{f as Nd}from"./analyticsHelper-B4bPMH3g.js";import{i as me,m as Ee,n as je,o as Dd,g as re,h as ge,N as Ct,R as Ve,k as se,u as ca,j as Xo}from"./core-DSEA1DeO.js";import{D as Nr,n as Ie,S as pt}from"./mui-Bm7nuuAo.js";import{a as ve,b as Md,c as Fd,d as Ud,e as la,f as Bd,g as $d,h as Vd,i as mt,j as Gd,k as jt,l as Dr,m as zd,n as Nt,o as Hd}from"./utils-gMT26ExF.js";import{r as fa}from"./empty-C0VR_6w-.js";import{r as Zd,a as Wd,b as Yd,c as Jd}from"./constants-e1joQwxq.js";import{r as Dt,a as Kd}from"./index-CzZbMptt.js";import{r as Xd}from"./index-BjHrSGfO.js";import"./recharts-sqzNidKh.js";import"./lottie-BcjGrMJ9.js";import"./analytics-BUkj7jvZ.js";import"./lexical-D8ee32sQ.js";import"./url-Dvga04s1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c27c24f0-c524-4be5-a0c8-1a98cb1be497",e._sentryDebugIdIdentifier="sentry-dbid-c27c24f0-c524-4be5-a0c8-1a98cb1be497")}catch{}})();const Qd={overlayWidth:new Pe(100,100,50)},{common:{strings:qa}}=kt.getLocalizedStrings();function ep(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(Vt({uiState:{filterText:a}}))},onFiltersChange:(o,a)=>{a.categories!=null&&a.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:a.categories.map(i=>i.matchingOperator).join(qa.comma),logic:a.categoryCombinationOperator,parameter:a.categories.map(i=>i.field).join(qa.comma)}}),e(Vt({uiState:{filters:a}}))}}},healthPageActions:{onRowClick:o=>{e(ql(o))},onColumnSortConfigChanged:(o,a)=>{e(Vt({uiState:{sortKey:o,sortOrder:a}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(Vt({uiState:{filters:o}}))}}}}function tp(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const rp=ge(tp,ep)(dd);function Yr({isDrawerOpen:e}){const n=me(),o=Ee(),a=ht(),i=qr(),{companyId:t}=je(),[r,s]=Dd(),[d,l]=K.useState(!1),h=re(b=>Jf(b)),f=re(b=>qt(b)),{additionalChurnFactors:c}=re(b=>Kf(b)),{selectedCompanyDetail:w,selectedCompanyId:p,localFormDataAndStatusByCompanyId:y}=h,m=re(b=>b.companyViewState.zeniUsers.fetchState),u=re(b=>b.companyHealthMetricConfigViewState);if(K.useEffect(()=>{const b=g=>g==="Not-Started"||g==="Error";h.fetchState==="Completed"?o(ot(!1)):b(h.fetchState)&&(o(xl()),b(m)&&o(Ye()),b(u.fetchState)&&o(Xf()))},[h.fetchState,u.fetchState]),K.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(ql(t)),w!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[h.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||p!=null&&w!=null?N.jsx(Nr,{anchor:"right",open:p!=null,PaperProps:{style:{width:Qd.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(Ca()),children:N.jsx(fd,{roomId:`cockpit_${p}`,autoConnect:!0,children:N.jsx(hd,{onSaveClick:()=>{p!=null&&o(eh(p))},onSaveChangesToLocalStore:b=>{h.selectedCompanyId!=null&&o(Qf({companyId:h.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(Ca()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:c})})}):null,N.jsx(rp,{healthView:h,managementView:f,navigate:n,mixpanelHMUrl:Lr.mixpanelHMUrl})]})}const Ql=(e,n)=>{const o=[...e??[]];return o.push(n),o},np=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ip=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Ct,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function op(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Yr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Yr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Yr,{})})})]})}const ap={drawerLeftMargin:new Pe(0,0,240)};function Mt(e){const{isOpen:n,drawerLeftMargin:o,children:a,onClose:i}=e,t=qr(),r=o?.valuePx(t)??ap.drawerLeftMargin.valuePx(t),s=ht();return N.jsx(Nr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:a})}const sp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(up,{children:N.jsx(kr,{size:"ExtraLarge",start:!0})}):null,up=Ie.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${tt.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`;function cp(e,n){const{loggedInUser:o,companyId:a,isMonthEnd:i,allUsers:t,isAuditScoreCompleted:r}=n,d=Lt(e).companies.find(f=>f.companyId===a),l=jr(e),h=a!=null?ea(a,e,o):null;return{allUsers:t,isAuditScoreCompleted:r,reviewCompanyView:d,loggedInUser:o,auditRuleGroups:l.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:h?.auditReportGroups??[],isControllerOrReviewer:h?.isControllerOrReviewer??!1},isMonthEnd:i,analytics:pe}}function lp(e,n){const{companyId:o,companyView:a,closeAuditScoreDrawer:i}=n;return{handleFetchAuditReportGroupView:t=>{o!=null&&e(Ir(o,"generate",t))},handleGenerateAuditReport:t=>{o!=null&&(e(Ll(o)),t.forEach(r=>{e(Ir(o,"generate",r))}))},handleRuleClick:(t,r)=>{switch(t){case"reports":window.open(`/${a?.company.companyInfo.primaryEmailDomain}/reports`);break;case"transactions":window.open(`/${a?.company.companyInfo.primaryEmailDomain}/transactions/${r}`);break;case"dashboard":window.open(`/${a?.company.companyInfo.primaryEmailDomain}/dashboard/${r}`);break;default:console.error("Audit Page - Invalid entityType")}},handleCancelIconClick:()=>{e(rt()),i?i():n.navigate("../")},handleReasonAuditRule:(t,r,s,d)=>{o!=null&&e(nh(o,r,t,s,d))}}}const fp=ge(cp,lp)(pd);function ef({closeAuditScoreDrawer:e}){const n=me(),o=Ee(),{companyId:a}=je(),i=be.getSignedInUser(),[t,r]=K.useState(!1);if(i==null)throw Error("Can't access Audit Report page without signing in...");const s=re(p=>Lt(p)),d=re(p=>qt(p).fetchState),l=re(p=>th(p.companyState,a??"")),h=re(p=>jr(p)),f=re(p=>ea(a??"",p,i)),c=re(p=>rh(p));K.useEffect(()=>{s.fetchState==="Completed"&&h.fetchState==="Not-Started"&&o(ta())},[s.fetchState,h.fetchState]),K.useEffect(()=>{h.fetchState==="Completed"&&d==="Completed"&&h.auditRuleGroups.forEach(p=>{if(f.auditReportGroups.find(m=>m.auditReportGroupId===p.auditRuleGroupId)==null&&a!=null){const u=s.companies.find(v=>v.companyId===a)?.auditSummary?.auditReportLastGeneratedDate!=null?"view":"generate";o(Ir(a,u,p.auditRuleGroupId))}})},[h,s,f,d]),K.useEffect(()=>{const p=f.auditReportGroups.filter(y=>y.fetchState==="Completed"||y.fetchState==="Error");t===!1&&p.length!==0&&p.length===h.auditRuleGroups.length&&(r(!0),o(rt(!0)))},[JSON.stringify(f.auditReportGroups.filter(p=>p.fetchState==="Completed"||p.fetchState==="Error"))]),K.useEffect(()=>{const p=f.auditReportGroups.filter(y=>y.fetchState==="In-Progress");t===!0&&p.length!==0&&p.length===h.auditRuleGroups.length&&r(!1)},[JSON.stringify(f.auditReportGroups.filter(p=>p.fetchState==="In-Progress"))]);const w=s.fetchState!=="Completed"||h.fetchState!=="Completed"||d!=="Completed"||h.auditRuleGroups.length===0;return w?N.jsx(sp,{fetchState:w?"In-Progress":"Completed"}):N.jsx(N.Fragment,{children:N.jsx(fp,{isAuditScoreCompleted:(s.fetchState==="Completed"||s.fetchState==="Error")&&t,allUsers:c,companyId:a,isMonthEnd:!!e,navigate:n,loggedInUser:i,companyView:l,closeAuditScoreDrawer:e})})}const hp=Ie.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: calc(100vh - 110px);
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
`;function dp({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:o}){const{companyId:a}=je(),i=be.getSignedInUser();if(i==null)throw Error("Can't access Customer Request page without signing in...");const t=re(r=>kl(r,a,i));return K.useEffect(()=>{o()},[]),N.jsx(N.Fragment,{children:t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?N.jsx(hp,{children:N.jsx(kr,{size:"Large",start:!0})}):N.jsx(md,{onCloseClick:e,addCustomerRequest:n,snippets:t.companyMonthEndReportTemplatesData,bulletPoints:t.zeniRequestsData??[]})})}function pp({onClose:e}){const n=Ee(),{companyId:o}=je(),[a,i]=K.useState(!1),{useFeatureGate:t,useDynamicConfig:r}=nt(),{isFeatureEnabled:s}=t(ua.enableZeniGPTFeatureForMonthEndEmail),{configValue:d}=r(it.monthEndPreviewEnablement);if(o==null)throw Error("Can't access Month End Email page without valid company details...");const[l,h]=K.useState(!1),[f,c]=K.useState(!1),[w,p]=K.useState(!1),[y,m]=K.useState([]),u=be.getSignedInUser();if(u==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const v=re(D=>qt(D)),b=re(D=>Lt(D)),g=re(D=>jr(D)),E=re(D=>ea(o,D,u)),R=re(D=>kl(D,o,u)),O=K.useCallback((D=!1)=>{n(Ll(o)),h(!1),v.fetchState==="Completed"&&b.fetchState==="Completed"&&g.fetchState==="Completed"&&(g.auditRuleGroups.forEach(j=>{n(Ir(o,"generate",j.auditRuleGroupId))}),n(ih(D,o)),n(oh(o)))},[o,v.fetchState,b.fetchState,g.fetchState]);K.useEffect(()=>{const D=E.auditReportGroups.filter(j=>j.fetchState==="Completed"||j.fetchState==="Error");l===!1&&D.length!==0&&D.length===g.auditRuleGroups.length&&(h(!0),n(rt(!0,!0)))},[E.auditReportGroups]);const I=K.useCallback(()=>{n(ah({companyId:o})),h(!1),e()},[e]),q=K.useCallback(()=>{O(!0)},[O]),G=K.useCallback(D=>{n(sh(o,D))},[]),V=K.useCallback((D,j,k,F)=>{n(Pa(D,o,j,!0,k,F))},[]),S=K.useCallback((D,j,k,F)=>{n(Pa(D,o,j,!1,k,F))},[]),_=K.useCallback(()=>{i(!1)},[]),P=K.useCallback(D=>{n(uh(D,o))},[]),x=K.useCallback(D=>{n(ch({files:D}))},[]),M=K.useCallback(D=>{n(lh(D))},[]),C=K.useCallback(()=>{n(fh({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),T=K.useCallback(()=>{n(hh())},[]),A=K.useCallback(()=>{c(!0)},[]),L=K.useCallback(()=>{p(!0)},[]),B=K.useCallback(D=>{m(D),p(!1)},[]),U=K.useCallback(()=>{m([])},[]);return K.useEffect(()=>{R?.previewMonthEndReportStatus?.fetchState==="Completed"?i(!0):i(!1)},[R?.previewMonthEndReportStatus?.fetchState]),K.useEffect(()=>{(R?.sendMonthEndReportStatus?.fetchState==="Completed"||R?.saveMonthEndReportStatus?.fetchState==="Completed")&&I()},[R?.sendMonthEndReportStatus?.fetchState,R?.saveMonthEndReportStatus?.fetchState,I]),K.useEffect(()=>{n(Nl(!1)),n(Ye()),n(ta())},[]),K.useEffect(()=>{O()},[O]),N.jsxs(N.Fragment,{children:[N.jsx(Mt,{isOpen:f||w,drawerLeftMargin:f?new Pe(0,0,0,0):w?new Pe(0,0,300,650):new Pe(0,0,300,650),onClose:()=>{f?(n(rt(!0,!0)),c(!1)):w&&p(!1)},children:N.jsx(mp,{onClick:D=>D.stopPropagation(),children:f?N.jsx(ef,{closeAuditScoreDrawer:()=>c(!1)}):w?N.jsx(dp,{closeCustomerRequestDrawer:()=>p(!1),addCustomerRequest:B,resetCustomerRequest:U}):null})}),N.jsx(gd,{companyId:o,enableZeniGPTFeature:s,enableSendingMonthEndEmail:d.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(d.companiesByPassPreviewMonthEndReport)?d.companiesByPassPreviewMonthEndReport.includes(o):!1,monthEndReportView:R,previewMode:a,customerRequestData:y,onNavigateBack:I,onRefresh:q,sendMonthEndReport:G,previewMonthEndReport:V,saveMonthEndReport:S,onEditClick:_,improveUsingZeniGPTClick:P,onRemoveFileAttachment:M,onUpdateFileAttachment:x,onOpenFileAttachmentSnackBar:C,onCloseFileAttachmentSnackBar:T,onClickAuditScore:A,onClickCustomerRequest:L,isAuditScoreLoadingCompleted:l&&(b.fetchState==="Completed"||b.fetchState==="Error")})]})}const mp=Ie(pt)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`;function gp(){const e=Ee(),n=me(),{companyId:o,reportDate:a}=je(),i=re(d=>qt(d).fetchState);if(o==null||a==null)throw Error("Can't access historic Email without company id and reportDate...");const t=re(d=>dh(d,o,Or(a))),r=K.useCallback(d=>{n(`../../management/month-end-report-history/company/${o}/${d.format(kt.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(ja(o,d))},[o]),s=K.useCallback(()=>{i==="Completed"&&t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&(e(ph(o)),e(ja(o,Or(a))))},[o,i,a,t.fetchState]);return K.useEffect(()=>{e(Nl(!1))},[]),K.useEffect(()=>{s()},[s]),N.jsx(yd,{monthEndReportHistoricData:t,reportSentDate:Or(a),onDateChange:r,onNavigateBack:()=>n("../../"),onRefresh:s})}function yp({isOpen:e,emailHistoryMode:n,onClose:o}){return n?N.jsx(Mt,{drawerLeftMargin:new Pe(Wr[0],Wr[0],Wr[0]),isOpen:e,onClose:o,children:N.jsx(gp,{})}):N.jsx(vd,{isOpen:e,children:N.jsx(pp,{onClose:o})})}const{common:{strings:Jr},dateFormat:vp}=kt.getLocalizedStrings();function bp(e,n){const{loggedInUserRole:o,loggedInUser:a,navigate:i}=n;return{headerActions:{onTabChange:t=>{const r=at(t),s=dt(t);pe.trackCockpitTabClicked(s),i(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(t,r)=>{e(Ne({filterText:r}))},onFiltersChange:(t,r)=>{e(Ne({filters:r}))}}},managementPageActions:{onColumnSortConfigChanged:(t,r)=>{e(Ne({sortKey:t,sortOrder:r}))},changeHandlers:(t,r)=>{const s=Sp(r);Object.keys(s).length>0&&e(ra(t,s))},onScroll:t=>{e(Ne({scrollYOffset:t}))},onViewDetailsLinkClicked:t=>{i(`./parent/${t}`)},onCompanyNameClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onMonthEndReportPageClick:t=>{i(`/management/month-end-report/company/${t.company.company.companyInfo.companyId}`)},onTaskIconClicked:t=>{const r=t.controllers.map(s=>s.user.email);t.company.company.companyInfo.tenantId!=null&&a.userEmail!=null&&pe.trackCockpitTaskCardClicked({tenantName:t.company.company.companyInfo.name,tenantId:t.company.company.companyInfo.tenantId,user:{name:a.firstName!=null?a.firstName.concat(Jr.space,a.lastName??Jr.empty).trim():a.lastName??Jr.empty,email:a.userEmail,role:o?.userRoles??[]},controllerEmails:r}),window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(t,r)=>{e(Ne({filters:r}))},onCockpitReloadData:t=>{t==="management"&&e(xr())},showMonthEndReportHistoricData:(t,r)=>{i(`/management/month-end-report-history/company/${t}/${r.startOf("month").format(vp.analytics.YYYYDashMMDashDDFormat)}`)}}}}function wp(e,n){return{headerData:{selectedTabOption:Je("management")},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,managementView:n.managementView}}}const Ep=ge(wp,bp)(Yl);function Gt({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:n=!1}){const o=me(),a=Ee(),{useDynamicConfig:i}=nt(),{configValue:t}=i(it.monthEndInsightsEnablement),{configValue:r}=i(it.expenseAutomationEnablement),s=be.getSignedInUser();if(s==null)throw Error("Can't access Management page without signing in...");const d=re(c=>qt(c)),l=re(c=>Dl(c.userRoleState,s.userId)),h=re(c=>c.companyViewState.zeniUsers.fetchState);K.useEffect(()=>{d.fetchState==="Completed"?a(ot(!1)):(d.fetchState==="Not-Started"||d.fetchState==="Error")&&(a(xr()),(h==="Not-Started"||h==="Error")&&a(Ye()))},[d.fetchState]);const f=()=>{o(-1)};return N.jsxs(N.Fragment,{children:[e===!0?N.jsx(yp,{isOpen:e===!0,emailHistoryMode:n===!0,onClose:f}):null,N.jsx(Ep,{loggedInUser:s,loggedInUserRole:l,managementView:d,navigate:o,companiesExcludedFromMonthEndReport:t.companiesExcludedFromMonthEndReport!=null?t.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:r.expenseAutomationEnabledCompanies!=null&&Array.isArray(r.expenseAutomationEnabledCompanies)?r.expenseAutomationEnabledCompanies:[]})]})}const Sp=e=>{const{status:n,group:o,taxStatus:a,reportSent:i,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:a?{taxStatusCode:a?.selectedValue?.code}:i?{lastReportSentDate:i?.date,lastReportSentBusinessDay:i?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function _p(e,n){return{onGoBack:()=>{n.navigate(-1)},onGoHome:()=>{n.navigate("/")}}}const Rp=ge(null,_p)(bd);function ha(){const e=me();return N.jsx(Rp,{navigate:e})}const Op=Object.freeze(Object.defineProperty({__proto__:null,default:ha},Symbol.toStringTag,{value:"Module"})),{dateFormat:Ip}=kt.getLocalizedStrings();function Tp(e,n){const{navigate:o}=n;return{headerActions:{onNavigateBack:()=>{n.navigate("../")},filterActions:{onFilterTextChanged:(a,i)=>{a==="management"&&e(Ne({filterText:i}))},onFiltersChange:(a,i)=>{a==="management"&&e(Ne({filters:i}))}}},managementPageActions:{onColumnSortConfigChanged:(a,i)=>{e(Ne({sortKey:a,sortOrder:i}))},changeHandlers:(a,i)=>{const t=jp(i);Object.keys(t).length>0&&e(ra(a,t))},onScroll:a=>{e(Ne({scrollYOffset:a}))},onCompanyNameClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(a,i)=>{a==="management"&&e(Ne({filters:i}))},onMonthEndReportPageClick:a=>{o(`/management/month-end-report/company/${a.company.company.companyInfo.companyId}`)},onCockpitReloadData:a=>{a==="management"&&e(xr())},showMonthEndReportHistoricData:(a,i)=>{o(`/management/month-end-report-history/company/${a}/${i.startOf("month").format(Ip.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Ap(e,n){return{headerData:{selectedTabOption:Je("management"),showBackButton:!0},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,showDetailsPageLink:!1,managementView:{...n.managementView,uiState:{...n.managementView.uiState,scrollYOffset:0}}}}}const Cp=ge(Ap,Tp)(Yl);function Pp(){const e=me(),[n,o]=K.useState(!1),a=Ee(),{parentId:i}=je(),{useDynamicConfig:t}=nt(),{configValue:r}=t(it.monthEndInsightsEnablement),{configValue:s}=t(it.expenseAutomationEnablement),d=i!=null?re(f=>mh(f,i)):void 0;K.useEffect(()=>{n===!1&&i!=null&&(o(!0),a(gh(!1,i)))},[n]);const l=be.getSignedInUser();if(l==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const h=re(f=>Dl(f.userRoleState,l.userId));return i==null?N.jsx(ha,{}):d!=null?N.jsx(Cp,{loggedInUser:l,loggedInUserRole:h,managementView:d,navigate:e,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]}):null}const jp=e=>{const{status:n,group:o,taxStatus:a,reportSent:i,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:a?{taxStatusCode:a?.selectedValue?.code}:i?{lastReportSentDate:i?.date,lastReportSentBusinessDay:i?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function xp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Gt,{})})}),N.jsx(se,{path:"/parent/:parentId",element:N.jsx(le,{element:N.jsx(Pp,{})})}),N.jsx(se,{path:"/month-end-report/company/:companyId",element:N.jsx(le,{element:N.jsx(Gt,{isMonthEndEmailDrawerOpen:!0})})}),N.jsx(se,{path:"/month-end-report-history/company/:companyId/:reportDate",element:N.jsx(le,{element:N.jsx(Gt,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Gt,{})})})]})}var Kr={exports:{}},La;function qp(){return La||(La=1,function(e){(function(n){function o(i){return typeof i=="function"?i:typeof Re=="function"?function(r){//!! Deliberately using an API that's deprecated in node.js because
|
|
23
|
-
//!! this file is for browsers and we expect them to cope with it.
|
|
24
|
-
//!! Discussion: github.com/node-browser-compat/atob/pull/9
|
|
25
|
-
return new Re(r,"base64").toString("binary")}:typeof n.base64js=="object"?function(r){var s=n.base64js.b64ToByteArray(r);return Array.prototype.map.call(s,function(d){return String.fromCharCode(d)}).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")}}var a=o(n.atob);n.atob=a,e&&e.exports&&(e.exports=a)})(window)}(Kr)),Kr.exports}var zt={exports:{}},Xr={exports:{}},Qr={},ka;function tf(){if(ka)return Qr;ka=1;function e(v){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},e(v)}function n(v,b,g){return Object.defineProperty(v,"prototype",{writable:!1}),v}function o(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function a(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),b&&i(v,b)}function i(v,b){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,R){return E.__proto__=R,E},i(v,b)}function t(v){var b=d();return function(){var E=l(v),R;if(b){var O=l(this).constructor;R=Reflect.construct(E,arguments,O)}else R=E.apply(this,arguments);return r(this,R)}}function r(v,b){if(b&&(e(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(v)}function s(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(v){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},l(v)}var h={},f,c;function w(v,b,g){g||(g=Error);function E(O,I,q){return typeof b=="string"?b:b(O,I,q)}var R=function(O){a(q,O);var I=t(q);function q(G,V,S){var _;return o(this,q),_=I.call(this,E(G,V,S)),_.code=v,_}return n(q)}(g);h[v]=R}function p(v,b){if(Array.isArray(v)){var g=v.length;return v=v.map(function(E){return String(E)}),g>2?"one of ".concat(b," ").concat(v.slice(0,g-1).join(", "),", or ")+v[g-1]:g===2?"one of ".concat(b," ").concat(v[0]," or ").concat(v[1]):"of ".concat(b," ").concat(v[0])}else return"of ".concat(b," ").concat(String(v))}function y(v,b,g){return v.substr(0,b.length)===b}function m(v,b,g){return(g===void 0||g>v.length)&&(g=v.length),v.substring(g-b.length,g)===b}function u(v,b,g){return typeof g!="number"&&(g=0),g+b.length>v.length?!1:v.indexOf(b,g)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(v,b,g){f===void 0&&(f=xt()),f(typeof v=="string","'name' must be a string");var E;typeof b=="string"&&y(b,"not ")?(E="must not be",b=b.replace(/^not /,"")):E="must be";var R;if(m(v," argument"))R="The ".concat(v," ").concat(E," ").concat(p(b,"type"));else{var O=u(v,".")?"property":"argument";R='The "'.concat(v,'" ').concat(O," ").concat(E," ").concat(p(b,"type"))}return R+=". Received type ".concat(e(g)),R},TypeError),w("ERR_INVALID_ARG_VALUE",function(v,b){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=ve());var E=c.inspect(b);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(g,". Received ").concat(E)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(v,b,g){var E;return g&&g.constructor&&g.constructor.name?E="instance of ".concat(g.constructor.name):E="type ".concat(e(g)),"Expected ".concat(v,' to be returned from the "').concat(b,'"')+" function but got ".concat(E,".")},TypeError),w("ERR_MISSING_ARGS",function(){for(var v=arguments.length,b=new Array(v),g=0;g<v;g++)b[g]=arguments[g];f===void 0&&(f=xt()),f(b.length>0,"At least one arg needs to be specified");var E="The ",R=b.length;switch(b=b.map(function(O){return'"'.concat(O,'"')}),R){case 1:E+="".concat(b[0]," argument");break;case 2:E+="".concat(b[0]," and ").concat(b[1]," arguments");break;default:E+=b.slice(0,R-1).join(", "),E+=", and ".concat(b[R-1]," arguments");break}return"".concat(E," must be specified")},TypeError),Qr.codes=h,Qr}var en,Na;function Lp(){if(Na)return en;Na=1;function e(A,L){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(A);L&&(U=U.filter(function(D){return Object.getOwnPropertyDescriptor(A,D).enumerable})),B.push.apply(B,U)}return B}function n(A){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?e(Object(B),!0).forEach(function(U){o(A,U,B[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):e(Object(B)).forEach(function(U){Object.defineProperty(A,U,Object.getOwnPropertyDescriptor(B,U))})}return A}function o(A,L,B){return L=r(L),L in A?Object.defineProperty(A,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):A[L]=B,A}function a(A,L){if(!(A instanceof L))throw new TypeError("Cannot call a class as a function")}function i(A,L){for(var B=0;B<L.length;B++){var U=L[B];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(A,r(U.key),U)}}function t(A,L,B){return L&&i(A.prototype,L),Object.defineProperty(A,"prototype",{writable:!1}),A}function r(A){var L=s(A,"string");return v(L)==="symbol"?L:String(L)}function s(A,L){if(v(A)!=="object"||A===null)return A;var B=A[Symbol.toPrimitive];if(B!==void 0){var U=B.call(A,L);if(v(U)!=="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function d(A,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(L&&L.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),L&&m(A,L)}function l(A){var L=p();return function(){var U=u(A),D;if(L){var j=u(this).constructor;D=Reflect.construct(U,arguments,j)}else D=U.apply(this,arguments);return h(this,D)}}function h(A,L){if(L&&(v(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(A)}function f(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function c(A){var L=typeof Map=="function"?new Map:void 0;return c=function(U){if(U===null||!y(U))return U;if(typeof U!="function")throw new TypeError("Super expression must either be null or a function");if(typeof L<"u"){if(L.has(U))return L.get(U);L.set(U,D)}function D(){return w(U,arguments,u(this).constructor)}return D.prototype=Object.create(U.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),m(D,U)},c(A)}function w(A,L,B){return p()?w=Reflect.construct.bind():w=function(D,j,k){var F=[null];F.push.apply(F,j);var H=Function.bind.apply(D,F),Z=new H;return k&&m(Z,k.prototype),Z},w.apply(null,arguments)}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function m(A,L){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,D){return U.__proto__=D,U},m(A,L)}function u(A){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},u(A)}function v(A){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},v(A)}var b=ve(),g=b.inspect,E=tf(),R=E.codes.ERR_INVALID_ARG_TYPE;function O(A,L,B){return(B===void 0||B>A.length)&&(B=A.length),A.substring(B-L.length,B)===L}function I(A,L){if(L=Math.floor(L),A.length==0||L==0)return"";var B=A.length*L;for(L=Math.floor(Math.log(L)/Math.log(2));L;)A+=A,L--;return A+=A.substring(0,B-A.length),A}var q="",G="",V="",S="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},P=10;function x(A){var L=Object.keys(A),B=Object.create(Object.getPrototypeOf(A));return L.forEach(function(U){B[U]=A[U]}),Object.defineProperty(B,"message",{value:A.message}),B}function M(A){return g(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function C(A,L,B){var U="",D="",j=0,k="",F=!1,H=M(A),Z=H.split(`
|
|
26
|
-
`),W=M(L).split(`
|
|
27
|
-
`),J=0,te="";if(B==="strictEqual"&&v(A)==="object"&&v(L)==="object"&&A!==null&&L!==null&&(B="strictEqualObject"),Z.length===1&&W.length===1&&Z[0]!==W[0]){var ie=Z[0].length+W[0].length;if(ie<=P){if((v(A)!=="object"||A===null)&&(v(L)!=="object"||L===null)&&(A!==0||L!==0))return"".concat(_[B],`
|
|
28
|
-
|
|
29
|
-
`)+"".concat(Z[0]," !== ").concat(W[0],`
|
|
30
|
-
`)}else if(B!=="strictEqualObject"){var ae=X.stderr&&X.stderr.isTTY?X.stderr.columns:80;if(ie<ae){for(;Z[0][J]===W[0][J];)J++;J>2&&(te=`
|
|
31
|
-
`.concat(I(" ",J),"^"),J=0)}}}for(var fe=Z[Z.length-1],Le=W[W.length-1];fe===Le&&(J++<2?k=`
|
|
32
|
-
`.concat(fe).concat(k):U=fe,Z.pop(),W.pop(),!(Z.length===0||W.length===0));)fe=Z[Z.length-1],Le=W[W.length-1];var Ge=Math.max(Z.length,W.length);if(Ge===0){var Me=H.split(`
|
|
33
|
-
`);if(Me.length>30)for(Me[26]="".concat(q,"...").concat(S);Me.length>27;)Me.pop();return"".concat(_.notIdentical,`
|
|
34
|
-
|
|
35
|
-
`).concat(Me.join(`
|
|
36
|
-
`),`
|
|
37
|
-
`)}J>3&&(k=`
|
|
38
|
-
`.concat(q,"...").concat(S).concat(k),F=!0),U!==""&&(k=`
|
|
39
|
-
`.concat(U).concat(k),U="");var Oe=0,vt=_[B]+`
|
|
40
|
-
`.concat(G,"+ actual").concat(S," ").concat(V,"- expected").concat(S),$t=" ".concat(q,"...").concat(S," Lines skipped");for(J=0;J<Ge;J++){var Ae=J-j;if(Z.length<J+1)Ae>1&&J>2&&(Ae>4?(D+=`
|
|
41
|
-
`.concat(q,"...").concat(S),F=!0):Ae>3&&(D+=`
|
|
42
|
-
`.concat(W[J-2]),Oe++),D+=`
|
|
43
|
-
`.concat(W[J-1]),Oe++),j=J,U+=`
|
|
44
|
-
`.concat(V,"-").concat(S," ").concat(W[J]),Oe++;else if(W.length<J+1)Ae>1&&J>2&&(Ae>4?(D+=`
|
|
45
|
-
`.concat(q,"...").concat(S),F=!0):Ae>3&&(D+=`
|
|
46
|
-
`.concat(Z[J-2]),Oe++),D+=`
|
|
47
|
-
`.concat(Z[J-1]),Oe++),j=J,D+=`
|
|
48
|
-
`.concat(G,"+").concat(S," ").concat(Z[J]),Oe++;else{var Ke=W[J],Fe=Z[J],$=Fe!==Ke&&(!O(Fe,",")||Fe.slice(0,-1)!==Ke);$&&O(Ke,",")&&Ke.slice(0,-1)===Fe&&($=!1,Fe+=","),$?(Ae>1&&J>2&&(Ae>4?(D+=`
|
|
49
|
-
`.concat(q,"...").concat(S),F=!0):Ae>3&&(D+=`
|
|
50
|
-
`.concat(Z[J-2]),Oe++),D+=`
|
|
51
|
-
`.concat(Z[J-1]),Oe++),j=J,D+=`
|
|
52
|
-
`.concat(G,"+").concat(S," ").concat(Fe),U+=`
|
|
53
|
-
`.concat(V,"-").concat(S," ").concat(Ke),Oe+=2):(D+=U,U="",(Ae===1||J===0)&&(D+=`
|
|
54
|
-
`.concat(Fe),Oe++))}if(Oe>20&&J<Ge-2)return"".concat(vt).concat($t,`
|
|
55
|
-
`).concat(D,`
|
|
56
|
-
`).concat(q,"...").concat(S).concat(U,`
|
|
57
|
-
`)+"".concat(q,"...").concat(S)}return"".concat(vt).concat(F?$t:"",`
|
|
58
|
-
`).concat(D).concat(U).concat(k).concat(te)}var T=function(A,L){d(U,A);var B=l(U);function U(D){var j;if(a(this,U),v(D)!=="object"||D===null)throw new R("options","Object",D);var k=D.message,F=D.operator,H=D.stackStartFn,Z=D.actual,W=D.expected,J=Error.stackTraceLimit;if(Error.stackTraceLimit=0,k!=null)j=B.call(this,String(k));else if(X.stderr&&X.stderr.isTTY&&(X.stderr&&X.stderr.getColorDepth&&X.stderr.getColorDepth()!==1?(q="\x1B[34m",G="\x1B[32m",S="\x1B[39m",V="\x1B[31m"):(q="",G="",S="",V="")),v(Z)==="object"&&Z!==null&&v(W)==="object"&&W!==null&&"stack"in Z&&Z instanceof Error&&"stack"in W&&W instanceof Error&&(Z=x(Z),W=x(W)),F==="deepStrictEqual"||F==="strictEqual")j=B.call(this,C(Z,W,F));else if(F==="notDeepStrictEqual"||F==="notStrictEqual"){var te=_[F],ie=M(Z).split(`
|
|
59
|
-
`);if(F==="notStrictEqual"&&v(Z)==="object"&&Z!==null&&(te=_.notStrictEqualObject),ie.length>30)for(ie[26]="".concat(q,"...").concat(S);ie.length>27;)ie.pop();ie.length===1?j=B.call(this,"".concat(te," ").concat(ie[0])):j=B.call(this,"".concat(te,`
|
|
60
|
-
|
|
61
|
-
`).concat(ie.join(`
|
|
62
|
-
`),`
|
|
63
|
-
`))}else{var ae=M(Z),fe="",Le=_[F];F==="notDeepEqual"||F==="notEqual"?(ae="".concat(_[F],`
|
|
64
|
-
|
|
65
|
-
`).concat(ae),ae.length>1024&&(ae="".concat(ae.slice(0,1021),"..."))):(fe="".concat(M(W)),ae.length>512&&(ae="".concat(ae.slice(0,509),"...")),fe.length>512&&(fe="".concat(fe.slice(0,509),"...")),F==="deepEqual"||F==="equal"?ae="".concat(Le,`
|
|
66
|
-
|
|
67
|
-
`).concat(ae,`
|
|
68
|
-
|
|
69
|
-
should equal
|
|
70
|
-
|
|
71
|
-
`):fe=" ".concat(F," ").concat(fe)),j=B.call(this,"".concat(ae).concat(fe))}return Error.stackTraceLimit=J,j.generatedMessage=!k,Object.defineProperty(f(j),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),j.code="ERR_ASSERTION",j.actual=Z,j.expected=W,j.operator=F,Error.captureStackTrace&&Error.captureStackTrace(f(j),H),j.stack,j.name="AssertionError",h(j)}return t(U,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:L,value:function(j,k){return g(this,n(n({},k),{},{customInspect:!1,depth:0}))}}]),U}(c(Error),g.custom);return en=T,en}var tn,Da;function rf(){if(Da)return tn;Da=1;var e=Object.prototype.toString;return tn=function(o){var a=e.call(o),i=a==="[object Arguments]";return i||(i=a!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&e.call(o.callee)==="[object Function]"),i},tn}var rn,Ma;function kp(){if(Ma)return rn;Ma=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=rf(),i=Object.prototype.propertyIsEnumerable,t=!i.call({toString:null},"toString"),r=i.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(c){var w=c.constructor;return w&&w.prototype===c},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var c in window)try{if(!l["$"+c]&&n.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{d(window[c])}catch{return!0}}catch{return!0}return!1}(),f=function(c){if(typeof window>"u"||!h)return d(c);try{return d(c)}catch{return!1}};e=function(w){var p=w!==null&&typeof w=="object",y=o.call(w)==="[object Function]",m=a(w),u=p&&o.call(w)==="[object String]",v=[];if(!p&&!y&&!m)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(u&&w.length>0&&!n.call(w,0))for(var g=0;g<w.length;++g)v.push(String(g));if(m&&w.length>0)for(var E=0;E<w.length;++E)v.push(String(E));else for(var R in w)!(b&&R==="prototype")&&n.call(w,R)&&v.push(String(R));if(t)for(var O=f(w),I=0;I<s.length;++I)!(O&&s[I]==="constructor")&&n.call(w,s[I])&&v.push(s[I]);return v}}return rn=e,rn}var nn,Fa;function nf(){if(Fa)return nn;Fa=1;var e=Array.prototype.slice,n=rf(),o=Object.keys,a=o?function(r){return o(r)}:kp(),i=Object.keys;return a.shim=function(){if(Object.keys){var r=function(){var s=Object.keys(arguments);return s&&s.length===arguments.length}(1,2);r||(Object.keys=function(d){return n(d)?i(e.call(d)):i(d)})}else Object.keys=a;return Object.keys||a},nn=a,nn}var on,Ua;function Np(){if(Ua)return on;Ua=1;var e=nf(),n=Md()(),o=Fd(),a=Ud(),i=o("Array.prototype.push"),t=o("Object.prototype.propertyIsEnumerable"),r=n?a.getOwnPropertySymbols:null;return on=function(d,l){if(d==null)throw new TypeError("target must be an object");var h=a(d);if(arguments.length===1)return h;for(var f=1;f<arguments.length;++f){var c=a(arguments[f]),w=e(c),p=n&&(a.getOwnPropertySymbols||r);if(p)for(var y=p(c),m=0;m<y.length;++m){var u=y[m];t(c,u)&&i(w,u)}for(var v=0;v<w.length;++v){var b=w[v];if(t(c,b)){var g=c[b];h[b]=g}}}return h},on}var an,Ba;function Dp(){if(Ba)return an;Ba=1;var e=Np(),n=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",i=a.split(""),t={},r=0;r<i.length;++r)t[i[r]]=i[r];var s=Object.assign({},t),d="";for(var l in s)d+=l;return a!==d},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1};return an=function(){return!Object.assign||n()||o()?e:Object.assign},an}var sn,$a;function of(){if($a)return sn;$a=1;var e=function(n){return n!==n};return sn=function(o,a){return o===0&&a===0?1/o===1/a:!!(o===a||e(o)&&e(a))},sn}var un,Va;function da(){if(Va)return un;Va=1;var e=of();return un=function(){return typeof Object.is=="function"?Object.is:e},un}var cn,Ga;function Mp(){if(Ga)return cn;Ga=1;var e=Bd(),n=la(),o=n(e("String.prototype.indexOf"));return cn=function(i,t){var r=e(i,!!t);return typeof r=="function"&&o(i,".prototype.")>-1?n(r):r},cn}var ln,za;function Mr(){if(za)return ln;za=1;var e=nf(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",o=Object.prototype.toString,a=Array.prototype.concat,i=Vd(),t=function(l){return typeof l=="function"&&o.call(l)==="[object Function]"},r=$d()(),s=function(l,h,f,c){if(h in l){if(c===!0){if(l[h]===f)return}else if(!t(c)||!c())return}r?i(l,h,f,!0):i(l,h,f)},d=function(l,h){var f=arguments.length>2?arguments[2]:{},c=e(h);n&&(c=a.call(c,Object.getOwnPropertySymbols(h)));for(var w=0;w<c.length;w+=1)s(l,c[w],h[c[w]],f[c[w]])};return d.supportsDescriptors=!!r,ln=d,ln}var fn,Ha;function Fp(){if(Ha)return fn;Ha=1;var e=da(),n=Mr();return fn=function(){var a=e();return n(Object,{is:a},{is:function(){return Object.is!==a}}),a},fn}var hn,Za;function Up(){if(Za)return hn;Za=1;var e=Mr(),n=la(),o=of(),a=da(),i=Fp(),t=n(a(),Object);return e(t,{getPolyfill:a,implementation:o,shim:i}),hn=t,hn}var dn,Wa;function af(){return Wa||(Wa=1,dn=function(n){return n!==n}),dn}var pn,Ya;function sf(){if(Ya)return pn;Ya=1;var e=af();return pn=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},pn}var mn,Ja;function Bp(){if(Ja)return mn;Ja=1;var e=Mr(),n=sf();return mn=function(){var a=n();return e(Number,{isNaN:a},{isNaN:function(){return Number.isNaN!==a}}),a},mn}var gn,Ka;function $p(){if(Ka)return gn;Ka=1;var e=la(),n=Mr(),o=af(),a=sf(),i=Bp(),t=e(a(),Number);return n(t,{getPolyfill:a,implementation:o,shim:i}),gn=t,gn}var yn,Xa;function Vp(){if(Xa)return yn;Xa=1;function e($,z){return t($)||i($,z)||o($,z)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
72
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o($,z){if($){if(typeof $=="string")return a($,z);var Y=Object.prototype.toString.call($).slice(8,-1);if(Y==="Object"&&$.constructor&&(Y=$.constructor.name),Y==="Map"||Y==="Set")return Array.from($);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return a($,z)}}function a($,z){(z==null||z>$.length)&&(z=$.length);for(var Y=0,Q=new Array(z);Y<z;Y++)Q[Y]=$[Y];return Q}function i($,z){var Y=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(Y!=null){var Q,ee,oe,ne,ue=[],ce=!0,ye=!1;try{if(oe=(Y=Y.call($)).next,z!==0)for(;!(ce=(Q=oe.call(Y)).done)&&(ue.push(Q.value),ue.length!==z);ce=!0);}catch(we){ye=!0,ee=we}finally{try{if(!ce&&Y.return!=null&&(ne=Y.return(),Object(ne)!==ne))return}finally{if(ye)throw ee}}return ue}}function t($){if(Array.isArray($))return $}function r($){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},r($)}var s=/a/g.flags!==void 0,d=function(z){var Y=[];return z.forEach(function(Q){return Y.push(Q)}),Y},l=function(z){var Y=[];return z.forEach(function(Q,ee){return Y.push([ee,Q])}),Y},h=Object.is?Object.is:Up(),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:$p();function w($){return $.call.bind($)}var p=w(Object.prototype.hasOwnProperty),y=w(Object.prototype.propertyIsEnumerable),m=w(Object.prototype.toString),u=ve().types,v=u.isAnyArrayBuffer,b=u.isArrayBufferView,g=u.isDate,E=u.isMap,R=u.isRegExp,O=u.isSet,I=u.isNativeError,q=u.isBoxedPrimitive,G=u.isNumberObject,V=u.isStringObject,S=u.isBooleanObject,_=u.isBigIntObject,P=u.isSymbolObject,x=u.isFloat32Array,M=u.isFloat64Array;function C($){if($.length===0||$.length>10)return!0;for(var z=0;z<$.length;z++){var Y=$.charCodeAt(z);if(Y<48||Y>57)return!0}return $.length===10&&$>=Math.pow(2,32)}function T($){return Object.keys($).filter(C).concat(f($).filter(Object.prototype.propertyIsEnumerable.bind($)))}/*!
|
|
73
|
-
* The buffer module from node.js, for the browser.
|
|
74
|
-
*
|
|
75
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
76
|
-
* @license MIT
|
|
77
|
-
*/function A($,z){if($===z)return 0;for(var Y=$.length,Q=z.length,ee=0,oe=Math.min(Y,Q);ee<oe;++ee)if($[ee]!==z[ee]){Y=$[ee],Q=z[ee];break}return Y<Q?-1:Q<Y?1:0}var L=!0,B=!1,U=0,D=1,j=2,k=3;function F($,z){return s?$.source===z.source&&$.flags===z.flags:RegExp.prototype.toString.call($)===RegExp.prototype.toString.call(z)}function H($,z){if($.byteLength!==z.byteLength)return!1;for(var Y=0;Y<$.byteLength;Y++)if($[Y]!==z[Y])return!1;return!0}function Z($,z){return $.byteLength!==z.byteLength?!1:A(new Uint8Array($.buffer,$.byteOffset,$.byteLength),new Uint8Array(z.buffer,z.byteOffset,z.byteLength))===0}function W($,z){return $.byteLength===z.byteLength&&A(new Uint8Array($),new Uint8Array(z))===0}function J($,z){return G($)?G(z)&&h(Number.prototype.valueOf.call($),Number.prototype.valueOf.call(z)):V($)?V(z)&&String.prototype.valueOf.call($)===String.prototype.valueOf.call(z):S($)?S(z)&&Boolean.prototype.valueOf.call($)===Boolean.prototype.valueOf.call(z):_($)?_(z)&&BigInt.prototype.valueOf.call($)===BigInt.prototype.valueOf.call(z):P(z)&&Symbol.prototype.valueOf.call($)===Symbol.prototype.valueOf.call(z)}function te($,z,Y,Q){if($===z)return $!==0?!0:Y?h($,z):!0;if(Y){if(r($)!=="object")return typeof $=="number"&&c($)&&c(z);if(r(z)!=="object"||$===null||z===null||Object.getPrototypeOf($)!==Object.getPrototypeOf(z))return!1}else{if($===null||r($)!=="object")return z===null||r(z)!=="object"?$==z:!1;if(z===null||r(z)!=="object")return!1}var ee=m($),oe=m(z);if(ee!==oe)return!1;if(Array.isArray($)){if($.length!==z.length)return!1;var ne=T($),ue=T(z);return ne.length!==ue.length?!1:ae($,z,Y,Q,D,ne)}if(ee==="[object Object]"&&(!E($)&&E(z)||!O($)&&O(z)))return!1;if(g($)){if(!g(z)||Date.prototype.getTime.call($)!==Date.prototype.getTime.call(z))return!1}else if(R($)){if(!R(z)||!F($,z))return!1}else if(I($)||$ instanceof Error){if($.message!==z.message||$.name!==z.name)return!1}else if(b($)){if(!Y&&(x($)||M($))){if(!H($,z))return!1}else if(!Z($,z))return!1;var ce=T($),ye=T(z);return ce.length!==ye.length?!1:ae($,z,Y,Q,U,ce)}else{if(O($))return!O(z)||$.size!==z.size?!1:ae($,z,Y,Q,j);if(E($))return!E(z)||$.size!==z.size?!1:ae($,z,Y,Q,k);if(v($)){if(!W($,z))return!1}else if(q($)&&!J($,z))return!1}return ae($,z,Y,Q,U)}function ie($,z){return z.filter(function(Y){return y($,Y)})}function ae($,z,Y,Q,ee,oe){if(arguments.length===5){oe=Object.keys($);var ne=Object.keys(z);if(oe.length!==ne.length)return!1}for(var ue=0;ue<oe.length;ue++)if(!p(z,oe[ue]))return!1;if(Y&&arguments.length===5){var ce=f($);if(ce.length!==0){var ye=0;for(ue=0;ue<ce.length;ue++){var we=ce[ue];if(y($,we)){if(!y(z,we))return!1;oe.push(we),ye++}else if(y(z,we))return!1}var bt=f(z);if(ce.length!==bt.length&&ie(z,bt).length!==ye)return!1}else{var ct=f(z);if(ct.length!==0&&ie(z,ct).length!==0)return!1}}if(oe.length===0&&(ee===U||ee===D&&$.length===0||$.size===0))return!0;if(Q===void 0)Q={val1:new Map,val2:new Map,position:0};else{var wt=Q.val1.get($);if(wt!==void 0){var Ue=Q.val2.get(z);if(Ue!==void 0)return wt===Ue}Q.position++}Q.val1.set($,Q.position),Q.val2.set(z,Q.position);var Et=Ae($,z,Y,oe,Q,ee);return Q.val1.delete($),Q.val2.delete(z),Et}function fe($,z,Y,Q){for(var ee=d($),oe=0;oe<ee.length;oe++){var ne=ee[oe];if(te(z,ne,Y,Q))return $.delete(ne),!0}return!1}function Le($){switch(r($)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":$=+$;case"number":if(c($))return!1}return!0}function Ge($,z,Y){var Q=Le(Y);return Q??(z.has(Q)&&!$.has(Q))}function Me($,z,Y,Q,ee){var oe=Le(Y);if(oe!=null)return oe;var ne=z.get(oe);return ne===void 0&&!z.has(oe)||!te(Q,ne,!1,ee)?!1:!$.has(oe)&&te(Q,ne,!1,ee)}function Oe($,z,Y,Q){for(var ee=null,oe=d($),ne=0;ne<oe.length;ne++){var ue=oe[ne];if(r(ue)==="object"&&ue!==null)ee===null&&(ee=new Set),ee.add(ue);else if(!z.has(ue)){if(Y||!Ge($,z,ue))return!1;ee===null&&(ee=new Set),ee.add(ue)}}if(ee!==null){for(var ce=d(z),ye=0;ye<ce.length;ye++){var we=ce[ye];if(r(we)==="object"&&we!==null){if(!fe(ee,we,Y,Q))return!1}else if(!Y&&!$.has(we)&&!fe(ee,we,Y,Q))return!1}return ee.size===0}return!0}function vt($,z,Y,Q,ee,oe){for(var ne=d($),ue=0;ue<ne.length;ue++){var ce=ne[ue];if(te(Y,ce,ee,oe)&&te(Q,z.get(ce),ee,oe))return $.delete(ce),!0}return!1}function $t($,z,Y,Q){for(var ee=null,oe=l($),ne=0;ne<oe.length;ne++){var ue=e(oe[ne],2),ce=ue[0],ye=ue[1];if(r(ce)==="object"&&ce!==null)ee===null&&(ee=new Set),ee.add(ce);else{var we=z.get(ce);if(we===void 0&&!z.has(ce)||!te(ye,we,Y,Q)){if(Y||!Me($,z,ce,ye,Q))return!1;ee===null&&(ee=new Set),ee.add(ce)}}}if(ee!==null){for(var bt=l(z),ct=0;ct<bt.length;ct++){var wt=e(bt[ct],2),Ue=wt[0],Et=wt[1];if(r(Ue)==="object"&&Ue!==null){if(!vt(ee,$,Ue,Et,Y,Q))return!1}else if(!Y&&(!$.has(Ue)||!te($.get(Ue),Et,!1,Q))&&!vt(ee,$,Ue,Et,!1,Q))return!1}return ee.size===0}return!0}function Ae($,z,Y,Q,ee,oe){var ne=0;if(oe===j){if(!Oe($,z,Y,ee))return!1}else if(oe===k){if(!$t($,z,Y,ee))return!1}else if(oe===D)for(;ne<$.length;ne++)if(p($,ne)){if(!p(z,ne)||!te($[ne],z[ne],Y,ee))return!1}else{if(p(z,ne))return!1;for(var ue=Object.keys($);ne<ue.length;ne++){var ce=ue[ne];if(!p(z,ce)||!te($[ce],z[ce],Y,ee))return!1}return ue.length===Object.keys(z).length}for(ne=0;ne<Q.length;ne++){var ye=Q[ne];if(!te($[ye],z[ye],Y,ee))return!1}return!0}function Ke($,z){return te($,z,B)}function Fe($,z){return te($,z,L)}return yn={isDeepEqual:Ke,isDeepStrictEqual:Fe},yn}var Qa;function xt(){if(Qa)return Xr.exports;Qa=1;function e(j){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},e(j)}function n(j,k,F){return Object.defineProperty(j,"prototype",{writable:!1}),j}function o(j,k){if(!(j instanceof k))throw new TypeError("Cannot call a class as a function")}var a=tf(),i=a.codes,t=i.ERR_AMBIGUOUS_ARGUMENT,r=i.ERR_INVALID_ARG_TYPE,s=i.ERR_INVALID_ARG_VALUE,d=i.ERR_INVALID_RETURN_VALUE,l=i.ERR_MISSING_ARGS,h=Lp(),f=ve(),c=f.inspect,w=ve().types,p=w.isPromise,y=w.isRegExp,m=Dp()(),u=da()(),v=Mp()("RegExp.prototype.test"),b,g;function E(){var j=Vp();b=j.isDeepEqual,g=j.isDeepStrictEqual}var R=!1,O=Xr.exports=S,I={};function q(j){throw j.message instanceof Error?j.message:new h(j)}function G(j,k,F,H,Z){var W=arguments.length,J;if(W===0)J="Failed";else if(W===1)F=j,j=void 0;else{if(R===!1){R=!0;var te=X.emitWarning?X.emitWarning:console.warn.bind(console);te("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}W===2&&(H="!=")}if(F instanceof Error)throw F;var ie={actual:j,expected:k,operator:H===void 0?"fail":H,stackStartFn:Z||G};F!==void 0&&(ie.message=F);var ae=new h(ie);throw J&&(ae.message=J,ae.generatedMessage=!0),ae}O.fail=G,O.AssertionError=h;function V(j,k,F,H){if(!F){var Z=!1;if(k===0)Z=!0,H="No value argument passed to `assert.ok()`";else if(H instanceof Error)throw H;var W=new h({actual:F,expected:!0,message:H,operator:"==",stackStartFn:j});throw W.generatedMessage=Z,W}}function S(){for(var j=arguments.length,k=new Array(j),F=0;F<j;F++)k[F]=arguments[F];V.apply(void 0,[S,k.length].concat(k))}O.ok=S,O.equal=function j(k,F,H){if(arguments.length<2)throw new l("actual","expected");k!=F&&q({actual:k,expected:F,message:H,operator:"==",stackStartFn:j})},O.notEqual=function j(k,F,H){if(arguments.length<2)throw new l("actual","expected");k==F&&q({actual:k,expected:F,message:H,operator:"!=",stackStartFn:j})},O.deepEqual=function j(k,F,H){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),b(k,F)||q({actual:k,expected:F,message:H,operator:"deepEqual",stackStartFn:j})},O.notDeepEqual=function j(k,F,H){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),b(k,F)&&q({actual:k,expected:F,message:H,operator:"notDeepEqual",stackStartFn:j})},O.deepStrictEqual=function j(k,F,H){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),g(k,F)||q({actual:k,expected:F,message:H,operator:"deepStrictEqual",stackStartFn:j})},O.notDeepStrictEqual=_;function _(j,k,F){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),g(j,k)&&q({actual:j,expected:k,message:F,operator:"notDeepStrictEqual",stackStartFn:_})}O.strictEqual=function j(k,F,H){if(arguments.length<2)throw new l("actual","expected");u(k,F)||q({actual:k,expected:F,message:H,operator:"strictEqual",stackStartFn:j})},O.notStrictEqual=function j(k,F,H){if(arguments.length<2)throw new l("actual","expected");u(k,F)&&q({actual:k,expected:F,message:H,operator:"notStrictEqual",stackStartFn:j})};var P=n(function j(k,F,H){var Z=this;o(this,j),F.forEach(function(W){W in k&&(H!==void 0&&typeof H[W]=="string"&&y(k[W])&&v(k[W],H[W])?Z[W]=H[W]:Z[W]=k[W])})});function x(j,k,F,H,Z,W){if(!(F in j)||!g(j[F],k[F])){if(!H){var J=new P(j,Z),te=new P(k,Z,j),ie=new h({actual:J,expected:te,operator:"deepStrictEqual",stackStartFn:W});throw ie.actual=j,ie.expected=k,ie.operator=W.name,ie}q({actual:j,expected:k,message:H,operator:W.name,stackStartFn:W})}}function M(j,k,F,H){if(typeof k!="function"){if(y(k))return v(k,j);if(arguments.length===2)throw new r("expected",["Function","RegExp"],k);if(e(j)!=="object"||j===null){var Z=new h({actual:j,expected:k,message:F,operator:"deepStrictEqual",stackStartFn:H});throw Z.operator=H.name,Z}var W=Object.keys(k);if(k instanceof Error)W.push("name","message");else if(W.length===0)throw new s("error",k,"may not be an empty object");return b===void 0&&E(),W.forEach(function(J){typeof j[J]=="string"&&y(k[J])&&v(k[J],j[J])||x(j,k,J,F,W,H)}),!0}return k.prototype!==void 0&&j instanceof k?!0:Error.isPrototypeOf(k)?!1:k.call({},j)===!0}function C(j){if(typeof j!="function")throw new r("fn","Function",j);try{j()}catch(k){return k}return I}function T(j){return p(j)||j!==null&&e(j)==="object"&&typeof j.then=="function"&&typeof j.catch=="function"}function A(j){return Promise.resolve().then(function(){var k;if(typeof j=="function"){if(k=j(),!T(k))throw new d("instance of Promise","promiseFn",k)}else if(T(j))k=j;else throw new r("promiseFn",["Function","Promise"],j);return Promise.resolve().then(function(){return k}).then(function(){return I}).catch(function(F){return F})})}function L(j,k,F,H){if(typeof F=="string"){if(arguments.length===4)throw new r("error",["Object","Error","Function","RegExp"],F);if(e(k)==="object"&&k!==null){if(k.message===F)throw new t("error/message",'The error message "'.concat(k.message,'" is identical to the message.'))}else if(k===F)throw new t("error/message",'The error "'.concat(k,'" is identical to the message.'));H=F,F=void 0}else if(F!=null&&e(F)!=="object"&&typeof F!="function")throw new r("error",["Object","Error","Function","RegExp"],F);if(k===I){var Z="";F&&F.name&&(Z+=" (".concat(F.name,")")),Z+=H?": ".concat(H):".";var W=j.name==="rejects"?"rejection":"exception";q({actual:void 0,expected:F,operator:j.name,message:"Missing expected ".concat(W).concat(Z),stackStartFn:j})}if(F&&!M(k,F,H,j))throw k}function B(j,k,F,H){if(k!==I){if(typeof F=="string"&&(H=F,F=void 0),!F||M(k,F)){var Z=H?": ".concat(H):".",W=j.name==="doesNotReject"?"rejection":"exception";q({actual:k,expected:F,operator:j.name,message:"Got unwanted ".concat(W).concat(Z,`
|
|
78
|
-
`)+'Actual message: "'.concat(k&&k.message,'"'),stackStartFn:j})}throw k}}O.throws=function j(k){for(var F=arguments.length,H=new Array(F>1?F-1:0),Z=1;Z<F;Z++)H[Z-1]=arguments[Z];L.apply(void 0,[j,C(k)].concat(H))},O.rejects=function j(k){for(var F=arguments.length,H=new Array(F>1?F-1:0),Z=1;Z<F;Z++)H[Z-1]=arguments[Z];return A(k).then(function(W){return L.apply(void 0,[j,W].concat(H))})},O.doesNotThrow=function j(k){for(var F=arguments.length,H=new Array(F>1?F-1:0),Z=1;Z<F;Z++)H[Z-1]=arguments[Z];B.apply(void 0,[j,C(k)].concat(H))},O.doesNotReject=function j(k){for(var F=arguments.length,H=new Array(F>1?F-1:0),Z=1;Z<F;Z++)H[Z-1]=arguments[Z];return A(k).then(function(W){return B.apply(void 0,[j,W].concat(H))})},O.ifError=function j(k){if(k!=null){var F="ifError got unwanted exception: ";e(k)==="object"&&typeof k.message=="string"?k.message.length===0&&k.constructor?F+=k.constructor.name:F+=k.message:F+=c(k);var H=new h({actual:k,expected:null,operator:"ifError",message:F,stackStartFn:j}),Z=k.stack;if(typeof Z=="string"){var W=Z.split(`
|
|
79
|
-
`);W.shift();for(var J=H.stack.split(`
|
|
80
|
-
`),te=0;te<W.length;te++){var ie=J.indexOf(W[te]);if(ie!==-1){J=J.slice(0,ie);break}}H.stack="".concat(J.join(`
|
|
81
|
-
`),`
|
|
82
|
-
`).concat(W.join(`
|
|
83
|
-
`))}throw H}};function U(j,k,F,H,Z){if(!y(k))throw new r("regexp","RegExp",k);var W=Z==="match";if(typeof j!="string"||v(k,j)!==W){if(F instanceof Error)throw F;var J=!F;F=F||(typeof j!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(j)," (").concat(c(j),")"):(W?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(c(k),`. Input:
|
|
84
|
-
|
|
85
|
-
`).concat(c(j),`
|
|
86
|
-
`));var te=new h({actual:j,expected:k,message:F,operator:Z,stackStartFn:H});throw te.generatedMessage=J,te}}O.match=function j(k,F,H){U(k,F,H,j,"match")},O.doesNotMatch=function j(k,F,H){U(k,F,H,j,"doesNotMatch")};function D(){for(var j=arguments.length,k=new Array(j),F=0;F<j;F++)k[F]=arguments[F];V.apply(void 0,[D,k.length].concat(k))}return O.strict=m(D,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Xr.exports}var es;function Gp(){return es||(es=1,function(e,n){var o=xt(),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i="abcdefghijklmnopqrstuvwxyz0123456789",t="0123456789";n=e.exports=r(a),n.base62=n,n.base36=r(i),n.base10=r(t),n.create=r;function r(s){o(typeof s=="string","the list of characters must be a string!");var d=Re.byteLength(s);return function(h){h=h||10,o(typeof h=="number"&&h>=0,"the length of the random string must be a number!");for(var f="",c=0;c<h;c++)f+=s[Math.floor(d*Math.random())];return f}}}(zt,zt.exports)),zt.exports}var Ht={exports:{}},Zt={exports:{}};/*!
|
|
87
|
-
* random-bytes
|
|
88
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
89
|
-
* MIT Licensed
|
|
90
|
-
*/var ts;function zp(){if(ts)return Zt.exports;ts=1;var e=mt(),n=e.randomBytes===e.pseudoRandomBytes?1:3;Zt.exports=o,Zt.exports.sync=a;function o(t,r){if(r!==void 0&&typeof r!="function")throw new TypeError("argument callback must be a function");if(!r&&!Zl.Promise)throw new TypeError("argument callback is required");return r?i(t,n,r):new Promise(function(d,l){i(t,n,function(f,c){if(f)return l(f);d(c)})})}function a(t){for(var r=null,s=0;s<n;s++)try{return e.randomBytes(t)}catch(d){r=d}throw r}function i(t,r,s){e.randomBytes(t,function(l,h){if(!l)return s(null,h);if(!--r)return s(l);setTimeout(i.bind(null,t,r,s),10)})}return Zt.exports}/*!
|
|
91
|
-
* uid-safe
|
|
92
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
93
|
-
* Copyright(c) 2015-2017 Douglas Christopher Wilson
|
|
94
|
-
* MIT Licensed
|
|
95
|
-
*/var rs;function Hp(){if(rs)return Ht.exports;rs=1;var e=zp(),n=/=+$/,o=/\+/g,a=/\//g;Ht.exports=i,Ht.exports.sync=t;function i(d,l){if(l!==void 0&&typeof l!="function")throw new TypeError("argument callback must be a function");if(!l&&!Zl.Promise)throw new TypeError("argument callback is required");return l?r(d,l):new Promise(function(f,c){r(d,function(p,y){if(p)return c(p);f(y)})})}function t(d){return s(e.sync(d))}function r(d,l){e(d,function(h,f){if(h)return l(h);l(null,s(f))})}function s(d){return d.toString("base64").replace(n,"").replace(o,"-").replace(a,"_")}return Ht.exports}var vn,ns;function Zp(){if(ns)return vn;ns=1;var e=mt();function n(a,i){if(a.length!==i.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(a,i);for(var t=0;t<a.length;t++)if(a[t]!==i[t])return!1;return!0}function o(a,i){var t=String(a),r=String(i),s=e.pseudoRandomBytes(32),d=e.createHmac("sha256",s).update(t).digest(),l=e.createHmac("sha256",s).update(r).digest();return n(d,l)&&a===i}return vn=o,vn}/*!
|
|
96
|
-
* csrf
|
|
97
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
98
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
99
|
-
* MIT Licensed
|
|
100
|
-
*/var bn,is;function Wp(){if(is)return bn;is=1;var e=Gp(),n=Hp(),o=Zp(),a=mt(),i=/=/g,t=/\+/g,r=/\//g;bn=s;function s(l){if(!(this instanceof s))return new s(l);var h=l||{},f=h.saltLength!==void 0?h.saltLength:8;if(typeof f!="number"||!isFinite(f)||f<1)throw new TypeError("option saltLength must be finite number > 1");var c=h.secretLength!==void 0?h.secretLength:18;if(typeof c!="number"||!isFinite(c)||c<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=f,this.secretLength=c}s.prototype.create=function(h){if(!h||typeof h!="string")throw new TypeError("argument secret is required");return this._tokenize(h,e(this.saltLength))},s.prototype.secret=function(h){return n(this.secretLength,h)},s.prototype.secretSync=function(){return n.sync(this.secretLength)},s.prototype._tokenize=function(h,f){return f+"-"+d(f+"-"+h)},s.prototype.verify=function(h,f){if(!h||typeof h!="string"||!f||typeof f!="string")return!1;var c=f.indexOf("-");if(c===-1)return!1;var w=f.substr(0,c),p=this._tokenize(h,w);return o(f,p)};function d(l){return a.createHash("sha1").update(l,"ascii").digest("base64").replace(t,"-").replace(r,"_").replace(i,"")}return bn}var wn={},En,os;function Yp(){return os||(os=1,En=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)),En}var Sn,as;function Jp(){if(as)return Sn;as=1;var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function a(r,s){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;s=s||1;var d=r.slice(0,s),l=r.slice(s);return Array.prototype.concat.call([],a(d),a(l))}function i(r){try{return decodeURIComponent(r)}catch{for(var s=r.match(n)||[],d=1;d<s.length;d++)r=a(s,d).join(""),s=r.match(n)||[];return r}}function t(r){for(var s={"%FE%FF":"��","%FF%FE":"��"},d=o.exec(r);d;){try{s[d[0]]=decodeURIComponent(d[0])}catch{var l=i(d[0]);l!==d[0]&&(s[d[0]]=l)}d=o.exec(r)}s["%C2"]="�";for(var h=Object.keys(s),f=0;f<h.length;f++){var c=h[f];r=r.replace(new RegExp(c,"g"),s[c])}return r}return Sn=function(r){if(typeof r!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch{return t(r)}},Sn}var _n,ss;function Kp(){return ss||(ss=1,_n=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const o=e.indexOf(n);return o===-1?[e]:[e.slice(0,o),e.slice(o+n.length)]}),_n}var Rn,us;function Xp(){return us||(us=1,Rn=function(e,n){for(var o={},a=Object.keys(e),i=Array.isArray(n),t=0;t<a.length;t++){var r=a[t],s=e[r];(i?n.indexOf(r)!==-1:n(r,s,e))&&(o[r]=s)}return o}),Rn}var cs;function Qp(){return cs||(cs=1,function(e){const n=Yp(),o=Jp(),a=Kp(),i=Xp(),t=u=>u==null;function r(u){switch(u.arrayFormat){case"index":return v=>(b,g)=>{const E=b.length;return g===void 0||u.skipNull&&g===null||u.skipEmptyString&&g===""?b:g===null?[...b,[l(v,u),"[",E,"]"].join("")]:[...b,[l(v,u),"[",l(E,u),"]=",l(g,u)].join("")]};case"bracket":return v=>(b,g)=>g===void 0||u.skipNull&&g===null||u.skipEmptyString&&g===""?b:g===null?[...b,[l(v,u),"[]"].join("")]:[...b,[l(v,u),"[]=",l(g,u)].join("")];case"comma":case"separator":return v=>(b,g)=>g==null||g.length===0?b:b.length===0?[[l(v,u),"=",l(g,u)].join("")]:[[b,l(g,u)].join(u.arrayFormatSeparator)];default:return v=>(b,g)=>g===void 0||u.skipNull&&g===null||u.skipEmptyString&&g===""?b:g===null?[...b,l(v,u)]:[...b,[l(v,u),"=",l(g,u)].join("")]}}function s(u){let v;switch(u.arrayFormat){case"index":return(b,g,E)=>{if(v=/\[(\d*)\]$/.exec(b),b=b.replace(/\[\d*\]$/,""),!v){E[b]=g;return}E[b]===void 0&&(E[b]={}),E[b][v[1]]=g};case"bracket":return(b,g,E)=>{if(v=/(\[\])$/.exec(b),b=b.replace(/\[\]$/,""),!v){E[b]=g;return}if(E[b]===void 0){E[b]=[g];return}E[b]=[].concat(E[b],g)};case"comma":case"separator":return(b,g,E)=>{const R=typeof g=="string"&&g.includes(u.arrayFormatSeparator),O=typeof g=="string"&&!R&&h(g,u).includes(u.arrayFormatSeparator);g=O?h(g,u):g;const I=R||O?g.split(u.arrayFormatSeparator).map(q=>h(q,u)):g===null?g:h(g,u);E[b]=I};default:return(b,g,E)=>{if(E[b]===void 0){E[b]=g;return}E[b]=[].concat(E[b],g)}}}function d(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(u,v){return v.encode?v.strict?n(u):encodeURIComponent(u):u}function h(u,v){return v.decode?o(u):u}function f(u){return Array.isArray(u)?u.sort():typeof u=="object"?f(Object.keys(u)).sort((v,b)=>Number(v)-Number(b)).map(v=>u[v]):u}function c(u){const v=u.indexOf("#");return v!==-1&&(u=u.slice(0,v)),u}function w(u){let v="";const b=u.indexOf("#");return b!==-1&&(v=u.slice(b)),v}function p(u){u=c(u);const v=u.indexOf("?");return v===-1?"":u.slice(v+1)}function y(u,v){return v.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):v.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function m(u,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),d(v.arrayFormatSeparator);const b=s(v),g=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return g;for(const E of u.split("&")){if(E==="")continue;let[R,O]=a(v.decode?E.replace(/\+/g," "):E,"=");O=O===void 0?null:["comma","separator"].includes(v.arrayFormat)?O:h(O,v),b(h(R,v),O,g)}for(const E of Object.keys(g)){const R=g[E];if(typeof R=="object"&&R!==null)for(const O of Object.keys(R))R[O]=y(R[O],v);else g[E]=y(R,v)}return v.sort===!1?g:(v.sort===!0?Object.keys(g).sort():Object.keys(g).sort(v.sort)).reduce((E,R)=>{const O=g[R];return O&&typeof O=="object"&&!Array.isArray(O)?E[R]=f(O):E[R]=O,E},Object.create(null))}e.extract=p,e.parse=m,e.stringify=(u,v)=>{if(!u)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),d(v.arrayFormatSeparator);const b=O=>v.skipNull&&t(u[O])||v.skipEmptyString&&u[O]==="",g=r(v),E={};for(const O of Object.keys(u))b(O)||(E[O]=u[O]);const R=Object.keys(E);return v.sort!==!1&&R.sort(v.sort),R.map(O=>{const I=u[O];return I===void 0?"":I===null?l(O,v):Array.isArray(I)?I.reduce(g(O),[]).join("&"):l(O,v)+"="+l(I,v)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,v)=>{v=Object.assign({decode:!0},v);const[b,g]=a(u,"#");return Object.assign({url:b.split("?")[0]||"",query:m(p(u),v)},v&&v.parseFragmentIdentifier&&g?{fragmentIdentifier:h(g,v)}:{})},e.stringifyUrl=(u,v)=>{v=Object.assign({encode:!0,strict:!0},v);const b=c(u.url).split("?")[0]||"",g=e.extract(u.url),E=e.parse(g,{sort:!1}),R=Object.assign(E,u.query);let O=e.stringify(R,v);O&&(O=`?${O}`);let I=w(u.url);return u.fragmentIdentifier&&(I=`#${l(u.fragmentIdentifier,v)}`),`${b}${O}${I}`},e.pick=(u,v,b)=>{b=Object.assign({parseFragmentIdentifier:!0},b);const{url:g,query:E,fragmentIdentifier:R}=e.parseUrl(u,b);return e.stringifyUrl({url:g,query:i(E,v),fragmentIdentifier:R},b)},e.exclude=(u,v,b)=>{const g=Array.isArray(v)?E=>!v.includes(E):(E,R)=>!v(E,R);return e.pick(u,g,b)}}(wn)),wn}var Xe={},Qe={},On={},_t={},ls;function uf(){if(ls)return _t;ls=1,Object.defineProperty(_t,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(a,i){(this.$[a]=this.$[a]||[]).push(i)}off(a,i){const t=this.$[a];t&&t.splice(t.indexOf(i)>>>0,1)}each(a){this._.push(a)}none(a){this._.splice(this._.indexOf(a)>>>0,1)}emit(a,...i){const t=this.$[a];t&&t.slice().forEach(r=>r(...i)),this._.slice().forEach(r=>r({type:a,args:i}))}}_t.Emitter=e;function n(o,a,i){function t(...r){return o.off(a,t),i(...r)}return o.on(a,t),t}return _t.once=n,_t}var Wt={},fs;function em(){if(fs)return Wt;fs=1,Object.defineProperty(Wt,"__esModule",{value:!0});function e(n){if(!n)return 0;n=n.toString();for(var o=n.length,a=n.length;a--;){var i=n.charCodeAt(a);56320<=i&&i<=57343&&a--,127<i&&i<=2047?o++:2047<i&&i<=65535&&(o+=2)}return o}return Wt.byteLength=e,Wt}var et={},hs;function tm(){if(hs)return et;hs=1,Object.defineProperty(et,"__esModule",{value:!0}),et.expectNever=et.expectType=void 0;const e=o=>{};et.expectType=e;const n=o=>{throw new TypeError("Unexpected value: "+o)};return et.expectNever=n,et}var Yt={},ds;function Tr(){if(ds)return Yt;ds=1,Object.defineProperty(Yt,"__esModule",{value:!0});class e{constructor(o){this.object=Object.create(null),o&&this.extend(o)}set(o,a){this.object[o.toLowerCase()]=Array.isArray(a)?a.map(String):String(a)}append(o,a){const i=o.toLowerCase(),t=this.object[i];if(t===void 0)Array.isArray(a)?this.object[i]=a.map(String):this.object[i]=String(a);else if(Array.isArray(t))if(Array.isArray(a))for(const r of a)t.push(String(r));else t.push(String(a));else this.object[i]=Array.isArray(a)?[t,...a.map(String)]:[t,String(a)]}get(o){const a=this.object[o.toLowerCase()];return a===void 0?null:Array.isArray(a)?a[0]:a}getAll(o){const a=this.object[o.toLowerCase()];return a===void 0?[]:Array.isArray(a)?[...a]:[a]}has(o){return o.toLowerCase()in this.object}delete(o){delete this.object[o.toLowerCase()]}*entries(){yield*Object.entries(this.object)}*keys(){yield*Object.keys(this.object)}*values(){yield*Object.values(this.object)}clear(){this.object=Object.create(null)}asObject(){return Object.assign(Object.create(null),this.object)}extend(o){if(Symbol.iterator in o)for(const[a,i]of o)this.append(a,i);else if(o instanceof e)for(const[a,i]of o.entries())this.append(a,i);else for(const a of Object.keys(o)){const i=o[a];i!==void 0&&this.append(a,i)}}clone(){return new e(this.object)}}return Yt.Headers=e,Yt}var Rt={},ps;function Ar(){if(ps)return Rt;ps=1,Object.defineProperty(Rt,"__esModule",{value:!0});const e=uf();class n extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}Rt.Signal=n;class o{constructor(){this.signal=new n}abort(){this.signal.emit("abort")}}return Rt.AbortController=o,Rt}var In={},ms;function cf(){return ms||(ms=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function n(a){const i=o(a);return i===null?null:(a.$rawBody=e.kBodyUsed,i)}e.useRawBody=n;function o(a){const{$rawBody:i}=a;if(i===e.kBodyUsed)throw new TypeError("Body already used");if(i===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return i}e.getRawBody=o}(In)),In}var gs;function lf(){return gs||(gs=1,function(e){function n(y){for(var m in y)e.hasOwnProperty(m)||(e[m]=y[m])}Object.defineProperty(e,"__esModule",{value:!0});const o=uf(),a=em(),i=tm(),t=Tr(),r=Ar(),s=cf();n(Tr()),n(Ar());function d(y){const m=new DataView(y);return new TextDecoder("utf-8").decode(m)}function l(y){return new TextEncoder().encode(y)}function h(y){const m=y.getReader();function u(v){return m.read().then(b=>{if(b.done)return v;const g=b.value,E=new Uint8Array(v.byteLength+g.byteLength);return E.set(v,0),E.set(g,v.byteLength),u(E)})}return u(new Uint8Array(0))}class f{constructor(m){const u=m===void 0?null:m;this.$rawBody=u}get bodyUsed(){return this.$rawBody===s.kBodyUsed||this.$rawBody===s.kBodyDestroyed}json(){return this.text().then(m=>JSON.parse(m))}text(){const m=s.useRawBody(this);return m===null?Promise.resolve(""):typeof m=="string"?Promise.resolve(m):m instanceof ArrayBuffer?Promise.resolve(d(m)):h(m).then(d)}arrayBuffer(){const m=s.useRawBody(this);return m===null?Promise.resolve(new ArrayBuffer(0)):m instanceof ArrayBuffer?Promise.resolve(m):typeof m=="string"?Promise.resolve(l(m).buffer):h(m)}readableStream(){const m=s.useRawBody(this);return m===null?new ReadableStream({start(u){u.close()}}):typeof m=="string"?new ReadableStream({start(u){u.enqueue(l(m)),u.close()}}):m instanceof ArrayBuffer?new ReadableStream({start(u){u.enqueue(new Uint8Array(m)),u.close()}}):m}clone(){const m=s.getRawBody(this);if(m instanceof ReadableStream){const[u,v]=m.tee();return this.$rawBody=u,new f(v)}return new f(m)}destroy(){const m=s.getRawBody(this);return this.$rawBody=s.kBodyDestroyed,m instanceof ReadableStream?m.cancel():Promise.resolve()}}e.Body=f;class c extends f{constructor(m,u={}){const v=typeof m=="string"?void 0:m.clone(),b=u.body||(v?s.getRawBody(v):null),g=v&&!u.headers?v.headers:p(b,u.headers,u.omitDefaultHeaders===!0);super(b),this.url=typeof m=="string"?m:m.url,this.method=u.method||v&&v.method||"GET",this.signal=u.signal||v&&v.signal||new r.Signal,this.headers=g,this.trailer=v&&!u.trailer?v.trailer:Promise.resolve(u.trailer).then(E=>new t.Headers(E)),o.once(this.signal,"abort",()=>this.destroy())}clone(){const m=super.clone();return new c(this.url,{body:s.getRawBody(m),headers:this.headers.clone(),omitDefaultHeaders:!0,method:this.method,signal:this.signal,trailer:this.trailer.then(u=>u.clone())})}}e.Request=c;class w extends f{get ok(){return this.status>=200&&this.status<300}constructor(m,u={}){const v=p(m,u.headers,u.omitDefaultHeaders===!0);super(m),this.status=u.status||200,this.statusText=u.statusText||"",this.headers=v,this.trailer=Promise.resolve(u.trailer).then(b=>new t.Headers(b))}clone(){const m=super.clone();return new w(s.getRawBody(m),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(u=>u.clone())})}}e.Response=w;function p(y,m,u){const v=new t.Headers(m);if(y==null)return v;if(typeof y=="string")return!u&&!v.has("Content-Type")&&v.set("Content-Type","text/plain"),!u&&!v.has("Content-Length")&&v.set("Content-Length",a.byteLength(y).toString()),v;if(!u&&!v.has("Content-Type")&&v.set("Content-Type","application/octet-stream"),y instanceof ArrayBuffer)return!u&&!v.has("Content-Length")&&v.set("Content-Length",String(y.byteLength)),v;if(y instanceof ReadableStream)return v;throw i.expectType(y),new TypeError("Unknown body type")}}(On)),On}var Ce={},ys;function rm(){if(ys)return Ce;ys=1,Object.defineProperty(Ce,"__esModule",{value:!0});const e=lf(),n=cf();class o extends e.Response{constructor(c,w){super(c,w),this.url=w.url}}Ce.XhrResponse=o;class a extends Error{constructor(c,w){super(w),this.request=c,this.code="EBLOCKED"}}Ce.BlockedRequestError=a;class i extends Error{constructor(c,w){super(w),this.request=c,this.code="EINVALID"}}Ce.InvalidRequestError=i;class t extends Error{constructor(c,w){super(w),this.request=c,this.code="EUNAVAILABLE"}}Ce.ConnectionError=t;class r extends Error{constructor(c,w){super(w),this.request=c,this.code="ECSP"}}Ce.CSPError=r;class s extends Error{constructor(c,w){super(w),this.request=c,this.code="ETYPE"}}Ce.TypeError=s;class d extends Error{constructor(c,w){super(w),this.request=c,this.code="EABORT"}}Ce.AbortError=d;function l(f={}){return function(c){return new Promise(function(w,p){const y=f.type||"arraybuffer",m=c.method.toUpperCase();if(c.signal.aborted)return p(new d(c,"Request has been aborted"));if(window.location.protocol==="https:"&&c.url.startsWith("http:"))return p(new a(c,`The connection to "${c.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(c.url))return p(new i(c,`Refusing to connect to "${c.url}"`));const u=new XMLHttpRequest;let v=!1;function b(){const E=new o(y==="text"?u.responseText:u.response,{status:u.status===1223?204:u.status,statusText:u.statusText,headers:h(u.getAllResponseHeaders()),omitDefaultHeaders:!0,url:u.responseURL});return c.signal.emit("responseStarted"),c.signal.emit("responseEnded"),w(E)}function g(){return p(new t(c,`Unable to connect to "${c.url}"`))}u.onload=b,u.onabort=b,u.onerror=g,u.onprogress=E=>{c.signal.emit("requestBytes",E.loaded)},m!=="GET"&&m!=="HEAD"&&u.upload&&(v=!0,u.upload.onprogress=E=>{c.signal.emit("responseBytes",E.loaded)},u.upload.onloadend=()=>{c.signal.emit("requestEnded")});try{u.open(m,c.url)}catch{return p(new r(c,`Refused to connect to "${c.url}"`))}if(f.withCredentials&&(u.withCredentials=!0),f.overrideMimeType&&u.overrideMimeType(f.overrideMimeType),y!=="text")try{u.responseType=y}finally{if(u.responseType!==y)return p(new s(c,`Unsupported type: ${y}`))}for(const[E,R]of c.headers.entries())if(Array.isArray(R))for(const O of R)u.setRequestHeader(E,O);else u.setRequestHeader(E,R);c.signal.emit("requestStarted"),v||c.signal.emit("requestEnded"),c.signal.on("abort",()=>u.abort()),u.send(n.useRawBody(c))})}}Ce.transport=l;function h(f){const c=[],w=f.split(/\r?\n/);for(const p of w)if(p){const y=p.indexOf(":"),m=p.substr(0,y).trim(),u=p.substr(y+1).trim();c.push([m,u])}return c}return Ce}var Ot={},vs;function Qo(){if(vs)return Ot;vs=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.toFetch=void 0;function e(n,o){function a(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...t){const r=t.length===1&&t[0]instanceof o?t[0]:new o(...t);return n(r,a)}}return Ot.toFetch=e,Ot}var bs;function nm(){return bs||(bs=1,function(e){var n=Qe&&Qe.__createBinding||(Object.create?function(r,s,d,l){l===void 0&&(l=d),Object.defineProperty(r,l,{enumerable:!0,get:function(){return s[d]}})}:function(r,s,d,l){l===void 0&&(l=d),r[l]=s[d]}),o=Qe&&Qe.__exportStar||function(r,s){for(var d in r)d!=="default"&&!Object.prototype.hasOwnProperty.call(s,d)&&n(s,r,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const a=lf();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return a.Request}});const i=rm();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return i.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return i.XhrResponse}});const t=Qo();o(Qo(),e),o(Ar(),e),o(Tr(),e),e.middleware=i.transport(),e.fetch=t.toFetch(e.middleware,a.Request)}(Qe)),Qe}var ws;function im(){return ws||(ws=1,function(e){var n=Xe&&Xe.__createBinding||(Object.create?function(i,t,r,s){s===void 0&&(s=r),Object.defineProperty(i,s,{enumerable:!0,get:function(){return t[r]}})}:function(i,t,r,s){s===void 0&&(s=r),i[s]=t[r]}),o=Xe&&Xe.__exportStar||function(i,t){for(var r in i)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,i,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const a=nm();o(Qo(),e),o(Ar(),e),o(Tr(),e),e.fetch=a.fetch,e.middleware=a.middleware}(Xe)),Xe}var de={},Es;function st(){return Es||(Es=1,de.endianness=function(){return"LE"},de.hostname=function(){return typeof location<"u"?location.hostname:""},de.loadavg=function(){return[]},de.uptime=function(){return 0},de.freemem=function(){return Number.MAX_VALUE},de.totalmem=function(){return Number.MAX_VALUE},de.cpus=function(){return[]},de.type=function(){return"Browser"},de.release=function(){return typeof navigator<"u"?navigator.appVersion:""},de.networkInterfaces=de.getNetworkInterfaces=function(){return{}},de.arch=function(){return"javascript"},de.platform=function(){return"browser"},de.tmpdir=de.tmpDir=function(){return"/tmp"},de.EOL=`
|
|
101
|
-
`,de.homedir=function(){return"/"}),de}var Tn={},Jt={},An,Ss;function Te(){if(Ss)return An;Ss=1;function e(p){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(p)}function n(p,y,m){return Object.defineProperty(p,"prototype",{writable:!1}),p}function o(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function a(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),y&&f(p,y)}function i(p){var y=l();return function(){var u=c(p),v;if(y){var b=c(this).constructor;v=Reflect.construct(u,arguments,b)}else v=u.apply(this,arguments);return t(this,v)}}function t(p,y){if(y&&(e(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(p)}function r(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function s(p){var y=typeof Map=="function"?new Map:void 0;return s=function(u){if(u===null||!h(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof y<"u"){if(y.has(u))return y.get(u);y.set(u,v)}function v(){return d(u,arguments,c(this).constructor)}return v.prototype=Object.create(u.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),f(v,u)},s(p)}function d(p,y,m){return l()?d=Reflect.construct.bind():d=function(v,b,g){var E=[null];E.push.apply(E,b);var R=Function.bind.apply(v,E),O=new R;return g&&f(O,g.prototype),O},d.apply(null,arguments)}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(p){return Function.toString.call(p).indexOf("[native code]")!==-1}function f(p,y){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,v){return u.__proto__=v,u},f(p,y)}function c(p){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},c(p)}var w=function(p){a(m,p);var y=i(m);function m(u){var v;return o(this,m),v=y.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
102
|
-
Found: `.concat(u.toString().split(`
|
|
103
|
-
`)[0],`
|
|
104
|
-
`)),Error.captureStackTrace(r(v),m),v}return n(m)}(s(Error));return An=function(p){if(p.length>2)throw new w(p);function y(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=u}y.prototype.transform=p;function m(u){return new y(u)}return m.Format=y,m},An}var It={exports:{}},Cn={exports:{}},Pn={exports:{}},jn={exports:{}},_s;function om(){return _s||(_s=1,function(e){var n={};e.exports=n;var o={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(o).forEach(function(a){var i=o[a],t=n[a]=[];t.open="\x1B["+i[0]+"m",t.close="\x1B["+i[1]+"m"})}(jn)),jn.exports}var xn,Rs;function am(){return Rs||(Rs=1,xn=function(e,n){n=n||X.argv;var o=n.indexOf("--"),a=/^-{1,2}/.test(e)?"":"--",i=n.indexOf(a+e);return i!==-1&&(o===-1?!0:i<o)}),xn}var qn,Os;function sm(){if(Os)return qn;Os=1;var e={},n=st(),o=am(),a=e,i=void 0;o("no-color")||o("no-colors")||o("color=false")?i=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(i=!0),"FORCE_COLOR"in a&&(i=a.FORCE_COLOR.length===0||parseInt(a.FORCE_COLOR,10)!==0);function t(d){return d===0?!1:{level:d,hasBasic:!0,has256:d>=2,has16m:d>=3}}function r(d){if(i===!1)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(d&&!d.isTTY&&i!==!0)return 0;var l=i?1:0;if(X.platform==="win32"){var h=n.release().split(".");return Number(X.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(c){return c in a})||a.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var f=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return f>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM==="dumb",l)}function s(d){var l=r(d);return t(l)}return qn={supportsColor:s,stdout:s(X.stdout),stderr:s(X.stderr)},qn}var Ln={exports:{}},Is;function um(){return Is||(Is=1,function(e){e.exports=function(o,a){var i="";o=o||"Run the trap, drop the bass",o=o.split("");var t={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return o.forEach(function(r){r=r.toLowerCase();var s=t[r]||[" "],d=Math.floor(Math.random()*s.length);typeof t[r]<"u"?i+=t[r][d]:i+=r}),i}}(Ln)),Ln.exports}var kn={exports:{}},Ts;function cm(){return Ts||(Ts=1,function(e){e.exports=function(o,a){o=o||" he is here ";var i={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},t=[].concat(i.up,i.down,i.mid);function r(l){var h=Math.floor(Math.random()*l);return h}function s(l){var h=!1;return t.filter(function(f){h=f===l}),h}function d(l,h){var f="",c,w;h=h||{},h.up=typeof h.up<"u"?h.up:!0,h.mid=typeof h.mid<"u"?h.mid:!0,h.down=typeof h.down<"u"?h.down:!0,h.size=typeof h.size<"u"?h.size:"maxi",l=l.split("");for(w in l)if(!s(w)){switch(f=f+l[w],c={up:0,down:0,mid:0},h.size){case"mini":c.up=r(8),c.mid=r(2),c.down=r(8);break;case"maxi":c.up=r(16)+3,c.mid=r(4)+1,c.down=r(64)+3;break;default:c.up=r(8)+1,c.mid=r(6)/2,c.down=r(8)+1;break}var p=["up","mid","down"];for(var y in p)for(var m=p[y],u=0;u<=c[m];u++)h[m]&&(f=f+i[m][r(i[m].length)])}return f}return d(o,a)}}(kn)),kn.exports}var Nn={exports:{}},As;function lm(){return As||(As=1,function(e){e.exports=function(n){return function(o,a,i){if(o===" ")return o;switch(a%3){case 0:return n.red(o);case 1:return n.white(o);case 2:return n.blue(o)}}}}(Nn)),Nn.exports}var Dn={exports:{}},Cs;function fm(){return Cs||(Cs=1,function(e){e.exports=function(n){return function(o,a,i){return a%2===0?o:n.inverse(o)}}}(Dn)),Dn.exports}var Mn={exports:{}},Ps;function hm(){return Ps||(Ps=1,function(e){e.exports=function(n){var o=["red","yellow","green","blue","magenta"];return function(a,i,t){return a===" "?a:n[o[i++%o.length]](a)}}}(Mn)),Mn.exports}var Fn={exports:{}},js;function dm(){return js||(js=1,function(e){e.exports=function(n){var o=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(a,i,t){return a===" "?a:n[o[Math.round(Math.random()*(o.length-2))]](a)}}}(Fn)),Fn.exports}var xs;function pm(){return xs||(xs=1,function(e){var n={};e.exports=n,n.themes={};var o=ve(),a=n.styles=om(),i=Object.defineProperties,t=new RegExp(/[\r\n]+/g);n.supportsColor=sm().supportsColor,typeof n.enabled>"u"&&(n.enabled=n.supportsColor()!==!1),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(y){return(""+y).replace(/\x1B\[\d+m/g,"")},n.stylize=function(m,u){if(!n.enabled)return m+"";var v=a[u];return!v&&u in n?n[u](m):v.open+m+v.close};var r=/[|\\{}()[\]^$+*?.]/g,s=function(y){if(typeof y!="string")throw new TypeError("Expected a string");return y.replace(r,"\\$&")};function d(y){var m=function u(){return f.apply(u,arguments)};return m._styles=y,m.__proto__=h,m}var l=function(){var y={};return a.grey=a.gray,Object.keys(a).forEach(function(m){a[m].closeRe=new RegExp(s(a[m].close),"g"),y[m]={get:function(){return d(this._styles.concat(m))}}}),y}(),h=i(function(){},l);function f(){var y=Array.prototype.slice.call(arguments),m=y.map(function(E){return E!=null&&E.constructor===String?E:o.inspect(E)}).join(" ");if(!n.enabled||!m)return m;for(var u=m.indexOf(`
|
|
105
|
-
`)!=-1,v=this._styles,b=v.length;b--;){var g=a[v[b]];m=g.open+m.replace(g.closeRe,g.open)+g.close,u&&(m=m.replace(t,function(E){return g.close+E+g.open}))}return m}n.setTheme=function(y){if(typeof y=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var m in y)(function(u){n[u]=function(v){if(typeof y[u]=="object"){var b=v;for(var g in y[u])b=n[y[u][g]](b);return b}return n[y[u]](v)}})(m)};function c(){var y={};return Object.keys(l).forEach(function(m){y[m]={get:function(){return d([m])}}}),y}var w=function(m,u){var v=u.split("");return v=v.map(m),v.join("")};n.trap=um(),n.zalgo=cm(),n.maps={},n.maps.america=lm()(n),n.maps.zebra=fm()(n),n.maps.rainbow=hm()(n),n.maps.random=dm()(n);for(var p in n.maps)(function(y){n[y]=function(m){return w(n.maps[y],m)}})(p);i(n,c())}(Pn)),Pn.exports}var qs;function ff(){return qs||(qs=1,function(e){var n=pm();e.exports=n}(Cn)),Cn.exports}var Un={},Bn={},Kt={},Ls;function mm(){return Ls||(Ls=1,Kt.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},Kt.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),Kt}var Xt={},ks;function gm(){return ks||(ks=1,Xt.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},Xt.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),Xt}var Qt={},Ns;function ym(){return Ns||(Ns=1,Qt.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},Qt.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),Qt}var Ds;function vm(){return Ds||(Ds=1,function(e){Object.defineProperty(e,"cli",{value:mm()}),Object.defineProperty(e,"npm",{value:gm()}),Object.defineProperty(e,"syslog",{value:ym()})}(Bn)),Bn}var Ms;function he(){return Ms||(Ms=1,function(e){Object.defineProperty(e,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(e,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(e,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(e,"configs",{value:vm()})}(Un)),Un}var Fs;function pa(){if(Fs)return It.exports;Fs=1;function e(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}function n(l,h){for(var f=0;f<h.length;f++){var c=h[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,h,f){return h&&n(l.prototype,h),f&&n(l,f),Object.defineProperty(l,"prototype",{writable:!1}),l}var a=ff(),i=he(),t=i.LEVEL,r=i.MESSAGE;a.enabled=!0;var s=/\s+/,d=function(){function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,l),h.colors&&this.addColors(h.colors),this.options=h}return o(l,[{key:"addColors",value:function(f){return l.addColors(f)}},{key:"colorize",value:function(f,c,w){if(typeof w>"u"&&(w=c),!Array.isArray(l.allColors[f]))return a[l.allColors[f]](w);for(var p=0,y=l.allColors[f].length;p<y;p++)w=a[l.allColors[f][p]](w);return w}},{key:"transform",value:function(f,c){return c.all&&typeof f[r]=="string"&&(f[r]=this.colorize(f[t],f.level,f[r])),(c.level||c.all||!c.message)&&(f.level=this.colorize(f[t],f.level)),(c.all||c.message)&&(f.message=this.colorize(f[t],f.level,f.message)),f}}],[{key:"addColors",value:function(f){var c=Object.keys(f).reduce(function(w,p){return w[p]=s.test(f[p])?f[p].split(s):f[p],w},{});return l.allColors=Object.assign({},l.allColors||{},c),l.allColors}}]),l}();return It.exports=function(l){return new d(l)},It.exports.Colorizer=It.exports.Format=d,It.exports}var $n,Us;function bm(){if(Us)return $n;Us=1;var e=pa(),n=e.Colorizer;return $n=function(o){return n.addColors(o.colors||o),o},$n}var Vn,Bs;function wm(){if(Bs)return Vn;Bs=1;var e=Te();return Vn=e(function(n){return n.message=" ".concat(n.message),n}),Vn}var er={exports:{}},Tt={exports:{}},$s;function hf(){if($s)return Tt.exports;$s=1;function e(p){return i(p)||a(p)||o(p)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
106
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(p,y){if(p){if(typeof p=="string")return t(p,y);var m=Object.prototype.toString.call(p).slice(8,-1);if(m==="Object"&&p.constructor&&(m=p.constructor.name),m==="Map"||m==="Set")return Array.from(p);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return t(p,y)}}function a(p){if(typeof Symbol<"u"&&p[Symbol.iterator]!=null||p["@@iterator"]!=null)return Array.from(p)}function i(p){if(Array.isArray(p))return t(p)}function t(p,y){(y==null||y>p.length)&&(y=p.length);for(var m=0,u=new Array(y);m<y;m++)u[m]=p[m];return u}function r(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function s(p,y){for(var m=0;m<y.length;m++){var u=y[m];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,u.key,u)}}function d(p,y,m){return y&&s(p.prototype,y),m&&s(p,m),Object.defineProperty(p,"prototype",{writable:!1}),p}var l=he(),h=l.configs,f=l.LEVEL,c=l.MESSAGE,w=function(){function p(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:h.npm.levels};r(this,p),this.paddings=p.paddingForLevels(y.levels,y.filler),this.options=y}return d(p,[{key:"transform",value:function(m,u){return m.message="".concat(this.paddings[m[f]]).concat(m.message),m[c]&&(m[c]="".concat(this.paddings[m[f]]).concat(m[c])),m}}],[{key:"getLongestLevel",value:function(m){var u=Object.keys(m).map(function(v){return v.length});return Math.max.apply(Math,e(u))}},{key:"paddingForLevel",value:function(m,u,v){var b=v+1-m.length,g=Math.floor(b/u.length),E="".concat(u).concat(u.repeat(g));return E.slice(0,b)}},{key:"paddingForLevels",value:function(m){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",v=p.getLongestLevel(m);return Object.keys(m).reduce(function(b,g){return b[g]=p.paddingForLevel(g,u,v),b},{})}}]),p}();return Tt.exports=function(p){return new w(p)},Tt.exports.Padder=Tt.exports.Format=w,Tt.exports}var Vs;function Em(){if(Vs)return er.exports;Vs=1;function e(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function n(f,c){for(var w=0;w<c.length;w++){var p=c[w];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}function o(f,c,w){return c&&n(f.prototype,c),Object.defineProperty(f,"prototype",{writable:!1}),f}var a=pa(),i=a.Colorizer,t=hf(),r=t.Padder,s=he(),d=s.configs,l=s.MESSAGE,h=function(){function f(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,f),c.levels||(c.levels=d.cli.levels),this.colorizer=new i(c),this.padder=new r(c),this.options=c}return o(f,[{key:"transform",value:function(w,p){return this.colorizer.transform(this.padder.transform(w,p),p),w[l]="".concat(w.level,":").concat(w.message),w}}]),f}();return er.exports=function(f){return new h(f)},er.exports.Format=h,er.exports}var tr={exports:{}},Gs;function Sm(){if(Gs)return tr.exports;Gs=1;var e=Te();function n(a){if(a.every(o))return function(i){for(var t=i,r=0;r<a.length;r++)if(t=a[r].transform(t,a[r].options),!t)return!1;return t}}function o(a){if(typeof a.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
|
107
|
-
`));return!0}return tr.exports=function(){for(var a=arguments.length,i=new Array(a),t=0;t<a;t++)i[t]=arguments[t];var r=e(n(i)),s=r();return s.Format=r.Format,s},tr.exports.cascade=n,tr.exports}var Gn,zs;function _m(){if(zs)return Gn;zs=1;function e(t,r,s){return r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t}var n=Te(),o=he(),a=o.LEVEL,i=o.MESSAGE;return Gn=n(function(t,r){var s=r.stack;if(t instanceof Error){var d,l=Object.assign({},t,(d={level:t.level},e(d,a,t[a]||t.level),e(d,"message",t.message),e(d,i,t[i]||t.message),d));return s&&(l.stack=t.stack),l}if(!(t.message instanceof Error))return t;var h=t.message;return Object.assign(t,h),t.message=h.message,t[i]=h.message,s&&(t.stack=h.stack),t}),Gn}var rr={exports:{}},Hs;function Ft(){return Hs||(Hs=1,function(e,n){const{hasOwnProperty:o}=Object.prototype,a=b();a.configure=b,a.stringify=a,a.default=a,n.stringify=a,n.configure=b,e.exports=a;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,t=new RegExp(i,"g"),r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function s(g){if(g.length===2){const R=g.charCodeAt(1);return`${g[0]}\\u${R.toString(16)}`}const E=g.charCodeAt(0);return r.length>E?r[E]:`\\u${E.toString(16)}`}function d(g){if(g.length<5e3&&!i.test(g))return g;if(g.length>100)return g.replace(t,s);let E="",R=0;for(let O=0;O<g.length;O++){const I=g.charCodeAt(O);if(I===34||I===92||I<32)E+=`${g.slice(R,O)}${r[I]}`,R=O+1;else if(I>=55296&&I<=57343){if(I<=56319&&O+1<g.length){const q=g.charCodeAt(O+1);if(q>=56320&&q<=57343){O++;continue}}E+=`${g.slice(R,O)}\\u${I.toString(16)}`,R=O+1}}return E+=g.slice(R),E}function l(g){if(g.length>200)return g.sort();for(let E=1;E<g.length;E++){const R=g[E];let O=E;for(;O!==0&&g[O-1]>R;)g[O]=g[O-1],O--;g[O]=R}return g}const h=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function f(g){return h.call(g)!==void 0&&g.length!==0}function c(g,E,R){g.length<R&&(R=g.length);const O=E===","?"":" ";let I=`"0":${O}${g[0]}`;for(let q=1;q<R;q++)I+=`${E}"${q}":${O}${g[q]}`;return I}function w(g){if(o.call(g,"circularValue")){const E=g.circularValue;if(typeof E=="string")return`"${E}"`;if(E==null)return E;if(E===Error||E===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function p(g,E){let R;if(o.call(g,E)&&(R=g[E],typeof R!="boolean"))throw new TypeError(`The "${E}" argument must be of type boolean`);return R===void 0?!0:R}function y(g,E){let R;if(o.call(g,E)){if(R=g[E],typeof R!="number")throw new TypeError(`The "${E}" argument must be of type number`);if(!Number.isInteger(R))throw new TypeError(`The "${E}" argument must be an integer`);if(R<1)throw new RangeError(`The "${E}" argument must be >= 1`)}return R===void 0?1/0:R}function m(g){return g===1?"1 item":`${g} items`}function u(g){const E=new Set;for(const R of g)(typeof R=="string"||typeof R=="number")&&E.add(String(R));return E}function v(g){if(o.call(g,"strict")){const E=g.strict;if(typeof E!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(E)return R=>{let O=`Object can not safely be stringified. Received type ${typeof R}`;throw typeof R!="function"&&(O+=` (${R.toString()})`),new Error(O)}}}function b(g){g={...g};const E=v(g);E&&(g.bigint===void 0&&(g.bigint=!1),"circularValue"in g||(g.circularValue=Error));const R=w(g),O=p(g,"bigint"),I=p(g,"deterministic"),q=y(g,"maximumDepth"),G=y(g,"maximumBreadth");function V(M,C,T,A,L,B){let U=C[M];switch(typeof U=="object"&&U!==null&&typeof U.toJSON=="function"&&(U=U.toJSON(M)),U=A.call(C,M,U),typeof U){case"string":return`"${d(U)}"`;case"object":{if(U===null)return"null";if(T.indexOf(U)!==-1)return R;let D="",j=",";const k=B;if(Array.isArray(U)){if(U.length===0)return"[]";if(q<T.length+1)return'"[Array]"';T.push(U),L!==""&&(B+=L,D+=`
|
|
108
|
-
${B}`,j=`,
|
|
109
|
-
${B}`);const te=Math.min(U.length,G);let ie=0;for(;ie<te-1;ie++){const fe=V(ie,U,T,A,L,B);D+=fe!==void 0?fe:"null",D+=j}const ae=V(ie,U,T,A,L,B);if(D+=ae!==void 0?ae:"null",U.length-1>G){const fe=U.length-G-1;D+=`${j}"... ${m(fe)} not stringified"`}return L!==""&&(D+=`
|
|
110
|
-
${k}`),T.pop(),`[${D}]`}let F=Object.keys(U);const H=F.length;if(H===0)return"{}";if(q<T.length+1)return'"[Object]"';let Z="",W="";L!==""&&(B+=L,j=`,
|
|
111
|
-
${B}`,Z=" ");let J=Math.min(H,G);f(U)&&(D+=c(U,j,G),F=F.slice(U.length),J-=U.length,W=j),I&&(F=l(F)),T.push(U);for(let te=0;te<J;te++){const ie=F[te],ae=V(ie,U,T,A,L,B);ae!==void 0&&(D+=`${W}"${d(ie)}":${Z}${ae}`,W=j)}if(H>G){const te=H-G;D+=`${W}"...":${Z}"${m(te)} not stringified"`,W=j}return L!==""&&W.length>1&&(D=`
|
|
112
|
-
${B}${D}
|
|
113
|
-
${k}`),T.pop(),`{${D}}`}case"number":return isFinite(U)?String(U):E?E(U):"null";case"boolean":return U===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(U);default:return E?E(U):void 0}}function S(M,C,T,A,L,B){switch(typeof C=="object"&&C!==null&&typeof C.toJSON=="function"&&(C=C.toJSON(M)),typeof C){case"string":return`"${d(C)}"`;case"object":{if(C===null)return"null";if(T.indexOf(C)!==-1)return R;const U=B;let D="",j=",";if(Array.isArray(C)){if(C.length===0)return"[]";if(q<T.length+1)return'"[Array]"';T.push(C),L!==""&&(B+=L,D+=`
|
|
114
|
-
${B}`,j=`,
|
|
115
|
-
${B}`);const H=Math.min(C.length,G);let Z=0;for(;Z<H-1;Z++){const J=S(Z,C[Z],T,A,L,B);D+=J!==void 0?J:"null",D+=j}const W=S(Z,C[Z],T,A,L,B);if(D+=W!==void 0?W:"null",C.length-1>G){const J=C.length-G-1;D+=`${j}"... ${m(J)} not stringified"`}return L!==""&&(D+=`
|
|
116
|
-
${U}`),T.pop(),`[${D}]`}T.push(C);let k="";L!==""&&(B+=L,j=`,
|
|
117
|
-
${B}`,k=" ");let F="";for(const H of A){const Z=S(H,C[H],T,A,L,B);Z!==void 0&&(D+=`${F}"${d(H)}":${k}${Z}`,F=j)}return L!==""&&F.length>1&&(D=`
|
|
118
|
-
${B}${D}
|
|
119
|
-
${U}`),T.pop(),`{${D}}`}case"number":return isFinite(C)?String(C):E?E(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(C);default:return E?E(C):void 0}}function _(M,C,T,A,L){switch(typeof C){case"string":return`"${d(C)}"`;case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(M),typeof C!="object")return _(M,C,T,A,L);if(C===null)return"null"}if(T.indexOf(C)!==-1)return R;const B=L;if(Array.isArray(C)){if(C.length===0)return"[]";if(q<T.length+1)return'"[Array]"';T.push(C),L+=A;let Z=`
|
|
120
|
-
${L}`;const W=`,
|
|
121
|
-
${L}`,J=Math.min(C.length,G);let te=0;for(;te<J-1;te++){const ae=_(te,C[te],T,A,L);Z+=ae!==void 0?ae:"null",Z+=W}const ie=_(te,C[te],T,A,L);if(Z+=ie!==void 0?ie:"null",C.length-1>G){const ae=C.length-G-1;Z+=`${W}"... ${m(ae)} not stringified"`}return Z+=`
|
|
122
|
-
${B}`,T.pop(),`[${Z}]`}let U=Object.keys(C);const D=U.length;if(D===0)return"{}";if(q<T.length+1)return'"[Object]"';L+=A;const j=`,
|
|
123
|
-
${L}`;let k="",F="",H=Math.min(D,G);f(C)&&(k+=c(C,j,G),U=U.slice(C.length),H-=C.length,F=j),I&&(U=l(U)),T.push(C);for(let Z=0;Z<H;Z++){const W=U[Z],J=_(W,C[W],T,A,L);J!==void 0&&(k+=`${F}"${d(W)}": ${J}`,F=j)}if(D>G){const Z=D-G;k+=`${F}"...": "${m(Z)} not stringified"`,F=j}return F!==""&&(k=`
|
|
124
|
-
${L}${k}
|
|
125
|
-
${B}`),T.pop(),`{${k}}`}case"number":return isFinite(C)?String(C):E?E(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(C);default:return E?E(C):void 0}}function P(M,C,T){switch(typeof C){case"string":return`"${d(C)}"`;case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(M),typeof C!="object")return P(M,C,T);if(C===null)return"null"}if(T.indexOf(C)!==-1)return R;let A="";if(Array.isArray(C)){if(C.length===0)return"[]";if(q<T.length+1)return'"[Array]"';T.push(C);const j=Math.min(C.length,G);let k=0;for(;k<j-1;k++){const H=P(k,C[k],T);A+=H!==void 0?H:"null",A+=","}const F=P(k,C[k],T);if(A+=F!==void 0?F:"null",C.length-1>G){const H=C.length-G-1;A+=`,"... ${m(H)} not stringified"`}return T.pop(),`[${A}]`}let L=Object.keys(C);const B=L.length;if(B===0)return"{}";if(q<T.length+1)return'"[Object]"';let U="",D=Math.min(B,G);f(C)&&(A+=c(C,",",G),L=L.slice(C.length),D-=C.length,U=","),I&&(L=l(L)),T.push(C);for(let j=0;j<D;j++){const k=L[j],F=P(k,C[k],T);F!==void 0&&(A+=`${U}"${d(k)}":${F}`,U=",")}if(B>G){const j=B-G;A+=`${U}"...":"${m(j)} not stringified"`}return T.pop(),`{${A}}`}case"number":return isFinite(C)?String(C):E?E(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(C);default:return E?E(C):void 0}}function x(M,C,T){if(arguments.length>1){let A="";if(typeof T=="number"?A=" ".repeat(Math.min(T,10)):typeof T=="string"&&(A=T.slice(0,10)),C!=null){if(typeof C=="function")return V("",{"":M},[],C,A,"");if(Array.isArray(C))return S("",M,[],u(C),A,"")}if(A.length!==0)return _("",M,[],A,"")}return P("",M,[])}return x}}(rr,rr.exports)),rr.exports}var zn,Zs;function Rm(){if(Zs)return zn;Zs=1;var e=Te(),n=he(),o=n.MESSAGE,a=Ft();function i(t,r){return typeof r=="bigint"?r.toString():r}return zn=e(function(t,r){var s=a.configure(r);return t[o]=s(t,r.replacer||i,r.space),t}),zn}var Hn,Ws;function Om(){if(Ws)return Hn;Ws=1;var e=Te();return Hn=e(function(n,o){return o.message?(n.message="[".concat(o.label,"] ").concat(n.message),n):(n.label=o.label,n)}),Hn}var Zn,Ys;function Im(){if(Ys)return Zn;Ys=1;var e=Te(),n=he(),o=n.MESSAGE,a=Ft();return Zn=e(function(i){var t={};return i.message&&(t["@message"]=i.message,delete i.message),i.timestamp&&(t["@timestamp"]=i.timestamp,delete i.timestamp),t["@fields"]=i,i[o]=a(t),i}),Zn}var Wn,Js;function Tm(){if(Js)return Wn;Js=1;function e(i,t,r){return t in i?Object.defineProperty(i,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[t]=r,i}var n=Te();function o(i,t,r){var s=t.reduce(function(l,h){return l[h]=i[h],delete i[h],l},{}),d=Object.keys(i).reduce(function(l,h){return l[h]=i[h],delete i[h],l},{});return Object.assign(i,s,e({},r,d)),i}function a(i,t,r){return i[r]=t.reduce(function(s,d){return s[d]=i[d],delete i[d],s},{}),i}return Wn=n(function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="metadata";t.key&&(r=t.key);var s=[];return!t.fillExcept&&!t.fillWith&&(s.push("level"),s.push("message")),t.fillExcept&&(s=t.fillExcept),s.length>0?o(i,s,r):t.fillWith?a(i,t.fillWith,r):i}),Wn}var Yn,Ks;function df(){if(Ks)return Yn;Ks=1;var e=1e3,n=e*60,o=n*60,a=o*24,i=a*7,t=a*365.25;Yn=function(h,f){f=f||{};var c=typeof h;if(c==="string"&&h.length>0)return r(h);if(c==="number"&&isFinite(h))return f.long?d(h):s(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function r(h){if(h=String(h),!(h.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(f){var c=parseFloat(f[1]),w=(f[2]||"ms").toLowerCase();switch(w){case"years":case"year":case"yrs":case"yr":case"y":return c*t;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function s(h){var f=Math.abs(h);return f>=a?Math.round(h/a)+"d":f>=o?Math.round(h/o)+"h":f>=n?Math.round(h/n)+"m":f>=e?Math.round(h/e)+"s":h+"ms"}function d(h){var f=Math.abs(h);return f>=a?l(h,f,a,"day"):f>=o?l(h,f,o,"hour"):f>=n?l(h,f,n,"minute"):f>=e?l(h,f,e,"second"):h+" ms"}function l(h,f,c,w){var p=f>=c*1.5;return Math.round(h/c)+" "+w+(p?"s":"")}return Yn}var Jn,Xs;function Am(){if(Xs)return Jn;Xs=1;var e=void 0,n=Te(),o=df();return Jn=n(function(a){var i=+new Date;return e.diff=i-(e.prevTime||i),e.prevTime=i,a.ms="+".concat(o(e.diff)),a}),Jn}var Kn,Qs;function Cm(){if(Qs)return Kn;Qs=1;var e=ve().inspect,n=Te(),o=he(),a=o.LEVEL,i=o.MESSAGE,t=o.SPLAT;return Kn=n(function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=Object.assign({},r);return delete d[a],delete d[i],delete d[t],r[i]=e(d,!1,s.depth||null,s.colorize),r}),Kn}var At={exports:{}},eu;function Pm(){if(eu)return At.exports;eu=1;function e(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function n(r,s){for(var d=0;d<s.length;d++){var l=s[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}function o(r,s,d){return s&&n(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r}var a=he(),i=a.MESSAGE,t=function(){function r(s){e(this,r),this.template=s}return o(r,[{key:"transform",value:function(d){return d[i]=this.template(d),d}}]),r}();return At.exports=function(r){return new t(r)},At.exports.Printf=At.exports.Format=t,At.exports}var Xn,tu;function jm(){if(tu)return Xn;tu=1;var e=Te(),n=he(),o=n.MESSAGE,a=Ft();return Xn=e(function(i){var t=a(Object.assign({},i,{level:void 0,message:void 0,splat:void 0})),r=i.padding&&i.padding[i.level]||"";return t!=="{}"?i[o]="".concat(i.level,":").concat(r," ").concat(i.message," ").concat(t):i[o]="".concat(i.level,":").concat(r," ").concat(i.message),i}),Xn}var Qn,ru;function xm(){if(ru)return Qn;ru=1;function e(y){return i(y)||a(y)||o(y)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
126
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(y,m){if(y){if(typeof y=="string")return t(y,m);var u=Object.prototype.toString.call(y).slice(8,-1);if(u==="Object"&&y.constructor&&(u=y.constructor.name),u==="Map"||u==="Set")return Array.from(y);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return t(y,m)}}function a(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function i(y){if(Array.isArray(y))return t(y)}function t(y,m){(m==null||m>y.length)&&(m=y.length);for(var u=0,v=new Array(m);u<m;u++)v[u]=y[u];return v}function r(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function s(y,m){for(var u=0;u<m.length;u++){var v=m[u];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}function d(y,m,u){return m&&s(y.prototype,m),Object.defineProperty(y,"prototype",{writable:!1}),y}var l=ve(),h=he(),f=h.SPLAT,c=/%[scdjifoO%]/g,w=/%%/g,p=function(){function y(m){r(this,y),this.options=m}return d(y,[{key:"_splat",value:function(u,v){var b=u.message,g=u[f]||u.splat||[],E=b.match(w),R=E&&E.length||0,O=v.length-R,I=O-g.length,q=I<0?g.splice(I,-1*I):[],G=q.length;if(G)for(var V=0;V<G;V++)Object.assign(u,q[V]);return u.message=l.format.apply(l,[b].concat(e(g))),u}},{key:"transform",value:function(u){var v=u.message,b=u[f]||u.splat;if(!b||!b.length)return u;var g=v&&v.match&&v.match(c);if(!g&&(b||b.length)){var E=b.length>1?b.splice(0):b,R=E.length;if(R)for(var O=0;O<R;O++)Object.assign(u,E[O]);return u}return g?this._splat(u,g):u}}]),y}();return Qn=function(y){return new p(y)},Qn}var pf=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,He="\\d\\d?",ze="\\d\\d",qm="\\d{3}",Lm="\\d{4}",Pt="[^\\s]+",mf=/\[([^]*?)\]/gm;function gf(e,n){for(var o=[],a=0,i=e.length;a<i;a++)o.push(e[a].substr(0,n));return o}var nu=function(e){return function(n,o){var a=o[e].map(function(t){return t.toLowerCase()}),i=a.indexOf(n.toLowerCase());return i>-1?i:null}};function We(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];for(var a=0,i=n;a<i.length;a++){var t=i[a];for(var r in t)e[r]=t[r]}return e}var yf=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],vf=["January","February","March","April","May","June","July","August","September","October","November","December"],km=gf(vf,3),Nm=gf(yf,3),ma={dayNamesShort:Nm,dayNames:yf,monthNamesShort:km,monthNames:vf,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},Cr=We({},ma),bf=function(e){return Cr=We(Cr,e)},iu=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},_e=function(e,n){for(n===void 0&&(n=2),e=String(e);e.length<n;)e="0"+e;return e},Dm={D:function(e){return String(e.getDate())},DD:function(e){return _e(e.getDate())},Do:function(e,n){return n.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return _e(e.getDay())},ddd:function(e,n){return n.dayNamesShort[e.getDay()]},dddd:function(e,n){return n.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return _e(e.getMonth()+1)},MMM:function(e,n){return n.monthNamesShort[e.getMonth()]},MMMM:function(e,n){return n.monthNames[e.getMonth()]},YY:function(e){return _e(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return _e(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return _e(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return _e(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return _e(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return _e(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return _e(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return _e(e.getMilliseconds(),3)},a:function(e,n){return e.getHours()<12?n.amPm[0]:n.amPm[1]},A:function(e,n){return e.getHours()<12?n.amPm[0].toUpperCase():n.amPm[1].toUpperCase()},ZZ:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+_e(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4)},Z:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+_e(Math.floor(Math.abs(n)/60),2)+":"+_e(Math.abs(n)%60,2)}},ou=function(e){return+e-1},au=[null,He],su=[null,Pt],uu=["isPm",Pt,function(e,n){var o=e.toLowerCase();return o===n.amPm[0]?0:o===n.amPm[1]?1:null}],cu=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var n=(e+"").match(/([+-]|\d\d)/gi);if(n){var o=+n[1]*60+parseInt(n[2],10);return n[0]==="+"?o:-o}return 0}],Mm={D:["day",He],DD:["day",ze],Do:["day",He+Pt,function(e){return parseInt(e,10)}],M:["month",He,ou],MM:["month",ze,ou],YY:["year",ze,function(e){var n=new Date,o=+(""+n.getFullYear()).substr(0,2);return+(""+(+e>68?o-1:o)+e)}],h:["hour",He,void 0,"isPm"],hh:["hour",ze,void 0,"isPm"],H:["hour",He],HH:["hour",ze],m:["minute",He],mm:["minute",ze],s:["second",He],ss:["second",ze],YYYY:["year",Lm],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",ze,function(e){return+e*10}],SSS:["millisecond",qm],d:au,dd:au,ddd:su,dddd:su,MMM:["month",Pt,nu("monthNamesShort")],MMMM:["month",Pt,nu("monthNames")],a:uu,A:uu,ZZ:cu,Z:cu},Pr={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},wf=function(e){return We(Pr,e)},Ef=function(e,n,o){if(n===void 0&&(n=Pr.default),o===void 0&&(o={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");n=Pr[n]||n;var a=[];n=n.replace(mf,function(t,r){return a.push(r),"@@@"});var i=We(We({},Cr),o);return n=n.replace(pf,function(t){return Dm[t](e,i)}),n.replace(/@@@/g,function(){return a.shift()})};function Sf(e,n,o){if(o===void 0&&(o={}),typeof n!="string")throw new Error("Invalid format in fecha parse");if(n=Pr[n]||n,e.length>1e3)return null;var a=new Date,i={year:a.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},t=[],r=[],s=n.replace(mf,function(g,E){return r.push(iu(E)),"@@@"}),d={},l={};s=iu(s).replace(pf,function(g){var E=Mm[g],R=E[0],O=E[1],I=E[3];if(d[R])throw new Error("Invalid format. "+R+" specified twice in format");return d[R]=!0,I&&(l[I]=!0),t.push(E),"("+O+")"}),Object.keys(l).forEach(function(g){if(!d[g])throw new Error("Invalid format. "+g+" is required in specified format")}),s=s.replace(/@@@/g,function(){return r.shift()});var h=e.match(new RegExp(s,"i"));if(!h)return null;for(var f=We(We({},Cr),o),c=1;c<h.length;c++){var w=t[c-1],p=w[0],y=w[2],m=y?y(h[c],f):+h[c];if(m==null)return null;i[p]=m}i.isPm===1&&i.hour!=null&&+i.hour!=12?i.hour=+i.hour+12:i.isPm===0&&+i.hour==12&&(i.hour=0);var u;if(i.timezoneOffset==null){u=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var v=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],c=0,b=v.length;c<b;c++)if(d[v[c][0]]&&i[v[c][0]]!==u[v[c][1]]())return null}else if(u=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return u}var Fm={format:Ef,parse:Sf,defaultI18n:ma,setGlobalDateI18n:bf,setGlobalDateMasks:wf};const Um=Object.freeze(Object.defineProperty({__proto__:null,assign:We,default:Fm,defaultI18n:ma,format:Ef,parse:Sf,setGlobalDateI18n:bf,setGlobalDateMasks:wf},Symbol.toStringTag,{value:"Module"})),Bm=Wl(Um);var ei,lu;function $m(){if(lu)return ei;lu=1;var e=Bm,n=Te();return ei=n(function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.format&&(o.timestamp=typeof a.format=="function"?a.format():e.format(new Date,a.format)),o.timestamp||(o.timestamp=new Date().toISOString()),a.alias&&(o[a.alias]=o.timestamp),o}),ei}var ti,fu;function Vm(){if(fu)return ti;fu=1;var e=ff(),n=Te(),o=he(),a=o.MESSAGE;return ti=n(function(i,t){return t.level!==!1&&(i.level=e.strip(i.level)),t.message!==!1&&(i.message=e.strip(String(i.message))),t.raw!==!1&&i[a]&&(i[a]=e.strip(String(i[a]))),i}),ti}var hu;function _f(){if(hu)return Jt;hu=1;var e=Jt.format=Te();return Jt.levels=bm(),Object.defineProperty(e,"align",{value:wm()}),Object.defineProperty(e,"cli",{value:Em()}),Object.defineProperty(e,"colorize",{value:pa()}),Object.defineProperty(e,"combine",{value:Sm()}),Object.defineProperty(e,"errors",{value:_m()}),Object.defineProperty(e,"json",{value:Rm()}),Object.defineProperty(e,"label",{value:Om()}),Object.defineProperty(e,"logstash",{value:Im()}),Object.defineProperty(e,"metadata",{value:Tm()}),Object.defineProperty(e,"ms",{value:Am()}),Object.defineProperty(e,"padLevels",{value:hf()}),Object.defineProperty(e,"prettyPrint",{value:Cm()}),Object.defineProperty(e,"printf",{value:Pm()}),Object.defineProperty(e,"simple",{value:jm()}),Object.defineProperty(e,"splat",{value:xm()}),Object.defineProperty(e,"timestamp",{value:$m()}),Object.defineProperty(e,"uncolorize",{value:Vm()}),Jt}var ri={},du;function Rf(){return du||(du=1,function(e){var n=ve(),o=n.format;e.warn={deprecated:function(i){return function(){throw new Error(o("{ %s } was removed in winston@3.0.0.",i))}},useFormat:function(i){return function(){throw new Error([o("{ %s } was removed in winston@3.0.0.",i),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
127
|
-
`))}},forFunctions:function(i,t,r){r.forEach(function(s){i[s]=e.warn[t](s)})},moved:function(i,t,r){function s(){return function(){throw new Error([o("winston.%s was moved in winston@3.0.0.",r),o("Use a winston.%s instead.",t)].join(`
|
|
128
|
-
`))}}Object.defineProperty(i,r,{get:s,set:s})},forProperties:function(i,t,r){r.forEach(function(s){var d=e.warn[t](s);Object.defineProperty(i,s,{get:d,set:d})})}}}(ri)),ri}const Gm="3.8.2",zm={version:Gm};var ni={},nr={exports:{}},ii={exports:{}},pu;function Hm(){if(pu)return ii.exports;pu=1;var e=ve(),n=he(),o=n.LEVEL,a=ut(),i=ii.exports=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(a.call(this,r),!r.transport||typeof r.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=r.transport,this.level=this.level||r.transport.level,this.handleExceptions=this.handleExceptions||r.transport.handleExceptions,this._deprecated();function s(d){this.emit("error",d,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=s.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(i,a),i.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);(!this.level||this.levels[this.level]>=this.levels[r[o]])&&this.transport.log(r[o],r.message,r,this._nop),d(null)},i.prototype._writev=function(r,s){for(var d=0;d<r.length;d++)this._accept(r[d])&&(this.transport.log(r[d].chunk[o],r[d].chunk.message,r[d].chunk,this._nop),r[d].callback());return s(null)},i.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
129
|
-
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},ii.exports}var mu;function ut(){if(mu)return nr.exports;mu=1;var e=ve(),n=Gd(),o=he(),a=o.LEVEL,i=nr.exports=function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.call(this,{objectMode:!0,highWaterMark:s.highWaterMark}),this.format=s.format,this.level=s.level,this.handleExceptions=s.handleExceptions,this.handleRejections=s.handleRejections,this.silent=s.silent,s.log&&(this.log=s.log),s.logv&&(this.logv=s.logv),s.close&&(this.close=s.close),this.once("pipe",function(d){r.levels=d.levels,r.parent=d}),this.once("unpipe",function(d){d===r.parent&&(r.parent=null,r.close&&r.close())})};return e.inherits(i,n),i.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);var l=this.level||this.parent&&this.parent.level;if(!l||this.levels[l]>=this.levels[r[a]]){if(r&&!this.format)return this.log(r,d);var h=void 0,f=void 0;try{f=this.format.transform(Object.assign({},r),this.format.options)}catch(c){h=c}if(h||!f){if(d(),h)throw h;return}return this.log(f,d)}return this._writableState.sync=!1,d(null)},i.prototype._writev=function(r,s){if(this.logv){var d=r.filter(this._accept,this);return d.length?this.logv(d,s):s(null)}for(var l=0;l<r.length;l++)if(this._accept(r[l])){if(r[l].chunk&&!this.format){this.log(r[l].chunk,r[l].callback);continue}var h=void 0,f=void 0;try{f=this.format.transform(Object.assign({},r[l].chunk),this.format.options)}catch(c){h=c}if(h||!f){if(r[l].callback(),h)throw s(null),h}else this.log(f,r[l].callback)}return s(null)},i.prototype._accept=function(r){var s=r.chunk;if(this.silent)return!1;var d=this.level||this.parent&&this.parent.level;return!!((s.exception===!0||!d||this.levels[d]>=this.levels[s[a]])&&(this.handleExceptions||s.exception!==!0))},i.prototype._nop=function(){},nr.exports.LegacyTransportStream=Hm(),nr.exports}var oi,gu;function Zm(){if(gu)return oi;gu=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(m)}function n(m,u){if(!(m instanceof u))throw new TypeError("Cannot call a class as a function")}function o(m,u){for(var v=0;v<u.length;v++){var b=u[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}function a(m,u,v){return u&&o(m.prototype,u),Object.defineProperty(m,"prototype",{writable:!1}),m}function i(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(u&&u.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),u&&t(m,u)}function t(m,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,g){return b.__proto__=g,b},t(m,u)}function r(m){var u=l();return function(){var b=h(m),g;if(u){var E=h(this).constructor;g=Reflect.construct(b,arguments,E)}else g=b.apply(this,arguments);return s(this,g)}}function s(m,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(m)}function d(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(m){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},h(m)}var f=st(),c=he(),w=c.LEVEL,p=c.MESSAGE,y=ut();return oi=function(m){i(v,m);var u=r(v);function v(){var b,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(this,v),b=u.call(this,g),b.name=g.name||"console",b.stderrLevels=b._stringArrayToSet(g.stderrLevels),b.consoleWarnLevels=b._stringArrayToSet(g.consoleWarnLevels),b.eol=typeof g.eol=="string"?g.eol:f.EOL,b.setMaxListeners(30),b}return a(v,[{key:"log",value:function(g,E){var R=this;if(setImmediate(function(){return R.emit("logged",g)}),this.stderrLevels[g[w]]){console._stderr?console._stderr.write("".concat(g[p]).concat(this.eol)):console.error(g[p]),E&&E();return}else if(this.consoleWarnLevels[g[w]]){console._stderr?console._stderr.write("".concat(g[p]).concat(this.eol)):console.warn(g[p]),E&&E();return}console._stdout?console._stdout.write("".concat(g[p]).concat(this.eol)):console.log(g[p]),E&&E()}},{key:"_stringArrayToSet",value:function(g,E){if(!g)return{};if(E=E||"Cannot make set from type other than Array of string elements",!Array.isArray(g))throw new Error(E);return g.reduce(function(R,O){if(typeof O!="string")throw new Error(E);return R[O]=!0,R},{})}}]),v}(y),oi}var ai,yu;function Of(){if(yu)return ai;yu=1;function e(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function n(i,t){for(var r="",s=0,d=-1,l=0,h,f=0;f<=i.length;++f){if(f<i.length)h=i.charCodeAt(f);else{if(h===47)break;h=47}if(h===47){if(!(d===f-1||l===1))if(d!==f-1&&l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf("/")),d=f,l=0;continue}}else if(r.length===2||r.length===1){r="",s=0,d=f,l=0;continue}}t&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+i.slice(d+1,f):r=i.slice(d+1,f),s=f-d-1;d=f,l=0}else h===46&&l!==-1?++l:l=-1}return r}function o(i,t){var r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+i+s:s}var a={resolve:function(){for(var t="",r=!1,s,d=arguments.length-1;d>=-1&&!r;d--){var l;d>=0?l=arguments[d]:(s===void 0&&(s=X.cwd()),l=s),e(l),l.length!==0&&(t=l+"/"+t,r=l.charCodeAt(0)===47)}return t=n(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(e(t),t.length===0)return".";var r=t.charCodeAt(0)===47,s=t.charCodeAt(t.length-1)===47;return t=n(t,!r),t.length===0&&!r&&(t="."),t.length>0&&s&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r<arguments.length;++r){var s=arguments[r];e(s),s.length>0&&(t===void 0?t=s:t+="/"+s)}return t===void 0?".":a.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r||(t=a.resolve(t),r=a.resolve(r),t===r))return"";for(var s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var d=t.length,l=d-s,h=1;h<r.length&&r.charCodeAt(h)===47;++h);for(var f=r.length,c=f-h,w=l<c?l:c,p=-1,y=0;y<=w;++y){if(y===w){if(c>w){if(r.charCodeAt(h+y)===47)return r.slice(h+y+1);if(y===0)return r.slice(h+y)}else l>w&&(t.charCodeAt(s+y)===47?p=y:y===0&&(p=0));break}var m=t.charCodeAt(s+y),u=r.charCodeAt(h+y);if(m!==u)break;m===47&&(p=y)}var v="";for(y=s+p+1;y<=d;++y)(y===d||t.charCodeAt(y)===47)&&(v.length===0?v+="..":v+="/..");return v.length>0?v+r.slice(h+p):(h+=p,r.charCodeAt(h)===47&&++h,r.slice(h))},_makeLong:function(t){return t},dirname:function(t){if(e(t),t.length===0)return".";for(var r=t.charCodeAt(0),s=r===47,d=-1,l=!0,h=t.length-1;h>=1;--h)if(r=t.charCodeAt(h),r===47){if(!l){d=h;break}}else l=!1;return d===-1?s?"/":".":s&&d===1?"//":t.slice(0,d)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(t);var s=0,d=-1,l=!0,h;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var f=r.length-1,c=-1;for(h=t.length-1;h>=0;--h){var w=t.charCodeAt(h);if(w===47){if(!l){s=h+1;break}}else c===-1&&(l=!1,c=h+1),f>=0&&(w===r.charCodeAt(f)?--f===-1&&(d=h):(f=-1,d=c))}return s===d?d=c:d===-1&&(d=t.length),t.slice(s,d)}else{for(h=t.length-1;h>=0;--h)if(t.charCodeAt(h)===47){if(!l){s=h+1;break}}else d===-1&&(l=!1,d=h+1);return d===-1?"":t.slice(s,d)}},extname:function(t){e(t);for(var r=-1,s=0,d=-1,l=!0,h=0,f=t.length-1;f>=0;--f){var c=t.charCodeAt(f);if(c===47){if(!l){s=f+1;break}continue}d===-1&&(l=!1,d=f+1),c===46?r===-1?r=f:h!==1&&(h=1):r!==-1&&(h=-1)}return r===-1||d===-1||h===0||h===1&&r===d-1&&r===s+1?"":t.slice(r,d)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return o("/",t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var s=t.charCodeAt(0),d=s===47,l;d?(r.root="/",l=1):l=0;for(var h=-1,f=0,c=-1,w=!0,p=t.length-1,y=0;p>=l;--p){if(s=t.charCodeAt(p),s===47){if(!w){f=p+1;break}continue}c===-1&&(w=!1,c=p+1),s===46?h===-1?h=p:y!==1&&(y=1):h!==-1&&(y=-1)}return h===-1||c===-1||y===0||y===1&&h===c-1&&h===f+1?c!==-1&&(f===0&&d?r.base=r.name=t.slice(1,c):r.base=r.name=t.slice(f,c)):(f===0&&d?(r.name=t.slice(1,h),r.base=t.slice(1,c)):(r.name=t.slice(f,h),r.base=t.slice(f,c)),r.ext=t.slice(h,c)),f>0?r.dir=t.slice(0,f-1):d&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,ai=a,ai}var ir={exports:{}},or={exports:{}},ar={exports:{}},vu;function ga(){return vu||(vu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(a){return a&&typeof a.length=="number"&&a.length>=0&&a.length%1===0}e.exports=n.default}(ar,ar.exports)),ar.exports}var ke={},sr={exports:{}},ur={exports:{}},bu;function Wm(){return bu||(bu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return function(...a){var i=a.pop();return o.call(this,a,i)}},e.exports=n.default}(ur,ur.exports)),ur.exports}var Be={},wu;function Ym(){if(wu)return Be;wu=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.fallback=a,Be.wrap=i;var e=Be.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,n=Be.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,o=Be.hasNextTick=typeof X=="object"&&typeof X.nextTick=="function";function a(r){setTimeout(r,0)}function i(r){return(s,...d)=>r(()=>s(...d))}var t;return e?t=queueMicrotask:n?t=setImmediate:o?t=X.nextTick:t=a,Be.default=i(t),Be}var Eu;function Jm(){return Eu||(Eu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var o=Wm(),a=s(o),i=Ym(),t=s(i),r=gt();function s(f){return f&&f.__esModule?f:{default:f}}function d(f){return(0,r.isAsync)(f)?function(...c){const w=c.pop(),p=f.apply(this,c);return l(p,w)}:(0,a.default)(function(c,w){var p;try{p=f.apply(this,c)}catch(y){return w(y)}if(p&&typeof p.then=="function")return l(p,w);w(null,p)})}function l(f,c){return f.then(w=>{h(c,null,w)},w=>{h(c,w&&w.message?w:new Error(w))})}function h(f,c,w){try{f(c,w)}catch(p){(0,t.default)(y=>{throw y},p)}}e.exports=n.default}(sr,sr.exports)),sr.exports}var Su;function gt(){if(Su)return ke;Su=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.isAsyncIterable=ke.isAsyncGenerator=ke.isAsync=void 0;var e=Jm(),n=o(e);function o(s){return s&&s.__esModule?s:{default:s}}function a(s){return s[Symbol.toStringTag]==="AsyncFunction"}function i(s){return s[Symbol.toStringTag]==="AsyncGenerator"}function t(s){return typeof s[Symbol.asyncIterator]=="function"}function r(s){if(typeof s!="function")throw new Error("expected a function");return a(s)?(0,n.default)(s):s}return ke.default=r,ke.isAsync=a,ke.isAsyncGenerator=i,ke.isAsyncIterable=t,ke}var cr={exports:{}},_u;function Ut(){return _u||(_u=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(a,i=a.length){if(!i)throw new Error("arity is undefined");function t(...r){return typeof r[i-1]=="function"?a.apply(this,r):new Promise((s,d)=>{r[i-1]=(l,...h)=>{if(l)return d(l);s(h.length>1?h:h[0])},a.apply(this,r)})}return t}e.exports=n.default}(cr,cr.exports)),cr.exports}var Ru;function Km(){return Ru||(Ru=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=ga(),a=d(o),i=gt(),t=d(i),r=Ut(),s=d(r);function d(l){return l&&l.__esModule?l:{default:l}}n.default=(0,s.default)((l,h,f)=>{var c=(0,a.default)(h)?[]:{};l(h,(w,p,y)=>{(0,t.default)(w)((m,...u)=>{u.length<2&&([u]=u),c[p]=u,y(m)})},w=>f(w,c))},3),e.exports=n.default}(or,or.exports)),or.exports}var lr={exports:{}},fr={exports:{}},hr={exports:{}},dr={exports:{}},Ou;function If(){return Ou||(Ou=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(a){function i(...t){if(a!==null){var r=a;a=null,r.apply(this,t)}}return Object.assign(i,a),i}e.exports=n.default}(dr,dr.exports)),dr.exports}var pr={exports:{}},mr={exports:{}},Iu;function Xm(){return Iu||(Iu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return o[Symbol.iterator]&&o[Symbol.iterator]()},e.exports=n.default}(mr,mr.exports)),mr.exports}var Tu;function Qm(){return Tu||(Tu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=h;var o=ga(),a=r(o),i=Xm(),t=r(i);function r(f){return f&&f.__esModule?f:{default:f}}function s(f){var c=-1,w=f.length;return function(){return++c<w?{value:f[c],key:c}:null}}function d(f){var c=-1;return function(){var p=f.next();return p.done?null:(c++,{value:p.value,key:c})}}function l(f){var c=f?Object.keys(f):[],w=-1,p=c.length;return function y(){var m=c[++w];return m==="__proto__"?y():w<p?{value:f[m],key:m}:null}}function h(f){if((0,a.default)(f))return s(f);var c=(0,t.default)(f);return c?d(c):l(f)}e.exports=n.default}(pr,pr.exports)),pr.exports}var gr={exports:{}},Au;function Tf(){return Au||(Au=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(a){return function(...i){if(a===null)throw new Error("Callback was already called.");var t=a;a=null,t.apply(this,i)}}e.exports=n.default}(gr,gr.exports)),gr.exports}var yr={exports:{}},vr={exports:{}},Cu;function ya(){return Cu||(Cu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});const o={};n.default=o,e.exports=n.default}(vr,vr.exports)),vr.exports}var Pu;function eg(){return Pu||(Pu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;var o=ya(),a=i(o);function i(r){return r&&r.__esModule?r:{default:r}}function t(r,s,d,l){let h=!1,f=!1,c=!1,w=0,p=0;function y(){w>=s||c||h||(c=!0,r.next().then(({value:v,done:b})=>{if(!(f||h)){if(c=!1,b){h=!0,w<=0&&l(null);return}w++,d(v,p,m),p++,y()}}).catch(u))}function m(v,b){if(w-=1,!f){if(v)return u(v);if(v===!1){h=!0,f=!0;return}if(b===a.default||h&&w<=0)return h=!0,l(null);y()}}function u(v){f||(c=!1,h=!0,l(v))}y()}e.exports=n.default}(yr,yr.exports)),yr.exports}var ju;function tg(){return ju||(ju=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=If(),a=w(o),i=Qm(),t=w(i),r=Tf(),s=w(r),d=gt(),l=eg(),h=w(l),f=ya(),c=w(f);function w(p){return p&&p.__esModule?p:{default:p}}n.default=p=>(y,m,u)=>{if(u=(0,a.default)(u),p<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!y)return u(null);if((0,d.isAsyncGenerator)(y))return(0,h.default)(y,p,m,u);if((0,d.isAsyncIterable)(y))return(0,h.default)(y[Symbol.asyncIterator](),p,m,u);var v=(0,t.default)(y),b=!1,g=!1,E=0,R=!1;function O(q,G){if(!g)if(E-=1,q)b=!0,u(q);else if(q===!1)b=!0,g=!0;else{if(G===c.default||b&&E<=0)return b=!0,u(null);R||I()}}function I(){for(R=!0;E<p&&!b;){var q=v();if(q===null){b=!0,E<=0&&u(null);return}E+=1,m(q.value,q.key,(0,s.default)(O))}R=!1}I()},e.exports=n.default}(hr,hr.exports)),hr.exports}var xu;function Af(){return xu||(xu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=tg(),a=d(o),i=gt(),t=d(i),r=Ut(),s=d(r);function d(h){return h&&h.__esModule?h:{default:h}}function l(h,f,c,w){return(0,a.default)(f)(h,(0,t.default)(c),w)}n.default=(0,s.default)(l,4),e.exports=n.default}(fr,fr.exports)),fr.exports}var qu;function rg(){return qu||(qu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Af(),a=r(o),i=Ut(),t=r(i);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l,h){return(0,a.default)(d,1,l,h)}n.default=(0,t.default)(s,3),e.exports=n.default}(lr,lr.exports)),lr.exports}var Lu;function ng(){return Lu||(Lu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var o=Km(),a=r(o),i=rg(),t=r(i);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l){return(0,a.default)(t.default,d,l)}e.exports=n.default}(ir,ir.exports)),ir.exports}var si={},ui={},ku;function ig(){return ku||(ku=1,function(e){var n=xt(),o=Jd(),a=Zd(),i=Wd(),t=Yd();for(var r in t)e[r]=t[r];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;var s=31,d=139;function l(h){if(typeof h!="number"||h<e.DEFLATE||h>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=h,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&i.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},l.prototype.write=function(h,f,c,w,p,y,m){return this._write(!0,h,f,c,w,p,y,m)},l.prototype.writeSync=function(h,f,c,w,p,y,m){return this._write(!1,h,f,c,w,p,y,m)},l.prototype._write=function(h,f,c,w,p,y,m,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==e.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,f===void 0,"must provide flush value"),this.write_in_progress=!0,f!==e.Z_NO_FLUSH&&f!==e.Z_PARTIAL_FLUSH&&f!==e.Z_SYNC_FLUSH&&f!==e.Z_FULL_FLUSH&&f!==e.Z_FINISH&&f!==e.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=Re.alloc(0),p=0,w=0),this.strm.avail_in=p,this.strm.input=c,this.strm.next_in=w,this.strm.avail_out=u,this.strm.output=y,this.strm.next_out=m,this.flush=f,!h)return this._process(),this._checkError()?this._afterSync():void 0;var v=this;return X.nextTick(function(){v._process(),v._after()}),this},l.prototype._afterSync=function(){var h=this.strm.avail_out,f=this.strm.avail_in;return this.write_in_progress=!1,[f,h]},l.prototype._process=function(){var h=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(h=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(h===null)break;if(this.strm.input[h]===s){if(this.gzip_id_bytes_read=1,h++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(h===null)break;this.strm.input[h]===d?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=i.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=i.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=i.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=i.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var h=this.strm.avail_out,f=this.strm.avail_in;this.write_in_progress=!1,this.callback(f,h),this.pending_close&&this.close()}},l.prototype._error=function(h){this.strm.msg&&(h=this.strm.msg),this.onerror(h,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(h,f,c,w,p){n(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(h>=8&&h<=15,"invalid windowBits"),n(f>=-1&&f<=9,"invalid compression level"),n(c>=1&&c<=9,"invalid memlevel"),n(w===e.Z_FILTERED||w===e.Z_HUFFMAN_ONLY||w===e.Z_RLE||w===e.Z_FIXED||w===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(f,h,c,w,p),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(h,f,c,w,p){switch(this.level=h,this.windowBits=f,this.memLevel=c,this.strategy=w,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=i.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=p,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=i.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l}(ui)),ui}var Nu;function og(){return Nu||(Nu=1,function(e){var n=jt().Buffer,o=Dr().Transform,a=ig(),i=ve(),t=xt().ok,r=jt().kMaxLength,s="Cannot create final Buffer. It would be larger than 0x"+r.toString(16)+" bytes";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16*1024,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var d=Object.keys(a),l=0;l<d.length;l++){var h=d[l];h.match(/^Z/)&&Object.defineProperty(e,h,{enumerable:!0,value:a[h],writable:!1})}for(var f={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},c=Object.keys(f),w=0;w<c.length;w++){var p=c[w];f[f[p]]=p}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),e.Deflate=u,e.Inflate=v,e.Gzip=b,e.Gunzip=g,e.DeflateRaw=E,e.InflateRaw=R,e.Unzip=O,e.createDeflate=function(S){return new u(S)},e.createInflate=function(S){return new v(S)},e.createDeflateRaw=function(S){return new E(S)},e.createInflateRaw=function(S){return new R(S)},e.createGzip=function(S){return new b(S)},e.createGunzip=function(S){return new g(S)},e.createUnzip=function(S){return new O(S)},e.deflate=function(S,_,P){return typeof _=="function"&&(P=_,_={}),y(new u(_),S,P)},e.deflateSync=function(S,_){return m(new u(_),S)},e.gzip=function(S,_,P){return typeof _=="function"&&(P=_,_={}),y(new b(_),S,P)},e.gzipSync=function(S,_){return m(new b(_),S)},e.deflateRaw=function(S,_,P){return typeof _=="function"&&(P=_,_={}),y(new E(_),S,P)},e.deflateRawSync=function(S,_){return m(new E(_),S)},e.unzip=function(S,_,P){return typeof _=="function"&&(P=_,_={}),y(new O(_),S,P)},e.unzipSync=function(S,_){return m(new O(_),S)},e.inflate=function(S,_,P){return typeof _=="function"&&(P=_,_={}),y(new v(_),S,P)},e.inflateSync=function(S,_){return m(new v(_),S)},e.gunzip=function(S,_,P){return typeof _=="function"&&(P=_,_={}),y(new g(_),S,P)},e.gunzipSync=function(S,_){return m(new g(_),S)},e.inflateRaw=function(S,_,P){return typeof _=="function"&&(P=_,_={}),y(new R(_),S,P)},e.inflateRawSync=function(S,_){return m(new R(_),S)};function y(S,_,P){var x=[],M=0;S.on("error",T),S.on("end",A),S.end(_),C();function C(){for(var L;(L=S.read())!==null;)x.push(L),M+=L.length;S.once("readable",C)}function T(L){S.removeListener("end",A),S.removeListener("readable",C),P(L)}function A(){var L,B=null;M>=r?B=new RangeError(s):L=n.concat(x,M),x=[],S.close(),P(B,L)}}function m(S,_){if(typeof _=="string"&&(_=n.from(_)),!n.isBuffer(_))throw new TypeError("Not a string or buffer");var P=S._finishFlushFlag;return S._processChunk(_,P)}function u(S){if(!(this instanceof u))return new u(S);q.call(this,S,a.DEFLATE)}function v(S){if(!(this instanceof v))return new v(S);q.call(this,S,a.INFLATE)}function b(S){if(!(this instanceof b))return new b(S);q.call(this,S,a.GZIP)}function g(S){if(!(this instanceof g))return new g(S);q.call(this,S,a.GUNZIP)}function E(S){if(!(this instanceof E))return new E(S);q.call(this,S,a.DEFLATERAW)}function R(S){if(!(this instanceof R))return new R(S);q.call(this,S,a.INFLATERAW)}function O(S){if(!(this instanceof O))return new O(S);q.call(this,S,a.UNZIP)}function I(S){return S===a.Z_NO_FLUSH||S===a.Z_PARTIAL_FLUSH||S===a.Z_SYNC_FLUSH||S===a.Z_FULL_FLUSH||S===a.Z_FINISH||S===a.Z_BLOCK}function q(S,_){var P=this;if(this._opts=S=S||{},this._chunkSize=S.chunkSize||e.Z_DEFAULT_CHUNK,o.call(this,S),S.flush&&!I(S.flush))throw new Error("Invalid flush flag: "+S.flush);if(S.finishFlush&&!I(S.finishFlush))throw new Error("Invalid flush flag: "+S.finishFlush);if(this._flushFlag=S.flush||a.Z_NO_FLUSH,this._finishFlushFlag=typeof S.finishFlush<"u"?S.finishFlush:a.Z_FINISH,S.chunkSize&&(S.chunkSize<e.Z_MIN_CHUNK||S.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+S.chunkSize);if(S.windowBits&&(S.windowBits<e.Z_MIN_WINDOWBITS||S.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+S.windowBits);if(S.level&&(S.level<e.Z_MIN_LEVEL||S.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+S.level);if(S.memLevel&&(S.memLevel<e.Z_MIN_MEMLEVEL||S.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+S.memLevel);if(S.strategy&&S.strategy!=e.Z_FILTERED&&S.strategy!=e.Z_HUFFMAN_ONLY&&S.strategy!=e.Z_RLE&&S.strategy!=e.Z_FIXED&&S.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+S.strategy);if(S.dictionary&&!n.isBuffer(S.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new a.Zlib(_);var x=this;this._hadError=!1,this._handle.onerror=function(T,A){G(x),x._hadError=!0;var L=new Error(T);L.errno=A,L.code=e.codes[A],x.emit("error",L)};var M=e.Z_DEFAULT_COMPRESSION;typeof S.level=="number"&&(M=S.level);var C=e.Z_DEFAULT_STRATEGY;typeof S.strategy=="number"&&(C=S.strategy),this._handle.init(S.windowBits||e.Z_DEFAULT_WINDOWBITS,M,S.memLevel||e.Z_DEFAULT_MEMLEVEL,C,S.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=M,this._strategy=C,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!P._handle},configurable:!0,enumerable:!0})}i.inherits(q,o),q.prototype.params=function(S,_,P){if(S<e.Z_MIN_LEVEL||S>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+S);if(_!=e.Z_FILTERED&&_!=e.Z_HUFFMAN_ONLY&&_!=e.Z_RLE&&_!=e.Z_FIXED&&_!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+_);if(this._level!==S||this._strategy!==_){var x=this;this.flush(a.Z_SYNC_FLUSH,function(){t(x._handle,"zlib binding closed"),x._handle.params(S,_),x._hadError||(x._level=S,x._strategy=_,P&&P())})}else X.nextTick(P)},q.prototype.reset=function(){return t(this._handle,"zlib binding closed"),this._handle.reset()},q.prototype._flush=function(S){this._transform(n.alloc(0),"",S)},q.prototype.flush=function(S,_){var P=this,x=this._writableState;(typeof S=="function"||S===void 0&&!_)&&(_=S,S=a.Z_FULL_FLUSH),x.ended?_&&X.nextTick(_):x.ending?_&&this.once("end",_):x.needDrain?_&&this.once("drain",function(){return P.flush(S,_)}):(this._flushFlag=S,this.write(n.alloc(0),"",_))},q.prototype.close=function(S){G(this,S),X.nextTick(V,this)};function G(S,_){_&&X.nextTick(_),S._handle&&(S._handle.close(),S._handle=null)}function V(S){S.emit("close")}q.prototype._transform=function(S,_,P){var x,M=this._writableState,C=M.ending||M.ended,T=C&&(!S||M.length===S.length);if(S!==null&&!n.isBuffer(S))return P(new Error("invalid input"));if(!this._handle)return P(new Error("zlib binding closed"));T?x=this._finishFlushFlag:(x=this._flushFlag,S.length>=M.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),this._processChunk(S,x,P)},q.prototype._processChunk=function(S,_,P){var x=S&&S.length,M=this._chunkSize-this._offset,C=0,T=this,A=typeof P=="function";if(!A){var L=[],B=0,U;this.on("error",function(H){U=H}),t(this._handle,"zlib binding closed");do var D=this._handle.writeSync(_,S,C,x,this._buffer,this._offset,M);while(!this._hadError&&F(D[0],D[1]));if(this._hadError)throw U;if(B>=r)throw G(this),new RangeError(s);var j=n.concat(L,B);return G(this),j}t(this._handle,"zlib binding closed");var k=this._handle.write(_,S,C,x,this._buffer,this._offset,M);k.buffer=S,k.callback=F;function F(H,Z){if(this&&(this.buffer=null,this.callback=null),!T._hadError){var W=M-Z;if(t(W>=0,"have should not go down"),W>0){var J=T._buffer.slice(T._offset,T._offset+W);T._offset+=W,A?T.push(J):(L.push(J),B+=J.length)}if((Z===0||T._offset>=T._chunkSize)&&(M=T._chunkSize,T._offset=0,T._buffer=n.allocUnsafe(T._chunkSize)),Z===0){if(C+=x-H,x=H,!A)return!0;var te=T._handle.write(_,S,C,x,T._buffer,T._offset,T._chunkSize);te.callback=F,te.buffer=S;return}if(!A)return!1;P()}}},i.inherits(u,q),i.inherits(v,q),i.inherits(b,q),i.inherits(g,q),i.inherits(E,q),i.inherits(R,q),i.inherits(O,q)}(si)),si}var ci={exports:{}},li,Du;function ag(){if(Du)return li;Du=1;var e=[],n=[],o=function(){};function a(c){return~e.indexOf(c)?!1:(e.push(c),!0)}function i(c){o=c}function t(c){for(var w=[],p=0;p<e.length;p++){if(e[p].async){w.push(e[p]);continue}if(e[p](c))return!0}return w.length?new Promise(function(m){Promise.all(w.map(function(v){return v(c)})).then(function(v){m(v.some(Boolean))})}):!1}function r(c){return~n.indexOf(c)?!1:(n.push(c),!0)}function s(){o.apply(o,arguments)}function d(c){for(var w=0;w<n.length;w++)c=n[w].apply(n[w],arguments);return c}function l(c,w){var p=Object.prototype.hasOwnProperty;for(var y in w)p.call(w,y)&&(c[y]=w[y]);return c}function h(c){return c.enabled=!1,c.modify=r,c.set=i,c.use=a,l(function(){return!1},c)}function f(c){function w(){var p=Array.prototype.slice.call(arguments,0);return s.call(s,c,d(p,c)),!0}return c.enabled=!0,c.modify=r,c.set=i,c.use=a,l(w,c)}return li=function(w){return w.introduce=l,w.enabled=t,w.process=d,w.modify=r,w.write=s,w.nope=h,w.yep=f,w.set=i,w.use=a,w},li}var fi,Mu;function sg(){if(Mu)return fi;Mu=1;var e=ag(),n=e(function o(a,i){return i=i||{},i.namespace=a,i.prod=!0,i.dev=!1,i.force||o.force?o.yep(i):o.nope(i)});return fi=n,fi}var Fu;function Fr(){return Fu||(Fu=1,ci.exports=sg()),ci.exports}var hi,Uu;function ug(){if(Uu)return hi;Uu=1;var e=fa(),n=zd(),o=n.StringDecoder,a=Dt(),i=a.Stream;function t(){}return hi=function(r,s){var d=Re.alloc(65536),l=new o("utf8"),h=new i,f="",c=0,w=0;return r.start===-1&&delete r.start,h.readable=!0,h.destroy=function(){h.destroyed=!0,h.emit("end"),h.emit("close")},e.open(r.file,"a+","0644",function(p,y){if(p){s?s(p):h.emit("error",p),h.destroy();return}(function m(){if(h.destroyed){e.close(y,t);return}return e.read(y,d,0,d.length,c,function(u,v){if(u){s?s(u):h.emit("error",u),h.destroy();return}if(!v)return f&&((r.start==null||w>r.start)&&(s?s(null,f):h.emit("line",f)),w++,f=""),setTimeout(m,1e3);var b=l.write(d.slice(0,v));s||h.emit("data",b),b=(f+b).split(/\n+/);for(var g=b.length-1,E=0;E<g;E++)(r.start==null||w>r.start)&&(s?s(null,b[E]):h.emit("line",b[E])),w++;return f=b[g],c+=v,m()})})()}),s?h.destroy:h},hi}var di,Bu;function cg(){if(Bu)return di;Bu=1;function e(I){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},e(I)}function n(I,q){if(!(I instanceof q))throw new TypeError("Cannot call a class as a function")}function o(I,q){for(var G=0;G<q.length;G++){var V=q[G];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(I,V.key,V)}}function a(I,q,G){return q&&o(I.prototype,q),Object.defineProperty(I,"prototype",{writable:!1}),I}function i(I,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(q&&q.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),q&&t(I,q)}function t(I,q){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,S){return V.__proto__=S,V},t(I,q)}function r(I){var q=l();return function(){var V=h(I),S;if(q){var _=h(this).constructor;S=Reflect.construct(V,arguments,_)}else S=V.apply(this,arguments);return s(this,S)}}function s(I,q){if(q&&(e(q)==="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(I)}function d(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(I){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},h(I)}var f=fa(),c=Of(),w=ng(),p=og(),y=he(),m=y.MESSAGE,u=Dt(),v=u.Stream,b=u.PassThrough,g=ut(),E=Fr()("winston:file"),R=st(),O=ug();return di=function(I){i(G,I);var q=r(G);function G(){var V,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,G),V=q.call(this,S),V.name=S.name||"file";function _(P){for(var x=arguments.length,M=new Array(x>1?x-1:0),C=1;C<x;C++)M[C-1]=arguments[C];M.slice(1).forEach(function(T){if(S[T])throw new Error("Cannot set ".concat(T," and ").concat(P," together"))})}if(V._stream=new b,V._stream.setMaxListeners(30),V._onError=V._onError.bind(d(V)),S.filename||S.dirname)_("filename or dirname","stream"),V._basename=V.filename=S.filename?c.basename(S.filename):"winston.log",V.dirname=S.dirname||c.dirname(S.filename),V.options=S.options||{flags:"a"};else if(S.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),_("stream","filename","maxsize"),V._dest=V._stream.pipe(V._setupStream(S.stream)),V.dirname=c.dirname(V._dest.path);else throw new Error("Cannot log to file without filename or stream.");return V.maxsize=S.maxsize||null,V.rotationFormat=S.rotationFormat||!1,V.zippedArchive=S.zippedArchive||!1,V.maxFiles=S.maxFiles||null,V.eol=typeof S.eol=="string"?S.eol:R.EOL,V.tailable=S.tailable||!1,V._size=0,V._pendingSize=0,V._created=0,V._drain=!1,V._opening=!1,V._ending=!1,V.dirname&&V._createLogDirIfNotExist(V.dirname),V.open(),V}return a(G,[{key:"finishIfEnding",value:function(){var S=this;this._ending&&(this._opening?this.once("open",function(){S._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})}):(this._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})))}},{key:"log",value:function(S){var _=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return P(),!0;if(this._drain){this._stream.once("drain",function(){_._drain=!1,_.log(S,P)});return}if(this._rotate){this._stream.once("rotate",function(){_._rotate=!1,_.log(S,P)});return}var x="".concat(S[m]).concat(this.eol),M=Re.byteLength(x);function C(){var A=this;this._size+=M,this._pendingSize-=M,E("logged %s %s",this._size,x),this.emit("logged",S),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return A._rotateFile()}))}this._pendingSize+=M,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var T=this._stream.write(x,C.bind(this));return T?P():(this._drain=!0,this._stream.once("drain",function(){_._drain=!1,P()})),E("written",T,this._drain),this.finishIfEnding(),T}},{key:"query",value:function(S,_){typeof S=="function"&&(_=S,S={}),S=U(S);var P=c.join(this.dirname,this.filename),x="",M=[],C=0,T=f.createReadStream(P,{encoding:"utf8"});T.on("error",function(D){if(T.readable&&T.destroy(),!!_)return D.code!=="ENOENT"?_(D):_(null,M)}),T.on("data",function(D){D=(x+D).split(/\n+/);for(var j=D.length-1,k=0;k<j;k++)(!S.start||C>=S.start)&&A(D[k]),C++;x=D[j]}),T.on("close",function(){x&&A(x,!0),S.order==="desc"&&(M=M.reverse()),_&&_(null,M)});function A(D,j){try{var k=JSON.parse(D);B(k)&&L(k)}catch(F){j||T.emit("error",F)}}function L(D){if(S.rows&&M.length>=S.rows&&S.order!=="desc"){T.readable&&T.destroy();return}S.fields&&(D=S.fields.reduce(function(j,k){return j[k]=D[k],j},{})),S.order==="desc"&&M.length>=S.rows&&M.shift(),M.push(D)}function B(D){if(D&&e(D)==="object"){var j=new Date(D.timestamp);if(!(S.from&&j<S.from||S.until&&j>S.until||S.level&&S.level!==D.level))return!0}}function U(D){return D=D||{},D.rows=D.rows||D.limit||10,D.start=D.start||0,D.until=D.until||new Date,e(D.until)!=="object"&&(D.until=new Date(D.until)),D.from=D.from||D.until-24*60*60*1e3,e(D.from)!=="object"&&(D.from=new Date(D.from)),D.order=D.order||"desc",D}}},{key:"stream",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=c.join(this.dirname,this.filename),P=new v,x={file:_,start:S.start};return P.destroy=O(x,function(M,C){if(M)return P.emit("error",M);try{P.emit("data",C),C=JSON.parse(C),P.emit("log",C)}catch(T){P.emit("error",T)}}),P}},{key:"open",value:function(){var S=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(_,P){if(_)return S.emit("error",_);E("stat done: %s { size: %s }",S.filename,P),S._size=P,S._dest=S._createStream(S._stream),S._opening=!1,S.once("open",function(){S._stream.eventNames().includes("rotate")?S._stream.emit("rotate"):S._rotate=!1})})))}},{key:"stat",value:function(S){var _=this,P=this._getFile(),x=c.join(this.dirname,P);f.stat(x,function(M,C){if(M&&M.code==="ENOENT")return E("ENOENT ok",x),_.filename=P,S(null,0);if(M)return E("err ".concat(M.code," ").concat(x)),S(M);if(!C||_._needsNewFile(C.size))return _._incFile(function(){return _.stat(S)});_.filename=P,S(null,C.size)})}},{key:"close",value:function(S){var _=this;this._stream&&this._stream.end(function(){S&&S(),_.emit("flush"),_.emit("closed")})}},{key:"_needsNewFile",value:function(S){return S=S||this._size,this.maxsize&&S>=this.maxsize}},{key:"_onError",value:function(S){this.emit("error",S)}},{key:"_setupStream",value:function(S){return S.on("error",this._onError),S}},{key:"_cleanupStream",value:function(S){return S.removeListener("error",this._onError),S}},{key:"_rotateFile",value:function(){var S=this;this._incFile(function(){return S.open()})}},{key:"_endStream",value:function(){var S=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){S._cleanupStream(S._dest),_()})):_()}},{key:"_createStream",value:function(S){var _=this,P=c.join(this.dirname,this.filename);E("create stream start",P,this.options);var x=f.createWriteStream(P,this.options).on("error",function(C){return E(C)}).on("close",function(){return E("close",x.path,x.bytesWritten)}).on("open",function(){E("file open ok",P),_.emit("open",P),S.pipe(x),_.rotatedWhileOpening&&(_._stream=new b,_._stream.setMaxListeners(30),_._rotateFile(),_.rotatedWhileOpening=!1,_._cleanupStream(x),S.end())});if(E("create stream ok",P),this.zippedArchive){var M=p.createGzip();return M.pipe(x),M}return x}},{key:"_incFile",value:function(S){E("_incFile",this.filename);var _=c.extname(this._basename),P=c.basename(this._basename,_);this.tailable?this._checkMaxFilesTailable(_,P,S):(this._created+=1,this._checkMaxFilesIncrementing(_,P,S))}},{key:"_getFile",value:function(){var S=c.extname(this._basename),_=c.basename(this._basename,S),P=this.rotationFormat?this.rotationFormat():this._created,x=!this.tailable&&this._created?"".concat(_).concat(P).concat(S):"".concat(_).concat(S);return this.zippedArchive&&!this.tailable?"".concat(x,".gz"):x}},{key:"_checkMaxFilesIncrementing",value:function(S,_,P){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(P);var x=this._created-this.maxFiles,M=x!==0?x:"",C=this.zippedArchive?".gz":"",T="".concat(_).concat(M).concat(S).concat(C),A=c.join(this.dirname,T);f.unlink(A,P)}},{key:"_checkMaxFilesTailable",value:function(S,_,P){var x=this,M=[];if(this.maxFiles){for(var C=this.zippedArchive?".gz":"",T=this.maxFiles-1;T>1;T--)M.push((function(A,L){var B=this,U="".concat(_).concat(A-1).concat(S).concat(C),D=c.join(this.dirname,U);f.exists(D,function(j){if(!j)return L(null);U="".concat(_).concat(A).concat(S).concat(C),f.rename(D,c.join(B.dirname,U),L)})}).bind(this,T));w(M,function(){f.rename(c.join(x.dirname,"".concat(_).concat(S)),c.join(x.dirname,"".concat(_,"1").concat(S).concat(C)),P)})}}},{key:"_createLogDirIfNotExist",value:function(S){f.existsSync(S)||f.mkdirSync(S,{recursive:!0})}}]),G}(g),di}var pi,$u;function lg(){if($u)return pi;$u=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},e(g)}function n(g,E){var R=Object.keys(g);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(g);E&&(O=O.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),R.push.apply(R,O)}return R}function o(g){for(var E=1;E<arguments.length;E++){var R=arguments[E]!=null?arguments[E]:{};E%2?n(Object(R),!0).forEach(function(O){a(g,O,R[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(R)):n(Object(R)).forEach(function(O){Object.defineProperty(g,O,Object.getOwnPropertyDescriptor(R,O))})}return g}function a(g,E,R){return E in g?Object.defineProperty(g,E,{value:R,enumerable:!0,configurable:!0,writable:!0}):g[E]=R,g}function i(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function t(g,E){for(var R=0;R<E.length;R++){var O=E[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}function r(g,E,R){return E&&t(g.prototype,E),Object.defineProperty(g,"prototype",{writable:!1}),g}function s(g,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(E&&E.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),E&&d(g,E)}function d(g,E){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,I){return O.__proto__=I,O},d(g,E)}function l(g){var E=c();return function(){var O=w(g),I;if(E){var q=w(this).constructor;I=Reflect.construct(O,arguments,q)}else I=O.apply(this,arguments);return h(this,I)}}function h(g,E){if(E&&(e(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(g)}function f(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w(g){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},w(g)}var p=Kd(),y=Xd(),m=Dt(),u=m.Stream,v=ut(),b=Ft();return pi=function(g){s(R,g);var E=l(R);function R(){var O,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i(this,R),O=E.call(this,I),O.options=I,O.name=I.name||"http",O.ssl=!!I.ssl,O.host=I.host||"localhost",O.port=I.port,O.auth=I.auth,O.path=I.path||"",O.agent=I.agent,O.headers=I.headers||{},O.headers["content-type"]="application/json",O.batch=I.batch||!1,O.batchInterval=I.batchInterval||5e3,O.batchCount=I.batchCount||10,O.batchOptions=[],O.batchTimeoutID=-1,O.batchCallback={},O.port||(O.port=O.ssl?443:80),O}return r(R,[{key:"log",value:function(I,q){var G=this;this._request(I,function(V,S){S&&S.statusCode!==200&&(V=new Error("Invalid HTTP Status Code: ".concat(S.statusCode))),V?G.emit("warn",V):G.emit("logged",I)}),q&&setImmediate(q)}},{key:"query",value:function(I,q){typeof I=="function"&&(q=I,I={}),I={method:"query",params:this.normalizeQuery(I)},I.params.path&&(I.path=I.params.path,delete I.params.path),I.params.auth&&(I.auth=I.params.auth,delete I.params.auth),this._request(I,function(G,V,S){if(V&&V.statusCode!==200&&(G=new Error("Invalid HTTP Status Code: ".concat(V.statusCode))),G)return q(G);if(typeof S=="string")try{S=JSON.parse(S)}catch(_){return q(_)}q(null,S)})}},{key:"stream",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=new u;I={method:"stream",params:I},I.params.path&&(I.path=I.params.path,delete I.params.path),I.params.auth&&(I.auth=I.params.auth,delete I.params.auth);var G="",V=this._request(I);return q.destroy=function(){return V.destroy()},V.on("data",function(S){S=(G+S).split(/\n+/);for(var _=S.length-1,P=0;P<_;P++)try{q.emit("log",JSON.parse(S[P]))}catch(x){q.emit("error",x)}G=S[_]}),V.on("error",function(S){return q.emit("error",S)}),q}},{key:"_request",value:function(I,q){I=I||{};var G=I.auth||this.auth,V=I.path||this.path||"";delete I.auth,delete I.path,this.batch?this._doBatch(I,q,G,V):this._doRequest(I,q,G,V)}},{key:"_doBatch",value:function(I,q,G,V){if(this.batchOptions.push(I),this.batchOptions.length===1){var S=this;this.batchCallback=q,this.batchTimeoutID=setTimeout(function(){S.batchTimeoutID=-1,S._doBatchRequest(S.batchCallback,G,V)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,G,V)}},{key:"_doBatchRequest",value:function(I,q,G){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var V=this.batchOptions.slice();this.batchOptions=[],this._doRequest(V,I,q,G)}},{key:"_doRequest",value:function(I,q,G,V){var S=Object.assign({},this.headers);G&&G.bearer&&(S.Authorization="Bearer ".concat(G.bearer));var _=(this.ssl?y:p).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(V.replace(/^\//,"")),headers:S,auth:G&&G.username&&G.password?"".concat(G.username,":").concat(G.password):"",agent:this.agent}));_.on("error",q),_.on("response",function(P){return P.on("end",function(){return q(null,P)}).resume()}),_.end(Re.from(b(I,this.options.replacer),"utf8"))}}]),R}(v),pi}var mi,Vu;function Cf(){if(Vu)return mi;Vu=1;const e=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";return e.writable=n=>e(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",e.readable=n=>e(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",e.duplex=n=>e.writable(n)&&e.readable(n),e.transform=n=>e.duplex(n)&&typeof n._transform=="function",mi=e,mi}var gi,Gu;function fg(){if(Gu)return gi;Gu=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(m)}function n(m,u){if(!(m instanceof u))throw new TypeError("Cannot call a class as a function")}function o(m,u){for(var v=0;v<u.length;v++){var b=u[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}function a(m,u,v){return u&&o(m.prototype,u),Object.defineProperty(m,"prototype",{writable:!1}),m}function i(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(u&&u.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),u&&t(m,u)}function t(m,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,g){return b.__proto__=g,b},t(m,u)}function r(m){var u=l();return function(){var b=h(m),g;if(u){var E=h(this).constructor;g=Reflect.construct(b,arguments,E)}else g=b.apply(this,arguments);return s(this,g)}}function s(m,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(m)}function d(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(m){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},h(m)}var f=Cf(),c=he(),w=c.MESSAGE,p=st(),y=ut();return gi=function(m){i(v,m);var u=r(v);function v(){var b,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n(this,v),b=u.call(this,g),!g.stream||!f(g.stream))throw new Error("options.stream is required.");return b._stream=g.stream,b._stream.setMaxListeners(1/0),b.isObjectMode=g.stream._writableState.objectMode,b.eol=typeof g.eol=="string"?g.eol:p.EOL,b}return a(v,[{key:"log",value:function(g,E){var R=this;if(setImmediate(function(){return R.emit("logged",g)}),this.isObjectMode){this._stream.write(g),E&&E();return}this._stream.write("".concat(g[w]).concat(this.eol)),E&&E()}}]),v}(y),gi}var zu;function hg(){return zu||(zu=1,function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return Zm()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return cg()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return lg()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return fg()}})}(ni)),ni}var ft={},Hu;function va(){if(Hu)return ft;Hu=1;var e=_f(),n=he(),o=n.configs;return ft.cli=e.levels(o.cli),ft.npm=e.levels(o.npm),ft.syslog=e.levels(o.syslog),ft.addColors=e.levels,ft}var br={exports:{}},wr={exports:{}},Zu;function dg(){return Zu||(Zu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=ga(),a=m(o),i=ya(),t=m(i),r=Af(),s=m(r),d=If(),l=m(d),h=Tf(),f=m(h),c=gt(),w=m(c),p=Ut(),y=m(p);function m(g){return g&&g.__esModule?g:{default:g}}function u(g,E,R){R=(0,l.default)(R);var O=0,I=0,{length:q}=g,G=!1;q===0&&R(null);function V(S,_){S===!1&&(G=!0),G!==!0&&(S?R(S):(++I===q||_===t.default)&&R(null))}for(;O<q;O++)E(g[O],O,(0,f.default)(V))}function v(g,E,R){return(0,s.default)(g,1/0,E,R)}function b(g,E,R){var O=(0,a.default)(g)?u:v;return O(g,(0,w.default)(E),R)}n.default=(0,y.default)(b,3),e.exports=n.default}(wr,wr.exports)),wr.exports}var Er={exports:{}},Wu;function pg(){return Wu||(Wu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(a){return(i,t,r)=>a(i,r)}e.exports=n.default}(Er,Er.exports)),Er.exports}var Yu;function ba(){return Yu||(Yu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=dg(),a=h(o),i=pg(),t=h(i),r=gt(),s=h(r),d=Ut(),l=h(d);function h(c){return c&&c.__esModule?c:{default:c}}function f(c,w,p){return(0,a.default)(c,(0,t.default)((0,s.default)(w)),p)}n.default=(0,l.default)(f,3),e.exports=n.default}(br,br.exports)),br.exports}var yi,Ju;function mg(){if(Ju)return yi;Ju=1;var e=Object.prototype.toString;return yi=function(o){if(typeof o.displayName=="string"&&o.constructor.name)return o.displayName;if(typeof o.name=="string"&&o.name)return o.name;if(typeof o=="object"&&o.constructor&&typeof o.constructor.name=="string")return o.constructor.name;var a=o.toString(),i=e.call(o).slice(8,-1);return i==="Function"?a=a.substring(a.indexOf("(")+1,a.indexOf(")")):a=i,a||"anonymous"},yi}var vi,Ku;function Pf(){if(Ku)return vi;Ku=1;var e=mg();return vi=function(o){var a=0,i;function t(){return a||(a=1,i=o.apply(this,arguments),o=null),i}return t.displayName=e(o),t},vi}var bi={},Xu;function jf(){return Xu||(Xu=1,function(e){e.get=function(i){var t=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},s=Error.prepareStackTrace;Error.prepareStackTrace=function(l,h){return h},Error.captureStackTrace(r,i||e.get);var d=r.stack;return Error.prepareStackTrace=s,Error.stackTraceLimit=t,d},e.parse=function(i){if(!i.stack)return[];var t=this,r=i.stack.split(`
|
|
130
|
-
`).slice(1);return r.map(function(s){if(s.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:s,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var d=s.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(d){var l=null,h=null,f=null,c=null,w=null,p=d[5]==="native";if(d[1]){f=d[1];var y=f.lastIndexOf(".");if(f[y-1]=="."&&y--,y>0){l=f.substr(0,y),h=f.substr(y+1);var m=l.indexOf(".Module");m>0&&(f=f.substr(m+1),l=l.substr(0,m))}c=null}h&&(c=l,w=h),h==="<anonymous>"&&(w=null,f=null);var u={fileName:d[2]||null,lineNumber:parseInt(d[3],10)||null,functionName:f,typeName:c,methodName:w,columnNumber:parseInt(d[4],10)||null,native:p};return t._createParsedCallSite(u)}}).filter(function(s){return!!s})};function n(i){for(var t in i)this[t]=i[t]}var o=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],a=["topLevel","eval","native","constructor"];o.forEach(function(i){n.prototype[i]=null,n.prototype["get"+i[0].toUpperCase()+i.substr(1)]=function(){return this[i]}}),a.forEach(function(i){n.prototype[i]=!1,n.prototype["is"+i[0].toUpperCase()+i.substr(1)]=function(){return this[i]}}),e._createParsedCallSite=function(i){return new n(i)}}(bi)),bi}var wi,Qu;function xf(){if(Qu)return wi;Qu=1;function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(w)}function n(w,p){if(!(w instanceof p))throw new TypeError("Cannot call a class as a function")}function o(w,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(w,m.key,m)}}function a(w,p,y){return p&&o(w.prototype,p),Object.defineProperty(w,"prototype",{writable:!1}),w}function i(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(p&&p.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),p&&t(w,p)}function t(w,p){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,u){return m.__proto__=u,m},t(w,p)}function r(w){var p=l();return function(){var m=h(w),u;if(p){var v=h(this).constructor;u=Reflect.construct(m,arguments,v)}else u=m.apply(this,arguments);return s(this,u)}}function s(w,p){if(p&&(e(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(w)}function d(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(w){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},h(w)}var f=Dt(),c=f.Writable;return wi=function(w){i(y,w);var p=r(y);function y(m){var u;if(n(this,y),u=p.call(this,{objectMode:!0}),!m)throw new Error("ExceptionStream requires a TransportStream instance.");return u.handleExceptions=!0,u.transport=m,u}return a(y,[{key:"_write",value:function(u,v,b){return u.exception?this.transport.log(u,b):(b(),!0)}}]),y}(c),wi}var Ei,ec;function qf(){if(ec)return Ei;ec=1;function e(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}function n(l,h){for(var f=0;f<h.length;f++){var c=h[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,h,f){return h&&n(l.prototype,h),Object.defineProperty(l,"prototype",{writable:!1}),l}var a=st(),i=ba(),t=Fr()("winston:exception"),r=Pf(),s=jf(),d=xf();return Ei=function(){function l(h){if(e(this,l),!h)throw new Error("Logger is required to handle exceptions");this.logger=h,this.handlers=new Map}return o(l,[{key:"handle",value:function(){for(var f=this,c=arguments.length,w=new Array(c),p=0;p<c;p++)w[p]=arguments[p];w.forEach(function(y){if(Array.isArray(y))return y.forEach(function(m){return f._addHandler(m)});f._addHandler(y)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),X.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var f=this;this.catcher&&(X.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return f.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(f){var c=f.message;return!c&&typeof f=="string"&&(c=f),{error:f,level:"error",message:["uncaughtException: ".concat(c||"(no error message)"),f.stack||" No stack trace"].join(`
|
|
131
|
-
`),stack:f.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(f)}}},{key:"getProcessInfo",value:function(){return{pid:X.pid,uid:X.getuid?X.getuid():null,gid:X.getgid?X.getgid():null,cwd:X.cwd(),execPath:X.execPath,version:X.version,argv:X.argv,memoryUsage:X.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:a.loadavg(),uptime:a.uptime()}}},{key:"getTrace",value:function(f){var c=f?s.parse(f):s.get();return c.map(function(w){return{column:w.getColumnNumber(),file:w.getFileName(),function:w.getFunctionName(),line:w.getLineNumber(),method:w.getMethodName(),native:w.isNative()}})}},{key:"_addHandler",value:function(f){if(!this.handlers.has(f)){f.handleExceptions=!0;var c=new d(f);this.handlers.set(f,c),this.logger.pipe(c)}}},{key:"_uncaughtException",value:function(f){var c=this.getAllInfo(f),w=this._getExceptionHandlers(),p=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(f):this.logger.exitOnError,y;!w.length&&p&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),p=!1);function m(){t("doExit",p),t("process._exiting",X._exiting),p&&!X._exiting&&(y&&clearTimeout(y),X.exit(1))}if(!w||w.length===0)return X.nextTick(m);i(w,function(u,v){var b=r(v),g=u.transport||u;function E(R){return function(){t(R),b()}}g._ending=!0,g.once("finish",E("finished")),g.once("error",E("error"))},function(){return p&&m()}),this.logger.log(c),p&&(y=setTimeout(m,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(f){var c=f.transport||f;return c.handleExceptions})}}]),l}(),Ei}var Si,tc;function Lf(){if(tc)return Si;tc=1;function e(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}function n(l,h){for(var f=0;f<h.length;f++){var c=h[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,h,f){return h&&n(l.prototype,h),Object.defineProperty(l,"prototype",{writable:!1}),l}var a=st(),i=ba(),t=Fr()("winston:rejection"),r=Pf(),s=jf(),d=xf();return Si=function(){function l(h){if(e(this,l),!h)throw new Error("Logger is required to handle rejections");this.logger=h,this.handlers=new Map}return o(l,[{key:"handle",value:function(){for(var f=this,c=arguments.length,w=new Array(c),p=0;p<c;p++)w[p]=arguments[p];w.forEach(function(y){if(Array.isArray(y))return y.forEach(function(m){return f._addHandler(m)});f._addHandler(y)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),X.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var f=this;this.catcher&&(X.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return f.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(f){var c=null;return f&&(c=typeof f=="string"?f:f.message),{error:f,level:"error",message:["unhandledRejection: ".concat(c||"(no error message)"),f&&f.stack||" No stack trace"].join(`
|
|
132
|
-
`),stack:f&&f.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(f)}}},{key:"getProcessInfo",value:function(){return{pid:X.pid,uid:X.getuid?X.getuid():null,gid:X.getgid?X.getgid():null,cwd:X.cwd(),execPath:X.execPath,version:X.version,argv:X.argv,memoryUsage:X.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:a.loadavg(),uptime:a.uptime()}}},{key:"getTrace",value:function(f){var c=f?s.parse(f):s.get();return c.map(function(w){return{column:w.getColumnNumber(),file:w.getFileName(),function:w.getFunctionName(),line:w.getLineNumber(),method:w.getMethodName(),native:w.isNative()}})}},{key:"_addHandler",value:function(f){if(!this.handlers.has(f)){f.handleRejections=!0;var c=new d(f);this.handlers.set(f,c),this.logger.pipe(c)}}},{key:"_unhandledRejection",value:function(f){var c=this.getAllInfo(f),w=this._getRejectionHandlers(),p=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(f):this.logger.exitOnError,y;!w.length&&p&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),p=!1);function m(){t("doExit",p),t("process._exiting",X._exiting),p&&!X._exiting&&(y&&clearTimeout(y),X.exit(1))}if(!w||w.length===0)return X.nextTick(m);i(w,function(u,v){var b=r(v),g=u.transport||u;function E(R){return function(){t(R),b()}}g._ending=!0,g.once("finish",E("finished")),g.once("error",E("error"))},function(){return p&&m()}),this.logger.log(c),p&&(y=setTimeout(m,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(f){var c=f.transport||f;return c.handleRejections})}}]),l}(),Si}var _i={exports:{}},rc;function gg(){if(rc)return _i.exports;rc=1;const e=ve(),{LEVEL:n}=he(),o=ut(),a=_i.exports=function(t={}){if(o.call(this,t),!t.transport||typeof t.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=t.transport,this.level=this.level||t.transport.level,this.handleExceptions=this.handleExceptions||t.transport.handleExceptions,this._deprecated();function r(s){this.emit("error",s,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(a,o),a.prototype._write=function(t,r,s){if(this.silent||t.exception===!0&&!this.handleExceptions)return s(null);(!this.level||this.levels[this.level]>=this.levels[t[n]])&&this.transport.log(t[n],t.message,t,this._nop),s(null)},a.prototype._writev=function(t,r){for(let s=0;s<t.length;s++)this._accept(t[s])&&(this.transport.log(t[s].chunk[n],t[s].chunk.message,t[s].chunk,this._nop),t[s].callback());return r(null)},a.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
133
|
-
`))},a.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},_i.exports}var Ri,nc;function yg(){if(nc)return Ri;nc=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(i)}function n(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function o(i,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function a(i,t,r){return t&&o(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),i}return Ri=function(){function i(t){if(n(this,i),!t)throw new Error("Logger is required for profiling.");this.logger=t,this.start=Date.now()}return a(i,[{key:"done",value:function(){for(var r=arguments.length,s=new Array(r),d=0;d<r;d++)s[d]=arguments[d];typeof s[s.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),s.pop());var l=e(s[s.length-1])==="object"?s.pop():{};return l.level=l.level||"info",l.durationMs=Date.now()-this.start,this.logger.write(l)}}]),i}(),Ri}var Oi,ic;function vg(){if(ic)return Oi;ic=1;class e extends Error{constructor(o){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
134
|
-
Found: ${o.toString().split(`
|
|
135
|
-
`)[0]}
|
|
136
|
-
`),Error.captureStackTrace(this,e)}}return Oi=n=>{if(n.length>2)throw new e(n);function o(i={}){this.options=i}o.prototype.transform=n;function a(i){return new o(i)}return a.Format=o,a},Oi}var Ii,oc;function bg(){if(oc)return Ii;oc=1;const e=vg(),{MESSAGE:n}=he(),o=Ft();function a(i,t){return typeof t=="bigint"?t.toString():t}return Ii=e((i,t)=>{const r=o.configure(t);return i[n]=r(i,t.replacer||a,t.space),i}),Ii}var Ti,ac;function wg(){if(ac)return Ti;ac=1;function e(P,x,M){return x in P?Object.defineProperty(P,x,{value:M,enumerable:!0,configurable:!0,writable:!0}):P[x]=M,P}function n(P){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},n(P)}function o(P,x){if(!(P instanceof x))throw new TypeError("Cannot call a class as a function")}function a(P,x){for(var M=0;M<x.length;M++){var C=x[M];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(P,C.key,C)}}function i(P,x,M){return x&&a(P.prototype,x),Object.defineProperty(P,"prototype",{writable:!1}),P}function t(P,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(x&&x.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),x&&r(P,x)}function r(P,x){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,T){return C.__proto__=T,C},r(P,x)}function s(P){var x=h();return function(){var C=f(P),T;if(x){var A=f(this).constructor;T=Reflect.construct(C,arguments,A)}else T=C.apply(this,arguments);return d(this,T)}}function d(P,x){if(x&&(n(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(P)}function l(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(P){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},f(P)}var c=Dt(),w=c.Stream,p=c.Transform,y=ba(),m=he(),u=m.LEVEL,v=m.SPLAT,b=Cf(),g=qf(),E=Lf(),R=gg(),O=yg(),I=Rf(),q=I.warn,G=va(),V=/%[scdjifoO%]/g,S=function(P){t(M,P);var x=s(M);function M(C){var T;return o(this,M),T=x.call(this,{objectMode:!0}),T.configure(C),T}return i(M,[{key:"child",value:function(T){var A=this;return Object.create(A,{write:{value:function(B){var U=Object.assign({},T,B);B instanceof Error&&(U.stack=B.stack,U.message=B.message),A.write(U)}}})}},{key:"configure",value:function(){var T=this,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=A.silent,B=A.format,U=A.defaultMeta,D=A.levels,j=A.level,k=j===void 0?"info":j,F=A.exitOnError,H=F===void 0?!0:F,Z=A.transports,W=A.colors,J=A.emitErrs,te=A.formatters,ie=A.padLevels,ae=A.rewriters,fe=A.stripColors,Le=A.exceptionHandlers,Ge=A.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=L,this.format=B||this.format||bg()(),this.defaultMeta=U||null,this.levels=D||this.levels||G.npm.levels,this.level=k,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new g(this),this.rejections=new E(this),this.profilers={},this.exitOnError=H,Z&&(Z=Array.isArray(Z)?Z:[Z],Z.forEach(function(Me){return T.add(Me)})),W||J||te||ie||ae||fe)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
137
|
-
`));Le&&this.exceptions.handle(Le),Ge&&this.rejections.handle(Ge)}},{key:"isLevelEnabled",value:function(T){var A=this,L=_(this.levels,T);if(L===null)return!1;var B=_(this.levels,this.level);if(B===null)return!1;if(!this.transports||this.transports.length===0)return B>=L;var U=this.transports.findIndex(function(D){var j=_(A.levels,D.level);return j===null&&(j=B),j>=L});return U!==-1}},{key:"log",value:function(T,A){for(var L,B=arguments.length,U=new Array(B>2?B-2:0),D=2;D<B;D++)U[D-2]=arguments[D];if(arguments.length===1)return T[u]=T.level,this._addDefaultMeta(T),this.write(T),this;if(arguments.length===2){var j;return A&&n(A)==="object"?(A[u]=A.level=T,this._addDefaultMeta(A),this.write(A),this):(A=(j={},e(j,u,T),e(j,"level",T),e(j,"message",A),j),this._addDefaultMeta(A),this.write(A),this)}var k=U[0];if(n(k)==="object"&&k!==null){var F=A&&A.match&&A.match(V);if(!F){var H,Z=Object.assign({},this.defaultMeta,k,(H={},e(H,u,T),e(H,v,U),e(H,"level",T),e(H,"message",A),H));return k.message&&(Z.message="".concat(Z.message," ").concat(k.message)),k.stack&&(Z.stack=k.stack),this.write(Z),this}}return this.write(Object.assign({},this.defaultMeta,(L={},e(L,u,T),e(L,v,U),e(L,"level",T),e(L,"message",A),L))),this}},{key:"_transform",value:function(T,A,L){if(this.silent)return L();T[u]||(T[u]=T.level),!this.levels[T[u]]&&this.levels[T[u]]!==0&&console.error("[winston] Unknown logger level: %s",T[u]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",T);try{this.push(this.format.transform(T,this.format.options))}finally{this._writableState.sync=!1,L()}}},{key:"_final",value:function(T){var A=this.transports.slice();y(A,function(L,B){if(!L||L.finished)return setImmediate(B);L.once("finish",B),L.end()},T)}},{key:"add",value:function(T){var A=!b(T)||T.log.length>2?new R({transport:T}):T;if(!A._writableState||!A._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",A),this._onEvent("warn",A),this.pipe(A),T.handleExceptions&&this.exceptions.handle(),T.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(T){if(!T)return this;var A=T;return(!b(T)||T.log.length>2)&&(A=this.transports.filter(function(L){return L.transport===T})[0]),A&&this.unpipe(A),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){q.deprecated("setLevels")}},{key:"query",value:function(T,A){typeof T=="function"&&(A=T,T={}),T=T||{};var L={},B=Object.assign({},T.query||{});function U(j,k){T.query&&typeof j.formatQuery=="function"&&(T.query=j.formatQuery(B)),j.query(T,function(F,H){if(F)return k(F);typeof j.formatResults=="function"&&(H=j.formatResults(H,T.format)),k(null,H)})}function D(j,k){U(j,function(F,H){k&&(H=F||H,H&&(L[j.name]=H),k()),k=null})}y(this.transports.filter(function(j){return!!j.query}),D,function(){return A(null,L)})}},{key:"stream",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=new w,L=[];return A._streams=L,A.destroy=function(){for(var B=L.length;B--;)L[B].destroy()},this.transports.filter(function(B){return!!B.stream}).forEach(function(B){var U=B.stream(T);U&&(L.push(U),U.on("log",function(D){D.transport=D.transport||[],D.transport.push(B.name),A.emit("log",D)}),U.on("error",function(D){D.transport=D.transport||[],D.transport.push(B.name),A.emit("error",D)}))}),A}},{key:"startTimer",value:function(){return new O(this)}},{key:"profile",value:function(T){var A=Date.now();if(this.profilers[T]){var L=this.profilers[T];delete this.profilers[T];for(var B=arguments.length,U=new Array(B>1?B-1:0),D=1;D<B;D++)U[D-1]=arguments[D];typeof U[U.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),U.pop());var j=n(U[U.length-1])==="object"?U.pop():{};return j.level=j.level||"info",j.durationMs=A-L,j.message=j.message||T,this.write(j)}return this.profilers[T]=A,this}},{key:"handleExceptions",value:function(){var T;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(T=this.exceptions).handle.apply(T,arguments)}},{key:"unhandleExceptions",value:function(){var T;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(T=this.exceptions).unhandle.apply(T,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
138
|
-
`))}},{key:"_onEvent",value:function(T,A){function L(B){T==="error"&&!this.transports.includes(A)&&this.add(A),this.emit(T,B,A)}A["__winston"+T]||(A["__winston"+T]=L.bind(this),A.on(T,A["__winston"+T]))}},{key:"_addDefaultMeta",value:function(T){this.defaultMeta&&Object.assign(T,this.defaultMeta)}}]),M}(p);function _(P,x){var M=P[x];return!M&&M!==0?null:M}return Object.defineProperty(S.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var x=this._readableState.pipes;return Array.isArray(x)?x:[x].filter(Boolean)}}),Ti=S,Ti}var Ai,sc;function kf(){if(sc)return Ai;sc=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(m)}function n(m,u,v){return Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m,u){if(!(m instanceof u))throw new TypeError("Cannot call a class as a function")}function a(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(u&&u.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),u&&i(m,u)}function i(m,u){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,g){return b.__proto__=g,b},i(m,u)}function t(m){var u=d();return function(){var b=l(m),g;if(u){var E=l(this).constructor;g=Reflect.construct(b,arguments,E)}else g=b.apply(this,arguments);return r(this,g)}}function r(m,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(m)}function s(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(m){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},l(m)}var h=he(),f=h.LEVEL,c=va(),w=wg(),p=Fr()("winston:create-logger");function y(m){return"is"+m.charAt(0).toUpperCase()+m.slice(1)+"Enabled"}return Ai=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};m.levels=m.levels||c.npm.levels;var u=function(b){a(E,b);var g=t(E);function E(R){return o(this,E),g.call(this,R)}return n(E)}(w),v=new u(m);return Object.keys(m.levels).forEach(function(b){if(p('Define prototype method for "%s"',b),b==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}u.prototype[b]=function(){for(var g=this||v,E=arguments.length,R=new Array(E),O=0;O<E;O++)R[O]=arguments[O];if(R.length===1){var I=R[0],q=I&&I.message&&I||{message:I};return q.level=q[f]=b,g._addDefaultMeta(q),g.write(q),this||v}return R.length===0?(g.log(b,""),g):g.log.apply(g,[b].concat(R))},u.prototype[y(b)]=function(){return(this||v).isLevelEnabled(b)}}),v},Ai}var Ci,uc;function Eg(){if(uc)return Ci;uc=1;function e(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function n(i,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function o(i,t,r){return t&&n(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),i}var a=kf();return Ci=function(){function i(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,i),this.loggers=new Map,this.options=t}return o(i,[{key:"add",value:function(r,s){var d=this;if(!this.loggers.has(r)){s=Object.assign({},s||this.options);var l=s.transports||this.options.transports;s.transports=l?l.slice():[];var h=a(s);h.on("close",function(){return d._delete(r)}),this.loggers.set(r,h)}return this.loggers.get(r)}},{key:"get",value:function(r,s){return this.add(r,s)}},{key:"has",value:function(r){return!!this.loggers.has(r)}},{key:"close",value:function(r){var s=this;if(r)return this._removeLogger(r);this.loggers.forEach(function(d,l){return s._removeLogger(l)})}},{key:"_removeLogger",value:function(r){if(this.loggers.has(r)){var s=this.loggers.get(r);s.close(),this._delete(r)}}},{key:"_delete",value:function(r){this.loggers.delete(r)}}]),i}(),Ci}var cc;function Sg(){return cc||(cc=1,function(e){var n=_f(),o=Rf(),a=o.warn;e.version=zm.version,e.transports=hg(),e.config=va(),e.addColors=n.levels,e.format=n.format,e.createLogger=kf(),e.ExceptionHandler=qf(),e.RejectionHandler=Lf(),e.Container=Eg(),e.Transport=ut(),e.loggers=new e.Container;var i=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(t){return e[t]=function(){return i[t].apply(i,arguments)}}),Object.defineProperty(e,"level",{get:function(){return i.level},set:function(r){i.level=r}}),Object.defineProperty(e,"exceptions",{get:function(){return i.exceptions}}),["exitOnError"].forEach(function(t){Object.defineProperty(e,t,{get:function(){return i[t]},set:function(s){i[t]=s}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:i.exceptionHandlers,rejectionHandlers:i.rejectionHandlers,transports:i.transports}}}),a.deprecated(e,"setLevels"),a.forFunctions(e,"useFormat",["cli"]),a.forProperties(e,"useFormat",["padLevels","stripColors"]),a.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),a.forProperties(e,"deprecated",["emitErrs","levelLength"]),a.moved(e,"createLogger","Logger")}(Tn)),Tn}var Pi={exports:{}},ji,lc;function Ur(){if(lc)return ji;lc=1;var e=function(n,o){Error.call(this,n),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=n,o&&(this.inner=o)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,ji=e,ji}var xi,fc;function Nf(){if(fc)return xi;fc=1;var e=Ur(),n=function(o,a){e.call(this,o),this.name="NotBeforeError",this.date=a};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,xi=n,xi}var qi,hc;function Df(){if(hc)return qi;hc=1;var e=Ur(),n=function(o,a){e.call(this,o),this.name="TokenExpiredError",this.expiredAt=a};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,qi=n,qi}var $e={},Li,dc;function Mf(){if(dc)return Li;dc=1;var e=Nt().Buffer,n=Dr(),o=ve();function a(i){if(this.buffer=null,this.writable=!0,this.readable=!0,!i)return this.buffer=e.alloc(0),this;if(typeof i.pipe=="function")return this.buffer=e.alloc(0),i.pipe(this),this;if(i.length||typeof i=="object")return this.buffer=i,this.writable=!1,X.nextTick((function(){this.emit("end",i),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof i+")")}return o.inherits(a,n),a.prototype.write=function(t){this.buffer=e.concat([this.buffer,e.from(t)]),this.emit("data",t)},a.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1},Li=a,Li}var ki,pc;function _g(){if(pc)return ki;pc=1;function e(a){var i=(a/8|0)+(a%8===0?0:1);return i}var n={ES256:e(256),ES384:e(384),ES512:e(521)};function o(a){var i=n[a];if(i)return i;throw new Error('Unknown algorithm "'+a+'"')}return ki=o,ki}var Ni,mc;function Rg(){if(mc)return Ni;mc=1;var e=Nt().Buffer,n=_g(),o=128,a=0,i=32,t=16,r=2,s=t|i|a<<6,d=r|a<<6;function l(p){return p.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function h(p){if(e.isBuffer(p))return p;if(typeof p=="string")return e.from(p,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function f(p,y){p=h(p);var m=n(y),u=m+1,v=p.length,b=0;if(p[b++]!==s)throw new Error('Could not find expected "seq"');var g=p[b++];if(g===(o|1)&&(g=p[b++]),v-b<g)throw new Error('"seq" specified length of "'+g+'", only "'+(v-b)+'" remaining');if(p[b++]!==d)throw new Error('Could not find expected "int" for "r"');var E=p[b++];if(v-b-2<E)throw new Error('"r" specified length of "'+E+'", only "'+(v-b-2)+'" available');if(u<E)throw new Error('"r" specified length of "'+E+'", max of "'+u+'" is acceptable');var R=b;if(b+=E,p[b++]!==d)throw new Error('Could not find expected "int" for "s"');var O=p[b++];if(v-b!==O)throw new Error('"s" specified length of "'+O+'", expected "'+(v-b)+'"');if(u<O)throw new Error('"s" specified length of "'+O+'", max of "'+u+'" is acceptable');var I=b;if(b+=O,b!==v)throw new Error('Expected to consume entire buffer, but "'+(v-b)+'" bytes remain');var q=m-E,G=m-O,V=e.allocUnsafe(q+E+G+O);for(b=0;b<q;++b)V[b]=0;p.copy(V,b,R+Math.max(-q,0),R+E),b=m;for(var S=b;b<S+G;++b)V[b]=0;return p.copy(V,b,I+Math.max(-G,0),I+O),V=V.toString("base64"),V=l(V),V}function c(p,y,m){for(var u=0;y+u<m&&p[y+u]===0;)++u;var v=p[y+u]>=o;return v&&--u,u}function w(p,y){p=h(p);var m=n(y),u=p.length;if(u!==m*2)throw new TypeError('"'+y+'" signatures must be "'+m*2+'" bytes, saw "'+u+'"');var v=c(p,0,m),b=c(p,m,p.length),g=m-v,E=m-b,R=2+g+1+1+E,O=R<o,I=e.allocUnsafe((O?2:3)+R),q=0;return I[q++]=s,O?I[q++]=R:(I[q++]=o|1,I[q++]=R&255),I[q++]=d,I[q++]=g,v<0?(I[q++]=0,q+=p.copy(I,q,0,m)):q+=p.copy(I,q,v,m),I[q++]=d,I[q++]=E,b<0?(I[q++]=0,p.copy(I,q,m)):p.copy(I,q,m+b),I}return Ni={derToJose:f,joseToDer:w},Ni}var Di,gc;function Og(){if(gc)return Di;gc=1;var e=jt().Buffer,n=jt().SlowBuffer;Di=o;function o(t,r){if(!e.isBuffer(t)||!e.isBuffer(r)||t.length!==r.length)return!1;for(var s=0,d=0;d<t.length;d++)s|=t[d]^r[d];return s===0}o.install=function(){e.prototype.equal=n.prototype.equal=function(r){return o(this,r)}};var a=e.prototype.equal,i=n.prototype.equal;return o.restore=function(){e.prototype.equal=a,n.prototype.equal=i},Di}var Mi,yc;function Ff(){if(yc)return Mi;yc=1;var e=Nt().Buffer,n=mt(),o=Rg(),a=ve(),i=`"%s" is not a valid algorithm.
|
|
139
|
-
Supported algorithms are:
|
|
140
|
-
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,t="secret must be a string or buffer",r="key must be a string or a buffer",s="key must be a string, a buffer or an object",d=typeof n.createPublicKey=="function";d&&(r+=" or a KeyObject",t+="or a KeyObject");function l(_){if(!e.isBuffer(_)&&typeof _!="string"&&(!d||typeof _!="object"||typeof _.type!="string"||typeof _.asymmetricKeyType!="string"||typeof _.export!="function"))throw p(r)}function h(_){if(!e.isBuffer(_)&&typeof _!="string"&&typeof _!="object")throw p(s)}function f(_){if(!e.isBuffer(_)){if(typeof _=="string")return _;if(!d||typeof _!="object"||_.type!=="secret"||typeof _.export!="function")throw p(t)}}function c(_){return _.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function w(_){_=_.toString();var P=4-_.length%4;if(P!==4)for(var x=0;x<P;++x)_+="=";return _.replace(/\-/g,"+").replace(/_/g,"/")}function p(_){var P=[].slice.call(arguments,1),x=a.format.bind(a,_).apply(null,P);return new TypeError(x)}function y(_){return e.isBuffer(_)||typeof _=="string"}function m(_){return y(_)||(_=JSON.stringify(_)),_}function u(_){return function(x,M){f(M),x=m(x);var C=n.createHmac("sha"+_,M),T=(C.update(x),C.digest("base64"));return c(T)}}var v,b="timingSafeEqual"in n?function(P,x){return P.byteLength!==x.byteLength?!1:n.timingSafeEqual(P,x)}:function(P,x){return v||(v=Og()),v(P,x)};function g(_){return function(x,M,C){var T=u(_)(x,C);return b(e.from(M),e.from(T))}}function E(_){return function(x,M){h(M),x=m(x);var C=n.createSign("RSA-SHA"+_),T=(C.update(x),C.sign(M,"base64"));return c(T)}}function R(_){return function(x,M,C){l(C),x=m(x),M=w(M);var T=n.createVerify("RSA-SHA"+_);return T.update(x),T.verify(C,M,"base64")}}function O(_){return function(x,M){h(M),x=m(x);var C=n.createSign("RSA-SHA"+_),T=(C.update(x),C.sign({key:M,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return c(T)}}function I(_){return function(x,M,C){l(C),x=m(x),M=w(M);var T=n.createVerify("RSA-SHA"+_);return T.update(x),T.verify({key:C,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},M,"base64")}}function q(_){var P=E(_);return function(){var M=P.apply(null,arguments);return M=o.derToJose(M,"ES"+_),M}}function G(_){var P=R(_);return function(M,C,T){C=o.joseToDer(C,"ES"+_).toString("base64");var A=P(M,C,T);return A}}function V(){return function(){return""}}function S(){return function(P,x){return x===""}}return Mi=function(P){var x={hs:u,rs:E,ps:O,es:q,none:V},M={hs:g,rs:R,ps:I,es:G,none:S},C=P.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!C)throw p(i,P);var T=(C[1]||C[3]).toLowerCase(),A=C[2];return{sign:x[T](A),verify:M[T](A)}},Mi}var Fi,vc;function Uf(){if(vc)return Fi;vc=1;var e=jt().Buffer;return Fi=function(o){return typeof o=="string"?o:typeof o=="number"||e.isBuffer(o)?o.toString():JSON.stringify(o)},Fi}var Ui,bc;function Ig(){if(bc)return Ui;bc=1;var e=Nt().Buffer,n=Mf(),o=Ff(),a=Dr(),i=Uf(),t=ve();function r(h,f){return e.from(h,f).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(h,f,c){c=c||"utf8";var w=r(i(h),"binary"),p=r(i(f),c);return t.format("%s.%s",w,p)}function d(h){var f=h.header,c=h.payload,w=h.secret||h.privateKey,p=h.encoding,y=o(f.alg),m=s(f,c,p),u=y.sign(m,w);return t.format("%s.%s",m,u)}function l(h){var f=h.secret;if(f=f??h.privateKey,f=f??h.key,/^hs/i.test(h.header.alg)===!0&&f==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var c=new n(f);this.readable=!0,this.header=h.header,this.encoding=h.encoding,this.secret=this.privateKey=this.key=c,this.payload=new n(h.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}return t.inherits(l,a),l.prototype.sign=function(){try{var f=d({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",f),this.emit("data",f),this.emit("end"),this.readable=!1,f}catch(c){this.readable=!1,this.emit("error",c),this.emit("close")}},l.sign=d,Ui=l,Ui}var Bi,wc;function Tg(){if(wc)return Bi;wc=1;var e=Nt().Buffer,n=Mf(),o=Ff(),a=Dr(),i=Uf(),t=ve(),r=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function s(u){return Object.prototype.toString.call(u)==="[object Object]"}function d(u){if(s(u))return u;try{return JSON.parse(u)}catch{return}}function l(u){var v=u.split(".",1)[0];return d(e.from(v,"base64").toString("binary"))}function h(u){return u.split(".",2).join(".")}function f(u){return u.split(".")[2]}function c(u,v){v=v||"utf8";var b=u.split(".")[1];return e.from(b,"base64").toString(v)}function w(u){return r.test(u)&&!!l(u)}function p(u,v,b){if(!v){var g=new Error("Missing algorithm parameter for jws.verify");throw g.code="MISSING_ALGORITHM",g}u=i(u);var E=f(u),R=h(u),O=o(v);return O.verify(R,E,b)}function y(u,v){if(v=v||{},u=i(u),!w(u))return null;var b=l(u);if(!b)return null;var g=c(u);return(b.typ==="JWT"||v.json)&&(g=JSON.parse(g,v.encoding)),{header:b,payload:g,signature:f(u)}}function m(u){u=u||{};var v=u.secret;if(v=v??u.publicKey,v=v??u.key,/^hs/i.test(u.algorithm)===!0&&v==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var b=new n(v);this.readable=!0,this.algorithm=u.algorithm,this.encoding=u.encoding,this.secret=this.publicKey=this.key=b,this.signature=new n(u.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}return t.inherits(m,a),m.prototype.verify=function(){try{var v=p(this.signature.buffer,this.algorithm,this.key.buffer),b=y(this.signature.buffer,this.encoding);return this.emit("done",v,b),this.emit("data",v),this.emit("end"),this.readable=!1,v}catch(g){this.readable=!1,this.emit("error",g),this.emit("close")}},m.decode=y,m.isValid=w,m.verify=p,Bi=m,Bi}var Ec;function wa(){if(Ec)return $e;Ec=1;var e=Ig(),n=Tg(),o=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return $e.ALGORITHMS=o,$e.sign=e.sign,$e.verify=n.verify,$e.decode=n.decode,$e.isValid=n.isValid,$e.createSign=function(i){return new e(i)},$e.createVerify=function(i){return new n(i)},$e}var $i,Sc;function Bf(){if(Sc)return $i;Sc=1;var e=wa();return $i=function(n,o){o=o||{};var a=e.decode(n,o);if(!a)return null;var i=a.payload;if(typeof i=="string")try{var t=JSON.parse(i);t!==null&&typeof t=="object"&&(i=t)}catch{}return o.complete===!0?{header:a.header,payload:i,signature:a.signature}:i},$i}var Vi,_c;function $f(){if(_c)return Vi;_c=1;var e=df();return Vi=function(n,o){var a=o||Math.floor(Date.now()/1e3);if(typeof n=="string"){var i=e(n);return typeof i>"u"?void 0:Math.floor(a+i/1e3)}else return typeof n=="number"?a+n:void 0},Vi}var Sr={exports:{}},Gi,Rc;function Br(){if(Rc)return Gi;Rc=1;const e="2.0.0",n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991;return Gi={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:o,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Gi}var zi,Oc;function $r(){if(Oc)return zi;Oc=1;var e={};return zi=typeof X=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...o)=>console.error("SEMVER",...o):()=>{},zi}var Ic;function Bt(){return Ic||(Ic=1,function(e,n){const{MAX_SAFE_COMPONENT_LENGTH:o}=Br(),a=$r();n=e.exports={};const i=n.re=[],t=n.safeRe=[],r=n.src=[],s=n.t={};let d=0;const l=(h,f,c)=>{const w=f.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),p=d++;a(h,p,f),s[h]=p,r[p]=f,i[p]=new RegExp(f,c?"g":void 0),t[p]=new RegExp(w,c?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${r[s.NUMERICIDENTIFIER]}|${r[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${r[s.NUMERICIDENTIFIERLOOSE]}|${r[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${r[s.PRERELEASEIDENTIFIER]}(?:\\.${r[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${r[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${r[s.BUILDIDENTIFIER]}(?:\\.${r[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${r[s.MAINVERSION]}${r[s.PRERELEASE]}?${r[s.BUILD]}?`),l("FULL",`^${r[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${r[s.MAINVERSIONLOOSE]}${r[s.PRERELEASELOOSE]}?${r[s.BUILD]}?`),l("LOOSE",`^${r[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${r[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${r[s.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:${r[s.PRERELEASE]})?${r[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:${r[s.PRERELEASELOOSE]})?${r[s.BUILD]}?)?)?`),l("XRANGE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?(?:$|[^\\d])`),l("COERCERTL",r[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${r[s.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",l("TILDE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${r[s.LONECARET]}\\s+`,!0),n.caretTrimReplace="$1^",l("CARET",`^${r[s.LONECARET]}${r[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${r[s.LONECARET]}${r[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${r[s.GTLT]}\\s*(${r[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]}|${r[s.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${r[s.XRANGEPLAIN]})\\s+-\\s+(${r[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${r[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Sr,Sr.exports)),Sr.exports}var Hi,Tc;function Ea(){if(Tc)return Hi;Tc=1;const e=Object.freeze({loose:!0}),n=Object.freeze({});return Hi=a=>a?typeof a!="object"?e:a:n,Hi}var Zi,Ac;function Vf(){if(Ac)return Zi;Ac=1;const e=/^[0-9]+$/,n=(a,i)=>{const t=e.test(a),r=e.test(i);return t&&r&&(a=+a,i=+i),a===i?0:t&&!r?-1:r&&!t?1:a<i?-1:1};return Zi={compareIdentifiers:n,rcompareIdentifiers:(a,i)=>n(i,a)},Zi}var Wi,Cc;function Se(){if(Cc)return Wi;Cc=1;const e=$r(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=Br(),{safeRe:a,t:i}=Bt(),t=Ea(),{compareIdentifiers:r}=Vf();class s{constructor(l,h){if(h=t(h),l instanceof s){if(l.loose===!!h.loose&&l.includePrerelease===!!h.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>n)throw new TypeError(`version is longer than ${n} characters`);e("SemVer",l,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;const f=l.trim().match(h.loose?a[i.LOOSE]:a[i.FULL]);if(!f)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){const w=+c;if(w>=0&&w<o)return w}return c}):this.prerelease=[],this.build=f[5]?f[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(l){if(e("SemVer.compare",this.version,this.options,l),!(l instanceof s)){if(typeof l=="string"&&l===this.version)return 0;l=new s(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof s||(l=new s(l,this.options)),r(this.major,l.major)||r(this.minor,l.minor)||r(this.patch,l.patch)}comparePre(l){if(l instanceof s||(l=new s(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let h=0;do{const f=this.prerelease[h],c=l.prerelease[h];if(e("prerelease compare",h,f,c),f===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(f===void 0)return-1;if(f===c)continue;return r(f,c)}while(++h)}compareBuild(l){l instanceof s||(l=new s(l,this.options));let h=0;do{const f=this.build[h],c=l.build[h];if(e("prerelease compare",h,f,c),f===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(f===void 0)return-1;if(f===c)continue;return r(f,c)}while(++h)}inc(l,h,f){switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,f),this.inc("pre",h,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,f),this.inc("pre",h,f);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(f)?1:0;if(!h&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[c];else{let w=this.prerelease.length;for(;--w>=0;)typeof this.prerelease[w]=="number"&&(this.prerelease[w]++,w=-2);if(w===-1){if(h===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(h){let w=[h,c];f===!1&&(w=[h]),r(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=w):this.prerelease=w}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Wi=s,Wi}var Yi,Pc;function yt(){if(Pc)return Yi;Pc=1;const e=Se();return Yi=(o,a,i=!1)=>{if(o instanceof e)return o;try{return new e(o,a)}catch(t){if(!i)return null;throw t}},Yi}var Ji,jc;function Ag(){if(jc)return Ji;jc=1;const e=yt();return Ji=(o,a)=>{const i=e(o,a);return i?i.version:null},Ji}var Ki,xc;function Cg(){if(xc)return Ki;xc=1;const e=yt();return Ki=(o,a)=>{const i=e(o.trim().replace(/^[=v]+/,""),a);return i?i.version:null},Ki}var Xi,qc;function Pg(){if(qc)return Xi;qc=1;const e=Se();return Xi=(o,a,i,t,r)=>{typeof i=="string"&&(r=t,t=i,i=void 0);try{return new e(o instanceof e?o.version:o,i).inc(a,t,r).version}catch{return null}},Xi}var Qi,Lc;function jg(){if(Lc)return Qi;Lc=1;const e=yt();return Qi=(o,a)=>{const i=e(o,null,!0),t=e(a,null,!0),r=i.compare(t);if(r===0)return null;const s=r>0,d=s?i:t,l=s?t:i,h=!!d.prerelease.length;if(!!l.prerelease.length&&!h)return!l.patch&&!l.minor?"major":d.patch?"patch":d.minor?"minor":"major";const c=h?"pre":"";return i.major!==t.major?c+"major":i.minor!==t.minor?c+"minor":i.patch!==t.patch?c+"patch":"prerelease"},Qi}var eo,kc;function xg(){if(kc)return eo;kc=1;const e=Se();return eo=(o,a)=>new e(o,a).major,eo}var to,Nc;function qg(){if(Nc)return to;Nc=1;const e=Se();return to=(o,a)=>new e(o,a).minor,to}var ro,Dc;function Lg(){if(Dc)return ro;Dc=1;const e=Se();return ro=(o,a)=>new e(o,a).patch,ro}var no,Mc;function kg(){if(Mc)return no;Mc=1;const e=yt();return no=(o,a)=>{const i=e(o,a);return i&&i.prerelease.length?i.prerelease:null},no}var io,Fc;function xe(){if(Fc)return io;Fc=1;const e=Se();return io=(o,a,i)=>new e(o,i).compare(new e(a,i)),io}var oo,Uc;function Ng(){if(Uc)return oo;Uc=1;const e=xe();return oo=(o,a,i)=>e(a,o,i),oo}var ao,Bc;function Dg(){if(Bc)return ao;Bc=1;const e=xe();return ao=(o,a)=>e(o,a,!0),ao}var so,$c;function Sa(){if($c)return so;$c=1;const e=Se();return so=(o,a,i)=>{const t=new e(o,i),r=new e(a,i);return t.compare(r)||t.compareBuild(r)},so}var uo,Vc;function Mg(){if(Vc)return uo;Vc=1;const e=Sa();return uo=(o,a)=>o.sort((i,t)=>e(i,t,a)),uo}var co,Gc;function Fg(){if(Gc)return co;Gc=1;const e=Sa();return co=(o,a)=>o.sort((i,t)=>e(t,i,a)),co}var lo,zc;function Vr(){if(zc)return lo;zc=1;const e=xe();return lo=(o,a,i)=>e(o,a,i)>0,lo}var fo,Hc;function _a(){if(Hc)return fo;Hc=1;const e=xe();return fo=(o,a,i)=>e(o,a,i)<0,fo}var ho,Zc;function Gf(){if(Zc)return ho;Zc=1;const e=xe();return ho=(o,a,i)=>e(o,a,i)===0,ho}var po,Wc;function zf(){if(Wc)return po;Wc=1;const e=xe();return po=(o,a,i)=>e(o,a,i)!==0,po}var mo,Yc;function Ra(){if(Yc)return mo;Yc=1;const e=xe();return mo=(o,a,i)=>e(o,a,i)>=0,mo}var go,Jc;function Oa(){if(Jc)return go;Jc=1;const e=xe();return go=(o,a,i)=>e(o,a,i)<=0,go}var yo,Kc;function Hf(){if(Kc)return yo;Kc=1;const e=Gf(),n=zf(),o=Vr(),a=Ra(),i=_a(),t=Oa();return yo=(s,d,l,h)=>{switch(d){case"===":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s===l;case"!==":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s!==l;case"":case"=":case"==":return e(s,l,h);case"!=":return n(s,l,h);case">":return o(s,l,h);case">=":return a(s,l,h);case"<":return i(s,l,h);case"<=":return t(s,l,h);default:throw new TypeError(`Invalid operator: ${d}`)}},yo}var vo,Xc;function Ug(){if(Xc)return vo;Xc=1;const e=Se(),n=yt(),{safeRe:o,t:a}=Bt();return vo=(t,r)=>{if(t instanceof e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;r=r||{};let s=null;if(!r.rtl)s=t.match(o[a.COERCE]);else{let d;for(;(d=o[a.COERCERTL].exec(t))&&(!s||s.index+s[0].length!==t.length);)(!s||d.index+d[0].length!==s.index+s[0].length)&&(s=d),o[a.COERCERTL].lastIndex=d.index+d[1].length+d[2].length;o[a.COERCERTL].lastIndex=-1}return s===null?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)},vo}var bo,Qc;function Bg(){return Qc||(Qc=1,bo=function(e){e.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}),bo}var wo,el;function $g(){if(el)return wo;el=1,wo=e,e.Node=i,e.create=e;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&typeof t.forEach=="function")t.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,d=arguments.length;s<d;s++)r.push(arguments[s]);return r}e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var r=t.next,s=t.prev;return r&&(r.prev=s),s&&(s.next=r),t===this.head&&(this.head=r),t===this.tail&&(this.tail=s),t.list.length--,t.next=null,t.prev=null,t.list=null,r},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var r=this.head;t.list=this,t.next=r,r&&(r.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var r=this.tail;t.list=this,t.prev=r,r&&(r.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++)o(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)a(this,arguments[t]);return this.length},e.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},e.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},e.prototype.forEach=function(t,r){r=r||this;for(var s=this.head,d=0;s!==null;d++)t.call(r,s.value,d,this),s=s.next},e.prototype.forEachReverse=function(t,r){r=r||this;for(var s=this.tail,d=this.length-1;s!==null;d--)t.call(r,s.value,d,this),s=s.prev},e.prototype.get=function(t){for(var r=0,s=this.head;s!==null&&r<t;r++)s=s.next;if(r===t&&s!==null)return s.value},e.prototype.getReverse=function(t){for(var r=0,s=this.tail;s!==null&&r<t;r++)s=s.prev;if(r===t&&s!==null)return s.value},e.prototype.map=function(t,r){r=r||this;for(var s=new e,d=this.head;d!==null;)s.push(t.call(r,d.value,this)),d=d.next;return s},e.prototype.mapReverse=function(t,r){r=r||this;for(var s=new e,d=this.tail;d!==null;)s.push(t.call(r,d.value,this)),d=d.prev;return s},e.prototype.reduce=function(t,r){var s,d=this.head;if(arguments.length>1)s=r;else if(this.head)d=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;d!==null;l++)s=t(s,d.value,l),d=d.next;return s},e.prototype.reduceReverse=function(t,r){var s,d=this.tail;if(arguments.length>1)s=r;else if(this.tail)d=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;d!==null;l--)s=t(s,d.value,l),d=d.prev;return s},e.prototype.toArray=function(){for(var t=new Array(this.length),r=0,s=this.head;s!==null;r++)t[r]=s.value,s=s.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),r=0,s=this.tail;s!==null;r++)t[r]=s.value,s=s.prev;return t},e.prototype.slice=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(;l!==null&&d<r;d++,l=l.next)s.push(l.value);return s},e.prototype.sliceReverse=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=this.length,l=this.tail;l!==null&&d>r;d--)l=l.prev;for(;l!==null&&d>t;d--,l=l.prev)s.push(l.value);return s},e.prototype.splice=function(t,r,...s){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(var h=[],d=0;l&&d<r;d++)h.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var d=0;d<s.length;d++)l=n(this,l,s[d]);return h},e.prototype.reverse=function(){for(var t=this.head,r=this.tail,s=t;s!==null;s=s.prev){var d=s.prev;s.prev=s.next,s.next=d}return this.head=r,this.tail=t,this};function n(t,r,s){var d=r===t.head?new i(s,null,r,t):new i(s,r,r.next,t);return d.next===null&&(t.tail=d),d.prev===null&&(t.head=d),t.length++,d}function o(t,r){t.tail=new i(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,r){t.head=new i(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function i(t,r,s,d){if(!(this instanceof i))return new i(t,r,s,d);this.list=d,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Bg()(e)}catch{}return wo}var Eo,tl;function Vg(){if(tl)return Eo;tl=1;const e=$g(),n=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),i=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),s=Symbol("noDisposeOnSet"),d=Symbol("lruList"),l=Symbol("cache"),h=Symbol("updateAgeOnGet"),f=()=>1;class c{constructor(g){if(typeof g=="number"&&(g={max:g}),g||(g={}),g.max&&(typeof g.max!="number"||g.max<0))throw new TypeError("max must be a non-negative number");this[n]=g.max||1/0;const E=g.length||f;if(this[a]=typeof E!="function"?f:E,this[i]=g.stale||!1,g.maxAge&&typeof g.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=g.maxAge||0,this[r]=g.dispose,this[s]=g.noDisposeOnSet||!1,this[h]=g.updateAgeOnGet||!1,this.reset()}set max(g){if(typeof g!="number"||g<0)throw new TypeError("max must be a non-negative number");this[n]=g||1/0,y(this)}get max(){return this[n]}set allowStale(g){this[i]=!!g}get allowStale(){return this[i]}set maxAge(g){if(typeof g!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=g,y(this)}get maxAge(){return this[t]}set lengthCalculator(g){typeof g!="function"&&(g=f),g!==this[a]&&(this[a]=g,this[o]=0,this[d].forEach(E=>{E.length=this[a](E.value,E.key),this[o]+=E.length})),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(g,E){E=E||this;for(let R=this[d].tail;R!==null;){const O=R.prev;v(this,g,R,E),R=O}}forEach(g,E){E=E||this;for(let R=this[d].head;R!==null;){const O=R.next;v(this,g,R,E),R=O}}keys(){return this[d].toArray().map(g=>g.key)}values(){return this[d].toArray().map(g=>g.value)}reset(){this[r]&&this[d]&&this[d].length&&this[d].forEach(g=>this[r](g.key,g.value)),this[l]=new Map,this[d]=new e,this[o]=0}dump(){return this[d].map(g=>p(this,g)?!1:{k:g.key,v:g.value,e:g.now+(g.maxAge||0)}).toArray().filter(g=>g)}dumpLru(){return this[d]}set(g,E,R){if(R=R||this[t],R&&typeof R!="number")throw new TypeError("maxAge must be a number");const O=R?Date.now():0,I=this[a](E,g);if(this[l].has(g)){if(I>this[n])return m(this,this[l].get(g)),!1;const V=this[l].get(g).value;return this[r]&&(this[s]||this[r](g,V.value)),V.now=O,V.maxAge=R,V.value=E,this[o]+=I-V.length,V.length=I,this.get(g),y(this),!0}const q=new u(g,E,I,O,R);return q.length>this[n]?(this[r]&&this[r](g,E),!1):(this[o]+=q.length,this[d].unshift(q),this[l].set(g,this[d].head),y(this),!0)}has(g){if(!this[l].has(g))return!1;const E=this[l].get(g).value;return!p(this,E)}get(g){return w(this,g,!0)}peek(g){return w(this,g,!1)}pop(){const g=this[d].tail;return g?(m(this,g),g.value):null}del(g){m(this,this[l].get(g))}load(g){this.reset();const E=Date.now();for(let R=g.length-1;R>=0;R--){const O=g[R],I=O.e||0;if(I===0)this.set(O.k,O.v);else{const q=I-E;q>0&&this.set(O.k,O.v,q)}}}prune(){this[l].forEach((g,E)=>w(this,E,!1))}}const w=(b,g,E)=>{const R=b[l].get(g);if(R){const O=R.value;if(p(b,O)){if(m(b,R),!b[i])return}else E&&(b[h]&&(R.value.now=Date.now()),b[d].unshiftNode(R));return O.value}},p=(b,g)=>{if(!g||!g.maxAge&&!b[t])return!1;const E=Date.now()-g.now;return g.maxAge?E>g.maxAge:b[t]&&E>b[t]},y=b=>{if(b[o]>b[n])for(let g=b[d].tail;b[o]>b[n]&&g!==null;){const E=g.prev;m(b,g),g=E}},m=(b,g)=>{if(g){const E=g.value;b[r]&&b[r](E.key,E.value),b[o]-=E.length,b[l].delete(E.key),b[d].removeNode(g)}};class u{constructor(g,E,R,O,I){this.key=g,this.value=E,this.length=R,this.now=O,this.maxAge=I||0}}const v=(b,g,E,R)=>{let O=E.value;p(b,O)&&(m(b,E),b[i]||(O=void 0)),O&&g.call(R,O.value,O.key,b)};return Eo=c,Eo}var So,rl;function qe(){if(rl)return So;rl=1;class e{constructor(P,x){if(x=a(x),P instanceof e)return P.loose===!!x.loose&&P.includePrerelease===!!x.includePrerelease?P:new e(P.raw,x);if(P instanceof i)return this.raw=P.value,this.set=[[P]],this.format(),this;if(this.options=x,this.loose=!!x.loose,this.includePrerelease=!!x.includePrerelease,this.raw=P.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(M=>this.parseRange(M)).filter(M=>M.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const M=this.set[0];if(this.set=this.set.filter(C=>!p(C[0])),this.set.length===0)this.set=[M];else if(this.set.length>1){for(const C of this.set)if(C.length===1&&y(C[0])){this.set=[C];break}}}this.format()}format(){return this.range=this.set.map(P=>P.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(P){const M=((this.options.includePrerelease&&c)|(this.options.loose&&w))+":"+P,C=o.get(M);if(C)return C;const T=this.options.loose,A=T?s[d.HYPHENRANGELOOSE]:s[d.HYPHENRANGE];P=P.replace(A,V(this.options.includePrerelease)),t("hyphen replace",P),P=P.replace(s[d.COMPARATORTRIM],l),t("comparator trim",P),P=P.replace(s[d.TILDETRIM],h),P=P.replace(s[d.CARETTRIM],f);let L=P.split(" ").map(j=>u(j,this.options)).join(" ").split(/\s+/).map(j=>G(j,this.options));T&&(L=L.filter(j=>(t("loose invalid filter",j,this.options),!!j.match(s[d.COMPARATORLOOSE])))),t("range list",L);const B=new Map,U=L.map(j=>new i(j,this.options));for(const j of U){if(p(j))return[j];B.set(j.value,j)}B.size>1&&B.has("")&&B.delete("");const D=[...B.values()];return o.set(M,D),D}intersects(P,x){if(!(P instanceof e))throw new TypeError("a Range is required");return this.set.some(M=>m(M,x)&&P.set.some(C=>m(C,x)&&M.every(T=>C.every(A=>T.intersects(A,x)))))}test(P){if(!P)return!1;if(typeof P=="string")try{P=new r(P,this.options)}catch{return!1}for(let x=0;x<this.set.length;x++)if(S(this.set[x],P,this.options))return!0;return!1}}So=e;const n=Vg(),o=new n({max:1e3}),a=Ea(),i=Gr(),t=$r(),r=Se(),{safeRe:s,t:d,comparatorTrimReplace:l,tildeTrimReplace:h,caretTrimReplace:f}=Bt(),{FLAG_INCLUDE_PRERELEASE:c,FLAG_LOOSE:w}=Br(),p=_=>_.value==="<0.0.0-0",y=_=>_.value==="",m=(_,P)=>{let x=!0;const M=_.slice();let C=M.pop();for(;x&&M.length;)x=M.every(T=>C.intersects(T,P)),C=M.pop();return x},u=(_,P)=>(t("comp",_,P),_=E(_,P),t("caret",_),_=b(_,P),t("tildes",_),_=O(_,P),t("xrange",_),_=q(_,P),t("stars",_),_),v=_=>!_||_.toLowerCase()==="x"||_==="*",b=(_,P)=>_.trim().split(/\s+/).map(x=>g(x,P)).join(" "),g=(_,P)=>{const x=P.loose?s[d.TILDELOOSE]:s[d.TILDE];return _.replace(x,(M,C,T,A,L)=>{t("tilde",_,M,C,T,A,L);let B;return v(C)?B="":v(T)?B=`>=${C}.0.0 <${+C+1}.0.0-0`:v(A)?B=`>=${C}.${T}.0 <${C}.${+T+1}.0-0`:L?(t("replaceTilde pr",L),B=`>=${C}.${T}.${A}-${L} <${C}.${+T+1}.0-0`):B=`>=${C}.${T}.${A} <${C}.${+T+1}.0-0`,t("tilde return",B),B})},E=(_,P)=>_.trim().split(/\s+/).map(x=>R(x,P)).join(" "),R=(_,P)=>{t("caret",_,P);const x=P.loose?s[d.CARETLOOSE]:s[d.CARET],M=P.includePrerelease?"-0":"";return _.replace(x,(C,T,A,L,B)=>{t("caret",_,C,T,A,L,B);let U;return v(T)?U="":v(A)?U=`>=${T}.0.0${M} <${+T+1}.0.0-0`:v(L)?T==="0"?U=`>=${T}.${A}.0${M} <${T}.${+A+1}.0-0`:U=`>=${T}.${A}.0${M} <${+T+1}.0.0-0`:B?(t("replaceCaret pr",B),T==="0"?A==="0"?U=`>=${T}.${A}.${L}-${B} <${T}.${A}.${+L+1}-0`:U=`>=${T}.${A}.${L}-${B} <${T}.${+A+1}.0-0`:U=`>=${T}.${A}.${L}-${B} <${+T+1}.0.0-0`):(t("no pr"),T==="0"?A==="0"?U=`>=${T}.${A}.${L}${M} <${T}.${A}.${+L+1}-0`:U=`>=${T}.${A}.${L}${M} <${T}.${+A+1}.0-0`:U=`>=${T}.${A}.${L} <${+T+1}.0.0-0`),t("caret return",U),U})},O=(_,P)=>(t("replaceXRanges",_,P),_.split(/\s+/).map(x=>I(x,P)).join(" ")),I=(_,P)=>{_=_.trim();const x=P.loose?s[d.XRANGELOOSE]:s[d.XRANGE];return _.replace(x,(M,C,T,A,L,B)=>{t("xRange",_,M,C,T,A,L,B);const U=v(T),D=U||v(A),j=D||v(L),k=j;return C==="="&&k&&(C=""),B=P.includePrerelease?"-0":"",U?C===">"||C==="<"?M="<0.0.0-0":M="*":C&&k?(D&&(A=0),L=0,C===">"?(C=">=",D?(T=+T+1,A=0,L=0):(A=+A+1,L=0)):C==="<="&&(C="<",D?T=+T+1:A=+A+1),C==="<"&&(B="-0"),M=`${C+T}.${A}.${L}${B}`):D?M=`>=${T}.0.0${B} <${+T+1}.0.0-0`:j&&(M=`>=${T}.${A}.0${B} <${T}.${+A+1}.0-0`),t("xRange return",M),M})},q=(_,P)=>(t("replaceStars",_,P),_.trim().replace(s[d.STAR],"")),G=(_,P)=>(t("replaceGTE0",_,P),_.trim().replace(s[P.includePrerelease?d.GTE0PRE:d.GTE0],"")),V=_=>(P,x,M,C,T,A,L,B,U,D,j,k,F)=>(v(M)?x="":v(C)?x=`>=${M}.0.0${_?"-0":""}`:v(T)?x=`>=${M}.${C}.0${_?"-0":""}`:A?x=`>=${x}`:x=`>=${x}${_?"-0":""}`,v(U)?B="":v(D)?B=`<${+U+1}.0.0-0`:v(j)?B=`<${U}.${+D+1}.0-0`:k?B=`<=${U}.${D}.${j}-${k}`:_?B=`<${U}.${D}.${+j+1}-0`:B=`<=${B}`,`${x} ${B}`.trim()),S=(_,P,x)=>{for(let M=0;M<_.length;M++)if(!_[M].test(P))return!1;if(P.prerelease.length&&!x.includePrerelease){for(let M=0;M<_.length;M++)if(t(_[M].semver),_[M].semver!==i.ANY&&_[M].semver.prerelease.length>0){const C=_[M].semver;if(C.major===P.major&&C.minor===P.minor&&C.patch===P.patch)return!0}return!1}return!0};return So}var _o,nl;function Gr(){if(nl)return _o;nl=1;const e=Symbol("SemVer ANY");class n{static get ANY(){return e}constructor(h,f){if(f=o(f),h instanceof n){if(h.loose===!!f.loose)return h;h=h.value}h=h.trim().split(/\s+/).join(" "),r("comparator",h,f),this.options=f,this.loose=!!f.loose,this.parse(h),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(h){const f=this.options.loose?a[i.COMPARATORLOOSE]:a[i.COMPARATOR],c=h.match(f);if(!c)throw new TypeError(`Invalid comparator: ${h}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new s(c[2],this.options.loose):this.semver=e}toString(){return this.value}test(h){if(r("Comparator.test",h,this.options.loose),this.semver===e||h===e)return!0;if(typeof h=="string")try{h=new s(h,this.options)}catch{return!1}return t(h,this.operator,this.semver,this.options)}intersects(h,f){if(!(h instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new d(h.value,f).test(this.value):h.operator===""?h.value===""?!0:new d(this.value,f).test(h.semver):(f=o(f),f.includePrerelease&&(this.value==="<0.0.0-0"||h.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||h.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&h.operator.startsWith(">")||this.operator.startsWith("<")&&h.operator.startsWith("<")||this.semver.version===h.semver.version&&this.operator.includes("=")&&h.operator.includes("=")||t(this.semver,"<",h.semver,f)&&this.operator.startsWith(">")&&h.operator.startsWith("<")||t(this.semver,">",h.semver,f)&&this.operator.startsWith("<")&&h.operator.startsWith(">")))}}_o=n;const o=Ea(),{safeRe:a,t:i}=Bt(),t=Hf(),r=$r(),s=Se(),d=qe();return _o}var Ro,il;function zr(){if(il)return Ro;il=1;const e=qe();return Ro=(o,a,i)=>{try{a=new e(a,i)}catch{return!1}return a.test(o)},Ro}var Oo,ol;function Gg(){if(ol)return Oo;ol=1;const e=qe();return Oo=(o,a)=>new e(o,a).set.map(i=>i.map(t=>t.value).join(" ").trim().split(" ")),Oo}var Io,al;function zg(){if(al)return Io;al=1;const e=Se(),n=qe();return Io=(a,i,t)=>{let r=null,s=null,d=null;try{d=new n(i,t)}catch{return null}return a.forEach(l=>{d.test(l)&&(!r||s.compare(l)===-1)&&(r=l,s=new e(r,t))}),r},Io}var To,sl;function Hg(){if(sl)return To;sl=1;const e=Se(),n=qe();return To=(a,i,t)=>{let r=null,s=null,d=null;try{d=new n(i,t)}catch{return null}return a.forEach(l=>{d.test(l)&&(!r||s.compare(l)===1)&&(r=l,s=new e(r,t))}),r},To}var Ao,ul;function Zg(){if(ul)return Ao;ul=1;const e=Se(),n=qe(),o=Vr();return Ao=(i,t)=>{i=new n(i,t);let r=new e("0.0.0");if(i.test(r)||(r=new e("0.0.0-0"),i.test(r)))return r;r=null;for(let s=0;s<i.set.length;++s){const d=i.set[s];let l=null;d.forEach(h=>{const f=new e(h.semver.version);switch(h.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!l||o(f,l))&&(l=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),l&&(!r||o(r,l))&&(r=l)}return r&&i.test(r)?r:null},Ao}var Co,cl;function Wg(){if(cl)return Co;cl=1;const e=qe();return Co=(o,a)=>{try{return new e(o,a).range||"*"}catch{return null}},Co}var Po,ll;function Ia(){if(ll)return Po;ll=1;const e=Se(),n=Gr(),{ANY:o}=n,a=qe(),i=zr(),t=Vr(),r=_a(),s=Oa(),d=Ra();return Po=(h,f,c,w)=>{h=new e(h,w),f=new a(f,w);let p,y,m,u,v;switch(c){case">":p=t,y=s,m=r,u=">",v=">=";break;case"<":p=r,y=d,m=t,u="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(h,f,w))return!1;for(let b=0;b<f.set.length;++b){const g=f.set[b];let E=null,R=null;if(g.forEach(O=>{O.semver===o&&(O=new n(">=0.0.0")),E=E||O,R=R||O,p(O.semver,E.semver,w)?E=O:m(O.semver,R.semver,w)&&(R=O)}),E.operator===u||E.operator===v||(!R.operator||R.operator===u)&&y(h,R.semver))return!1;if(R.operator===v&&m(h,R.semver))return!1}return!0},Po}var jo,fl;function Yg(){if(fl)return jo;fl=1;const e=Ia();return jo=(o,a,i)=>e(o,a,">",i),jo}var xo,hl;function Jg(){if(hl)return xo;hl=1;const e=Ia();return xo=(o,a,i)=>e(o,a,"<",i),xo}var qo,dl;function Kg(){if(dl)return qo;dl=1;const e=qe();return qo=(o,a,i)=>(o=new e(o,i),a=new e(a,i),o.intersects(a,i)),qo}var Lo,pl;function Xg(){if(pl)return Lo;pl=1;const e=zr(),n=xe();return Lo=(o,a,i)=>{const t=[];let r=null,s=null;const d=o.sort((c,w)=>n(c,w,i));for(const c of d)e(c,a,i)?(s=c,r||(r=c)):(s&&t.push([r,s]),s=null,r=null);r&&t.push([r,null]);const l=[];for(const[c,w]of t)c===w?l.push(c):!w&&c===d[0]?l.push("*"):w?c===d[0]?l.push(`<=${w}`):l.push(`${c} - ${w}`):l.push(`>=${c}`);const h=l.join(" || "),f=typeof a.raw=="string"?a.raw:String(a);return h.length<f.length?h:a},Lo}var ko,ml;function Qg(){if(ml)return ko;ml=1;const e=qe(),n=Gr(),{ANY:o}=n,a=zr(),i=xe(),t=(f,c,w={})=>{if(f===c)return!0;f=new e(f,w),c=new e(c,w);let p=!1;e:for(const y of f.set){for(const m of c.set){const u=d(y,m,w);if(p=p||u!==null,u)continue e}if(p)return!1}return!0},r=[new n(">=0.0.0-0")],s=[new n(">=0.0.0")],d=(f,c,w)=>{if(f===c)return!0;if(f.length===1&&f[0].semver===o){if(c.length===1&&c[0].semver===o)return!0;w.includePrerelease?f=r:f=s}if(c.length===1&&c[0].semver===o){if(w.includePrerelease)return!0;c=s}const p=new Set;let y,m;for(const I of f)I.operator===">"||I.operator===">="?y=l(y,I,w):I.operator==="<"||I.operator==="<="?m=h(m,I,w):p.add(I.semver);if(p.size>1)return null;let u;if(y&&m){if(u=i(y.semver,m.semver,w),u>0)return null;if(u===0&&(y.operator!==">="||m.operator!=="<="))return null}for(const I of p){if(y&&!a(I,String(y),w)||m&&!a(I,String(m),w))return null;for(const q of c)if(!a(I,String(q),w))return!1;return!0}let v,b,g,E,R=m&&!w.includePrerelease&&m.semver.prerelease.length?m.semver:!1,O=y&&!w.includePrerelease&&y.semver.prerelease.length?y.semver:!1;R&&R.prerelease.length===1&&m.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(const I of c){if(E=E||I.operator===">"||I.operator===">=",g=g||I.operator==="<"||I.operator==="<=",y){if(O&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===O.major&&I.semver.minor===O.minor&&I.semver.patch===O.patch&&(O=!1),I.operator===">"||I.operator===">="){if(v=l(y,I,w),v===I&&v!==y)return!1}else if(y.operator===">="&&!a(y.semver,String(I),w))return!1}if(m){if(R&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===R.major&&I.semver.minor===R.minor&&I.semver.patch===R.patch&&(R=!1),I.operator==="<"||I.operator==="<="){if(b=h(m,I,w),b===I&&b!==m)return!1}else if(m.operator==="<="&&!a(m.semver,String(I),w))return!1}if(!I.operator&&(m||y)&&u!==0)return!1}return!(y&&g&&!m&&u!==0||m&&E&&!y&&u!==0||O||R)},l=(f,c,w)=>{if(!f)return c;const p=i(f.semver,c.semver,w);return p>0?f:p<0||c.operator===">"&&f.operator===">="?c:f},h=(f,c,w)=>{if(!f)return c;const p=i(f.semver,c.semver,w);return p<0?f:p>0||c.operator==="<"&&f.operator==="<="?c:f};return ko=t,ko}var No,gl;function Ta(){if(gl)return No;gl=1;const e=Bt(),n=Br(),o=Se(),a=Vf(),i=yt(),t=Ag(),r=Cg(),s=Pg(),d=jg(),l=xg(),h=qg(),f=Lg(),c=kg(),w=xe(),p=Ng(),y=Dg(),m=Sa(),u=Mg(),v=Fg(),b=Vr(),g=_a(),E=Gf(),R=zf(),O=Ra(),I=Oa(),q=Hf(),G=Ug(),V=Gr(),S=qe(),_=zr(),P=Gg(),x=zg(),M=Hg(),C=Zg(),T=Wg(),A=Ia(),L=Yg(),B=Jg(),U=Kg(),D=Xg(),j=Qg();return No={parse:i,valid:t,clean:r,inc:s,diff:d,major:l,minor:h,patch:f,prerelease:c,compare:w,rcompare:p,compareLoose:y,compareBuild:m,sort:u,rsort:v,gt:b,lt:g,eq:E,neq:R,gte:O,lte:I,cmp:q,coerce:G,Comparator:V,Range:S,satisfies:_,toComparators:P,maxSatisfying:x,minSatisfying:M,minVersion:C,validRange:T,outside:A,gtr:L,ltr:B,intersects:U,simplifyRange:D,subset:j,SemVer:o,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers},No}var Do,yl;function ey(){return yl||(yl=1,Do=Ta().satisfies(X.version,">=15.7.0")),Do}var Mo,vl;function ty(){return vl||(vl=1,Mo=Ta().satisfies(X.version,">=16.9.0")),Mo}var Fo,bl;function Zf(){if(bl)return Fo;bl=1;const e=ey(),n=ty(),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},a={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return Fo=function(i,t){if(!i||!t)return;const r=t.asymmetricKeyType;if(!r)return;const s=o[r];if(!s)throw new Error(`Unknown key type "${r}".`);if(!s.includes(i))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(e)switch(r){case"ec":const d=t.asymmetricKeyDetails.namedCurve,l=a[i];if(d!==l)throw new Error(`"alg" parameter "${i}" requires curve "${l}".`);break;case"rsa-pss":if(n){const h=parseInt(i.slice(-3),10),{hashAlgorithm:f,mgf1HashAlgorithm:c,saltLength:w}=t.asymmetricKeyDetails;if(f!==`sha${h}`||c!==f)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${i}.`);if(w!==void 0&&w>h>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${i}.`)}break}},Fo}var Uo,wl;function Wf(){if(wl)return Uo;wl=1;var e=Ta();return Uo=e.satisfies(X.version,"^6.12.0 || >=8.0.0"),Uo}var Bo,El;function ry(){if(El)return Bo;El=1;const e=Ur(),n=Nf(),o=Df(),a=Bf(),i=$f(),t=Zf(),r=Wf(),s=wa(),{KeyObject:d,createSecretKey:l,createPublicKey:h}=mt(),f=["RS256","RS384","RS512"],c=["ES256","ES384","ES512"],w=["RS256","RS384","RS512"],p=["HS256","HS384","HS512"];return r&&(f.splice(f.length,0,"PS256","PS384","PS512"),w.splice(w.length,0,"PS256","PS384","PS512")),Bo=function(y,m,u,v){typeof u=="function"&&!v&&(v=u,u={}),u||(u={}),u=Object.assign({},u);let b;if(v?b=v:b=function(q,G){if(q)throw q;return G},u.clockTimestamp&&typeof u.clockTimestamp!="number")return b(new e("clockTimestamp must be a number"));if(u.nonce!==void 0&&(typeof u.nonce!="string"||u.nonce.trim()===""))return b(new e("nonce must be a non-empty string"));if(u.allowInvalidAsymmetricKeyTypes!==void 0&&typeof u.allowInvalidAsymmetricKeyTypes!="boolean")return b(new e("allowInvalidAsymmetricKeyTypes must be a boolean"));const g=u.clockTimestamp||Math.floor(Date.now()/1e3);if(!y)return b(new e("jwt must be provided"));if(typeof y!="string")return b(new e("jwt must be a string"));const E=y.split(".");if(E.length!==3)return b(new e("jwt malformed"));let R;try{R=a(y,{complete:!0})}catch(q){return b(q)}if(!R)return b(new e("invalid token"));const O=R.header;let I;if(typeof m=="function"){if(!v)return b(new e("verify must be called asynchronous if secret or public key is provided as a callback"));I=m}else I=function(q,G){return G(null,m)};return I(O,function(q,G){if(q)return b(new e("error in secret or public key callback: "+q.message));const V=E[2].trim()!=="";if(!V&&G)return b(new e("jwt signature is required"));if(V&&!G)return b(new e("secret or public key must be provided"));if(!V&&!u.algorithms)return b(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(G!=null&&!(G instanceof d))try{G=h(G)}catch{try{G=l(typeof G=="string"?Re.from(G):G)}catch{return b(new e("secretOrPublicKey is not valid key material"))}}if(u.algorithms||(G.type==="secret"?u.algorithms=p:["rsa","rsa-pss"].includes(G.asymmetricKeyType)?u.algorithms=w:G.asymmetricKeyType==="ec"?u.algorithms=c:u.algorithms=f),u.algorithms.indexOf(R.header.alg)===-1)return b(new e("invalid algorithm"));if(O.alg.startsWith("HS")&&G.type!=="secret")return b(new e(`secretOrPublicKey must be a symmetric key when using ${O.alg}`));if(/^(?:RS|PS|ES)/.test(O.alg)&&G.type!=="public")return b(new e(`secretOrPublicKey must be an asymmetric key when using ${O.alg}`));if(!u.allowInvalidAsymmetricKeyTypes)try{t(O.alg,G)}catch(P){return b(P)}let S;try{S=s.verify(y,R.header.alg,G)}catch(P){return b(P)}if(!S)return b(new e("invalid signature"));const _=R.payload;if(typeof _.nbf<"u"&&!u.ignoreNotBefore){if(typeof _.nbf!="number")return b(new e("invalid nbf value"));if(_.nbf>g+(u.clockTolerance||0))return b(new n("jwt not active",new Date(_.nbf*1e3)))}if(typeof _.exp<"u"&&!u.ignoreExpiration){if(typeof _.exp!="number")return b(new e("invalid exp value"));if(g>=_.exp+(u.clockTolerance||0))return b(new o("jwt expired",new Date(_.exp*1e3)))}if(u.audience){const P=Array.isArray(u.audience)?u.audience:[u.audience];if(!(Array.isArray(_.aud)?_.aud:[_.aud]).some(function(C){return P.some(function(T){return T instanceof RegExp?T.test(C):T===C})}))return b(new e("jwt audience invalid. expected: "+P.join(" or ")))}if(u.issuer&&(typeof u.issuer=="string"&&_.iss!==u.issuer||Array.isArray(u.issuer)&&u.issuer.indexOf(_.iss)===-1))return b(new e("jwt issuer invalid. expected: "+u.issuer));if(u.subject&&_.sub!==u.subject)return b(new e("jwt subject invalid. expected: "+u.subject));if(u.jwtid&&_.jti!==u.jwtid)return b(new e("jwt jwtid invalid. expected: "+u.jwtid));if(u.nonce&&_.nonce!==u.nonce)return b(new e("jwt nonce invalid. expected: "+u.nonce));if(u.maxAge){if(typeof _.iat!="number")return b(new e("iat required when maxAge is specified"));const P=i(u.maxAge,_.iat);if(typeof P>"u")return b(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(g>=P+(u.clockTolerance||0))return b(new o("maxAge exceeded",new Date(P*1e3)))}if(u.complete===!0){const P=R.signature;return b(null,{header:O,payload:_,signature:P})}return b(null,_)})},Bo}const ny=Wl(Hd);var $o,Sl;function iy(){if(Sl)return $o;Sl=1;const e=$f(),n=Wf(),o=Zf(),a=wa(),{includes:i,isBoolean:t,isInteger:r,isNumber:s,isPlainObject:d,isString:l,once:h}=ny,{KeyObject:f,createSecretKey:c,createPrivateKey:w}=mt(),p=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];n&&p.splice(3,0,"PS256","PS384","PS512");const y={expiresIn:{isValid:function(R){return r(R)||l(R)&&R},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(R){return r(R)||l(R)&&R},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(R){return l(R)||Array.isArray(R)},message:'"audience" must be a string or array'},algorithm:{isValid:i.bind(null,p),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:l,message:'"encoding" must be a string'},issuer:{isValid:l,message:'"issuer" must be a string'},subject:{isValid:l,message:'"subject" must be a string'},jwtid:{isValid:l,message:'"jwtid" must be a string'},noTimestamp:{isValid:t,message:'"noTimestamp" must be a boolean'},keyid:{isValid:l,message:'"keyid" must be a string'},mutatePayload:{isValid:t,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:t,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:t,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},m={iat:{isValid:s,message:'"iat" should be a number of seconds'},exp:{isValid:s,message:'"exp" should be a number of seconds'},nbf:{isValid:s,message:'"nbf" should be a number of seconds'}};function u(R,O,I,q){if(!d(I))throw new Error('Expected "'+q+'" to be a plain object.');Object.keys(I).forEach(function(G){const V=R[G];if(!V){if(!O)throw new Error('"'+G+'" is not allowed in "'+q+'"');return}if(!V.isValid(I[G]))throw new Error(V.message)})}function v(R){return u(y,!1,R,"options")}function b(R){return u(m,!0,R,"payload")}const g={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},E=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return $o=function(R,O,I,q){typeof I=="function"?(q=I,I={}):I=I||{};const G=typeof R=="object"&&!Re.isBuffer(R),V=Object.assign({alg:I.algorithm||"HS256",typ:G?"JWT":void 0,kid:I.keyid},I.header);function S(x){if(q)return q(x);throw x}if(!O&&I.algorithm!=="none")return S(new Error("secretOrPrivateKey must have a value"));if(O!=null&&!(O instanceof f))try{O=w(O)}catch{try{O=c(typeof O=="string"?Re.from(O):O)}catch{return S(new Error("secretOrPrivateKey is not valid key material"))}}if(V.alg.startsWith("HS")&&O.type!=="secret")return S(new Error(`secretOrPrivateKey must be a symmetric key when using ${V.alg}`));if(/^(?:RS|PS|ES)/.test(V.alg)){if(O.type!=="private")return S(new Error(`secretOrPrivateKey must be an asymmetric key when using ${V.alg}`));if(!I.allowInsecureKeySizes&&!V.alg.startsWith("ES")&&O.asymmetricKeyDetails!==void 0&&O.asymmetricKeyDetails.modulusLength<2048)return S(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`))}if(typeof R>"u")return S(new Error("payload is required"));if(G){try{b(R)}catch(x){return S(x)}I.mutatePayload||(R=Object.assign({},R))}else{const x=E.filter(function(M){return typeof I[M]<"u"});if(x.length>0)return S(new Error("invalid "+x.join(",")+" option for "+typeof R+" payload"))}if(typeof R.exp<"u"&&typeof I.expiresIn<"u")return S(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof R.nbf<"u"&&typeof I.notBefore<"u")return S(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{v(I)}catch(x){return S(x)}if(!I.allowInvalidAsymmetricKeyTypes)try{o(V.alg,O)}catch(x){return S(x)}const _=R.iat||Math.floor(Date.now()/1e3);if(I.noTimestamp?delete R.iat:G&&(R.iat=_),typeof I.notBefore<"u"){try{R.nbf=e(I.notBefore,_)}catch(x){return S(x)}if(typeof R.nbf>"u")return S(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof I.expiresIn<"u"&&typeof R=="object"){try{R.exp=e(I.expiresIn,_)}catch(x){return S(x)}if(typeof R.exp>"u")return S(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(g).forEach(function(x){const M=g[x];if(typeof I[x]<"u"){if(typeof R[M]<"u")return S(new Error('Bad "options.'+x+'" option. The payload already has an "'+M+'" property.'));R[M]=I[x]}});const P=I.encoding||"utf8";if(typeof q=="function")q=q&&h(q),a.createSign({header:V,privateKey:O,payload:R,encoding:P}).once("error",q).once("done",function(x){if(!I.allowInsecureKeySizes&&/^(?:RS|PS)/.test(V.alg)&&x.length<256)return q(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`));q(null,x)});else{let x=a.sign({header:V,payload:R,secret:O,encoding:P});if(!I.allowInsecureKeySizes&&/^(?:RS|PS)/.test(V.alg)&&x.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`);return x}},$o}var _l;function oy(){return _l||(_l=1,function(e){e.exports={verify:ry(),sign:iy(),JsonWebTokenError:Ur(),NotBeforeError:Nf(),TokenExpiredError:Df()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:Bf()})}(Pi)),Pi.exports}var Vo,Rl;function ay(){if(Rl)return Vo;Rl=1;function e(n){this.token=n.token||"",this.response=n.response||"",this.body=n.responseText||"",this.json=null,this.intuit_tid=n.intuit_tid||""}return e.prototype.processResponse=function(o){this.response=o||"",this.body=o&&o.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=o&&o.headers&&o.headers.intuit_tid||""},e.prototype.getToken=function(){return this.token.getToken()},e.prototype.text=function(){return this.body},e.prototype.status=function(){return this.response.status},e.prototype.headers=function(){return this.response.headers},e.prototype.valid=function(){return this.response&&Number(this.response.status)>=200&&Number(this.response.status)<300},e.prototype.getJson=function(){if(!this.isJson())throw new Error("AuthResponse is not JSON");return this.json||(this.json=this.body?JSON.parse(this.body):null),this.json},e.prototype.get_intuit_tid=function(){return this.intuit_tid},e.prototype.isContentType=function(o){return this.getContentType().indexOf(o)>-1},e.prototype.getContentType=function(){return this.response.get(e._contentType)||""},e.prototype.isJson=function(){return this.isContentType("application/json")},e._contentType="Content-Type",e._jsonContentType="application/json",e._urlencodedContentType="application/x-www-form-urlencoded",Vo=e,Vo}const sy="0.0.4",uy={version:sy};var Go,Ol;function cy(){if(Ol)return Go;Ol=1;function e(n){n=n||{},this.realmId=n.realmId||"",this.token_type=n.token_type||"",this.access_token=n.access_token||"",this.refresh_token=n.refresh_token||"",this.expires_in=n.expires_in||0,this.x_refresh_token_expires_in=n.x_refresh_token_expires_in||0,this.id_token=n.id_token||"",this.latency=n.latency||60*1e3,this.createdAt=n.createdAt||Date.now()}return e.prototype.accessToken=function(){return this.getToken().access_token},e.prototype.refreshToken=function(){return this.getToken().refresh_token},e.prototype.tokenType=function(){return this.getToken().token_type},e.prototype.getToken=function(){return{token_type:this.token_type,access_token:this.access_token,expires_in:this.expires_in,refresh_token:this.refresh_token,x_refresh_token_expires_in:this.x_refresh_token_expires_in,realmId:this.realmId,id_token:this.id_token,createdAt:this.createdAt}},e.prototype.setToken=function(o){return this.access_token=o.access_token,this.refresh_token=o.refresh_token,this.token_type=o.token_type,this.expires_in=o.expires_in,this.x_refresh_token_expires_in=o.x_refresh_token_expires_in,this.id_token=o.id_token||"",this.createdAt=o.createdAt||Date.now(),this},e.prototype.clearToken=function(){return this.access_token="",this.refresh_token="",this.token_type="",this.expires_in=0,this.x_refresh_token_expires_in=0,this.id_token="",this.createdAt=0,this},e.prototype._checkExpiry=function(o){return this.createdAt+o*1e3-this.latency>Date.now()},e.prototype.isAccessTokenValid=function(){return this._checkExpiry(this.expires_in)},e.prototype.isRefreshTokenValid=function(){return this._checkExpiry(this.x_refresh_token_expires_in)},Go=e,Go}var zo,Il;function ly(){if(Il)return zo;Il=1,zo=e;function e(i,t){var r=Re.from(i,"base64"),s=Re.from(t,"base64"),d=r.toString("hex"),l=s.toString("hex");d=n(d),l=n(l);var h=d.length/2,f=l.length/2,c=a(h),w=a(f),p="30"+a(h+f+c.length/2+w.length/2+2)+"02"+c+d+"02"+w+l,y=Re.from(p,"hex").toString("base64"),m=`-----BEGIN RSA PUBLIC KEY-----
|
|
141
|
-
`+y.match(/.{1,64}/g).join(`
|
|
142
|
-
`)+`
|
|
143
|
-
-----END RSA PUBLIC KEY-----
|
|
144
|
-
`;return m}function n(i){var t=i[0];return t<"0"||t>"7"?"00"+i:i}function o(i){var t=i.toString(16);return t.length%2?"0"+t:t}function a(i){if(i<=127)return o(i);var t=o(i),r=128+t.length/2;return o(r)+t}return zo}var Ho,Tl;function fy(){if(Tl)return Ho;Tl=1;const e=qp(),n=Wp(),o=Qp(),a=im(),i=st(),t=Sg(),r=Of(),s=fa(),d=oy(),l=ay(),h=uy,f=cy();function c(w){if(this.environment=w.environment,this.clientId=w.clientId,this.clientSecret=w.clientSecret,this.redirectUri=w.redirectUri,this.token=new f(w.token),this.logging=!!(Object.prototype.hasOwnProperty.call(w,"logging")&&w.logging===!0),this.logger=null,this.state=new n,this.logging){const p="./logs";s.existsSync(p)||s.mkdirSync(p),this.logger=t.createLogger({level:"info",format:t.format.combine(t.format.timestamp(),t.format.printf(y=>`${y.timestamp} ${y.level}: ${y.message}`)),transports:[new t.transports.File({filename:r.join(p,"oAuthClient-log.log")})]})}}return c.cacheId="cacheID",c.authorizeEndpoint="https://appcenter.intuit.com/connect/oauth2",c.tokenEndpoint="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer",c.revokeEndpoint="https://developer.api.intuit.com/v2/oauth2/tokens/revoke",c.userinfo_endpoint_production="https://accounts.platform.intuit.com/v1/openid_connect/userinfo",c.userinfo_endpoint_sandbox="https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo",c.migrate_sandbox="https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate",c.migrate_production="https://developer.api.intuit.com/v2/oauth2/tokens/migrate",c.environment={sandbox:"https://sandbox-quickbooks.api.intuit.com/",production:"https://quickbooks.api.intuit.com/"},c.jwks_uri="https://oauth.platform.intuit.com/op/v1/jwks",c.scopes={Accounting:"com.intuit.quickbooks.accounting",Payment:"com.intuit.quickbooks.payment",Payroll:"com.intuit.quickbooks.payroll",TimeTracking:"com.intuit.quickbooks.payroll.timetracking",Benefits:"com.intuit.quickbooks.payroll.benefits",Profile:"profile",Email:"email",Phone:"phone",Address:"address",OpenId:"openid",Intuit_name:"intuit_name"},c.user_agent=`Intuit-OAuthClient-JS_${h.version}_${i.type()}_${i.release()}_${i.platform()}`,c.prototype.setAuthorizeURLs=function(p){if(!p)throw new Error("Provide the custom authorize URL's");return c.authorizeEndpoint=p.authorizeEndpoint,c.tokenEndpoint=p.tokenEndpoint,c.revokeEndpoint=p.revokeEndpoint,this.environment==="sandbox"?c.userinfo_endpoint_sandbox=p.userInfoEndpoint:c.userinfo_endpoint_production=p.userInfoEndpoint,this},c.prototype.authorizeUri=function(p){if(p=p||{},!p.scope)throw new Error("Provide the scopes");const y=`${c.authorizeEndpoint}?${o.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(p.scope)?p.scope.join(" "):p.scope,state:p.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",y),y},c.prototype.createToken=function(p){return new Promise(y=>{if(!p)throw new Error("Provide the Uri");const m=o.parse(p.split("?").reverse()[0]);this.getToken().realmId=m.realmId?m.realmId:"","state"in m&&(this.getToken().state=m.state);const u={};m.code&&(u.grant_type="authorization_code",u.code=m.code,u.redirect_uri=m.redirectUri||this.redirectUri);const v={url:c.tokenEndpoint,body:u,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(v))}).then(y=>{const m=y.json?y:null,u=m&&m.getJson()||y;return this.token.setToken(u),this.log("info","Create Token response is : ",JSON.stringify(m,null,2)),m}).catch(y=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.refresh=function(){return new Promise(p=>{this.validateToken();const y={};y.grant_type="refresh_token",y.refresh_token=this.getToken().refresh_token;const m={url:c.tokenEndpoint,body:y,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};p(this.getTokenRequest(m))}).then(p=>{const y=p.json?p:null,m=y&&y.getJson()||p;return this.token.setToken(m),this.log("info","Refresh Token () response is : ",JSON.stringify(y,null,2)),y}).catch(p=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(p,null,2)),p})},c.prototype.refreshUsingToken=function(p){return new Promise(y=>{if(!p)throw new Error("The Refresh token is missing");const m={};m.grant_type="refresh_token",m.refresh_token=p;const u={url:c.tokenEndpoint,body:m,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>{const m=y.json?y:null,u=m&&m.getJson()||y;return this.token.setToken(u),this.log("info","Refresh usingToken () response is : ",JSON.stringify(m,null,2)),m}).catch(y=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.revoke=function(p){return new Promise(y=>{p=p||{};const m={};m.token=p.access_token||p.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const u={url:c.revokeEndpoint,body:m,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:l._jsonContentType,"Content-Type":l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getUserInfo=function(){return new Promise(p=>{const y={url:this.environment==="sandbox"?c.userinfo_endpoint_sandbox:c.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent}};p(this.getTokenRequest(y))}).then(p=>{const y=p.json?p:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(y,null,2)),y}).catch(p=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(p,null,2)),p})},c.prototype.makeApiCall=function(p){return new Promise(y=>{p=p||{};const m=p.transport?p.transport:a.createTransport({type:"text"}),u=p.headers&&typeof p.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent},p.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent}),v={url:p.url,method:p.method||"GET",headers:u,transport:m};p.body&&(v.body=p.body),y(this.getTokenRequest(v))}).then(y=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.validateIdToken=function(p={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const m=this.getToken().id_token||p.id_token,u=m.split("."),v=JSON.parse(e(u[0])),b=JSON.parse(e(u[1]));if(b.iss!=="https://oauth.platform.intuit.com/op/v1"||!b.aud.find(E=>E===this.clientId)||b.exp<Date.now()/1e3)return!1;const g={url:c.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(m,v.kid,g))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),!!y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getValidatedIdToken=function(p={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const m=this.getToken().id_token||p.id_token,u=m.split("."),v=JSON.parse(e(u[0])),b=JSON.parse(e(u[1]));if(b.iss!=="https://oauth.platform.intuit.com/op/v1"||!b.aud.find(E=>E===this.clientId)||b.exp<Date.now()/1e3)return!1;const g={url:c.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(m,v.kid,g))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getIdTokenComponents=async function(w={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const y=(this.getToken().id_token||w.id_token).split("."),m=JSON.parse(e(y[0])),u=JSON.parse(e(y[1]));if(u.iss!=="https://oauth.platform.intuit.com/op/v1")throw new Error('The issuer is not as mentioned in "issuer"');if(!u.aud.find(v=>v===this.clientId))throw new Error("The aud field in idToken does not contain application's clientId");if(u.exp<Date.now()/1e3)throw new Error("The timestamp has elapsed");return{id_token_header:m,id_token_payload:u}},c.prototype.getKeyFromJWKsURI=function(p,y,m){return new Promise(u=>{u(this.loadResponse(m))}).then(u=>{if(Number(u.status)!==200)throw new Error("Could not reach JWK endpoint");const b=JSON.parse(u.body).keys.find(E=>E.kid===y),g=this.getPublicKey(b.n,b.e);return d.verify(p,g)}).catch(u=>{throw u=this.createError(u),this.log("error","The getKeyFromJWKsURI () threw an exception : ",JSON.stringify(u,null,2)),u})},c.prototype.getPublicKey=function(p,y){return ly()(p,y)},c.prototype.getTokenRequest=function(p){const y=new l({token:this.token});return new Promise(m=>{m(this.loadResponse(p))}).then(m=>{if(y.processResponse(m),!y.valid())throw new Error("Response has an Error");return y}).catch(m=>{throw m.authResponse||(m=this.createError(m,y)),m})},c.prototype.validateToken=function(){if(!this.token.refreshToken())throw new Error("The Refresh token is missing");if(!this.token.isRefreshTokenValid())throw new Error("The Refresh token is invalid, please Authorize again.")},c.prototype.loadResponse=function(p){return a.get(p).then(y=>y)},c.prototype.loadResponseFromJWKsURI=function(p){return a.get(p).then(y=>y)},c.prototype.createError=function(p,y){return!y||y.body===""?(p.error=y&&y.response.statusText||p.message||"",p.authResponse=y||"",p.intuit_tid=y&&y.headers()&&y.headers().intuit_tid||"",p.originalMessage=p.message||"",p.error_description=y&&y.response.statusText||"",p):(p.authResponse=y,p.originalMessage=p.message,p.error="","error"in y.getJson()?p.error=y.getJson().error:y.response.statusText?p.error=y.response.statusText:p.message&&(p.error=p.message),p.error_description="","error_description"in y.getJson()?p.error_description=y.getJson().error_description:y.response.statusText&&(p.error_description=y.response.statusText),p.intuit_tid=y.headers().intuit_tid,p)},c.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},c.prototype.getToken=function(){return this.token},c.prototype.setToken=function(p){return this.token=new f(p),this.token},c.prototype.authHeader=function(){const p=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(p):Re.from(p).toString("base64")},c.prototype.log=function(p,y,m){this.logging&&this.logger.log(p,y+m)},Ho=c,Ho}var hy=fy();const De=ld(hy),_r=(()=>{let e,n,o="";return{initiatedCompanyID:o,init:(t,r)=>{n=new De({clientId:Lr.quickbooksKey,clientSecret:"",environment:Jl,redirectUri:window.location.origin+t}),e=n.authorizeUri({state:r,scope:[De.scopes.Accounting,De.scopes.OpenId,De.scopes.Email,De.scopes.Profile]}),o=r},handleClick:()=>{window.open(e,"_self","noopener")}}})();function Aa(e){const o=na(e,!0).query,a=o.code,i=o.realmId,t=o.state,r=a!=null?decodeURIComponent(a):"",s=i!=null?decodeURIComponent(i):"",d=t!=null?decodeURIComponent(t):"";return{code:r,realmId:s,state:d}}const dy=(e,n,o,a,i)=>e!==""&&n!==""&&o!==""&&a!==null&&a!==""&&i!==null&&i!=="",py=({code:e,realmId:n,state:o,connectionId:a,signedInuserId:i,tenantId:t,companyId:r,onboardingViewFetchState:s,saveConnectionFetchState:d})=>dy(e,n,o,a,i)===!0&&d!=="In-Progress"&&s==="Completed"&&t!=null&&r!=null,my=()=>{const e=ca(),{code:n,realmId:o,state:a}=Aa(e.search),i=be.getSignedInUser()?.userId??"",t=a==="create-qbo-subscription";if(gy(n,o,a,i))if(t){const r=`/onboarding/${a}?code=${n}&realmId=${o}&state=${a}`;return N.jsx(Ct,{to:r})}else{const r=`/onboarding/edit/${a}?code=${n}&realmId=${o}&state=auth_flow`;return N.jsx(Ct,{to:r})}return N.jsx(Ct,{to:"../../"})},gy=(e,n,o,a)=>e!==""&&n!==""&&o!==""&&a!==null&&a!=="",yy=Ie.div`
|
|
145
|
-
display: flex;
|
|
146
|
-
height: 100vh;
|
|
147
|
-
width: 100%;
|
|
148
|
-
flex: 1 1 auto;
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
align-items: center;
|
|
151
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
152
|
-
box-shadow: ${e=>`0px 2px 4px ${e.theme.colors.dropShadowNormal}`};
|
|
153
|
-
`;function vy(e,n){const{address:o,showNavbarWithClose:a,sectionStyles:i,navbarStyles:t}=n;return{showNavbarWithClose:a,addressToEdit:o?.addressToCreate,loadingState:o?.status.fetchState,googleAPIKey:Lr.googleMapsAPIKey,sectionStyles:i,navbarStyles:t}}function by(e,n){return{onSubmitHandler:o=>{const a=Sy(o);e(vh({addressType:"company_address",addressToCreate:a})),n.closeDrawerHandler?.()},onCancel:()=>{n.closeDrawerHandler?.()}}}const wy=ge(vy,by)(wd);function Ey({closeDrawerHandler:e}){const n=ht(),o=me(),a=ca(),{addressType:i}=je(),t=qr(),r=be.getSignedInUser(),s=re(l=>yh("company_address",l));if(r==null)throw Error("Can't access address page without signing in...");const d=l=>l.trackPageLoaded(s?.newAddressId!=null?Ko.Event.editAddress:Ko.Event.addAddress);return i!=null&&!i.match(/(company_address)$/g)?N.jsx(ha,{}):N.jsxs(N.Fragment,{children:[N.jsx(Kl,{analytics:pe,onLoad:d}),N.jsx(yy,{windowSize:t,children:N.jsx(wy,{location:a,navigate:o,address:s,closeDrawerHandler:e,showNavbarWithClose:!0,navbarStyles:{backgroundColor:n.colors.grey5},sectionStyles:{backgroundColor:n.colors.grey5}})})]})}const Sy=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),_y={drawerLeftMargin:new Pe(0,0,240)},Ry=({isAddressDrawerOpen:e,closeDrawerHandler:n})=>{const o=ht(),a=qr(),i=_y.drawerLeftMargin.valuePx(a),t=()=>{n?.()};return N.jsx(Nr,{anchor:"right",open:e,PaperProps:{style:{width:`calc(100% - ${i})`}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.8,cursor:"pointer"}}},onClick:()=>t(),children:N.jsx(Oy,{onClick:r=>r.stopPropagation(),children:N.jsx(Ey,{closeDrawerHandler:n})})})},Oy=Ie(pt)`
|
|
154
|
-
display: flex;
|
|
155
|
-
min-height: 100%;
|
|
156
|
-
flex-direction: column;
|
|
157
|
-
`,Iy=Ie.div`
|
|
158
|
-
display: flex;
|
|
159
|
-
width: 100%;
|
|
160
|
-
height: calc(100vh - 110px);
|
|
161
|
-
flex-direction: row;
|
|
162
|
-
justify-content: center;
|
|
163
|
-
align-items: center;
|
|
164
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
165
|
-
`,Ty=({companyId:e,isOnboardingCustomerDrawerOpen:n,closeDrawerHandler:o})=>{const a=me(),i=ht(),t=Ee(),{useFeatureGate:r}=nt(),[s,d]=K.useState(!1),[l,h]=K.useState(!1),[f,c]=K.useState(!1),[w,p]=K.useState(!1),{isFeatureEnabled:y}=r(ua.isDebitCardFeatureEnabled),m=kt.getLocalizedStrings(),{code:u,realmId:v,state:b}=Aa(location.search),g={onOkClick:()=>{d(!1),B()},onCancelClick:()=>{d(!1)}},E=re(H=>bh(H)),{newOnboardedCustomerId:R}=E,O=E.companyView?.company.companyInfo.tenantId,I=E.newOnboardingCustomerLocalData.selectedProducts??[],q=I.includes("zeni_checking")&&!I.includes("bookkeeping"),G=re(H=>Ml(H)),V=re(H=>wh(H)),S=re(H=>H.userState),_=E.companyView?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,P=E.externalConnections?.accounting[0],x=P?.connectionType,M=P?.connectionName,C=P?.connectionId??"",T=E.customerLocalStoreInitState!=="Completed"||E.onboardingCompletedCompanies.fetchState!=="Completed"||V.fetchState==="In-Progress",A=be.getSignedInUser();if(A==null)throw Error("Can't access onboarding customer page without signing in...");const L=K.useCallback(()=>{p(!0),t(xa(!1,!0))},[]),B=()=>{t(Ze({selectedStep:""})),t(Hr()),o()},U=H=>{t(xa(H)),t(Ze({selectedStep:""}))},D=H=>{H!=null&&a(H==="management"?"../../management":"../")},j=H=>{t(Oh(H))},k=H=>{const Z=Ay(H,E);t(Rh(Z)),h(!0)},F=()=>{document.cookie="pre_board_questionnaire_id= ;path=/;",window.open("/pre-onboard")};return K.useEffect(()=>{G.fetchState==="Completed"&&t(Eh(y,e))},[e,G.fetchState,S.userByUserId]),K.useEffect(()=>{O!=null&&_!==!0&&!q&&t(Sh(A.userId,O))},[O,_]),K.useEffect(()=>{e!=null&&_r.initiatedCompanyID!==e&&_!==!0&&_r.init("/cockpit/onboarding/auth",e)},[e]),K.useEffect(()=>{E.sendInviteFetchState.fetchState==="Completed"&&(t(Hr()),o())},[E.sendInviteFetchState.fetchState]),K.useEffect(()=>{E.customerLocalStoreInitState==="Error"&&a("../../onboarding")},[E.customerLocalStoreInitState]),K.useEffect(()=>{py({code:u,realmId:v,state:b,connectionId:C,signedInuserId:A.userId,tenantId:O,companyId:e,onboardingViewFetchState:G.fetchState,saveConnectionFetchState:E.externalConnections?.saveConnectionState})&&O!=null&&(t(_h(O,{connection_type:x??"accounting",connection_name:M??"quickbooks_online",authorization_code:u,realm_id:v,connection_id:C,user_id:A.userId},na(window.location.origin+"/cockpit/onboarding/auth"),e,A.userId)),a(`/onboarding/edit/${e}`))},[x,M,u,v,b,C,A.userId,E.externalConnections?.saveConnectionState,location.pathname,G.fetchState,O,e]),K.useEffect(()=>{E.fetchState==="Completed"&&(w===!0?e==null&&R!=null?a(`../../onboarding/edit/${R}`):e!=null&&R==null&&_r.handleClick():(t(Hr()),o()))},[E.fetchState,e,w]),K.useEffect(()=>{E.externalConnections?.fetchState==="Completed"&&w===!0&&R!=null&&_r.handleClick()},[E.externalConnections?.fetchState,w,R]),N.jsx(Nr,{anchor:"right",open:n,PaperProps:{style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:()=>{l===!0?d(!0):B()},children:N.jsxs(Cy,{children:[s===!0?N.jsx(Ed,{titleComponent:N.jsx(Py,{children:m.cockpit.onboarding.discardTitle}),descriptionComponent:N.jsx(jy,{children:m.cockpit.onboarding.discardDescription}),primaryButtonText:m.cockpit.onboarding.delete,secondaryButtonText:m.cockpit.onboarding.cancel,action:g}):null,T?N.jsx(Iy,{children:N.jsx(kr,{size:"Large",start:!0})}):N.jsxs(N.Fragment,{children:[N.jsx(Sd,{localData:E,analytics:pe,onCloseClick:B,onCompanyDomainBlurred:j,onSaveClick:U,onViewClick:D,onOnboardingCustomerDataUpdated:k,onNavigateToPreOnboarding:F,screenType:e!=null?"edit":"create",onQBOConnectClick:L,qboConnectClicked:w}),f===!0?N.jsx(Ry,{isAddressDrawerOpen:f,closeDrawerHandler:()=>{c(!1)}}):null]})]})})},Ay=(e,n)=>{const o={},{companySection:a,customerSection:i,groupSection:t,qboConnectionSection:r}=e,{newOnboardingCustomerLocalData:s}=n;return s.companyId==null&&(o.companyEmailDomain=a.companyDomain),s.isEmailGroupCreated!==!0&&(o.groupId=t.groupEmail,o.groupName=t.groupName,o.groupDescription=t.groupDescription),o.email=i.email,o.customerName={firstName:i.customerName.firstName,lastName:i.customerName.lastName},o.name=i.name,o.chargebeeId=i.chargebeeId,o.qboRealmId=i.realmId,o.hubSpotId=i.hubSpotId,o.selectedProducts=i.products.selectedOptions.map(d=>Ih(d)).filter(d=>d!=null),i.entityType.selectedOption!=null?i.entityType.selectedOption?.value==="Subsidiary"?(o.isSubsidiary=!0,i.company.selectedOption!=null&&(o.parentCompanyId=i.company.selectedOption.value)):o.isSubsidiary=!1:o.isSubsidiary=void 0,r.accountingConnectionCreationMode!=null&&(o.accountingConnectionCreationMode=r.accountingConnectionCreationMode),o},Cy=Ie(pt)`
|
|
166
|
-
display: flex;
|
|
167
|
-
min-height: 100%;
|
|
168
|
-
flex-direction: column;
|
|
169
|
-
`,Py=Ie(Xl.H6Regular)`
|
|
170
|
-
margin-top: ${tt.sp7};
|
|
171
|
-
padding-left: ${tt.sp8};
|
|
172
|
-
padding-right: ${tt.sp8};
|
|
173
|
-
color: ${e=>e.theme.colors.primary};
|
|
174
|
-
word-break: break-word;
|
|
175
|
-
`,jy=Ie(Xl.StandardRegularSp)`
|
|
176
|
-
color: ${e=>e.theme.colors.hero};
|
|
177
|
-
padding-left: ${tt.sp8};
|
|
178
|
-
padding-right: ${tt.sp8};
|
|
179
|
-
margin-bottom: 30px;
|
|
180
|
-
margin-top: ${tt.sp4};
|
|
181
|
-
white-space: pre-line;
|
|
182
|
-
`,Al=(()=>{let e="",n;return{init:(i,t="create-qbo-subscription")=>{n=new De({clientId:Lr.quickbooksKey,clientSecret:"",environment:Jl,redirectUri:`${window.location.origin}${i}`}),e=n.authorizeUri({state:t,scope:[De.scopes.Accounting,De.scopes.OpenId,De.scopes.Email,De.scopes.Profile]})},handleClick:()=>{window.open(e,"_self","noopener")}}})(),xy=(e,n,o,a)=>e!==""&&n!==""&&o!==""&&a!=null&&a!=="",qy=({code:e,realmId:n,state:o,signedInuserId:a})=>xy(e,n,o,a)===!0;function Ly(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(Ze({filterText:a}))}}},onboardingPageActions:{onOnboardingStepClicked:(o,a)=>{e(Ze({selectedStep:a})),n.navigate(`../edit/${o}`)},onCancelClicked:()=>{e(Ze({showGoLivePopUp:!1}))},onGoLiveClicked:o=>{e(Lh(o.companyId,o))},onUpdateCustomerCreationStatus:()=>{e(qh())},onSendInviteClick:o=>{e(xh(o))},onColumnSortConfigChanged:(o,a)=>{e(Ze({sortKey:o,sortOrder:a}))},redirectToDashboardOnboarding:o=>{window.open(`/${o}/onboarding`)},onRetryBankAccountConnection:o=>{e(jh({companyId:o}))},onFilterTextChanged:(o,a)=>{e(Ze({filterText:a}))},onCockpitReloadData:o=>{o==="onboarding"&&(e(Fl()),e(Ul()))},onQBOConnectClick:()=>{Al.init("/cockpit/onboarding/auth","create-qbo-subscription"),Al.handleClick()},onScroll:o=>{}}}}function ky(e,n){return{headerData:{selectedTabOption:Je("onboarding")},onboardingPageData:{onboardingView:n.onboardingView,loggedInUser:n.signedInUser,qboConnectionPoolFlag:n.qboConnectionPoolFlag}}}const Ny=ge(ky,Ly)(_d);function Rr({isOnboardingCustomerDrawerOpen:e}){const n=me(),o=Ee(),{onboardingCustomerCompanyId:a}=je(),[i,t]=K.useState(!1),{useDynamicConfig:r}=nt(),{configValue:s}=r(it.qboConnectionPoolEnablement),{code:d,realmId:l,state:h}=Aa(location.search),f=re(y=>Ml(y)),c=be.getSignedInUser();if(c==null)throw Error("Can't access onboarding customer page without signing in...");K.useEffect(()=>{e!=null&&e===!0?t(!0):t(!1)},[e]);const w=re(y=>y.companyViewState.zeniUsers.fetchState);K.useEffect(()=>{f.fetchState==="Completed"?o(ot(!1)):(f.fetchState==="Not-Started"||f.fetchState==="Error")&&(o(Fl()),(w==="Not-Started"||w==="Error")&&o(Ye()),f.qboConnectionPool.fetchState==="Not-Started"&&o(Ul()))},[f.fetchState]),K.useEffect(()=>{f.updateStatus.fetchState==="Completed"&&(o(xr(!0)),o(ia(!0)),o(oa(!0)),o(Th()),f.uiState.showGoLivePopUp&&o(Ze({showGoLivePopUp:!1})),setTimeout(()=>{o(Ah())},5e3))},[f.updateStatus.fetchState]),K.useEffect(()=>{qy({code:d,realmId:l,state:h,signedInuserId:c.userId})&&h==="create-qbo-subscription"&&(o(Ch({connection_type:"accounting",connection_name:"quickbooks_online",connection_id:"",authorization_code:d,realm_id:l,user_id:c.userId},na(window.location.origin+"/cockpit/onboarding/auth"),c.userId)),n("/onboarding"))},[d,l,h,c.userId,location.pathname]);const p=()=>{t(!1),o(Ph()),n("../")};return N.jsxs(N.Fragment,{children:[i===!0?N.jsx(Ty,{isOnboardingCustomerDrawerOpen:i,closeDrawerHandler:p,companyId:a}):null,N.jsx(Ny,{onboardingView:f,qboConnectionPoolFlag:Array.isArray(s.userEmailAccessForQBOConnectionPool)&&s.userEmailAccessForQBOConnectionPool.includes(c.userEmail),navigate:n,signedInUser:c})]})}function Dy(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Rr,{})})}),N.jsx(se,{path:"/new",element:N.jsx(le,{element:N.jsx(Rr,{isOnboardingCustomerDrawerOpen:!0})})}),N.jsx(se,{path:"/edit/:onboardingCustomerCompanyId",element:N.jsx(le,{element:N.jsx(Rr,{isOnboardingCustomerDrawerOpen:!0})})}),N.jsx(se,{path:"/auth",element:N.jsx(le,{element:N.jsx(my,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Rr,{})})})]})}function My(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(St({filterText:a}))},onFiltersChange:(o,a)=>{e(St({filters:a}))}}},portfolioPageActions:{onColumnSortConfigChanged:(o,a)=>{e(St({sortKey:o,sortOrder:a}))},onScroll:o=>{e(St({scrollYOffset:o}))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(o,a)=>{e(St({filters:a}))},onCockpitReloadData:o=>{o==="portfolio"&&e(ia())}}}}function Fy(e,n){return{headerData:{selectedTabOption:Je("portfolio")},portfolioPageData:{portfolioView:n.portfolioView}}}const Uy=ge(Fy,My)(Rd);function Cl(){const e=me(),n=Ee(),o=re(i=>kh(i)),a=re(i=>i.companyViewState.zeniUsers.fetchState);return K.useEffect(()=>{o.fetchState==="Completed"?n(ot(!1)):(o.fetchState==="Not-Started"||o.fetchState==="Error")&&(n(ia()),(a==="Not-Started"||a==="Error")&&n(Ye()))},[o.fetchState]),N.jsx(Uy,{portfolioView:o,navigate:e})}function By(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Cl,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Cl,{})})})]})}function $y(e,n){const{merchantId:o}=n,a=aa(e);return{tenantMerchant:o!=null?Dh(e,o):void 0,globalMerchantView:a,analytics:pe}}function Vy(e,n){const{merchantId:o,navigate:a}=n;return{updateCreateGlobalMerchantLocalData:(i,t,r)=>{e($l(i,t,r!=null?Fh(r):void 0))},fetchRecommendation:()=>{e(Bl("global"))},onSaveClick:()=>{e(Mh(o,"vendor_global_review"))},onBackClick:()=>{a("../vendors")}}}const Gy=ge($y,Vy)(Od);function zy(){const e=me(),n=Ee(),{merchantId:o}=je(),a=re(i=>aa(i).newGlobalMerchantData?.status.fetchState);return K.useEffect(()=>{a==="Completed"&&(n(Nh()),e("../vendors"))},[a]),N.jsx(Gy,{merchantId:o,navigate:e})}function Hy(e){const n=Uh(e);return{vendorGlobalReviewView:Bh(e),globalMerchantAutoCompleteView:n,analytics:pe}}function Zy(e,n){const{navigate:o}=n;return{onApproveGlobalReview:a=>{e(Zh(a))},onRejectGlobalReview:a=>{e(Hh(a))},onCreateGlobalMerchant:(a,i,t)=>{i!=null&&(e($l(i,null,t)),e(Bl("global"))),a!=null?o(`./create/${a}`):o("./create")},onFetchGlobalReviewList:(a,i,t)=>{e(Vl(a,i,t))},onUpdateGlobalReviewUIState:a=>{e(zh(a))},onFetchGlobalMerchantAutoCompleteResults:a=>{e(Gh({searchString:a,globalMerchantType:"vendor"}))},onUpdateSelectedGlobalMerchant:(a,i,t)=>{const r=Yy(i);e(Vh({merchantId:a,currentSelection:r,customMerchantId:t}))},onClearGlobalMerchantAutoCompleteResults:()=>{e($h())},onBackClick:()=>{o("../../management")}}}const Wy=ge(Hy,Zy)(Id);function Zo(){const e=me(),n=Ee(),o=Xo("/reconciliation/vendors/create/*")!=null,a=re(t=>aa(t));K.useEffect(()=>{o&&a.fetchState==="Not-Started"&&e("../vendors"),n(Vl(void 0,!1))},[]);const i=t=>t.trackPageLoaded(Ko.Event.vendorGlobalReviewListPage);return N.jsxs(N.Fragment,{children:[N.jsx(Kl,{analytics:pe,onLoad:i}),N.jsx(Mt,{isOpen:o,drawerLeftMargin:new Pe(0,0,300,450),onClose:()=>{a.newGlobalMerchantData!=null&&pe.trackVendorReviewNewVendorCanceled({reviewSource:"global_review",newRequestedVendorName:a.newGlobalMerchantData.globalMerchantName,tenantName:null,recommendedVendorName:a.recommendedGlobalMerchants[0]?.globalMerchantName??null,recommendedVendorReason:a.recommendedGlobalMerchants[0]?.reason??null}),e("../vendors")},children:N.jsx(Jy,{onClick:t=>t.stopPropagation(),children:N.jsx(zy,{})})}),N.jsx(Wy,{navigate:e})]})}const Yy=e=>e.originalVendor===!0?"originalVendor":e.recommendedFirst===!0?"recommendedFirst":e.recommendedSecond===!0?"recommendedSecond":e.requested===!0?"requested":null,Jy=Ie(pt)`
|
|
183
|
-
display: flex;
|
|
184
|
-
min-height: 100%;
|
|
185
|
-
flex-direction: column;
|
|
186
|
-
`;function Ky(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/vendors",element:N.jsx(le,{element:N.jsx(Zo,{})})}),N.jsx(se,{path:"/vendors/create",element:N.jsx(le,{element:N.jsx(Zo,{})})}),N.jsx(se,{path:"/vendors/create/:merchantId",element:N.jsx(le,{element:N.jsx(Zo,{})})})]})}const Xy=Ie.div`
|
|
187
|
-
display: flex;
|
|
188
|
-
width: 100%;
|
|
189
|
-
height: calc(100vh - 110px);
|
|
190
|
-
flex-direction: row;
|
|
191
|
-
justify-content: center;
|
|
192
|
-
align-items: center;
|
|
193
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
194
|
-
`;function Qy(e,n){const{companyId:o,reviewView:a}=n;return{allUsers:a.zeniUsers,companyView:a.companies.find(i=>i.companyId===o)}}function ev(e,n){const{companyId:o}=n;return{onRetryBankAccountConnection:()=>{o!=null&&e(Gl({companyId:o}))},onCloseClick:()=>{n.navigate("../")}}}const tv=ge(Qy,ev)(Td);function rv(){const e=me(),{companyId:n}=je(),o=re(a=>Lt(a));return N.jsx(N.Fragment,{children:o.fetchState==="In-Progress"?N.jsx(Xy,{children:N.jsx(kr,{size:"Large",start:!0})}):N.jsx(tv,{companyId:n,reviewView:o,navigate:e})})}function nv(e,n){const{expenseAutomationEnabledCompanies:o,navigate:a}=n;return{headerActions:{onTabChange:i=>{const t=at(i),r=dt(i);pe.trackCockpitTabClicked(r),a(`../../${t}`,{replace:!0})},filterActions:{onFilterTextChanged:(i,t)=>{e(Zr({filterText:t}))}}},reviewPageActions:{onColumnSortConfigChanged:(i,t)=>{e(Zr({sortKey:i,sortOrder:t}))},onTransactionTagClicked:(i,t,r)=>{const s=o.includes(i.companyId);t==="expense"&&s?window.open(`/${i.primaryEmailDomain}/month_end_close_checks/review`):window.open(`/${i.primaryEmailDomain}/transactions/${r}-${t}`)},onReviewVendorTagClicked:i=>window.open(`/${i.primaryEmailDomain}/vendors/review`),onCompanyNameClicked:i=>window.open(`/${i.primaryEmailDomain}/dashboard`),onRetryBankAccountConnection:i=>{e(Gl({companyId:i}))},onUncategorizedAccountsErrorClick:i=>{window.open(`/${i}/accounts/mapping`)},onClickAuditScore:i=>{if(i!=null){const t=`./report/${encodeURIComponent(i)}`;a(t)}},onClickWarningsCount:i=>{if(i!=null){const t=`./warnings/${encodeURIComponent(i)}`;a(t)}},onFilterTextChanged:(i,t)=>{e(Zr({filterText:t}))},onCockpitReloadData:i=>{i==="audit"&&e(rt())},onScroll:i=>{}}}}function iv(e,n){return{headerData:{selectedTabOption:Je("audit")},reviewPageData:{reviewView:n.reviewView,zeniUserFetchState:n.zeniUserFetchState,allUsers:n.reviewView.zeniUsers,isReviewVendorColumnVisible:n.isReviewVendorColumnVisible},analytics:pe}}const ov=ge(iv,nv)(Ad);function Wo(){const e=me(),n=Ee(),o=Xo("/audit/report/*")!=null,a=Xo("/audit/warnings/*")!=null,{useFeatureGate:i}=nt(),{isFeatureEnabled:t}=i(ua.isReviewTabVendorColumnEnabled),{useDynamicConfig:r}=nt(),{configValue:s}=r(it.expenseAutomationEnablement),d=re(f=>Lt(f)),l=re(f=>jr(f)),h=re(f=>f.companyViewState.zeniUsers.fetchState);return K.useEffect(()=>{d.fetchState==="Completed"?n(ot(!1)):(d.fetchState==="Not-Started"||d.fetchState==="Error")&&(n(rt()),(h==="Not-Started"||h==="Error")&&n(Ye()))},[d.fetchState]),K.useEffect(()=>{d.fetchState==="Completed"&&l.fetchState==="Not-Started"&&n(ta())},[d.fetchState]),N.jsxs(N.Fragment,{children:[N.jsx(Mt,{isOpen:o||a,drawerLeftMargin:o?new Pe(0,0,0,0):a?new Pe(0,0,300,650):new Pe(0,0,300,650),onClose:()=>{o&&n(rt()),e("../")},children:N.jsx(av,{onClick:f=>f.stopPropagation(),children:o?N.jsx(ef,{}):a?N.jsx(rv,{}):null})}),N.jsx(ov,{reviewView:d,navigate:e,isReviewVendorColumnVisible:t,zeniUserFetchState:h,expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]})]})}const av=Ie(pt)`
|
|
195
|
-
display: flex;
|
|
196
|
-
min-height: 100%;
|
|
197
|
-
flex-direction: column;
|
|
198
|
-
`;function sv(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/report/:companyId",element:N.jsx(le,{element:N.jsx(Wo,{})})}),N.jsx(se,{path:"/warnings/:companyId",element:N.jsx(le,{element:N.jsx(Wo,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Wo,{})})})]})}function uv(e,n){const o=zl(e,n.tenantId),a=o.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:a}}function cv(e,n){const{tenantId:o,companyId:a,location:i,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{addPlan:s,invoiceOption:d}=r,{subscriptionPlan:l,recurringAddOns:h,coupon:f}=s,c={subscriptionPlanId:l.selectedOption??"",subscriptionAddOnIds:h.filter(w=>w.selectedOption!=null).map(w=>w.selectedOption),subscriptionCouponIds:f.selectedOption!=null?[f.selectedOption]:[],invoiceImmediately:d.invoicingOption!=null};s.planStartDate!=null&&(c.startDate=Or(s.planStartDate.toString())),e(Hl({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=Ql(i.state?.pathnameStackToGoBack,i.pathname);t(`../tenants/${o}/companies/${a}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(Wh(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${a}`)},onResetClick:()=>{e(sa(o))}}}const lv=ge(uv,cv)(Cd),fv=e=>{const{tenantId:n,companyId:o,location:a,navigate:i}=e;return N.jsx(lv,{tenantId:n,companyId:o,location:a,navigate:i})};function hv(e,n){const{companyId:o,tenantId:a}=n,i=Jh(e,o,a),t=i.fetchState!=="In-Progress";return{subscriptionDetailView:i,canUpdate:t}}function dv(e,n){const{tenantId:o,location:a,navigate:i}=n;return{onUpdateOrAddPlanClick:t=>{e(sa(o,t)),e(Kh()),e(Xh()),e(Qh()),t!=null?i(`${a.pathname}/update`):i(`${a.pathname}/add`)},onCloseClick:()=>{i("../")}}}const pv=ge(hv,dv)(Pd),mv=e=>{const{tenantId:n,companyId:o,location:a,navigate:i}=e,t=Ee(),[r,s]=K.useState(!1),d=re(l=>l.subscriptionViewState.subscriptionDetailsByCompanyId[o]?.fetchStatus);return K.useEffect(()=>{!r&&(d==null||d?.fetchState==="Not-Started")&&(s(!0),t(Yh(o)))},[r,d,o,t]),K.useEffect(()=>{r&&d!=null&&d?.fetchState==="Error"&&i("../subscription")},[r,d]),N.jsx(pv,{tenantId:n,companyId:o,location:a,navigate:i})};function gv(e,n){return{subscriptionEstimateData:ed(e,n.tenantId)}}function yv(e,n){const{tenantId:o,companyId:a,location:i,navigate:t}=n,r=()=>{const s=np(i.state?.pathnameStackToGoBack),d=s.poppedPathname??ip(1);t(d,{state:{pathnameStackToGoBack:s.newStack}})};return{onBackClick:()=>{r()},onCancelClick:()=>{r()},onConfirmClick:()=>{e(td(o))},onConfirmSuccess:()=>{t(`../tenants/${o}/companies/${a}`)}}}const vv=ge(gv,yv)(jd),bv=e=>{const{tenantId:n,companyId:o,location:a,navigate:i}=e;return N.jsx(vv,{companyId:o,tenantId:n,location:a,navigate:i})};function wv(e,n){const o=zl(e,n.tenantId),a=o.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:a}}function Ev(e,n){const{tenantId:o,companyId:a,location:i,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{updatePlan:s,applyChanges:d}=r,{subscriptionPlan:l,recurringAddOns:h,coupon:f}=s,c={subscriptionPlanId:l.selectedOption??"",subscriptionAddOnIds:h.filter(w=>w.selectedOption!=null).map(w=>w.selectedOption),subscriptionCouponIds:f.selectedOption!=null?[f.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:d.changeType==="applyEndOfTerm",shouldProrate:d.shouldProrate};e(Hl({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=Ql(i.state?.pathnameStackToGoBack,i.pathname);t(`../tenants/${o}/companies/${a}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(rd(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${a}`)},onResetClick:r=>{e(sa(o,r.subscription.subscription.subscriptionId))}}}const Sv=ge(wv,Ev)(xd),_v=e=>{const{tenantId:n,companyId:o,location:a,navigate:i}=e;return N.jsx(Sv,{tenantId:n,companyId:o,location:a,navigate:i})},Yf=["add","update","summary"],Rv=e=>id(e,Yf),Ov=e=>nd(e,Yf),Iv=()=>{const[e,n]=K.useState(!0),{tenantId:o,companyId:a,updatePageType:i}=je(),t=me(),r=re(d=>o!=null?d.subscriptionViewState.subscriptionUpdateViewDataByTenantId[o]:null);if(be.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return K.useEffect(()=>{(r==null&&i!=null||Ov(i??"")==null)&&t(`../tenants/${o}/companies/${a}`)},[r]),N.jsx(Mt,{isOpen:e,onClose:()=>{n(!1),t("../subscription")},children:N.jsx(Av,{children:N.jsx(Tv,{tenantId:o,companyId:a,updatePageType:i!=null?Rv(i):void 0})})})},Tv=({tenantId:e,companyId:n,updatePageType:o})=>{const a=me(),i=ca(),t={tenantId:e,companyId:n,navigate:a,location:i};if(o==null)return N.jsx(mv,{...t});switch(o){case"update":return N.jsx(_v,{...t});case"add":return N.jsx(fv,{...t});case"summary":return N.jsx(bv,{...t});default:return console.error("Subscription Update Page - Invalid Url"),N.jsx(Ct,{to:"/",replace:!0})}},Av=Ie(pt)`
|
|
199
|
-
display: flex;
|
|
200
|
-
min-height: 100%;
|
|
201
|
-
`;function Cv(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(lt({filterText:a}))},onFiltersChange:(o,a)=>{e(lt({filters:a}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(o,a)=>{e(lt({sortKey:o,sortOrder:a}))},onCollapseToggled:(o,a)=>{e(lt({isRowCollapseToggled:{companyId:o,isCollapsed:a}}))},onScroll:o=>{e(lt({scrollYOffset:o}))},changeHandlers:(o,a)=>{const i=xv(a);Object.keys(i).length>0&&e(ra(o,i))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(o,a)=>{e(ad({tenantId:a})),n.navigate(`../tenants/${a}/companies/${o}`)},onFiltersChange:(o,a)=>{e(lt({filters:a}))},onCockpitReloadData:o=>{o==="subscription"&&e(oa())}}}}function Pv(e,n){return{headerData:{selectedTabOption:Je("subscription")},subscriptionPageData:{loggedInUser:n.signedInUser,subscriptionView:n.subscriptionView}}}const jv=ge(Pv,Cv)(qd);function Yo({isDrawerOpen:e}){const n=me(),o=Ee(),a=re(r=>od(r)),i=re(r=>r.companyViewState.zeniUsers.fetchState);K.useEffect(()=>{a.fetchState==="Completed"?o(ot(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(o(oa()),(i==="Not-Started"||i==="Error")&&o(Ye()))},[a.fetchState]);const t=be.getSignedInUser();return N.jsxs(N.Fragment,{children:[e===!0?N.jsx(Iv,{}):null,N.jsx(jv,{signedInUser:t,subscriptionView:a,navigate:n})]})}const xv=e=>{const{users:n}=e;return n?{users:n}:{}};function qv(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/tenants/:tenantId/companies/:companyId",element:N.jsx(le,{element:N.jsx(Yo,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:N.jsx(le,{element:N.jsx(Yo,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Yo,{})})})]})}function Lv(e,n){const{navigate:o}=n;return{headerActions:{onTabChange:a=>{const i=at(a);o(`../../${i}`,{replace:!0})}},taskManagerPageActions:{onRowClick:(a,i)=>{window.open(`/${a}/tasks/${i}`)},onCockpitReloadData:a=>{a==="taskManager"&&e(Jo(null,"dueDate","descending",!1))},onFetchTaskManagerView:(a,i,t,r,s)=>{e(Jo(a,i,t,r,s))}}}}function kv(e,n){return{headerData:{selectedTabOption:Je("taskManager")},taskManagerPageData:{companyTaskManagerView:n.companyTaskManagerView}}}const Nv=ge(kv,Lv)(Ld);function Pl(){const e=me(),n=Ee(),o=re(r=>sd(r)),a=re(r=>ud(r)),i=re(r=>r.companyViewState.zeniUsers.fetchState);if(K.useEffect(()=>{o.fetchState==="Completed"?n(ot(!1)):(o.fetchState==="Not-Started"||o.fetchState==="Error")&&(n(Jo(null,"dueDate","descending",!1)),(i==="Not-Started"||i==="Error")&&n(Ye()))},[o.fetchState]),be.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");return N.jsx(Nv,{navigate:e,reviewCount:a,companyTaskManagerView:o})}function Dv(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Pl,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Pl,{})})})]})}let jl=!1;const Mv=kd(()=>cd(()=>Promise.resolve().then(()=>Op),void 0));function rb(){const e=be.getSignedInUser(),n=ht().mode;return K.useEffect(()=>{be.isSignedIn()&&!jl&&e!=null&&(Nd(e,n),jl=!0)},[e]),N.jsxs(Ve,{children:[N.jsx(se,{path:"/management/*",element:N.jsx(xp,{})}),N.jsx(se,{path:"/subscription/*",element:N.jsx(qv,{})}),N.jsx(se,{path:"/onboarding/*",element:N.jsx(Dy,{})}),N.jsx(se,{path:"/portfolio/*",element:N.jsx(By,{})}),N.jsx(se,{path:"/audit/*",element:N.jsx(sv,{})}),N.jsx(se,{path:"/reconciliation/*",element:N.jsx(Ky,{})}),N.jsx(se,{path:"/health-monitor/*",element:N.jsx(op,{})}),N.jsx(se,{path:"/task-manager/*",element:N.jsx(Dv,{})}),N.jsx(se,{path:"/*",element:N.jsx(Mv,{})})]})}export{rb as default};
|