@zeniai/web-cockpit-ui 1.14.72-dev → 1.14.72-dev-betaSK01
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-BZFkcCOG-Bm0yzLzS.js → ACHDetailsPage-BZFkcCOG-WfBPHoUX.js} +2 -2
- package/dist/assets/{AIPerformancePage-DtNLjoUW-C8WssBlV.js → AIPerformancePage-DtNLjoUW-CinUSJg2.js} +124 -124
- package/dist/assets/{AccountInfoPage-D-E_-WpE-D3xkesKo.js → AccountInfoPage-D-E_-WpE-DJyb7x4k.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js → AccountInfoPageContent-B8GKrtCm-10kK72ec.js} +13 -13
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +239 -0
- package/dist/assets/{AccountRow-Be3LIHO--AtWCxnkE.js → AccountRow-Be3LIHO--BjLJB43L.js} +32 -32
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +207 -0
- package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js → AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js} +2 -2
- package/dist/assets/{AddToWalletPage-nSq-9dQy-DNXeo8yV.js → AddToWalletPage-nSq-9dQy-D56Hf4hb.js} +13 -13
- package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +79 -0
- package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +192 -0
- package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +46 -0
- package/dist/assets/{AppBasePage-Br0WbQRY-C5P2SI_a.js → AppBasePage-Br0WbQRY-BAK8zLlg.js} +5 -5
- package/dist/assets/{AppDrawerContent-BZODvVvi-DO9-i0u3.js → AppDrawerContent-BZODvVvi-DQ-V9QL0.js} +7 -7
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +47 -0
- package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js → ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js} +3 -3
- package/dist/assets/{AttachmentView-DhluaeAV-DnrJUkr5.js → AttachmentView-DhluaeAV-DsM43aN0.js} +9 -9
- package/dist/assets/{BankAccountSection-GDEQdiGL-CuwfGvXF.js → BankAccountSection-GDEQdiGL-CmBLlIS1.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js → BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js} +9 -9
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +425 -0
- package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js → BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js} +7 -7
- package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +84 -0
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +42 -0
- package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +1 -0
- package/dist/assets/{BoxItem-COIjjFrn-DqU4ZyNU.js → BoxItem-COIjjFrn-CYZK_lth.js} +4 -4
- package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +138 -0
- package/dist/assets/{CardNumberSubText-CmhH95Ff-CLBGKyAX.js → CardNumberSubText-CmhH95Ff-D70_vfvB.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BPLjvuA3-362WFi2j.js → CashbackDetailPage-BPLjvuA3-D2AlurqK.js} +56 -56
- package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js → ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js} +215 -215
- package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +406 -0
- package/dist/assets/{ChargeCardListTable-BGWV4zJl-fPTlw7hA.js → ChargeCardListTable-BGWV4zJl-CcT6S7FA.js} +51 -51
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +222 -0
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js → ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js} +3 -3
- package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +1 -0
- package/dist/assets/{ChaseOverlay-BC_4vwtb-ZJ37WP7g.js → ChaseOverlay-BC_4vwtb-BQqHx8M-.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js → CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js} +21 -21
- package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +2932 -0
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +260 -0
- package/dist/assets/{CompanyPassportCard-D3F01eJL-CYg3XwZh.js → CompanyPassportCard-D3F01eJL-BhEJq4YF.js} +1 -1
- package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +574 -0
- package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +52 -0
- package/dist/assets/{ConfettiBurst--HIHB7Os-CFkZhGnX.js → ConfettiBurst--HIHB7Os-S4QyIwiq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js → CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js} +11 -11
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +224 -0
- package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js → CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js} +10 -10
- package/dist/assets/{CurrencySelectField-nhg_dhDw-Ct_sJsLw.js → CurrencySelectField-nhg_dhDw-nZHVWMo0.js} +6 -6
- package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js → CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js → CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js} +6 -6
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +202 -0
- package/dist/assets/{Dashboard-D6Ba5oj0-DGZ5Ekyf.js → Dashboard-D6Ba5oj0-C5iZr7Dc.js} +262 -262
- package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +371 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js → DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js → DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js} +5 -5
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +21 -0
- package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +439 -0
- package/dist/assets/{DrawerPage-BRD6cE6J-CdG9rNJx.js → DrawerPage-BRD6cE6J-1UMYAHb7.js} +13 -13
- package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +865 -0
- package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +18 -0
- package/dist/assets/{EntitySummarySection-BRt1kPDf-BrvMzC_z.js → EntitySummarySection-BRt1kPDf-DQbEIQFx.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js → ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +1650 -0
- package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +168 -0
- package/dist/assets/{FeaturePreviewPage-CQN2xThT-D8GcVVCI.js → FeaturePreviewPage-CQN2xThT-DJXN60Ac.js} +3 -3
- package/dist/assets/{FollowStepsSection-DdwEVWhG-XjqeMDlz.js → FollowStepsSection-DdwEVWhG-yjJ5FRCa.js} +21 -21
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +291 -0
- package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +28 -0
- package/dist/assets/{InformationCardStack-Cw7c9Pnd-JKEjusS_.js → InformationCardStack-Cw7c9Pnd-BX2LTL8l.js} +2 -2
- package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +79 -0
- package/dist/assets/{InsightsSection-JIKb9lz3-CSUvMdaP.js → InsightsSection-JIKb9lz3-Hi0aN8hq.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js → IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js → InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js → InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js} +28 -28
- package/dist/assets/{InviteFormPage-CrtH0cSG-lBcBfRNC.js → InviteFormPage-CrtH0cSG-eVIYbN0r.js} +16 -16
- package/dist/assets/{InvitePageListView-DUoopPip-D3WES4Ay.js → InvitePageListView-DUoopPip-D5qrm4ww.js} +164 -164
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +12 -0
- package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +140 -0
- package/dist/assets/{IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js → IssueChargeCardPage-D6DCohbK-BMG4Ljit.js} +10 -10
- package/dist/assets/{LabeledAddressValue-C3R0DSjj-DSFQoK0_.js → LabeledAddressValue-C3R0DSjj-CpxXKm9c.js} +1 -1
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js → LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js → LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js} +7 -7
- package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js → LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js} +5 -5
- package/dist/assets/{LabeledText-BESSkt5Z-DvRhicFs.js → LabeledText-BESSkt5Z-CPDVK04g.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js → LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js} +33 -33
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +98 -0
- package/dist/assets/{LockCardPage-DYfgK11k-CA2sqFlt.js → LockCardPage-DYfgK11k-BFAZ4k7o.js} +71 -71
- package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +34 -0
- package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js → MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js → MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js} +3 -3
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +17 -0
- package/dist/assets/{MailingDetailsSection-9RwlQxVG-C09sdGhg.js → MailingDetailsSection-9RwlQxVG-_UrE81Sw.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js → MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js} +4 -4
- package/dist/assets/Menu-B6iTf2H7-Cu2Vb11u.js +17 -0
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +85 -0
- package/dist/assets/{NavBarWithPicker-CKh_HMfV-U1f60LTo.js → NavBarWithPicker-CKh_HMfV-i4ObGPrS.js} +4 -4
- package/dist/assets/{NavigationArrow-XZmJpDrE-BSGdgz-m.js → NavigationArrow-XZmJpDrE-DolsLofY.js} +2 -2
- package/dist/assets/{NavigationDots-BxPgEW_p-CnLRJgGA.js → NavigationDots-BxPgEW_p-Cjr25BX_.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js → NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js} +35 -35
- package/dist/assets/{NoDataChart-5E72SElf-Bfyft1Tp.js → NoDataChart-5E72SElf-3CnLxisw.js} +4 -4
- package/dist/assets/{NoDataTable-BwHbkm3l-C4AJlFQY.js → NoDataTable-BwHbkm3l-VTHrTfOq.js} +2 -2
- package/dist/assets/{NotFoundPage-6udaksBZ-Bdrzyyzv.js → NotFoundPage-6udaksBZ-DUgTbMe0.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js → NotificationSettingsPage-DkYmxMgg-BVRECpS0.js} +32 -32
- package/dist/assets/{NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js → NotificationsListConfig-FGxLgO1o-C0kfEx8A.js} +1 -1
- package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +685 -0
- package/dist/assets/{OpExByVendorPage-CM0RluUk-BgpW2giu.js → OpExByVendorPage-CM0RluUk-PZB-G7xm.js} +4 -4
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-mLdiagVZ.js → OverlayContainerPage-BKHs_4eI-CSsJiY_P.js} +2 -2
- package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js} +9 -9
- package/dist/assets/{PeoplePage-CB3T3u_F-DC1PdCPq.js → PeoplePage-CB3T3u_F-BR69e4ui.js} +96 -96
- package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js → PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js} +13 -13
- package/dist/assets/{PortfolioDetails-D4yT8r35-DSk0Sc23.js → PortfolioDetails-D4yT8r35-BZAutCbg.js} +34 -34
- package/dist/assets/{ProductsCarousel-CR7_rk0K-DQWJaP-C.js → ProductsCarousel-CR7_rk0K-CKMGS-I4.js} +7 -7
- package/dist/assets/{PromoBaseCards-BAPolzxE-DLtmx-3v.js → PromoBaseCards-BAPolzxE-DjUVr5kX.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-D3eazhj7-fJDNmSLU.js → QBOConnectionDialog-D3eazhj7-DCdAj667.js} +7 -7
- package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CrlXRkit.js → QBOSetupSection-Cjjhm_Ee-CX61tnWs.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js → ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js} +12 -12
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +314 -0
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +1 -0
- package/dist/assets/{ReloadCard-Dpoxd9nE-B9DlyhD4.js → ReloadCard-Dpoxd9nE-_RGkkZLm.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js → ReportTableViewSelector-Ci-WKrCO-D0sA8766.js} +30 -30
- package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +121 -0
- package/dist/assets/{RevenueChart-CXMBT3cr-DnDEiqPG.js → RevenueChart-CXMBT3cr-BigDcfmP.js} +29 -29
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +290 -0
- package/dist/assets/{ReviewOverlay-C6Kx7Hfm-IahzUsv3.js → ReviewOverlay-C6Kx7Hfm-Aab2M4el.js} +12 -12
- package/dist/assets/{RoleWithToolTip-BqI6M0x_-CwUqJeb5.js → RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js} +2 -2
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +37 -0
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +37 -0
- package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js → ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js} +42 -42
- package/dist/assets/ScreenRoutes-Du6t5Ig_.js +206 -0
- package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +378 -0
- package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js → SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js} +13 -13
- package/dist/assets/{SignIn-BlISBvt5-C9HXqHPg.js → SignIn-BlISBvt5-BSeULTEW.js} +28 -28
- package/dist/assets/SignInScreen-BN2xWnU-.js +1 -0
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +754 -0
- package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +230 -0
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +206 -0
- package/dist/assets/{StatementItem-BVIVLdDn-BLcyHqWZ.js → StatementItem-BVIVLdDn-DWQxeT2X.js} +2 -2
- package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +58 -0
- package/dist/assets/{StatusSwitcher-aAizq1mr-D4E7X1zy.js → StatusSwitcher-aAizq1mr-c-jcIGD9.js} +2 -2
- package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hsvJe_.js → SubTabSwitcher-COrYJ6CW-BIZF-iNv.js} +1 -1
- package/dist/assets/{SummaryCard-Dv0dWKBw-BnK7xgrF.js → SummaryCard-Dv0dWKBw-CGu-GHYa.js} +1 -1
- package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js → TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js → TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js → TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js} +1 -1
- package/dist/assets/{TopExCard-Bam-Q4MV-GCmLzO6i.js → TopExCard-Bam-Q4MV-BsP_HKjG.js} +6 -6
- package/dist/assets/{TopExDetailPage-P0Twt5zZ-BElfoauE.js → TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js} +12 -12
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +912 -0
- package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +147 -0
- package/dist/assets/{TransactionListBig-u4SJBZTE-BZvqZwTB.js → TransactionListBig-u4SJBZTE-BlGBIBoN.js} +44 -44
- package/dist/assets/{TransactionListPage-D4GJ6i3l-BXLL3BhX.js → TransactionListPage-D4GJ6i3l-yaso0Nlb.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js → TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js} +5 -5
- package/dist/assets/{TransferDrawerPage-GD2I8ptj-B7cXbGdy.js → TransferDrawerPage-GD2I8ptj-CANT8JC_.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +708 -0
- package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js → TreasuryPromoPage-DW1f8_q1-CkWefV3r.js} +6 -6
- package/dist/assets/{TreasurySetupPage-53k6ARHC-8YVNt5Wt.js → TreasurySetupPage-53k6ARHC-DuoYqIOy.js} +3 -3
- package/dist/assets/{TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js → TreasuryStatementsPage-pIshKNaR--8vN-IgR.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js → TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +576 -0
- package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +16 -0
- package/dist/assets/{TrendWithTransactions-mI_El5D1-SbfSjDf-.js → TrendWithTransactions-mI_El5D1-DUVZm_U-.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js} +47 -47
- package/dist/assets/{UnitIntegrationPage-XOWqGHla-DR8O2yO4.js → UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +38 -0
- package/dist/assets/{Vendor2FAPopup-BfqIHZBb-CksyyTez.js → Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js → VendorACHDetailsPage-CswCvAFH-DqnJleBx.js} +1 -1
- package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +257 -0
- package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js → VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js → VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js} +32 -32
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +152 -0
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js → VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js} +4 -4
- package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +112 -0
- package/dist/assets/{VideoPlayer-ByyqUuhG-DTMNeCaX.js → VideoPlayer-ByyqUuhG-CcmvFcG0.js} +1 -1
- package/dist/assets/{VideoPopup-DJrQQTPq-DoXO-Vwb.js → VideoPopup-DJrQQTPq-BZRShVLd.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js → WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js} +5 -5
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +300 -0
- package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js → ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js → ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js → ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js} +1 -1
- package/dist/assets/{ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js → ZeniCopyright-B7Q6IUGC-DjtbTVnp.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js → ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js} +3 -3
- package/dist/assets/addSubtractPeriod-CFvkmqm8.js +1 -0
- package/dist/assets/analyticsHelper-L-FpsGLH.js +1 -0
- package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +1 -0
- package/dist/assets/{chartTypes-DCvOVjlS-BdPIN5WI.js → chartTypes-DCvOVjlS-CF3jsUNb.js} +1 -1
- package/dist/assets/{commonDimensions-C32v1F7H-CiAEfJl2.js → commonDimensions-C32v1F7H-C9uaBJ8J.js} +1 -1
- package/dist/assets/{detailCommon-CRAGrqoO-Cq9phP1q.js → detailCommon-CRAGrqoO-5xMc7u9M.js} +8 -8
- package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +1 -0
- package/dist/assets/{index-sAOH0Fje.js → index-kF4u7Flm.js} +511 -704
- package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js → mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js → mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js → mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js} +1 -1
- package/dist/assets/redux-D-TY61DZ.js +12 -0
- package/dist/assets/{toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js → toCOABalancesWithID-B3yVGPrV-Dj01dEre.js} +1 -1
- package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +1 -0
- package/dist/assets/{treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js → treasuryColorHelper-13LJ_xhk-5-aGYtqD.js} +1 -1
- package/dist/assets/{uploadAttachment-DVy2pZeJ-X-xSyfvF.js → uploadAttachment-DVy2pZeJ-DL6B1oGY.js} +25 -25
- package/dist/assets/{uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js → uploadReceipts-Dp1dvCjf-BQPyxtgi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js +0 -239
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js +0 -207
- package/dist/assets/AgingReportsPage-L0zQxwCf-BGxthXxn.js +0 -79
- package/dist/assets/AllUserItems-CvwaOEhu-4FgiUHmj.js +0 -192
- package/dist/assets/ApAgingDetailPage-B_78aSEv-BIkW3as9.js +0 -46
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js +0 -47
- package/dist/assets/ArAgingChart-BezVy1Sm-UplSlTlX.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js +0 -425
- package/dist/assets/BillDetailPage-CDAh8Jtl-0qBbZ__0.js +0 -266
- package/dist/assets/BillPayPromoPage-B2YcxWc9-CwLnyiow.js +0 -84
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js +0 -42
- package/dist/assets/BillingSettingsPage-BRsKYzT5-gKM6YCmc.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js +0 -1
- package/dist/assets/BusinessVerificationPage-Nw_fedst-D0V3bhmc.js +0 -138
- package/dist/assets/ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js +0 -406
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js +0 -222
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js +0 -36
- package/dist/assets/ChargeCardUtils-BRgkrCTs-DoVoCmwL.js +0 -1
- package/dist/assets/CollapsableReportTable-7iAngywY-CxWB4sRz.js +0 -2932
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js +0 -260
- package/dist/assets/CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js +0 -574
- package/dist/assets/CompleteProfile-D5e9TQgy-ppOK1lFi.js +0 -52
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +0 -1
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js +0 -202
- package/dist/assets/DashboardReportPage-DTMbYOWH-CSMllwg6.js +0 -371
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js +0 -21
- package/dist/assets/DownloadOverlay-DRcasKoB-BDQCkt6Q.js +0 -439
- package/dist/assets/EditPeoplePage-Zzo62if7-CQfgpQsa.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js +0 -865
- package/dist/assets/EntityDetailPage-CzlzOW8n-DjZ6eItY.js +0 -18
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js +0 -1650
- package/dist/assets/ExpressPayPage-DdQiFzDu-ykW984zo.js +0 -168
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js +0 -291
- package/dist/assets/HelpButton-BNMy-6ce-WFq-iELy.js +0 -28
- package/dist/assets/InsightsCardStack-CaMZiCnn-D5ut2TNQ.js +0 -79
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-D06hBumB.js +0 -12
- package/dist/assets/InvoiceUploadSection-DoR834b4-BezkawDL.js +0 -140
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js +0 -45
- package/dist/assets/LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js +0 -41
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-DP6JabBY.js +0 -98
- package/dist/assets/LowBalancePopup-CZDcHxyW-BHOAXZjC.js +0 -34
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js +0 -17
- package/dist/assets/Menu-B6iTf2H7-Cqx4dVPp.js +0 -17
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2--GwgfIws.js +0 -85
- package/dist/assets/NotificationsPage-C7lSAnUb-wDRHsOkp.js +0 -685
- package/dist/assets/PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js +0 -107
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js +0 -26
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js +0 -314
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-B_XNUegE.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js +0 -1
- package/dist/assets/ReportsPage-C7zirS74-CyyHiNy4.js +0 -121
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-_y4o463o.js +0 -290
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js +0 -37
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js +0 -37
- package/dist/assets/ScreenRoutes-en4svsq9.js +0 -206
- package/dist/assets/SetUpAccountSection-Bnbi8X23-DL-18RCf.js +0 -378
- package/dist/assets/SignInScreen-Ba17TSWH.js +0 -1
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js +0 -754
- package/dist/assets/SpendManagementSection-kucZgC-H-DLgSRXEX.js +0 -230
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js +0 -206
- package/dist/assets/StatementsPage-KnLUSJbm-DvU_Y3UP.js +0 -58
- package/dist/assets/TaskManagementPage-CPLyyK1Y-ena6uodh.js +0 -508
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js +0 -912
- package/dist/assets/TransactionList-BzJEbOV9-BQZ8x4Oq.js +0 -147
- package/dist/assets/TreasuryOverviewPage-DySunaqy-CWB-hp0S.js +0 -708
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js +0 -576
- package/dist/assets/TrendChart-B_5D-Zud-BUU2-6nI.js +0 -16
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js +0 -38
- package/dist/assets/VendorDetailPage-CEX7xMIN-Djo4PloX.js +0 -257
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js +0 -152
- package/dist/assets/VerifyDevice-C27gEWkZ-C7pLL5Wm.js +0 -112
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js +0 -300
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js +0 -14
- package/dist/assets/analyticsHelper-CVWZE356.js +0 -1
- package/dist/assets/analyticsHelper-or1KkBWk-Plh_6I_p.js +0 -1
- package/dist/assets/downloadPdf-D7p3yKmg-CYmmjPHt.js +0 -1
- package/dist/assets/redux-CEhZD0hA.js +0 -12
- package/dist/assets/toChartData-DEW0iT7T-DrkbvIyQ.js +0 -1
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import{c as lr,d as rp,r as Oh,e as fs,f as Ht,i as np,k as ip,m as ap,p as Th,t as op,v as sp,w as up,x as Zt,q as dn,z as cp,B as Nt,D as xh,E as xt,F as fp,G as Ih,J as We,K as et,y as ht,L as lp,N as hp,P as Vs,Q as dp,R as pp,S as pn,T as mp,U as It,V as wr,O as hr,W as Wt,X as $t,Y as mn,o as qt,Z as dr,$ as gn,a0 as ls,a1 as gp,a2 as hs,a3 as un,a4 as jt,a5 as vp,a6 as yp,a7 as Ah,a8 as _p,a9 as Gt,aa as Ch,ab as Dt,ac as bp,ad as wp,ae as Sp,af as Ep,ag as zs,ah as Rp,ai as Op,aj as Tp,ak as xp,al as Ip,am as Ph,an as Ap,ao as sn,ap as Gs,aq as Cp,ar as Pp,u as kn,as as kp,at as kh,au as vn,av as Lh,aw as vt,ax as ds,ay as Lp,az as qp,aA as ps,aB as qh,aC as jp,aD as jh,aE as os,aF as Dp,aG as Np,aH as $p,aI as Dh,aJ as Mp,aK as Hs,aL as Fp,aM as Up,aN as Ln,aO as Bp,aP as Vp,aQ as zp,aR as Nh,aS as Gp,aT as Ot,aU as Hp,aV as Zp,aW as $h,aX as Mh,aY as ms,aZ as gs,a_ as Wp,a$ as Kp,b0 as Yp,b1 as Jp,b2 as Xp,b3 as Qp,b4 as em,b5 as tm,b6 as rm,b7 as nm,b8 as im,b9 as Qt,ba as am,bb as om,bc as sm,bd as um,be as Fh,bf as Uh,bg as cm,bh as Bh,bi as fm,bj as lm,bk as hm,bl as dm,bm as pm,bn as mm,bo as gm,bp as vm,bq as ym,br as _m,bs as Vh,bt as bm,bu as qn,bv as wm,bw as zh,bx as vs,by as Sm,bz as Gh,bA as Em,bB as Rm,bC as Om,bD as Tm,bE as xm,bF as Im,bG as Am,bH as Cm,bI as Pm,bJ as km,bK as Lm,bL as qm,bM as jm,bN as Dm,bO as Nm,bP as Vt,bQ as $m,bR as Mm,bS as ss,bT as Fm,bU as Um,bV as Bm}from"./index-kF4u7Flm.js";import{j as J,D as yn,S as Kt}from"./mui-Ty75qFQF.js";import{b as we,n as st,c as Be,f as Hh,g as Vm}from"./vendor-Bs1fkIUX.js";import{f as zm}from"./analyticsHelper-L-FpsGLH.js";import{f as tt,u as Ae,e as Ke}from"./redux-D-TY61DZ.js";import{a as Ye,d as dt,e as Gm,N as sr,R as wt,c as Le,u as ys,b as us}from"./routing-Dk1A2KYI.js";import{B as Ve}from"./analytics-CcevxdRy.js";import{p as Re}from"./sentry-BE5FTzpq.js";import{a as Xe,b as Hm,c as _s,d as Zm,e as bs,f as ws,g as Wm,h as Km,i as Yt,j as Zh,k as cr,l as _n,m as Ym,n as Jm,o as Xm,p as Qm,q as eg,s as tg,t as rg,u as Wh,v as bn,w as pr}from"./crypto-cQYYQPTZ.js";import{r as ng}from"./lodash-B66NTFTY.js";import"./liveblocks-8ht9CoL5.js";const ig=e=>({additionalChurnFactors:e.companyHealthMetricConfigViewState.additionalChurnFactors}),Kh=lr([e=>e,(e,n)=>n,(e,n,a)=>a],(e,n,a)=>{var i,o,t,r;const s=e.companyMonthEndReportViewState.monthEndReportDataByCompanyId[n],p=Ht(e),l=og(n,a,p,e.reviewCompanyViewState,e.auditReportViewState.auditRuleGroupView),u=(i=e.companyState.companiesById[n])===null||i===void 0?void 0:i.companyInfo.name,f=s?.companyMonthEndReportData.draftUserId;return Object.assign(Object.assign({},s?.companyMonthEndReportData),{auditSummaryData:l,companyMonthEndReportTemplatesData:{fetchState:s!=null?s.companyMonthEndReportTemplatesData.fetchState:"Not-Started",error:s?.companyMonthEndReportTemplatesData.error,missingReceipts:(o=s?.companyMonthEndReportTemplatesData)===null||o===void 0?void 0:o.missingReceipts,uncategorizedExpenses:(t=s?.companyMonthEndReportTemplatesData)===null||t===void 0?void 0:t.uncategorizedExpenses,uncategorizedIncomes:(r=s?.companyMonthEndReportTemplatesData)===null||r===void 0?void 0:r.uncategorizedIncomes},reportLastSavedByUser:f!=null?fs(e.userState,f):void 0,companyName:u,improveUsingZeniGPTStatus:s?.improveUsingZeniGPTStatus,sendMonthEndReportStatus:s?.sendMonthEndReportStatus,saveMonthEndReportStatus:s?.saveMonthEndReportStatus,previewMonthEndReportStatus:s?.previewMonthEndReportStatus,fetchState:s!=null?s.fetchState:"Not-Started",error:s?.error})}),ag=lr([e=>e,(e,n)=>n,(e,n,a)=>a],(e,n,a)=>{var i,o;const{companyMonthEndReportViewState:t}=e,r=rp(n,a),s=(i=e.companyState.companiesById[n])===null||i===void 0?void 0:i.companyInfo.name;if(t.historicDatesListByCompanyId[n]==null||t.historicData[r]==null)return{historicReportSentDates:[],companyName:s,companyId:n,fetchState:"Not-Started",data:null,firstMonthOfFY:1};const p=Oh([t.historicData[r],t.historicDatesListByCompanyId[n]]),l=t.historicDatesListByCompanyId[n].reportSentDates,u=t.historicData[r].data;return{data:u,reportLastSentByUser:u?.draftUserId!=null?fs(e.userState,u.draftUserId):void 0,companyName:s,fetchState:p.fetchState,error:p.error,historicReportSentDates:l,companyId:n,firstMonthOfFY:(o=e.companyState.companiesById[n])===null||o===void 0?void 0:o.companyInfo.firstMonthOfFY}}),og=(e,n,a,i,o)=>{const t=Oh([i,o]),r=a.companies.some(s=>{const{managementInfo:p,companyInfo:l}=s.company.company,{controllerUserIds:u,reviewerUserIds:f}=p;return n!=null&&l.companyId===e?u.includes(n.userId)||f.includes(n.userId):!1});return t.fetchState==="Completed"?{auditSummary:i.reviewCompanyById[e].auditSummary,isControllerOrReviewer:r,fetchState:t.fetchState,error:t.error}:np};function sg(e,n){return n.map(i=>ug(e,i)).filter(i=>i!=null)}function ug(e,n){return ip(e.tagByID,n)}const cg=lr(e=>e.companyTaskManagerViewState,e=>e.companyState,e=>e.userState,e=>e.taskState,e=>e.tagState,(e,n,a,i,o)=>{const{taskIds:t,uiState:r,fetchState:s,error:p,totalTaskCount:l}=e,u=[];return t.forEach(f=>{const h=ap(i,f);if(h?.companyId!=null){const w=Th(n,h.companyId);if(h!=null&&w!=null){const d=fs(a,h.createdBy),v=op(a,h.assignees),m=sg(o,h.tagIds);d!=null&&u.push({task:h,company:w.company,assignees:v,createdByUser:d,tags:m})}}}),{tasksList:u,uiState:r,fetchState:s,error:p,totalTaskCount:l}}),fg=lr([e=>e,(e,n)=>n],(e,n)=>{const a=e.companyViewState.parentSubsidiaryView,i=a.subsidiaryByParentCompanyId[n]!=null?[n,...a.subsidiaryByParentCompanyId[n]]:[];return sp(e,i,a.fetchState)}),Ss=lr(e=>e.globalMerchantViewState,e=>e.globalMerchantState,(e,n)=>{const{newGlobalMerchantData:a,recommendationIds:i,recommendedNonExistingGlobalMerchants:o,fetchState:t,error:r}=e;let s=up(n,i);return s=[...s,...o],{newGlobalMerchantData:a,recommendedGlobalMerchants:s,fetchState:t,error:r,version:0}}),lg={overlayWidth:new ht(100,100,50)},{common:{strings:Zs}}=hr.getLocalizedStrings();function hg(e,n){return{headerActions:{onTabChange:a=>{const i=$t(a),o=Wt(a);We.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(wr({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&We.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(Zs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(Zs.comma)}}),e(wr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Ih(a))},onColumnSortConfigChanged:(a,i)=>{e(wr({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(xh())},onFiltersChange:a=>{e(wr({uiState:{filters:a}}))}}}}function dg(e,n){return{headerData:{selectedTabOption:It("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const pg=Ke(dg,hg)(mp);function jn({isDrawerOpen:e}){const n=Ye(),a=tt(),i=Zt(),o=dn(),{companyId:t}=dt(),[r,s]=Gm(),[p,l]=we.useState(!1),u=Ae(b=>cp(b)),f=Ae(b=>Ht(b)),{additionalChurnFactors:h}=Ae(b=>ig(b)),{selectedCompanyDetail:w,selectedCompanyId:d,localFormDataAndStatusByCompanyId:v}=u,m=Ae(b=>b.companyViewState.zeniUsers.fetchState),c=Ae(b=>b.companyHealthMetricConfigViewState);if(we.useEffect(()=>{const b=y=>y==="Not-Started"||y==="Error";u.fetchState==="Completed"?a(Nt(!1)):b(u.fetchState)&&(a(xh()),b(m)&&a(xt()),b(c.fetchState)&&a(fp()))},[u.fetchState,c.fetchState]),we.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ih(t)),w!=null&&(We.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)))},[u.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),et.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return J.jsxs(J.Fragment,{children:[e===!0||d!=null&&w!=null?J.jsx(yn,{anchor:"right",open:d!=null,PaperProps:{style:{width:lg.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Vs()),children:J.jsx(lp,{roomId:`cockpit_${d}`,autoConnect:!0,children:J.jsx(hp,{onSaveClick:()=>{d!=null&&a(pp(d))},onSaveChangesToLocalStore:b=>{u.selectedCompanyId!=null&&a(dp({companyId:u.selectedCompanyId,updatedLocalData:b}))},localData:v?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>a(Vs()),analytics:We,urlSource:p,additionalChurnFactorsOptions:h})})}):null,J.jsx(pg,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:pn.mixpanelHMUrl})]})}const Yh=(e,n)=>{const a=[...e??[]];return a.push(n),a},mg=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},gg=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Me=({state:e,element:n})=>et.isSignedIn()===!0?J.jsx(J.Fragment,{children:n}):J.jsx(sr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function vg(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/companies/:companyId",element:J.jsx(Me,{element:J.jsx(jn,{isDrawerOpen:!0})})}),J.jsx(Le,{path:"/",element:J.jsx(Me,{element:J.jsx(jn,{})})}),J.jsx(Le,{path:"/*",element:J.jsx(Me,{element:J.jsx(jn,{})})})]})}const yg={drawerLeftMargin:new ht(0,0,240)};function mr(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=dn(),r=a?.valuePx(t)??yg.drawerLeftMargin.valuePx(t),s=Zt();return J.jsx(yn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const _g=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?J.jsx(bg,{children:J.jsx(mn,{size:"ExtraLarge",start:!0})}):null,bg=st.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 ${qt.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
+
`;function wg(e,n){const{loggedInUser:a,companyId:i,isMonthEnd:o,allUsers:t,isAuditScoreCompleted:r}=n,p=dr(e).companies.find(f=>f.companyId===i),l=gn(e),u=i!=null?ls(i,e,a):null;return{allUsers:t,isAuditScoreCompleted:r,reviewCompanyView:p,loggedInUser:a,auditRuleGroups:l.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:u?.auditReportGroups??[],isControllerOrReviewer:u?.isControllerOrReviewer??!1},isMonthEnd:o,analytics:We}}function Sg(e,n){const{companyId:a,companyView:i,closeAuditScoreDrawer:o}=n;return{handleFetchAuditReportGroupView:t=>{a!=null&&e(un(a,"generate",t))},handleGenerateAuditReport:t=>{a!=null&&(e(Ah(a)),t.forEach(r=>{e(un(a,"generate",r))}))},handleRuleClick:(t,r)=>{switch(t){case"reports":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/reports`);break;case"transactions":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/transactions/${r}`);break;case"dashboard":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/dashboard/${r}`);break;default:console.error("Audit Page - Invalid entityType")}},handleCancelIconClick:()=>{e(jt()),o?o():n.navigate("../")},handleReasonAuditRule:(t,r,s,p)=>{a!=null&&e(yp(a,r,t,s,p))}}}const Eg=Ke(wg,Sg)(vp);function Jh({closeAuditScoreDrawer:e}){const n=Ye(),a=tt(),{companyId:i}=dt(),o=et.getSignedInUser(),[t,r]=we.useState(!1);if(o==null)throw Error("Can't access Audit Report page without signing in...");const s=Ae(d=>dr(d)),p=Ae(d=>Ht(d).fetchState),l=Ae(d=>Th(d.companyState,i??"")),u=Ae(d=>gn(d)),f=Ae(d=>ls(i??"",d,o)),h=Ae(d=>gp(d));we.useEffect(()=>{s.fetchState==="Completed"&&u.fetchState==="Not-Started"&&a(hs())},[s.fetchState,u.fetchState]),we.useEffect(()=>{u.fetchState==="Completed"&&p==="Completed"&&u.auditRuleGroups.forEach(d=>{if(f.auditReportGroups.find(m=>m.auditReportGroupId===d.auditRuleGroupId)==null&&i!=null){const c=s.companies.find(_=>_.companyId===i)?.auditSummary?.auditReportLastGeneratedDate!=null?"view":"generate";a(un(i,c,d.auditRuleGroupId))}})},[u,s,f,p]),we.useEffect(()=>{const d=f.auditReportGroups.filter(v=>v.fetchState==="Completed"||v.fetchState==="Error");t===!1&&d.length!==0&&d.length===u.auditRuleGroups.length&&(r(!0),a(jt(!0)))},[JSON.stringify(f.auditReportGroups.filter(d=>d.fetchState==="Completed"||d.fetchState==="Error"))]),we.useEffect(()=>{const d=f.auditReportGroups.filter(v=>v.fetchState==="In-Progress");t===!0&&d.length!==0&&d.length===u.auditRuleGroups.length&&r(!1)},[JSON.stringify(f.auditReportGroups.filter(d=>d.fetchState==="In-Progress"))]);const w=s.fetchState!=="Completed"||u.fetchState!=="Completed"||p!=="Completed"||u.auditRuleGroups.length===0;return w?J.jsx(_g,{fetchState:w?"In-Progress":"Completed"}):J.jsx(J.Fragment,{children:J.jsx(Eg,{isAuditScoreCompleted:(s.fetchState==="Completed"||s.fetchState==="Error")&&t,allUsers:h,companyId:i,isMonthEnd:!!e,navigate:n,loggedInUser:o,companyView:l,closeAuditScoreDrawer:e})})}const Rg=st.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 Og({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:a}){const{companyId:i}=dt(),o=et.getSignedInUser();if(o==null)throw Error("Can't access Customer Request page without signing in...");const t=Ae(r=>Kh(r,i,o));return we.useEffect(()=>{a()},[]),J.jsx(J.Fragment,{children:t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?J.jsx(Rg,{children:J.jsx(mn,{size:"Large",start:!0})}):J.jsx(_p,{onCloseClick:e,addCustomerRequest:n,snippets:t.companyMonthEndReportTemplatesData,bulletPoints:t.zeniRequestsData??[]})})}function Tg({onClose:e}){const n=tt(),{companyId:a}=dt(),[i,o]=we.useState(!1),{useFeatureGate:t,useDynamicConfig:r}=Gt(),{isFeatureEnabled:s}=t(Ch.enableZeniGPTFeatureForMonthEndEmail),{configValue:p}=r(Dt.monthEndPreviewEnablement);if(a==null)throw Error("Can't access Month End Email page without valid company details...");const[l,u]=we.useState(!1),[f,h]=we.useState(!1),[w,d]=we.useState(!1),[v,m]=we.useState([]),c=et.getSignedInUser();if(c==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const _=Ae(B=>Ht(B)),b=Ae(B=>dr(B)),y=Ae(B=>gn(B)),E=Ae(B=>ls(a,B,c)),T=Ae(B=>Kh(B,a,c)),R=we.useCallback((B=!1)=>{n(Ah(a)),u(!1),_.fetchState==="Completed"&&b.fetchState==="Completed"&&y.fetchState==="Completed"&&(y.auditRuleGroups.forEach($=>{n(un(a,"generate",$.auditRuleGroupId))}),n(bp(B,a)),n(wp(a)))},[a,_.fetchState,b.fetchState,y.fetchState]);we.useEffect(()=>{const B=E.auditReportGroups.filter($=>$.fetchState==="Completed"||$.fetchState==="Error");l===!1&&B.length!==0&&B.length===y.auditRuleGroups.length&&(u(!0),n(jt(!0,!0)))},[E.auditReportGroups]);const x=we.useCallback(()=>{n(Sp({companyId:a})),u(!1),e()},[e]),j=we.useCallback(()=>{R(!0)},[R]),W=we.useCallback(B=>{n(Ep(a,B))},[]),G=we.useCallback((B,$,U,z)=>{n(zs(B,a,$,!0,U,z))},[]),O=we.useCallback((B,$,U,z)=>{n(zs(B,a,$,!1,U,z))},[]),I=we.useCallback(()=>{o(!1)},[]),q=we.useCallback(B=>{n(Rp(B,a))},[]),F=we.useCallback(B=>{n(Op({files:B}))},[]),V=we.useCallback(B=>{n(Tp(B))},[]),L=we.useCallback(()=>{n(xp({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),A=we.useCallback(()=>{n(Ip())},[]),D=we.useCallback(()=>{h(!0)},[]),N=we.useCallback(()=>{d(!0)},[]),H=we.useCallback(B=>{m(B),d(!1)},[]),Z=we.useCallback(()=>{m([])},[]);return we.useEffect(()=>{T?.previewMonthEndReportStatus?.fetchState==="Completed"?o(!0):o(!1)},[T?.previewMonthEndReportStatus?.fetchState]),we.useEffect(()=>{(T?.sendMonthEndReportStatus?.fetchState==="Completed"||T?.saveMonthEndReportStatus?.fetchState==="Completed")&&x()},[T?.sendMonthEndReportStatus?.fetchState,T?.saveMonthEndReportStatus?.fetchState,x]),we.useEffect(()=>{n(Ph(!1)),n(xt()),n(hs())},[]),we.useEffect(()=>{R()},[R]),J.jsxs(J.Fragment,{children:[J.jsx(mr,{isOpen:f||w,drawerLeftMargin:f?new ht(0,0,0,0):w?new ht(0,0,300,650):new ht(0,0,300,650),onClose:()=>{f?(n(jt(!0,!0)),h(!1)):w&&d(!1)},children:J.jsx(xg,{onClick:B=>B.stopPropagation(),children:f?J.jsx(Jh,{closeAuditScoreDrawer:()=>h(!1)}):w?J.jsx(Og,{closeCustomerRequestDrawer:()=>d(!1),addCustomerRequest:H,resetCustomerRequest:Z}):null})}),J.jsx(Ap,{companyId:a,enableZeniGPTFeature:s,enableSendingMonthEndEmail:p.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(p.companiesByPassPreviewMonthEndReport)?p.companiesByPassPreviewMonthEndReport.includes(a):!1,monthEndReportView:T,previewMode:i,customerRequestData:v,onNavigateBack:x,onRefresh:j,sendMonthEndReport:W,previewMonthEndReport:G,saveMonthEndReport:O,onEditClick:I,improveUsingZeniGPTClick:q,onRemoveFileAttachment:V,onUpdateFileAttachment:F,onOpenFileAttachmentSnackBar:L,onCloseFileAttachmentSnackBar:A,onClickAuditScore:D,onClickCustomerRequest:N,isAuditScoreLoadingCompleted:l&&(b.fetchState==="Completed"||b.fetchState==="Error")})]})}const xg=st(Kt)`
|
|
19
|
+
display: flex;
|
|
20
|
+
min-height: 100%;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
`;function Ig(){const e=tt(),n=Ye(),{companyId:a,reportDate:i}=dt(),o=Ae(p=>Ht(p).fetchState);if(a==null||i==null)throw Error("Can't access historic Email without company id and reportDate...");const t=Ae(p=>ag(p,a,sn(i))),r=we.useCallback(p=>{n(`../../management/month-end-report-history/company/${a}/${p.format(hr.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(Gs(a,p))},[a]),s=we.useCallback(()=>{o==="Completed"&&t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&(e(Cp(a)),e(Gs(a,sn(i))))},[a,o,i,t.fetchState]);return we.useEffect(()=>{e(Ph(!1))},[]),we.useEffect(()=>{s()},[s]),J.jsx(Pp,{monthEndReportHistoricData:t,reportSentDate:sn(i),onDateChange:r,onNavigateBack:()=>n("../../"),onRefresh:s})}function Ag({isOpen:e,emailHistoryMode:n,onClose:a}){return n?J.jsx(mr,{drawerLeftMargin:new ht(kn[0],kn[0],kn[0]),isOpen:e,onClose:a,children:J.jsx(Ig,{})}):J.jsx(kp,{isOpen:e,children:J.jsx(Tg,{onClose:a})})}const{common:{strings:Dn},dateFormat:Cg}=hr.getLocalizedStrings();function Pg(e,n){const{loggedInUserRole:a,loggedInUser:i,navigate:o}=n;return{headerActions:{onTabChange:t=>{const r=$t(t),s=Wt(t);We.trackCockpitTabClicked(s),o(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(t,r)=>{e(vt({filterText:r}))},onFiltersChange:(t,r)=>{e(vt({filters:r}))}}},managementPageActions:{onColumnSortConfigChanged:(t,r)=>{e(vt({sortKey:t,sortOrder:r}))},changeHandlers:(t,r)=>{const s=qg(r);Object.keys(s).length>0&&e(ds(t,s))},onScroll:t=>{e(vt({scrollYOffset:t}))},onViewDetailsLinkClicked:t=>{o(`./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=>{o(`/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&&i.userEmail!=null&&We.trackCockpitTaskCardClicked({tenantName:t.company.company.companyInfo.name,tenantId:t.company.company.companyInfo.tenantId,user:{name:i.firstName!=null?i.firstName.concat(Dn.space,i.lastName??Dn.empty).trim():i.lastName??Dn.empty,email:i.userEmail,role:a?.userRoles??[]},controllerEmails:r}),window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(t,r)=>{e(vt({filters:r}))},onCockpitReloadData:t=>{t==="management"&&e(vn())},showMonthEndReportHistoricData:(t,r)=>{o(`/management/month-end-report-history/company/${t}/${r.startOf("month").format(Cg.analytics.YYYYDashMMDashDDFormat)}`)}}}}function kg(e,n){return{headerData:{selectedTabOption:It("management")},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,managementView:n.managementView}}}const Lg=Ke(kg,Pg)(Lh);function Sr({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:n=!1}){const a=Ye(),i=tt(),{useDynamicConfig:o}=Gt(),{configValue:t}=o(Dt.monthEndInsightsEnablement),{configValue:r}=o(Dt.expenseAutomationEnablement),s=et.getSignedInUser();if(s==null)throw Error("Can't access Management page without signing in...");const p=Ae(h=>Ht(h)),l=Ae(h=>kh(h.userRoleState,s.userId)),u=Ae(h=>h.companyViewState.zeniUsers.fetchState);we.useEffect(()=>{p.fetchState==="Completed"?i(Nt(!1)):(p.fetchState==="Not-Started"||p.fetchState==="Error")&&(i(vn()),(u==="Not-Started"||u==="Error")&&i(xt()))},[p.fetchState]);const f=()=>{a(-1)};return J.jsxs(J.Fragment,{children:[e===!0?J.jsx(Ag,{isOpen:e===!0,emailHistoryMode:n===!0,onClose:f}):null,J.jsx(Lg,{loggedInUser:s,loggedInUserRole:l,managementView:p,navigate:a,companiesExcludedFromMonthEndReport:t.companiesExcludedFromMonthEndReport!=null?t.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:r.expenseAutomationEnabledCompanies!=null&&Array.isArray(r.expenseAutomationEnabledCompanies)?r.expenseAutomationEnabledCompanies:[]})]})}const qg=e=>{const{status:n,group:a,taxStatus:i,reportSent:o,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:a?{companyGroupId:a?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:o?{lastReportSentDate:o?.date,lastReportSentBusinessDay:o?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function jg(e,n){return{onGoBack:()=>{n.navigate(-1)},onGoHome:()=>{n.navigate("/")}}}const Dg=Ke(null,jg)(Lp);function Es(){const e=Ye();return J.jsx(Dg,{navigate:e})}const Ng=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),{dateFormat:$g}=hr.getLocalizedStrings();function Mg(e,n){const{navigate:a}=n;return{headerActions:{onNavigateBack:()=>{n.navigate("../")},filterActions:{onFilterTextChanged:(i,o)=>{i==="management"&&e(vt({filterText:o}))},onFiltersChange:(i,o)=>{i==="management"&&e(vt({filters:o}))}}},managementPageActions:{onColumnSortConfigChanged:(i,o)=>{e(vt({sortKey:i,sortOrder:o}))},changeHandlers:(i,o)=>{const t=Vg(o);Object.keys(t).length>0&&e(ds(i,t))},onScroll:i=>{e(vt({scrollYOffset:i}))},onCompanyNameClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(i,o)=>{i==="management"&&e(vt({filters:o}))},onMonthEndReportPageClick:i=>{a(`/management/month-end-report/company/${i.company.company.companyInfo.companyId}`)},onCockpitReloadData:i=>{i==="management"&&e(vn())},showMonthEndReportHistoricData:(i,o)=>{a(`/management/month-end-report-history/company/${i}/${o.startOf("month").format($g.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Fg(e,n){return{headerData:{selectedTabOption:It("management"),showBackButton:!0},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,showDetailsPageLink:!1,managementView:{...n.managementView,uiState:{...n.managementView.uiState,scrollYOffset:0}}}}}const Ug=Ke(Fg,Mg)(Lh);function Bg(){const e=Ye(),[n,a]=we.useState(!1),i=tt(),{parentId:o}=dt(),{useDynamicConfig:t}=Gt(),{configValue:r}=t(Dt.monthEndInsightsEnablement),{configValue:s}=t(Dt.expenseAutomationEnablement),p=o!=null?Ae(f=>fg(f,o)):void 0;we.useEffect(()=>{n===!1&&o!=null&&(a(!0),i(qp(!1,o)))},[n]);const l=et.getSignedInUser();if(l==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const u=Ae(f=>kh(f.userRoleState,l.userId));return o==null?J.jsx(Es,{}):p!=null?J.jsx(Ug,{loggedInUser:l,loggedInUserRole:u,managementView:p,navigate:e,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]}):null}const Vg=e=>{const{status:n,group:a,taxStatus:i,reportSent:o,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:a?{companyGroupId:a?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:o?{lastReportSentDate:o?.date,lastReportSentBusinessDay:o?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function zg(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/",element:J.jsx(Me,{element:J.jsx(Sr,{})})}),J.jsx(Le,{path:"/parent/:parentId",element:J.jsx(Me,{element:J.jsx(Bg,{})})}),J.jsx(Le,{path:"/month-end-report/company/:companyId",element:J.jsx(Me,{element:J.jsx(Sr,{isMonthEndEmailDrawerOpen:!0})})}),J.jsx(Le,{path:"/month-end-report-history/company/:companyId/:reportDate",element:J.jsx(Me,{element:J.jsx(Sr,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),J.jsx(Le,{path:"/*",element:J.jsx(Me,{element:J.jsx(Sr,{})})})]})}var Nn={exports:{}},Ws;function Gg(){return Ws||(Ws=1,function(e){(function(n){function a(o){return typeof o=="function"?o:typeof Ve=="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 Ve(r,"base64").toString("binary")}:typeof n.base64js=="object"?function(r){var s=n.base64js.b64ToByteArray(r);return Array.prototype.map.call(s,function(p){return String.fromCharCode(p)}).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 i=a(n.atob);n.atob=i,e&&e.exports&&(e.exports=i)})(window)}(Nn)),Nn.exports}var Er={exports:{}},$n={exports:{}},Mn={},Ks;function Xh(){if(Ks)return Mn;Ks=1;function e(_){"@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(_)}function n(_,b,y){return Object.defineProperty(_,"prototype",{writable:!1}),_}function a(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function i(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),b&&o(_,b)}function o(_,b){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E},o(_,b)}function t(_){var b=p();return function(){var E=l(_),T;if(b){var R=l(this).constructor;T=Reflect.construct(E,arguments,R)}else T=E.apply(this,arguments);return r(this,T)}}function r(_,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(_)}function s(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}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 l(_){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},l(_)}var u={},f,h;function w(_,b,y){y||(y=Error);function E(R,x,j){return typeof b=="string"?b:b(R,x,j)}var T=function(R){i(j,R);var x=t(j);function j(W,G,O){var I;return a(this,j),I=x.call(this,E(W,G,O)),I.code=_,I}return n(j)}(y);u[_]=T}function d(_,b){if(Array.isArray(_)){var y=_.length;return _=_.map(function(E){return String(E)}),y>2?"one of ".concat(b," ").concat(_.slice(0,y-1).join(", "),", or ")+_[y-1]:y===2?"one of ".concat(b," ").concat(_[0]," or ").concat(_[1]):"of ".concat(b," ").concat(_[0])}else return"of ".concat(b," ").concat(String(_))}function v(_,b,y){return _.substr(0,b.length)===b}function m(_,b,y){return(y===void 0||y>_.length)&&(y=_.length),_.substring(y-b.length,y)===b}function c(_,b,y){return typeof y!="number"&&(y=0),y+b.length>_.length?!1:_.indexOf(b,y)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(_,b,y){f===void 0&&(f=fr()),f(typeof _=="string","'name' must be a string");var E;typeof b=="string"&&v(b,"not ")?(E="must not be",b=b.replace(/^not /,"")):E="must be";var T;if(m(_," argument"))T="The ".concat(_," ").concat(E," ").concat(d(b,"type"));else{var R=c(_,".")?"property":"argument";T='The "'.concat(_,'" ').concat(R," ").concat(E," ").concat(d(b,"type"))}return T+=". Received type ".concat(e(y)),T},TypeError),w("ERR_INVALID_ARG_VALUE",function(_,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";h===void 0&&(h=Xe());var E=h.inspect(b);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(y,". Received ").concat(E)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(_,b,y){var E;return y&&y.constructor&&y.constructor.name?E="instance of ".concat(y.constructor.name):E="type ".concat(e(y)),"Expected ".concat(_,' to be returned from the "').concat(b,'"')+" function but got ".concat(E,".")},TypeError),w("ERR_MISSING_ARGS",function(){for(var _=arguments.length,b=new Array(_),y=0;y<_;y++)b[y]=arguments[y];f===void 0&&(f=fr()),f(b.length>0,"At least one arg needs to be specified");var E="The ",T=b.length;switch(b=b.map(function(R){return'"'.concat(R,'"')}),T){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,T-1).join(", "),E+=", and ".concat(b[T-1]," arguments");break}return"".concat(E," must be specified")},TypeError),Mn.codes=u,Mn}var Fn,Ys;function Hg(){if(Ys)return Fn;Ys=1;function e(D,N){var H=Object.keys(D);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(D);N&&(Z=Z.filter(function(B){return Object.getOwnPropertyDescriptor(D,B).enumerable})),H.push.apply(H,Z)}return H}function n(D){for(var N=1;N<arguments.length;N++){var H=arguments[N]!=null?arguments[N]:{};N%2?e(Object(H),!0).forEach(function(Z){a(D,Z,H[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(Z){Object.defineProperty(D,Z,Object.getOwnPropertyDescriptor(H,Z))})}return D}function a(D,N,H){return N=r(N),N in D?Object.defineProperty(D,N,{value:H,enumerable:!0,configurable:!0,writable:!0}):D[N]=H,D}function i(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}function o(D,N){for(var H=0;H<N.length;H++){var Z=N[H];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(D,r(Z.key),Z)}}function t(D,N,H){return N&&o(D.prototype,N),Object.defineProperty(D,"prototype",{writable:!1}),D}function r(D){var N=s(D,"string");return _(N)==="symbol"?N:String(N)}function s(D,N){if(_(D)!=="object"||D===null)return D;var H=D[Symbol.toPrimitive];if(H!==void 0){var Z=H.call(D,N);if(_(Z)!=="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(D)}function p(D,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(N&&N.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),N&&m(D,N)}function l(D){var N=d();return function(){var Z=c(D),B;if(N){var $=c(this).constructor;B=Reflect.construct(Z,arguments,$)}else B=Z.apply(this,arguments);return u(this,B)}}function u(D,N){if(N&&(_(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(D)}function f(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function h(D){var N=typeof Map=="function"?new Map:void 0;return h=function(Z){if(Z===null||!v(Z))return Z;if(typeof Z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(Z))return N.get(Z);N.set(Z,B)}function B(){return w(Z,arguments,c(this).constructor)}return B.prototype=Object.create(Z.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),m(B,Z)},h(D)}function w(D,N,H){return d()?w=Reflect.construct.bind():w=function(B,$,U){var z=[null];z.push.apply(z,$);var re=Function.bind.apply(B,z),te=new re;return U&&m(te,U.prototype),te},w.apply(null,arguments)}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 v(D){return Function.toString.call(D).indexOf("[native code]")!==-1}function m(D,N){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,B){return Z.__proto__=B,Z},m(D,N)}function c(D){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},c(D)}function _(D){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},_(D)}var b=Xe(),y=b.inspect,E=Xh(),T=E.codes.ERR_INVALID_ARG_TYPE;function R(D,N,H){return(H===void 0||H>D.length)&&(H=D.length),D.substring(H-N.length,H)===N}function x(D,N){if(N=Math.floor(N),D.length==0||N==0)return"";var H=D.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)D+=D,N--;return D+=D.substring(0,H-D.length),D}var j="",W="",G="",O="",I={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:"},q=10;function F(D){var N=Object.keys(D),H=Object.create(Object.getPrototypeOf(D));return N.forEach(function(Z){H[Z]=D[Z]}),Object.defineProperty(H,"message",{value:D.message}),H}function V(D){return y(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function L(D,N,H){var Z="",B="",$=0,U="",z=!1,re=V(D),te=re.split(`
|
|
26
|
+
`),se=V(N).split(`
|
|
27
|
+
`),fe=0,ve="";if(H==="strictEqual"&&_(D)==="object"&&_(N)==="object"&&D!==null&&N!==null&&(H="strictEqualObject"),te.length===1&&se.length===1&&te[0]!==se[0]){var ye=te[0].length+se[0].length;if(ye<=q){if((_(D)!=="object"||D===null)&&(_(N)!=="object"||N===null)&&(D!==0||N!==0))return"".concat(I[H],`
|
|
28
|
+
|
|
29
|
+
`)+"".concat(te[0]," !== ").concat(se[0],`
|
|
30
|
+
`)}else if(H!=="strictEqualObject"){var Ee=Re.stderr&&Re.stderr.isTTY?Re.stderr.columns:80;if(ye<Ee){for(;te[0][fe]===se[0][fe];)fe++;fe>2&&(ve=`
|
|
31
|
+
`.concat(x(" ",fe),"^"),fe=0)}}}for(var xe=te[te.length-1],ke=se[se.length-1];xe===ke&&(fe++<2?U=`
|
|
32
|
+
`.concat(xe).concat(U):Z=xe,te.pop(),se.pop(),!(te.length===0||se.length===0));)xe=te[te.length-1],ke=se[se.length-1];var qe=Math.max(te.length,se.length);if(qe===0){var Ie=re.split(`
|
|
33
|
+
`);if(Ie.length>30)for(Ie[26]="".concat(j,"...").concat(O);Ie.length>27;)Ie.pop();return"".concat(I.notIdentical,`
|
|
34
|
+
|
|
35
|
+
`).concat(Ie.join(`
|
|
36
|
+
`),`
|
|
37
|
+
`)}fe>3&&(U=`
|
|
38
|
+
`.concat(j,"...").concat(O).concat(U),z=!0),Z!==""&&(U=`
|
|
39
|
+
`.concat(Z).concat(U),Z="");var Oe=0,Fe=I[H]+`
|
|
40
|
+
`.concat(W,"+ actual").concat(O," ").concat(G,"- expected").concat(O),Je=" ".concat(j,"...").concat(O," Lines skipped");for(fe=0;fe<qe;fe++){var Ne=fe-$;if(te.length<fe+1)Ne>1&&fe>2&&(Ne>4?(B+=`
|
|
41
|
+
`.concat(j,"...").concat(O),z=!0):Ne>3&&(B+=`
|
|
42
|
+
`.concat(se[fe-2]),Oe++),B+=`
|
|
43
|
+
`.concat(se[fe-1]),Oe++),$=fe,Z+=`
|
|
44
|
+
`.concat(G,"-").concat(O," ").concat(se[fe]),Oe++;else if(se.length<fe+1)Ne>1&&fe>2&&(Ne>4?(B+=`
|
|
45
|
+
`.concat(j,"...").concat(O),z=!0):Ne>3&&(B+=`
|
|
46
|
+
`.concat(te[fe-2]),Oe++),B+=`
|
|
47
|
+
`.concat(te[fe-1]),Oe++),$=fe,B+=`
|
|
48
|
+
`.concat(W,"+").concat(O," ").concat(te[fe]),Oe++;else{var ee=se[fe],de=te[fe],P=de!==ee&&(!R(de,",")||de.slice(0,-1)!==ee);P&&R(ee,",")&&ee.slice(0,-1)===de&&(P=!1,de+=","),P?(Ne>1&&fe>2&&(Ne>4?(B+=`
|
|
49
|
+
`.concat(j,"...").concat(O),z=!0):Ne>3&&(B+=`
|
|
50
|
+
`.concat(te[fe-2]),Oe++),B+=`
|
|
51
|
+
`.concat(te[fe-1]),Oe++),$=fe,B+=`
|
|
52
|
+
`.concat(W,"+").concat(O," ").concat(de),Z+=`
|
|
53
|
+
`.concat(G,"-").concat(O," ").concat(ee),Oe+=2):(B+=Z,Z="",(Ne===1||fe===0)&&(B+=`
|
|
54
|
+
`.concat(de),Oe++))}if(Oe>20&&fe<qe-2)return"".concat(Fe).concat(Je,`
|
|
55
|
+
`).concat(B,`
|
|
56
|
+
`).concat(j,"...").concat(O).concat(Z,`
|
|
57
|
+
`)+"".concat(j,"...").concat(O)}return"".concat(Fe).concat(z?Je:"",`
|
|
58
|
+
`).concat(B).concat(Z).concat(U).concat(ve)}var A=function(D,N){p(Z,D);var H=l(Z);function Z(B){var $;if(i(this,Z),_(B)!=="object"||B===null)throw new T("options","Object",B);var U=B.message,z=B.operator,re=B.stackStartFn,te=B.actual,se=B.expected,fe=Error.stackTraceLimit;if(Error.stackTraceLimit=0,U!=null)$=H.call(this,String(U));else if(Re.stderr&&Re.stderr.isTTY&&(Re.stderr&&Re.stderr.getColorDepth&&Re.stderr.getColorDepth()!==1?(j="\x1B[34m",W="\x1B[32m",O="\x1B[39m",G="\x1B[31m"):(j="",W="",O="",G="")),_(te)==="object"&&te!==null&&_(se)==="object"&&se!==null&&"stack"in te&&te instanceof Error&&"stack"in se&&se instanceof Error&&(te=F(te),se=F(se)),z==="deepStrictEqual"||z==="strictEqual")$=H.call(this,L(te,se,z));else if(z==="notDeepStrictEqual"||z==="notStrictEqual"){var ve=I[z],ye=V(te).split(`
|
|
59
|
+
`);if(z==="notStrictEqual"&&_(te)==="object"&&te!==null&&(ve=I.notStrictEqualObject),ye.length>30)for(ye[26]="".concat(j,"...").concat(O);ye.length>27;)ye.pop();ye.length===1?$=H.call(this,"".concat(ve," ").concat(ye[0])):$=H.call(this,"".concat(ve,`
|
|
60
|
+
|
|
61
|
+
`).concat(ye.join(`
|
|
62
|
+
`),`
|
|
63
|
+
`))}else{var Ee=V(te),xe="",ke=I[z];z==="notDeepEqual"||z==="notEqual"?(Ee="".concat(I[z],`
|
|
64
|
+
|
|
65
|
+
`).concat(Ee),Ee.length>1024&&(Ee="".concat(Ee.slice(0,1021),"..."))):(xe="".concat(V(se)),Ee.length>512&&(Ee="".concat(Ee.slice(0,509),"...")),xe.length>512&&(xe="".concat(xe.slice(0,509),"...")),z==="deepEqual"||z==="equal"?Ee="".concat(ke,`
|
|
66
|
+
|
|
67
|
+
`).concat(Ee,`
|
|
68
|
+
|
|
69
|
+
should equal
|
|
70
|
+
|
|
71
|
+
`):xe=" ".concat(z," ").concat(xe)),$=H.call(this,"".concat(Ee).concat(xe))}return Error.stackTraceLimit=fe,$.generatedMessage=!U,Object.defineProperty(f($),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),$.code="ERR_ASSERTION",$.actual=te,$.expected=se,$.operator=z,Error.captureStackTrace&&Error.captureStackTrace(f($),re),$.stack,$.name="AssertionError",u($)}return t(Z,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:N,value:function($,U){return y(this,n(n({},U),{},{customInspect:!1,depth:0}))}}]),Z}(h(Error),y.custom);return Fn=A,Fn}var Un,Js;function Qh(){if(Js)return Un;Js=1;var e=Object.prototype.toString;return Un=function(a){var i=e.call(a),o=i==="[object Arguments]";return o||(o=i!=="[object Array]"&&a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&e.call(a.callee)==="[object Function]"),o},Un}var Bn,Xs;function Zg(){if(Xs)return Bn;Xs=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Qh(),o=Object.prototype.propertyIsEnumerable,t=!o.call({toString:null},"toString"),r=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(h){var w=h.constructor;return w&&w.prototype===h},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},u=function(){if(typeof window>"u")return!1;for(var h in window)try{if(!l["$"+h]&&n.call(window,h)&&window[h]!==null&&typeof window[h]=="object")try{p(window[h])}catch{return!0}}catch{return!0}return!1}(),f=function(h){if(typeof window>"u"||!u)return p(h);try{return p(h)}catch{return!1}};e=function(w){var d=w!==null&&typeof w=="object",v=a.call(w)==="[object Function]",m=i(w),c=d&&a.call(w)==="[object String]",_=[];if(!d&&!v&&!m)throw new TypeError("Object.keys called on a non-object");var b=r&&v;if(c&&w.length>0&&!n.call(w,0))for(var y=0;y<w.length;++y)_.push(String(y));if(m&&w.length>0)for(var E=0;E<w.length;++E)_.push(String(E));else for(var T in w)!(b&&T==="prototype")&&n.call(w,T)&&_.push(String(T));if(t)for(var R=f(w),x=0;x<s.length;++x)!(R&&s[x]==="constructor")&&n.call(w,s[x])&&_.push(s[x]);return _}}return Bn=e,Bn}var Vn,Qs;function ed(){if(Qs)return Vn;Qs=1;var e=Array.prototype.slice,n=Qh(),a=Object.keys,i=a?function(r){return a(r)}:Zg(),o=Object.keys;return i.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(p){return n(p)?o(e.call(p)):o(p)})}else Object.keys=i;return Object.keys||i},Vn=i,Vn}var zn,eu;function Wg(){if(eu)return zn;eu=1;var e=ed(),n=Hm()(),a=_s(),i=Zm(),o=a("Array.prototype.push"),t=a("Object.prototype.propertyIsEnumerable"),r=n?i.getOwnPropertySymbols:null;return zn=function(p,l){if(p==null)throw new TypeError("target must be an object");var u=i(p);if(arguments.length===1)return u;for(var f=1;f<arguments.length;++f){var h=i(arguments[f]),w=e(h),d=n&&(i.getOwnPropertySymbols||r);if(d)for(var v=d(h),m=0;m<v.length;++m){var c=v[m];t(h,c)&&o(w,c)}for(var _=0;_<w.length;++_){var b=w[_];if(t(h,b)){var y=h[b];u[b]=y}}}return u},zn}var Gn,tu;function Kg(){if(tu)return Gn;tu=1;var e=Wg(),n=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",o=i.split(""),t={},r=0;r<o.length;++r)t[o[r]]=o[r];var s=Object.assign({},t),p="";for(var l in s)p+=l;return i!==p},a=function(){if(!Object.assign||!Object.preventExtensions)return!1;var i=Object.preventExtensions({1:2});try{Object.assign(i,"xy")}catch{return i[1]==="y"}return!1};return Gn=function(){return!Object.assign||n()||a()?e:Object.assign},Gn}var Hn,ru;function td(){if(ru)return Hn;ru=1;var e=function(n){return n!==n};return Hn=function(a,i){return a===0&&i===0?1/a===1/i:!!(a===i||e(a)&&e(i))},Hn}var Zn,nu;function Rs(){if(nu)return Zn;nu=1;var e=td();return Zn=function(){return typeof Object.is=="function"?Object.is:e},Zn}var Wn,iu;function Yg(){if(iu)return Wn;iu=1;var e=ws(),n=bs(),a=n(e("String.prototype.indexOf"));return Wn=function(o,t){var r=e(o,!!t);return typeof r=="function"&&a(o,".prototype.")>-1?n(r):r},Wn}var Kn,au;function wn(){if(au)return Kn;au=1;var e=ed(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,i=Array.prototype.concat,o=Wm(),t=function(l){return typeof l=="function"&&a.call(l)==="[object Function]"},r=Km()(),s=function(l,u,f,h){if(u in l){if(h===!0){if(l[u]===f)return}else if(!t(h)||!h())return}r?o(l,u,f,!0):o(l,u,f)},p=function(l,u){var f=arguments.length>2?arguments[2]:{},h=e(u);n&&(h=i.call(h,Object.getOwnPropertySymbols(u)));for(var w=0;w<h.length;w+=1)s(l,h[w],u[h[w]],f[h[w]])};return p.supportsDescriptors=!!r,Kn=p,Kn}var Yn,ou;function Jg(){if(ou)return Yn;ou=1;var e=Rs(),n=wn();return Yn=function(){var i=e();return n(Object,{is:i},{is:function(){return Object.is!==i}}),i},Yn}var Jn,su;function Xg(){if(su)return Jn;su=1;var e=wn(),n=bs(),a=td(),i=Rs(),o=Jg(),t=n(i(),Object);return e(t,{getPolyfill:i,implementation:a,shim:o}),Jn=t,Jn}var Xn,uu;function rd(){return uu||(uu=1,Xn=function(n){return n!==n}),Xn}var Qn,cu;function nd(){if(cu)return Qn;cu=1;var e=rd();return Qn=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Qn}var ei,fu;function Qg(){if(fu)return ei;fu=1;var e=wn(),n=nd();return ei=function(){var i=n();return e(Number,{isNaN:i},{isNaN:function(){return Number.isNaN!==i}}),i},ei}var ti,lu;function ev(){if(lu)return ti;lu=1;var e=bs(),n=wn(),a=rd(),i=nd(),o=Qg(),t=e(i(),Number);return n(t,{getPolyfill:i,implementation:a,shim:o}),ti=t,ti}var ri,hu;function tv(){if(hu)return ri;hu=1;function e(P,X){return t(P)||o(P,X)||a(P,X)||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 a(P,X){if(P){if(typeof P=="string")return i(P,X);var ce=Object.prototype.toString.call(P).slice(8,-1);if(ce==="Object"&&P.constructor&&(ce=P.constructor.name),ce==="Map"||ce==="Set")return Array.from(P);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return i(P,X)}}function i(P,X){(X==null||X>P.length)&&(X=P.length);for(var ce=0,be=new Array(X);ce<X;ce++)be[ce]=P[ce];return be}function o(P,X){var ce=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(ce!=null){var be,pe,le,Te,k=[],oe=!0,ue=!1;try{if(le=(ce=ce.call(P)).next,X!==0)for(;!(oe=(be=le.call(ce)).done)&&(k.push(be.value),k.length!==X);oe=!0);}catch(he){ue=!0,pe=he}finally{try{if(!oe&&ce.return!=null&&(Te=ce.return(),Object(Te)!==Te))return}finally{if(ue)throw pe}}return k}}function t(P){if(Array.isArray(P))return P}function r(P){"@babel/helpers - typeof";return r=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},r(P)}var s=/a/g.flags!==void 0,p=function(X){var ce=[];return X.forEach(function(be){return ce.push(be)}),ce},l=function(X){var ce=[];return X.forEach(function(be,pe){return ce.push([pe,be])}),ce},u=Object.is?Object.is:Xg(),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:ev();function w(P){return P.call.bind(P)}var d=w(Object.prototype.hasOwnProperty),v=w(Object.prototype.propertyIsEnumerable),m=w(Object.prototype.toString),c=Xe().types,_=c.isAnyArrayBuffer,b=c.isArrayBufferView,y=c.isDate,E=c.isMap,T=c.isRegExp,R=c.isSet,x=c.isNativeError,j=c.isBoxedPrimitive,W=c.isNumberObject,G=c.isStringObject,O=c.isBooleanObject,I=c.isBigIntObject,q=c.isSymbolObject,F=c.isFloat32Array,V=c.isFloat64Array;function L(P){if(P.length===0||P.length>10)return!0;for(var X=0;X<P.length;X++){var ce=P.charCodeAt(X);if(ce<48||ce>57)return!0}return P.length===10&&P>=Math.pow(2,32)}function A(P){return Object.keys(P).filter(L).concat(f(P).filter(Object.prototype.propertyIsEnumerable.bind(P)))}/*!
|
|
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 D(P,X){if(P===X)return 0;for(var ce=P.length,be=X.length,pe=0,le=Math.min(ce,be);pe<le;++pe)if(P[pe]!==X[pe]){ce=P[pe],be=X[pe];break}return ce<be?-1:be<ce?1:0}var N=!0,H=!1,Z=0,B=1,$=2,U=3;function z(P,X){return s?P.source===X.source&&P.flags===X.flags:RegExp.prototype.toString.call(P)===RegExp.prototype.toString.call(X)}function re(P,X){if(P.byteLength!==X.byteLength)return!1;for(var ce=0;ce<P.byteLength;ce++)if(P[ce]!==X[ce])return!1;return!0}function te(P,X){return P.byteLength!==X.byteLength?!1:D(new Uint8Array(P.buffer,P.byteOffset,P.byteLength),new Uint8Array(X.buffer,X.byteOffset,X.byteLength))===0}function se(P,X){return P.byteLength===X.byteLength&&D(new Uint8Array(P),new Uint8Array(X))===0}function fe(P,X){return W(P)?W(X)&&u(Number.prototype.valueOf.call(P),Number.prototype.valueOf.call(X)):G(P)?G(X)&&String.prototype.valueOf.call(P)===String.prototype.valueOf.call(X):O(P)?O(X)&&Boolean.prototype.valueOf.call(P)===Boolean.prototype.valueOf.call(X):I(P)?I(X)&&BigInt.prototype.valueOf.call(P)===BigInt.prototype.valueOf.call(X):q(X)&&Symbol.prototype.valueOf.call(P)===Symbol.prototype.valueOf.call(X)}function ve(P,X,ce,be){if(P===X)return P!==0?!0:ce?u(P,X):!0;if(ce){if(r(P)!=="object")return typeof P=="number"&&h(P)&&h(X);if(r(X)!=="object"||P===null||X===null||Object.getPrototypeOf(P)!==Object.getPrototypeOf(X))return!1}else{if(P===null||r(P)!=="object")return X===null||r(X)!=="object"?P==X:!1;if(X===null||r(X)!=="object")return!1}var pe=m(P),le=m(X);if(pe!==le)return!1;if(Array.isArray(P)){if(P.length!==X.length)return!1;var Te=A(P),k=A(X);return Te.length!==k.length?!1:Ee(P,X,ce,be,B,Te)}if(pe==="[object Object]"&&(!E(P)&&E(X)||!R(P)&&R(X)))return!1;if(y(P)){if(!y(X)||Date.prototype.getTime.call(P)!==Date.prototype.getTime.call(X))return!1}else if(T(P)){if(!T(X)||!z(P,X))return!1}else if(x(P)||P instanceof Error){if(P.message!==X.message||P.name!==X.name)return!1}else if(b(P)){if(!ce&&(F(P)||V(P))){if(!re(P,X))return!1}else if(!te(P,X))return!1;var oe=A(P),ue=A(X);return oe.length!==ue.length?!1:Ee(P,X,ce,be,Z,oe)}else{if(R(P))return!R(X)||P.size!==X.size?!1:Ee(P,X,ce,be,$);if(E(P))return!E(X)||P.size!==X.size?!1:Ee(P,X,ce,be,U);if(_(P)){if(!se(P,X))return!1}else if(j(P)&&!fe(P,X))return!1}return Ee(P,X,ce,be,Z)}function ye(P,X){return X.filter(function(ce){return v(P,ce)})}function Ee(P,X,ce,be,pe,le){if(arguments.length===5){le=Object.keys(P);var Te=Object.keys(X);if(le.length!==Te.length)return!1}for(var k=0;k<le.length;k++)if(!d(X,le[k]))return!1;if(ce&&arguments.length===5){var oe=f(P);if(oe.length!==0){var ue=0;for(k=0;k<oe.length;k++){var he=oe[k];if(v(P,he)){if(!v(X,he))return!1;le.push(he),ue++}else if(v(X,he))return!1}var Y=f(X);if(oe.length!==Y.length&&ye(X,Y).length!==ue)return!1}else{var M=f(X);if(M.length!==0&&ye(X,M).length!==0)return!1}}if(le.length===0&&(pe===Z||pe===B&&P.length===0||P.size===0))return!0;if(be===void 0)be={val1:new Map,val2:new Map,position:0};else{var S=be.val1.get(P);if(S!==void 0){var ie=be.val2.get(X);if(ie!==void 0)return S===ie}be.position++}be.val1.set(P,be.position),be.val2.set(X,be.position);var ge=Ne(P,X,ce,le,be,pe);return be.val1.delete(P),be.val2.delete(X),ge}function xe(P,X,ce,be){for(var pe=p(P),le=0;le<pe.length;le++){var Te=pe[le];if(ve(X,Te,ce,be))return P.delete(Te),!0}return!1}function ke(P){switch(r(P)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":P=+P;case"number":if(h(P))return!1}return!0}function qe(P,X,ce){var be=ke(ce);return be??(X.has(be)&&!P.has(be))}function Ie(P,X,ce,be,pe){var le=ke(ce);if(le!=null)return le;var Te=X.get(le);return Te===void 0&&!X.has(le)||!ve(be,Te,!1,pe)?!1:!P.has(le)&&ve(be,Te,!1,pe)}function Oe(P,X,ce,be){for(var pe=null,le=p(P),Te=0;Te<le.length;Te++){var k=le[Te];if(r(k)==="object"&&k!==null)pe===null&&(pe=new Set),pe.add(k);else if(!X.has(k)){if(ce||!qe(P,X,k))return!1;pe===null&&(pe=new Set),pe.add(k)}}if(pe!==null){for(var oe=p(X),ue=0;ue<oe.length;ue++){var he=oe[ue];if(r(he)==="object"&&he!==null){if(!xe(pe,he,ce,be))return!1}else if(!ce&&!P.has(he)&&!xe(pe,he,ce,be))return!1}return pe.size===0}return!0}function Fe(P,X,ce,be,pe,le){for(var Te=p(P),k=0;k<Te.length;k++){var oe=Te[k];if(ve(ce,oe,pe,le)&&ve(be,X.get(oe),pe,le))return P.delete(oe),!0}return!1}function Je(P,X,ce,be){for(var pe=null,le=l(P),Te=0;Te<le.length;Te++){var k=e(le[Te],2),oe=k[0],ue=k[1];if(r(oe)==="object"&&oe!==null)pe===null&&(pe=new Set),pe.add(oe);else{var he=X.get(oe);if(he===void 0&&!X.has(oe)||!ve(ue,he,ce,be)){if(ce||!Ie(P,X,oe,ue,be))return!1;pe===null&&(pe=new Set),pe.add(oe)}}}if(pe!==null){for(var Y=l(X),M=0;M<Y.length;M++){var S=e(Y[M],2),ie=S[0],ge=S[1];if(r(ie)==="object"&&ie!==null){if(!Fe(pe,P,ie,ge,ce,be))return!1}else if(!ce&&(!P.has(ie)||!ve(P.get(ie),ge,!1,be))&&!Fe(pe,P,ie,ge,!1,be))return!1}return pe.size===0}return!0}function Ne(P,X,ce,be,pe,le){var Te=0;if(le===$){if(!Oe(P,X,ce,pe))return!1}else if(le===U){if(!Je(P,X,ce,pe))return!1}else if(le===B)for(;Te<P.length;Te++)if(d(P,Te)){if(!d(X,Te)||!ve(P[Te],X[Te],ce,pe))return!1}else{if(d(X,Te))return!1;for(var k=Object.keys(P);Te<k.length;Te++){var oe=k[Te];if(!d(X,oe)||!ve(P[oe],X[oe],ce,pe))return!1}return k.length===Object.keys(X).length}for(Te=0;Te<be.length;Te++){var ue=be[Te];if(!ve(P[ue],X[ue],ce,pe))return!1}return!0}function ee(P,X){return ve(P,X,H)}function de(P,X){return ve(P,X,N)}return ri={isDeepEqual:ee,isDeepStrictEqual:de},ri}var du;function fr(){if(du)return $n.exports;du=1;function e($){"@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($)}function n($,U,z){return Object.defineProperty($,"prototype",{writable:!1}),$}function a($,U){if(!($ instanceof U))throw new TypeError("Cannot call a class as a function")}var i=Xh(),o=i.codes,t=o.ERR_AMBIGUOUS_ARGUMENT,r=o.ERR_INVALID_ARG_TYPE,s=o.ERR_INVALID_ARG_VALUE,p=o.ERR_INVALID_RETURN_VALUE,l=o.ERR_MISSING_ARGS,u=Hg(),f=Xe(),h=f.inspect,w=Xe().types,d=w.isPromise,v=w.isRegExp,m=Kg()(),c=Rs()(),_=Yg()("RegExp.prototype.test"),b,y;function E(){var $=tv();b=$.isDeepEqual,y=$.isDeepStrictEqual}var T=!1,R=$n.exports=O,x={};function j($){throw $.message instanceof Error?$.message:new u($)}function W($,U,z,re,te){var se=arguments.length,fe;if(se===0)fe="Failed";else if(se===1)z=$,$=void 0;else{if(T===!1){T=!0;var ve=Re.emitWarning?Re.emitWarning:console.warn.bind(console);ve("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}se===2&&(re="!=")}if(z instanceof Error)throw z;var ye={actual:$,expected:U,operator:re===void 0?"fail":re,stackStartFn:te||W};z!==void 0&&(ye.message=z);var Ee=new u(ye);throw fe&&(Ee.message=fe,Ee.generatedMessage=!0),Ee}R.fail=W,R.AssertionError=u;function G($,U,z,re){if(!z){var te=!1;if(U===0)te=!0,re="No value argument passed to `assert.ok()`";else if(re instanceof Error)throw re;var se=new u({actual:z,expected:!0,message:re,operator:"==",stackStartFn:$});throw se.generatedMessage=te,se}}function O(){for(var $=arguments.length,U=new Array($),z=0;z<$;z++)U[z]=arguments[z];G.apply(void 0,[O,U.length].concat(U))}R.ok=O,R.equal=function $(U,z,re){if(arguments.length<2)throw new l("actual","expected");U!=z&&j({actual:U,expected:z,message:re,operator:"==",stackStartFn:$})},R.notEqual=function $(U,z,re){if(arguments.length<2)throw new l("actual","expected");U==z&&j({actual:U,expected:z,message:re,operator:"!=",stackStartFn:$})},R.deepEqual=function $(U,z,re){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),b(U,z)||j({actual:U,expected:z,message:re,operator:"deepEqual",stackStartFn:$})},R.notDeepEqual=function $(U,z,re){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),b(U,z)&&j({actual:U,expected:z,message:re,operator:"notDeepEqual",stackStartFn:$})},R.deepStrictEqual=function $(U,z,re){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),y(U,z)||j({actual:U,expected:z,message:re,operator:"deepStrictEqual",stackStartFn:$})},R.notDeepStrictEqual=I;function I($,U,z){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),y($,U)&&j({actual:$,expected:U,message:z,operator:"notDeepStrictEqual",stackStartFn:I})}R.strictEqual=function $(U,z,re){if(arguments.length<2)throw new l("actual","expected");c(U,z)||j({actual:U,expected:z,message:re,operator:"strictEqual",stackStartFn:$})},R.notStrictEqual=function $(U,z,re){if(arguments.length<2)throw new l("actual","expected");c(U,z)&&j({actual:U,expected:z,message:re,operator:"notStrictEqual",stackStartFn:$})};var q=n(function $(U,z,re){var te=this;a(this,$),z.forEach(function(se){se in U&&(re!==void 0&&typeof re[se]=="string"&&v(U[se])&&_(U[se],re[se])?te[se]=re[se]:te[se]=U[se])})});function F($,U,z,re,te,se){if(!(z in $)||!y($[z],U[z])){if(!re){var fe=new q($,te),ve=new q(U,te,$),ye=new u({actual:fe,expected:ve,operator:"deepStrictEqual",stackStartFn:se});throw ye.actual=$,ye.expected=U,ye.operator=se.name,ye}j({actual:$,expected:U,message:re,operator:se.name,stackStartFn:se})}}function V($,U,z,re){if(typeof U!="function"){if(v(U))return _(U,$);if(arguments.length===2)throw new r("expected",["Function","RegExp"],U);if(e($)!=="object"||$===null){var te=new u({actual:$,expected:U,message:z,operator:"deepStrictEqual",stackStartFn:re});throw te.operator=re.name,te}var se=Object.keys(U);if(U instanceof Error)se.push("name","message");else if(se.length===0)throw new s("error",U,"may not be an empty object");return b===void 0&&E(),se.forEach(function(fe){typeof $[fe]=="string"&&v(U[fe])&&_(U[fe],$[fe])||F($,U,fe,z,se,re)}),!0}return U.prototype!==void 0&&$ instanceof U?!0:Error.isPrototypeOf(U)?!1:U.call({},$)===!0}function L($){if(typeof $!="function")throw new r("fn","Function",$);try{$()}catch(U){return U}return x}function A($){return d($)||$!==null&&e($)==="object"&&typeof $.then=="function"&&typeof $.catch=="function"}function D($){return Promise.resolve().then(function(){var U;if(typeof $=="function"){if(U=$(),!A(U))throw new p("instance of Promise","promiseFn",U)}else if(A($))U=$;else throw new r("promiseFn",["Function","Promise"],$);return Promise.resolve().then(function(){return U}).then(function(){return x}).catch(function(z){return z})})}function N($,U,z,re){if(typeof z=="string"){if(arguments.length===4)throw new r("error",["Object","Error","Function","RegExp"],z);if(e(U)==="object"&&U!==null){if(U.message===z)throw new t("error/message",'The error message "'.concat(U.message,'" is identical to the message.'))}else if(U===z)throw new t("error/message",'The error "'.concat(U,'" is identical to the message.'));re=z,z=void 0}else if(z!=null&&e(z)!=="object"&&typeof z!="function")throw new r("error",["Object","Error","Function","RegExp"],z);if(U===x){var te="";z&&z.name&&(te+=" (".concat(z.name,")")),te+=re?": ".concat(re):".";var se=$.name==="rejects"?"rejection":"exception";j({actual:void 0,expected:z,operator:$.name,message:"Missing expected ".concat(se).concat(te),stackStartFn:$})}if(z&&!V(U,z,re,$))throw U}function H($,U,z,re){if(U!==x){if(typeof z=="string"&&(re=z,z=void 0),!z||V(U,z)){var te=re?": ".concat(re):".",se=$.name==="doesNotReject"?"rejection":"exception";j({actual:U,expected:z,operator:$.name,message:"Got unwanted ".concat(se).concat(te,`
|
|
78
|
+
`)+'Actual message: "'.concat(U&&U.message,'"'),stackStartFn:$})}throw U}}R.throws=function $(U){for(var z=arguments.length,re=new Array(z>1?z-1:0),te=1;te<z;te++)re[te-1]=arguments[te];N.apply(void 0,[$,L(U)].concat(re))},R.rejects=function $(U){for(var z=arguments.length,re=new Array(z>1?z-1:0),te=1;te<z;te++)re[te-1]=arguments[te];return D(U).then(function(se){return N.apply(void 0,[$,se].concat(re))})},R.doesNotThrow=function $(U){for(var z=arguments.length,re=new Array(z>1?z-1:0),te=1;te<z;te++)re[te-1]=arguments[te];H.apply(void 0,[$,L(U)].concat(re))},R.doesNotReject=function $(U){for(var z=arguments.length,re=new Array(z>1?z-1:0),te=1;te<z;te++)re[te-1]=arguments[te];return D(U).then(function(se){return H.apply(void 0,[$,se].concat(re))})},R.ifError=function $(U){if(U!=null){var z="ifError got unwanted exception: ";e(U)==="object"&&typeof U.message=="string"?U.message.length===0&&U.constructor?z+=U.constructor.name:z+=U.message:z+=h(U);var re=new u({actual:U,expected:null,operator:"ifError",message:z,stackStartFn:$}),te=U.stack;if(typeof te=="string"){var se=te.split(`
|
|
79
|
+
`);se.shift();for(var fe=re.stack.split(`
|
|
80
|
+
`),ve=0;ve<se.length;ve++){var ye=fe.indexOf(se[ve]);if(ye!==-1){fe=fe.slice(0,ye);break}}re.stack="".concat(fe.join(`
|
|
81
|
+
`),`
|
|
82
|
+
`).concat(se.join(`
|
|
83
|
+
`))}throw re}};function Z($,U,z,re,te){if(!v(U))throw new r("regexp","RegExp",U);var se=te==="match";if(typeof $!="string"||_(U,$)!==se){if(z instanceof Error)throw z;var fe=!z;z=z||(typeof $!="string"?'The "string" argument must be of type string. Received type '+"".concat(e($)," (").concat(h($),")"):(se?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(h(U),`. Input:
|
|
84
|
+
|
|
85
|
+
`).concat(h($),`
|
|
86
|
+
`));var ve=new u({actual:$,expected:U,message:z,operator:te,stackStartFn:re});throw ve.generatedMessage=fe,ve}}R.match=function $(U,z,re){Z(U,z,re,$,"match")},R.doesNotMatch=function $(U,z,re){Z(U,z,re,$,"doesNotMatch")};function B(){for(var $=arguments.length,U=new Array($),z=0;z<$;z++)U[z]=arguments[z];G.apply(void 0,[B,U.length].concat(U))}return R.strict=m(B,R,{equal:R.strictEqual,deepEqual:R.deepStrictEqual,notEqual:R.notStrictEqual,notDeepEqual:R.notDeepStrictEqual}),R.strict.strict=R.strict,$n.exports}var pu;function rv(){return pu||(pu=1,function(e,n){var a=fr(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o="abcdefghijklmnopqrstuvwxyz0123456789",t="0123456789";n=e.exports=r(i),n.base62=n,n.base36=r(o),n.base10=r(t),n.create=r;function r(s){a(typeof s=="string","the list of characters must be a string!");var p=Ve.byteLength(s);return function(u){u=u||10,a(typeof u=="number"&&u>=0,"the length of the random string must be a number!");for(var f="",h=0;h<u;h++)f+=s[Math.floor(p*Math.random())];return f}}}(Er,Er.exports)),Er.exports}var Rr={exports:{}},Or={exports:{}};/*!
|
|
87
|
+
* random-bytes
|
|
88
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
89
|
+
* MIT Licensed
|
|
90
|
+
*/var mu;function nv(){if(mu)return Or.exports;mu=1;var e=Yt(),n=e.randomBytes===e.pseudoRandomBytes?1:3;Or.exports=a,Or.exports.sync=i;function a(t,r){if(r!==void 0&&typeof r!="function")throw new TypeError("argument callback must be a function");if(!r&&!Be.Promise)throw new TypeError("argument callback is required");return r?o(t,n,r):new Promise(function(p,l){o(t,n,function(f,h){if(f)return l(f);p(h)})})}function i(t){for(var r=null,s=0;s<n;s++)try{return e.randomBytes(t)}catch(p){r=p}throw r}function o(t,r,s){e.randomBytes(t,function(l,u){if(!l)return s(null,u);if(!--r)return s(l);setTimeout(o.bind(null,t,r,s),10)})}return Or.exports}/*!
|
|
91
|
+
* uid-safe
|
|
92
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
93
|
+
* Copyright(c) 2015-2017 Douglas Christopher Wilson
|
|
94
|
+
* MIT Licensed
|
|
95
|
+
*/var gu;function iv(){if(gu)return Rr.exports;gu=1;var e=nv(),n=/=+$/,a=/\+/g,i=/\//g;Rr.exports=o,Rr.exports.sync=t;function o(p,l){if(l!==void 0&&typeof l!="function")throw new TypeError("argument callback must be a function");if(!l&&!Be.Promise)throw new TypeError("argument callback is required");return l?r(p,l):new Promise(function(f,h){r(p,function(d,v){if(d)return h(d);f(v)})})}function t(p){return s(e.sync(p))}function r(p,l){e(p,function(u,f){if(u)return l(u);l(null,s(f))})}function s(p){return p.toString("base64").replace(n,"").replace(a,"-").replace(i,"_")}return Rr.exports}var ni,vu;function av(){if(vu)return ni;vu=1;var e=Yt();function n(i,o){if(i.length!==o.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(i,o);for(var t=0;t<i.length;t++)if(i[t]!==o[t])return!1;return!0}function a(i,o){var t=String(i),r=String(o),s=e.pseudoRandomBytes(32),p=e.createHmac("sha256",s).update(t).digest(),l=e.createHmac("sha256",s).update(r).digest();return n(p,l)&&i===o}return ni=a,ni}/*!
|
|
96
|
+
* csrf
|
|
97
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
98
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
99
|
+
* MIT Licensed
|
|
100
|
+
*/var ii,yu;function ov(){if(yu)return ii;yu=1;var e=rv(),n=iv(),a=av(),i=Yt(),o=/=/g,t=/\+/g,r=/\//g;ii=s;function s(l){if(!(this instanceof s))return new s(l);var u=l||{},f=u.saltLength!==void 0?u.saltLength:8;if(typeof f!="number"||!isFinite(f)||f<1)throw new TypeError("option saltLength must be finite number > 1");var h=u.secretLength!==void 0?u.secretLength:18;if(typeof h!="number"||!isFinite(h)||h<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=f,this.secretLength=h}s.prototype.create=function(u){if(!u||typeof u!="string")throw new TypeError("argument secret is required");return this._tokenize(u,e(this.saltLength))},s.prototype.secret=function(u){return n(this.secretLength,u)},s.prototype.secretSync=function(){return n.sync(this.secretLength)},s.prototype._tokenize=function(u,f){return f+"-"+p(f+"-"+u)},s.prototype.verify=function(u,f){if(!u||typeof u!="string"||!f||typeof f!="string")return!1;var h=f.indexOf("-");if(h===-1)return!1;var w=f.substr(0,h),d=this._tokenize(u,w);return a(f,d)};function p(l){return i.createHash("sha1").update(l,"ascii").digest("base64").replace(t,"-").replace(r,"_").replace(o,"")}return ii}var ai={},oi,_u;function sv(){return _u||(_u=1,oi=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)),oi}var si,bu;function uv(){if(bu)return si;bu=1;var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),a=new RegExp("("+e+")+","gi");function i(r,s){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;s=s||1;var p=r.slice(0,s),l=r.slice(s);return Array.prototype.concat.call([],i(p),i(l))}function o(r){try{return decodeURIComponent(r)}catch{for(var s=r.match(n)||[],p=1;p<s.length;p++)r=i(s,p).join(""),s=r.match(n)||[];return r}}function t(r){for(var s={"%FE%FF":"��","%FF%FE":"��"},p=a.exec(r);p;){try{s[p[0]]=decodeURIComponent(p[0])}catch{var l=o(p[0]);l!==p[0]&&(s[p[0]]=l)}p=a.exec(r)}s["%C2"]="�";for(var u=Object.keys(s),f=0;f<u.length;f++){var h=u[f];r=r.replace(new RegExp(h,"g"),s[h])}return r}return si=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)}},si}var ui,wu;function cv(){return wu||(wu=1,ui=(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 a=e.indexOf(n);return a===-1?[e]:[e.slice(0,a),e.slice(a+n.length)]}),ui}var ci,Su;function fv(){return Su||(Su=1,ci=function(e,n){for(var a={},i=Object.keys(e),o=Array.isArray(n),t=0;t<i.length;t++){var r=i[t],s=e[r];(o?n.indexOf(r)!==-1:n(r,s,e))&&(a[r]=s)}return a}),ci}var Eu;function lv(){return Eu||(Eu=1,function(e){const n=sv(),a=uv(),i=cv(),o=fv(),t=c=>c==null;function r(c){switch(c.arrayFormat){case"index":return _=>(b,y)=>{const E=b.length;return y===void 0||c.skipNull&&y===null||c.skipEmptyString&&y===""?b:y===null?[...b,[l(_,c),"[",E,"]"].join("")]:[...b,[l(_,c),"[",l(E,c),"]=",l(y,c)].join("")]};case"bracket":return _=>(b,y)=>y===void 0||c.skipNull&&y===null||c.skipEmptyString&&y===""?b:y===null?[...b,[l(_,c),"[]"].join("")]:[...b,[l(_,c),"[]=",l(y,c)].join("")];case"comma":case"separator":return _=>(b,y)=>y==null||y.length===0?b:b.length===0?[[l(_,c),"=",l(y,c)].join("")]:[[b,l(y,c)].join(c.arrayFormatSeparator)];default:return _=>(b,y)=>y===void 0||c.skipNull&&y===null||c.skipEmptyString&&y===""?b:y===null?[...b,l(_,c)]:[...b,[l(_,c),"=",l(y,c)].join("")]}}function s(c){let _;switch(c.arrayFormat){case"index":return(b,y,E)=>{if(_=/\[(\d*)\]$/.exec(b),b=b.replace(/\[\d*\]$/,""),!_){E[b]=y;return}E[b]===void 0&&(E[b]={}),E[b][_[1]]=y};case"bracket":return(b,y,E)=>{if(_=/(\[\])$/.exec(b),b=b.replace(/\[\]$/,""),!_){E[b]=y;return}if(E[b]===void 0){E[b]=[y];return}E[b]=[].concat(E[b],y)};case"comma":case"separator":return(b,y,E)=>{const T=typeof y=="string"&&y.includes(c.arrayFormatSeparator),R=typeof y=="string"&&!T&&u(y,c).includes(c.arrayFormatSeparator);y=R?u(y,c):y;const x=T||R?y.split(c.arrayFormatSeparator).map(j=>u(j,c)):y===null?y:u(y,c);E[b]=x};default:return(b,y,E)=>{if(E[b]===void 0){E[b]=y;return}E[b]=[].concat(E[b],y)}}}function p(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(c,_){return _.encode?_.strict?n(c):encodeURIComponent(c):c}function u(c,_){return _.decode?a(c):c}function f(c){return Array.isArray(c)?c.sort():typeof c=="object"?f(Object.keys(c)).sort((_,b)=>Number(_)-Number(b)).map(_=>c[_]):c}function h(c){const _=c.indexOf("#");return _!==-1&&(c=c.slice(0,_)),c}function w(c){let _="";const b=c.indexOf("#");return b!==-1&&(_=c.slice(b)),_}function d(c){c=h(c);const _=c.indexOf("?");return _===-1?"":c.slice(_+1)}function v(c,_){return _.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):_.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function m(c,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),p(_.arrayFormatSeparator);const b=s(_),y=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return y;for(const E of c.split("&")){if(E==="")continue;let[T,R]=i(_.decode?E.replace(/\+/g," "):E,"=");R=R===void 0?null:["comma","separator"].includes(_.arrayFormat)?R:u(R,_),b(u(T,_),R,y)}for(const E of Object.keys(y)){const T=y[E];if(typeof T=="object"&&T!==null)for(const R of Object.keys(T))T[R]=v(T[R],_);else y[E]=v(T,_)}return _.sort===!1?y:(_.sort===!0?Object.keys(y).sort():Object.keys(y).sort(_.sort)).reduce((E,T)=>{const R=y[T];return R&&typeof R=="object"&&!Array.isArray(R)?E[T]=f(R):E[T]=R,E},Object.create(null))}e.extract=d,e.parse=m,e.stringify=(c,_)=>{if(!c)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),p(_.arrayFormatSeparator);const b=R=>_.skipNull&&t(c[R])||_.skipEmptyString&&c[R]==="",y=r(_),E={};for(const R of Object.keys(c))b(R)||(E[R]=c[R]);const T=Object.keys(E);return _.sort!==!1&&T.sort(_.sort),T.map(R=>{const x=c[R];return x===void 0?"":x===null?l(R,_):Array.isArray(x)?x.reduce(y(R),[]).join("&"):l(R,_)+"="+l(x,_)}).filter(R=>R.length>0).join("&")},e.parseUrl=(c,_)=>{_=Object.assign({decode:!0},_);const[b,y]=i(c,"#");return Object.assign({url:b.split("?")[0]||"",query:m(d(c),_)},_&&_.parseFragmentIdentifier&&y?{fragmentIdentifier:u(y,_)}:{})},e.stringifyUrl=(c,_)=>{_=Object.assign({encode:!0,strict:!0},_);const b=h(c.url).split("?")[0]||"",y=e.extract(c.url),E=e.parse(y,{sort:!1}),T=Object.assign(E,c.query);let R=e.stringify(T,_);R&&(R=`?${R}`);let x=w(c.url);return c.fragmentIdentifier&&(x=`#${l(c.fragmentIdentifier,_)}`),`${b}${R}${x}`},e.pick=(c,_,b)=>{b=Object.assign({parseFragmentIdentifier:!0},b);const{url:y,query:E,fragmentIdentifier:T}=e.parseUrl(c,b);return e.stringifyUrl({url:y,query:o(E,_),fragmentIdentifier:T},b)},e.exclude=(c,_,b)=>{const y=Array.isArray(_)?E=>!_.includes(E):(E,T)=>!_(E,T);return e.pick(c,y,b)}}(ai)),ai}var Ct={},Pt={},fi={},er={},Ru;function id(){if(Ru)return er;Ru=1,Object.defineProperty(er,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(i,o){(this.$[i]=this.$[i]||[]).push(o)}off(i,o){const t=this.$[i];t&&t.splice(t.indexOf(o)>>>0,1)}each(i){this._.push(i)}none(i){this._.splice(this._.indexOf(i)>>>0,1)}emit(i,...o){const t=this.$[i];t&&t.slice().forEach(r=>r(...o)),this._.slice().forEach(r=>r({type:i,args:o}))}}er.Emitter=e;function n(a,i,o){function t(...r){return a.off(i,t),o(...r)}return a.on(i,t),t}return er.once=n,er}var Tr={},Ou;function hv(){if(Ou)return Tr;Ou=1,Object.defineProperty(Tr,"__esModule",{value:!0});function e(n){if(!n)return 0;n=n.toString();for(var a=n.length,i=n.length;i--;){var o=n.charCodeAt(i);56320<=o&&o<=57343&&i--,127<o&&o<=2047?a++:2047<o&&o<=65535&&(a+=2)}return a}return Tr.byteLength=e,Tr}var kt={},Tu;function dv(){if(Tu)return kt;Tu=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.expectNever=kt.expectType=void 0;const e=a=>{};kt.expectType=e;const n=a=>{throw new TypeError("Unexpected value: "+a)};return kt.expectNever=n,kt}var xr={},xu;function cn(){if(xu)return xr;xu=1,Object.defineProperty(xr,"__esModule",{value:!0});class e{constructor(a){this.object=Object.create(null),a&&this.extend(a)}set(a,i){this.object[a.toLowerCase()]=Array.isArray(i)?i.map(String):String(i)}append(a,i){const o=a.toLowerCase(),t=this.object[o];if(t===void 0)Array.isArray(i)?this.object[o]=i.map(String):this.object[o]=String(i);else if(Array.isArray(t))if(Array.isArray(i))for(const r of i)t.push(String(r));else t.push(String(i));else this.object[o]=Array.isArray(i)?[t,...i.map(String)]:[t,String(i)]}get(a){const i=this.object[a.toLowerCase()];return i===void 0?null:Array.isArray(i)?i[0]:i}getAll(a){const i=this.object[a.toLowerCase()];return i===void 0?[]:Array.isArray(i)?[...i]:[i]}has(a){return a.toLowerCase()in this.object}delete(a){delete this.object[a.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(a){if(Symbol.iterator in a)for(const[i,o]of a)this.append(i,o);else if(a instanceof e)for(const[i,o]of a.entries())this.append(i,o);else for(const i of Object.keys(a)){const o=a[i];o!==void 0&&this.append(i,o)}}clone(){return new e(this.object)}}return xr.Headers=e,xr}var tr={},Iu;function fn(){if(Iu)return tr;Iu=1,Object.defineProperty(tr,"__esModule",{value:!0});const e=id();class n extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}tr.Signal=n;class a{constructor(){this.signal=new n}abort(){this.signal.emit("abort")}}return tr.AbortController=a,tr}var li={},Au;function ad(){return Au||(Au=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function n(i){const o=a(i);return o===null?null:(i.$rawBody=e.kBodyUsed,o)}e.useRawBody=n;function a(i){const{$rawBody:o}=i;if(o===e.kBodyUsed)throw new TypeError("Body already used");if(o===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return o}e.getRawBody=a}(li)),li}var Cu;function od(){return Cu||(Cu=1,function(e){function n(v){for(var m in v)e.hasOwnProperty(m)||(e[m]=v[m])}Object.defineProperty(e,"__esModule",{value:!0});const a=id(),i=hv(),o=dv(),t=cn(),r=fn(),s=ad();n(cn()),n(fn());function p(v){const m=new DataView(v);return new TextDecoder("utf-8").decode(m)}function l(v){return new TextEncoder().encode(v)}function u(v){const m=v.getReader();function c(_){return m.read().then(b=>{if(b.done)return _;const y=b.value,E=new Uint8Array(_.byteLength+y.byteLength);return E.set(_,0),E.set(y,_.byteLength),c(E)})}return c(new Uint8Array(0))}class f{constructor(m){const c=m===void 0?null:m;this.$rawBody=c}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(p(m)):u(m).then(p)}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):u(m)}readableStream(){const m=s.useRawBody(this);return m===null?new ReadableStream({start(c){c.close()}}):typeof m=="string"?new ReadableStream({start(c){c.enqueue(l(m)),c.close()}}):m instanceof ArrayBuffer?new ReadableStream({start(c){c.enqueue(new Uint8Array(m)),c.close()}}):m}clone(){const m=s.getRawBody(this);if(m instanceof ReadableStream){const[c,_]=m.tee();return this.$rawBody=c,new f(_)}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 h extends f{constructor(m,c={}){const _=typeof m=="string"?void 0:m.clone(),b=c.body||(_?s.getRawBody(_):null),y=_&&!c.headers?_.headers:d(b,c.headers,c.omitDefaultHeaders===!0);super(b),this.url=typeof m=="string"?m:m.url,this.method=c.method||_&&_.method||"GET",this.signal=c.signal||_&&_.signal||new r.Signal,this.headers=y,this.trailer=_&&!c.trailer?_.trailer:Promise.resolve(c.trailer).then(E=>new t.Headers(E)),a.once(this.signal,"abort",()=>this.destroy())}clone(){const m=super.clone();return new h(this.url,{body:s.getRawBody(m),headers:this.headers.clone(),omitDefaultHeaders:!0,method:this.method,signal:this.signal,trailer:this.trailer.then(c=>c.clone())})}}e.Request=h;class w extends f{get ok(){return this.status>=200&&this.status<300}constructor(m,c={}){const _=d(m,c.headers,c.omitDefaultHeaders===!0);super(m),this.status=c.status||200,this.statusText=c.statusText||"",this.headers=_,this.trailer=Promise.resolve(c.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(c=>c.clone())})}}e.Response=w;function d(v,m,c){const _=new t.Headers(m);if(v==null)return _;if(typeof v=="string")return!c&&!_.has("Content-Type")&&_.set("Content-Type","text/plain"),!c&&!_.has("Content-Length")&&_.set("Content-Length",i.byteLength(v).toString()),_;if(!c&&!_.has("Content-Type")&&_.set("Content-Type","application/octet-stream"),v instanceof ArrayBuffer)return!c&&!_.has("Content-Length")&&_.set("Content-Length",String(v.byteLength)),_;if(v instanceof ReadableStream)return _;throw o.expectType(v),new TypeError("Unknown body type")}}(fi)),fi}var ft={},Pu;function pv(){if(Pu)return ft;Pu=1,Object.defineProperty(ft,"__esModule",{value:!0});const e=od(),n=ad();class a extends e.Response{constructor(h,w){super(h,w),this.url=w.url}}ft.XhrResponse=a;class i extends Error{constructor(h,w){super(w),this.request=h,this.code="EBLOCKED"}}ft.BlockedRequestError=i;class o extends Error{constructor(h,w){super(w),this.request=h,this.code="EINVALID"}}ft.InvalidRequestError=o;class t extends Error{constructor(h,w){super(w),this.request=h,this.code="EUNAVAILABLE"}}ft.ConnectionError=t;class r extends Error{constructor(h,w){super(w),this.request=h,this.code="ECSP"}}ft.CSPError=r;class s extends Error{constructor(h,w){super(w),this.request=h,this.code="ETYPE"}}ft.TypeError=s;class p extends Error{constructor(h,w){super(w),this.request=h,this.code="EABORT"}}ft.AbortError=p;function l(f={}){return function(h){return new Promise(function(w,d){const v=f.type||"arraybuffer",m=h.method.toUpperCase();if(h.signal.aborted)return d(new p(h,"Request has been aborted"));if(window.location.protocol==="https:"&&h.url.startsWith("http:"))return d(new i(h,`The connection to "${h.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(h.url))return d(new o(h,`Refusing to connect to "${h.url}"`));const c=new XMLHttpRequest;let _=!1;function b(){const E=new a(v==="text"?c.responseText:c.response,{status:c.status===1223?204:c.status,statusText:c.statusText,headers:u(c.getAllResponseHeaders()),omitDefaultHeaders:!0,url:c.responseURL});return h.signal.emit("responseStarted"),h.signal.emit("responseEnded"),w(E)}function y(){return d(new t(h,`Unable to connect to "${h.url}"`))}c.onload=b,c.onabort=b,c.onerror=y,c.onprogress=E=>{h.signal.emit("requestBytes",E.loaded)},m!=="GET"&&m!=="HEAD"&&c.upload&&(_=!0,c.upload.onprogress=E=>{h.signal.emit("responseBytes",E.loaded)},c.upload.onloadend=()=>{h.signal.emit("requestEnded")});try{c.open(m,h.url)}catch{return d(new r(h,`Refused to connect to "${h.url}"`))}if(f.withCredentials&&(c.withCredentials=!0),f.overrideMimeType&&c.overrideMimeType(f.overrideMimeType),v!=="text")try{c.responseType=v}finally{if(c.responseType!==v)return d(new s(h,`Unsupported type: ${v}`))}for(const[E,T]of h.headers.entries())if(Array.isArray(T))for(const R of T)c.setRequestHeader(E,R);else c.setRequestHeader(E,T);h.signal.emit("requestStarted"),_||h.signal.emit("requestEnded"),h.signal.on("abort",()=>c.abort()),c.send(n.useRawBody(h))})}}ft.transport=l;function u(f){const h=[],w=f.split(/\r?\n/);for(const d of w)if(d){const v=d.indexOf(":"),m=d.substr(0,v).trim(),c=d.substr(v+1).trim();h.push([m,c])}return h}return ft}var rr={},ku;function cs(){if(ku)return rr;ku=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.toFetch=void 0;function e(n,a){function i(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...t){const r=t.length===1&&t[0]instanceof a?t[0]:new a(...t);return n(r,i)}}return rr.toFetch=e,rr}var Lu;function mv(){return Lu||(Lu=1,function(e){var n=Pt&&Pt.__createBinding||(Object.create?function(r,s,p,l){l===void 0&&(l=p),Object.defineProperty(r,l,{enumerable:!0,get:function(){return s[p]}})}:function(r,s,p,l){l===void 0&&(l=p),r[l]=s[p]}),a=Pt&&Pt.__exportStar||function(r,s){for(var p in r)p!=="default"&&!Object.prototype.hasOwnProperty.call(s,p)&&n(s,r,p)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const i=od();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return i.Request}});const o=pv();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return o.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return o.XhrResponse}});const t=cs();a(cs(),e),a(fn(),e),a(cn(),e),e.middleware=o.transport(),e.fetch=t.toFetch(e.middleware,i.Request)}(Pt)),Pt}var qu;function gv(){return qu||(qu=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(o,t,r,s){s===void 0&&(s=r),Object.defineProperty(o,s,{enumerable:!0,get:function(){return t[r]}})}:function(o,t,r,s){s===void 0&&(s=r),o[s]=t[r]}),a=Ct&&Ct.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,o,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const i=mv();a(cs(),e),a(fn(),e),a(cn(),e),e.fetch=i.fetch,e.middleware=i.middleware}(Ct)),Ct}var Ze={},ju;function Mt(){return ju||(ju=1,Ze.endianness=function(){return"LE"},Ze.hostname=function(){return typeof location<"u"?location.hostname:""},Ze.loadavg=function(){return[]},Ze.uptime=function(){return 0},Ze.freemem=function(){return Number.MAX_VALUE},Ze.totalmem=function(){return Number.MAX_VALUE},Ze.cpus=function(){return[]},Ze.type=function(){return"Browser"},Ze.release=function(){return typeof navigator<"u"?navigator.appVersion:""},Ze.networkInterfaces=Ze.getNetworkInterfaces=function(){return{}},Ze.arch=function(){return"javascript"},Ze.platform=function(){return"browser"},Ze.tmpdir=Ze.tmpDir=function(){return"/tmp"},Ze.EOL=`
|
|
101
|
+
`,Ze.homedir=function(){return"/"}),Ze}var hi={},Ir={},di,Du;function ut(){if(Du)return di;Du=1;function e(d){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},e(d)}function n(d,v,m){return Object.defineProperty(d,"prototype",{writable:!1}),d}function a(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function i(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),v&&f(d,v)}function o(d){var v=l();return function(){var c=h(d),_;if(v){var b=h(this).constructor;_=Reflect.construct(c,arguments,b)}else _=c.apply(this,arguments);return t(this,_)}}function t(d,v){if(v&&(e(v)==="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(d)}function r(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function s(d){var v=typeof Map=="function"?new Map:void 0;return s=function(c){if(c===null||!u(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof v<"u"){if(v.has(c))return v.get(c);v.set(c,_)}function _(){return p(c,arguments,h(this).constructor)}return _.prototype=Object.create(c.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),f(_,c)},s(d)}function p(d,v,m){return l()?p=Reflect.construct.bind():p=function(_,b,y){var E=[null];E.push.apply(E,b);var T=Function.bind.apply(_,E),R=new T;return y&&f(R,y.prototype),R},p.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 u(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function f(d,v){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,_){return c.__proto__=_,c},f(d,v)}function h(d){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},h(d)}var w=function(d){i(m,d);var v=o(m);function m(c){var _;return a(this,m),_=v.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
102
|
+
Found: `.concat(c.toString().split(`
|
|
103
|
+
`)[0],`
|
|
104
|
+
`)),Error.captureStackTrace(r(_),m),_}return n(m)}(s(Error));return di=function(d){if(d.length>2)throw new w(d);function v(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=c}v.prototype.transform=d;function m(c){return new v(c)}return m.Format=v,m},di}var nr={exports:{}},pi={exports:{}},mi={exports:{}},gi={exports:{}},Nu;function vv(){return Nu||(Nu=1,function(e){var n={};e.exports=n;var a={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(a).forEach(function(i){var o=a[i],t=n[i]=[];t.open="\x1B["+o[0]+"m",t.close="\x1B["+o[1]+"m"})}(gi)),gi.exports}var vi,$u;function yv(){return $u||($u=1,vi=function(e,n){n=n||Re.argv;var a=n.indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",o=n.indexOf(i+e);return o!==-1&&(a===-1?!0:o<a)}),vi}var yi,Mu;function _v(){if(Mu)return yi;Mu=1;var e={},n=Mt(),a=yv(),i=e,o=void 0;a("no-color")||a("no-colors")||a("color=false")?o=!1:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(o=!0),"FORCE_COLOR"in i&&(o=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function t(p){return p===0?!1:{level:p,hasBasic:!0,has256:p>=2,has16m:p>=3}}function r(p){if(o===!1)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(p&&!p.isTTY&&o!==!0)return 0;var l=o?1:0;if(Re.platform==="win32"){var u=n.release().split(".");return Number(Re.versions.node.split(".")[0])>=8&&Number(u[0])>=10&&Number(u[2])>=10586?Number(u[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(h){return h in i})||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var f=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return f>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM==="dumb",l)}function s(p){var l=r(p);return t(l)}return yi={supportsColor:s,stdout:s(Re.stdout),stderr:s(Re.stderr)},yi}var _i={exports:{}},Fu;function bv(){return Fu||(Fu=1,function(e){e.exports=function(a,i){var o="";a=a||"Run the trap, drop the bass",a=a.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 a.forEach(function(r){r=r.toLowerCase();var s=t[r]||[" "],p=Math.floor(Math.random()*s.length);typeof t[r]<"u"?o+=t[r][p]:o+=r}),o}}(_i)),_i.exports}var bi={exports:{}},Uu;function wv(){return Uu||(Uu=1,function(e){e.exports=function(a,i){a=a||" he is here ";var o={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},t=[].concat(o.up,o.down,o.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return t.filter(function(f){u=f===l}),u}function p(l,u){var f="",h,w;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(w in l)if(!s(w)){switch(f=f+l[w],h={up:0,down:0,mid:0},u.size){case"mini":h.up=r(8),h.mid=r(2),h.down=r(8);break;case"maxi":h.up=r(16)+3,h.mid=r(4)+1,h.down=r(64)+3;break;default:h.up=r(8)+1,h.mid=r(6)/2,h.down=r(8)+1;break}var d=["up","mid","down"];for(var v in d)for(var m=d[v],c=0;c<=h[m];c++)u[m]&&(f=f+o[m][r(o[m].length)])}return f}return p(a,i)}}(bi)),bi.exports}var wi={exports:{}},Bu;function Sv(){return Bu||(Bu=1,function(e){e.exports=function(n){return function(a,i,o){if(a===" ")return a;switch(i%3){case 0:return n.red(a);case 1:return n.white(a);case 2:return n.blue(a)}}}}(wi)),wi.exports}var Si={exports:{}},Vu;function Ev(){return Vu||(Vu=1,function(e){e.exports=function(n){return function(a,i,o){return i%2===0?a:n.inverse(a)}}}(Si)),Si.exports}var Ei={exports:{}},zu;function Rv(){return zu||(zu=1,function(e){e.exports=function(n){var a=["red","yellow","green","blue","magenta"];return function(i,o,t){return i===" "?i:n[a[o++%a.length]](i)}}}(Ei)),Ei.exports}var Ri={exports:{}},Gu;function Ov(){return Gu||(Gu=1,function(e){e.exports=function(n){var a=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,o,t){return i===" "?i:n[a[Math.round(Math.random()*(a.length-2))]](i)}}}(Ri)),Ri.exports}var Hu;function Tv(){return Hu||(Hu=1,function(e){var n={};e.exports=n,n.themes={};var a=Xe(),i=n.styles=vv(),o=Object.defineProperties,t=new RegExp(/[\r\n]+/g);n.supportsColor=_v().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(v){return(""+v).replace(/\x1B\[\d+m/g,"")},n.stylize=function(m,c){if(!n.enabled)return m+"";var _=i[c];return!_&&c in n?n[c](m):_.open+m+_.close};var r=/[|\\{}()[\]^$+*?.]/g,s=function(v){if(typeof v!="string")throw new TypeError("Expected a string");return v.replace(r,"\\$&")};function p(v){var m=function c(){return f.apply(c,arguments)};return m._styles=v,m.__proto__=u,m}var l=function(){var v={};return i.grey=i.gray,Object.keys(i).forEach(function(m){i[m].closeRe=new RegExp(s(i[m].close),"g"),v[m]={get:function(){return p(this._styles.concat(m))}}}),v}(),u=o(function(){},l);function f(){var v=Array.prototype.slice.call(arguments),m=v.map(function(E){return E!=null&&E.constructor===String?E:a.inspect(E)}).join(" ");if(!n.enabled||!m)return m;for(var c=m.indexOf(`
|
|
105
|
+
`)!=-1,_=this._styles,b=_.length;b--;){var y=i[_[b]];m=y.open+m.replace(y.closeRe,y.open)+y.close,c&&(m=m.replace(t,function(E){return y.close+E+y.open}))}return m}n.setTheme=function(v){if(typeof v=="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 v)(function(c){n[c]=function(_){if(typeof v[c]=="object"){var b=_;for(var y in v[c])b=n[v[c][y]](b);return b}return n[v[c]](_)}})(m)};function h(){var v={};return Object.keys(l).forEach(function(m){v[m]={get:function(){return p([m])}}}),v}var w=function(m,c){var _=c.split("");return _=_.map(m),_.join("")};n.trap=bv(),n.zalgo=wv(),n.maps={},n.maps.america=Sv()(n),n.maps.zebra=Ev()(n),n.maps.rainbow=Rv()(n),n.maps.random=Ov()(n);for(var d in n.maps)(function(v){n[v]=function(m){return w(n.maps[v],m)}})(d);o(n,h())}(mi)),mi.exports}var Zu;function sd(){return Zu||(Zu=1,function(e){var n=Tv();e.exports=n}(pi)),pi.exports}var Oi={},Ti={},Ar={},Wu;function xv(){return Wu||(Wu=1,Ar.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},Ar.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),Ar}var Cr={},Ku;function Iv(){return Ku||(Ku=1,Cr.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},Cr.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),Cr}var Pr={},Yu;function Av(){return Yu||(Yu=1,Pr.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},Pr.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),Pr}var Ju;function Cv(){return Ju||(Ju=1,function(e){Object.defineProperty(e,"cli",{value:xv()}),Object.defineProperty(e,"npm",{value:Iv()}),Object.defineProperty(e,"syslog",{value:Av()})}(Ti)),Ti}var Xu;function ze(){return Xu||(Xu=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:Cv()})}(Oi)),Oi}var Qu;function Os(){if(Qu)return nr.exports;Qu=1;function e(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function n(l,u){for(var f=0;f<u.length;f++){var h=u[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(l,h.key,h)}}function a(l,u,f){return u&&n(l.prototype,u),f&&n(l,f),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=sd(),o=ze(),t=o.LEVEL,r=o.MESSAGE;i.enabled=!0;var s=/\s+/,p=function(){function l(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,l),u.colors&&this.addColors(u.colors),this.options=u}return a(l,[{key:"addColors",value:function(f){return l.addColors(f)}},{key:"colorize",value:function(f,h,w){if(typeof w>"u"&&(w=h),!Array.isArray(l.allColors[f]))return i[l.allColors[f]](w);for(var d=0,v=l.allColors[f].length;d<v;d++)w=i[l.allColors[f][d]](w);return w}},{key:"transform",value:function(f,h){return h.all&&typeof f[r]=="string"&&(f[r]=this.colorize(f[t],f.level,f[r])),(h.level||h.all||!h.message)&&(f.level=this.colorize(f[t],f.level)),(h.all||h.message)&&(f.message=this.colorize(f[t],f.level,f.message)),f}}],[{key:"addColors",value:function(f){var h=Object.keys(f).reduce(function(w,d){return w[d]=s.test(f[d])?f[d].split(s):f[d],w},{});return l.allColors=Object.assign({},l.allColors||{},h),l.allColors}}]),l}();return nr.exports=function(l){return new p(l)},nr.exports.Colorizer=nr.exports.Format=p,nr.exports}var xi,ec;function Pv(){if(ec)return xi;ec=1;var e=Os(),n=e.Colorizer;return xi=function(a){return n.addColors(a.colors||a),a},xi}var Ii,tc;function kv(){if(tc)return Ii;tc=1;var e=ut();return Ii=e(function(n){return n.message=" ".concat(n.message),n}),Ii}var kr={exports:{}},ir={exports:{}},rc;function ud(){if(rc)return ir.exports;rc=1;function e(d){return o(d)||i(d)||a(d)||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 a(d,v){if(d){if(typeof d=="string")return t(d,v);var m=Object.prototype.toString.call(d).slice(8,-1);if(m==="Object"&&d.constructor&&(m=d.constructor.name),m==="Map"||m==="Set")return Array.from(d);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return t(d,v)}}function i(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function o(d){if(Array.isArray(d))return t(d)}function t(d,v){(v==null||v>d.length)&&(v=d.length);for(var m=0,c=new Array(v);m<v;m++)c[m]=d[m];return c}function r(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function s(d,v){for(var m=0;m<v.length;m++){var c=v[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,c.key,c)}}function p(d,v,m){return v&&s(d.prototype,v),m&&s(d,m),Object.defineProperty(d,"prototype",{writable:!1}),d}var l=ze(),u=l.configs,f=l.LEVEL,h=l.MESSAGE,w=function(){function d(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:u.npm.levels};r(this,d),this.paddings=d.paddingForLevels(v.levels,v.filler),this.options=v}return p(d,[{key:"transform",value:function(m,c){return m.message="".concat(this.paddings[m[f]]).concat(m.message),m[h]&&(m[h]="".concat(this.paddings[m[f]]).concat(m[h])),m}}],[{key:"getLongestLevel",value:function(m){var c=Object.keys(m).map(function(_){return _.length});return Math.max.apply(Math,e(c))}},{key:"paddingForLevel",value:function(m,c,_){var b=_+1-m.length,y=Math.floor(b/c.length),E="".concat(c).concat(c.repeat(y));return E.slice(0,b)}},{key:"paddingForLevels",value:function(m){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",_=d.getLongestLevel(m);return Object.keys(m).reduce(function(b,y){return b[y]=d.paddingForLevel(y,c,_),b},{})}}]),d}();return ir.exports=function(d){return new w(d)},ir.exports.Padder=ir.exports.Format=w,ir.exports}var nc;function Lv(){if(nc)return kr.exports;nc=1;function e(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function n(f,h){for(var w=0;w<h.length;w++){var d=h[w];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}function a(f,h,w){return h&&n(f.prototype,h),Object.defineProperty(f,"prototype",{writable:!1}),f}var i=Os(),o=i.Colorizer,t=ud(),r=t.Padder,s=ze(),p=s.configs,l=s.MESSAGE,u=function(){function f(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,f),h.levels||(h.levels=p.cli.levels),this.colorizer=new o(h),this.padder=new r(h),this.options=h}return a(f,[{key:"transform",value:function(w,d){return this.colorizer.transform(this.padder.transform(w,d),d),w[l]="".concat(w.level,":").concat(w.message),w}}]),f}();return kr.exports=function(f){return new u(f)},kr.exports.Format=u,kr.exports}var Lr={exports:{}},ic;function qv(){if(ic)return Lr.exports;ic=1;var e=ut();function n(i){if(i.every(a))return function(o){for(var t=o,r=0;r<i.length;r++)if(t=i[r].transform(t,i[r].options),!t)return!1;return t}}function a(i){if(typeof i.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 Lr.exports=function(){for(var i=arguments.length,o=new Array(i),t=0;t<i;t++)o[t]=arguments[t];var r=e(n(o)),s=r();return s.Format=r.Format,s},Lr.exports.cascade=n,Lr.exports}var Ai,ac;function jv(){if(ac)return Ai;ac=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=ut(),a=ze(),i=a.LEVEL,o=a.MESSAGE;return Ai=n(function(t,r){var s=r.stack;if(t instanceof Error){var p,l=Object.assign({},t,(p={level:t.level},e(p,i,t[i]||t.level),e(p,"message",t.message),e(p,o,t[o]||t.message),p));return s&&(l.stack=t.stack),l}if(!(t.message instanceof Error))return t;var u=t.message;return Object.assign(t,u),t.message=u.message,t[o]=u.message,s&&(t.stack=u.stack),t}),Ai}var qr={exports:{}},oc;function gr(){return oc||(oc=1,function(e,n){const{hasOwnProperty:a}=Object.prototype,i=b();i.configure=b,i.stringify=i,i.default=i,n.stringify=i,n.configure=b,e.exports=i;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,t=new RegExp(o,"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(y){if(y.length===2){const T=y.charCodeAt(1);return`${y[0]}\\u${T.toString(16)}`}const E=y.charCodeAt(0);return r.length>E?r[E]:`\\u${E.toString(16)}`}function p(y){if(y.length<5e3&&!o.test(y))return y;if(y.length>100)return y.replace(t,s);let E="",T=0;for(let R=0;R<y.length;R++){const x=y.charCodeAt(R);if(x===34||x===92||x<32)E+=`${y.slice(T,R)}${r[x]}`,T=R+1;else if(x>=55296&&x<=57343){if(x<=56319&&R+1<y.length){const j=y.charCodeAt(R+1);if(j>=56320&&j<=57343){R++;continue}}E+=`${y.slice(T,R)}\\u${x.toString(16)}`,T=R+1}}return E+=y.slice(T),E}function l(y){if(y.length>200)return y.sort();for(let E=1;E<y.length;E++){const T=y[E];let R=E;for(;R!==0&&y[R-1]>T;)y[R]=y[R-1],R--;y[R]=T}return y}const u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function f(y){return u.call(y)!==void 0&&y.length!==0}function h(y,E,T){y.length<T&&(T=y.length);const R=E===","?"":" ";let x=`"0":${R}${y[0]}`;for(let j=1;j<T;j++)x+=`${E}"${j}":${R}${y[j]}`;return x}function w(y){if(a.call(y,"circularValue")){const E=y.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 d(y,E){let T;if(a.call(y,E)&&(T=y[E],typeof T!="boolean"))throw new TypeError(`The "${E}" argument must be of type boolean`);return T===void 0?!0:T}function v(y,E){let T;if(a.call(y,E)){if(T=y[E],typeof T!="number")throw new TypeError(`The "${E}" argument must be of type number`);if(!Number.isInteger(T))throw new TypeError(`The "${E}" argument must be an integer`);if(T<1)throw new RangeError(`The "${E}" argument must be >= 1`)}return T===void 0?1/0:T}function m(y){return y===1?"1 item":`${y} items`}function c(y){const E=new Set;for(const T of y)(typeof T=="string"||typeof T=="number")&&E.add(String(T));return E}function _(y){if(a.call(y,"strict")){const E=y.strict;if(typeof E!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(E)return T=>{let R=`Object can not safely be stringified. Received type ${typeof T}`;throw typeof T!="function"&&(R+=` (${T.toString()})`),new Error(R)}}}function b(y){y={...y};const E=_(y);E&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const T=w(y),R=d(y,"bigint"),x=d(y,"deterministic"),j=v(y,"maximumDepth"),W=v(y,"maximumBreadth");function G(V,L,A,D,N,H){let Z=L[V];switch(typeof Z=="object"&&Z!==null&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(V)),Z=D.call(L,V,Z),typeof Z){case"string":return`"${p(Z)}"`;case"object":{if(Z===null)return"null";if(A.indexOf(Z)!==-1)return T;let B="",$=",";const U=H;if(Array.isArray(Z)){if(Z.length===0)return"[]";if(j<A.length+1)return'"[Array]"';A.push(Z),N!==""&&(H+=N,B+=`
|
|
108
|
+
${H}`,$=`,
|
|
109
|
+
${H}`);const ve=Math.min(Z.length,W);let ye=0;for(;ye<ve-1;ye++){const xe=G(ye,Z,A,D,N,H);B+=xe!==void 0?xe:"null",B+=$}const Ee=G(ye,Z,A,D,N,H);if(B+=Ee!==void 0?Ee:"null",Z.length-1>W){const xe=Z.length-W-1;B+=`${$}"... ${m(xe)} not stringified"`}return N!==""&&(B+=`
|
|
110
|
+
${U}`),A.pop(),`[${B}]`}let z=Object.keys(Z);const re=z.length;if(re===0)return"{}";if(j<A.length+1)return'"[Object]"';let te="",se="";N!==""&&(H+=N,$=`,
|
|
111
|
+
${H}`,te=" ");let fe=Math.min(re,W);f(Z)&&(B+=h(Z,$,W),z=z.slice(Z.length),fe-=Z.length,se=$),x&&(z=l(z)),A.push(Z);for(let ve=0;ve<fe;ve++){const ye=z[ve],Ee=G(ye,Z,A,D,N,H);Ee!==void 0&&(B+=`${se}"${p(ye)}":${te}${Ee}`,se=$)}if(re>W){const ve=re-W;B+=`${se}"...":${te}"${m(ve)} not stringified"`,se=$}return N!==""&&se.length>1&&(B=`
|
|
112
|
+
${H}${B}
|
|
113
|
+
${U}`),A.pop(),`{${B}}`}case"number":return isFinite(Z)?String(Z):E?E(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(R)return String(Z);default:return E?E(Z):void 0}}function O(V,L,A,D,N,H){switch(typeof L=="object"&&L!==null&&typeof L.toJSON=="function"&&(L=L.toJSON(V)),typeof L){case"string":return`"${p(L)}"`;case"object":{if(L===null)return"null";if(A.indexOf(L)!==-1)return T;const Z=H;let B="",$=",";if(Array.isArray(L)){if(L.length===0)return"[]";if(j<A.length+1)return'"[Array]"';A.push(L),N!==""&&(H+=N,B+=`
|
|
114
|
+
${H}`,$=`,
|
|
115
|
+
${H}`);const re=Math.min(L.length,W);let te=0;for(;te<re-1;te++){const fe=O(te,L[te],A,D,N,H);B+=fe!==void 0?fe:"null",B+=$}const se=O(te,L[te],A,D,N,H);if(B+=se!==void 0?se:"null",L.length-1>W){const fe=L.length-W-1;B+=`${$}"... ${m(fe)} not stringified"`}return N!==""&&(B+=`
|
|
116
|
+
${Z}`),A.pop(),`[${B}]`}A.push(L);let U="";N!==""&&(H+=N,$=`,
|
|
117
|
+
${H}`,U=" ");let z="";for(const re of D){const te=O(re,L[re],A,D,N,H);te!==void 0&&(B+=`${z}"${p(re)}":${U}${te}`,z=$)}return N!==""&&z.length>1&&(B=`
|
|
118
|
+
${H}${B}
|
|
119
|
+
${Z}`),A.pop(),`{${B}}`}case"number":return isFinite(L)?String(L):E?E(L):"null";case"boolean":return L===!0?"true":"false";case"undefined":return;case"bigint":if(R)return String(L);default:return E?E(L):void 0}}function I(V,L,A,D,N){switch(typeof L){case"string":return`"${p(L)}"`;case"object":{if(L===null)return"null";if(typeof L.toJSON=="function"){if(L=L.toJSON(V),typeof L!="object")return I(V,L,A,D,N);if(L===null)return"null"}if(A.indexOf(L)!==-1)return T;const H=N;if(Array.isArray(L)){if(L.length===0)return"[]";if(j<A.length+1)return'"[Array]"';A.push(L),N+=D;let te=`
|
|
120
|
+
${N}`;const se=`,
|
|
121
|
+
${N}`,fe=Math.min(L.length,W);let ve=0;for(;ve<fe-1;ve++){const Ee=I(ve,L[ve],A,D,N);te+=Ee!==void 0?Ee:"null",te+=se}const ye=I(ve,L[ve],A,D,N);if(te+=ye!==void 0?ye:"null",L.length-1>W){const Ee=L.length-W-1;te+=`${se}"... ${m(Ee)} not stringified"`}return te+=`
|
|
122
|
+
${H}`,A.pop(),`[${te}]`}let Z=Object.keys(L);const B=Z.length;if(B===0)return"{}";if(j<A.length+1)return'"[Object]"';N+=D;const $=`,
|
|
123
|
+
${N}`;let U="",z="",re=Math.min(B,W);f(L)&&(U+=h(L,$,W),Z=Z.slice(L.length),re-=L.length,z=$),x&&(Z=l(Z)),A.push(L);for(let te=0;te<re;te++){const se=Z[te],fe=I(se,L[se],A,D,N);fe!==void 0&&(U+=`${z}"${p(se)}": ${fe}`,z=$)}if(B>W){const te=B-W;U+=`${z}"...": "${m(te)} not stringified"`,z=$}return z!==""&&(U=`
|
|
124
|
+
${N}${U}
|
|
125
|
+
${H}`),A.pop(),`{${U}}`}case"number":return isFinite(L)?String(L):E?E(L):"null";case"boolean":return L===!0?"true":"false";case"undefined":return;case"bigint":if(R)return String(L);default:return E?E(L):void 0}}function q(V,L,A){switch(typeof L){case"string":return`"${p(L)}"`;case"object":{if(L===null)return"null";if(typeof L.toJSON=="function"){if(L=L.toJSON(V),typeof L!="object")return q(V,L,A);if(L===null)return"null"}if(A.indexOf(L)!==-1)return T;let D="";if(Array.isArray(L)){if(L.length===0)return"[]";if(j<A.length+1)return'"[Array]"';A.push(L);const $=Math.min(L.length,W);let U=0;for(;U<$-1;U++){const re=q(U,L[U],A);D+=re!==void 0?re:"null",D+=","}const z=q(U,L[U],A);if(D+=z!==void 0?z:"null",L.length-1>W){const re=L.length-W-1;D+=`,"... ${m(re)} not stringified"`}return A.pop(),`[${D}]`}let N=Object.keys(L);const H=N.length;if(H===0)return"{}";if(j<A.length+1)return'"[Object]"';let Z="",B=Math.min(H,W);f(L)&&(D+=h(L,",",W),N=N.slice(L.length),B-=L.length,Z=","),x&&(N=l(N)),A.push(L);for(let $=0;$<B;$++){const U=N[$],z=q(U,L[U],A);z!==void 0&&(D+=`${Z}"${p(U)}":${z}`,Z=",")}if(H>W){const $=H-W;D+=`${Z}"...":"${m($)} not stringified"`}return A.pop(),`{${D}}`}case"number":return isFinite(L)?String(L):E?E(L):"null";case"boolean":return L===!0?"true":"false";case"undefined":return;case"bigint":if(R)return String(L);default:return E?E(L):void 0}}function F(V,L,A){if(arguments.length>1){let D="";if(typeof A=="number"?D=" ".repeat(Math.min(A,10)):typeof A=="string"&&(D=A.slice(0,10)),L!=null){if(typeof L=="function")return G("",{"":V},[],L,D,"");if(Array.isArray(L))return O("",V,[],c(L),D,"")}if(D.length!==0)return I("",V,[],D,"")}return q("",V,[])}return F}}(qr,qr.exports)),qr.exports}var Ci,sc;function Dv(){if(sc)return Ci;sc=1;var e=ut(),n=ze(),a=n.MESSAGE,i=gr();function o(t,r){return typeof r=="bigint"?r.toString():r}return Ci=e(function(t,r){var s=i.configure(r);return t[a]=s(t,r.replacer||o,r.space),t}),Ci}var Pi,uc;function Nv(){if(uc)return Pi;uc=1;var e=ut();return Pi=e(function(n,a){return a.message?(n.message="[".concat(a.label,"] ").concat(n.message),n):(n.label=a.label,n)}),Pi}var ki,cc;function $v(){if(cc)return ki;cc=1;var e=ut(),n=ze(),a=n.MESSAGE,i=gr();return ki=e(function(o){var t={};return o.message&&(t["@message"]=o.message,delete o.message),o.timestamp&&(t["@timestamp"]=o.timestamp,delete o.timestamp),t["@fields"]=o,o[a]=i(t),o}),ki}var Li,fc;function Mv(){if(fc)return Li;fc=1;function e(o,t,r){return t in o?Object.defineProperty(o,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[t]=r,o}var n=ut();function a(o,t,r){var s=t.reduce(function(l,u){return l[u]=o[u],delete o[u],l},{}),p=Object.keys(o).reduce(function(l,u){return l[u]=o[u],delete o[u],l},{});return Object.assign(o,s,e({},r,p)),o}function i(o,t,r){return o[r]=t.reduce(function(s,p){return s[p]=o[p],delete o[p],s},{}),o}return Li=n(function(o){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?a(o,s,r):t.fillWith?i(o,t.fillWith,r):o}),Li}var qi,lc;function cd(){if(lc)return qi;lc=1;var e=1e3,n=e*60,a=n*60,i=a*24,o=i*7,t=i*365.25;qi=function(u,f){f=f||{};var h=typeof u;if(h==="string"&&u.length>0)return r(u);if(h==="number"&&isFinite(u))return f.long?p(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function r(u){if(u=String(u),!(u.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(u);if(f){var h=parseFloat(f[1]),w=(f[2]||"ms").toLowerCase();switch(w){case"years":case"year":case"yrs":case"yr":case"y":return h*t;case"weeks":case"week":case"w":return h*o;case"days":case"day":case"d":return h*i;case"hours":case"hour":case"hrs":case"hr":case"h":return h*a;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var f=Math.abs(u);return f>=i?Math.round(u/i)+"d":f>=a?Math.round(u/a)+"h":f>=n?Math.round(u/n)+"m":f>=e?Math.round(u/e)+"s":u+"ms"}function p(u){var f=Math.abs(u);return f>=i?l(u,f,i,"day"):f>=a?l(u,f,a,"hour"):f>=n?l(u,f,n,"minute"):f>=e?l(u,f,e,"second"):u+" ms"}function l(u,f,h,w){var d=f>=h*1.5;return Math.round(u/h)+" "+w+(d?"s":"")}return qi}var ji,hc;function Fv(){if(hc)return ji;hc=1;var e=void 0,n=ut(),a=cd();return ji=n(function(i){var o=+new Date;return e.diff=o-(e.prevTime||o),e.prevTime=o,i.ms="+".concat(a(e.diff)),i}),ji}var Di,dc;function Uv(){if(dc)return Di;dc=1;var e=Xe().inspect,n=ut(),a=ze(),i=a.LEVEL,o=a.MESSAGE,t=a.SPLAT;return Di=n(function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=Object.assign({},r);return delete p[i],delete p[o],delete p[t],r[o]=e(p,!1,s.depth||null,s.colorize),r}),Di}var ar={exports:{}},pc;function Bv(){if(pc)return ar.exports;pc=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 p=0;p<s.length;p++){var l=s[p];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}function a(r,s,p){return s&&n(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r}var i=ze(),o=i.MESSAGE,t=function(){function r(s){e(this,r),this.template=s}return a(r,[{key:"transform",value:function(p){return p[o]=this.template(p),p}}]),r}();return ar.exports=function(r){return new t(r)},ar.exports.Printf=ar.exports.Format=t,ar.exports}var Ni,mc;function Vv(){if(mc)return Ni;mc=1;var e=ut(),n=ze(),a=n.MESSAGE,i=gr();return Ni=e(function(o){var t=i(Object.assign({},o,{level:void 0,message:void 0,splat:void 0})),r=o.padding&&o.padding[o.level]||"";return t!=="{}"?o[a]="".concat(o.level,":").concat(r," ").concat(o.message," ").concat(t):o[a]="".concat(o.level,":").concat(r," ").concat(o.message),o}),Ni}var $i,gc;function zv(){if(gc)return $i;gc=1;function e(v){return o(v)||i(v)||a(v)||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 a(v,m){if(v){if(typeof v=="string")return t(v,m);var c=Object.prototype.toString.call(v).slice(8,-1);if(c==="Object"&&v.constructor&&(c=v.constructor.name),c==="Map"||c==="Set")return Array.from(v);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return t(v,m)}}function i(v){if(typeof Symbol<"u"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function o(v){if(Array.isArray(v))return t(v)}function t(v,m){(m==null||m>v.length)&&(m=v.length);for(var c=0,_=new Array(m);c<m;c++)_[c]=v[c];return _}function r(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function s(v,m){for(var c=0;c<m.length;c++){var _=m[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}function p(v,m,c){return m&&s(v.prototype,m),Object.defineProperty(v,"prototype",{writable:!1}),v}var l=Xe(),u=ze(),f=u.SPLAT,h=/%[scdjifoO%]/g,w=/%%/g,d=function(){function v(m){r(this,v),this.options=m}return p(v,[{key:"_splat",value:function(c,_){var b=c.message,y=c[f]||c.splat||[],E=b.match(w),T=E&&E.length||0,R=_.length-T,x=R-y.length,j=x<0?y.splice(x,-1*x):[],W=j.length;if(W)for(var G=0;G<W;G++)Object.assign(c,j[G]);return c.message=l.format.apply(l,[b].concat(e(y))),c}},{key:"transform",value:function(c){var _=c.message,b=c[f]||c.splat;if(!b||!b.length)return c;var y=_&&_.match&&_.match(h);if(!y&&(b||b.length)){var E=b.length>1?b.splice(0):b,T=E.length;if(T)for(var R=0;R<T;R++)Object.assign(c,E[R]);return c}return y?this._splat(c,y):c}}]),v}();return $i=function(v){return new d(v)},$i}var fd=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Rt="\\d\\d?",Et="\\d\\d",Gv="\\d{3}",Hv="\\d{4}",ur="[^\\s]+",ld=/\[([^]*?)\]/gm;function hd(e,n){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].substr(0,n));return a}var vc=function(e){return function(n,a){var i=a[e].map(function(t){return t.toLowerCase()}),o=i.indexOf(n.toLowerCase());return o>-1?o:null}};function Tt(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];for(var i=0,o=n;i<o.length;i++){var t=o[i];for(var r in t)e[r]=t[r]}return e}var dd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],pd=["January","February","March","April","May","June","July","August","September","October","November","December"],Zv=hd(pd,3),Wv=hd(dd,3),Ts={dayNamesShort:Wv,dayNames:dd,monthNamesShort:Zv,monthNames:pd,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},ln=Tt({},Ts),md=function(e){return ln=Tt(ln,e)},yc=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},it=function(e,n){for(n===void 0&&(n=2),e=String(e);e.length<n;)e="0"+e;return e},Kv={D:function(e){return String(e.getDate())},DD:function(e){return it(e.getDate())},Do:function(e,n){return n.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return it(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 it(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 it(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return it(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return it(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return it(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return it(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return it(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return it(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return it(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?"-":"+")+it(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4)},Z:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+it(Math.floor(Math.abs(n)/60),2)+":"+it(Math.abs(n)%60,2)}},_c=function(e){return+e-1},bc=[null,Rt],wc=[null,ur],Sc=["isPm",ur,function(e,n){var a=e.toLowerCase();return a===n.amPm[0]?0:a===n.amPm[1]?1:null}],Ec=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var n=(e+"").match(/([+-]|\d\d)/gi);if(n){var a=+n[1]*60+parseInt(n[2],10);return n[0]==="+"?a:-a}return 0}],Yv={D:["day",Rt],DD:["day",Et],Do:["day",Rt+ur,function(e){return parseInt(e,10)}],M:["month",Rt,_c],MM:["month",Et,_c],YY:["year",Et,function(e){var n=new Date,a=+(""+n.getFullYear()).substr(0,2);return+(""+(+e>68?a-1:a)+e)}],h:["hour",Rt,void 0,"isPm"],hh:["hour",Et,void 0,"isPm"],H:["hour",Rt],HH:["hour",Et],m:["minute",Rt],mm:["minute",Et],s:["second",Rt],ss:["second",Et],YYYY:["year",Hv],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",Et,function(e){return+e*10}],SSS:["millisecond",Gv],d:bc,dd:bc,ddd:wc,dddd:wc,MMM:["month",ur,vc("monthNamesShort")],MMMM:["month",ur,vc("monthNames")],a:Sc,A:Sc,ZZ:Ec,Z:Ec},hn={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"},gd=function(e){return Tt(hn,e)},vd=function(e,n,a){if(n===void 0&&(n=hn.default),a===void 0&&(a={}),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=hn[n]||n;var i=[];n=n.replace(ld,function(t,r){return i.push(r),"@@@"});var o=Tt(Tt({},ln),a);return n=n.replace(fd,function(t){return Kv[t](e,o)}),n.replace(/@@@/g,function(){return i.shift()})};function yd(e,n,a){if(a===void 0&&(a={}),typeof n!="string")throw new Error("Invalid format in fecha parse");if(n=hn[n]||n,e.length>1e3)return null;var i=new Date,o={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},t=[],r=[],s=n.replace(ld,function(y,E){return r.push(yc(E)),"@@@"}),p={},l={};s=yc(s).replace(fd,function(y){var E=Yv[y],T=E[0],R=E[1],x=E[3];if(p[T])throw new Error("Invalid format. "+T+" specified twice in format");return p[T]=!0,x&&(l[x]=!0),t.push(E),"("+R+")"}),Object.keys(l).forEach(function(y){if(!p[y])throw new Error("Invalid format. "+y+" is required in specified format")}),s=s.replace(/@@@/g,function(){return r.shift()});var u=e.match(new RegExp(s,"i"));if(!u)return null;for(var f=Tt(Tt({},ln),a),h=1;h<u.length;h++){var w=t[h-1],d=w[0],v=w[2],m=v?v(u[h],f):+u[h];if(m==null)return null;o[d]=m}o.isPm===1&&o.hour!=null&&+o.hour!=12?o.hour=+o.hour+12:o.isPm===0&&+o.hour==12&&(o.hour=0);var c;if(o.timezoneOffset==null){c=new Date(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],h=0,b=_.length;h<b;h++)if(p[_[h][0]]&&o[_[h][0]]!==c[_[h][1]]())return null}else if(c=new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute-o.timezoneOffset,o.second,o.millisecond)),o.month>11||o.month<0||o.day>31||o.day<1||o.hour>23||o.hour<0||o.minute>59||o.minute<0||o.second>59||o.second<0)return null;return c}var Jv={format:vd,parse:yd,defaultI18n:Ts,setGlobalDateI18n:md,setGlobalDateMasks:gd};const Xv=Object.freeze(Object.defineProperty({__proto__:null,assign:Tt,default:Jv,defaultI18n:Ts,format:vd,parse:yd,setGlobalDateI18n:md,setGlobalDateMasks:gd},Symbol.toStringTag,{value:"Module"})),Qv=Hh(Xv);var Mi,Rc;function ey(){if(Rc)return Mi;Rc=1;var e=Qv,n=ut();return Mi=n(function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.format&&(a.timestamp=typeof i.format=="function"?i.format():e.format(new Date,i.format)),a.timestamp||(a.timestamp=new Date().toISOString()),i.alias&&(a[i.alias]=a.timestamp),a}),Mi}var Fi,Oc;function ty(){if(Oc)return Fi;Oc=1;var e=sd(),n=ut(),a=ze(),i=a.MESSAGE;return Fi=n(function(o,t){return t.level!==!1&&(o.level=e.strip(o.level)),t.message!==!1&&(o.message=e.strip(String(o.message))),t.raw!==!1&&o[i]&&(o[i]=e.strip(String(o[i]))),o}),Fi}var Tc;function _d(){if(Tc)return Ir;Tc=1;var e=Ir.format=ut();return Ir.levels=Pv(),Object.defineProperty(e,"align",{value:kv()}),Object.defineProperty(e,"cli",{value:Lv()}),Object.defineProperty(e,"colorize",{value:Os()}),Object.defineProperty(e,"combine",{value:qv()}),Object.defineProperty(e,"errors",{value:jv()}),Object.defineProperty(e,"json",{value:Dv()}),Object.defineProperty(e,"label",{value:Nv()}),Object.defineProperty(e,"logstash",{value:$v()}),Object.defineProperty(e,"metadata",{value:Mv()}),Object.defineProperty(e,"ms",{value:Fv()}),Object.defineProperty(e,"padLevels",{value:ud()}),Object.defineProperty(e,"prettyPrint",{value:Uv()}),Object.defineProperty(e,"printf",{value:Bv()}),Object.defineProperty(e,"simple",{value:Vv()}),Object.defineProperty(e,"splat",{value:zv()}),Object.defineProperty(e,"timestamp",{value:ey()}),Object.defineProperty(e,"uncolorize",{value:ty()}),Ir}var Ui={},xc;function bd(){return xc||(xc=1,function(e){var n=Xe(),a=n.format;e.warn={deprecated:function(o){return function(){throw new Error(a("{ %s } was removed in winston@3.0.0.",o))}},useFormat:function(o){return function(){throw new Error([a("{ %s } was removed in winston@3.0.0.",o),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
127
|
+
`))}},forFunctions:function(o,t,r){r.forEach(function(s){o[s]=e.warn[t](s)})},moved:function(o,t,r){function s(){return function(){throw new Error([a("winston.%s was moved in winston@3.0.0.",r),a("Use a winston.%s instead.",t)].join(`
|
|
128
|
+
`))}}Object.defineProperty(o,r,{get:s,set:s})},forProperties:function(o,t,r){r.forEach(function(s){var p=e.warn[t](s);Object.defineProperty(o,s,{get:p,set:p})})}}}(Ui)),Ui}const ry="3.8.2",ny={version:ry};var Bi={},jr={exports:{}},Vi={exports:{}},Ic;function iy(){if(Ic)return Vi.exports;Ic=1;var e=Xe(),n=ze(),a=n.LEVEL,i=Ft(),o=Vi.exports=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(i.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(p){this.emit("error",p,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=s.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(o,i),o.prototype._write=function(r,s,p){if(this.silent||r.exception===!0&&!this.handleExceptions)return p(null);(!this.level||this.levels[this.level]>=this.levels[r[a]])&&this.transport.log(r[a],r.message,r,this._nop),p(null)},o.prototype._writev=function(r,s){for(var p=0;p<r.length;p++)this._accept(r[p])&&(this.transport.log(r[p].chunk[a],r[p].chunk.message,r[p].chunk,this._nop),r[p].callback());return s(null)},o.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
|
+
`))},o.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},Vi.exports}var Ac;function Ft(){if(Ac)return jr.exports;Ac=1;var e=Xe(),n=Zh(),a=ze(),i=a.LEVEL,o=jr.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(p){r.levels=p.levels,r.parent=p}),this.once("unpipe",function(p){p===r.parent&&(r.parent=null,r.close&&r.close())})};return e.inherits(o,n),o.prototype._write=function(r,s,p){if(this.silent||r.exception===!0&&!this.handleExceptions)return p(null);var l=this.level||this.parent&&this.parent.level;if(!l||this.levels[l]>=this.levels[r[i]]){if(r&&!this.format)return this.log(r,p);var u=void 0,f=void 0;try{f=this.format.transform(Object.assign({},r),this.format.options)}catch(h){u=h}if(u||!f){if(p(),u)throw u;return}return this.log(f,p)}return this._writableState.sync=!1,p(null)},o.prototype._writev=function(r,s){if(this.logv){var p=r.filter(this._accept,this);return p.length?this.logv(p,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 u=void 0,f=void 0;try{f=this.format.transform(Object.assign({},r[l].chunk),this.format.options)}catch(h){u=h}if(u||!f){if(r[l].callback(),u)throw s(null),u}else this.log(f,r[l].callback)}return s(null)},o.prototype._accept=function(r){var s=r.chunk;if(this.silent)return!1;var p=this.level||this.parent&&this.parent.level;return!!((s.exception===!0||!p||this.levels[p]>=this.levels[s[i]])&&(this.handleExceptions||s.exception!==!0))},o.prototype._nop=function(){},jr.exports.LegacyTransportStream=iy(),jr.exports}var zi,Cc;function ay(){if(Cc)return zi;Cc=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(m)}function n(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}function a(m,c){for(var _=0;_<c.length;_++){var b=c[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}function i(m,c,_){return c&&a(m.prototype,c),Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),c&&t(m,c)}function t(m,c){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,y){return b.__proto__=y,b},t(m,c)}function r(m){var c=l();return function(){var b=u(m),y;if(c){var E=u(this).constructor;y=Reflect.construct(b,arguments,E)}else y=b.apply(this,arguments);return s(this,y)}}function s(m,c){if(c&&(e(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(m)}function p(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 u(m){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},u(m)}var f=Mt(),h=ze(),w=h.LEVEL,d=h.MESSAGE,v=Ft();return zi=function(m){o(_,m);var c=r(_);function _(){var b,y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(this,_),b=c.call(this,y),b.name=y.name||"console",b.stderrLevels=b._stringArrayToSet(y.stderrLevels),b.consoleWarnLevels=b._stringArrayToSet(y.consoleWarnLevels),b.eol=typeof y.eol=="string"?y.eol:f.EOL,b.setMaxListeners(30),b}return i(_,[{key:"log",value:function(y,E){var T=this;if(setImmediate(function(){return T.emit("logged",y)}),this.stderrLevels[y[w]]){console._stderr?console._stderr.write("".concat(y[d]).concat(this.eol)):console.error(y[d]),E&&E();return}else if(this.consoleWarnLevels[y[w]]){console._stderr?console._stderr.write("".concat(y[d]).concat(this.eol)):console.warn(y[d]),E&&E();return}console._stdout?console._stdout.write("".concat(y[d]).concat(this.eol)):console.log(y[d]),E&&E()}},{key:"_stringArrayToSet",value:function(y,E){if(!y)return{};if(E=E||"Cannot make set from type other than Array of string elements",!Array.isArray(y))throw new Error(E);return y.reduce(function(T,R){if(typeof R!="string")throw new Error(E);return T[R]=!0,T},{})}}]),_}(v),zi}var Gi,Pc;function xs(){if(Pc)return Gi;Pc=1;var e=null;return Gi=e,Gi}var Hi,kc;function wd(){if(kc)return Hi;kc=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function n(o,t){for(var r="",s=0,p=-1,l=0,u,f=0;f<=o.length;++f){if(f<o.length)u=o.charCodeAt(f);else{if(u===47)break;u=47}if(u===47){if(!(p===f-1||l===1))if(p!==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 h=r.lastIndexOf("/");if(h!==r.length-1){h===-1?(r="",s=0):(r=r.slice(0,h),s=r.length-1-r.lastIndexOf("/")),p=f,l=0;continue}}else if(r.length===2||r.length===1){r="",s=0,p=f,l=0;continue}}t&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+o.slice(p+1,f):r=o.slice(p+1,f),s=f-p-1;p=f,l=0}else u===46&&l!==-1?++l:l=-1}return r}function a(o,t){var r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+o+s:s}var i={resolve:function(){for(var t="",r=!1,s,p=arguments.length-1;p>=-1&&!r;p--){var l;p>=0?l=arguments[p]:(s===void 0&&(s=Re.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?".":i.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r||(t=i.resolve(t),r=i.resolve(r),t===r))return"";for(var s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var p=t.length,l=p-s,u=1;u<r.length&&r.charCodeAt(u)===47;++u);for(var f=r.length,h=f-u,w=l<h?l:h,d=-1,v=0;v<=w;++v){if(v===w){if(h>w){if(r.charCodeAt(u+v)===47)return r.slice(u+v+1);if(v===0)return r.slice(u+v)}else l>w&&(t.charCodeAt(s+v)===47?d=v:v===0&&(d=0));break}var m=t.charCodeAt(s+v),c=r.charCodeAt(u+v);if(m!==c)break;m===47&&(d=v)}var _="";for(v=s+d+1;v<=p;++v)(v===p||t.charCodeAt(v)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(u+d):(u+=d,r.charCodeAt(u)===47&&++u,r.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(e(t),t.length===0)return".";for(var r=t.charCodeAt(0),s=r===47,p=-1,l=!0,u=t.length-1;u>=1;--u)if(r=t.charCodeAt(u),r===47){if(!l){p=u;break}}else l=!1;return p===-1?s?"/":".":s&&p===1?"//":t.slice(0,p)},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,p=-1,l=!0,u;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var f=r.length-1,h=-1;for(u=t.length-1;u>=0;--u){var w=t.charCodeAt(u);if(w===47){if(!l){s=u+1;break}}else h===-1&&(l=!1,h=u+1),f>=0&&(w===r.charCodeAt(f)?--f===-1&&(p=u):(f=-1,p=h))}return s===p?p=h:p===-1&&(p=t.length),t.slice(s,p)}else{for(u=t.length-1;u>=0;--u)if(t.charCodeAt(u)===47){if(!l){s=u+1;break}}else p===-1&&(l=!1,p=u+1);return p===-1?"":t.slice(s,p)}},extname:function(t){e(t);for(var r=-1,s=0,p=-1,l=!0,u=0,f=t.length-1;f>=0;--f){var h=t.charCodeAt(f);if(h===47){if(!l){s=f+1;break}continue}p===-1&&(l=!1,p=f+1),h===46?r===-1?r=f:u!==1&&(u=1):r!==-1&&(u=-1)}return r===-1||p===-1||u===0||u===1&&r===p-1&&r===s+1?"":t.slice(r,p)},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 a("/",t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var s=t.charCodeAt(0),p=s===47,l;p?(r.root="/",l=1):l=0;for(var u=-1,f=0,h=-1,w=!0,d=t.length-1,v=0;d>=l;--d){if(s=t.charCodeAt(d),s===47){if(!w){f=d+1;break}continue}h===-1&&(w=!1,h=d+1),s===46?u===-1?u=d:v!==1&&(v=1):u!==-1&&(v=-1)}return u===-1||h===-1||v===0||v===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&p?r.base=r.name=t.slice(1,h):r.base=r.name=t.slice(f,h)):(f===0&&p?(r.name=t.slice(1,u),r.base=t.slice(1,h)):(r.name=t.slice(f,u),r.base=t.slice(f,h)),r.ext=t.slice(u,h)),f>0?r.dir=t.slice(0,f-1):p&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Hi=i,Hi}var Dr={exports:{}},Nr={exports:{}},$r={exports:{}},Lc;function Is(){return Lc||(Lc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;function a(i){return i&&typeof i.length=="number"&&i.length>=0&&i.length%1===0}e.exports=n.default}($r,$r.exports)),$r.exports}var gt={},Mr={exports:{}},Fr={exports:{}},qc;function oy(){return qc||(qc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(a){return function(...i){var o=i.pop();return a.call(this,i,o)}},e.exports=n.default}(Fr,Fr.exports)),Fr.exports}var _t={},jc;function sy(){if(jc)return _t;jc=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.fallback=i,_t.wrap=o;var e=_t.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,n=_t.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,a=_t.hasNextTick=typeof Re=="object"&&typeof Re.nextTick=="function";function i(r){setTimeout(r,0)}function o(r){return(s,...p)=>r(()=>s(...p))}var t;return e?t=queueMicrotask:n?t=setImmediate:a?t=Re.nextTick:t=i,_t.default=o(t),_t}var Dc;function uy(){return Dc||(Dc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=p;var a=oy(),i=s(a),o=sy(),t=s(o),r=Jt();function s(f){return f&&f.__esModule?f:{default:f}}function p(f){return(0,r.isAsync)(f)?function(...h){const w=h.pop(),d=f.apply(this,h);return l(d,w)}:(0,i.default)(function(h,w){var d;try{d=f.apply(this,h)}catch(v){return w(v)}if(d&&typeof d.then=="function")return l(d,w);w(null,d)})}function l(f,h){return f.then(w=>{u(h,null,w)},w=>{u(h,w&&w.message?w:new Error(w))})}function u(f,h,w){try{f(h,w)}catch(d){(0,t.default)(v=>{throw v},d)}}e.exports=n.default}(Mr,Mr.exports)),Mr.exports}var Nc;function Jt(){if(Nc)return gt;Nc=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.isAsyncIterable=gt.isAsyncGenerator=gt.isAsync=void 0;var e=uy(),n=a(e);function a(s){return s&&s.__esModule?s:{default:s}}function i(s){return s[Symbol.toStringTag]==="AsyncFunction"}function o(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 i(s)?(0,n.default)(s):s}return gt.default=r,gt.isAsync=i,gt.isAsyncGenerator=o,gt.isAsyncIterable=t,gt}var Ur={exports:{}},$c;function vr(){return $c||($c=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;function a(i,o=i.length){if(!o)throw new Error("arity is undefined");function t(...r){return typeof r[o-1]=="function"?i.apply(this,r):new Promise((s,p)=>{r[o-1]=(l,...u)=>{if(l)return p(l);s(u.length>1?u:u[0])},i.apply(this,r)})}return t}e.exports=n.default}(Ur,Ur.exports)),Ur.exports}var Mc;function cy(){return Mc||(Mc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=Is(),i=p(a),o=Jt(),t=p(o),r=vr(),s=p(r);function p(l){return l&&l.__esModule?l:{default:l}}n.default=(0,s.default)((l,u,f)=>{var h=(0,i.default)(u)?[]:{};l(u,(w,d,v)=>{(0,t.default)(w)((m,...c)=>{c.length<2&&([c]=c),h[d]=c,v(m)})},w=>f(w,h))},3),e.exports=n.default}(Nr,Nr.exports)),Nr.exports}var Br={exports:{}},Vr={exports:{}},zr={exports:{}},Gr={exports:{}},Fc;function Sd(){return Fc||(Fc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;function a(i){function o(...t){if(i!==null){var r=i;i=null,r.apply(this,t)}}return Object.assign(o,i),o}e.exports=n.default}(Gr,Gr.exports)),Gr.exports}var Hr={exports:{}},Zr={exports:{}},Uc;function fy(){return Uc||(Uc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(a){return a[Symbol.iterator]&&a[Symbol.iterator]()},e.exports=n.default}(Zr,Zr.exports)),Zr.exports}var Bc;function ly(){return Bc||(Bc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var a=Is(),i=r(a),o=fy(),t=r(o);function r(f){return f&&f.__esModule?f:{default:f}}function s(f){var h=-1,w=f.length;return function(){return++h<w?{value:f[h],key:h}:null}}function p(f){var h=-1;return function(){var d=f.next();return d.done?null:(h++,{value:d.value,key:h})}}function l(f){var h=f?Object.keys(f):[],w=-1,d=h.length;return function v(){var m=h[++w];return m==="__proto__"?v():w<d?{value:f[m],key:m}:null}}function u(f){if((0,i.default)(f))return s(f);var h=(0,t.default)(f);return h?p(h):l(f)}e.exports=n.default}(Hr,Hr.exports)),Hr.exports}var Wr={exports:{}},Vc;function Ed(){return Vc||(Vc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;function a(i){return function(...o){if(i===null)throw new Error("Callback was already called.");var t=i;i=null,t.apply(this,o)}}e.exports=n.default}(Wr,Wr.exports)),Wr.exports}var Kr={exports:{}},Yr={exports:{}},zc;function As(){return zc||(zc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});const a={};n.default=a,e.exports=n.default}(Yr,Yr.exports)),Yr.exports}var Gc;function hy(){return Gc||(Gc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;var a=As(),i=o(a);function o(r){return r&&r.__esModule?r:{default:r}}function t(r,s,p,l){let u=!1,f=!1,h=!1,w=0,d=0;function v(){w>=s||h||u||(h=!0,r.next().then(({value:_,done:b})=>{if(!(f||u)){if(h=!1,b){u=!0,w<=0&&l(null);return}w++,p(_,d,m),d++,v()}}).catch(c))}function m(_,b){if(w-=1,!f){if(_)return c(_);if(_===!1){u=!0,f=!0;return}if(b===i.default||u&&w<=0)return u=!0,l(null);v()}}function c(_){f||(h=!1,u=!0,l(_))}v()}e.exports=n.default}(Kr,Kr.exports)),Kr.exports}var Hc;function dy(){return Hc||(Hc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=Sd(),i=w(a),o=ly(),t=w(o),r=Ed(),s=w(r),p=Jt(),l=hy(),u=w(l),f=As(),h=w(f);function w(d){return d&&d.__esModule?d:{default:d}}n.default=d=>(v,m,c)=>{if(c=(0,i.default)(c),d<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!v)return c(null);if((0,p.isAsyncGenerator)(v))return(0,u.default)(v,d,m,c);if((0,p.isAsyncIterable)(v))return(0,u.default)(v[Symbol.asyncIterator](),d,m,c);var _=(0,t.default)(v),b=!1,y=!1,E=0,T=!1;function R(j,W){if(!y)if(E-=1,j)b=!0,c(j);else if(j===!1)b=!0,y=!0;else{if(W===h.default||b&&E<=0)return b=!0,c(null);T||x()}}function x(){for(T=!0;E<d&&!b;){var j=_();if(j===null){b=!0,E<=0&&c(null);return}E+=1,m(j.value,j.key,(0,s.default)(R))}T=!1}x()},e.exports=n.default}(zr,zr.exports)),zr.exports}var Zc;function Rd(){return Zc||(Zc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=dy(),i=p(a),o=Jt(),t=p(o),r=vr(),s=p(r);function p(u){return u&&u.__esModule?u:{default:u}}function l(u,f,h,w){return(0,i.default)(f)(u,(0,t.default)(h),w)}n.default=(0,s.default)(l,4),e.exports=n.default}(Vr,Vr.exports)),Vr.exports}var Wc;function py(){return Wc||(Wc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=Rd(),i=r(a),o=vr(),t=r(o);function r(p){return p&&p.__esModule?p:{default:p}}function s(p,l,u){return(0,i.default)(p,1,l,u)}n.default=(0,t.default)(s,3),e.exports=n.default}(Br,Br.exports)),Br.exports}var Kc;function my(){return Kc||(Kc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var a=cy(),i=r(a),o=py(),t=r(o);function r(p){return p&&p.__esModule?p:{default:p}}function s(p,l){return(0,i.default)(t.default,p,l)}e.exports=n.default}(Dr,Dr.exports)),Dr.exports}var Zi={},Wi={},Ki,Yc;function gy(){if(Yc)return Ki;Yc=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return Ki=e,Ki}var lt={},Yi={},Jc;function Sn(){return Jc||(Jc=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var p in s)a(s,p)&&(t[p]=s[p])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,p,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+p),l);return}for(var u=0;u<p;u++)t[l+u]=r[s+u]},flattenChunks:function(t){var r,s,p,l,u,f;for(p=0,r=0,s=t.length;r<s;r++)p+=t[r].length;for(f=new Uint8Array(p),l=0,r=0,s=t.length;r<s;r++)u=t[r],f.set(u,l),l+=u.length;return f}},o={arraySet:function(t,r,s,p,l){for(var u=0;u<p;u++)t[l+u]=r[s+u]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(n)}(Yi)),Yi}var Lt={},Xc;function vy(){if(Xc)return Lt;Xc=1;var e=Sn(),n=4,a=0,i=1,o=2;function t(k){for(var oe=k.length;--oe>=0;)k[oe]=0}var r=0,s=1,p=2,l=3,u=258,f=29,h=256,w=h+1+f,d=30,v=19,m=2*w+1,c=15,_=16,b=7,y=256,E=16,T=17,R=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],j=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=512,I=new Array((w+2)*2);t(I);var q=new Array(d*2);t(q);var F=new Array(O);t(F);var V=new Array(u-l+1);t(V);var L=new Array(f);t(L);var A=new Array(d);t(A);function D(k,oe,ue,he,Y){this.static_tree=k,this.extra_bits=oe,this.extra_base=ue,this.elems=he,this.max_length=Y,this.has_stree=k&&k.length}var N,H,Z;function B(k,oe){this.dyn_tree=k,this.max_code=0,this.stat_desc=oe}function $(k){return k<256?F[k]:F[256+(k>>>7)]}function U(k,oe){k.pending_buf[k.pending++]=oe&255,k.pending_buf[k.pending++]=oe>>>8&255}function z(k,oe,ue){k.bi_valid>_-ue?(k.bi_buf|=oe<<k.bi_valid&65535,U(k,k.bi_buf),k.bi_buf=oe>>_-k.bi_valid,k.bi_valid+=ue-_):(k.bi_buf|=oe<<k.bi_valid&65535,k.bi_valid+=ue)}function re(k,oe,ue){z(k,ue[oe*2],ue[oe*2+1])}function te(k,oe){var ue=0;do ue|=k&1,k>>>=1,ue<<=1;while(--oe>0);return ue>>>1}function se(k){k.bi_valid===16?(U(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):k.bi_valid>=8&&(k.pending_buf[k.pending++]=k.bi_buf&255,k.bi_buf>>=8,k.bi_valid-=8)}function fe(k,oe){var ue=oe.dyn_tree,he=oe.max_code,Y=oe.stat_desc.static_tree,M=oe.stat_desc.has_stree,S=oe.stat_desc.extra_bits,ie=oe.stat_desc.extra_base,ge=oe.stat_desc.max_length,g,Q,ae,C,K,ne,Se=0;for(C=0;C<=c;C++)k.bl_count[C]=0;for(ue[k.heap[k.heap_max]*2+1]=0,g=k.heap_max+1;g<m;g++)Q=k.heap[g],C=ue[ue[Q*2+1]*2+1]+1,C>ge&&(C=ge,Se++),ue[Q*2+1]=C,!(Q>he)&&(k.bl_count[C]++,K=0,Q>=ie&&(K=S[Q-ie]),ne=ue[Q*2],k.opt_len+=ne*(C+K),M&&(k.static_len+=ne*(Y[Q*2+1]+K)));if(Se!==0){do{for(C=ge-1;k.bl_count[C]===0;)C--;k.bl_count[C]--,k.bl_count[C+1]+=2,k.bl_count[ge]--,Se-=2}while(Se>0);for(C=ge;C!==0;C--)for(Q=k.bl_count[C];Q!==0;)ae=k.heap[--g],!(ae>he)&&(ue[ae*2+1]!==C&&(k.opt_len+=(C-ue[ae*2+1])*ue[ae*2],ue[ae*2+1]=C),Q--)}}function ve(k,oe,ue){var he=new Array(c+1),Y=0,M,S;for(M=1;M<=c;M++)he[M]=Y=Y+ue[M-1]<<1;for(S=0;S<=oe;S++){var ie=k[S*2+1];ie!==0&&(k[S*2]=te(he[ie]++,ie))}}function ye(){var k,oe,ue,he,Y,M=new Array(c+1);for(ue=0,he=0;he<f-1;he++)for(L[he]=ue,k=0;k<1<<x[he];k++)V[ue++]=he;for(V[ue-1]=he,Y=0,he=0;he<16;he++)for(A[he]=Y,k=0;k<1<<j[he];k++)F[Y++]=he;for(Y>>=7;he<d;he++)for(A[he]=Y<<7,k=0;k<1<<j[he]-7;k++)F[256+Y++]=he;for(oe=0;oe<=c;oe++)M[oe]=0;for(k=0;k<=143;)I[k*2+1]=8,k++,M[8]++;for(;k<=255;)I[k*2+1]=9,k++,M[9]++;for(;k<=279;)I[k*2+1]=7,k++,M[7]++;for(;k<=287;)I[k*2+1]=8,k++,M[8]++;for(ve(I,w+1,M),k=0;k<d;k++)q[k*2+1]=5,q[k*2]=te(k,5);N=new D(I,x,h+1,w,c),H=new D(q,j,0,d,c),Z=new D(new Array(0),W,0,v,b)}function Ee(k){var oe;for(oe=0;oe<w;oe++)k.dyn_ltree[oe*2]=0;for(oe=0;oe<d;oe++)k.dyn_dtree[oe*2]=0;for(oe=0;oe<v;oe++)k.bl_tree[oe*2]=0;k.dyn_ltree[y*2]=1,k.opt_len=k.static_len=0,k.last_lit=k.matches=0}function xe(k){k.bi_valid>8?U(k,k.bi_buf):k.bi_valid>0&&(k.pending_buf[k.pending++]=k.bi_buf),k.bi_buf=0,k.bi_valid=0}function ke(k,oe,ue,he){xe(k),U(k,ue),U(k,~ue),e.arraySet(k.pending_buf,k.window,oe,ue,k.pending),k.pending+=ue}function qe(k,oe,ue,he){var Y=oe*2,M=ue*2;return k[Y]<k[M]||k[Y]===k[M]&&he[oe]<=he[ue]}function Ie(k,oe,ue){for(var he=k.heap[ue],Y=ue<<1;Y<=k.heap_len&&(Y<k.heap_len&&qe(oe,k.heap[Y+1],k.heap[Y],k.depth)&&Y++,!qe(oe,he,k.heap[Y],k.depth));)k.heap[ue]=k.heap[Y],ue=Y,Y<<=1;k.heap[ue]=he}function Oe(k,oe,ue){var he,Y,M=0,S,ie;if(k.last_lit!==0)do he=k.pending_buf[k.d_buf+M*2]<<8|k.pending_buf[k.d_buf+M*2+1],Y=k.pending_buf[k.l_buf+M],M++,he===0?re(k,Y,oe):(S=V[Y],re(k,S+h+1,oe),ie=x[S],ie!==0&&(Y-=L[S],z(k,Y,ie)),he--,S=$(he),re(k,S,ue),ie=j[S],ie!==0&&(he-=A[S],z(k,he,ie)));while(M<k.last_lit);re(k,y,oe)}function Fe(k,oe){var ue=oe.dyn_tree,he=oe.stat_desc.static_tree,Y=oe.stat_desc.has_stree,M=oe.stat_desc.elems,S,ie,ge=-1,g;for(k.heap_len=0,k.heap_max=m,S=0;S<M;S++)ue[S*2]!==0?(k.heap[++k.heap_len]=ge=S,k.depth[S]=0):ue[S*2+1]=0;for(;k.heap_len<2;)g=k.heap[++k.heap_len]=ge<2?++ge:0,ue[g*2]=1,k.depth[g]=0,k.opt_len--,Y&&(k.static_len-=he[g*2+1]);for(oe.max_code=ge,S=k.heap_len>>1;S>=1;S--)Ie(k,ue,S);g=M;do S=k.heap[1],k.heap[1]=k.heap[k.heap_len--],Ie(k,ue,1),ie=k.heap[1],k.heap[--k.heap_max]=S,k.heap[--k.heap_max]=ie,ue[g*2]=ue[S*2]+ue[ie*2],k.depth[g]=(k.depth[S]>=k.depth[ie]?k.depth[S]:k.depth[ie])+1,ue[S*2+1]=ue[ie*2+1]=g,k.heap[1]=g++,Ie(k,ue,1);while(k.heap_len>=2);k.heap[--k.heap_max]=k.heap[1],fe(k,oe),ve(ue,ge,k.bl_count)}function Je(k,oe,ue){var he,Y=-1,M,S=oe[0*2+1],ie=0,ge=7,g=4;for(S===0&&(ge=138,g=3),oe[(ue+1)*2+1]=65535,he=0;he<=ue;he++)M=S,S=oe[(he+1)*2+1],!(++ie<ge&&M===S)&&(ie<g?k.bl_tree[M*2]+=ie:M!==0?(M!==Y&&k.bl_tree[M*2]++,k.bl_tree[E*2]++):ie<=10?k.bl_tree[T*2]++:k.bl_tree[R*2]++,ie=0,Y=M,S===0?(ge=138,g=3):M===S?(ge=6,g=3):(ge=7,g=4))}function Ne(k,oe,ue){var he,Y=-1,M,S=oe[0*2+1],ie=0,ge=7,g=4;for(S===0&&(ge=138,g=3),he=0;he<=ue;he++)if(M=S,S=oe[(he+1)*2+1],!(++ie<ge&&M===S)){if(ie<g)do re(k,M,k.bl_tree);while(--ie!==0);else M!==0?(M!==Y&&(re(k,M,k.bl_tree),ie--),re(k,E,k.bl_tree),z(k,ie-3,2)):ie<=10?(re(k,T,k.bl_tree),z(k,ie-3,3)):(re(k,R,k.bl_tree),z(k,ie-11,7));ie=0,Y=M,S===0?(ge=138,g=3):M===S?(ge=6,g=3):(ge=7,g=4)}}function ee(k){var oe;for(Je(k,k.dyn_ltree,k.l_desc.max_code),Je(k,k.dyn_dtree,k.d_desc.max_code),Fe(k,k.bl_desc),oe=v-1;oe>=3&&k.bl_tree[G[oe]*2+1]===0;oe--);return k.opt_len+=3*(oe+1)+5+5+4,oe}function de(k,oe,ue,he){var Y;for(z(k,oe-257,5),z(k,ue-1,5),z(k,he-4,4),Y=0;Y<he;Y++)z(k,k.bl_tree[G[Y]*2+1],3);Ne(k,k.dyn_ltree,oe-1),Ne(k,k.dyn_dtree,ue-1)}function P(k){var oe=4093624447,ue;for(ue=0;ue<=31;ue++,oe>>>=1)if(oe&1&&k.dyn_ltree[ue*2]!==0)return a;if(k.dyn_ltree[9*2]!==0||k.dyn_ltree[10*2]!==0||k.dyn_ltree[13*2]!==0)return i;for(ue=32;ue<h;ue++)if(k.dyn_ltree[ue*2]!==0)return i;return a}var X=!1;function ce(k){X||(ye(),X=!0),k.l_desc=new B(k.dyn_ltree,N),k.d_desc=new B(k.dyn_dtree,H),k.bl_desc=new B(k.bl_tree,Z),k.bi_buf=0,k.bi_valid=0,Ee(k)}function be(k,oe,ue,he){z(k,(r<<1)+(he?1:0),3),ke(k,oe,ue)}function pe(k){z(k,s<<1,3),re(k,y,I),se(k)}function le(k,oe,ue,he){var Y,M,S=0;k.level>0?(k.strm.data_type===o&&(k.strm.data_type=P(k)),Fe(k,k.l_desc),Fe(k,k.d_desc),S=ee(k),Y=k.opt_len+3+7>>>3,M=k.static_len+3+7>>>3,M<=Y&&(Y=M)):Y=M=ue+5,ue+4<=Y&&oe!==-1?be(k,oe,ue,he):k.strategy===n||M===Y?(z(k,(s<<1)+(he?1:0),3),Oe(k,I,q)):(z(k,(p<<1)+(he?1:0),3),de(k,k.l_desc.max_code+1,k.d_desc.max_code+1,S+1),Oe(k,k.dyn_ltree,k.dyn_dtree)),Ee(k),he&&xe(k)}function Te(k,oe,ue){return k.pending_buf[k.d_buf+k.last_lit*2]=oe>>>8&255,k.pending_buf[k.d_buf+k.last_lit*2+1]=oe&255,k.pending_buf[k.l_buf+k.last_lit]=ue&255,k.last_lit++,oe===0?k.dyn_ltree[ue*2]++:(k.matches++,oe--,k.dyn_ltree[(V[ue]+h+1)*2]++,k.dyn_dtree[$(oe)*2]++),k.last_lit===k.lit_bufsize-1}return Lt._tr_init=ce,Lt._tr_stored_block=be,Lt._tr_flush_block=le,Lt._tr_tally=Te,Lt._tr_align=pe,Lt}var Ji,Qc;function Od(){if(Qc)return Ji;Qc=1;function e(n,a,i,o){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+a[o++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return Ji=e,Ji}var Xi,ef;function Td(){if(ef)return Xi;ef=1;function e(){for(var i,o=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;o[t]=i}return o}var n=e();function a(i,o,t,r){var s=n,p=r+t;i^=-1;for(var l=r;l<p;l++)i=i>>>8^s[(i^o[l])&255];return i^-1}return Xi=a,Xi}var Qi,tf;function yy(){return tf||(tf=1,Qi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),Qi}var rf;function _y(){if(rf)return lt;rf=1;var e=Sn(),n=vy(),a=Od(),i=Td(),o=yy(),t=0,r=1,s=3,p=4,l=5,u=0,f=1,h=-2,w=-3,d=-5,v=-1,m=1,c=2,_=3,b=4,y=0,E=2,T=8,R=9,x=15,j=8,W=29,G=256,O=G+1+W,I=30,q=19,F=2*O+1,V=15,L=3,A=258,D=A+L+1,N=32,H=42,Z=69,B=73,$=91,U=103,z=113,re=666,te=1,se=2,fe=3,ve=4,ye=3;function Ee(g,Q){return g.msg=o[Q],Q}function xe(g){return(g<<1)-(g>4?9:0)}function ke(g){for(var Q=g.length;--Q>=0;)g[Q]=0}function qe(g){var Q=g.state,ae=Q.pending;ae>g.avail_out&&(ae=g.avail_out),ae!==0&&(e.arraySet(g.output,Q.pending_buf,Q.pending_out,ae,g.next_out),g.next_out+=ae,Q.pending_out+=ae,g.total_out+=ae,g.avail_out-=ae,Q.pending-=ae,Q.pending===0&&(Q.pending_out=0))}function Ie(g,Q){n._tr_flush_block(g,g.block_start>=0?g.block_start:-1,g.strstart-g.block_start,Q),g.block_start=g.strstart,qe(g.strm)}function Oe(g,Q){g.pending_buf[g.pending++]=Q}function Fe(g,Q){g.pending_buf[g.pending++]=Q>>>8&255,g.pending_buf[g.pending++]=Q&255}function Je(g,Q,ae,C){var K=g.avail_in;return K>C&&(K=C),K===0?0:(g.avail_in-=K,e.arraySet(Q,g.input,g.next_in,K,ae),g.state.wrap===1?g.adler=a(g.adler,Q,K,ae):g.state.wrap===2&&(g.adler=i(g.adler,Q,K,ae)),g.next_in+=K,g.total_in+=K,K)}function Ne(g,Q){var ae=g.max_chain_length,C=g.strstart,K,ne,Se=g.prev_length,me=g.nice_match,_e=g.strstart>g.w_size-D?g.strstart-(g.w_size-D):0,Pe=g.window,nt=g.w_mask,je=g.prev,Ce=g.strstart+A,De=Pe[C+Se-1],$e=Pe[C+Se];g.prev_length>=g.good_match&&(ae>>=2),me>g.lookahead&&(me=g.lookahead);do if(K=Q,!(Pe[K+Se]!==$e||Pe[K+Se-1]!==De||Pe[K]!==Pe[C]||Pe[++K]!==Pe[C+1])){C+=2,K++;do;while(Pe[++C]===Pe[++K]&&Pe[++C]===Pe[++K]&&Pe[++C]===Pe[++K]&&Pe[++C]===Pe[++K]&&Pe[++C]===Pe[++K]&&Pe[++C]===Pe[++K]&&Pe[++C]===Pe[++K]&&Pe[++C]===Pe[++K]&&C<Ce);if(ne=A-(Ce-C),C=Ce-A,ne>Se){if(g.match_start=Q,Se=ne,ne>=me)break;De=Pe[C+Se-1],$e=Pe[C+Se]}}while((Q=je[Q&nt])>_e&&--ae!==0);return Se<=g.lookahead?Se:g.lookahead}function ee(g){var Q=g.w_size,ae,C,K,ne,Se;do{if(ne=g.window_size-g.lookahead-g.strstart,g.strstart>=Q+(Q-D)){e.arraySet(g.window,g.window,Q,Q,0),g.match_start-=Q,g.strstart-=Q,g.block_start-=Q,C=g.hash_size,ae=C;do K=g.head[--ae],g.head[ae]=K>=Q?K-Q:0;while(--C);C=Q,ae=C;do K=g.prev[--ae],g.prev[ae]=K>=Q?K-Q:0;while(--C);ne+=Q}if(g.strm.avail_in===0)break;if(C=Je(g.strm,g.window,g.strstart+g.lookahead,ne),g.lookahead+=C,g.lookahead+g.insert>=L)for(Se=g.strstart-g.insert,g.ins_h=g.window[Se],g.ins_h=(g.ins_h<<g.hash_shift^g.window[Se+1])&g.hash_mask;g.insert&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[Se+L-1])&g.hash_mask,g.prev[Se&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Se,Se++,g.insert--,!(g.lookahead+g.insert<L)););}while(g.lookahead<D&&g.strm.avail_in!==0)}function de(g,Q){var ae=65535;for(ae>g.pending_buf_size-5&&(ae=g.pending_buf_size-5);;){if(g.lookahead<=1){if(ee(g),g.lookahead===0&&Q===t)return te;if(g.lookahead===0)break}g.strstart+=g.lookahead,g.lookahead=0;var C=g.block_start+ae;if((g.strstart===0||g.strstart>=C)&&(g.lookahead=g.strstart-C,g.strstart=C,Ie(g,!1),g.strm.avail_out===0)||g.strstart-g.block_start>=g.w_size-D&&(Ie(g,!1),g.strm.avail_out===0))return te}return g.insert=0,Q===p?(Ie(g,!0),g.strm.avail_out===0?fe:ve):(g.strstart>g.block_start&&(Ie(g,!1),g.strm.avail_out===0),te)}function P(g,Q){for(var ae,C;;){if(g.lookahead<D){if(ee(g),g.lookahead<D&&Q===t)return te;if(g.lookahead===0)break}if(ae=0,g.lookahead>=L&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+L-1])&g.hash_mask,ae=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),ae!==0&&g.strstart-ae<=g.w_size-D&&(g.match_length=Ne(g,ae)),g.match_length>=L)if(C=n._tr_tally(g,g.strstart-g.match_start,g.match_length-L),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=L){g.match_length--;do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+L-1])&g.hash_mask,ae=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!==0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else C=n._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(C&&(Ie(g,!1),g.strm.avail_out===0))return te}return g.insert=g.strstart<L-1?g.strstart:L-1,Q===p?(Ie(g,!0),g.strm.avail_out===0?fe:ve):g.last_lit&&(Ie(g,!1),g.strm.avail_out===0)?te:se}function X(g,Q){for(var ae,C,K;;){if(g.lookahead<D){if(ee(g),g.lookahead<D&&Q===t)return te;if(g.lookahead===0)break}if(ae=0,g.lookahead>=L&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+L-1])&g.hash_mask,ae=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),g.prev_length=g.match_length,g.prev_match=g.match_start,g.match_length=L-1,ae!==0&&g.prev_length<g.max_lazy_match&&g.strstart-ae<=g.w_size-D&&(g.match_length=Ne(g,ae),g.match_length<=5&&(g.strategy===m||g.match_length===L&&g.strstart-g.match_start>4096)&&(g.match_length=L-1)),g.prev_length>=L&&g.match_length<=g.prev_length){K=g.strstart+g.lookahead-L,C=n._tr_tally(g,g.strstart-1-g.prev_match,g.prev_length-L),g.lookahead-=g.prev_length-1,g.prev_length-=2;do++g.strstart<=K&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+L-1])&g.hash_mask,ae=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!==0);if(g.match_available=0,g.match_length=L-1,g.strstart++,C&&(Ie(g,!1),g.strm.avail_out===0))return te}else if(g.match_available){if(C=n._tr_tally(g,0,g.window[g.strstart-1]),C&&Ie(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return te}else g.match_available=1,g.strstart++,g.lookahead--}return g.match_available&&(C=n._tr_tally(g,0,g.window[g.strstart-1]),g.match_available=0),g.insert=g.strstart<L-1?g.strstart:L-1,Q===p?(Ie(g,!0),g.strm.avail_out===0?fe:ve):g.last_lit&&(Ie(g,!1),g.strm.avail_out===0)?te:se}function ce(g,Q){for(var ae,C,K,ne,Se=g.window;;){if(g.lookahead<=A){if(ee(g),g.lookahead<=A&&Q===t)return te;if(g.lookahead===0)break}if(g.match_length=0,g.lookahead>=L&&g.strstart>0&&(K=g.strstart-1,C=Se[K],C===Se[++K]&&C===Se[++K]&&C===Se[++K])){ne=g.strstart+A;do;while(C===Se[++K]&&C===Se[++K]&&C===Se[++K]&&C===Se[++K]&&C===Se[++K]&&C===Se[++K]&&C===Se[++K]&&C===Se[++K]&&K<ne);g.match_length=A-(ne-K),g.match_length>g.lookahead&&(g.match_length=g.lookahead)}if(g.match_length>=L?(ae=n._tr_tally(g,1,g.match_length-L),g.lookahead-=g.match_length,g.strstart+=g.match_length,g.match_length=0):(ae=n._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++),ae&&(Ie(g,!1),g.strm.avail_out===0))return te}return g.insert=0,Q===p?(Ie(g,!0),g.strm.avail_out===0?fe:ve):g.last_lit&&(Ie(g,!1),g.strm.avail_out===0)?te:se}function be(g,Q){for(var ae;;){if(g.lookahead===0&&(ee(g),g.lookahead===0)){if(Q===t)return te;break}if(g.match_length=0,ae=n._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++,ae&&(Ie(g,!1),g.strm.avail_out===0))return te}return g.insert=0,Q===p?(Ie(g,!0),g.strm.avail_out===0?fe:ve):g.last_lit&&(Ie(g,!1),g.strm.avail_out===0)?te:se}function pe(g,Q,ae,C,K){this.good_length=g,this.max_lazy=Q,this.nice_length=ae,this.max_chain=C,this.func=K}var le;le=[new pe(0,0,0,0,de),new pe(4,4,8,4,P),new pe(4,5,16,8,P),new pe(4,6,32,32,P),new pe(4,4,16,16,X),new pe(8,16,32,32,X),new pe(8,16,128,128,X),new pe(8,32,128,256,X),new pe(32,128,258,1024,X),new pe(32,258,258,4096,X)];function Te(g){g.window_size=2*g.w_size,ke(g.head),g.max_lazy_match=le[g.level].max_lazy,g.good_match=le[g.level].good_length,g.nice_match=le[g.level].nice_length,g.max_chain_length=le[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=L-1,g.match_available=0,g.ins_h=0}function k(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(F*2),this.dyn_dtree=new e.Buf16((2*I+1)*2),this.bl_tree=new e.Buf16((2*q+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(V+1),this.heap=new e.Buf16(2*O+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*O+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function oe(g){var Q;return!g||!g.state?Ee(g,h):(g.total_in=g.total_out=0,g.data_type=E,Q=g.state,Q.pending=0,Q.pending_out=0,Q.wrap<0&&(Q.wrap=-Q.wrap),Q.status=Q.wrap?H:z,g.adler=Q.wrap===2?0:1,Q.last_flush=t,n._tr_init(Q),u)}function ue(g){var Q=oe(g);return Q===u&&Te(g.state),Q}function he(g,Q){return!g||!g.state||g.state.wrap!==2?h:(g.state.gzhead=Q,u)}function Y(g,Q,ae,C,K,ne){if(!g)return h;var Se=1;if(Q===v&&(Q=6),C<0?(Se=0,C=-C):C>15&&(Se=2,C-=16),K<1||K>R||ae!==T||C<8||C>15||Q<0||Q>9||ne<0||ne>b)return Ee(g,h);C===8&&(C=9);var me=new k;return g.state=me,me.strm=g,me.wrap=Se,me.gzhead=null,me.w_bits=C,me.w_size=1<<me.w_bits,me.w_mask=me.w_size-1,me.hash_bits=K+7,me.hash_size=1<<me.hash_bits,me.hash_mask=me.hash_size-1,me.hash_shift=~~((me.hash_bits+L-1)/L),me.window=new e.Buf8(me.w_size*2),me.head=new e.Buf16(me.hash_size),me.prev=new e.Buf16(me.w_size),me.lit_bufsize=1<<K+6,me.pending_buf_size=me.lit_bufsize*4,me.pending_buf=new e.Buf8(me.pending_buf_size),me.d_buf=1*me.lit_bufsize,me.l_buf=3*me.lit_bufsize,me.level=Q,me.strategy=ne,me.method=ae,ue(g)}function M(g,Q){return Y(g,Q,T,x,j,y)}function S(g,Q){var ae,C,K,ne;if(!g||!g.state||Q>l||Q<0)return g?Ee(g,h):h;if(C=g.state,!g.output||!g.input&&g.avail_in!==0||C.status===re&&Q!==p)return Ee(g,g.avail_out===0?d:h);if(C.strm=g,ae=C.last_flush,C.last_flush=Q,C.status===H)if(C.wrap===2)g.adler=0,Oe(C,31),Oe(C,139),Oe(C,8),C.gzhead?(Oe(C,(C.gzhead.text?1:0)+(C.gzhead.hcrc?2:0)+(C.gzhead.extra?4:0)+(C.gzhead.name?8:0)+(C.gzhead.comment?16:0)),Oe(C,C.gzhead.time&255),Oe(C,C.gzhead.time>>8&255),Oe(C,C.gzhead.time>>16&255),Oe(C,C.gzhead.time>>24&255),Oe(C,C.level===9?2:C.strategy>=c||C.level<2?4:0),Oe(C,C.gzhead.os&255),C.gzhead.extra&&C.gzhead.extra.length&&(Oe(C,C.gzhead.extra.length&255),Oe(C,C.gzhead.extra.length>>8&255)),C.gzhead.hcrc&&(g.adler=i(g.adler,C.pending_buf,C.pending,0)),C.gzindex=0,C.status=Z):(Oe(C,0),Oe(C,0),Oe(C,0),Oe(C,0),Oe(C,0),Oe(C,C.level===9?2:C.strategy>=c||C.level<2?4:0),Oe(C,ye),C.status=z);else{var Se=T+(C.w_bits-8<<4)<<8,me=-1;C.strategy>=c||C.level<2?me=0:C.level<6?me=1:C.level===6?me=2:me=3,Se|=me<<6,C.strstart!==0&&(Se|=N),Se+=31-Se%31,C.status=z,Fe(C,Se),C.strstart!==0&&(Fe(C,g.adler>>>16),Fe(C,g.adler&65535)),g.adler=1}if(C.status===Z)if(C.gzhead.extra){for(K=C.pending;C.gzindex<(C.gzhead.extra.length&65535)&&!(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>K&&(g.adler=i(g.adler,C.pending_buf,C.pending-K,K)),qe(g),K=C.pending,C.pending===C.pending_buf_size));)Oe(C,C.gzhead.extra[C.gzindex]&255),C.gzindex++;C.gzhead.hcrc&&C.pending>K&&(g.adler=i(g.adler,C.pending_buf,C.pending-K,K)),C.gzindex===C.gzhead.extra.length&&(C.gzindex=0,C.status=B)}else C.status=B;if(C.status===B)if(C.gzhead.name){K=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>K&&(g.adler=i(g.adler,C.pending_buf,C.pending-K,K)),qe(g),K=C.pending,C.pending===C.pending_buf_size)){ne=1;break}C.gzindex<C.gzhead.name.length?ne=C.gzhead.name.charCodeAt(C.gzindex++)&255:ne=0,Oe(C,ne)}while(ne!==0);C.gzhead.hcrc&&C.pending>K&&(g.adler=i(g.adler,C.pending_buf,C.pending-K,K)),ne===0&&(C.gzindex=0,C.status=$)}else C.status=$;if(C.status===$)if(C.gzhead.comment){K=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>K&&(g.adler=i(g.adler,C.pending_buf,C.pending-K,K)),qe(g),K=C.pending,C.pending===C.pending_buf_size)){ne=1;break}C.gzindex<C.gzhead.comment.length?ne=C.gzhead.comment.charCodeAt(C.gzindex++)&255:ne=0,Oe(C,ne)}while(ne!==0);C.gzhead.hcrc&&C.pending>K&&(g.adler=i(g.adler,C.pending_buf,C.pending-K,K)),ne===0&&(C.status=U)}else C.status=U;if(C.status===U&&(C.gzhead.hcrc?(C.pending+2>C.pending_buf_size&&qe(g),C.pending+2<=C.pending_buf_size&&(Oe(C,g.adler&255),Oe(C,g.adler>>8&255),g.adler=0,C.status=z)):C.status=z),C.pending!==0){if(qe(g),g.avail_out===0)return C.last_flush=-1,u}else if(g.avail_in===0&&xe(Q)<=xe(ae)&&Q!==p)return Ee(g,d);if(C.status===re&&g.avail_in!==0)return Ee(g,d);if(g.avail_in!==0||C.lookahead!==0||Q!==t&&C.status!==re){var _e=C.strategy===c?be(C,Q):C.strategy===_?ce(C,Q):le[C.level].func(C,Q);if((_e===fe||_e===ve)&&(C.status=re),_e===te||_e===fe)return g.avail_out===0&&(C.last_flush=-1),u;if(_e===se&&(Q===r?n._tr_align(C):Q!==l&&(n._tr_stored_block(C,0,0,!1),Q===s&&(ke(C.head),C.lookahead===0&&(C.strstart=0,C.block_start=0,C.insert=0))),qe(g),g.avail_out===0))return C.last_flush=-1,u}return Q!==p?u:C.wrap<=0?f:(C.wrap===2?(Oe(C,g.adler&255),Oe(C,g.adler>>8&255),Oe(C,g.adler>>16&255),Oe(C,g.adler>>24&255),Oe(C,g.total_in&255),Oe(C,g.total_in>>8&255),Oe(C,g.total_in>>16&255),Oe(C,g.total_in>>24&255)):(Fe(C,g.adler>>>16),Fe(C,g.adler&65535)),qe(g),C.wrap>0&&(C.wrap=-C.wrap),C.pending!==0?u:f)}function ie(g){var Q;return!g||!g.state?h:(Q=g.state.status,Q!==H&&Q!==Z&&Q!==B&&Q!==$&&Q!==U&&Q!==z&&Q!==re?Ee(g,h):(g.state=null,Q===z?Ee(g,w):u))}function ge(g,Q){var ae=Q.length,C,K,ne,Se,me,_e,Pe,nt;if(!g||!g.state||(C=g.state,Se=C.wrap,Se===2||Se===1&&C.status!==H||C.lookahead))return h;for(Se===1&&(g.adler=a(g.adler,Q,ae,0)),C.wrap=0,ae>=C.w_size&&(Se===0&&(ke(C.head),C.strstart=0,C.block_start=0,C.insert=0),nt=new e.Buf8(C.w_size),e.arraySet(nt,Q,ae-C.w_size,C.w_size,0),Q=nt,ae=C.w_size),me=g.avail_in,_e=g.next_in,Pe=g.input,g.avail_in=ae,g.next_in=0,g.input=Q,ee(C);C.lookahead>=L;){K=C.strstart,ne=C.lookahead-(L-1);do C.ins_h=(C.ins_h<<C.hash_shift^C.window[K+L-1])&C.hash_mask,C.prev[K&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=K,K++;while(--ne);C.strstart=K,C.lookahead=L-1,ee(C)}return C.strstart+=C.lookahead,C.block_start=C.strstart,C.insert=C.lookahead,C.lookahead=0,C.match_length=C.prev_length=L-1,C.match_available=0,g.next_in=_e,g.input=Pe,g.avail_in=me,C.wrap=Se,u}return lt.deflateInit=M,lt.deflateInit2=Y,lt.deflateReset=ue,lt.deflateResetKeep=oe,lt.deflateSetHeader=he,lt.deflate=S,lt.deflateEnd=ie,lt.deflateSetDictionary=ge,lt.deflateInfo="pako deflate (from Nodeca project)",lt}var ct={},ea,nf;function by(){if(nf)return ea;nf=1;var e=30,n=12;return ea=function(i,o){var t,r,s,p,l,u,f,h,w,d,v,m,c,_,b,y,E,T,R,x,j,W,G,O,I;t=i.state,r=i.next_in,O=i.input,s=r+(i.avail_in-5),p=i.next_out,I=i.output,l=p-(o-i.avail_out),u=p+(i.avail_out-257),f=t.dmax,h=t.wsize,w=t.whave,d=t.wnext,v=t.window,m=t.hold,c=t.bits,_=t.lencode,b=t.distcode,y=(1<<t.lenbits)-1,E=(1<<t.distbits)-1;e:do{c<15&&(m+=O[r++]<<c,c+=8,m+=O[r++]<<c,c+=8),T=_[m&y];t:for(;;){if(R=T>>>24,m>>>=R,c-=R,R=T>>>16&255,R===0)I[p++]=T&65535;else if(R&16){x=T&65535,R&=15,R&&(c<R&&(m+=O[r++]<<c,c+=8),x+=m&(1<<R)-1,m>>>=R,c-=R),c<15&&(m+=O[r++]<<c,c+=8,m+=O[r++]<<c,c+=8),T=b[m&E];r:for(;;){if(R=T>>>24,m>>>=R,c-=R,R=T>>>16&255,R&16){if(j=T&65535,R&=15,c<R&&(m+=O[r++]<<c,c+=8,c<R&&(m+=O[r++]<<c,c+=8)),j+=m&(1<<R)-1,j>f){i.msg="invalid distance too far back",t.mode=e;break e}if(m>>>=R,c-=R,R=p-l,j>R){if(R=j-R,R>w&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(W=0,G=v,d===0){if(W+=h-R,R<x){x-=R;do I[p++]=v[W++];while(--R);W=p-j,G=I}}else if(d<R){if(W+=h+d-R,R-=d,R<x){x-=R;do I[p++]=v[W++];while(--R);if(W=0,d<x){R=d,x-=R;do I[p++]=v[W++];while(--R);W=p-j,G=I}}}else if(W+=d-R,R<x){x-=R;do I[p++]=v[W++];while(--R);W=p-j,G=I}for(;x>2;)I[p++]=G[W++],I[p++]=G[W++],I[p++]=G[W++],x-=3;x&&(I[p++]=G[W++],x>1&&(I[p++]=G[W++]))}else{W=p-j;do I[p++]=I[W++],I[p++]=I[W++],I[p++]=I[W++],x-=3;while(x>2);x&&(I[p++]=I[W++],x>1&&(I[p++]=I[W++]))}}else if((R&64)===0){T=b[(T&65535)+(m&(1<<R)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((R&64)===0){T=_[(T&65535)+(m&(1<<R)-1)];continue t}else if(R&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&p<u);x=c>>3,r-=x,c-=x<<3,m&=(1<<c)-1,i.next_in=r,i.next_out=p,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=p<u?257+(u-p):257-(p-u),t.hold=m,t.bits=c},ea}var ta,af;function wy(){if(af)return ta;af=1;var e=Sn(),n=15,a=852,i=592,o=0,t=1,r=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],p=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return ta=function(h,w,d,v,m,c,_,b){var y=b.bits,E=0,T=0,R=0,x=0,j=0,W=0,G=0,O=0,I=0,q=0,F,V,L,A,D,N=null,H=0,Z,B=new e.Buf16(n+1),$=new e.Buf16(n+1),U=null,z=0,re,te,se;for(E=0;E<=n;E++)B[E]=0;for(T=0;T<v;T++)B[w[d+T]]++;for(j=y,x=n;x>=1&&B[x]===0;x--);if(j>x&&(j=x),x===0)return m[c++]=1<<24|64<<16|0,m[c++]=1<<24|64<<16|0,b.bits=1,0;for(R=1;R<x&&B[R]===0;R++);for(j<R&&(j=R),O=1,E=1;E<=n;E++)if(O<<=1,O-=B[E],O<0)return-1;if(O>0&&(h===o||x!==1))return-1;for($[1]=0,E=1;E<n;E++)$[E+1]=$[E]+B[E];for(T=0;T<v;T++)w[d+T]!==0&&(_[$[w[d+T]]++]=T);if(h===o?(N=U=_,Z=19):h===t?(N=s,H-=257,U=p,z-=257,Z=256):(N=l,U=u,Z=-1),q=0,T=0,E=R,D=c,W=j,G=0,L=-1,I=1<<j,A=I-1,h===t&&I>a||h===r&&I>i)return 1;for(;;){re=E-G,_[T]<Z?(te=0,se=_[T]):_[T]>Z?(te=U[z+_[T]],se=N[H+_[T]]):(te=96,se=0),F=1<<E-G,V=1<<W,R=V;do V-=F,m[D+(q>>G)+V]=re<<24|te<<16|se|0;while(V!==0);for(F=1<<E-1;q&F;)F>>=1;if(F!==0?(q&=F-1,q+=F):q=0,T++,--B[E]===0){if(E===x)break;E=w[d+_[T]]}if(E>j&&(q&A)!==L){for(G===0&&(G=j),D+=R,W=E-G,O=1<<W;W+G<x&&(O-=B[W+G],!(O<=0));)W++,O<<=1;if(I+=1<<W,h===t&&I>a||h===r&&I>i)return 1;L=q&A,m[L]=j<<24|W<<16|D-c|0}}return q!==0&&(m[D+q]=E-G<<24|64<<16|0),b.bits=j,0},ta}var of;function Sy(){if(of)return ct;of=1;var e=Sn(),n=Od(),a=Td(),i=by(),o=wy(),t=0,r=1,s=2,p=4,l=5,u=6,f=0,h=1,w=2,d=-2,v=-3,m=-4,c=-5,_=8,b=1,y=2,E=3,T=4,R=5,x=6,j=7,W=8,G=9,O=10,I=11,q=12,F=13,V=14,L=15,A=16,D=17,N=18,H=19,Z=20,B=21,$=22,U=23,z=24,re=25,te=26,se=27,fe=28,ve=29,ye=30,Ee=31,xe=32,ke=852,qe=592,Ie=15,Oe=Ie;function Fe(Y){return(Y>>>24&255)+(Y>>>8&65280)+((Y&65280)<<8)+((Y&255)<<24)}function Je(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ne(Y){var M;return!Y||!Y.state?d:(M=Y.state,Y.total_in=Y.total_out=M.total=0,Y.msg="",M.wrap&&(Y.adler=M.wrap&1),M.mode=b,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new e.Buf32(ke),M.distcode=M.distdyn=new e.Buf32(qe),M.sane=1,M.back=-1,f)}function ee(Y){var M;return!Y||!Y.state?d:(M=Y.state,M.wsize=0,M.whave=0,M.wnext=0,Ne(Y))}function de(Y,M){var S,ie;return!Y||!Y.state||(ie=Y.state,M<0?(S=0,M=-M):(S=(M>>4)+1,M<48&&(M&=15)),M&&(M<8||M>15))?d:(ie.window!==null&&ie.wbits!==M&&(ie.window=null),ie.wrap=S,ie.wbits=M,ee(Y))}function P(Y,M){var S,ie;return Y?(ie=new Je,Y.state=ie,ie.window=null,S=de(Y,M),S!==f&&(Y.state=null),S):d}function X(Y){return P(Y,Oe)}var ce=!0,be,pe;function le(Y){if(ce){var M;for(be=new e.Buf32(512),pe=new e.Buf32(32),M=0;M<144;)Y.lens[M++]=8;for(;M<256;)Y.lens[M++]=9;for(;M<280;)Y.lens[M++]=7;for(;M<288;)Y.lens[M++]=8;for(o(r,Y.lens,0,288,be,0,Y.work,{bits:9}),M=0;M<32;)Y.lens[M++]=5;o(s,Y.lens,0,32,pe,0,Y.work,{bits:5}),ce=!1}Y.lencode=be,Y.lenbits=9,Y.distcode=pe,Y.distbits=5}function Te(Y,M,S,ie){var ge,g=Y.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new e.Buf8(g.wsize)),ie>=g.wsize?(e.arraySet(g.window,M,S-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(ge=g.wsize-g.wnext,ge>ie&&(ge=ie),e.arraySet(g.window,M,S-ie,ge,g.wnext),ie-=ge,ie?(e.arraySet(g.window,M,S-ie,ie,0),g.wnext=ie,g.whave=g.wsize):(g.wnext+=ge,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=ge))),0}function k(Y,M){var S,ie,ge,g,Q,ae,C,K,ne,Se,me,_e,Pe,nt,je=0,Ce,De,$e,Ge,St,At,Ue,Qe,He=new e.Buf8(4),at,ot,_r=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Y||!Y.state||!Y.output||!Y.input&&Y.avail_in!==0)return d;S=Y.state,S.mode===q&&(S.mode=F),Q=Y.next_out,ge=Y.output,C=Y.avail_out,g=Y.next_in,ie=Y.input,ae=Y.avail_in,K=S.hold,ne=S.bits,Se=ae,me=C,Qe=f;e:for(;;)switch(S.mode){case b:if(S.wrap===0){S.mode=F;break}for(;ne<16;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if(S.wrap&2&&K===35615){S.check=0,He[0]=K&255,He[1]=K>>>8&255,S.check=a(S.check,He,2,0),K=0,ne=0,S.mode=y;break}if(S.flags=0,S.head&&(S.head.done=!1),!(S.wrap&1)||(((K&255)<<8)+(K>>8))%31){Y.msg="incorrect header check",S.mode=ye;break}if((K&15)!==_){Y.msg="unknown compression method",S.mode=ye;break}if(K>>>=4,ne-=4,Ue=(K&15)+8,S.wbits===0)S.wbits=Ue;else if(Ue>S.wbits){Y.msg="invalid window size",S.mode=ye;break}S.dmax=1<<Ue,Y.adler=S.check=1,S.mode=K&512?O:q,K=0,ne=0;break;case y:for(;ne<16;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if(S.flags=K,(S.flags&255)!==_){Y.msg="unknown compression method",S.mode=ye;break}if(S.flags&57344){Y.msg="unknown header flags set",S.mode=ye;break}S.head&&(S.head.text=K>>8&1),S.flags&512&&(He[0]=K&255,He[1]=K>>>8&255,S.check=a(S.check,He,2,0)),K=0,ne=0,S.mode=E;case E:for(;ne<32;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}S.head&&(S.head.time=K),S.flags&512&&(He[0]=K&255,He[1]=K>>>8&255,He[2]=K>>>16&255,He[3]=K>>>24&255,S.check=a(S.check,He,4,0)),K=0,ne=0,S.mode=T;case T:for(;ne<16;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}S.head&&(S.head.xflags=K&255,S.head.os=K>>8),S.flags&512&&(He[0]=K&255,He[1]=K>>>8&255,S.check=a(S.check,He,2,0)),K=0,ne=0,S.mode=R;case R:if(S.flags&1024){for(;ne<16;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}S.length=K,S.head&&(S.head.extra_len=K),S.flags&512&&(He[0]=K&255,He[1]=K>>>8&255,S.check=a(S.check,He,2,0)),K=0,ne=0}else S.head&&(S.head.extra=null);S.mode=x;case x:if(S.flags&1024&&(_e=S.length,_e>ae&&(_e=ae),_e&&(S.head&&(Ue=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),e.arraySet(S.head.extra,ie,g,_e,Ue)),S.flags&512&&(S.check=a(S.check,ie,_e,g)),ae-=_e,g+=_e,S.length-=_e),S.length))break e;S.length=0,S.mode=j;case j:if(S.flags&2048){if(ae===0)break e;_e=0;do Ue=ie[g+_e++],S.head&&Ue&&S.length<65536&&(S.head.name+=String.fromCharCode(Ue));while(Ue&&_e<ae);if(S.flags&512&&(S.check=a(S.check,ie,_e,g)),ae-=_e,g+=_e,Ue)break e}else S.head&&(S.head.name=null);S.length=0,S.mode=W;case W:if(S.flags&4096){if(ae===0)break e;_e=0;do Ue=ie[g+_e++],S.head&&Ue&&S.length<65536&&(S.head.comment+=String.fromCharCode(Ue));while(Ue&&_e<ae);if(S.flags&512&&(S.check=a(S.check,ie,_e,g)),ae-=_e,g+=_e,Ue)break e}else S.head&&(S.head.comment=null);S.mode=G;case G:if(S.flags&512){for(;ne<16;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if(K!==(S.check&65535)){Y.msg="header crc mismatch",S.mode=ye;break}K=0,ne=0}S.head&&(S.head.hcrc=S.flags>>9&1,S.head.done=!0),Y.adler=S.check=0,S.mode=q;break;case O:for(;ne<32;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}Y.adler=S.check=Fe(K),K=0,ne=0,S.mode=I;case I:if(S.havedict===0)return Y.next_out=Q,Y.avail_out=C,Y.next_in=g,Y.avail_in=ae,S.hold=K,S.bits=ne,w;Y.adler=S.check=1,S.mode=q;case q:if(M===l||M===u)break e;case F:if(S.last){K>>>=ne&7,ne-=ne&7,S.mode=se;break}for(;ne<3;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}switch(S.last=K&1,K>>>=1,ne-=1,K&3){case 0:S.mode=V;break;case 1:if(le(S),S.mode=Z,M===u){K>>>=2,ne-=2;break e}break;case 2:S.mode=D;break;case 3:Y.msg="invalid block type",S.mode=ye}K>>>=2,ne-=2;break;case V:for(K>>>=ne&7,ne-=ne&7;ne<32;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if((K&65535)!==(K>>>16^65535)){Y.msg="invalid stored block lengths",S.mode=ye;break}if(S.length=K&65535,K=0,ne=0,S.mode=L,M===u)break e;case L:S.mode=A;case A:if(_e=S.length,_e){if(_e>ae&&(_e=ae),_e>C&&(_e=C),_e===0)break e;e.arraySet(ge,ie,g,_e,Q),ae-=_e,g+=_e,C-=_e,Q+=_e,S.length-=_e;break}S.mode=q;break;case D:for(;ne<14;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if(S.nlen=(K&31)+257,K>>>=5,ne-=5,S.ndist=(K&31)+1,K>>>=5,ne-=5,S.ncode=(K&15)+4,K>>>=4,ne-=4,S.nlen>286||S.ndist>30){Y.msg="too many length or distance symbols",S.mode=ye;break}S.have=0,S.mode=N;case N:for(;S.have<S.ncode;){for(;ne<3;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}S.lens[_r[S.have++]]=K&7,K>>>=3,ne-=3}for(;S.have<19;)S.lens[_r[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,at={bits:S.lenbits},Qe=o(t,S.lens,0,19,S.lencode,0,S.work,at),S.lenbits=at.bits,Qe){Y.msg="invalid code lengths set",S.mode=ye;break}S.have=0,S.mode=H;case H:for(;S.have<S.nlen+S.ndist;){for(;je=S.lencode[K&(1<<S.lenbits)-1],Ce=je>>>24,De=je>>>16&255,$e=je&65535,!(Ce<=ne);){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if($e<16)K>>>=Ce,ne-=Ce,S.lens[S.have++]=$e;else{if($e===16){for(ot=Ce+2;ne<ot;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if(K>>>=Ce,ne-=Ce,S.have===0){Y.msg="invalid bit length repeat",S.mode=ye;break}Ue=S.lens[S.have-1],_e=3+(K&3),K>>>=2,ne-=2}else if($e===17){for(ot=Ce+3;ne<ot;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}K>>>=Ce,ne-=Ce,Ue=0,_e=3+(K&7),K>>>=3,ne-=3}else{for(ot=Ce+7;ne<ot;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}K>>>=Ce,ne-=Ce,Ue=0,_e=11+(K&127),K>>>=7,ne-=7}if(S.have+_e>S.nlen+S.ndist){Y.msg="invalid bit length repeat",S.mode=ye;break}for(;_e--;)S.lens[S.have++]=Ue}}if(S.mode===ye)break;if(S.lens[256]===0){Y.msg="invalid code -- missing end-of-block",S.mode=ye;break}if(S.lenbits=9,at={bits:S.lenbits},Qe=o(r,S.lens,0,S.nlen,S.lencode,0,S.work,at),S.lenbits=at.bits,Qe){Y.msg="invalid literal/lengths set",S.mode=ye;break}if(S.distbits=6,S.distcode=S.distdyn,at={bits:S.distbits},Qe=o(s,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,at),S.distbits=at.bits,Qe){Y.msg="invalid distances set",S.mode=ye;break}if(S.mode=Z,M===u)break e;case Z:S.mode=B;case B:if(ae>=6&&C>=258){Y.next_out=Q,Y.avail_out=C,Y.next_in=g,Y.avail_in=ae,S.hold=K,S.bits=ne,i(Y,me),Q=Y.next_out,ge=Y.output,C=Y.avail_out,g=Y.next_in,ie=Y.input,ae=Y.avail_in,K=S.hold,ne=S.bits,S.mode===q&&(S.back=-1);break}for(S.back=0;je=S.lencode[K&(1<<S.lenbits)-1],Ce=je>>>24,De=je>>>16&255,$e=je&65535,!(Ce<=ne);){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if(De&&(De&240)===0){for(Ge=Ce,St=De,At=$e;je=S.lencode[At+((K&(1<<Ge+St)-1)>>Ge)],Ce=je>>>24,De=je>>>16&255,$e=je&65535,!(Ge+Ce<=ne);){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}K>>>=Ge,ne-=Ge,S.back+=Ge}if(K>>>=Ce,ne-=Ce,S.back+=Ce,S.length=$e,De===0){S.mode=te;break}if(De&32){S.back=-1,S.mode=q;break}if(De&64){Y.msg="invalid literal/length code",S.mode=ye;break}S.extra=De&15,S.mode=$;case $:if(S.extra){for(ot=S.extra;ne<ot;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}S.length+=K&(1<<S.extra)-1,K>>>=S.extra,ne-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=U;case U:for(;je=S.distcode[K&(1<<S.distbits)-1],Ce=je>>>24,De=je>>>16&255,$e=je&65535,!(Ce<=ne);){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if((De&240)===0){for(Ge=Ce,St=De,At=$e;je=S.distcode[At+((K&(1<<Ge+St)-1)>>Ge)],Ce=je>>>24,De=je>>>16&255,$e=je&65535,!(Ge+Ce<=ne);){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}K>>>=Ge,ne-=Ge,S.back+=Ge}if(K>>>=Ce,ne-=Ce,S.back+=Ce,De&64){Y.msg="invalid distance code",S.mode=ye;break}S.offset=$e,S.extra=De&15,S.mode=z;case z:if(S.extra){for(ot=S.extra;ne<ot;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}S.offset+=K&(1<<S.extra)-1,K>>>=S.extra,ne-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){Y.msg="invalid distance too far back",S.mode=ye;break}S.mode=re;case re:if(C===0)break e;if(_e=me-C,S.offset>_e){if(_e=S.offset-_e,_e>S.whave&&S.sane){Y.msg="invalid distance too far back",S.mode=ye;break}_e>S.wnext?(_e-=S.wnext,Pe=S.wsize-_e):Pe=S.wnext-_e,_e>S.length&&(_e=S.length),nt=S.window}else nt=ge,Pe=Q-S.offset,_e=S.length;_e>C&&(_e=C),C-=_e,S.length-=_e;do ge[Q++]=nt[Pe++];while(--_e);S.length===0&&(S.mode=B);break;case te:if(C===0)break e;ge[Q++]=S.length,C--,S.mode=B;break;case se:if(S.wrap){for(;ne<32;){if(ae===0)break e;ae--,K|=ie[g++]<<ne,ne+=8}if(me-=C,Y.total_out+=me,S.total+=me,me&&(Y.adler=S.check=S.flags?a(S.check,ge,me,Q-me):n(S.check,ge,me,Q-me)),me=C,(S.flags?K:Fe(K))!==S.check){Y.msg="incorrect data check",S.mode=ye;break}K=0,ne=0}S.mode=fe;case fe:if(S.wrap&&S.flags){for(;ne<32;){if(ae===0)break e;ae--,K+=ie[g++]<<ne,ne+=8}if(K!==(S.total&4294967295)){Y.msg="incorrect length check",S.mode=ye;break}K=0,ne=0}S.mode=ve;case ve:Qe=h;break e;case ye:Qe=v;break e;case Ee:return m;case xe:default:return d}return Y.next_out=Q,Y.avail_out=C,Y.next_in=g,Y.avail_in=ae,S.hold=K,S.bits=ne,(S.wsize||me!==Y.avail_out&&S.mode<ye&&(S.mode<se||M!==p))&&Te(Y,Y.output,Y.next_out,me-Y.avail_out),Se-=Y.avail_in,me-=Y.avail_out,Y.total_in+=Se,Y.total_out+=me,S.total+=me,S.wrap&&me&&(Y.adler=S.check=S.flags?a(S.check,ge,me,Y.next_out-me):n(S.check,ge,me,Y.next_out-me)),Y.data_type=S.bits+(S.last?64:0)+(S.mode===q?128:0)+(S.mode===Z||S.mode===L?256:0),(Se===0&&me===0||M===p)&&Qe===f&&(Qe=c),Qe}function oe(Y){if(!Y||!Y.state)return d;var M=Y.state;return M.window&&(M.window=null),Y.state=null,f}function ue(Y,M){var S;return!Y||!Y.state||(S=Y.state,(S.wrap&2)===0)?d:(S.head=M,M.done=!1,f)}function he(Y,M){var S=M.length,ie,ge,g;return!Y||!Y.state||(ie=Y.state,ie.wrap!==0&&ie.mode!==I)?d:ie.mode===I&&(ge=1,ge=n(ge,M,S,0),ge!==ie.check)?v:(g=Te(Y,M,S,S),g?(ie.mode=Ee,m):(ie.havedict=1,f))}return ct.inflateReset=ee,ct.inflateReset2=de,ct.inflateResetKeep=Ne,ct.inflateInit=X,ct.inflateInit2=P,ct.inflate=k,ct.inflateEnd=oe,ct.inflateGetHeader=ue,ct.inflateSetDictionary=he,ct.inflateInfo="pako inflate (from Nodeca project)",ct}var ra,sf;function Ey(){return sf||(sf=1,ra={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),ra}var uf;function Ry(){return uf||(uf=1,function(e){var n=fr(),a=gy(),i=_y(),o=Sy(),t=Ey();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,p=139;function l(u){if(typeof u!="number"||u<e.DEFLATE||u>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=u,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?i.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&o.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},l.prototype.write=function(u,f,h,w,d,v,m){return this._write(!0,u,f,h,w,d,v,m)},l.prototype.writeSync=function(u,f,h,w,d,v,m){return this._write(!1,u,f,h,w,d,v,m)},l.prototype._write=function(u,f,h,w,d,v,m,c){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(h==null&&(h=Ve.alloc(0),d=0,w=0),this.strm.avail_in=d,this.strm.input=h,this.strm.next_in=w,this.strm.avail_out=c,this.strm.output=v,this.strm.next_out=m,this.flush=f,!u)return this._process(),this._checkError()?this._afterSync():void 0;var _=this;return Re.nextTick(function(){_._process(),_._after()}),this},l.prototype._afterSync=function(){var u=this.strm.avail_out,f=this.strm.avail_in;return this.write_in_progress=!1,[f,u]},l.prototype._process=function(){var u=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(u=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(u===null)break;if(this.strm.input[u]===s){if(this.gzip_id_bytes_read=1,u++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(u===null)break;this.strm.input[u]===p?(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=o.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=o.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=o.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=o.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 u=this.strm.avail_out,f=this.strm.avail_in;this.write_in_progress=!1,this.callback(f,u),this.pending_close&&this.close()}},l.prototype._error=function(u){this.strm.msg&&(u=this.strm.msg),this.onerror(u,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(u,f,h,w,d){n(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(u>=8&&u<=15,"invalid windowBits"),n(f>=-1&&f<=9,"invalid compression level"),n(h>=1&&h<=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,u,h,w,d),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(u,f,h,w,d){switch(this.level=u,this.windowBits=f,this.memLevel=h,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 a,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.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=o.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=d,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=i.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=i.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=o.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l}(Wi)),Wi}var cf;function Oy(){return cf||(cf=1,function(e){var n=cr().Buffer,a=_n().Transform,i=Ry(),o=Xe(),t=fr().ok,r=cr().kMaxLength,s="Cannot create final Buffer. It would be larger than 0x"+r.toString(16)+" bytes";i.Z_MIN_WINDOWBITS=8,i.Z_MAX_WINDOWBITS=15,i.Z_DEFAULT_WINDOWBITS=15,i.Z_MIN_CHUNK=64,i.Z_MAX_CHUNK=1/0,i.Z_DEFAULT_CHUNK=16*1024,i.Z_MIN_MEMLEVEL=1,i.Z_MAX_MEMLEVEL=9,i.Z_DEFAULT_MEMLEVEL=8,i.Z_MIN_LEVEL=-1,i.Z_MAX_LEVEL=9,i.Z_DEFAULT_LEVEL=i.Z_DEFAULT_COMPRESSION;for(var p=Object.keys(i),l=0;l<p.length;l++){var u=p[l];u.match(/^Z/)&&Object.defineProperty(e,u,{enumerable:!0,value:i[u],writable:!1})}for(var f={Z_OK:i.Z_OK,Z_STREAM_END:i.Z_STREAM_END,Z_NEED_DICT:i.Z_NEED_DICT,Z_ERRNO:i.Z_ERRNO,Z_STREAM_ERROR:i.Z_STREAM_ERROR,Z_DATA_ERROR:i.Z_DATA_ERROR,Z_MEM_ERROR:i.Z_MEM_ERROR,Z_BUF_ERROR:i.Z_BUF_ERROR,Z_VERSION_ERROR:i.Z_VERSION_ERROR},h=Object.keys(f),w=0;w<h.length;w++){var d=h[w];f[f[d]]=d}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),e.Deflate=c,e.Inflate=_,e.Gzip=b,e.Gunzip=y,e.DeflateRaw=E,e.InflateRaw=T,e.Unzip=R,e.createDeflate=function(O){return new c(O)},e.createInflate=function(O){return new _(O)},e.createDeflateRaw=function(O){return new E(O)},e.createInflateRaw=function(O){return new T(O)},e.createGzip=function(O){return new b(O)},e.createGunzip=function(O){return new y(O)},e.createUnzip=function(O){return new R(O)},e.deflate=function(O,I,q){return typeof I=="function"&&(q=I,I={}),v(new c(I),O,q)},e.deflateSync=function(O,I){return m(new c(I),O)},e.gzip=function(O,I,q){return typeof I=="function"&&(q=I,I={}),v(new b(I),O,q)},e.gzipSync=function(O,I){return m(new b(I),O)},e.deflateRaw=function(O,I,q){return typeof I=="function"&&(q=I,I={}),v(new E(I),O,q)},e.deflateRawSync=function(O,I){return m(new E(I),O)},e.unzip=function(O,I,q){return typeof I=="function"&&(q=I,I={}),v(new R(I),O,q)},e.unzipSync=function(O,I){return m(new R(I),O)},e.inflate=function(O,I,q){return typeof I=="function"&&(q=I,I={}),v(new _(I),O,q)},e.inflateSync=function(O,I){return m(new _(I),O)},e.gunzip=function(O,I,q){return typeof I=="function"&&(q=I,I={}),v(new y(I),O,q)},e.gunzipSync=function(O,I){return m(new y(I),O)},e.inflateRaw=function(O,I,q){return typeof I=="function"&&(q=I,I={}),v(new T(I),O,q)},e.inflateRawSync=function(O,I){return m(new T(I),O)};function v(O,I,q){var F=[],V=0;O.on("error",A),O.on("end",D),O.end(I),L();function L(){for(var N;(N=O.read())!==null;)F.push(N),V+=N.length;O.once("readable",L)}function A(N){O.removeListener("end",D),O.removeListener("readable",L),q(N)}function D(){var N,H=null;V>=r?H=new RangeError(s):N=n.concat(F,V),F=[],O.close(),q(H,N)}}function m(O,I){if(typeof I=="string"&&(I=n.from(I)),!n.isBuffer(I))throw new TypeError("Not a string or buffer");var q=O._finishFlushFlag;return O._processChunk(I,q)}function c(O){if(!(this instanceof c))return new c(O);j.call(this,O,i.DEFLATE)}function _(O){if(!(this instanceof _))return new _(O);j.call(this,O,i.INFLATE)}function b(O){if(!(this instanceof b))return new b(O);j.call(this,O,i.GZIP)}function y(O){if(!(this instanceof y))return new y(O);j.call(this,O,i.GUNZIP)}function E(O){if(!(this instanceof E))return new E(O);j.call(this,O,i.DEFLATERAW)}function T(O){if(!(this instanceof T))return new T(O);j.call(this,O,i.INFLATERAW)}function R(O){if(!(this instanceof R))return new R(O);j.call(this,O,i.UNZIP)}function x(O){return O===i.Z_NO_FLUSH||O===i.Z_PARTIAL_FLUSH||O===i.Z_SYNC_FLUSH||O===i.Z_FULL_FLUSH||O===i.Z_FINISH||O===i.Z_BLOCK}function j(O,I){var q=this;if(this._opts=O=O||{},this._chunkSize=O.chunkSize||e.Z_DEFAULT_CHUNK,a.call(this,O),O.flush&&!x(O.flush))throw new Error("Invalid flush flag: "+O.flush);if(O.finishFlush&&!x(O.finishFlush))throw new Error("Invalid flush flag: "+O.finishFlush);if(this._flushFlag=O.flush||i.Z_NO_FLUSH,this._finishFlushFlag=typeof O.finishFlush<"u"?O.finishFlush:i.Z_FINISH,O.chunkSize&&(O.chunkSize<e.Z_MIN_CHUNK||O.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+O.chunkSize);if(O.windowBits&&(O.windowBits<e.Z_MIN_WINDOWBITS||O.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+O.windowBits);if(O.level&&(O.level<e.Z_MIN_LEVEL||O.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+O.level);if(O.memLevel&&(O.memLevel<e.Z_MIN_MEMLEVEL||O.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+O.memLevel);if(O.strategy&&O.strategy!=e.Z_FILTERED&&O.strategy!=e.Z_HUFFMAN_ONLY&&O.strategy!=e.Z_RLE&&O.strategy!=e.Z_FIXED&&O.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+O.strategy);if(O.dictionary&&!n.isBuffer(O.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(I);var F=this;this._hadError=!1,this._handle.onerror=function(A,D){W(F),F._hadError=!0;var N=new Error(A);N.errno=D,N.code=e.codes[D],F.emit("error",N)};var V=e.Z_DEFAULT_COMPRESSION;typeof O.level=="number"&&(V=O.level);var L=e.Z_DEFAULT_STRATEGY;typeof O.strategy=="number"&&(L=O.strategy),this._handle.init(O.windowBits||e.Z_DEFAULT_WINDOWBITS,V,O.memLevel||e.Z_DEFAULT_MEMLEVEL,L,O.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=V,this._strategy=L,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!q._handle},configurable:!0,enumerable:!0})}o.inherits(j,a),j.prototype.params=function(O,I,q){if(O<e.Z_MIN_LEVEL||O>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+O);if(I!=e.Z_FILTERED&&I!=e.Z_HUFFMAN_ONLY&&I!=e.Z_RLE&&I!=e.Z_FIXED&&I!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+I);if(this._level!==O||this._strategy!==I){var F=this;this.flush(i.Z_SYNC_FLUSH,function(){t(F._handle,"zlib binding closed"),F._handle.params(O,I),F._hadError||(F._level=O,F._strategy=I,q&&q())})}else Re.nextTick(q)},j.prototype.reset=function(){return t(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(O){this._transform(n.alloc(0),"",O)},j.prototype.flush=function(O,I){var q=this,F=this._writableState;(typeof O=="function"||O===void 0&&!I)&&(I=O,O=i.Z_FULL_FLUSH),F.ended?I&&Re.nextTick(I):F.ending?I&&this.once("end",I):F.needDrain?I&&this.once("drain",function(){return q.flush(O,I)}):(this._flushFlag=O,this.write(n.alloc(0),"",I))},j.prototype.close=function(O){W(this,O),Re.nextTick(G,this)};function W(O,I){I&&Re.nextTick(I),O._handle&&(O._handle.close(),O._handle=null)}function G(O){O.emit("close")}j.prototype._transform=function(O,I,q){var F,V=this._writableState,L=V.ending||V.ended,A=L&&(!O||V.length===O.length);if(O!==null&&!n.isBuffer(O))return q(new Error("invalid input"));if(!this._handle)return q(new Error("zlib binding closed"));A?F=this._finishFlushFlag:(F=this._flushFlag,O.length>=V.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),this._processChunk(O,F,q)},j.prototype._processChunk=function(O,I,q){var F=O&&O.length,V=this._chunkSize-this._offset,L=0,A=this,D=typeof q=="function";if(!D){var N=[],H=0,Z;this.on("error",function(re){Z=re}),t(this._handle,"zlib binding closed");do var B=this._handle.writeSync(I,O,L,F,this._buffer,this._offset,V);while(!this._hadError&&z(B[0],B[1]));if(this._hadError)throw Z;if(H>=r)throw W(this),new RangeError(s);var $=n.concat(N,H);return W(this),$}t(this._handle,"zlib binding closed");var U=this._handle.write(I,O,L,F,this._buffer,this._offset,V);U.buffer=O,U.callback=z;function z(re,te){if(this&&(this.buffer=null,this.callback=null),!A._hadError){var se=V-te;if(t(se>=0,"have should not go down"),se>0){var fe=A._buffer.slice(A._offset,A._offset+se);A._offset+=se,D?A.push(fe):(N.push(fe),H+=fe.length)}if((te===0||A._offset>=A._chunkSize)&&(V=A._chunkSize,A._offset=0,A._buffer=n.allocUnsafe(A._chunkSize)),te===0){if(L+=F-re,F=re,!D)return!0;var ve=A._handle.write(I,O,L,F,A._buffer,A._offset,A._chunkSize);ve.callback=z,ve.buffer=O;return}if(!D)return!1;q()}}},o.inherits(c,j),o.inherits(_,j),o.inherits(b,j),o.inherits(y,j),o.inherits(E,j),o.inherits(T,j),o.inherits(R,j)}(Zi)),Zi}var Jr={exports:{}},ff;function Ut(){return ff||(ff=1,function(e,n){n=e.exports=Ym(),n.Stream=n,n.Readable=n,n.Writable=Zh(),n.Duplex=Jm(),n.Transform=Xm(),n.PassThrough=Qm(),n.finished=eg(),n.pipeline=tg()}(Jr,Jr.exports)),Jr.exports}var na={exports:{}},ia,lf;function Ty(){if(lf)return ia;lf=1;var e=[],n=[],a=function(){};function i(h){return~e.indexOf(h)?!1:(e.push(h),!0)}function o(h){a=h}function t(h){for(var w=[],d=0;d<e.length;d++){if(e[d].async){w.push(e[d]);continue}if(e[d](h))return!0}return w.length?new Promise(function(m){Promise.all(w.map(function(_){return _(h)})).then(function(_){m(_.some(Boolean))})}):!1}function r(h){return~n.indexOf(h)?!1:(n.push(h),!0)}function s(){a.apply(a,arguments)}function p(h){for(var w=0;w<n.length;w++)h=n[w].apply(n[w],arguments);return h}function l(h,w){var d=Object.prototype.hasOwnProperty;for(var v in w)d.call(w,v)&&(h[v]=w[v]);return h}function u(h){return h.enabled=!1,h.modify=r,h.set=o,h.use=i,l(function(){return!1},h)}function f(h){function w(){var d=Array.prototype.slice.call(arguments,0);return s.call(s,h,p(d,h)),!0}return h.enabled=!0,h.modify=r,h.set=o,h.use=i,l(w,h)}return ia=function(w){return w.introduce=l,w.enabled=t,w.process=p,w.modify=r,w.write=s,w.nope=u,w.yep=f,w.set=o,w.use=i,w},ia}var aa,hf;function xy(){if(hf)return aa;hf=1;var e=Ty(),n=e(function a(i,o){return o=o||{},o.namespace=i,o.prod=!0,o.dev=!1,o.force||a.force?a.yep(o):a.nope(o)});return aa=n,aa}var df;function En(){return df||(df=1,na.exports=xy()),na.exports}var oa,pf;function Iy(){if(pf)return oa;pf=1;var e=xs(),n=rg(),a=n.StringDecoder,i=Ut(),o=i.Stream;function t(){}return oa=function(r,s){var p=Ve.alloc(65536),l=new a("utf8"),u=new o,f="",h=0,w=0;return r.start===-1&&delete r.start,u.readable=!0,u.destroy=function(){u.destroyed=!0,u.emit("end"),u.emit("close")},e.open(r.file,"a+","0644",function(d,v){if(d){s?s(d):u.emit("error",d),u.destroy();return}(function m(){if(u.destroyed){e.close(v,t);return}return e.read(v,p,0,p.length,h,function(c,_){if(c){s?s(c):u.emit("error",c),u.destroy();return}if(!_)return f&&((r.start==null||w>r.start)&&(s?s(null,f):u.emit("line",f)),w++,f=""),setTimeout(m,1e3);var b=l.write(p.slice(0,_));s||u.emit("data",b),b=(f+b).split(/\n+/);for(var y=b.length-1,E=0;E<y;E++)(r.start==null||w>r.start)&&(s?s(null,b[E]):u.emit("line",b[E])),w++;return f=b[y],h+=_,m()})})()}),s?u.destroy:u},oa}var sa,mf;function Ay(){if(mf)return sa;mf=1;function e(x){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},e(x)}function n(x,j){if(!(x instanceof j))throw new TypeError("Cannot call a class as a function")}function a(x,j){for(var W=0;W<j.length;W++){var G=j[W];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(x,G.key,G)}}function i(x,j,W){return j&&a(x.prototype,j),Object.defineProperty(x,"prototype",{writable:!1}),x}function o(x,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(j&&j.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),j&&t(x,j)}function t(x,j){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,O){return G.__proto__=O,G},t(x,j)}function r(x){var j=l();return function(){var G=u(x),O;if(j){var I=u(this).constructor;O=Reflect.construct(G,arguments,I)}else O=G.apply(this,arguments);return s(this,O)}}function s(x,j){if(j&&(e(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(x)}function p(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}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 u(x){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},u(x)}var f=xs(),h=wd(),w=my(),d=Oy(),v=ze(),m=v.MESSAGE,c=Ut(),_=c.Stream,b=c.PassThrough,y=Ft(),E=En()("winston:file"),T=Mt(),R=Iy();return sa=function(x){o(W,x);var j=r(W);function W(){var G,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,W),G=j.call(this,O),G.name=O.name||"file";function I(q){for(var F=arguments.length,V=new Array(F>1?F-1:0),L=1;L<F;L++)V[L-1]=arguments[L];V.slice(1).forEach(function(A){if(O[A])throw new Error("Cannot set ".concat(A," and ").concat(q," together"))})}if(G._stream=new b,G._stream.setMaxListeners(30),G._onError=G._onError.bind(p(G)),O.filename||O.dirname)I("filename or dirname","stream"),G._basename=G.filename=O.filename?h.basename(O.filename):"winston.log",G.dirname=O.dirname||h.dirname(O.filename),G.options=O.options||{flags:"a"};else if(O.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),I("stream","filename","maxsize"),G._dest=G._stream.pipe(G._setupStream(O.stream)),G.dirname=h.dirname(G._dest.path);else throw new Error("Cannot log to file without filename or stream.");return G.maxsize=O.maxsize||null,G.rotationFormat=O.rotationFormat||!1,G.zippedArchive=O.zippedArchive||!1,G.maxFiles=O.maxFiles||null,G.eol=typeof O.eol=="string"?O.eol:T.EOL,G.tailable=O.tailable||!1,G._size=0,G._pendingSize=0,G._created=0,G._drain=!1,G._opening=!1,G._ending=!1,G.dirname&&G._createLogDirIfNotExist(G.dirname),G.open(),G}return i(W,[{key:"finishIfEnding",value:function(){var O=this;this._ending&&(this._opening?this.once("open",function(){O._stream.once("finish",function(){return O.emit("finish")}),setImmediate(function(){return O._stream.end()})}):(this._stream.once("finish",function(){return O.emit("finish")}),setImmediate(function(){return O._stream.end()})))}},{key:"log",value:function(O){var I=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return q(),!0;if(this._drain){this._stream.once("drain",function(){I._drain=!1,I.log(O,q)});return}if(this._rotate){this._stream.once("rotate",function(){I._rotate=!1,I.log(O,q)});return}var F="".concat(O[m]).concat(this.eol),V=Ve.byteLength(F);function L(){var D=this;this._size+=V,this._pendingSize-=V,E("logged %s %s",this._size,F),this.emit("logged",O),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return D._rotateFile()}))}this._pendingSize+=V,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var A=this._stream.write(F,L.bind(this));return A?q():(this._drain=!0,this._stream.once("drain",function(){I._drain=!1,q()})),E("written",A,this._drain),this.finishIfEnding(),A}},{key:"query",value:function(O,I){typeof O=="function"&&(I=O,O={}),O=Z(O);var q=h.join(this.dirname,this.filename),F="",V=[],L=0,A=f.createReadStream(q,{encoding:"utf8"});A.on("error",function(B){if(A.readable&&A.destroy(),!!I)return B.code!=="ENOENT"?I(B):I(null,V)}),A.on("data",function(B){B=(F+B).split(/\n+/);for(var $=B.length-1,U=0;U<$;U++)(!O.start||L>=O.start)&&D(B[U]),L++;F=B[$]}),A.on("close",function(){F&&D(F,!0),O.order==="desc"&&(V=V.reverse()),I&&I(null,V)});function D(B,$){try{var U=JSON.parse(B);H(U)&&N(U)}catch(z){$||A.emit("error",z)}}function N(B){if(O.rows&&V.length>=O.rows&&O.order!=="desc"){A.readable&&A.destroy();return}O.fields&&(B=O.fields.reduce(function($,U){return $[U]=B[U],$},{})),O.order==="desc"&&V.length>=O.rows&&V.shift(),V.push(B)}function H(B){if(B&&e(B)==="object"){var $=new Date(B.timestamp);if(!(O.from&&$<O.from||O.until&&$>O.until||O.level&&O.level!==B.level))return!0}}function Z(B){return B=B||{},B.rows=B.rows||B.limit||10,B.start=B.start||0,B.until=B.until||new Date,e(B.until)!=="object"&&(B.until=new Date(B.until)),B.from=B.from||B.until-24*60*60*1e3,e(B.from)!=="object"&&(B.from=new Date(B.from)),B.order=B.order||"desc",B}}},{key:"stream",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=h.join(this.dirname,this.filename),q=new _,F={file:I,start:O.start};return q.destroy=R(F,function(V,L){if(V)return q.emit("error",V);try{q.emit("data",L),L=JSON.parse(L),q.emit("log",L)}catch(A){q.emit("error",A)}}),q}},{key:"open",value:function(){var O=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(I,q){if(I)return O.emit("error",I);E("stat done: %s { size: %s }",O.filename,q),O._size=q,O._dest=O._createStream(O._stream),O._opening=!1,O.once("open",function(){O._stream.eventNames().includes("rotate")?O._stream.emit("rotate"):O._rotate=!1})})))}},{key:"stat",value:function(O){var I=this,q=this._getFile(),F=h.join(this.dirname,q);f.stat(F,function(V,L){if(V&&V.code==="ENOENT")return E("ENOENT ok",F),I.filename=q,O(null,0);if(V)return E("err ".concat(V.code," ").concat(F)),O(V);if(!L||I._needsNewFile(L.size))return I._incFile(function(){return I.stat(O)});I.filename=q,O(null,L.size)})}},{key:"close",value:function(O){var I=this;this._stream&&this._stream.end(function(){O&&O(),I.emit("flush"),I.emit("closed")})}},{key:"_needsNewFile",value:function(O){return O=O||this._size,this.maxsize&&O>=this.maxsize}},{key:"_onError",value:function(O){this.emit("error",O)}},{key:"_setupStream",value:function(O){return O.on("error",this._onError),O}},{key:"_cleanupStream",value:function(O){return O.removeListener("error",this._onError),O}},{key:"_rotateFile",value:function(){var O=this;this._incFile(function(){return O.open()})}},{key:"_endStream",value:function(){var O=this,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){O._cleanupStream(O._dest),I()})):I()}},{key:"_createStream",value:function(O){var I=this,q=h.join(this.dirname,this.filename);E("create stream start",q,this.options);var F=f.createWriteStream(q,this.options).on("error",function(L){return E(L)}).on("close",function(){return E("close",F.path,F.bytesWritten)}).on("open",function(){E("file open ok",q),I.emit("open",q),O.pipe(F),I.rotatedWhileOpening&&(I._stream=new b,I._stream.setMaxListeners(30),I._rotateFile(),I.rotatedWhileOpening=!1,I._cleanupStream(F),O.end())});if(E("create stream ok",q),this.zippedArchive){var V=d.createGzip();return V.pipe(F),V}return F}},{key:"_incFile",value:function(O){E("_incFile",this.filename);var I=h.extname(this._basename),q=h.basename(this._basename,I);this.tailable?this._checkMaxFilesTailable(I,q,O):(this._created+=1,this._checkMaxFilesIncrementing(I,q,O))}},{key:"_getFile",value:function(){var O=h.extname(this._basename),I=h.basename(this._basename,O),q=this.rotationFormat?this.rotationFormat():this._created,F=!this.tailable&&this._created?"".concat(I).concat(q).concat(O):"".concat(I).concat(O);return this.zippedArchive&&!this.tailable?"".concat(F,".gz"):F}},{key:"_checkMaxFilesIncrementing",value:function(O,I,q){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(q);var F=this._created-this.maxFiles,V=F!==0?F:"",L=this.zippedArchive?".gz":"",A="".concat(I).concat(V).concat(O).concat(L),D=h.join(this.dirname,A);f.unlink(D,q)}},{key:"_checkMaxFilesTailable",value:function(O,I,q){var F=this,V=[];if(this.maxFiles){for(var L=this.zippedArchive?".gz":"",A=this.maxFiles-1;A>1;A--)V.push((function(D,N){var H=this,Z="".concat(I).concat(D-1).concat(O).concat(L),B=h.join(this.dirname,Z);f.exists(B,function($){if(!$)return N(null);Z="".concat(I).concat(D).concat(O).concat(L),f.rename(B,h.join(H.dirname,Z),N)})}).bind(this,A));w(V,function(){f.rename(h.join(F.dirname,"".concat(I).concat(O)),h.join(F.dirname,"".concat(I,"1").concat(O).concat(L)),q)})}}},{key:"_createLogDirIfNotExist",value:function(O){f.existsSync(O)||f.mkdirSync(O,{recursive:!0})}}]),W}(y),sa}var ua={},ca={exports:{}},fa={},gf;function xd(){return gf||(gf=1,function(e){e.fetch=o(Be.fetch)&&o(Be.ReadableStream),e.writableStream=o(Be.WritableStream),e.abortController=o(Be.AbortController);var n;function a(){if(n!==void 0)return n;if(Be.XMLHttpRequest){n=new Be.XMLHttpRequest;try{n.open("GET",Be.XDomainRequest?"/":"https://example.com")}catch{n=null}}else n=null;return n}function i(t){var r=a();if(!r)return!1;try{return r.responseType=t,r.responseType===t}catch{}return!1}e.arraybuffer=e.fetch||i("arraybuffer"),e.msstream=!e.fetch&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?o(a().overrideMimeType):!1);function o(t){return typeof t=="function"}n=null}(fa)),fa}var Xr={},vf;function Id(){if(vf)return Xr;vf=1;var e=xd(),n=Wh(),a=Ut(),i=Xr.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=Xr.IncomingMessage=function(t,r,s,p){var l=this;if(a.Readable.call(l),l._mode=s,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){Re.nextTick(function(){l.emit("close")})}),s==="fetch"){let v=function(){f.read().then(function(m){if(!l._destroyed){if(p(m.done),m.done){l.push(null);return}l.push(Ve.from(m.value)),v()}}).catch(function(m){p(!0),l._destroyed||l.emit("error",m)})};if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach(function(m,c){l.headers[c.toLowerCase()]=m,l.rawHeaders.push(c,m)}),e.writableStream){var u=new WritableStream({write:function(m){return p(!1),new Promise(function(c,_){l._destroyed?_():l.push(Ve.from(m))?c():l._resumeFetch=c})},close:function(){p(!0),l._destroyed||l.push(null)},abort:function(m){p(!0),l._destroyed||l.emit("error",m)}});try{r.body.pipeTo(u).catch(function(m){p(!0),l._destroyed||l.emit("error",m)});return}catch{}}var f=r.body.getReader();v()}else{l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.statusMessage=t.statusText;var h=t.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(v){var m=v.match(/^([^:]+):\s*(.*)/);if(m){var c=m[1].toLowerCase();c==="set-cookie"?(l.headers[c]===void 0&&(l.headers[c]=[]),l.headers[c].push(m[2])):l.headers[c]!==void 0?l.headers[c]+=", "+m[2]:l.headers[c]=m[2],l.rawHeaders.push(m[1],m[2])}}),l._charset="x-user-defined",!e.overrideMimeType){var w=l.rawHeaders["mime-type"];if(w){var d=w.match(/;\s*charset=([^;])(;|$)/);d&&(l._charset=d[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};return n(o,a.Readable),o.prototype._read=function(){var t=this,r=t._resumeFetch;r&&(t._resumeFetch=null,r())},o.prototype._onXHRProgress=function(t){var r=this,s=r._xhr,p=null;switch(r._mode){case"text":if(p=s.responseText,p.length>r._pos){var l=p.substr(r._pos);if(r._charset==="x-user-defined"){for(var u=Ve.alloc(l.length),f=0;f<l.length;f++)u[f]=l.charCodeAt(f)&255;r.push(u)}else r.push(l,r._charset);r._pos=p.length}break;case"arraybuffer":if(s.readyState!==i.DONE||!s.response)break;p=s.response,r.push(Ve.from(new Uint8Array(p)));break;case"moz-chunked-arraybuffer":if(p=s.response,s.readyState!==i.LOADING||!p)break;r.push(Ve.from(new Uint8Array(p)));break;case"ms-stream":if(p=s.response,s.readyState!==i.LOADING)break;var h=new Be.MSStreamReader;h.onprogress=function(){h.result.byteLength>r._pos&&(r.push(Ve.from(new Uint8Array(h.result.slice(r._pos)))),r._pos=h.result.byteLength)},h.onload=function(){t(!0),r.push(null)},h.readAsArrayBuffer(p);break}r._xhr.readyState===i.DONE&&r._mode!=="ms-stream"&&(t(!0),r.push(null))},Xr}var yf;function Cy(){if(yf)return ca.exports;yf=1;var e=xd(),n=Wh(),a=Id(),i=Ut(),o=a.IncomingMessage,t=a.readyStates;function r(u,f){return e.fetch&&f?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=ca.exports=function(u){var f=this;i.Writable.call(f),f._opts=u,f._body=[],f._headers={},u.auth&&f.setHeader("Authorization","Basic "+Ve.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(d){f.setHeader(d,u.headers[d])});var h,w=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)w=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");f._mode=r(h,w),f._fetchTimer=null,f._socketTimeout=null,f._socketTimer=null,f.on("finish",function(){f._onFinish()})};n(s,i.Writable),s.prototype.setHeader=function(u,f){var h=this,w=u.toLowerCase();l.indexOf(w)===-1&&(h._headers[w]={name:u,value:f})},s.prototype.getHeader=function(u){var f=this._headers[u.toLowerCase()];return f?f.value:null},s.prototype.removeHeader=function(u){var f=this;delete f._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var f=u._opts;"timeout"in f&&f.timeout!==0&&u.setTimeout(f.timeout);var h=u._headers,w=null;f.method!=="GET"&&f.method!=="HEAD"&&(w=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var d=[];if(Object.keys(h).forEach(function(_){var b=h[_].name,y=h[_].value;Array.isArray(y)?y.forEach(function(E){d.push([b,E])}):d.push([b,y])}),u._mode==="fetch"){var v=null;if(e.abortController){var m=new AbortController;v=m.signal,u._fetchAbortController=m,"requestTimeout"in f&&f.requestTimeout!==0&&(u._fetchTimer=Be.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},f.requestTimeout))}Be.fetch(u._opts.url,{method:u._opts.method,headers:d,body:w||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:v}).then(function(_){u._fetchResponse=_,u._resetTimers(!1),u._connect()},function(_){u._resetTimers(!0),u._destroyed||u.emit("error",_)})}else{var c=u._xhr=new Be.XMLHttpRequest;try{c.open(u._opts.method,u._opts.url,!0)}catch(_){Re.nextTick(function(){u.emit("error",_)});return}"responseType"in c&&(c.responseType=u._mode),"withCredentials"in c&&(c.withCredentials=!!f.withCredentials),u._mode==="text"&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(c.timeout=f.requestTimeout,c.ontimeout=function(){u.emit("requestTimeout")}),d.forEach(function(_){c.setRequestHeader(_[0],_[1])}),u._response=null,c.onreadystatechange=function(){switch(c.readyState){case t.LOADING:case t.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(c.onprogress=function(){u._onXHRProgress()}),c.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{c.send(w)}catch(_){Re.nextTick(function(){u.emit("error",_)});return}}}};function p(u){try{var f=u.status;return f!==null&&f!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!p(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new o(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(f){u.emit("error",f)}),u.emit("response",u._response))},s.prototype._write=function(u,f,h){var w=this;w._body.push(u),h()},s.prototype._resetTimers=function(u){var f=this;Be.clearTimeout(f._socketTimer),f._socketTimer=null,u?(Be.clearTimeout(f._fetchTimer),f._fetchTimer=null):f._socketTimeout&&(f._socketTimer=Be.setTimeout(function(){f.emit("timeout")},f._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var f=this;f._destroyed=!0,f._resetTimers(!0),f._response&&(f._response._destroyed=!0),f._xhr?f._xhr.abort():f._fetchAbortController&&f._fetchAbortController.abort(),u&&f.emit("error",u)},s.prototype.end=function(u,f,h){var w=this;typeof u=="function"&&(h=u,u=void 0),i.Writable.prototype.end.call(w,u,f,h)},s.prototype.setTimeout=function(u,f){var h=this;f&&h.once("timeout",f),h._socketTimeout=u,h._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return ca.exports}var la,_f;function Py(){if(_f)return la;_f=1,la=n;var e=Object.prototype.hasOwnProperty;function n(){for(var a={},i=0;i<arguments.length;i++){var o=arguments[i];for(var t in o)e.call(o,t)&&(a[t]=o[t])}return a}return la}var ha,bf;function ky(){return bf||(bf=1,ha={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),ha}var Qr={exports:{}},or={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var Ly=or.exports,wf;function qy(){return wf||(wf=1,function(e,n){(function(a){var i=n&&!n.nodeType&&n,o=e&&!e.nodeType&&e,t=typeof Be=="object"&&Be;(t.global===t||t.window===t||t.self===t)&&(a=t);var r,s=2147483647,p=36,l=1,u=26,f=38,h=700,w=72,d=128,v="-",m=/^xn--/,c=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=p-l,E=Math.floor,T=String.fromCharCode,R;function x(N){throw new RangeError(b[N])}function j(N,H){for(var Z=N.length,B=[];Z--;)B[Z]=H(N[Z]);return B}function W(N,H){var Z=N.split("@"),B="";Z.length>1&&(B=Z[0]+"@",N=Z[1]),N=N.replace(_,".");var $=N.split("."),U=j($,H).join(".");return B+U}function G(N){for(var H=[],Z=0,B=N.length,$,U;Z<B;)$=N.charCodeAt(Z++),$>=55296&&$<=56319&&Z<B?(U=N.charCodeAt(Z++),(U&64512)==56320?H.push((($&1023)<<10)+(U&1023)+65536):(H.push($),Z--)):H.push($);return H}function O(N){return j(N,function(H){var Z="";return H>65535&&(H-=65536,Z+=T(H>>>10&1023|55296),H=56320|H&1023),Z+=T(H),Z}).join("")}function I(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:p}function q(N,H){return N+22+75*(N<26)-((H!=0)<<5)}function F(N,H,Z){var B=0;for(N=Z?E(N/h):N>>1,N+=E(N/H);N>y*u>>1;B+=p)N=E(N/y);return E(B+(y+1)*N/(N+f))}function V(N){var H=[],Z=N.length,B,$=0,U=d,z=w,re,te,se,fe,ve,ye,Ee,xe,ke;for(re=N.lastIndexOf(v),re<0&&(re=0),te=0;te<re;++te)N.charCodeAt(te)>=128&&x("not-basic"),H.push(N.charCodeAt(te));for(se=re>0?re+1:0;se<Z;){for(fe=$,ve=1,ye=p;se>=Z&&x("invalid-input"),Ee=I(N.charCodeAt(se++)),(Ee>=p||Ee>E((s-$)/ve))&&x("overflow"),$+=Ee*ve,xe=ye<=z?l:ye>=z+u?u:ye-z,!(Ee<xe);ye+=p)ke=p-xe,ve>E(s/ke)&&x("overflow"),ve*=ke;B=H.length+1,z=F($-fe,B,fe==0),E($/B)>s-U&&x("overflow"),U+=E($/B),$%=B,H.splice($++,0,U)}return O(H)}function L(N){var H,Z,B,$,U,z,re,te,se,fe,ve,ye=[],Ee,xe,ke,qe;for(N=G(N),Ee=N.length,H=d,Z=0,U=w,z=0;z<Ee;++z)ve=N[z],ve<128&&ye.push(T(ve));for(B=$=ye.length,$&&ye.push(v);B<Ee;){for(re=s,z=0;z<Ee;++z)ve=N[z],ve>=H&&ve<re&&(re=ve);for(xe=B+1,re-H>E((s-Z)/xe)&&x("overflow"),Z+=(re-H)*xe,H=re,z=0;z<Ee;++z)if(ve=N[z],ve<H&&++Z>s&&x("overflow"),ve==H){for(te=Z,se=p;fe=se<=U?l:se>=U+u?u:se-U,!(te<fe);se+=p)qe=te-fe,ke=p-fe,ye.push(T(q(fe+qe%ke,0))),te=E(qe/ke);ye.push(T(q(te,0))),U=F(Z,xe,B==$),Z=0,++B}++Z,++H}return ye.join("")}function A(N){return W(N,function(H){return m.test(H)?V(H.slice(4).toLowerCase()):H})}function D(N){return W(N,function(H){return c.test(H)?"xn--"+L(H):H})}if(r={version:"1.4.1",ucs2:{decode:G,encode:O},decode:V,encode:L,toASCII:D,toUnicode:A},i&&o)if(e.exports==i)o.exports=r;else for(R in r)r.hasOwnProperty(R)&&(i[R]=r[R]);else a.punycode=r})(Ly)}(or,or.exports)),or.exports}const jy={},Dy=Object.freeze(Object.defineProperty({__proto__:null,default:jy},Symbol.toStringTag,{value:"Module"})),Ny=Hh(Dy);var da,Sf;function Rn(){if(Sf)return da;Sf=1;var e=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=e&&n&&typeof n.get=="function"?n.get:null,i=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,t=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=o&&t&&typeof t.get=="function"?t.get:null,s=o&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype,l=p?WeakMap.prototype.has:null,u=typeof WeakSet=="function"&&WeakSet.prototype,f=u?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,w=h?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,v=Object.prototype.toString,m=Function.prototype.toString,c=String.prototype.match,_=String.prototype.slice,b=String.prototype.replace,y=String.prototype.toUpperCase,E=String.prototype.toLowerCase,T=RegExp.prototype.test,R=Array.prototype.concat,x=Array.prototype.join,j=Array.prototype.slice,W=Math.floor,G=typeof BigInt=="function"?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",F=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===q||!0)?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,L=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(M){return M.__proto__}:null);function A(M,S){if(M===1/0||M===-1/0||M!==M||M&&M>-1e3&&M<1e3||T.call(/e/,S))return S;var ie=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof M=="number"){var ge=M<0?-W(-M):W(M);if(ge!==M){var g=String(ge),Q=_.call(S,g.length+1);return b.call(g,ie,"$&_")+"."+b.call(b.call(Q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(S,ie,"$&_")}var D=Ny,N=D.custom,H=xe(N)?N:null,Z={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};da=function M(S,ie,ge,g){var Q=ie||{};if(Ie(Q,"quoteStyle")&&!Ie(Z,Q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ie(Q,"maxStringLength")&&(typeof Q.maxStringLength=="number"?Q.maxStringLength<0&&Q.maxStringLength!==1/0:Q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ae=Ie(Q,"customInspect")?Q.customInspect:!0;if(typeof ae!="boolean"&&ae!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ie(Q,"indent")&&Q.indent!==null&&Q.indent!==" "&&!(parseInt(Q.indent,10)===Q.indent&&Q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ie(Q,"numericSeparator")&&typeof Q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var C=Q.numericSeparator;if(typeof S>"u")return"undefined";if(S===null)return"null";if(typeof S=="boolean")return S?"true":"false";if(typeof S=="string")return be(S,Q);if(typeof S=="number"){if(S===0)return 1/0/S>0?"0":"-0";var K=String(S);return C?A(S,K):K}if(typeof S=="bigint"){var ne=String(S)+"n";return C?A(S,ne):ne}var Se=typeof Q.depth>"u"?5:Q.depth;if(typeof ge>"u"&&(ge=0),ge>=Se&&Se>0&&typeof S=="object")return re(S)?"[Array]":"[Object]";var me=ue(Q,ge);if(typeof g>"u")g=[];else if(Je(g,S)>=0)return"[Circular]";function _e(Bt,br,tp){if(br&&(g=j.call(g),g.push(br)),tp){var Bs={depth:Q.depth};return Ie(Q,"quoteStyle")&&(Bs.quoteStyle=Q.quoteStyle),M(Bt,Bs,ge+1,g)}return M(Bt,Q,ge+1,g)}if(typeof S=="function"&&!se(S)){var Pe=Fe(S),nt=Y(S,_e);return"[Function"+(Pe?": "+Pe:" (anonymous)")+"]"+(nt.length>0?" { "+x.call(nt,", ")+" }":"")}if(xe(S)){var je=q?b.call(String(S),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(S);return typeof S=="object"&&!q?le(je):je}if(ce(S)){for(var Ce="<"+E.call(String(S.nodeName)),De=S.attributes||[],$e=0;$e<De.length;$e++)Ce+=" "+De[$e].name+"="+$(U(De[$e].value),"double",Q);return Ce+=">",S.childNodes&&S.childNodes.length&&(Ce+="..."),Ce+="</"+E.call(String(S.nodeName))+">",Ce}if(re(S)){if(S.length===0)return"[]";var Ge=Y(S,_e);return me&&!oe(Ge)?"["+he(Ge,me)+"]":"[ "+x.call(Ge,", ")+" ]"}if(fe(S)){var St=Y(S,_e);return!("cause"in Error.prototype)&&"cause"in S&&!V.call(S,"cause")?"{ ["+String(S)+"] "+x.call(R.call("[cause]: "+_e(S.cause),St),", ")+" }":St.length===0?"["+String(S)+"]":"{ ["+String(S)+"] "+x.call(St,", ")+" }"}if(typeof S=="object"&&ae){if(H&&typeof S[H]=="function"&&D)return D(S,{depth:Se-ge});if(ae!=="symbol"&&typeof S.inspect=="function")return S.inspect()}if(Ne(S)){var At=[];return i&&i.call(S,function(Bt,br){At.push(_e(br,S,!0)+" => "+_e(Bt,S))}),k("Map",a.call(S),At,me)}if(P(S)){var Ue=[];return s&&s.call(S,function(Bt){Ue.push(_e(Bt,S))}),k("Set",r.call(S),Ue,me)}if(ee(S))return Te("WeakMap");if(X(S))return Te("WeakSet");if(de(S))return Te("WeakRef");if(ye(S))return le(_e(Number(S)));if(ke(S))return le(_e(G.call(S)));if(Ee(S))return le(d.call(S));if(ve(S))return le(_e(String(S)));if(typeof window<"u"&&S===window)return"{ [object Window] }";if(typeof globalThis<"u"&&S===globalThis||typeof Be<"u"&&S===Be)return"{ [object globalThis] }";if(!te(S)&&!se(S)){var Qe=Y(S,_e),He=L?L(S)===Object.prototype:S instanceof Object||S.constructor===Object,at=S instanceof Object?"":"null prototype",ot=!He&&F&&Object(S)===S&&F in S?_.call(Oe(S),8,-1):at?"Object":"",_r=He||typeof S.constructor!="function"?"":S.constructor.name?S.constructor.name+" ":"",Pn=_r+(ot||at?"["+x.call(R.call([],ot||[],at||[]),": ")+"] ":"");return Qe.length===0?Pn+"{}":me?Pn+"{"+he(Qe,me)+"}":Pn+"{ "+x.call(Qe,", ")+" }"}return String(S)};function $(M,S,ie){var ge=ie.quoteStyle||S,g=Z[ge];return g+M+g}function U(M){return b.call(String(M),/"/g,""")}function z(M){return!F||!(typeof M=="object"&&(F in M||typeof M[F]<"u"))}function re(M){return Oe(M)==="[object Array]"&&z(M)}function te(M){return Oe(M)==="[object Date]"&&z(M)}function se(M){return Oe(M)==="[object RegExp]"&&z(M)}function fe(M){return Oe(M)==="[object Error]"&&z(M)}function ve(M){return Oe(M)==="[object String]"&&z(M)}function ye(M){return Oe(M)==="[object Number]"&&z(M)}function Ee(M){return Oe(M)==="[object Boolean]"&&z(M)}function xe(M){if(q)return M&&typeof M=="object"&&M instanceof Symbol;if(typeof M=="symbol")return!0;if(!M||typeof M!="object"||!I)return!1;try{return I.call(M),!0}catch{}return!1}function ke(M){if(!M||typeof M!="object"||!G)return!1;try{return G.call(M),!0}catch{}return!1}var qe=Object.prototype.hasOwnProperty||function(M){return M in this};function Ie(M,S){return qe.call(M,S)}function Oe(M){return v.call(M)}function Fe(M){if(M.name)return M.name;var S=c.call(m.call(M),/^function\s*([\w$]+)/);return S?S[1]:null}function Je(M,S){if(M.indexOf)return M.indexOf(S);for(var ie=0,ge=M.length;ie<ge;ie++)if(M[ie]===S)return ie;return-1}function Ne(M){if(!a||!M||typeof M!="object")return!1;try{a.call(M);try{r.call(M)}catch{return!0}return M instanceof Map}catch{}return!1}function ee(M){if(!l||!M||typeof M!="object")return!1;try{l.call(M,l);try{f.call(M,f)}catch{return!0}return M instanceof WeakMap}catch{}return!1}function de(M){if(!w||!M||typeof M!="object")return!1;try{return w.call(M),!0}catch{}return!1}function P(M){if(!r||!M||typeof M!="object")return!1;try{r.call(M);try{a.call(M)}catch{return!0}return M instanceof Set}catch{}return!1}function X(M){if(!f||!M||typeof M!="object")return!1;try{f.call(M,f);try{l.call(M,l)}catch{return!0}return M instanceof WeakSet}catch{}return!1}function ce(M){return!M||typeof M!="object"?!1:typeof HTMLElement<"u"&&M instanceof HTMLElement?!0:typeof M.nodeName=="string"&&typeof M.getAttribute=="function"}function be(M,S){if(M.length>S.maxStringLength){var ie=M.length-S.maxStringLength,ge="... "+ie+" more character"+(ie>1?"s":"");return be(_.call(M,0,S.maxStringLength),S)+ge}var g=B[S.quoteStyle||"single"];g.lastIndex=0;var Q=b.call(b.call(M,g,"\\$1"),/[\x00-\x1f]/g,pe);return $(Q,"single",S)}function pe(M){var S=M.charCodeAt(0),ie={8:"b",9:"t",10:"n",12:"f",13:"r"}[S];return ie?"\\"+ie:"\\x"+(S<16?"0":"")+y.call(S.toString(16))}function le(M){return"Object("+M+")"}function Te(M){return M+" { ? }"}function k(M,S,ie,ge){var g=ge?he(ie,ge):x.call(ie,", ");return M+" ("+S+") {"+g+"}"}function oe(M){for(var S=0;S<M.length;S++)if(Je(M[S],`
|
|
130
|
+
`)>=0)return!1;return!0}function ue(M,S){var ie;if(M.indent===" ")ie=" ";else if(typeof M.indent=="number"&&M.indent>0)ie=x.call(Array(M.indent+1)," ");else return null;return{base:ie,prev:x.call(Array(S+1),ie)}}function he(M,S){if(M.length===0)return"";var ie=`
|
|
131
|
+
`+S.prev+S.base;return ie+x.call(M,","+ie)+`
|
|
132
|
+
`+S.prev}function Y(M,S){var ie=re(M),ge=[];if(ie){ge.length=M.length;for(var g=0;g<M.length;g++)ge[g]=Ie(M,g)?S(M[g],M):""}var Q=typeof O=="function"?O(M):[],ae;if(q){ae={};for(var C=0;C<Q.length;C++)ae["$"+Q[C]]=Q[C]}for(var K in M)Ie(M,K)&&(ie&&String(Number(K))===K&&K<M.length||q&&ae["$"+K]instanceof Symbol||(T.call(/[^\w$]/,K)?ge.push(S(K,M)+": "+S(M[K],M)):ge.push(K+": "+S(M[K],M))));if(typeof O=="function")for(var ne=0;ne<Q.length;ne++)V.call(M,Q[ne])&&ge.push("["+S(Q[ne])+"]: "+S(M[Q[ne]],M));return ge}return da}var pa,Ef;function $y(){if(Ef)return pa;Ef=1;var e=Rn(),n=bn(),a=function(s,p,l){for(var u=s,f;(f=u.next)!=null;u=f)if(f.key===p)return u.next=f.next,l||(f.next=s.next,s.next=f),f},i=function(s,p){if(s){var l=a(s,p);return l&&l.value}},o=function(s,p,l){var u=a(s,p);u?u.value=l:s.next={key:p,next:s.next,value:l}},t=function(s,p){return s?!!a(s,p):!1},r=function(s,p){if(s)return a(s,p,!0)};return pa=function(){var p,l={assert:function(u){if(!l.has(u))throw new n("Side channel does not contain "+e(u))},delete:function(u){var f=p&&p.next,h=r(p,u);return h&&f&&f===h&&(p=void 0),!!h},get:function(u){return i(p,u)},has:function(u){return t(p,u)},set:function(u,f){p||(p={next:void 0}),o(p,u,f)}};return l},pa}var ma,Rf;function Ad(){if(Rf)return ma;Rf=1;var e=ws(),n=_s(),a=Rn(),i=bn(),o=e("%Map%",!0),t=n("Map.prototype.get",!0),r=n("Map.prototype.set",!0),s=n("Map.prototype.has",!0),p=n("Map.prototype.delete",!0),l=n("Map.prototype.size",!0);return ma=!!o&&function(){var f,h={assert:function(w){if(!h.has(w))throw new i("Side channel does not contain "+a(w))},delete:function(w){if(f){var d=p(f,w);return l(f)===0&&(f=void 0),d}return!1},get:function(w){if(f)return t(f,w)},has:function(w){return f?s(f,w):!1},set:function(w,d){f||(f=new o),r(f,w,d)}};return h},ma}var ga,Of;function My(){if(Of)return ga;Of=1;var e=ws(),n=_s(),a=Rn(),i=Ad(),o=bn(),t=e("%WeakMap%",!0),r=n("WeakMap.prototype.get",!0),s=n("WeakMap.prototype.set",!0),p=n("WeakMap.prototype.has",!0),l=n("WeakMap.prototype.delete",!0);return ga=t?function(){var f,h,w={assert:function(d){if(!w.has(d))throw new o("Side channel does not contain "+a(d))},delete:function(d){if(t&&d&&(typeof d=="object"||typeof d=="function")){if(f)return l(f,d)}else if(i&&h)return h.delete(d);return!1},get:function(d){return t&&d&&(typeof d=="object"||typeof d=="function")&&f?r(f,d):h&&h.get(d)},has:function(d){return t&&d&&(typeof d=="object"||typeof d=="function")&&f?p(f,d):!!h&&h.has(d)},set:function(d,v){t&&d&&(typeof d=="object"||typeof d=="function")?(f||(f=new t),s(f,d,v)):i&&(h||(h=i()),h.set(d,v))}};return w}:i,ga}var va,Tf;function Cd(){if(Tf)return va;Tf=1;var e=bn(),n=Rn(),a=$y(),i=Ad(),o=My(),t=o||i||a;return va=function(){var s,p={assert:function(l){if(!p.has(l))throw new e("Side channel does not contain "+n(l))},delete:function(l){return!!s&&s.delete(l)},get:function(l){return s&&s.get(l)},has:function(l){return!!s&&s.has(l)},set:function(l,u){s||(s=t()),s.set(l,u)}};return p},va}var ya,xf;function Cs(){if(xf)return ya;xf=1;var e=String.prototype.replace,n=/%20/g,a={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ya={default:a.RFC3986,formatters:{RFC1738:function(i){return e.call(i,n,"+")},RFC3986:function(i){return String(i)}},RFC1738:a.RFC1738,RFC3986:a.RFC3986},ya}var _a,If;function Pd(){if(If)return _a;If=1;var e=Cs(),n=Cd(),a=Object.prototype.hasOwnProperty,i=Array.isArray,o=n(),t=function(R,x){return o.set(R,x),R},r=function(R){return o.has(R)},s=function(R){return o.get(R)},p=function(R,x){o.set(R,x)},l=function(){for(var T=[],R=0;R<256;++R)T.push("%"+((R<16?"0":"")+R.toString(16)).toUpperCase());return T}(),u=function(R){for(;R.length>1;){var x=R.pop(),j=x.obj[x.prop];if(i(j)){for(var W=[],G=0;G<j.length;++G)typeof j[G]<"u"&&W.push(j[G]);x.obj[x.prop]=W}}},f=function(R,x){for(var j=x&&x.plainObjects?{__proto__:null}:{},W=0;W<R.length;++W)typeof R[W]<"u"&&(j[W]=R[W]);return j},h=function T(R,x,j){if(!x)return R;if(typeof x!="object"&&typeof x!="function"){if(i(R))R.push(x);else if(R&&typeof R=="object")if(r(R)){var W=s(R)+1;R[W]=x,p(R,W)}else(j&&(j.plainObjects||j.allowPrototypes)||!a.call(Object.prototype,x))&&(R[x]=!0);else return[R,x];return R}if(!R||typeof R!="object"){if(r(x)){for(var G=Object.keys(x),O=j&&j.plainObjects?{__proto__:null,0:R}:{0:R},I=0;I<G.length;I++){var q=parseInt(G[I],10);O[q+1]=x[G[I]]}return t(O,s(x)+1)}return[R].concat(x)}var F=R;return i(R)&&!i(x)&&(F=f(R,j)),i(R)&&i(x)?(x.forEach(function(V,L){if(a.call(R,L)){var A=R[L];A&&typeof A=="object"&&V&&typeof V=="object"?R[L]=T(A,V,j):R.push(V)}else R[L]=V}),R):Object.keys(x).reduce(function(V,L){var A=x[L];return a.call(V,L)?V[L]=T(V[L],A,j):V[L]=A,V},F)},w=function(R,x){return Object.keys(x).reduce(function(j,W){return j[W]=x[W],j},R)},d=function(T,R,x){var j=T.replace(/\+/g," ");if(x==="iso-8859-1")return j.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(j)}catch{return j}},v=1024,m=function(R,x,j,W,G){if(R.length===0)return R;var O=R;if(typeof R=="symbol"?O=Symbol.prototype.toString.call(R):typeof R!="string"&&(O=String(R)),j==="iso-8859-1")return escape(O).replace(/%u[0-9a-f]{4}/gi,function(D){return"%26%23"+parseInt(D.slice(2),16)+"%3B"});for(var I="",q=0;q<O.length;q+=v){for(var F=O.length>=v?O.slice(q,q+v):O,V=[],L=0;L<F.length;++L){var A=F.charCodeAt(L);if(A===45||A===46||A===95||A===126||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||G===e.RFC1738&&(A===40||A===41)){V[V.length]=F.charAt(L);continue}if(A<128){V[V.length]=l[A];continue}if(A<2048){V[V.length]=l[192|A>>6]+l[128|A&63];continue}if(A<55296||A>=57344){V[V.length]=l[224|A>>12]+l[128|A>>6&63]+l[128|A&63];continue}L+=1,A=65536+((A&1023)<<10|F.charCodeAt(L)&1023),V[V.length]=l[240|A>>18]+l[128|A>>12&63]+l[128|A>>6&63]+l[128|A&63]}I+=V.join("")}return I},c=function(R){for(var x=[{obj:{o:R},prop:"o"}],j=[],W=0;W<x.length;++W)for(var G=x[W],O=G.obj[G.prop],I=Object.keys(O),q=0;q<I.length;++q){var F=I[q],V=O[F];typeof V=="object"&&V!==null&&j.indexOf(V)===-1&&(x.push({obj:O,prop:F}),j.push(V))}return u(x),R},_=function(R){return Object.prototype.toString.call(R)==="[object RegExp]"},b=function(R){return!R||typeof R!="object"?!1:!!(R.constructor&&R.constructor.isBuffer&&R.constructor.isBuffer(R))},y=function(R,x,j,W){if(r(R)){var G=s(R)+1;return R[G]=x,p(R,G),R}var O=[].concat(R,x);return O.length>j?t(f(O,{plainObjects:W}),O.length-1):O},E=function(R,x){if(i(R)){for(var j=[],W=0;W<R.length;W+=1)j.push(x(R[W]));return j}return x(R)};return _a={arrayToObject:f,assign:w,combine:y,compact:c,decode:d,encode:m,isBuffer:b,isOverflow:r,isRegExp:_,maybeMap:E,merge:h},_a}var ba,Af;function Fy(){if(Af)return ba;Af=1;var e=Cd(),n=Pd(),a=Cs(),i=Object.prototype.hasOwnProperty,o={brackets:function(m){return m+"[]"},comma:"comma",indices:function(m,c){return m+"["+c+"]"},repeat:function(m){return m}},t=Array.isArray,r=Array.prototype.push,s=function(v,m){r.apply(v,t(m)?m:[m])},p=Date.prototype.toISOString,l=a.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:a.formatters[l],indices:!1,serializeDate:function(m){return p.call(m)},skipNulls:!1,strictNullHandling:!1},f=function(m){return typeof m=="string"||typeof m=="number"||typeof m=="boolean"||typeof m=="symbol"||typeof m=="bigint"},h={},w=function v(m,c,_,b,y,E,T,R,x,j,W,G,O,I,q,F,V,L){for(var A=m,D=L,N=0,H=!1;(D=D.get(h))!==void 0&&!H;){var Z=D.get(m);if(N+=1,typeof Z<"u"){if(Z===N)throw new RangeError("Cyclic object value");H=!0}typeof D.get(h)>"u"&&(N=0)}if(typeof j=="function"?A=j(c,A):A instanceof Date?A=O(A):_==="comma"&&t(A)&&(A=n.maybeMap(A,function(ke){return ke instanceof Date?O(ke):ke})),A===null){if(E)return x&&!F?x(c,u.encoder,V,"key",I):c;A=""}if(f(A)||n.isBuffer(A)){if(x){var B=F?c:x(c,u.encoder,V,"key",I);return[q(B)+"="+q(x(A,u.encoder,V,"value",I))]}return[q(c)+"="+q(String(A))]}var $=[];if(typeof A>"u")return $;var U;if(_==="comma"&&t(A))F&&x&&(A=n.maybeMap(A,x)),U=[{value:A.length>0?A.join(",")||null:void 0}];else if(t(j))U=j;else{var z=Object.keys(A);U=W?z.sort(W):z}var re=R?String(c).replace(/\./g,"%2E"):String(c),te=b&&t(A)&&A.length===1?re+"[]":re;if(y&&t(A)&&A.length===0)return te+"[]";for(var se=0;se<U.length;++se){var fe=U[se],ve=typeof fe=="object"&&fe&&typeof fe.value<"u"?fe.value:A[fe];if(!(T&&ve===null)){var ye=G&&R?String(fe).replace(/\./g,"%2E"):String(fe),Ee=t(A)?typeof _=="function"?_(te,ye):te:te+(G?"."+ye:"["+ye+"]");L.set(m,N);var xe=e();xe.set(h,L),s($,v(ve,Ee,_,b,y,E,T,R,_==="comma"&&F&&t(A)?null:x,j,W,G,O,I,q,F,V,xe))}}return $},d=function(m){if(!m)return u;if(typeof m.allowEmptyArrays<"u"&&typeof m.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof m.encodeDotInKeys<"u"&&typeof m.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(m.encoder!==null&&typeof m.encoder<"u"&&typeof m.encoder!="function")throw new TypeError("Encoder has to be a function.");var c=m.charset||u.charset;if(typeof m.charset<"u"&&m.charset!=="utf-8"&&m.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var _=a.default;if(typeof m.format<"u"){if(!i.call(a.formatters,m.format))throw new TypeError("Unknown format option provided.");_=m.format}var b=a.formatters[_],y=u.filter;(typeof m.filter=="function"||t(m.filter))&&(y=m.filter);var E;if(m.arrayFormat in o?E=m.arrayFormat:"indices"in m?E=m.indices?"indices":"repeat":E=u.arrayFormat,"commaRoundTrip"in m&&typeof m.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var T=typeof m.allowDots>"u"?m.encodeDotInKeys===!0?!0:u.allowDots:!!m.allowDots;return{addQueryPrefix:typeof m.addQueryPrefix=="boolean"?m.addQueryPrefix:u.addQueryPrefix,allowDots:T,allowEmptyArrays:typeof m.allowEmptyArrays=="boolean"?!!m.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:E,charset:c,charsetSentinel:typeof m.charsetSentinel=="boolean"?m.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!m.commaRoundTrip,delimiter:typeof m.delimiter>"u"?u.delimiter:m.delimiter,encode:typeof m.encode=="boolean"?m.encode:u.encode,encodeDotInKeys:typeof m.encodeDotInKeys=="boolean"?m.encodeDotInKeys:u.encodeDotInKeys,encoder:typeof m.encoder=="function"?m.encoder:u.encoder,encodeValuesOnly:typeof m.encodeValuesOnly=="boolean"?m.encodeValuesOnly:u.encodeValuesOnly,filter:y,format:_,formatter:b,serializeDate:typeof m.serializeDate=="function"?m.serializeDate:u.serializeDate,skipNulls:typeof m.skipNulls=="boolean"?m.skipNulls:u.skipNulls,sort:typeof m.sort=="function"?m.sort:null,strictNullHandling:typeof m.strictNullHandling=="boolean"?m.strictNullHandling:u.strictNullHandling}};return ba=function(v,m){var c=v,_=d(m),b,y;typeof _.filter=="function"?(y=_.filter,c=y("",c)):t(_.filter)&&(y=_.filter,b=y);var E=[];if(typeof c!="object"||c===null)return"";var T=o[_.arrayFormat],R=T==="comma"&&_.commaRoundTrip;b||(b=Object.keys(c)),_.sort&&b.sort(_.sort);for(var x=e(),j=0;j<b.length;++j){var W=b[j],G=c[W];_.skipNulls&&G===null||s(E,w(G,W,T,R,_.allowEmptyArrays,_.strictNullHandling,_.skipNulls,_.encodeDotInKeys,_.encode?_.encoder:null,_.filter,_.sort,_.allowDots,_.serializeDate,_.format,_.formatter,_.encodeValuesOnly,_.charset,x))}var O=E.join(_.delimiter),I=_.addQueryPrefix===!0?"?":"";return _.charsetSentinel&&(_.charset==="iso-8859-1"?I+="utf8=%26%2310003%3B&":I+="utf8=%E2%9C%93&"),O.length>0?I+O:""},ba}var wa,Cf;function Uy(){if(Cf)return wa;Cf=1;var e=Pd(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(w){return w.replace(/&#(\d+);/g,function(d,v){return String.fromCharCode(parseInt(v,10))})},t=function(w,d,v){if(w&&typeof w=="string"&&d.comma&&w.indexOf(",")>-1)return w.split(",");if(d.throwOnLimitExceeded&&v>=d.arrayLimit)throw new RangeError("Array limit exceeded. Only "+d.arrayLimit+" element"+(d.arrayLimit===1?"":"s")+" allowed in an array.");return w},r="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",p=function(d,v){var m={__proto__:null},c=v.ignoreQueryPrefix?d.replace(/^\?/,""):d;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=v.parameterLimit===1/0?void 0:v.parameterLimit,b=c.split(v.delimiter,v.throwOnLimitExceeded?_+1:_);if(v.throwOnLimitExceeded&&b.length>_)throw new RangeError("Parameter limit exceeded. Only "+_+" parameter"+(_===1?"":"s")+" allowed.");var y=-1,E,T=v.charset;if(v.charsetSentinel)for(E=0;E<b.length;++E)b[E].indexOf("utf8=")===0&&(b[E]===s?T="utf-8":b[E]===r&&(T="iso-8859-1"),y=E,E=b.length);for(E=0;E<b.length;++E)if(E!==y){var R=b[E],x=R.indexOf("]="),j=x===-1?R.indexOf("="):x+1,W,G;if(j===-1?(W=v.decoder(R,i.decoder,T,"key"),G=v.strictNullHandling?null:""):(W=v.decoder(R.slice(0,j),i.decoder,T,"key"),W!==null&&(G=e.maybeMap(t(R.slice(j+1),v,a(m[W])?m[W].length:0),function(I){return v.decoder(I,i.decoder,T,"value")}))),G&&v.interpretNumericEntities&&T==="iso-8859-1"&&(G=o(String(G))),R.indexOf("[]=")>-1&&(G=a(G)?[G]:G),W!==null){var O=n.call(m,W);O&&v.duplicates==="combine"?m[W]=e.combine(m[W],G,v.arrayLimit,v.plainObjects):(!O||v.duplicates==="last")&&(m[W]=G)}}return m},l=function(w,d,v,m){var c=0;if(w.length>0&&w[w.length-1]==="[]"){var _=w.slice(0,-1).join("");c=Array.isArray(d)&&d[_]?d[_].length:0}for(var b=m?d:t(d,v,c),y=w.length-1;y>=0;--y){var E,T=w[y];if(T==="[]"&&v.parseArrays)e.isOverflow(b)?E=b:E=v.allowEmptyArrays&&(b===""||v.strictNullHandling&&b===null)?[]:e.combine([],b,v.arrayLimit,v.plainObjects);else{E=v.plainObjects?{__proto__:null}:{};var R=T.charAt(0)==="["&&T.charAt(T.length-1)==="]"?T.slice(1,-1):T,x=v.decodeDotInKeys?R.replace(/%2E/g,"."):R,j=parseInt(x,10);!v.parseArrays&&x===""?E={0:b}:!isNaN(j)&&T!==x&&String(j)===x&&j>=0&&v.parseArrays&&j<=v.arrayLimit?(E=[],E[j]=b):x!=="__proto__"&&(E[x]=b)}b=E}return b},u=function(d,v){var m=v.allowDots?d.replace(/\.([^.[]+)/g,"[$1]"):d;if(v.depth<=0)return!v.plainObjects&&n.call(Object.prototype,m)&&!v.allowPrototypes?void 0:[m];var c=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,b=c.exec(m),y=b?m.slice(0,b.index):m,E=[];if(y){if(!v.plainObjects&&n.call(Object.prototype,y)&&!v.allowPrototypes)return;E.push(y)}for(var T=0;(b=_.exec(m))!==null&&T<v.depth;){T+=1;var R=b[1].slice(1,-1);if(!v.plainObjects&&n.call(Object.prototype,R)&&!v.allowPrototypes)return;E.push(b[1])}if(b){if(v.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+v.depth+" and strictDepth is true");E.push("["+m.slice(b.index)+"]")}return E},f=function(d,v,m,c){if(d){var _=u(d,m);if(_)return l(_,v,m,c)}},h=function(d){if(!d)return i;if(typeof d.allowEmptyArrays<"u"&&typeof d.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof d.decodeDotInKeys<"u"&&typeof d.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(d.decoder!==null&&typeof d.decoder<"u"&&typeof d.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof d.charset<"u"&&d.charset!=="utf-8"&&d.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof d.throwOnLimitExceeded<"u"&&typeof d.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var v=typeof d.charset>"u"?i.charset:d.charset,m=typeof d.duplicates>"u"?i.duplicates:d.duplicates;if(m!=="combine"&&m!=="first"&&m!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var c=typeof d.allowDots>"u"?d.decodeDotInKeys===!0?!0:i.allowDots:!!d.allowDots;return{allowDots:c,allowEmptyArrays:typeof d.allowEmptyArrays=="boolean"?!!d.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof d.allowPrototypes=="boolean"?d.allowPrototypes:i.allowPrototypes,allowSparse:typeof d.allowSparse=="boolean"?d.allowSparse:i.allowSparse,arrayLimit:typeof d.arrayLimit=="number"?d.arrayLimit:i.arrayLimit,charset:v,charsetSentinel:typeof d.charsetSentinel=="boolean"?d.charsetSentinel:i.charsetSentinel,comma:typeof d.comma=="boolean"?d.comma:i.comma,decodeDotInKeys:typeof d.decodeDotInKeys=="boolean"?d.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof d.decoder=="function"?d.decoder:i.decoder,delimiter:typeof d.delimiter=="string"||e.isRegExp(d.delimiter)?d.delimiter:i.delimiter,depth:typeof d.depth=="number"||d.depth===!1?+d.depth:i.depth,duplicates:m,ignoreQueryPrefix:d.ignoreQueryPrefix===!0,interpretNumericEntities:typeof d.interpretNumericEntities=="boolean"?d.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof d.parameterLimit=="number"?d.parameterLimit:i.parameterLimit,parseArrays:d.parseArrays!==!1,plainObjects:typeof d.plainObjects=="boolean"?d.plainObjects:i.plainObjects,strictDepth:typeof d.strictDepth=="boolean"?!!d.strictDepth:i.strictDepth,strictNullHandling:typeof d.strictNullHandling=="boolean"?d.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof d.throwOnLimitExceeded=="boolean"?d.throwOnLimitExceeded:!1}};return wa=function(w,d){var v=h(d);if(w===""||w===null||typeof w>"u")return v.plainObjects?{__proto__:null}:{};for(var m=typeof w=="string"?p(w,v):w,c=v.plainObjects?{__proto__:null}:{},_=Object.keys(m),b=0;b<_.length;++b){var y=_[b],E=f(y,m[y],v,typeof w=="string");c=e.merge(c,E,v)}return v.allowSparse===!0?c:e.compact(c)},wa}var Sa,Pf;function By(){if(Pf)return Sa;Pf=1;var e=Fy(),n=Uy(),a=Cs();return Sa={formats:a,parse:n,stringify:e},Sa}var kf;function kd(){return kf||(kf=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=qy(),i=By();function o(ee){return ee&&typeof ee=="object"&&"default"in ee?ee:{default:ee}}var t=o(a),r=o(i),s=t.default;function p(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var l=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r",`
|
|
133
|
+
`," "],w=["{","}","|","\\","^","`"].concat(h),d=["'"].concat(w),v=["%","/","?",";","#"].concat(d),m=["/","?","#"],c=255,_=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=r.default;function x(ee,de,P){if(ee&&typeof ee=="object"&&ee instanceof p)return ee;var X=new p;return X.parse(ee,de,P),X}p.prototype.parse=function(ee,de,P){if(typeof ee!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof ee);var X=ee.indexOf("?"),ce=X!==-1&&X<ee.indexOf("#")?"?":"#",be=ee.split(ce),pe=/\\/g;be[0]=be[0].replace(pe,"/"),ee=be.join(ce);var le=ee;if(le=le.trim(),!P&&ee.split("#").length===1){var Te=f.exec(le);if(Te)return this.path=le,this.href=le,this.pathname=Te[1],Te[2]?(this.search=Te[2],de?this.query=R.parse(this.search.substr(1)):this.query=this.search.substr(1)):de&&(this.search="",this.query={}),this}var k=l.exec(le);if(k){k=k[0];var oe=k.toLowerCase();this.protocol=oe,le=le.substr(k.length)}if(P||k||le.match(/^\/\/[^@/]+@[^@/]+/)){var ue=le.substr(0,2)==="//";ue&&!(k&&E[k])&&(le=le.substr(2),this.slashes=!0)}if(!E[k]&&(ue||k&&!T[k])){for(var he=-1,Y=0;Y<m.length;Y++){var M=le.indexOf(m[Y]);M!==-1&&(he===-1||M<he)&&(he=M)}var S,ie;he===-1?ie=le.lastIndexOf("@"):ie=le.lastIndexOf("@",he),ie!==-1&&(S=le.slice(0,ie),le=le.slice(ie+1),this.auth=decodeURIComponent(S)),he=-1;for(var Y=0;Y<v.length;Y++){var M=le.indexOf(v[Y]);M!==-1&&(he===-1||M<he)&&(he=M)}he===-1&&(he=le.length),this.host=le.slice(0,he),le=le.slice(he),this.parseHost(),this.hostname=this.hostname||"";var ge=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ge)for(var g=this.hostname.split(/\./),Y=0,Q=g.length;Y<Q;Y++){var ae=g[Y];if(ae&&!ae.match(_)){for(var C="",K=0,ne=ae.length;K<ne;K++)ae.charCodeAt(K)>127?C+="x":C+=ae[K];if(!C.match(_)){var Se=g.slice(0,Y),me=g.slice(Y+1),_e=ae.match(b);_e&&(Se.push(_e[1]),me.unshift(_e[2])),me.length&&(le="/"+me.join(".")+le),this.hostname=Se.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),ge||(this.hostname=s.toASCII(this.hostname));var Pe=this.port?":"+this.port:"",nt=this.hostname||"";this.host=nt+Pe,this.href+=this.host,ge&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),le[0]!=="/"&&(le="/"+le))}if(!y[oe])for(var Y=0,Q=d.length;Y<Q;Y++){var je=d[Y];if(le.indexOf(je)!==-1){var Ce=encodeURIComponent(je);Ce===je&&(Ce=escape(je)),le=le.split(je).join(Ce)}}var De=le.indexOf("#");De!==-1&&(this.hash=le.substr(De),le=le.slice(0,De));var $e=le.indexOf("?");if($e!==-1?(this.search=le.substr($e),this.query=le.substr($e+1),de&&(this.query=R.parse(this.query)),le=le.slice(0,$e)):de&&(this.search="",this.query={}),le&&(this.pathname=le),T[oe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Pe=this.pathname||"",Ge=this.search||"";this.path=Pe+Ge}return this.href=this.format(),this};function j(ee){return typeof ee=="string"&&(ee=x(ee)),ee instanceof p?ee.format():p.prototype.format.call(ee)}p.prototype.format=function(){var ee=this.auth||"";ee&&(ee=encodeURIComponent(ee),ee=ee.replace(/%3A/i,":"),ee+="@");var de=this.protocol||"",P=this.pathname||"",X=this.hash||"",ce=!1,be="";this.host?ce=ee+this.host:this.hostname&&(ce=ee+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ce+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(be=R.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var pe=this.search||be&&"?"+be||"";return de&&de.substr(-1)!==":"&&(de+=":"),this.slashes||(!de||T[de])&&ce!==!1?(ce="//"+(ce||""),P&&P.charAt(0)!=="/"&&(P="/"+P)):ce||(ce=""),X&&X.charAt(0)!=="#"&&(X="#"+X),pe&&pe.charAt(0)!=="?"&&(pe="?"+pe),P=P.replace(/[?#]/g,function(le){return encodeURIComponent(le)}),pe=pe.replace("#","%23"),de+ce+P+pe+X};function W(ee,de){return x(ee,!1,!0).resolve(de)}p.prototype.resolve=function(ee){return this.resolveObject(x(ee,!1,!0)).format()};function G(ee,de){return ee?x(ee,!1,!0).resolveObject(de):de}p.prototype.resolveObject=function(ee){if(typeof ee=="string"){var de=new p;de.parse(ee,!1,!0),ee=de}for(var P=new p,X=Object.keys(this),ce=0;ce<X.length;ce++){var be=X[ce];P[be]=this[be]}if(P.hash=ee.hash,ee.href==="")return P.href=P.format(),P;if(ee.slashes&&!ee.protocol){for(var pe=Object.keys(ee),le=0;le<pe.length;le++){var Te=pe[le];Te!=="protocol"&&(P[Te]=ee[Te])}return T[P.protocol]&&P.hostname&&!P.pathname&&(P.pathname="/",P.path=P.pathname),P.href=P.format(),P}if(ee.protocol&&ee.protocol!==P.protocol){if(!T[ee.protocol]){for(var k=Object.keys(ee),oe=0;oe<k.length;oe++){var ue=k[oe];P[ue]=ee[ue]}return P.href=P.format(),P}if(P.protocol=ee.protocol,!ee.host&&!E[ee.protocol]){for(var Q=(ee.pathname||"").split("/");Q.length&&!(ee.host=Q.shift()););ee.host||(ee.host=""),ee.hostname||(ee.hostname=""),Q[0]!==""&&Q.unshift(""),Q.length<2&&Q.unshift(""),P.pathname=Q.join("/")}else P.pathname=ee.pathname;if(P.search=ee.search,P.query=ee.query,P.host=ee.host||"",P.auth=ee.auth,P.hostname=ee.hostname||ee.host,P.port=ee.port,P.pathname||P.search){var he=P.pathname||"",Y=P.search||"";P.path=he+Y}return P.slashes=P.slashes||ee.slashes,P.href=P.format(),P}var M=P.pathname&&P.pathname.charAt(0)==="/",S=ee.host||ee.pathname&&ee.pathname.charAt(0)==="/",ie=S||M||P.host&&ee.pathname,ge=ie,g=P.pathname&&P.pathname.split("/")||[],Q=ee.pathname&&ee.pathname.split("/")||[],ae=P.protocol&&!T[P.protocol];if(ae&&(P.hostname="",P.port=null,P.host&&(g[0]===""?g[0]=P.host:g.unshift(P.host)),P.host="",ee.protocol&&(ee.hostname=null,ee.port=null,ee.host&&(Q[0]===""?Q[0]=ee.host:Q.unshift(ee.host)),ee.host=null),ie=ie&&(Q[0]===""||g[0]==="")),S)P.host=ee.host||ee.host===""?ee.host:P.host,P.hostname=ee.hostname||ee.hostname===""?ee.hostname:P.hostname,P.search=ee.search,P.query=ee.query,g=Q;else if(Q.length)g||(g=[]),g.pop(),g=g.concat(Q),P.search=ee.search,P.query=ee.query;else if(ee.search!=null){if(ae){P.host=g.shift(),P.hostname=P.host;var C=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;C&&(P.auth=C.shift(),P.hostname=C.shift(),P.host=P.hostname)}return P.search=ee.search,P.query=ee.query,(P.pathname!==null||P.search!==null)&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.href=P.format(),P}if(!g.length)return P.pathname=null,P.search?P.path="/"+P.search:P.path=null,P.href=P.format(),P;for(var K=g.slice(-1)[0],ne=(P.host||ee.host||g.length>1)&&(K==="."||K==="..")||K==="",Se=0,me=g.length;me>=0;me--)K=g[me],K==="."?g.splice(me,1):K===".."?(g.splice(me,1),Se++):Se&&(g.splice(me,1),Se--);if(!ie&&!ge)for(;Se--;Se)g.unshift("..");ie&&g[0]!==""&&(!g[0]||g[0].charAt(0)!=="/")&&g.unshift(""),ne&&g.join("/").substr(-1)!=="/"&&g.push("");var _e=g[0]===""||g[0]&&g[0].charAt(0)==="/";if(ae){P.hostname=_e?"":g.length?g.shift():"",P.host=P.hostname;var C=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;C&&(P.auth=C.shift(),P.hostname=C.shift(),P.host=P.hostname)}return ie=ie||P.host&&g.length,ie&&!_e&&g.unshift(""),g.length>0?P.pathname=g.join("/"):(P.pathname=null,P.path=null),(P.pathname!==null||P.search!==null)&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.auth=ee.auth||P.auth,P.slashes=P.slashes||ee.slashes,P.href=P.format(),P},p.prototype.parseHost=function(){var ee=this.host,de=u.exec(ee);de&&(de=de[0],de!==":"&&(this.port=de.substr(1)),ee=ee.substr(0,ee.length-de.length)),ee&&(this.hostname=ee)};var O=x,I=W,q=G,F=j,V=p;function L(ee,de){for(var P=0,X=ee.length-1;X>=0;X--){var ce=ee[X];ce==="."?ee.splice(X,1):ce===".."?(ee.splice(X,1),P++):P&&(ee.splice(X,1),P--)}if(de)for(;P--;P)ee.unshift("..");return ee}function A(){for(var ee="",de=!1,P=arguments.length-1;P>=-1&&!de;P--){var X=P>=0?arguments[P]:"/";if(typeof X!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!X)continue;ee=X+"/"+ee,de=X.charAt(0)==="/"}return ee=L(D(ee.split("/"),function(ce){return!!ce}),!de).join("/"),(de?"/":"")+ee||"."}function D(ee,de){if(ee.filter)return ee.filter(de);for(var P=[],X=0;X<ee.length;X++)de(ee[X],X,ee)&&P.push(ee[X]);return P}var N=function(ee){function de(){var X=this||self;return delete ee.prototype.__magic__,X}if(typeof globalThis=="object")return globalThis;if(this)return de();ee.defineProperty(ee.prototype,"__magic__",{configurable:!0,get:de});var P=__magic__;return P}(Object),H=F,Z=O,B=I,$=V,U=N.URL,z=N.URLSearchParams,re=/%/g,te=/\\/g,se=/\n/g,fe=/\r/g,ve=/\t/g,ye=47;function Ee(ee){var de=ee??null;return!!(de!==null&&de?.href&&de?.origin)}function xe(ee){if(ee.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var de=ee.pathname,P=0;P<de.length;P++)if(de[P]==="%"){var X=de.codePointAt(P+2)|32;if(de[P+1]==="2"&&X===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(de)}function ke(ee){return ee.includes("%")&&(ee=ee.replace(re,"%25")),ee.includes("\\")&&(ee=ee.replace(te,"%5C")),ee.includes(`
|
|
134
|
+
`)&&(ee=ee.replace(se,"%0A")),ee.includes("\r")&&(ee=ee.replace(fe,"%0D")),ee.includes(" ")&&(ee=ee.replace(ve,"%09")),ee}var qe=function(de){if(typeof de>"u")throw new TypeError('The "domain" argument must be specified');return new U("http://"+de).hostname},Ie=function(de){if(typeof de>"u")throw new TypeError('The "domain" argument must be specified');return new U("http://"+de).hostname},Oe=function(de){var P=new U("file://"),X=A(de),ce=de.charCodeAt(de.length-1);return ce===ye&&X[X.length-1]!=="/"&&(X+="/"),P.pathname=ke(X),P},Fe=function(de){if(!Ee(de)&&typeof de!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof de+" ("+de+")");var P=new U(de);if(P.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return xe(P)},Je=function(de,P){var X,ce,be,pe;if(P===void 0&&(P={}),!(de instanceof U))return H(de);if(typeof P!="object"||P===null)throw new TypeError('The "options" argument must be of type object.');var le=(X=P.auth)!=null?X:!0,Te=(ce=P.fragment)!=null?ce:!0,k=(be=P.search)!=null?be:!0;(pe=P.unicode)!=null;var oe=new U(de.toString());return le||(oe.username="",oe.password=""),Te||(oe.hash=""),k||(oe.search=""),oe.toString()},Ne={format:Je,parse:Z,resolve:B,resolveObject:q,Url:$,URL:U,URLSearchParams:z,domainToASCII:qe,domainToUnicode:Ie,pathToFileURL:Oe,fileURLToPath:Fe};n.URL=U,n.URLSearchParams=z,n.Url=$,n.default=Ne,n.domainToASCII=qe,n.domainToUnicode=Ie,n.fileURLToPath=Fe,n.format=Je,n.parse=Z,n.pathToFileURL=Oe,n.resolve=B,n.resolveObject=q,n=e.exports=Ne}(Qr,Qr.exports)),Qr.exports}var Lf;function Ld(){return Lf||(Lf=1,function(e){var n=Cy(),a=Id(),i=Py(),o=ky(),t=kd(),r=e;r.request=function(s,p){typeof s=="string"?s=t.parse(s):s=i(s);var l=Be.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||l,f=s.hostname||s.host,h=s.port,w=s.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),s.url=(f?u+"//"+f:"")+(h?":"+h:"")+w,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var d=new n(s);return p&&d.on("response",p),d},r.get=function(p,l){var u=r.request(p,l);return u.end(),u},r.ClientRequest=n,r.IncomingMessage=a.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=o,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(ua)),ua}var Ea={exports:{}},qf;function Vy(){return qf||(qf=1,function(e){var n=Ld(),a=kd(),i=e.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);i.request=function(r,s){return r=t(r),n.request.call(this,r,s)},i.get=function(r,s){return r=t(r),n.get.call(this,r,s)};function t(r){if(typeof r=="string"&&(r=a.parse(r)),r.protocol||(r.protocol="https:"),r.protocol!=="https:")throw new Error('Protocol "'+r.protocol+'" not supported. Expected "https:"');return r}}(Ea)),Ea.exports}var Ra,jf;function zy(){if(jf)return Ra;jf=1;function e(y){"@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(y)}function n(y,E){var T=Object.keys(y);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(y);E&&(R=R.filter(function(x){return Object.getOwnPropertyDescriptor(y,x).enumerable})),T.push.apply(T,R)}return T}function a(y){for(var E=1;E<arguments.length;E++){var T=arguments[E]!=null?arguments[E]:{};E%2?n(Object(T),!0).forEach(function(R){i(y,R,T[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(T)):n(Object(T)).forEach(function(R){Object.defineProperty(y,R,Object.getOwnPropertyDescriptor(T,R))})}return y}function i(y,E,T){return E in y?Object.defineProperty(y,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):y[E]=T,y}function o(y,E){if(!(y instanceof E))throw new TypeError("Cannot call a class as a function")}function t(y,E){for(var T=0;T<E.length;T++){var R=E[T];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(y,R.key,R)}}function r(y,E,T){return E&&t(y.prototype,E),Object.defineProperty(y,"prototype",{writable:!1}),y}function s(y,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(E&&E.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),E&&p(y,E)}function p(y,E){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,x){return R.__proto__=x,R},p(y,E)}function l(y){var E=h();return function(){var R=w(y),x;if(E){var j=w(this).constructor;x=Reflect.construct(R,arguments,j)}else x=R.apply(this,arguments);return u(this,x)}}function u(y,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(y)}function f(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}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 w(y){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},w(y)}var d=Ld(),v=Vy(),m=Ut(),c=m.Stream,_=Ft(),b=gr();return Ra=function(y){s(T,y);var E=l(T);function T(){var R,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return o(this,T),R=E.call(this,x),R.options=x,R.name=x.name||"http",R.ssl=!!x.ssl,R.host=x.host||"localhost",R.port=x.port,R.auth=x.auth,R.path=x.path||"",R.agent=x.agent,R.headers=x.headers||{},R.headers["content-type"]="application/json",R.batch=x.batch||!1,R.batchInterval=x.batchInterval||5e3,R.batchCount=x.batchCount||10,R.batchOptions=[],R.batchTimeoutID=-1,R.batchCallback={},R.port||(R.port=R.ssl?443:80),R}return r(T,[{key:"log",value:function(x,j){var W=this;this._request(x,function(G,O){O&&O.statusCode!==200&&(G=new Error("Invalid HTTP Status Code: ".concat(O.statusCode))),G?W.emit("warn",G):W.emit("logged",x)}),j&&setImmediate(j)}},{key:"query",value:function(x,j){typeof x=="function"&&(j=x,x={}),x={method:"query",params:this.normalizeQuery(x)},x.params.path&&(x.path=x.params.path,delete x.params.path),x.params.auth&&(x.auth=x.params.auth,delete x.params.auth),this._request(x,function(W,G,O){if(G&&G.statusCode!==200&&(W=new Error("Invalid HTTP Status Code: ".concat(G.statusCode))),W)return j(W);if(typeof O=="string")try{O=JSON.parse(O)}catch(I){return j(I)}j(null,O)})}},{key:"stream",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=new c;x={method:"stream",params:x},x.params.path&&(x.path=x.params.path,delete x.params.path),x.params.auth&&(x.auth=x.params.auth,delete x.params.auth);var W="",G=this._request(x);return j.destroy=function(){return G.destroy()},G.on("data",function(O){O=(W+O).split(/\n+/);for(var I=O.length-1,q=0;q<I;q++)try{j.emit("log",JSON.parse(O[q]))}catch(F){j.emit("error",F)}W=O[I]}),G.on("error",function(O){return j.emit("error",O)}),j}},{key:"_request",value:function(x,j){x=x||{};var W=x.auth||this.auth,G=x.path||this.path||"";delete x.auth,delete x.path,this.batch?this._doBatch(x,j,W,G):this._doRequest(x,j,W,G)}},{key:"_doBatch",value:function(x,j,W,G){if(this.batchOptions.push(x),this.batchOptions.length===1){var O=this;this.batchCallback=j,this.batchTimeoutID=setTimeout(function(){O.batchTimeoutID=-1,O._doBatchRequest(O.batchCallback,W,G)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,W,G)}},{key:"_doBatchRequest",value:function(x,j,W){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var G=this.batchOptions.slice();this.batchOptions=[],this._doRequest(G,x,j,W)}},{key:"_doRequest",value:function(x,j,W,G){var O=Object.assign({},this.headers);W&&W.bearer&&(O.Authorization="Bearer ".concat(W.bearer));var I=(this.ssl?v:d).request(a(a({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(G.replace(/^\//,"")),headers:O,auth:W&&W.username&&W.password?"".concat(W.username,":").concat(W.password):"",agent:this.agent}));I.on("error",j),I.on("response",function(q){return q.on("end",function(){return j(null,q)}).resume()}),I.end(Ve.from(b(x,this.options.replacer),"utf8"))}}]),T}(_),Ra}var Oa,Df;function qd(){if(Df)return Oa;Df=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",Oa=e,Oa}var Ta,Nf;function Gy(){if(Nf)return Ta;Nf=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(m)}function n(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}function a(m,c){for(var _=0;_<c.length;_++){var b=c[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}function i(m,c,_){return c&&a(m.prototype,c),Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),c&&t(m,c)}function t(m,c){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,y){return b.__proto__=y,b},t(m,c)}function r(m){var c=l();return function(){var b=u(m),y;if(c){var E=u(this).constructor;y=Reflect.construct(b,arguments,E)}else y=b.apply(this,arguments);return s(this,y)}}function s(m,c){if(c&&(e(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(m)}function p(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 u(m){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},u(m)}var f=qd(),h=ze(),w=h.MESSAGE,d=Mt(),v=Ft();return Ta=function(m){o(_,m);var c=r(_);function _(){var b,y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n(this,_),b=c.call(this,y),!y.stream||!f(y.stream))throw new Error("options.stream is required.");return b._stream=y.stream,b._stream.setMaxListeners(1/0),b.isObjectMode=y.stream._writableState.objectMode,b.eol=typeof y.eol=="string"?y.eol:d.EOL,b}return i(_,[{key:"log",value:function(y,E){var T=this;if(setImmediate(function(){return T.emit("logged",y)}),this.isObjectMode){this._stream.write(y),E&&E();return}this._stream.write("".concat(y[w]).concat(this.eol)),E&&E()}}]),_}(v),Ta}var $f;function Hy(){return $f||($f=1,function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return ay()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return Ay()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return zy()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return Gy()}})}(Bi)),Bi}var zt={},Mf;function Ps(){if(Mf)return zt;Mf=1;var e=_d(),n=ze(),a=n.configs;return zt.cli=e.levels(a.cli),zt.npm=e.levels(a.npm),zt.syslog=e.levels(a.syslog),zt.addColors=e.levels,zt}var en={exports:{}},tn={exports:{}},Ff;function Zy(){return Ff||(Ff=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=Is(),i=m(a),o=As(),t=m(o),r=Rd(),s=m(r),p=Sd(),l=m(p),u=Ed(),f=m(u),h=Jt(),w=m(h),d=vr(),v=m(d);function m(y){return y&&y.__esModule?y:{default:y}}function c(y,E,T){T=(0,l.default)(T);var R=0,x=0,{length:j}=y,W=!1;j===0&&T(null);function G(O,I){O===!1&&(W=!0),W!==!0&&(O?T(O):(++x===j||I===t.default)&&T(null))}for(;R<j;R++)E(y[R],R,(0,f.default)(G))}function _(y,E,T){return(0,s.default)(y,1/0,E,T)}function b(y,E,T){var R=(0,i.default)(y)?c:_;return R(y,(0,w.default)(E),T)}n.default=(0,v.default)(b,3),e.exports=n.default}(tn,tn.exports)),tn.exports}var rn={exports:{}},Uf;function Wy(){return Uf||(Uf=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;function a(i){return(o,t,r)=>i(o,r)}e.exports=n.default}(rn,rn.exports)),rn.exports}var Bf;function ks(){return Bf||(Bf=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=Zy(),i=u(a),o=Wy(),t=u(o),r=Jt(),s=u(r),p=vr(),l=u(p);function u(h){return h&&h.__esModule?h:{default:h}}function f(h,w,d){return(0,i.default)(h,(0,t.default)((0,s.default)(w)),d)}n.default=(0,l.default)(f,3),e.exports=n.default}(en,en.exports)),en.exports}var xa,Vf;function Ky(){if(Vf)return xa;Vf=1;var e=Object.prototype.toString;return xa=function(a){if(typeof a.displayName=="string"&&a.constructor.name)return a.displayName;if(typeof a.name=="string"&&a.name)return a.name;if(typeof a=="object"&&a.constructor&&typeof a.constructor.name=="string")return a.constructor.name;var i=a.toString(),o=e.call(a).slice(8,-1);return o==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=o,i||"anonymous"},xa}var Ia,zf;function jd(){if(zf)return Ia;zf=1;var e=Ky();return Ia=function(a){var i=0,o;function t(){return i||(i=1,o=a.apply(this,arguments),a=null),o}return t.displayName=e(a),t},Ia}var Aa={},Gf;function Dd(){return Gf||(Gf=1,function(e){e.get=function(o){var t=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},s=Error.prepareStackTrace;Error.prepareStackTrace=function(l,u){return u},Error.captureStackTrace(r,o||e.get);var p=r.stack;return Error.prepareStackTrace=s,Error.stackTraceLimit=t,p},e.parse=function(o){if(!o.stack)return[];var t=this,r=o.stack.split(`
|
|
135
|
+
`).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 p=s.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(p){var l=null,u=null,f=null,h=null,w=null,d=p[5]==="native";if(p[1]){f=p[1];var v=f.lastIndexOf(".");if(f[v-1]=="."&&v--,v>0){l=f.substr(0,v),u=f.substr(v+1);var m=l.indexOf(".Module");m>0&&(f=f.substr(m+1),l=l.substr(0,m))}h=null}u&&(h=l,w=u),u==="<anonymous>"&&(w=null,f=null);var c={fileName:p[2]||null,lineNumber:parseInt(p[3],10)||null,functionName:f,typeName:h,methodName:w,columnNumber:parseInt(p[4],10)||null,native:d};return t._createParsedCallSite(c)}}).filter(function(s){return!!s})};function n(o){for(var t in o)this[t]=o[t]}var a=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],i=["topLevel","eval","native","constructor"];a.forEach(function(o){n.prototype[o]=null,n.prototype["get"+o[0].toUpperCase()+o.substr(1)]=function(){return this[o]}}),i.forEach(function(o){n.prototype[o]=!1,n.prototype["is"+o[0].toUpperCase()+o.substr(1)]=function(){return this[o]}}),e._createParsedCallSite=function(o){return new n(o)}}(Aa)),Aa}var Ca,Hf;function Nd(){if(Hf)return Ca;Hf=1;function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(w)}function n(w,d){if(!(w instanceof d))throw new TypeError("Cannot call a class as a function")}function a(w,d){for(var v=0;v<d.length;v++){var m=d[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(w,m.key,m)}}function i(w,d,v){return d&&a(w.prototype,d),Object.defineProperty(w,"prototype",{writable:!1}),w}function o(w,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(d&&d.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),d&&t(w,d)}function t(w,d){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,c){return m.__proto__=c,m},t(w,d)}function r(w){var d=l();return function(){var m=u(w),c;if(d){var _=u(this).constructor;c=Reflect.construct(m,arguments,_)}else c=m.apply(this,arguments);return s(this,c)}}function s(w,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(w)}function p(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 u(w){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},u(w)}var f=Ut(),h=f.Writable;return Ca=function(w){o(v,w);var d=r(v);function v(m){var c;if(n(this,v),c=d.call(this,{objectMode:!0}),!m)throw new Error("ExceptionStream requires a TransportStream instance.");return c.handleExceptions=!0,c.transport=m,c}return i(v,[{key:"_write",value:function(c,_,b){return c.exception?this.transport.log(c,b):(b(),!0)}}]),v}(h),Ca}var Pa,Zf;function $d(){if(Zf)return Pa;Zf=1;function e(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function n(l,u){for(var f=0;f<u.length;f++){var h=u[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(l,h.key,h)}}function a(l,u,f){return u&&n(l.prototype,u),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=Mt(),o=ks(),t=En()("winston:exception"),r=jd(),s=Dd(),p=Nd();return Pa=function(){function l(u){if(e(this,l),!u)throw new Error("Logger is required to handle exceptions");this.logger=u,this.handlers=new Map}return a(l,[{key:"handle",value:function(){for(var f=this,h=arguments.length,w=new Array(h),d=0;d<h;d++)w[d]=arguments[d];w.forEach(function(v){if(Array.isArray(v))return v.forEach(function(m){return f._addHandler(m)});f._addHandler(v)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),Re.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var f=this;this.catcher&&(Re.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(h){return f.logger.unpipe(h)}))}},{key:"getAllInfo",value:function(f){var h=f.message;return!h&&typeof f=="string"&&(h=f),{error:f,level:"error",message:["uncaughtException: ".concat(h||"(no error message)"),f.stack||" No stack trace"].join(`
|
|
136
|
+
`),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:Re.pid,uid:Re.getuid?Re.getuid():null,gid:Re.getgid?Re.getgid():null,cwd:Re.cwd(),execPath:Re.execPath,version:Re.version,argv:Re.argv,memoryUsage:Re.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(f){var h=f?s.parse(f):s.get();return h.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 h=new p(f);this.handlers.set(f,h),this.logger.pipe(h)}}},{key:"_uncaughtException",value:function(f){var h=this.getAllInfo(f),w=this._getExceptionHandlers(),d=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(f):this.logger.exitOnError,v;!w.length&&d&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),d=!1);function m(){t("doExit",d),t("process._exiting",Re._exiting),d&&!Re._exiting&&(v&&clearTimeout(v),Re.exit(1))}if(!w||w.length===0)return Re.nextTick(m);o(w,function(c,_){var b=r(_),y=c.transport||c;function E(T){return function(){t(T),b()}}y._ending=!0,y.once("finish",E("finished")),y.once("error",E("error"))},function(){return d&&m()}),this.logger.log(h),d&&(v=setTimeout(m,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(f){var h=f.transport||f;return h.handleExceptions})}}]),l}(),Pa}var ka,Wf;function Md(){if(Wf)return ka;Wf=1;function e(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function n(l,u){for(var f=0;f<u.length;f++){var h=u[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(l,h.key,h)}}function a(l,u,f){return u&&n(l.prototype,u),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=Mt(),o=ks(),t=En()("winston:rejection"),r=jd(),s=Dd(),p=Nd();return ka=function(){function l(u){if(e(this,l),!u)throw new Error("Logger is required to handle rejections");this.logger=u,this.handlers=new Map}return a(l,[{key:"handle",value:function(){for(var f=this,h=arguments.length,w=new Array(h),d=0;d<h;d++)w[d]=arguments[d];w.forEach(function(v){if(Array.isArray(v))return v.forEach(function(m){return f._addHandler(m)});f._addHandler(v)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),Re.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var f=this;this.catcher&&(Re.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(h){return f.logger.unpipe(h)}))}},{key:"getAllInfo",value:function(f){var h=null;return f&&(h=typeof f=="string"?f:f.message),{error:f,level:"error",message:["unhandledRejection: ".concat(h||"(no error message)"),f&&f.stack||" No stack trace"].join(`
|
|
137
|
+
`),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:Re.pid,uid:Re.getuid?Re.getuid():null,gid:Re.getgid?Re.getgid():null,cwd:Re.cwd(),execPath:Re.execPath,version:Re.version,argv:Re.argv,memoryUsage:Re.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(f){var h=f?s.parse(f):s.get();return h.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 h=new p(f);this.handlers.set(f,h),this.logger.pipe(h)}}},{key:"_unhandledRejection",value:function(f){var h=this.getAllInfo(f),w=this._getRejectionHandlers(),d=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(f):this.logger.exitOnError,v;!w.length&&d&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),d=!1);function m(){t("doExit",d),t("process._exiting",Re._exiting),d&&!Re._exiting&&(v&&clearTimeout(v),Re.exit(1))}if(!w||w.length===0)return Re.nextTick(m);o(w,function(c,_){var b=r(_),y=c.transport||c;function E(T){return function(){t(T),b()}}y._ending=!0,y.once("finish",E("finished")),y.once("error",E("error"))},function(){return d&&m()}),this.logger.log(h),d&&(v=setTimeout(m,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(f){var h=f.transport||f;return h.handleRejections})}}]),l}(),ka}var La={exports:{}},Kf;function Yy(){if(Kf)return La.exports;Kf=1;const e=Xe(),{LEVEL:n}=ze(),a=Ft(),i=La.exports=function(t={}){if(a.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(i,a),i.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)},i.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)},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(`
|
|
138
|
+
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},La.exports}var qa,Yf;function Jy(){if(Yf)return qa;Yf=1;function e(o){"@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(o)}function n(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function a(o,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(o,s.key,s)}}function i(o,t,r){return t&&a(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}return qa=function(){function o(t){if(n(this,o),!t)throw new Error("Logger is required for profiling.");this.logger=t,this.start=Date.now()}return i(o,[{key:"done",value:function(){for(var r=arguments.length,s=new Array(r),p=0;p<r;p++)s[p]=arguments[p];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)}}]),o}(),qa}var ja,Jf;function Xy(){if(Jf)return ja;Jf=1;class e extends Error{constructor(a){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
139
|
+
Found: ${a.toString().split(`
|
|
140
|
+
`)[0]}
|
|
141
|
+
`),Error.captureStackTrace(this,e)}}return ja=n=>{if(n.length>2)throw new e(n);function a(o={}){this.options=o}a.prototype.transform=n;function i(o){return new a(o)}return i.Format=a,i},ja}var Da,Xf;function Qy(){if(Xf)return Da;Xf=1;const e=Xy(),{MESSAGE:n}=ze(),a=gr();function i(o,t){return typeof t=="bigint"?t.toString():t}return Da=e((o,t)=>{const r=a.configure(t);return o[n]=r(o,t.replacer||i,t.space),o}),Da}var Na,Qf;function e_(){if(Qf)return Na;Qf=1;function e(q,F,V){return F in q?Object.defineProperty(q,F,{value:V,enumerable:!0,configurable:!0,writable:!0}):q[F]=V,q}function n(q){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},n(q)}function a(q,F){if(!(q instanceof F))throw new TypeError("Cannot call a class as a function")}function i(q,F){for(var V=0;V<F.length;V++){var L=F[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,L.key,L)}}function o(q,F,V){return F&&i(q.prototype,F),Object.defineProperty(q,"prototype",{writable:!1}),q}function t(q,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(F&&F.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),F&&r(q,F)}function r(q,F){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,A){return L.__proto__=A,L},r(q,F)}function s(q){var F=u();return function(){var L=f(q),A;if(F){var D=f(this).constructor;A=Reflect.construct(L,arguments,D)}else A=L.apply(this,arguments);return p(this,A)}}function p(q,F){if(F&&(n(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(q)}function l(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function u(){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(q){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},f(q)}var h=Ut(),w=h.Stream,d=h.Transform,v=ks(),m=ze(),c=m.LEVEL,_=m.SPLAT,b=qd(),y=$d(),E=Md(),T=Yy(),R=Jy(),x=bd(),j=x.warn,W=Ps(),G=/%[scdjifoO%]/g,O=function(q){t(V,q);var F=s(V);function V(L){var A;return a(this,V),A=F.call(this,{objectMode:!0}),A.configure(L),A}return o(V,[{key:"child",value:function(A){var D=this;return Object.create(D,{write:{value:function(H){var Z=Object.assign({},A,H);H instanceof Error&&(Z.stack=H.stack,Z.message=H.message),D.write(Z)}}})}},{key:"configure",value:function(){var A=this,D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=D.silent,H=D.format,Z=D.defaultMeta,B=D.levels,$=D.level,U=$===void 0?"info":$,z=D.exitOnError,re=z===void 0?!0:z,te=D.transports,se=D.colors,fe=D.emitErrs,ve=D.formatters,ye=D.padLevels,Ee=D.rewriters,xe=D.stripColors,ke=D.exceptionHandlers,qe=D.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=N,this.format=H||this.format||Qy()(),this.defaultMeta=Z||null,this.levels=B||this.levels||W.npm.levels,this.level=U,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new y(this),this.rejections=new E(this),this.profilers={},this.exitOnError=re,te&&(te=Array.isArray(te)?te:[te],te.forEach(function(Ie){return A.add(Ie)})),se||fe||ve||ye||Ee||xe)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(`
|
|
142
|
+
`));ke&&this.exceptions.handle(ke),qe&&this.rejections.handle(qe)}},{key:"isLevelEnabled",value:function(A){var D=this,N=I(this.levels,A);if(N===null)return!1;var H=I(this.levels,this.level);if(H===null)return!1;if(!this.transports||this.transports.length===0)return H>=N;var Z=this.transports.findIndex(function(B){var $=I(D.levels,B.level);return $===null&&($=H),$>=N});return Z!==-1}},{key:"log",value:function(A,D){for(var N,H=arguments.length,Z=new Array(H>2?H-2:0),B=2;B<H;B++)Z[B-2]=arguments[B];if(arguments.length===1)return A[c]=A.level,this._addDefaultMeta(A),this.write(A),this;if(arguments.length===2){var $;return D&&n(D)==="object"?(D[c]=D.level=A,this._addDefaultMeta(D),this.write(D),this):(D=($={},e($,c,A),e($,"level",A),e($,"message",D),$),this._addDefaultMeta(D),this.write(D),this)}var U=Z[0];if(n(U)==="object"&&U!==null){var z=D&&D.match&&D.match(G);if(!z){var re,te=Object.assign({},this.defaultMeta,U,(re={},e(re,c,A),e(re,_,Z),e(re,"level",A),e(re,"message",D),re));return U.message&&(te.message="".concat(te.message," ").concat(U.message)),U.stack&&(te.stack=U.stack),this.write(te),this}}return this.write(Object.assign({},this.defaultMeta,(N={},e(N,c,A),e(N,_,Z),e(N,"level",A),e(N,"message",D),N))),this}},{key:"_transform",value:function(A,D,N){if(this.silent)return N();A[c]||(A[c]=A.level),!this.levels[A[c]]&&this.levels[A[c]]!==0&&console.error("[winston] Unknown logger level: %s",A[c]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",A);try{this.push(this.format.transform(A,this.format.options))}finally{this._writableState.sync=!1,N()}}},{key:"_final",value:function(A){var D=this.transports.slice();v(D,function(N,H){if(!N||N.finished)return setImmediate(H);N.once("finish",H),N.end()},A)}},{key:"add",value:function(A){var D=!b(A)||A.log.length>2?new T({transport:A}):A;if(!D._writableState||!D._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",D),this._onEvent("warn",D),this.pipe(D),A.handleExceptions&&this.exceptions.handle(),A.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(A){if(!A)return this;var D=A;return(!b(A)||A.log.length>2)&&(D=this.transports.filter(function(N){return N.transport===A})[0]),D&&this.unpipe(D),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(){j.deprecated("setLevels")}},{key:"query",value:function(A,D){typeof A=="function"&&(D=A,A={}),A=A||{};var N={},H=Object.assign({},A.query||{});function Z($,U){A.query&&typeof $.formatQuery=="function"&&(A.query=$.formatQuery(H)),$.query(A,function(z,re){if(z)return U(z);typeof $.formatResults=="function"&&(re=$.formatResults(re,A.format)),U(null,re)})}function B($,U){Z($,function(z,re){U&&(re=z||re,re&&(N[$.name]=re),U()),U=null})}v(this.transports.filter(function($){return!!$.query}),B,function(){return D(null,N)})}},{key:"stream",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=new w,N=[];return D._streams=N,D.destroy=function(){for(var H=N.length;H--;)N[H].destroy()},this.transports.filter(function(H){return!!H.stream}).forEach(function(H){var Z=H.stream(A);Z&&(N.push(Z),Z.on("log",function(B){B.transport=B.transport||[],B.transport.push(H.name),D.emit("log",B)}),Z.on("error",function(B){B.transport=B.transport||[],B.transport.push(H.name),D.emit("error",B)}))}),D}},{key:"startTimer",value:function(){return new R(this)}},{key:"profile",value:function(A){var D=Date.now();if(this.profilers[A]){var N=this.profilers[A];delete this.profilers[A];for(var H=arguments.length,Z=new Array(H>1?H-1:0),B=1;B<H;B++)Z[B-1]=arguments[B];typeof Z[Z.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),Z.pop());var $=n(Z[Z.length-1])==="object"?Z.pop():{};return $.level=$.level||"info",$.durationMs=D-N,$.message=$.message||A,this.write($)}return this.profilers[A]=D,this}},{key:"handleExceptions",value:function(){var A;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(A=this.exceptions).handle.apply(A,arguments)}},{key:"unhandleExceptions",value:function(){var A;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(A=this.exceptions).unhandle.apply(A,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(`
|
|
143
|
+
`))}},{key:"_onEvent",value:function(A,D){function N(H){A==="error"&&!this.transports.includes(D)&&this.add(D),this.emit(A,H,D)}D["__winston"+A]||(D["__winston"+A]=N.bind(this),D.on(A,D["__winston"+A]))}},{key:"_addDefaultMeta",value:function(A){this.defaultMeta&&Object.assign(A,this.defaultMeta)}}]),V}(d);function I(q,F){var V=q[F];return!V&&V!==0?null:V}return Object.defineProperty(O.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var F=this._readableState.pipes;return Array.isArray(F)?F:[F].filter(Boolean)}}),Na=O,Na}var $a,el;function Fd(){if(el)return $a;el=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(m)}function n(m,c,_){return Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}function i(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),c&&o(m,c)}function o(m,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,y){return b.__proto__=y,b},o(m,c)}function t(m){var c=p();return function(){var b=l(m),y;if(c){var E=l(this).constructor;y=Reflect.construct(b,arguments,E)}else y=b.apply(this,arguments);return r(this,y)}}function r(m,c){if(c&&(e(c)==="object"||typeof c=="function"))return c;if(c!==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 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 l(m){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},l(m)}var u=ze(),f=u.LEVEL,h=Ps(),w=e_(),d=En()("winston:create-logger");function v(m){return"is"+m.charAt(0).toUpperCase()+m.slice(1)+"Enabled"}return $a=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};m.levels=m.levels||h.npm.levels;var c=function(b){i(E,b);var y=t(E);function E(T){return a(this,E),y.call(this,T)}return n(E)}(w),_=new c(m);return Object.keys(m.levels).forEach(function(b){if(d('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}c.prototype[b]=function(){for(var y=this||_,E=arguments.length,T=new Array(E),R=0;R<E;R++)T[R]=arguments[R];if(T.length===1){var x=T[0],j=x&&x.message&&x||{message:x};return j.level=j[f]=b,y._addDefaultMeta(j),y.write(j),this||_}return T.length===0?(y.log(b,""),y):y.log.apply(y,[b].concat(T))},c.prototype[v(b)]=function(){return(this||_).isLevelEnabled(b)}}),_},$a}var Ma,tl;function t_(){if(tl)return Ma;tl=1;function e(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function n(o,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(o,s.key,s)}}function a(o,t,r){return t&&n(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}var i=Fd();return Ma=function(){function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,o),this.loggers=new Map,this.options=t}return a(o,[{key:"add",value:function(r,s){var p=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 u=i(s);u.on("close",function(){return p._delete(r)}),this.loggers.set(r,u)}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(p,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)}}]),o}(),Ma}var rl;function r_(){return rl||(rl=1,function(e){var n=_d(),a=bd(),i=a.warn;e.version=ny.version,e.transports=Hy(),e.config=Ps(),e.addColors=n.levels,e.format=n.format,e.createLogger=Fd(),e.ExceptionHandler=$d(),e.RejectionHandler=Md(),e.Container=t_(),e.Transport=Ft(),e.loggers=new e.Container;var o=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 o[t].apply(o,arguments)}}),Object.defineProperty(e,"level",{get:function(){return o.level},set:function(r){o.level=r}}),Object.defineProperty(e,"exceptions",{get:function(){return o.exceptions}}),["exitOnError"].forEach(function(t){Object.defineProperty(e,t,{get:function(){return o[t]},set:function(s){o[t]=s}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:o.exceptionHandlers,rejectionHandlers:o.rejectionHandlers,transports:o.transports}}}),i.deprecated(e,"setLevels"),i.forFunctions(e,"useFormat",["cli"]),i.forProperties(e,"useFormat",["padLevels","stripColors"]),i.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(e,"deprecated",["emitErrs","levelLength"]),i.moved(e,"createLogger","Logger")}(hi)),hi}var Fa={exports:{}},Ua,nl;function On(){if(nl)return Ua;nl=1;var e=function(n,a){Error.call(this,n),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=n,a&&(this.inner=a)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,Ua=e,Ua}var Ba,il;function Ud(){if(il)return Ba;il=1;var e=On(),n=function(a,i){e.call(this,a),this.name="NotBeforeError",this.date=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,Ba=n,Ba}var Va,al;function Bd(){if(al)return Va;al=1;var e=On(),n=function(a,i){e.call(this,a),this.name="TokenExpiredError",this.expiredAt=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,Va=n,Va}var bt={},za,ol;function Vd(){if(ol)return za;ol=1;var e=pr().Buffer,n=_n(),a=Xe();function i(o){if(this.buffer=null,this.writable=!0,this.readable=!0,!o)return this.buffer=e.alloc(0),this;if(typeof o.pipe=="function")return this.buffer=e.alloc(0),o.pipe(this),this;if(o.length||typeof o=="object")return this.buffer=o,this.writable=!1,Re.nextTick((function(){this.emit("end",o),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof o+")")}return a.inherits(i,n),i.prototype.write=function(t){this.buffer=e.concat([this.buffer,e.from(t)]),this.emit("data",t)},i.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1},za=i,za}var Ga,sl;function n_(){if(sl)return Ga;sl=1;function e(i){var o=(i/8|0)+(i%8===0?0:1);return o}var n={ES256:e(256),ES384:e(384),ES512:e(521)};function a(i){var o=n[i];if(o)return o;throw new Error('Unknown algorithm "'+i+'"')}return Ga=a,Ga}var Ha,ul;function i_(){if(ul)return Ha;ul=1;var e=pr().Buffer,n=n_(),a=128,i=0,o=32,t=16,r=2,s=t|o|i<<6,p=r|i<<6;function l(d){return d.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function u(d){if(e.isBuffer(d))return d;if(typeof d=="string")return e.from(d,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function f(d,v){d=u(d);var m=n(v),c=m+1,_=d.length,b=0;if(d[b++]!==s)throw new Error('Could not find expected "seq"');var y=d[b++];if(y===(a|1)&&(y=d[b++]),_-b<y)throw new Error('"seq" specified length of "'+y+'", only "'+(_-b)+'" remaining');if(d[b++]!==p)throw new Error('Could not find expected "int" for "r"');var E=d[b++];if(_-b-2<E)throw new Error('"r" specified length of "'+E+'", only "'+(_-b-2)+'" available');if(c<E)throw new Error('"r" specified length of "'+E+'", max of "'+c+'" is acceptable');var T=b;if(b+=E,d[b++]!==p)throw new Error('Could not find expected "int" for "s"');var R=d[b++];if(_-b!==R)throw new Error('"s" specified length of "'+R+'", expected "'+(_-b)+'"');if(c<R)throw new Error('"s" specified length of "'+R+'", max of "'+c+'" is acceptable');var x=b;if(b+=R,b!==_)throw new Error('Expected to consume entire buffer, but "'+(_-b)+'" bytes remain');var j=m-E,W=m-R,G=e.allocUnsafe(j+E+W+R);for(b=0;b<j;++b)G[b]=0;d.copy(G,b,T+Math.max(-j,0),T+E),b=m;for(var O=b;b<O+W;++b)G[b]=0;return d.copy(G,b,x+Math.max(-W,0),x+R),G=G.toString("base64"),G=l(G),G}function h(d,v,m){for(var c=0;v+c<m&&d[v+c]===0;)++c;var _=d[v+c]>=a;return _&&--c,c}function w(d,v){d=u(d);var m=n(v),c=d.length;if(c!==m*2)throw new TypeError('"'+v+'" signatures must be "'+m*2+'" bytes, saw "'+c+'"');var _=h(d,0,m),b=h(d,m,d.length),y=m-_,E=m-b,T=2+y+1+1+E,R=T<a,x=e.allocUnsafe((R?2:3)+T),j=0;return x[j++]=s,R?x[j++]=T:(x[j++]=a|1,x[j++]=T&255),x[j++]=p,x[j++]=y,_<0?(x[j++]=0,j+=d.copy(x,j,0,m)):j+=d.copy(x,j,_,m),x[j++]=p,x[j++]=E,b<0?(x[j++]=0,d.copy(x,j,m)):d.copy(x,j,m+b),x}return Ha={derToJose:f,joseToDer:w},Ha}var Za,cl;function a_(){if(cl)return Za;cl=1;var e=cr().Buffer,n=cr().SlowBuffer;Za=a;function a(t,r){if(!e.isBuffer(t)||!e.isBuffer(r)||t.length!==r.length)return!1;for(var s=0,p=0;p<t.length;p++)s|=t[p]^r[p];return s===0}a.install=function(){e.prototype.equal=n.prototype.equal=function(r){return a(this,r)}};var i=e.prototype.equal,o=n.prototype.equal;return a.restore=function(){e.prototype.equal=i,n.prototype.equal=o},Za}var Wa,fl;function zd(){if(fl)return Wa;fl=1;var e=pr().Buffer,n=Yt(),a=i_(),i=Xe(),o=`"%s" is not a valid algorithm.
|
|
144
|
+
Supported algorithms are:
|
|
145
|
+
"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",p=typeof n.createPublicKey=="function";p&&(r+=" or a KeyObject",t+="or a KeyObject");function l(I){if(!e.isBuffer(I)&&typeof I!="string"&&(!p||typeof I!="object"||typeof I.type!="string"||typeof I.asymmetricKeyType!="string"||typeof I.export!="function"))throw d(r)}function u(I){if(!e.isBuffer(I)&&typeof I!="string"&&typeof I!="object")throw d(s)}function f(I){if(!e.isBuffer(I)){if(typeof I=="string")return I;if(!p||typeof I!="object"||I.type!=="secret"||typeof I.export!="function")throw d(t)}}function h(I){return I.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function w(I){I=I.toString();var q=4-I.length%4;if(q!==4)for(var F=0;F<q;++F)I+="=";return I.replace(/\-/g,"+").replace(/_/g,"/")}function d(I){var q=[].slice.call(arguments,1),F=i.format.bind(i,I).apply(null,q);return new TypeError(F)}function v(I){return e.isBuffer(I)||typeof I=="string"}function m(I){return v(I)||(I=JSON.stringify(I)),I}function c(I){return function(F,V){f(V),F=m(F);var L=n.createHmac("sha"+I,V),A=(L.update(F),L.digest("base64"));return h(A)}}var _,b="timingSafeEqual"in n?function(q,F){return q.byteLength!==F.byteLength?!1:n.timingSafeEqual(q,F)}:function(q,F){return _||(_=a_()),_(q,F)};function y(I){return function(F,V,L){var A=c(I)(F,L);return b(e.from(V),e.from(A))}}function E(I){return function(F,V){u(V),F=m(F);var L=n.createSign("RSA-SHA"+I),A=(L.update(F),L.sign(V,"base64"));return h(A)}}function T(I){return function(F,V,L){l(L),F=m(F),V=w(V);var A=n.createVerify("RSA-SHA"+I);return A.update(F),A.verify(L,V,"base64")}}function R(I){return function(F,V){u(V),F=m(F);var L=n.createSign("RSA-SHA"+I),A=(L.update(F),L.sign({key:V,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return h(A)}}function x(I){return function(F,V,L){l(L),F=m(F),V=w(V);var A=n.createVerify("RSA-SHA"+I);return A.update(F),A.verify({key:L,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},V,"base64")}}function j(I){var q=E(I);return function(){var V=q.apply(null,arguments);return V=a.derToJose(V,"ES"+I),V}}function W(I){var q=T(I);return function(V,L,A){L=a.joseToDer(L,"ES"+I).toString("base64");var D=q(V,L,A);return D}}function G(){return function(){return""}}function O(){return function(q,F){return F===""}}return Wa=function(q){var F={hs:c,rs:E,ps:R,es:j,none:G},V={hs:y,rs:T,ps:x,es:W,none:O},L=q.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!L)throw d(o,q);var A=(L[1]||L[3]).toLowerCase(),D=L[2];return{sign:F[A](D),verify:V[A](D)}},Wa}var Ka,ll;function Gd(){if(ll)return Ka;ll=1;var e=cr().Buffer;return Ka=function(a){return typeof a=="string"?a:typeof a=="number"||e.isBuffer(a)?a.toString():JSON.stringify(a)},Ka}var Ya,hl;function o_(){if(hl)return Ya;hl=1;var e=pr().Buffer,n=Vd(),a=zd(),i=_n(),o=Gd(),t=Xe();function r(u,f){return e.from(u,f).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(u,f,h){h=h||"utf8";var w=r(o(u),"binary"),d=r(o(f),h);return t.format("%s.%s",w,d)}function p(u){var f=u.header,h=u.payload,w=u.secret||u.privateKey,d=u.encoding,v=a(f.alg),m=s(f,h,d),c=v.sign(m,w);return t.format("%s.%s",m,c)}function l(u){var f=u.secret;if(f=f??u.privateKey,f=f??u.key,/^hs/i.test(u.header.alg)===!0&&f==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var h=new n(f);this.readable=!0,this.header=u.header,this.encoding=u.encoding,this.secret=this.privateKey=this.key=h,this.payload=new n(u.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,i),l.prototype.sign=function(){try{var f=p({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(h){this.readable=!1,this.emit("error",h),this.emit("close")}},l.sign=p,Ya=l,Ya}var Ja,dl;function s_(){if(dl)return Ja;dl=1;var e=pr().Buffer,n=Vd(),a=zd(),i=_n(),o=Gd(),t=Xe(),r=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function s(c){return Object.prototype.toString.call(c)==="[object Object]"}function p(c){if(s(c))return c;try{return JSON.parse(c)}catch{return}}function l(c){var _=c.split(".",1)[0];return p(e.from(_,"base64").toString("binary"))}function u(c){return c.split(".",2).join(".")}function f(c){return c.split(".")[2]}function h(c,_){_=_||"utf8";var b=c.split(".")[1];return e.from(b,"base64").toString(_)}function w(c){return r.test(c)&&!!l(c)}function d(c,_,b){if(!_){var y=new Error("Missing algorithm parameter for jws.verify");throw y.code="MISSING_ALGORITHM",y}c=o(c);var E=f(c),T=u(c),R=a(_);return R.verify(T,E,b)}function v(c,_){if(_=_||{},c=o(c),!w(c))return null;var b=l(c);if(!b)return null;var y=h(c);return(b.typ==="JWT"||_.json)&&(y=JSON.parse(y,_.encoding)),{header:b,payload:y,signature:f(c)}}function m(c){c=c||{};var _=c.secret;if(_=_??c.publicKey,_=_??c.key,/^hs/i.test(c.algorithm)===!0&&_==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var b=new n(_);this.readable=!0,this.algorithm=c.algorithm,this.encoding=c.encoding,this.secret=this.publicKey=this.key=b,this.signature=new n(c.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,i),m.prototype.verify=function(){try{var _=d(this.signature.buffer,this.algorithm,this.key.buffer),b=v(this.signature.buffer,this.encoding);return this.emit("done",_,b),this.emit("data",_),this.emit("end"),this.readable=!1,_}catch(y){this.readable=!1,this.emit("error",y),this.emit("close")}},m.decode=v,m.isValid=w,m.verify=d,Ja=m,Ja}var pl;function Ls(){if(pl)return bt;pl=1;var e=o_(),n=s_(),a=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return bt.ALGORITHMS=a,bt.sign=e.sign,bt.verify=n.verify,bt.decode=n.decode,bt.isValid=n.isValid,bt.createSign=function(o){return new e(o)},bt.createVerify=function(o){return new n(o)},bt}var Xa,ml;function Hd(){if(ml)return Xa;ml=1;var e=Ls();return Xa=function(n,a){a=a||{};var i=e.decode(n,a);if(!i)return null;var o=i.payload;if(typeof o=="string")try{var t=JSON.parse(o);t!==null&&typeof t=="object"&&(o=t)}catch{}return a.complete===!0?{header:i.header,payload:o,signature:i.signature}:o},Xa}var Qa,gl;function Zd(){if(gl)return Qa;gl=1;var e=cd();return Qa=function(n,a){var i=a||Math.floor(Date.now()/1e3);if(typeof n=="string"){var o=e(n);return typeof o>"u"?void 0:Math.floor(i+o/1e3)}else return typeof n=="number"?i+n:void 0},Qa}var nn={exports:{}},eo,vl;function Tn(){if(vl)return eo;vl=1;const e="2.0.0",n=256,a=Number.MAX_SAFE_INTEGER||9007199254740991;return eo={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:a,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},eo}var to,yl;function xn(){if(yl)return to;yl=1;var e={};return to=typeof Re=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{},to}var _l;function yr(){return _l||(_l=1,function(e,n){const{MAX_SAFE_COMPONENT_LENGTH:a}=Tn(),i=xn();n=e.exports={};const o=n.re=[],t=n.safeRe=[],r=n.src=[],s=n.t={};let p=0;const l=(u,f,h)=>{const w=f.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),d=p++;i(u,d,f),s[u]=d,r[d]=f,o[d]=new RegExp(f,h?"g":void 0),t[d]=new RegExp(w,h?"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,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?(?:$|[^\\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*$")}(nn,nn.exports)),nn.exports}var ro,bl;function qs(){if(bl)return ro;bl=1;const e=Object.freeze({loose:!0}),n=Object.freeze({});return ro=i=>i?typeof i!="object"?e:i:n,ro}var no,wl;function Wd(){if(wl)return no;wl=1;const e=/^[0-9]+$/,n=(i,o)=>{const t=e.test(i),r=e.test(o);return t&&r&&(i=+i,o=+o),i===o?0:t&&!r?-1:r&&!t?1:i<o?-1:1};return no={compareIdentifiers:n,rcompareIdentifiers:(i,o)=>n(o,i)},no}var io,Sl;function rt(){if(Sl)return io;Sl=1;const e=xn(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:a}=Tn(),{safeRe:i,t:o}=yr(),t=qs(),{compareIdentifiers:r}=Wd();class s{constructor(l,u){if(u=t(u),l instanceof s){if(l.loose===!!u.loose&&l.includePrerelease===!!u.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,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const f=l.trim().match(u.loose?i[o.LOOSE]:i[o.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>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const w=+h;if(w>=0&&w<a)return w}return h}):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 u=0;do{const f=this.prerelease[u],h=l.prerelease[u];if(e("prerelease compare",u,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return r(f,h)}while(++u)}compareBuild(l){l instanceof s||(l=new s(l,this.options));let u=0;do{const f=this.build[u],h=l.build[u];if(e("prerelease compare",u,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return r(f,h)}while(++u)}inc(l,u,f){switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,f),this.inc("pre",u,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,f),this.inc("pre",u,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 h=Number(f)?1:0;if(!u&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[h];else{let w=this.prerelease.length;for(;--w>=0;)typeof this.prerelease[w]=="number"&&(this.prerelease[w]++,w=-2);if(w===-1){if(u===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(u){let w=[u,h];f===!1&&(w=[u]),r(this.prerelease[0],u)===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 io=s,io}var ao,El;function Xt(){if(El)return ao;El=1;const e=rt();return ao=(a,i,o=!1)=>{if(a instanceof e)return a;try{return new e(a,i)}catch(t){if(!o)return null;throw t}},ao}var oo,Rl;function u_(){if(Rl)return oo;Rl=1;const e=Xt();return oo=(a,i)=>{const o=e(a,i);return o?o.version:null},oo}var so,Ol;function c_(){if(Ol)return so;Ol=1;const e=Xt();return so=(a,i)=>{const o=e(a.trim().replace(/^[=v]+/,""),i);return o?o.version:null},so}var uo,Tl;function f_(){if(Tl)return uo;Tl=1;const e=rt();return uo=(a,i,o,t,r)=>{typeof o=="string"&&(r=t,t=o,o=void 0);try{return new e(a instanceof e?a.version:a,o).inc(i,t,r).version}catch{return null}},uo}var co,xl;function l_(){if(xl)return co;xl=1;const e=Xt();return co=(a,i)=>{const o=e(a,null,!0),t=e(i,null,!0),r=o.compare(t);if(r===0)return null;const s=r>0,p=s?o:t,l=s?t:o,u=!!p.prerelease.length;if(!!l.prerelease.length&&!u)return!l.patch&&!l.minor?"major":p.patch?"patch":p.minor?"minor":"major";const h=u?"pre":"";return o.major!==t.major?h+"major":o.minor!==t.minor?h+"minor":o.patch!==t.patch?h+"patch":"prerelease"},co}var fo,Il;function h_(){if(Il)return fo;Il=1;const e=rt();return fo=(a,i)=>new e(a,i).major,fo}var lo,Al;function d_(){if(Al)return lo;Al=1;const e=rt();return lo=(a,i)=>new e(a,i).minor,lo}var ho,Cl;function p_(){if(Cl)return ho;Cl=1;const e=rt();return ho=(a,i)=>new e(a,i).patch,ho}var po,Pl;function m_(){if(Pl)return po;Pl=1;const e=Xt();return po=(a,i)=>{const o=e(a,i);return o&&o.prerelease.length?o.prerelease:null},po}var mo,kl;function pt(){if(kl)return mo;kl=1;const e=rt();return mo=(a,i,o)=>new e(a,o).compare(new e(i,o)),mo}var go,Ll;function g_(){if(Ll)return go;Ll=1;const e=pt();return go=(a,i,o)=>e(i,a,o),go}var vo,ql;function v_(){if(ql)return vo;ql=1;const e=pt();return vo=(a,i)=>e(a,i,!0),vo}var yo,jl;function js(){if(jl)return yo;jl=1;const e=rt();return yo=(a,i,o)=>{const t=new e(a,o),r=new e(i,o);return t.compare(r)||t.compareBuild(r)},yo}var _o,Dl;function y_(){if(Dl)return _o;Dl=1;const e=js();return _o=(a,i)=>a.sort((o,t)=>e(o,t,i)),_o}var bo,Nl;function __(){if(Nl)return bo;Nl=1;const e=js();return bo=(a,i)=>a.sort((o,t)=>e(t,o,i)),bo}var wo,$l;function In(){if($l)return wo;$l=1;const e=pt();return wo=(a,i,o)=>e(a,i,o)>0,wo}var So,Ml;function Ds(){if(Ml)return So;Ml=1;const e=pt();return So=(a,i,o)=>e(a,i,o)<0,So}var Eo,Fl;function Kd(){if(Fl)return Eo;Fl=1;const e=pt();return Eo=(a,i,o)=>e(a,i,o)===0,Eo}var Ro,Ul;function Yd(){if(Ul)return Ro;Ul=1;const e=pt();return Ro=(a,i,o)=>e(a,i,o)!==0,Ro}var Oo,Bl;function Ns(){if(Bl)return Oo;Bl=1;const e=pt();return Oo=(a,i,o)=>e(a,i,o)>=0,Oo}var To,Vl;function $s(){if(Vl)return To;Vl=1;const e=pt();return To=(a,i,o)=>e(a,i,o)<=0,To}var xo,zl;function Jd(){if(zl)return xo;zl=1;const e=Kd(),n=Yd(),a=In(),i=Ns(),o=Ds(),t=$s();return xo=(s,p,l,u)=>{switch(p){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,u);case"!=":return n(s,l,u);case">":return a(s,l,u);case">=":return i(s,l,u);case"<":return o(s,l,u);case"<=":return t(s,l,u);default:throw new TypeError(`Invalid operator: ${p}`)}},xo}var Io,Gl;function b_(){if(Gl)return Io;Gl=1;const e=rt(),n=Xt(),{safeRe:a,t:i}=yr();return Io=(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(a[i.COERCE]);else{let p;for(;(p=a[i.COERCERTL].exec(t))&&(!s||s.index+s[0].length!==t.length);)(!s||p.index+p[0].length!==s.index+s[0].length)&&(s=p),a[i.COERCERTL].lastIndex=p.index+p[1].length+p[2].length;a[i.COERCERTL].lastIndex=-1}return s===null?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)},Io}var Ao,Hl;function w_(){return Hl||(Hl=1,Ao=function(e){e.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}),Ao}var Co,Zl;function S_(){if(Zl)return Co;Zl=1,Co=e,e.Node=o,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,p=arguments.length;s<p;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++)a(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)i(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,p=0;s!==null;p++)t.call(r,s.value,p,this),s=s.next},e.prototype.forEachReverse=function(t,r){r=r||this;for(var s=this.tail,p=this.length-1;s!==null;p--)t.call(r,s.value,p,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,p=this.head;p!==null;)s.push(t.call(r,p.value,this)),p=p.next;return s},e.prototype.mapReverse=function(t,r){r=r||this;for(var s=new e,p=this.tail;p!==null;)s.push(t.call(r,p.value,this)),p=p.prev;return s},e.prototype.reduce=function(t,r){var s,p=this.head;if(arguments.length>1)s=r;else if(this.head)p=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;p!==null;l++)s=t(s,p.value,l),p=p.next;return s},e.prototype.reduceReverse=function(t,r){var s,p=this.tail;if(arguments.length>1)s=r;else if(this.tail)p=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;p!==null;l--)s=t(s,p.value,l),p=p.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 p=0,l=this.head;l!==null&&p<t;p++)l=l.next;for(;l!==null&&p<r;p++,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 p=this.length,l=this.tail;l!==null&&p>r;p--)l=l.prev;for(;l!==null&&p>t;p--,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 p=0,l=this.head;l!==null&&p<t;p++)l=l.next;for(var u=[],p=0;l&&p<r;p++)u.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var p=0;p<s.length;p++)l=n(this,l,s[p]);return u},e.prototype.reverse=function(){for(var t=this.head,r=this.tail,s=t;s!==null;s=s.prev){var p=s.prev;s.prev=s.next,s.next=p}return this.head=r,this.tail=t,this};function n(t,r,s){var p=r===t.head?new o(s,null,r,t):new o(s,r,r.next,t);return p.next===null&&(t.tail=p),p.prev===null&&(t.head=p),t.length++,p}function a(t,r){t.tail=new o(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function i(t,r){t.head=new o(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function o(t,r,s,p){if(!(this instanceof o))return new o(t,r,s,p);this.list=p,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{w_()(e)}catch{}return Co}var Po,Wl;function E_(){if(Wl)return Po;Wl=1;const e=S_(),n=Symbol("max"),a=Symbol("length"),i=Symbol("lengthCalculator"),o=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),s=Symbol("noDisposeOnSet"),p=Symbol("lruList"),l=Symbol("cache"),u=Symbol("updateAgeOnGet"),f=()=>1;class h{constructor(y){if(typeof y=="number"&&(y={max:y}),y||(y={}),y.max&&(typeof y.max!="number"||y.max<0))throw new TypeError("max must be a non-negative number");this[n]=y.max||1/0;const E=y.length||f;if(this[i]=typeof E!="function"?f:E,this[o]=y.stale||!1,y.maxAge&&typeof y.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=y.maxAge||0,this[r]=y.dispose,this[s]=y.noDisposeOnSet||!1,this[u]=y.updateAgeOnGet||!1,this.reset()}set max(y){if(typeof y!="number"||y<0)throw new TypeError("max must be a non-negative number");this[n]=y||1/0,v(this)}get max(){return this[n]}set allowStale(y){this[o]=!!y}get allowStale(){return this[o]}set maxAge(y){if(typeof y!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=y,v(this)}get maxAge(){return this[t]}set lengthCalculator(y){typeof y!="function"&&(y=f),y!==this[i]&&(this[i]=y,this[a]=0,this[p].forEach(E=>{E.length=this[i](E.value,E.key),this[a]+=E.length})),v(this)}get lengthCalculator(){return this[i]}get length(){return this[a]}get itemCount(){return this[p].length}rforEach(y,E){E=E||this;for(let T=this[p].tail;T!==null;){const R=T.prev;_(this,y,T,E),T=R}}forEach(y,E){E=E||this;for(let T=this[p].head;T!==null;){const R=T.next;_(this,y,T,E),T=R}}keys(){return this[p].toArray().map(y=>y.key)}values(){return this[p].toArray().map(y=>y.value)}reset(){this[r]&&this[p]&&this[p].length&&this[p].forEach(y=>this[r](y.key,y.value)),this[l]=new Map,this[p]=new e,this[a]=0}dump(){return this[p].map(y=>d(this,y)?!1:{k:y.key,v:y.value,e:y.now+(y.maxAge||0)}).toArray().filter(y=>y)}dumpLru(){return this[p]}set(y,E,T){if(T=T||this[t],T&&typeof T!="number")throw new TypeError("maxAge must be a number");const R=T?Date.now():0,x=this[i](E,y);if(this[l].has(y)){if(x>this[n])return m(this,this[l].get(y)),!1;const G=this[l].get(y).value;return this[r]&&(this[s]||this[r](y,G.value)),G.now=R,G.maxAge=T,G.value=E,this[a]+=x-G.length,G.length=x,this.get(y),v(this),!0}const j=new c(y,E,x,R,T);return j.length>this[n]?(this[r]&&this[r](y,E),!1):(this[a]+=j.length,this[p].unshift(j),this[l].set(y,this[p].head),v(this),!0)}has(y){if(!this[l].has(y))return!1;const E=this[l].get(y).value;return!d(this,E)}get(y){return w(this,y,!0)}peek(y){return w(this,y,!1)}pop(){const y=this[p].tail;return y?(m(this,y),y.value):null}del(y){m(this,this[l].get(y))}load(y){this.reset();const E=Date.now();for(let T=y.length-1;T>=0;T--){const R=y[T],x=R.e||0;if(x===0)this.set(R.k,R.v);else{const j=x-E;j>0&&this.set(R.k,R.v,j)}}}prune(){this[l].forEach((y,E)=>w(this,E,!1))}}const w=(b,y,E)=>{const T=b[l].get(y);if(T){const R=T.value;if(d(b,R)){if(m(b,T),!b[o])return}else E&&(b[u]&&(T.value.now=Date.now()),b[p].unshiftNode(T));return R.value}},d=(b,y)=>{if(!y||!y.maxAge&&!b[t])return!1;const E=Date.now()-y.now;return y.maxAge?E>y.maxAge:b[t]&&E>b[t]},v=b=>{if(b[a]>b[n])for(let y=b[p].tail;b[a]>b[n]&&y!==null;){const E=y.prev;m(b,y),y=E}},m=(b,y)=>{if(y){const E=y.value;b[r]&&b[r](E.key,E.value),b[a]-=E.length,b[l].delete(E.key),b[p].removeNode(y)}};class c{constructor(y,E,T,R,x){this.key=y,this.value=E,this.length=T,this.now=R,this.maxAge=x||0}}const _=(b,y,E,T)=>{let R=E.value;d(b,R)&&(m(b,E),b[o]||(R=void 0)),R&&y.call(T,R.value,R.key,b)};return Po=h,Po}var ko,Kl;function mt(){if(Kl)return ko;Kl=1;class e{constructor(q,F){if(F=i(F),q instanceof e)return q.loose===!!F.loose&&q.includePrerelease===!!F.includePrerelease?q:new e(q.raw,F);if(q instanceof o)return this.raw=q.value,this.set=[[q]],this.format(),this;if(this.options=F,this.loose=!!F.loose,this.includePrerelease=!!F.includePrerelease,this.raw=q.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(V=>this.parseRange(V)).filter(V=>V.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const V=this.set[0];if(this.set=this.set.filter(L=>!d(L[0])),this.set.length===0)this.set=[V];else if(this.set.length>1){for(const L of this.set)if(L.length===1&&v(L[0])){this.set=[L];break}}}this.format()}format(){return this.range=this.set.map(q=>q.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(q){const V=((this.options.includePrerelease&&h)|(this.options.loose&&w))+":"+q,L=a.get(V);if(L)return L;const A=this.options.loose,D=A?s[p.HYPHENRANGELOOSE]:s[p.HYPHENRANGE];q=q.replace(D,G(this.options.includePrerelease)),t("hyphen replace",q),q=q.replace(s[p.COMPARATORTRIM],l),t("comparator trim",q),q=q.replace(s[p.TILDETRIM],u),q=q.replace(s[p.CARETTRIM],f);let N=q.split(" ").map($=>c($,this.options)).join(" ").split(/\s+/).map($=>W($,this.options));A&&(N=N.filter($=>(t("loose invalid filter",$,this.options),!!$.match(s[p.COMPARATORLOOSE])))),t("range list",N);const H=new Map,Z=N.map($=>new o($,this.options));for(const $ of Z){if(d($))return[$];H.set($.value,$)}H.size>1&&H.has("")&&H.delete("");const B=[...H.values()];return a.set(V,B),B}intersects(q,F){if(!(q instanceof e))throw new TypeError("a Range is required");return this.set.some(V=>m(V,F)&&q.set.some(L=>m(L,F)&&V.every(A=>L.every(D=>A.intersects(D,F)))))}test(q){if(!q)return!1;if(typeof q=="string")try{q=new r(q,this.options)}catch{return!1}for(let F=0;F<this.set.length;F++)if(O(this.set[F],q,this.options))return!0;return!1}}ko=e;const n=E_(),a=new n({max:1e3}),i=qs(),o=An(),t=xn(),r=rt(),{safeRe:s,t:p,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:f}=yr(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:w}=Tn(),d=I=>I.value==="<0.0.0-0",v=I=>I.value==="",m=(I,q)=>{let F=!0;const V=I.slice();let L=V.pop();for(;F&&V.length;)F=V.every(A=>L.intersects(A,q)),L=V.pop();return F},c=(I,q)=>(t("comp",I,q),I=E(I,q),t("caret",I),I=b(I,q),t("tildes",I),I=R(I,q),t("xrange",I),I=j(I,q),t("stars",I),I),_=I=>!I||I.toLowerCase()==="x"||I==="*",b=(I,q)=>I.trim().split(/\s+/).map(F=>y(F,q)).join(" "),y=(I,q)=>{const F=q.loose?s[p.TILDELOOSE]:s[p.TILDE];return I.replace(F,(V,L,A,D,N)=>{t("tilde",I,V,L,A,D,N);let H;return _(L)?H="":_(A)?H=`>=${L}.0.0 <${+L+1}.0.0-0`:_(D)?H=`>=${L}.${A}.0 <${L}.${+A+1}.0-0`:N?(t("replaceTilde pr",N),H=`>=${L}.${A}.${D}-${N} <${L}.${+A+1}.0-0`):H=`>=${L}.${A}.${D} <${L}.${+A+1}.0-0`,t("tilde return",H),H})},E=(I,q)=>I.trim().split(/\s+/).map(F=>T(F,q)).join(" "),T=(I,q)=>{t("caret",I,q);const F=q.loose?s[p.CARETLOOSE]:s[p.CARET],V=q.includePrerelease?"-0":"";return I.replace(F,(L,A,D,N,H)=>{t("caret",I,L,A,D,N,H);let Z;return _(A)?Z="":_(D)?Z=`>=${A}.0.0${V} <${+A+1}.0.0-0`:_(N)?A==="0"?Z=`>=${A}.${D}.0${V} <${A}.${+D+1}.0-0`:Z=`>=${A}.${D}.0${V} <${+A+1}.0.0-0`:H?(t("replaceCaret pr",H),A==="0"?D==="0"?Z=`>=${A}.${D}.${N}-${H} <${A}.${D}.${+N+1}-0`:Z=`>=${A}.${D}.${N}-${H} <${A}.${+D+1}.0-0`:Z=`>=${A}.${D}.${N}-${H} <${+A+1}.0.0-0`):(t("no pr"),A==="0"?D==="0"?Z=`>=${A}.${D}.${N}${V} <${A}.${D}.${+N+1}-0`:Z=`>=${A}.${D}.${N}${V} <${A}.${+D+1}.0-0`:Z=`>=${A}.${D}.${N} <${+A+1}.0.0-0`),t("caret return",Z),Z})},R=(I,q)=>(t("replaceXRanges",I,q),I.split(/\s+/).map(F=>x(F,q)).join(" ")),x=(I,q)=>{I=I.trim();const F=q.loose?s[p.XRANGELOOSE]:s[p.XRANGE];return I.replace(F,(V,L,A,D,N,H)=>{t("xRange",I,V,L,A,D,N,H);const Z=_(A),B=Z||_(D),$=B||_(N),U=$;return L==="="&&U&&(L=""),H=q.includePrerelease?"-0":"",Z?L===">"||L==="<"?V="<0.0.0-0":V="*":L&&U?(B&&(D=0),N=0,L===">"?(L=">=",B?(A=+A+1,D=0,N=0):(D=+D+1,N=0)):L==="<="&&(L="<",B?A=+A+1:D=+D+1),L==="<"&&(H="-0"),V=`${L+A}.${D}.${N}${H}`):B?V=`>=${A}.0.0${H} <${+A+1}.0.0-0`:$&&(V=`>=${A}.${D}.0${H} <${A}.${+D+1}.0-0`),t("xRange return",V),V})},j=(I,q)=>(t("replaceStars",I,q),I.trim().replace(s[p.STAR],"")),W=(I,q)=>(t("replaceGTE0",I,q),I.trim().replace(s[q.includePrerelease?p.GTE0PRE:p.GTE0],"")),G=I=>(q,F,V,L,A,D,N,H,Z,B,$,U,z)=>(_(V)?F="":_(L)?F=`>=${V}.0.0${I?"-0":""}`:_(A)?F=`>=${V}.${L}.0${I?"-0":""}`:D?F=`>=${F}`:F=`>=${F}${I?"-0":""}`,_(Z)?H="":_(B)?H=`<${+Z+1}.0.0-0`:_($)?H=`<${Z}.${+B+1}.0-0`:U?H=`<=${Z}.${B}.${$}-${U}`:I?H=`<${Z}.${B}.${+$+1}-0`:H=`<=${H}`,`${F} ${H}`.trim()),O=(I,q,F)=>{for(let V=0;V<I.length;V++)if(!I[V].test(q))return!1;if(q.prerelease.length&&!F.includePrerelease){for(let V=0;V<I.length;V++)if(t(I[V].semver),I[V].semver!==o.ANY&&I[V].semver.prerelease.length>0){const L=I[V].semver;if(L.major===q.major&&L.minor===q.minor&&L.patch===q.patch)return!0}return!1}return!0};return ko}var Lo,Yl;function An(){if(Yl)return Lo;Yl=1;const e=Symbol("SemVer ANY");class n{static get ANY(){return e}constructor(u,f){if(f=a(f),u instanceof n){if(u.loose===!!f.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),r("comparator",u,f),this.options=f,this.loose=!!f.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(u){const f=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],h=u.match(f);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(r("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return t(u,this.operator,this.semver,this.options)}intersects(u,f){if(!(u instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new p(u.value,f).test(this.value):u.operator===""?u.value===""?!0:new p(this.value,f).test(u.semver):(f=a(f),f.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||t(this.semver,"<",u.semver,f)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||t(this.semver,">",u.semver,f)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Lo=n;const a=qs(),{safeRe:i,t:o}=yr(),t=Jd(),r=xn(),s=rt(),p=mt();return Lo}var qo,Jl;function Cn(){if(Jl)return qo;Jl=1;const e=mt();return qo=(a,i,o)=>{try{i=new e(i,o)}catch{return!1}return i.test(a)},qo}var jo,Xl;function R_(){if(Xl)return jo;Xl=1;const e=mt();return jo=(a,i)=>new e(a,i).set.map(o=>o.map(t=>t.value).join(" ").trim().split(" ")),jo}var Do,Ql;function O_(){if(Ql)return Do;Ql=1;const e=rt(),n=mt();return Do=(i,o,t)=>{let r=null,s=null,p=null;try{p=new n(o,t)}catch{return null}return i.forEach(l=>{p.test(l)&&(!r||s.compare(l)===-1)&&(r=l,s=new e(r,t))}),r},Do}var No,eh;function T_(){if(eh)return No;eh=1;const e=rt(),n=mt();return No=(i,o,t)=>{let r=null,s=null,p=null;try{p=new n(o,t)}catch{return null}return i.forEach(l=>{p.test(l)&&(!r||s.compare(l)===1)&&(r=l,s=new e(r,t))}),r},No}var $o,th;function x_(){if(th)return $o;th=1;const e=rt(),n=mt(),a=In();return $o=(o,t)=>{o=new n(o,t);let r=new e("0.0.0");if(o.test(r)||(r=new e("0.0.0-0"),o.test(r)))return r;r=null;for(let s=0;s<o.set.length;++s){const p=o.set[s];let l=null;p.forEach(u=>{const f=new e(u.semver.version);switch(u.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!l||a(f,l))&&(l=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),l&&(!r||a(r,l))&&(r=l)}return r&&o.test(r)?r:null},$o}var Mo,rh;function I_(){if(rh)return Mo;rh=1;const e=mt();return Mo=(a,i)=>{try{return new e(a,i).range||"*"}catch{return null}},Mo}var Fo,nh;function Ms(){if(nh)return Fo;nh=1;const e=rt(),n=An(),{ANY:a}=n,i=mt(),o=Cn(),t=In(),r=Ds(),s=$s(),p=Ns();return Fo=(u,f,h,w)=>{u=new e(u,w),f=new i(f,w);let d,v,m,c,_;switch(h){case">":d=t,v=s,m=r,c=">",_=">=";break;case"<":d=r,v=p,m=t,c="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(u,f,w))return!1;for(let b=0;b<f.set.length;++b){const y=f.set[b];let E=null,T=null;if(y.forEach(R=>{R.semver===a&&(R=new n(">=0.0.0")),E=E||R,T=T||R,d(R.semver,E.semver,w)?E=R:m(R.semver,T.semver,w)&&(T=R)}),E.operator===c||E.operator===_||(!T.operator||T.operator===c)&&v(u,T.semver))return!1;if(T.operator===_&&m(u,T.semver))return!1}return!0},Fo}var Uo,ih;function A_(){if(ih)return Uo;ih=1;const e=Ms();return Uo=(a,i,o)=>e(a,i,">",o),Uo}var Bo,ah;function C_(){if(ah)return Bo;ah=1;const e=Ms();return Bo=(a,i,o)=>e(a,i,"<",o),Bo}var Vo,oh;function P_(){if(oh)return Vo;oh=1;const e=mt();return Vo=(a,i,o)=>(a=new e(a,o),i=new e(i,o),a.intersects(i,o)),Vo}var zo,sh;function k_(){if(sh)return zo;sh=1;const e=Cn(),n=pt();return zo=(a,i,o)=>{const t=[];let r=null,s=null;const p=a.sort((h,w)=>n(h,w,o));for(const h of p)e(h,i,o)?(s=h,r||(r=h)):(s&&t.push([r,s]),s=null,r=null);r&&t.push([r,null]);const l=[];for(const[h,w]of t)h===w?l.push(h):!w&&h===p[0]?l.push("*"):w?h===p[0]?l.push(`<=${w}`):l.push(`${h} - ${w}`):l.push(`>=${h}`);const u=l.join(" || "),f=typeof i.raw=="string"?i.raw:String(i);return u.length<f.length?u:i},zo}var Go,uh;function L_(){if(uh)return Go;uh=1;const e=mt(),n=An(),{ANY:a}=n,i=Cn(),o=pt(),t=(f,h,w={})=>{if(f===h)return!0;f=new e(f,w),h=new e(h,w);let d=!1;e:for(const v of f.set){for(const m of h.set){const c=p(v,m,w);if(d=d||c!==null,c)continue e}if(d)return!1}return!0},r=[new n(">=0.0.0-0")],s=[new n(">=0.0.0")],p=(f,h,w)=>{if(f===h)return!0;if(f.length===1&&f[0].semver===a){if(h.length===1&&h[0].semver===a)return!0;w.includePrerelease?f=r:f=s}if(h.length===1&&h[0].semver===a){if(w.includePrerelease)return!0;h=s}const d=new Set;let v,m;for(const x of f)x.operator===">"||x.operator===">="?v=l(v,x,w):x.operator==="<"||x.operator==="<="?m=u(m,x,w):d.add(x.semver);if(d.size>1)return null;let c;if(v&&m){if(c=o(v.semver,m.semver,w),c>0)return null;if(c===0&&(v.operator!==">="||m.operator!=="<="))return null}for(const x of d){if(v&&!i(x,String(v),w)||m&&!i(x,String(m),w))return null;for(const j of h)if(!i(x,String(j),w))return!1;return!0}let _,b,y,E,T=m&&!w.includePrerelease&&m.semver.prerelease.length?m.semver:!1,R=v&&!w.includePrerelease&&v.semver.prerelease.length?v.semver:!1;T&&T.prerelease.length===1&&m.operator==="<"&&T.prerelease[0]===0&&(T=!1);for(const x of h){if(E=E||x.operator===">"||x.operator===">=",y=y||x.operator==="<"||x.operator==="<=",v){if(R&&x.semver.prerelease&&x.semver.prerelease.length&&x.semver.major===R.major&&x.semver.minor===R.minor&&x.semver.patch===R.patch&&(R=!1),x.operator===">"||x.operator===">="){if(_=l(v,x,w),_===x&&_!==v)return!1}else if(v.operator===">="&&!i(v.semver,String(x),w))return!1}if(m){if(T&&x.semver.prerelease&&x.semver.prerelease.length&&x.semver.major===T.major&&x.semver.minor===T.minor&&x.semver.patch===T.patch&&(T=!1),x.operator==="<"||x.operator==="<="){if(b=u(m,x,w),b===x&&b!==m)return!1}else if(m.operator==="<="&&!i(m.semver,String(x),w))return!1}if(!x.operator&&(m||v)&&c!==0)return!1}return!(v&&y&&!m&&c!==0||m&&E&&!v&&c!==0||R||T)},l=(f,h,w)=>{if(!f)return h;const d=o(f.semver,h.semver,w);return d>0?f:d<0||h.operator===">"&&f.operator===">="?h:f},u=(f,h,w)=>{if(!f)return h;const d=o(f.semver,h.semver,w);return d<0?f:d>0||h.operator==="<"&&f.operator==="<="?h:f};return Go=t,Go}var Ho,ch;function Fs(){if(ch)return Ho;ch=1;const e=yr(),n=Tn(),a=rt(),i=Wd(),o=Xt(),t=u_(),r=c_(),s=f_(),p=l_(),l=h_(),u=d_(),f=p_(),h=m_(),w=pt(),d=g_(),v=v_(),m=js(),c=y_(),_=__(),b=In(),y=Ds(),E=Kd(),T=Yd(),R=Ns(),x=$s(),j=Jd(),W=b_(),G=An(),O=mt(),I=Cn(),q=R_(),F=O_(),V=T_(),L=x_(),A=I_(),D=Ms(),N=A_(),H=C_(),Z=P_(),B=k_(),$=L_();return Ho={parse:o,valid:t,clean:r,inc:s,diff:p,major:l,minor:u,patch:f,prerelease:h,compare:w,rcompare:d,compareLoose:v,compareBuild:m,sort:c,rsort:_,gt:b,lt:y,eq:E,neq:T,gte:R,lte:x,cmp:j,coerce:W,Comparator:G,Range:O,satisfies:I,toComparators:q,maxSatisfying:F,minSatisfying:V,minVersion:L,validRange:A,outside:D,gtr:N,ltr:H,intersects:Z,simplifyRange:B,subset:$,SemVer:a,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},Ho}var Zo,fh;function q_(){return fh||(fh=1,Zo=Fs().satisfies(Re.version,">=15.7.0")),Zo}var Wo,lh;function j_(){return lh||(lh=1,Wo=Fs().satisfies(Re.version,">=16.9.0")),Wo}var Ko,hh;function Xd(){if(hh)return Ko;hh=1;const e=q_(),n=j_(),a={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return Ko=function(o,t){if(!o||!t)return;const r=t.asymmetricKeyType;if(!r)return;const s=a[r];if(!s)throw new Error(`Unknown key type "${r}".`);if(!s.includes(o))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(e)switch(r){case"ec":const p=t.asymmetricKeyDetails.namedCurve,l=i[o];if(p!==l)throw new Error(`"alg" parameter "${o}" requires curve "${l}".`);break;case"rsa-pss":if(n){const u=parseInt(o.slice(-3),10),{hashAlgorithm:f,mgf1HashAlgorithm:h,saltLength:w}=t.asymmetricKeyDetails;if(f!==`sha${u}`||h!==f)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${o}.`);if(w!==void 0&&w>u>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${o}.`)}break}},Ko}var Yo,dh;function Qd(){if(dh)return Yo;dh=1;var e=Fs();return Yo=e.satisfies(Re.version,"^6.12.0 || >=8.0.0"),Yo}var Jo,ph;function D_(){if(ph)return Jo;ph=1;const e=On(),n=Ud(),a=Bd(),i=Hd(),o=Zd(),t=Xd(),r=Qd(),s=Ls(),{KeyObject:p,createSecretKey:l,createPublicKey:u}=Yt(),f=["RS256","RS384","RS512"],h=["ES256","ES384","ES512"],w=["RS256","RS384","RS512"],d=["HS256","HS384","HS512"];return r&&(f.splice(f.length,0,"PS256","PS384","PS512"),w.splice(w.length,0,"PS256","PS384","PS512")),Jo=function(v,m,c,_){typeof c=="function"&&!_&&(_=c,c={}),c||(c={}),c=Object.assign({},c);let b;if(_?b=_:b=function(j,W){if(j)throw j;return W},c.clockTimestamp&&typeof c.clockTimestamp!="number")return b(new e("clockTimestamp must be a number"));if(c.nonce!==void 0&&(typeof c.nonce!="string"||c.nonce.trim()===""))return b(new e("nonce must be a non-empty string"));if(c.allowInvalidAsymmetricKeyTypes!==void 0&&typeof c.allowInvalidAsymmetricKeyTypes!="boolean")return b(new e("allowInvalidAsymmetricKeyTypes must be a boolean"));const y=c.clockTimestamp||Math.floor(Date.now()/1e3);if(!v)return b(new e("jwt must be provided"));if(typeof v!="string")return b(new e("jwt must be a string"));const E=v.split(".");if(E.length!==3)return b(new e("jwt malformed"));let T;try{T=i(v,{complete:!0})}catch(j){return b(j)}if(!T)return b(new e("invalid token"));const R=T.header;let x;if(typeof m=="function"){if(!_)return b(new e("verify must be called asynchronous if secret or public key is provided as a callback"));x=m}else x=function(j,W){return W(null,m)};return x(R,function(j,W){if(j)return b(new e("error in secret or public key callback: "+j.message));const G=E[2].trim()!=="";if(!G&&W)return b(new e("jwt signature is required"));if(G&&!W)return b(new e("secret or public key must be provided"));if(!G&&!c.algorithms)return b(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof p))try{W=u(W)}catch{try{W=l(typeof W=="string"?Ve.from(W):W)}catch{return b(new e("secretOrPublicKey is not valid key material"))}}if(c.algorithms||(W.type==="secret"?c.algorithms=d:["rsa","rsa-pss"].includes(W.asymmetricKeyType)?c.algorithms=w:W.asymmetricKeyType==="ec"?c.algorithms=h:c.algorithms=f),c.algorithms.indexOf(T.header.alg)===-1)return b(new e("invalid algorithm"));if(R.alg.startsWith("HS")&&W.type!=="secret")return b(new e(`secretOrPublicKey must be a symmetric key when using ${R.alg}`));if(/^(?:RS|PS|ES)/.test(R.alg)&&W.type!=="public")return b(new e(`secretOrPublicKey must be an asymmetric key when using ${R.alg}`));if(!c.allowInvalidAsymmetricKeyTypes)try{t(R.alg,W)}catch(q){return b(q)}let O;try{O=s.verify(v,T.header.alg,W)}catch(q){return b(q)}if(!O)return b(new e("invalid signature"));const I=T.payload;if(typeof I.nbf<"u"&&!c.ignoreNotBefore){if(typeof I.nbf!="number")return b(new e("invalid nbf value"));if(I.nbf>y+(c.clockTolerance||0))return b(new n("jwt not active",new Date(I.nbf*1e3)))}if(typeof I.exp<"u"&&!c.ignoreExpiration){if(typeof I.exp!="number")return b(new e("invalid exp value"));if(y>=I.exp+(c.clockTolerance||0))return b(new a("jwt expired",new Date(I.exp*1e3)))}if(c.audience){const q=Array.isArray(c.audience)?c.audience:[c.audience];if(!(Array.isArray(I.aud)?I.aud:[I.aud]).some(function(L){return q.some(function(A){return A instanceof RegExp?A.test(L):A===L})}))return b(new e("jwt audience invalid. expected: "+q.join(" or ")))}if(c.issuer&&(typeof c.issuer=="string"&&I.iss!==c.issuer||Array.isArray(c.issuer)&&c.issuer.indexOf(I.iss)===-1))return b(new e("jwt issuer invalid. expected: "+c.issuer));if(c.subject&&I.sub!==c.subject)return b(new e("jwt subject invalid. expected: "+c.subject));if(c.jwtid&&I.jti!==c.jwtid)return b(new e("jwt jwtid invalid. expected: "+c.jwtid));if(c.nonce&&I.nonce!==c.nonce)return b(new e("jwt nonce invalid. expected: "+c.nonce));if(c.maxAge){if(typeof I.iat!="number")return b(new e("iat required when maxAge is specified"));const q=o(c.maxAge,I.iat);if(typeof q>"u")return b(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(y>=q+(c.clockTolerance||0))return b(new a("maxAge exceeded",new Date(q*1e3)))}if(c.complete===!0){const q=T.signature;return b(null,{header:R,payload:I,signature:q})}return b(null,I)})},Jo}var Xo,mh;function N_(){if(mh)return Xo;mh=1;const e=Zd(),n=Qd(),a=Xd(),i=Ls(),{includes:o,isBoolean:t,isInteger:r,isNumber:s,isPlainObject:p,isString:l,once:u}=ng(),{KeyObject:f,createSecretKey:h,createPrivateKey:w}=Yt(),d=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];n&&d.splice(3,0,"PS256","PS384","PS512");const v={expiresIn:{isValid:function(T){return r(T)||l(T)&&T},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(T){return r(T)||l(T)&&T},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(T){return l(T)||Array.isArray(T)},message:'"audience" must be a string or array'},algorithm:{isValid:o.bind(null,d),message:'"algorithm" must be a valid string enum value'},header:{isValid:p,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 c(T,R,x,j){if(!p(x))throw new Error('Expected "'+j+'" to be a plain object.');Object.keys(x).forEach(function(W){const G=T[W];if(!G){if(!R)throw new Error('"'+W+'" is not allowed in "'+j+'"');return}if(!G.isValid(x[W]))throw new Error(G.message)})}function _(T){return c(v,!1,T,"options")}function b(T){return c(m,!0,T,"payload")}const y={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},E=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return Xo=function(T,R,x,j){typeof x=="function"?(j=x,x={}):x=x||{};const W=typeof T=="object"&&!Ve.isBuffer(T),G=Object.assign({alg:x.algorithm||"HS256",typ:W?"JWT":void 0,kid:x.keyid},x.header);function O(F){if(j)return j(F);throw F}if(!R&&x.algorithm!=="none")return O(new Error("secretOrPrivateKey must have a value"));if(R!=null&&!(R instanceof f))try{R=w(R)}catch{try{R=h(typeof R=="string"?Ve.from(R):R)}catch{return O(new Error("secretOrPrivateKey is not valid key material"))}}if(G.alg.startsWith("HS")&&R.type!=="secret")return O(new Error(`secretOrPrivateKey must be a symmetric key when using ${G.alg}`));if(/^(?:RS|PS|ES)/.test(G.alg)){if(R.type!=="private")return O(new Error(`secretOrPrivateKey must be an asymmetric key when using ${G.alg}`));if(!x.allowInsecureKeySizes&&!G.alg.startsWith("ES")&&R.asymmetricKeyDetails!==void 0&&R.asymmetricKeyDetails.modulusLength<2048)return O(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${G.alg}`))}if(typeof T>"u")return O(new Error("payload is required"));if(W){try{b(T)}catch(F){return O(F)}x.mutatePayload||(T=Object.assign({},T))}else{const F=E.filter(function(V){return typeof x[V]<"u"});if(F.length>0)return O(new Error("invalid "+F.join(",")+" option for "+typeof T+" payload"))}if(typeof T.exp<"u"&&typeof x.expiresIn<"u")return O(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof T.nbf<"u"&&typeof x.notBefore<"u")return O(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{_(x)}catch(F){return O(F)}if(!x.allowInvalidAsymmetricKeyTypes)try{a(G.alg,R)}catch(F){return O(F)}const I=T.iat||Math.floor(Date.now()/1e3);if(x.noTimestamp?delete T.iat:W&&(T.iat=I),typeof x.notBefore<"u"){try{T.nbf=e(x.notBefore,I)}catch(F){return O(F)}if(typeof T.nbf>"u")return O(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof x.expiresIn<"u"&&typeof T=="object"){try{T.exp=e(x.expiresIn,I)}catch(F){return O(F)}if(typeof T.exp>"u")return O(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(y).forEach(function(F){const V=y[F];if(typeof x[F]<"u"){if(typeof T[V]<"u")return O(new Error('Bad "options.'+F+'" option. The payload already has an "'+V+'" property.'));T[V]=x[F]}});const q=x.encoding||"utf8";if(typeof j=="function")j=j&&u(j),i.createSign({header:G,privateKey:R,payload:T,encoding:q}).once("error",j).once("done",function(F){if(!x.allowInsecureKeySizes&&/^(?:RS|PS)/.test(G.alg)&&F.length<256)return j(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${G.alg}`));j(null,F)});else{let F=i.sign({header:G,payload:T,secret:R,encoding:q});if(!x.allowInsecureKeySizes&&/^(?:RS|PS)/.test(G.alg)&&F.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${G.alg}`);return F}},Xo}var gh;function $_(){return gh||(gh=1,function(e){e.exports={verify:D_(),sign:N_(),JsonWebTokenError:On(),NotBeforeError:Ud(),TokenExpiredError:Bd()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:Hd()})}(Fa)),Fa.exports}var Qo,vh;function M_(){if(vh)return Qo;vh=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(a){this.response=a||"",this.body=a&&a.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=a&&a.headers&&a.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(a){return this.getContentType().indexOf(a)>-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",Qo=e,Qo}const F_="0.0.4",U_={version:F_};var es,yh;function B_(){if(yh)return es;yh=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(a){return this.access_token=a.access_token,this.refresh_token=a.refresh_token,this.token_type=a.token_type,this.expires_in=a.expires_in,this.x_refresh_token_expires_in=a.x_refresh_token_expires_in,this.id_token=a.id_token||"",this.createdAt=a.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(a){return this.createdAt+a*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)},es=e,es}var ts,_h;function V_(){if(_h)return ts;_h=1,ts=e;function e(o,t){var r=Ve.from(o,"base64"),s=Ve.from(t,"base64"),p=r.toString("hex"),l=s.toString("hex");p=n(p),l=n(l);var u=p.length/2,f=l.length/2,h=i(u),w=i(f),d="30"+i(u+f+h.length/2+w.length/2+2)+"02"+h+p+"02"+w+l,v=Ve.from(d,"hex").toString("base64"),m=`-----BEGIN RSA PUBLIC KEY-----
|
|
146
|
+
`+v.match(/.{1,64}/g).join(`
|
|
147
|
+
`)+`
|
|
148
|
+
-----END RSA PUBLIC KEY-----
|
|
149
|
+
`;return m}function n(o){var t=o[0];return t<"0"||t>"7"?"00"+o:o}function a(o){var t=o.toString(16);return t.length%2?"0"+t:t}function i(o){if(o<=127)return a(o);var t=a(o),r=128+t.length/2;return a(r)+t}return ts}var rs,bh;function z_(){if(bh)return rs;bh=1;const e=Gg(),n=ov(),a=lv(),i=gv(),o=Mt(),t=r_(),r=wd(),s=xs(),p=$_(),l=M_(),u=U_,f=B_();function h(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 d="./logs";s.existsSync(d)||s.mkdirSync(d),this.logger=t.createLogger({level:"info",format:t.format.combine(t.format.timestamp(),t.format.printf(v=>`${v.timestamp} ${v.level}: ${v.message}`)),transports:[new t.transports.File({filename:r.join(d,"oAuthClient-log.log")})]})}}return h.cacheId="cacheID",h.authorizeEndpoint="https://appcenter.intuit.com/connect/oauth2",h.tokenEndpoint="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer",h.revokeEndpoint="https://developer.api.intuit.com/v2/oauth2/tokens/revoke",h.userinfo_endpoint_production="https://accounts.platform.intuit.com/v1/openid_connect/userinfo",h.userinfo_endpoint_sandbox="https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo",h.migrate_sandbox="https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate",h.migrate_production="https://developer.api.intuit.com/v2/oauth2/tokens/migrate",h.environment={sandbox:"https://sandbox-quickbooks.api.intuit.com/",production:"https://quickbooks.api.intuit.com/"},h.jwks_uri="https://oauth.platform.intuit.com/op/v1/jwks",h.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"},h.user_agent=`Intuit-OAuthClient-JS_${u.version}_${o.type()}_${o.release()}_${o.platform()}`,h.prototype.setAuthorizeURLs=function(d){if(!d)throw new Error("Provide the custom authorize URL's");return h.authorizeEndpoint=d.authorizeEndpoint,h.tokenEndpoint=d.tokenEndpoint,h.revokeEndpoint=d.revokeEndpoint,this.environment==="sandbox"?h.userinfo_endpoint_sandbox=d.userInfoEndpoint:h.userinfo_endpoint_production=d.userInfoEndpoint,this},h.prototype.authorizeUri=function(d){if(d=d||{},!d.scope)throw new Error("Provide the scopes");const v=`${h.authorizeEndpoint}?${a.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(d.scope)?d.scope.join(" "):d.scope,state:d.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",v),v},h.prototype.createToken=function(d){return new Promise(v=>{if(!d)throw new Error("Provide the Uri");const m=a.parse(d.split("?").reverse()[0]);this.getToken().realmId=m.realmId?m.realmId:"","state"in m&&(this.getToken().state=m.state);const c={};m.code&&(c.grant_type="authorization_code",c.code=m.code,c.redirect_uri=m.redirectUri||this.redirectUri);const _={url:h.tokenEndpoint,body:c,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":h.user_agent}};v(this.getTokenRequest(_))}).then(v=>{const m=v.json?v:null,c=m&&m.getJson()||v;return this.token.setToken(c),this.log("info","Create Token response is : ",JSON.stringify(m,null,2)),m}).catch(v=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(v,null,2)),v})},h.prototype.refresh=function(){return new Promise(d=>{this.validateToken();const v={};v.grant_type="refresh_token",v.refresh_token=this.getToken().refresh_token;const m={url:h.tokenEndpoint,body:v,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":h.user_agent}};d(this.getTokenRequest(m))}).then(d=>{const v=d.json?d:null,m=v&&v.getJson()||d;return this.token.setToken(m),this.log("info","Refresh Token () response is : ",JSON.stringify(v,null,2)),v}).catch(d=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(d,null,2)),d})},h.prototype.refreshUsingToken=function(d){return new Promise(v=>{if(!d)throw new Error("The Refresh token is missing");const m={};m.grant_type="refresh_token",m.refresh_token=d;const c={url:h.tokenEndpoint,body:m,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":h.user_agent}};v(this.getTokenRequest(c))}).then(v=>{const m=v.json?v:null,c=m&&m.getJson()||v;return this.token.setToken(c),this.log("info","Refresh usingToken () response is : ",JSON.stringify(m,null,2)),m}).catch(v=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(v,null,2)),v})},h.prototype.revoke=function(d){return new Promise(v=>{d=d||{};const m={};m.token=d.access_token||d.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const c={url:h.revokeEndpoint,body:m,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:l._jsonContentType,"Content-Type":l._jsonContentType,"User-Agent":h.user_agent}};v(this.getTokenRequest(c))}).then(v=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(v,null,2)),v)).catch(v=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(v,null,2)),v})},h.prototype.getUserInfo=function(){return new Promise(d=>{const v={url:this.environment==="sandbox"?h.userinfo_endpoint_sandbox:h.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:l._jsonContentType,"User-Agent":h.user_agent}};d(this.getTokenRequest(v))}).then(d=>{const v=d.json?d:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(v,null,2)),v}).catch(d=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(d,null,2)),d})},h.prototype.makeApiCall=function(d){return new Promise(v=>{d=d||{};const m=d.transport?d.transport:i.createTransport({type:"text"}),c=d.headers&&typeof d.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":h.user_agent},d.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":h.user_agent}),_={url:d.url,method:d.method||"GET",headers:c,transport:m};d.body&&(_.body=d.body),v(this.getTokenRequest(_))}).then(v=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(v,null,2)),v)).catch(v=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(v,null,2)),v})},h.prototype.validateIdToken=function(d={}){return new Promise(v=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const m=this.getToken().id_token||d.id_token,c=m.split("."),_=JSON.parse(e(c[0])),b=JSON.parse(e(c[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 y={url:h.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":h.user_agent}};return v(this.getKeyFromJWKsURI(m,_.kid,y))}).then(v=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(v,null,2)),!!v)).catch(v=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(v,null,2)),v})},h.prototype.getValidatedIdToken=function(d={}){return new Promise(v=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const m=this.getToken().id_token||d.id_token,c=m.split("."),_=JSON.parse(e(c[0])),b=JSON.parse(e(c[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 y={url:h.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":h.user_agent}};return v(this.getKeyFromJWKsURI(m,_.kid,y))}).then(v=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(v,null,2)),v)).catch(v=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(v,null,2)),v})},h.prototype.getIdTokenComponents=async function(w={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const v=(this.getToken().id_token||w.id_token).split("."),m=JSON.parse(e(v[0])),c=JSON.parse(e(v[1]));if(c.iss!=="https://oauth.platform.intuit.com/op/v1")throw new Error('The issuer is not as mentioned in "issuer"');if(!c.aud.find(_=>_===this.clientId))throw new Error("The aud field in idToken does not contain application's clientId");if(c.exp<Date.now()/1e3)throw new Error("The timestamp has elapsed");return{id_token_header:m,id_token_payload:c}},h.prototype.getKeyFromJWKsURI=function(d,v,m){return new Promise(c=>{c(this.loadResponse(m))}).then(c=>{if(Number(c.status)!==200)throw new Error("Could not reach JWK endpoint");const b=JSON.parse(c.body).keys.find(E=>E.kid===v),y=this.getPublicKey(b.n,b.e);return p.verify(d,y)}).catch(c=>{throw c=this.createError(c),this.log("error","The getKeyFromJWKsURI () threw an exception : ",JSON.stringify(c,null,2)),c})},h.prototype.getPublicKey=function(d,v){return V_()(d,v)},h.prototype.getTokenRequest=function(d){const v=new l({token:this.token});return new Promise(m=>{m(this.loadResponse(d))}).then(m=>{if(v.processResponse(m),!v.valid())throw new Error("Response has an Error");return v}).catch(m=>{throw m.authResponse||(m=this.createError(m,v)),m})},h.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.")},h.prototype.loadResponse=function(d){return i.get(d).then(v=>v)},h.prototype.loadResponseFromJWKsURI=function(d){return i.get(d).then(v=>v)},h.prototype.createError=function(d,v){return!v||v.body===""?(d.error=v&&v.response.statusText||d.message||"",d.authResponse=v||"",d.intuit_tid=v&&v.headers()&&v.headers().intuit_tid||"",d.originalMessage=d.message||"",d.error_description=v&&v.response.statusText||"",d):(d.authResponse=v,d.originalMessage=d.message,d.error="","error"in v.getJson()?d.error=v.getJson().error:v.response.statusText?d.error=v.response.statusText:d.message&&(d.error=d.message),d.error_description="","error_description"in v.getJson()?d.error_description=v.getJson().error_description:v.response.statusText&&(d.error_description=v.response.statusText),d.intuit_tid=v.headers().intuit_tid,d)},h.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},h.prototype.getToken=function(){return this.token},h.prototype.setToken=function(d){return this.token=new f(d),this.token},h.prototype.authHeader=function(){const d=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(d):Ve.from(d).toString("base64")},h.prototype.log=function(d,v,m){this.logging&&this.logger.log(d,v+m)},rs=h,rs}var G_=z_();const yt=Vm(G_),an=(()=>{let e,n,a="";return{initiatedCompanyID:a,init:(t,r)=>{n=new yt({clientId:pn.quickbooksKey,clientSecret:"",environment:qh,redirectUri:window.location.origin+t}),e=n.authorizeUri({state:r,scope:[yt.scopes.Accounting,yt.scopes.OpenId,yt.scopes.Email,yt.scopes.Profile]}),a=r},handleClick:()=>{window.open(e,"_self","noopener")}}})();function Us(e){const a=ps(e,!0).query,i=a.code,o=a.realmId,t=a.state,r=i!=null?decodeURIComponent(i):"",s=o!=null?decodeURIComponent(o):"",p=t!=null?decodeURIComponent(t):"";return{code:r,realmId:s,state:p}}const H_=(e,n,a,i,o)=>e!==""&&n!==""&&a!==""&&i!==null&&i!==""&&o!==null&&o!=="",Z_=({code:e,realmId:n,state:a,connectionId:i,signedInuserId:o,tenantId:t,companyId:r,onboardingViewFetchState:s,saveConnectionFetchState:p})=>H_(e,n,a,i,o)===!0&&p!=="In-Progress"&&s==="Completed"&&t!=null&&r!=null,W_=()=>{const e=ys(),{code:n,realmId:a,state:i}=Us(e.search),o=et.getSignedInUser()?.userId??"",t=i==="create-qbo-subscription";if(K_(n,a,i,o))if(t){const r=`/onboarding/${i}?code=${n}&realmId=${a}&state=${i}`;return J.jsx(sr,{to:r})}else{const r=`/onboarding/edit/${i}?code=${n}&realmId=${a}&state=auth_flow`;return J.jsx(sr,{to:r})}return J.jsx(sr,{to:"../../"})},K_=(e,n,a,i)=>e!==""&&n!==""&&a!==""&&i!==null&&i!=="",Y_=st.div`
|
|
150
|
+
display: flex;
|
|
151
|
+
height: 100vh;
|
|
152
|
+
width: 100%;
|
|
153
|
+
flex: 1 1 auto;
|
|
154
|
+
flex-direction: column;
|
|
155
|
+
align-items: center;
|
|
156
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
157
|
+
box-shadow: ${e=>`0px 2px 4px ${e.theme.colors.dropShadowNormal}`};
|
|
158
|
+
`;function J_(e,n){const{address:a,showNavbarWithClose:i,sectionStyles:o,navbarStyles:t}=n;return{showNavbarWithClose:i,addressToEdit:a?.addressToCreate,loadingState:a?.status.fetchState,googleAPIKey:pn.googleMapsAPIKey,sectionStyles:o,navbarStyles:t}}function X_(e,n){return{onSubmitHandler:a=>{const i=tb(a);e(Np({addressType:"company_address",addressToCreate:i})),n.closeDrawerHandler?.()},onCancel:()=>{n.closeDrawerHandler?.()}}}const Q_=Ke(J_,X_)(Dp);function eb({closeDrawerHandler:e}){const n=Zt(),a=Ye(),i=ys(),{addressType:o}=dt(),t=dn(),r=et.getSignedInUser(),s=Ae(l=>jp("company_address",l));if(r==null)throw Error("Can't access address page without signing in...");const p=l=>l.trackPageLoaded(s?.newAddressId!=null?os.Event.editAddress:os.Event.addAddress);return o!=null&&!o.match(/(company_address)$/g)?J.jsx(Es,{}):J.jsxs(J.Fragment,{children:[J.jsx(jh,{analytics:We,onLoad:p}),J.jsx(Y_,{windowSize:t,children:J.jsx(Q_,{location:i,navigate:a,address:s,closeDrawerHandler:e,showNavbarWithClose:!0,navbarStyles:{backgroundColor:n.colors.grey5},sectionStyles:{backgroundColor:n.colors.grey5}})})]})}const tb=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}),rb={drawerLeftMargin:new ht(0,0,240)},nb=({isAddressDrawerOpen:e,closeDrawerHandler:n})=>{const a=Zt(),i=dn(),o=rb.drawerLeftMargin.valuePx(i),t=()=>{n?.()};return J.jsx(yn,{anchor:"right",open:e,PaperProps:{style:{width:`calc(100% - ${o})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClick:()=>t(),children:J.jsx(ib,{onClick:r=>r.stopPropagation(),children:J.jsx(eb,{closeDrawerHandler:n})})})},ib=st(Kt)`
|
|
159
|
+
display: flex;
|
|
160
|
+
min-height: 100%;
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
`,ab=st.div`
|
|
163
|
+
display: flex;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: calc(100vh - 110px);
|
|
166
|
+
flex-direction: row;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
align-items: center;
|
|
169
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
170
|
+
`,ob=({companyId:e,isOnboardingCustomerDrawerOpen:n,closeDrawerHandler:a})=>{const i=Ye(),o=Zt(),t=tt(),[r,s]=we.useState(!1),[p,l]=we.useState(!1),[u,f]=we.useState(!1),[h,w]=we.useState(!1),d=hr.getLocalizedStrings(),{code:v,realmId:m,state:c}=Us(location.search),_={onOkClick:()=>{s(!1),D()},onCancelClick:()=>{s(!1)}},b=Ae(U=>$p(U)),{newOnboardedCustomerId:y}=b,E=b.companyView?.company.companyInfo.tenantId,T=b.newOnboardingCustomerLocalData.selectedProducts??[],R=T.includes("zeni_checking")&&!T.includes("bookkeeping"),x=Ae(U=>Dh(U)),j=Ae(U=>Mp(U)),W=Ae(U=>U.userState),G=b.companyView?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,O=b.externalConnections?.accounting[0],I=O?.connectionType,q=O?.connectionName,F=O?.connectionId??"",V=b.customerLocalStoreInitState!=="Completed"||b.onboardingCompletedCompanies.fetchState!=="Completed"||j.fetchState==="In-Progress",L=et.getSignedInUser();if(L==null)throw Error("Can't access onboarding customer page without signing in...");const A=we.useCallback(()=>{w(!0),t(Hs(!1,!0))},[]),D=()=>{t(Ot({selectedStep:""})),t(Ln()),a()},N=U=>{t(Hs(U)),t(Ot({selectedStep:""}))},H=U=>{U!=null&&i(U==="management"?"../../management":"../")},Z=U=>{t(Hp(U))},B=U=>{const z=sb(U,b);t(Gp(z)),l(!0)},$=()=>{document.cookie="pre_board_questionnaire_id= ;path=/;",window.open("/pre-onboard")};return we.useEffect(()=>{x.fetchState==="Completed"&&t(Fp(e))},[e,x.fetchState,W.userByUserId]),we.useEffect(()=>{E!=null&&G!==!0&&!R&&t(Up(L.userId,E))},[E,G]),we.useEffect(()=>{e!=null&&an.initiatedCompanyID!==e&&G!==!0&&an.init("/cockpit/onboarding/auth",e)},[e]),we.useEffect(()=>{b.sendInviteFetchState.fetchState==="Completed"&&(t(Ln()),a())},[b.sendInviteFetchState.fetchState]),we.useEffect(()=>{b.customerLocalStoreInitState==="Error"&&i("../../onboarding")},[b.customerLocalStoreInitState]),we.useEffect(()=>{Z_({code:v,realmId:m,state:c,connectionId:F,signedInuserId:L.userId,tenantId:E,companyId:e,onboardingViewFetchState:x.fetchState,saveConnectionFetchState:b.externalConnections?.saveConnectionState})&&E!=null&&(t(Bp(E,{connection_type:I??"accounting",connection_name:q??"quickbooks_online",authorization_code:v,realm_id:m,connection_id:F,user_id:L.userId},ps(window.location.origin+"/cockpit/onboarding/auth"),e,L.userId)),i(`/onboarding/edit/${e}`))},[I,q,v,m,c,F,L.userId,b.externalConnections?.saveConnectionState,location.pathname,x.fetchState,E,e]),we.useEffect(()=>{b.fetchState==="Completed"&&(h===!0?e==null&&y!=null?i(`../../onboarding/edit/${y}`):e!=null&&y==null&&an.handleClick():(t(Ln()),a()))},[b.fetchState,e,h]),we.useEffect(()=>{b.externalConnections?.fetchState==="Completed"&&h===!0&&y!=null&&an.handleClick()},[b.externalConnections?.fetchState,h,y]),J.jsx(yn,{anchor:"right",open:n,PaperProps:{style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.8,cursor:"pointer"}}},onClose:()=>{p===!0?s(!0):D()},children:J.jsxs(ub,{children:[r===!0?J.jsx(Vp,{titleComponent:J.jsx(cb,{children:d.cockpit.onboarding.discardTitle}),descriptionComponent:J.jsx(fb,{children:d.cockpit.onboarding.discardDescription}),primaryButtonText:d.cockpit.onboarding.delete,secondaryButtonText:d.cockpit.onboarding.cancel,action:_}):null,V?J.jsx(ab,{children:J.jsx(mn,{size:"Large",start:!0})}):J.jsxs(J.Fragment,{children:[J.jsx(zp,{localData:b,analytics:We,onCloseClick:D,onCompanyDomainBlurred:Z,onSaveClick:N,onViewClick:H,onOnboardingCustomerDataUpdated:B,onNavigateToPreOnboarding:$,screenType:e!=null?"edit":"create",onQBOConnectClick:A,qboConnectClicked:h}),u===!0?J.jsx(nb,{isAddressDrawerOpen:u,closeDrawerHandler:()=>{f(!1)}}):null]})]})})},sb=(e,n)=>{const a={},{companySection:i,customerSection:o,groupSection:t,qboConnectionSection:r}=e,{newOnboardingCustomerLocalData:s}=n;return s.companyId==null&&(a.companyEmailDomain=i.companyDomain),s.isEmailGroupCreated!==!0&&(a.groupId=t.groupEmail,a.groupName=t.groupName,a.groupDescription=t.groupDescription),a.email=o.email,a.customerName={firstName:o.customerName.firstName,lastName:o.customerName.lastName},a.name=o.name,a.chargebeeId=o.chargebeeId,a.qboRealmId=o.realmId,a.hubSpotId=o.hubSpotId,a.selectedProducts=o.products.selectedOptions.map(p=>Zp(p)).filter(p=>p!=null),o.entityType.selectedOption!=null?o.entityType.selectedOption?.value==="Subsidiary"?(a.isSubsidiary=!0,o.company.selectedOption!=null&&(a.parentCompanyId=o.company.selectedOption.value)):a.isSubsidiary=!1:a.isSubsidiary=void 0,r.accountingConnectionCreationMode!=null&&(a.accountingConnectionCreationMode=r.accountingConnectionCreationMode),a},ub=st(Kt)`
|
|
171
|
+
display: flex;
|
|
172
|
+
min-height: 100%;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
`,cb=st(Nh.H6Regular)`
|
|
175
|
+
margin-top: ${qt.sp7};
|
|
176
|
+
padding-left: ${qt.sp8};
|
|
177
|
+
padding-right: ${qt.sp8};
|
|
178
|
+
color: ${e=>e.theme.colors.primary};
|
|
179
|
+
word-break: break-word;
|
|
180
|
+
`,fb=st(Nh.StandardRegularSp)`
|
|
181
|
+
color: ${e=>e.theme.colors.hero};
|
|
182
|
+
padding-left: ${qt.sp8};
|
|
183
|
+
padding-right: ${qt.sp8};
|
|
184
|
+
margin-bottom: 30px;
|
|
185
|
+
margin-top: ${qt.sp4};
|
|
186
|
+
white-space: pre-line;
|
|
187
|
+
`,wh=(()=>{let e="",n;return{init:(o,t="create-qbo-subscription")=>{n=new yt({clientId:pn.quickbooksKey,clientSecret:"",environment:qh,redirectUri:`${window.location.origin}${o}`}),e=n.authorizeUri({state:t,scope:[yt.scopes.Accounting,yt.scopes.OpenId,yt.scopes.Email,yt.scopes.Profile]})},handleClick:()=>{window.open(e,"_self","noopener")}}})(),lb=(e,n,a,i)=>e!==""&&n!==""&&a!==""&&i!=null&&i!=="",hb=({code:e,realmId:n,state:a,signedInuserId:i})=>lb(e,n,a,i)===!0;function db(e,n){return{headerActions:{onTabChange:a=>{const i=$t(a),o=Wt(a);We.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Ot({filterText:i}))}}},onboardingPageActions:{onOnboardingStepClicked:(a,i)=>{e(Ot({selectedStep:i})),n.navigate(`../edit/${a}`)},onCancelClicked:()=>{e(Ot({showGoLivePopUp:!1}))},onGoLiveClicked:a=>{e(rm(a.companyId,a))},onUpdateCustomerCreationStatus:()=>{e(tm())},onSendInviteClick:a=>{e(em(a))},onColumnSortConfigChanged:(a,i)=>{e(Ot({sortKey:a,sortOrder:i}))},redirectToDashboardOnboarding:a=>{window.open(`/${a}/onboarding`)},onRetryBankAccountConnection:a=>{e(Qp({companyId:a}))},onFilterTextChanged:(a,i)=>{e(Ot({filterText:i}))},onCockpitReloadData:a=>{a==="onboarding"&&(e($h()),e(Mh()))},onQBOConnectClick:()=>{wh.init("/cockpit/onboarding/auth","create-qbo-subscription"),wh.handleClick()},onScroll:a=>{}}}}function pb(e,n){return{headerData:{selectedTabOption:It("onboarding")},onboardingPageData:{onboardingView:n.onboardingView,loggedInUser:n.signedInUser,qboConnectionPoolFlag:n.qboConnectionPoolFlag}}}const mb=Ke(pb,db)(Xp);function on({isOnboardingCustomerDrawerOpen:e}){const n=Ye(),a=tt(),{onboardingCustomerCompanyId:i}=dt(),[o,t]=we.useState(!1),{useDynamicConfig:r}=Gt(),{configValue:s}=r(Dt.qboConnectionPoolEnablement),{code:p,realmId:l,state:u}=Us(location.search),f=Ae(v=>Dh(v)),h=et.getSignedInUser();if(h==null)throw Error("Can't access onboarding customer page without signing in...");we.useEffect(()=>{e!=null&&e===!0?t(!0):t(!1)},[e]);const w=Ae(v=>v.companyViewState.zeniUsers.fetchState);we.useEffect(()=>{f.fetchState==="Completed"?a(Nt(!1)):(f.fetchState==="Not-Started"||f.fetchState==="Error")&&(a($h()),(w==="Not-Started"||w==="Error")&&a(xt()),f.qboConnectionPool.fetchState==="Not-Started"&&a(Mh()))},[f.fetchState]),we.useEffect(()=>{f.updateStatus.fetchState==="Completed"&&(a(vn(!0)),a(ms(!0)),a(gs(!0)),a(Wp()),f.uiState.showGoLivePopUp&&a(Ot({showGoLivePopUp:!1})),setTimeout(()=>{a(Kp())},5e3))},[f.updateStatus.fetchState]),we.useEffect(()=>{hb({code:p,realmId:l,state:u,signedInuserId:h.userId})&&u==="create-qbo-subscription"&&(a(Yp({connection_type:"accounting",connection_name:"quickbooks_online",connection_id:"",authorization_code:p,realm_id:l,user_id:h.userId},ps(window.location.origin+"/cockpit/onboarding/auth"),h.userId)),n("/onboarding"))},[p,l,u,h.userId,location.pathname]);const d=()=>{t(!1),a(Jp()),n("../")};return J.jsxs(J.Fragment,{children:[o===!0?J.jsx(ob,{isOnboardingCustomerDrawerOpen:o,closeDrawerHandler:d,companyId:i}):null,J.jsx(mb,{onboardingView:f,qboConnectionPoolFlag:Array.isArray(s.userEmailAccessForQBOConnectionPool)&&s.userEmailAccessForQBOConnectionPool.includes(h.userEmail),navigate:n,signedInUser:h})]})}function gb(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/",element:J.jsx(Me,{element:J.jsx(on,{})})}),J.jsx(Le,{path:"/new",element:J.jsx(Me,{element:J.jsx(on,{isOnboardingCustomerDrawerOpen:!0})})}),J.jsx(Le,{path:"/edit/:onboardingCustomerCompanyId",element:J.jsx(Me,{element:J.jsx(on,{isOnboardingCustomerDrawerOpen:!0})})}),J.jsx(Le,{path:"/auth",element:J.jsx(Me,{element:J.jsx(W_,{})})}),J.jsx(Le,{path:"/*",element:J.jsx(Me,{element:J.jsx(on,{})})})]})}function vb(e,n){return{headerActions:{onTabChange:a=>{const i=$t(a),o=Wt(a);We.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Qt({filterText:i}))},onFiltersChange:(a,i)=>{e(Qt({filters:i}))}}},portfolioPageActions:{onColumnSortConfigChanged:(a,i)=>{e(Qt({sortKey:a,sortOrder:i}))},onScroll:a=>{e(Qt({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)=>{e(Qt({filters:i}))},onCockpitReloadData:a=>{a==="portfolio"&&e(ms())}}}}function yb(e,n){return{headerData:{selectedTabOption:It("portfolio")},portfolioPageData:{portfolioView:n.portfolioView}}}const _b=Ke(yb,vb)(im);function Sh(){const e=Ye(),n=tt(),a=Ae(o=>nm(o)),i=Ae(o=>o.companyViewState.zeniUsers.fetchState);return we.useEffect(()=>{a.fetchState==="Completed"?n(Nt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(n(ms()),(i==="Not-Started"||i==="Error")&&n(xt()))},[a.fetchState]),J.jsx(_b,{portfolioView:a,navigate:e})}function bb(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/",element:J.jsx(Me,{element:J.jsx(Sh,{})})}),J.jsx(Le,{path:"/*",element:J.jsx(Me,{element:J.jsx(Sh,{})})})]})}function wb(e,n){const{merchantId:a}=n,i=Ss(e);return{tenantMerchant:a!=null?sm(e,a):void 0,globalMerchantView:i,analytics:We}}function Sb(e,n){const{merchantId:a,navigate:i}=n;return{updateCreateGlobalMerchantLocalData:(o,t,r)=>{e(Uh(o,t,r!=null?cm(r):void 0))},fetchRecommendation:()=>{e(Fh("global"))},onSaveClick:()=>{e(um(a,"vendor_global_review"))},onBackClick:()=>{i("../vendors")}}}const Eb=Ke(wb,Sb)(om);function Rb(){const e=Ye(),n=tt(),{merchantId:a}=dt(),i=Ae(o=>Ss(o).newGlobalMerchantData?.status.fetchState);return we.useEffect(()=>{i==="Completed"&&(n(am()),e("../vendors"))},[i]),J.jsx(Eb,{merchantId:a,navigate:e})}function Ob(e){const n=lm(e);return{vendorGlobalReviewView:hm(e),globalMerchantAutoCompleteView:n,analytics:We}}function Tb(e,n){const{navigate:a}=n;return{onApproveGlobalReview:i=>{e(ym(i))},onRejectGlobalReview:i=>{e(vm(i))},onCreateGlobalMerchant:(i,o,t)=>{o!=null&&(e(Uh(o,null,t)),e(Fh("global"))),i!=null?a(`./create/${i}`):a("./create")},onFetchGlobalReviewList:(i,o,t)=>{e(Bh(i,o,t))},onUpdateGlobalReviewUIState:i=>{e(gm(i))},onFetchGlobalMerchantAutoCompleteResults:i=>{e(mm({searchString:i,globalMerchantType:"vendor"}))},onUpdateSelectedGlobalMerchant:(i,o,t)=>{const r=Ib(o);e(pm({merchantId:i,currentSelection:r,customMerchantId:t}))},onClearGlobalMerchantAutoCompleteResults:()=>{e(dm())},onBackClick:()=>{a("../../management")}}}const xb=Ke(Ob,Tb)(fm);function ns(){const e=Ye(),n=tt(),a=us("/reconciliation/vendors/create/*")!=null,i=Ae(t=>Ss(t));we.useEffect(()=>{a&&i.fetchState==="Not-Started"&&e("../vendors"),n(Bh(void 0,!1))},[]);const o=t=>t.trackPageLoaded(os.Event.vendorGlobalReviewListPage);return J.jsxs(J.Fragment,{children:[J.jsx(jh,{analytics:We,onLoad:o}),J.jsx(mr,{isOpen:a,drawerLeftMargin:new ht(0,0,300,450),onClose:()=>{i.newGlobalMerchantData!=null&&We.trackVendorReviewNewVendorCanceled({reviewSource:"global_review",newRequestedVendorName:i.newGlobalMerchantData.globalMerchantName,tenantName:null,recommendedVendorName:i.recommendedGlobalMerchants[0]?.globalMerchantName??null,recommendedVendorReason:i.recommendedGlobalMerchants[0]?.reason??null}),e("../vendors")},children:J.jsx(Ab,{onClick:t=>t.stopPropagation(),children:J.jsx(Rb,{})})}),J.jsx(xb,{navigate:e})]})}const Ib=e=>e.originalVendor===!0?"originalVendor":e.recommendedFirst===!0?"recommendedFirst":e.recommendedSecond===!0?"recommendedSecond":e.requested===!0?"requested":null,Ab=st(Kt)`
|
|
188
|
+
display: flex;
|
|
189
|
+
min-height: 100%;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
`;function Cb(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/vendors",element:J.jsx(Me,{element:J.jsx(ns,{})})}),J.jsx(Le,{path:"/vendors/create",element:J.jsx(Me,{element:J.jsx(ns,{})})}),J.jsx(Le,{path:"/vendors/create/:merchantId",element:J.jsx(Me,{element:J.jsx(ns,{})})})]})}const Pb=st.div`
|
|
192
|
+
display: flex;
|
|
193
|
+
width: 100%;
|
|
194
|
+
height: calc(100vh - 110px);
|
|
195
|
+
flex-direction: row;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
align-items: center;
|
|
198
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
199
|
+
`;function kb(e,n){const{companyId:a,reviewView:i}=n;return{allUsers:i.zeniUsers,companyView:i.companies.find(o=>o.companyId===a)}}function Lb(e,n){const{companyId:a}=n;return{onRetryBankAccountConnection:()=>{a!=null&&e(Vh({companyId:a}))},onCloseClick:()=>{n.navigate("../")}}}const qb=Ke(kb,Lb)(_m);function jb(){const e=Ye(),{companyId:n}=dt(),a=Ae(i=>dr(i));return J.jsx(J.Fragment,{children:a.fetchState==="In-Progress"?J.jsx(Pb,{children:J.jsx(mn,{size:"Large",start:!0})}):J.jsx(qb,{companyId:n,reviewView:a,navigate:e})})}function Db(e,n){const{expenseAutomationEnabledCompanies:a,navigate:i}=n;return{headerActions:{onTabChange:o=>{const t=$t(o),r=Wt(o);We.trackCockpitTabClicked(r),i(`../../${t}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,t)=>{e(qn({filterText:t}))}}},reviewPageActions:{onColumnSortConfigChanged:(o,t)=>{e(qn({sortKey:o,sortOrder:t}))},onTransactionTagClicked:(o,t,r)=>{const s=a.includes(o.companyId);t==="expense"&&s?window.open(`/${o.primaryEmailDomain}/month_end_close_checks/review`):window.open(`/${o.primaryEmailDomain}/transactions/${r}-${t}`)},onReviewVendorTagClicked:o=>window.open(`/${o.primaryEmailDomain}/vendors/review`),onCompanyNameClicked:o=>window.open(`/${o.primaryEmailDomain}/dashboard`),onRetryBankAccountConnection:o=>{e(Vh({companyId:o}))},onUncategorizedAccountsErrorClick:o=>{window.open(`/${o}/accounts/mapping`)},onClickAuditScore:o=>{if(o!=null){const t=`./report/${encodeURIComponent(o)}`;i(t)}},onClickWarningsCount:o=>{if(o!=null){const t=`./warnings/${encodeURIComponent(o)}`;i(t)}},onFilterTextChanged:(o,t)=>{e(qn({filterText:t}))},onCockpitReloadData:o=>{o==="audit"&&e(jt())},onScroll:o=>{}}}}function Nb(e,n){return{headerData:{selectedTabOption:It("audit")},reviewPageData:{reviewView:n.reviewView,zeniUserFetchState:n.zeniUserFetchState,allUsers:n.reviewView.zeniUsers,isReviewVendorColumnVisible:n.isReviewVendorColumnVisible},analytics:We}}const $b=Ke(Nb,Db)(bm);function is(){const e=Ye(),n=tt(),a=us("/audit/report/*")!=null,i=us("/audit/warnings/*")!=null,{useFeatureGate:o}=Gt(),{isFeatureEnabled:t}=o(Ch.isReviewTabVendorColumnEnabled),{useDynamicConfig:r}=Gt(),{configValue:s}=r(Dt.expenseAutomationEnablement),p=Ae(f=>dr(f)),l=Ae(f=>gn(f)),u=Ae(f=>f.companyViewState.zeniUsers.fetchState);return we.useEffect(()=>{p.fetchState==="Completed"?n(Nt(!1)):(p.fetchState==="Not-Started"||p.fetchState==="Error")&&(n(jt()),(u==="Not-Started"||u==="Error")&&n(xt()))},[p.fetchState]),we.useEffect(()=>{p.fetchState==="Completed"&&l.fetchState==="Not-Started"&&n(hs())},[p.fetchState]),J.jsxs(J.Fragment,{children:[J.jsx(mr,{isOpen:a||i,drawerLeftMargin:a?new ht(0,0,0,0):i?new ht(0,0,300,650):new ht(0,0,300,650),onClose:()=>{a&&n(jt()),e("../")},children:J.jsx(Mb,{onClick:f=>f.stopPropagation(),children:a?J.jsx(Jh,{}):i?J.jsx(jb,{}):null})}),J.jsx($b,{reviewView:p,navigate:e,isReviewVendorColumnVisible:t,zeniUserFetchState:u,expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]})]})}const Mb=st(Kt)`
|
|
200
|
+
display: flex;
|
|
201
|
+
min-height: 100%;
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
`;function Fb(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/report/:companyId",element:J.jsx(Me,{element:J.jsx(is,{})})}),J.jsx(Le,{path:"/warnings/:companyId",element:J.jsx(Me,{element:J.jsx(is,{})})}),J.jsx(Le,{path:"/*",element:J.jsx(Me,{element:J.jsx(is,{})})})]})}function Ub(e,n){const a=zh(e,n.tenantId),i=a.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:a,isDisabled:i}}function Bb(e,n){const{tenantId:a,companyId:i,location:o,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{addPlan:s,invoiceOption:p}=r,{subscriptionPlan:l,recurringAddOns:u,coupon:f}=s,h={subscriptionPlanId:l.selectedOption??"",subscriptionAddOnIds:u.filter(w=>w.selectedOption!=null).map(w=>w.selectedOption),subscriptionCouponIds:f.selectedOption!=null?[f.selectedOption]:[],invoiceImmediately:p.invoicingOption!=null};s.planStartDate!=null&&(h.startDate=sn(s.planStartDate.toString())),e(Gh({tenantId:a,subscriptionData:h}))},onEstimateSuccess:()=>{const r=Yh(o.state?.pathnameStackToGoBack,o.pathname);t(`../tenants/${a}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(Sm(a))},onBackClick:()=>{t(`../tenants/${a}/companies/${i}`)},onResetClick:()=>{e(vs(a))}}}const Vb=Ke(Ub,Bb)(wm),zb=e=>{const{tenantId:n,companyId:a,location:i,navigate:o}=e;return J.jsx(Vb,{tenantId:n,companyId:a,location:i,navigate:o})};function Gb(e,n){const{companyId:a,tenantId:i}=n,o=Om(e,a,i),t=o.fetchState!=="In-Progress";return{subscriptionDetailView:o,canUpdate:t}}function Hb(e,n){const{tenantId:a,location:i,navigate:o}=n;return{onUpdateOrAddPlanClick:t=>{e(vs(a,t)),e(Tm()),e(xm()),e(Im()),t!=null?o(`${i.pathname}/update`):o(`${i.pathname}/add`)},onCloseClick:()=>{o("../")}}}const Zb=Ke(Gb,Hb)(Rm),Wb=e=>{const{tenantId:n,companyId:a,location:i,navigate:o}=e,t=tt(),[r,s]=we.useState(!1),p=Ae(l=>l.subscriptionViewState.subscriptionDetailsByCompanyId[a]?.fetchStatus);return we.useEffect(()=>{!r&&(p==null||p?.fetchState==="Not-Started")&&(s(!0),t(Em(a)))},[r,p,a,t]),we.useEffect(()=>{r&&p!=null&&p?.fetchState==="Error"&&o("../subscription")},[r,p]),J.jsx(Zb,{tenantId:n,companyId:a,location:i,navigate:o})};function Kb(e,n){return{subscriptionEstimateData:Cm(e,n.tenantId)}}function Yb(e,n){const{tenantId:a,companyId:i,location:o,navigate:t}=n,r=()=>{const s=mg(o.state?.pathnameStackToGoBack),p=s.poppedPathname??gg(1);t(p,{state:{pathnameStackToGoBack:s.newStack}})};return{onBackClick:()=>{r()},onCancelClick:()=>{r()},onConfirmClick:()=>{e(Pm(a))},onConfirmSuccess:()=>{t(`../tenants/${a}/companies/${i}`)}}}const Jb=Ke(Kb,Yb)(Am),Xb=e=>{const{tenantId:n,companyId:a,location:i,navigate:o}=e;return J.jsx(Jb,{companyId:a,tenantId:n,location:i,navigate:o})};function Qb(e,n){const a=zh(e,n.tenantId),i=a.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:a,isDisabled:i}}function e0(e,n){const{tenantId:a,companyId:i,location:o,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{updatePlan:s,applyChanges:p}=r,{subscriptionPlan:l,recurringAddOns:u,coupon:f}=s,h={subscriptionPlanId:l.selectedOption??"",subscriptionAddOnIds:u.filter(w=>w.selectedOption!=null).map(w=>w.selectedOption),subscriptionCouponIds:f.selectedOption!=null?[f.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:p.changeType==="applyEndOfTerm",shouldProrate:p.shouldProrate};e(Gh({tenantId:a,subscriptionData:h}))},onEstimateSuccess:()=>{const r=Yh(o.state?.pathnameStackToGoBack,o.pathname);t(`../tenants/${a}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(Lm(a))},onBackClick:()=>{t(`../tenants/${a}/companies/${i}`)},onResetClick:r=>{e(vs(a,r.subscription.subscription.subscriptionId))}}}const t0=Ke(Qb,e0)(km),r0=e=>{const{tenantId:n,companyId:a,location:i,navigate:o}=e;return J.jsx(t0,{tenantId:n,companyId:a,location:i,navigate:o})},ep=["add","update","summary"],n0=e=>jm(e,ep),i0=e=>qm(e,ep),a0=()=>{const[e,n]=we.useState(!0),{tenantId:a,companyId:i,updatePageType:o}=dt(),t=Ye(),r=Ae(p=>a!=null?p.subscriptionViewState.subscriptionUpdateViewDataByTenantId[a]:null);if(et.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return we.useEffect(()=>{(r==null&&o!=null||i0(o??"")==null)&&t(`../tenants/${a}/companies/${i}`)},[r]),J.jsx(mr,{isOpen:e,onClose:()=>{n(!1),t("../subscription")},children:J.jsx(s0,{children:J.jsx(o0,{tenantId:a,companyId:i,updatePageType:o!=null?n0(o):void 0})})})},o0=({tenantId:e,companyId:n,updatePageType:a})=>{const i=Ye(),o=ys(),t={tenantId:e,companyId:n,navigate:i,location:o};if(a==null)return J.jsx(Wb,{...t});switch(a){case"update":return J.jsx(r0,{...t});case"add":return J.jsx(zb,{...t});case"summary":return J.jsx(Xb,{...t});default:return console.error("Subscription Update Page - Invalid Url"),J.jsx(sr,{to:"/",replace:!0})}},s0=st(Kt)`
|
|
204
|
+
display: flex;
|
|
205
|
+
min-height: 100%;
|
|
206
|
+
`;function u0(e,n){return{headerActions:{onTabChange:a=>{const i=$t(a),o=Wt(a);We.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Vt({filterText:i}))},onFiltersChange:(a,i)=>{e(Vt({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(a,i)=>{e(Vt({sortKey:a,sortOrder:i}))},onCollapseToggled:(a,i)=>{e(Vt({isRowCollapseToggled:{companyId:a,isCollapsed:i}}))},onScroll:a=>{e(Vt({scrollYOffset:a}))},changeHandlers:(a,i)=>{const o=l0(i);Object.keys(o).length>0&&e(ds(a,o))},onCompanyNameClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(a,i)=>{e($m({tenantId:i})),n.navigate(`../tenants/${i}/companies/${a}`)},onFiltersChange:(a,i)=>{e(Vt({filters:i}))},onCockpitReloadData:a=>{a==="subscription"&&e(gs())}}}}function c0(e,n){return{headerData:{selectedTabOption:It("subscription")},subscriptionPageData:{loggedInUser:n.signedInUser,subscriptionView:n.subscriptionView}}}const f0=Ke(c0,u0)(Nm);function as({isDrawerOpen:e}){const n=Ye(),a=tt(),i=Ae(r=>Dm(r)),o=Ae(r=>r.companyViewState.zeniUsers.fetchState);we.useEffect(()=>{i.fetchState==="Completed"?a(Nt(!1)):(i.fetchState==="Not-Started"||i.fetchState==="Error")&&(a(gs()),(o==="Not-Started"||o==="Error")&&a(xt()))},[i.fetchState]);const t=et.getSignedInUser();return J.jsxs(J.Fragment,{children:[e===!0?J.jsx(a0,{}):null,J.jsx(f0,{signedInUser:t,subscriptionView:i,navigate:n})]})}const l0=e=>{const{users:n}=e;return n?{users:n}:{}};function h0(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/tenants/:tenantId/companies/:companyId",element:J.jsx(Me,{element:J.jsx(as,{isDrawerOpen:!0})})}),J.jsx(Le,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:J.jsx(Me,{element:J.jsx(as,{isDrawerOpen:!0})})}),J.jsx(Le,{path:"/*",element:J.jsx(Me,{element:J.jsx(as,{})})})]})}function d0(e,n){const{navigate:a}=n;return{headerActions:{onTabChange:i=>{const o=$t(i);a(`../../${o}`,{replace:!0})}},taskManagerPageActions:{onRowClick:(i,o)=>{window.open(`/${i}/tasks/${o}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(ss(null,"dueDate","descending",!1))},onFetchTaskManagerView:(i,o,t,r,s)=>{e(ss(i,o,t,r,s))}}}}function p0(e,n){return{headerData:{selectedTabOption:It("taskManager")},taskManagerPageData:{companyTaskManagerView:n.companyTaskManagerView}}}const m0=Ke(p0,d0)(Fm);function Eh(){const e=Ye(),n=tt(),a=Ae(r=>cg(r)),i=Ae(r=>Mm(r)),o=Ae(r=>r.companyViewState.zeniUsers.fetchState);if(we.useEffect(()=>{a.fetchState==="Completed"?n(Nt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(n(ss(null,"dueDate","descending",!1)),(o==="Not-Started"||o==="Error")&&n(xt()))},[a.fetchState]),et.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");return J.jsx(m0,{navigate:e,reviewCount:i,companyTaskManagerView:a})}function g0(){return J.jsxs(wt,{children:[J.jsx(Le,{path:"/",element:J.jsx(Me,{element:J.jsx(Eh,{})})}),J.jsx(Le,{path:"/*",element:J.jsx(Me,{element:J.jsx(Eh,{})})})]})}let Rh=!1;const v0=Um(()=>Bm(()=>Promise.resolve().then(()=>Ng),void 0));function A0(){const e=et.getSignedInUser(),n=Zt().mode;return we.useEffect(()=>{et.isSignedIn()&&!Rh&&e!=null&&(zm(e,n),Rh=!0)},[e]),J.jsxs(wt,{children:[J.jsx(Le,{path:"/management/*",element:J.jsx(zg,{})}),J.jsx(Le,{path:"/subscription/*",element:J.jsx(h0,{})}),J.jsx(Le,{path:"/onboarding/*",element:J.jsx(gb,{})}),J.jsx(Le,{path:"/portfolio/*",element:J.jsx(bb,{})}),J.jsx(Le,{path:"/audit/*",element:J.jsx(Fb,{})}),J.jsx(Le,{path:"/reconciliation/*",element:J.jsx(Cb,{})}),J.jsx(Le,{path:"/health-monitor/*",element:J.jsx(vg,{})}),J.jsx(Le,{path:"/task-manager/*",element:J.jsx(g0,{})}),J.jsx(Le,{path:"/*",element:J.jsx(v0,{})})]})}export{A0 as default};
|