@zeniai/web-cockpit-ui 1.14.69-prod → 1.14.70-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-CmWdWZdP-D08ZHH9H.js → ACHDetailsPage-DEHhAThG-DRAXXaYH.js} +1 -1
- package/dist/assets/{AIPerformancePage-DR_nar6I-C-nOpUga.js → AIPerformancePage-B464awTI-D9b_abqo.js} +1 -1
- package/dist/assets/{AccountInfoPage-B38K8oEc-BrwpJjZu.js → AccountInfoPage-CXORyzg0-CybH32Bk.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-2BCqK6uX-DOZlSjt9.js → AccountInfoPageContent-C9u7rHSK-BT3xnzN2.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BRDWcWCW-Bs5kmnXp.js → AccountLockedInfoModal-CKll7MKb-CjjkXlxS.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-XWU779Do-CL2XjmwO.js → AccountReconDetailsDrawerPage-BC2fGcr2-D7kVaYoW.js} +1 -1
- package/dist/assets/{AccountRow-HX65ytA9-DetuuL-x.js → AccountRow-NUjIqQZG-CSuarqvN.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BgH0GUum-B0ik7ZZL.js → AccountsPromoCardStack-XBi6z1zm-ChZ4F-Su.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CTWrEuhw-C7oCxit3.js → AddAddressForCardDrawer-DQP3nz3Q-B4VYFuh8.js} +1 -1
- package/dist/assets/{AddToWalletPage-DTXBDGyB-DI5kTo4U.js → AddToWalletPage-Bb2oVW4b-yCBdn2-5.js} +1 -1
- package/dist/assets/{AgingReportsPage-D5cFIWFm-1uaNBQUg.js → AgingReportsPage-CumNO7Lc-CZuNjzaf.js} +1 -1
- package/dist/assets/{AllUserItems-CJuV-zCV-Cl9AZUy6.js → AllUserItems-B3X2Yuzf-nT-XTOL1.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-D70U6sDz-DBfXQvB3.js → ApAgingDetailPage-DO6H8pHR-BJjqV3Er.js} +1 -1
- package/dist/assets/{AppBasePage-DhJFM1Hf-BLCs30xv.js → AppBasePage-xQ6xhR2M-BaIjJbZZ.js} +1 -1
- package/dist/assets/{AppDrawerContent-29n10idw-BgMVfnAi.js → AppDrawerContent-BcHjLmip-CD7Xrz71.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Cdlgg_ES-C2o8fJ93.js → ApprovalRulesSettingsPage-DEaI5LXy-CdonxLeU.js} +1 -1
- package/dist/assets/{ArAgingChart-C_oM_bU9-CSIw0A4R.js → ArAgingChart-DzhE9mKv-Dm3ED-VE.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-GccX2G2o-CbxkMfZs.js → ArAgingDetailPage-B91ZARF--DiGTdxjY.js} +1 -1
- package/dist/assets/{AttachmentView-DDNmVg54-BEQuPzAU.js → AttachmentView-ChgqlLZN-CRfLn9o5.js} +1 -1
- package/dist/assets/{BankAccountSection-CSEVnGzl-RoBrk-6C.js → BankAccountSection-BDRw3NWV-B1HXDOJd.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CZWf6Ctu-DzlhcQ-1.js → BankAccountWarningSection-BKoo9URq-B_XL-xhd.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-DW3rv1B7-BI4eIich.js → BankConnectionsSettingsPage-CJ42ZzMq-CvQSATnj.js} +1 -1
- package/dist/assets/{BillDetailPage-DSwhwZ3k-CSaWl-zQ.js → BillDetailPage-DfiuLZe8-Ce9yRmQm.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-Y3sdg8vr-eulWXclu.js → BillPayApprovalRuleDetailPage-5_IW6xXJ-Dvdnaki3.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-hF6nVaze-BnghCd19.js → BillPayApprovalRulesPage-CfJZKzVl-CE2_M-K3.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BwgkXhsU-Bq9cwc_l.js → BillPayPromoPage-DDLOie6P-C6YHZPkv.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-Dz9F0OLg-C93_xcAH.js → BillPaySetUpPage-CSfFU76z-odkaZVOM.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CDdumusu-BSQ5mZ9a.js → BillingSettingsPage-BeXsONDQ-BbnTgDkb.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-BQ79pNCf-CEpEdOQe.js → BillsBulkReviewDrawerPage-C19XWwEC-K20I00y_.js} +1 -1
- package/dist/assets/{BoxItem-boLSc1SE-C2V3cWEh.js → BoxItem-DJq5xhLi-BG-pUsKW.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Cp39EL_C-DPdmKaH2.js → BusinessVerificationPage-cUeJO7D8-ByN9_rVE.js} +1 -1
- package/dist/assets/{CardNumberSubText-XNpl-R7P-B5ov0C5q.js → CardNumberSubText-RiyeZ4Fi-3S6YZnxr.js} +1 -1
- package/dist/assets/{CashbackDetailPage-ntByDDMa-CjeQMIiq.js → CashbackDetailPage-BgmrLbkm-Bi8JIg5v.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D-CZcmOW-CyjYNVBL.js → ChargeCardDetailPage-BfB9DQhO-PoXrGSDN.js} +1 -1
- package/dist/assets/{ChargeCardListPage-D1NJzMX--BRsERLcq.js → ChargeCardListPage-D5hExQrJ-CEDXeeuX.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BmGQk4ht-DEDO8U5V.js → ChargeCardListTable-Xe0POHPI-C_aRBrpd.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BY1dULbG-BOQk33rr.js → ChargeCardPromoPage-C-QZi7WU-7wj0mX09.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-C4PX3JTG-DN_SmBRl.js → ChargeCardSetupPage-CIaAoIaA-D0xfMcck.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BiM-yT58-DF9Rz4vt.js → ChargeCardStatementsPage-Bta8G5rU-Bxd9GDQ6.js} +1 -1
- package/dist/assets/{ChargeCardUtils-Cj1kpTwU-DWkIAXDW.js → ChargeCardUtils-MXK7oeC0-D6RsKjLW.js} +1 -1
- package/dist/assets/{ChaseOverlay-D8Wesmh3-Hay_lE2r.js → ChaseOverlay-nKLcp0IQ-DyPgaN6P.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-qtOoFuzp-PZgVMUM5.js → CheckDepositDrawerPage-DE9G4ZLn-CMYdeGxw.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Do0pb5Lu-qtHBZTWo.js → CollapsableReportTable-9Ve7EJza-AqNxaI6j.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DeRanOdM-CYn2t94Z.js → CompanyOfficerDetailsSection-Dxrw3A0v-CaTwjUfz.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BTCP55KE-DxIA2Kgo.js → CompanyPassportCard-BLH9mk_K-Do765Ty4.js} +1 -1
- package/dist/assets/{CompanyPassportPage-yjAO_mG--D-XIvy88.js → CompanyPassportPage-DugSYQVz-BRWVbjGf.js} +1 -1
- package/dist/assets/{CompleteProfile-DdOrD2pt-HrNNW1Y7.js → CompleteProfile-DmnsbHlq-DyYFWoMC.js} +1 -1
- package/dist/assets/{ConfettiBurst-sNSG2up_-BS-vrnmM.js → ConfettiBurst-BDREKQUf-DKUbjNni.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Bq9oUnzE-CpG25ii2.js → CreateOrEditVendorPage-Dl6ec-s9-CkmD6cdK.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-2xfyy_iB-DP6O9SUr.js → CreditCardPaymentDrawerPage-Dyb4qL_P-DGVVqzgM.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CvW-Fcsz-CXaa0G2D.js → CreditCardPaymentPlgSection-BPV1SLmY-C7jSKPJl.js} +1 -1
- package/dist/assets/{CurrencySelectField-DXtYsTz_-dQTlHOvB.js → CurrencySelectField-CJb3Y-mb-29nC1opq.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-C5Tf8vxR-w9wWJnBX.js → CustomerOnboardingActivationPage-9iuVWGWw-CdtgmV6n.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Pw4kXxCj-DIxXsPND.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C_pZ_Mek-DTQ2JUX-.js → CustomerOnboardingDetailPageSkeleton-jYcjJ0PW-D1CCiZxT.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-DIefPh79-CJ95BLaj.js → CustomerOnboardingNoStepsPage-X-9T5fpG-DxjTi_Dm.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DvWS1Fu5-D_Sqe41C.js → CustomerOnboardingPage-CtBN8YfR-CGkB_H2s.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-bkjJ76FE-YquW1Oxm.js → CustomerOnboardingProductSuitePage-bDKvS5bh-Duy-Ig0d.js} +1 -1
- package/dist/assets/{Dashboard-BIBEEsmW-BeYObmAZ.js → Dashboard-BH5qnfQd-CCuvs67T.js} +1 -1
- package/dist/assets/{DashboardReportPage-CJ14rgfy-D6o2sgVt.js → DashboardReportPage-J1VeI2uE-Bu8eUuF5.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BTCBzIff-fKpKGZqN.js → DashboardSidebarBackgroundAnimation-CXHOxSLP-4l1AB9D9.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BGEabO5q-BEuL9m_Q.js → DepositAccTransactionItem-BGfoy6o8-BKfG_FHL.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-ByiVlTpi-BDqN3_Ld.js → DepositAccTransactionListPage-a69RARgv-CC4ca2oI.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BMZuwYyI-DD7uqmMI.js → DomesticWireDetailsPage-DBt6rnIQ-Cqpf-IDY.js} +1 -1
- package/dist/assets/{DownloadOverlay-BMuuHIe_-C6sk3TZT.js → DownloadOverlay-DgUHpkeg-D9EplThh.js} +1 -1
- package/dist/assets/{DrawerPage-CrIpCiKa-Nbri33S9.js → DrawerPage-B32TCGJ1-DlBcEsnN.js} +1 -1
- package/dist/assets/{EditPeoplePage-DlNzfgqT-DCHAk3Yz.js → EditPeoplePage-BPfO6mun-wU23lVWV.js} +1 -1
- package/dist/assets/EditReimbursementDetailPage-DKGgXOY7-DLqEBdT-.js +865 -0
- package/dist/assets/{EntityDetailPage-DSRvBHpC-BMa47RLv.js → EntityDetailPage-BfHI2iuR-CVcUBkiC.js} +1 -1
- package/dist/assets/{EntitySummarySection-9nOAnjkI-BqTlSEba.js → EntitySummarySection-CawV1rm1-D5PJQpxt.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-R3eUdjrH-X8tjo-Ht.js → ExpenseAutomationOverviewPage-BsAt8A9v-BK8BcjCH.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CKh8vu_w-tEarM0o0.js → ExpenseAutomationPage-aw988_Ii-DHT0WFhA.js} +1 -1
- package/dist/assets/{ExpressPayPage-Dduo1mOg-DNV7YrV7.js → ExpressPayPage-CJCdxlh5-y9jOExfe.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DMRrw9-Y-DWp9ezgs.js → FeaturePreviewPage-CqLkGmd--BXP9O5_K.js} +1 -1
- package/dist/assets/{FollowStepsSection-CEQpkklk-Y0e1DNzS.js → FollowStepsSection-Dyn5gNGd-Cpjk-5Ab.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-4VcZ6q0U-0o5Lv_xX.js → GlobalReviewListPage-B9ijztQn-D_Npdays.js} +1 -1
- package/dist/assets/{HelpButton-D2VIgqhe-CikEjabe.js → HelpButton-jlgjodRn-BM1z6Ko6.js} +1 -1
- package/dist/assets/{InformationCardStack-DnfUYEKn-CCG3m7qR.js → InformationCardStack-BVY3WNAX-CE7DCPLF.js} +1 -1
- package/dist/assets/{InsightsCardStack-BcmY7CE8-E-tTnJRR.js → InsightsCardStack-Cq1VFPv0-ClMSDXGQ.js} +1 -1
- package/dist/assets/{InsightsSection-DvljGiHX-ByqranmJ.js → InsightsSection-Bp2dI7sk-DQMqItrq.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-_UEZa5LV-Kdr0PwcS.js → IntegrationsSettingsPage-McjwChqZ-D9lZsJnd.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DWNfoLkN-B0-xZyVi.js → InternationalWireSwiftDetailsPage-BSbC9vYS-D96enR1t.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Dd_gu2i8-D415t1pl.js → InternationalWireVerificationPage-CXKmxcJR-kOmgW9Gg.js} +1 -1
- package/dist/assets/{InviteFormPage-D51wJ12d-BLMraIs_.js → InviteFormPage-UVuBwyyT-TSMvggYq.js} +1 -1
- package/dist/assets/{InvitePageListView-BooLnbN2-DLQz0rVr.js → InvitePageListView-D3vLBLdn-DjxY9b3S.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Crh233yV-CwdbTN9k.js → InvitePeoplePage-Dq2c-OEI-BhG4wwyM.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-wg-xymDI-7QWAPep4.js → InvoiceUploadSection-CGiw1Fsl-BqhdArfE.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CdoWbyWu-BahTnZB6.js → IssueChargeCardPage-DZt48WaC-CBzgdS2l.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BhmZAbzp-DZf4ElCh.js → LabeledAddressValue-COZIVVuQ-DoFhDxlG.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Drg5O-US-DbwmMbJK.js → LabeledAddressValueField-BqxCJ214-BeCISlsF.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BbYnFF5o-CgHKKGrg.js → LabeledControlledCheckBoxField-Ctt5nlNb-BxWNv_F8.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-xcFQjqaM-VO5tpw19.js → LabeledCreatableSingleSelectField-DXxch_y1-CJyXki6j.js} +1 -1
- package/dist/assets/{LabeledDocumentField-C8pHsM4S-CPPM3Tz-.js → LabeledDocumentField--7BXDK3g-YRWqFfMC.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Cx5ONCxF-Dvig-n1H.js → LabeledDropDownFormattedTextField-j62_NoR8-C00ox8Xv.js} +1 -1
- package/dist/assets/{LabeledText-D5IHVOg0-DTokZ3Wf.js → LabeledText-j7jn7khK-1kY3l2me.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D4LdosVZ-CNQLb7VB.js → LabeledUserSingleSelectWithSubtitlesField-pIek7oI7--tqFNvok.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-zOTYaEh8-x4pjqckW.js → LabeledZeniRolesDropDownField-X2qZXFaF-DpGJz-M1.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-Cjf7vBDA-CkhiSoEX.js → LinkJETransactionPage-DRC88j7z-FCK8U7jy.js} +1 -1
- package/dist/assets/{LockCardPage-D-quZPt4-By5NXdU-.js → LockCardPage-BMvHSrDy-DHBB4k1q.js} +1 -1
- package/dist/assets/{LowBalancePopup-CDVNL1Ng-BFRy_HyW.js → LowBalancePopup-DVn8qbv_-ybNeezIV.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-X0_WQkYj-B3gBebiQ.js → MagicLinkACHDetailsPage-Bvw_kaVc-FL1VkBF6.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D-C3JyeK-CSa6Ga4n.js → MagicLinkDomesticWireDetailsPage-BkVZ1jpB-Da7sci-J.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B27G9Xh5-UaM6gXLE.js → MagicLinkInternationalWireDetailsPage-s_vBiYar-9tMEta3k.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CzNf5Y4Z-BAyEW9oe.js → MagicLinkSuccessPage-BfC_ewro-D5JfIS9N.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CBQ-D4Ax-c31H1T_K.js → MagicLinkTitleSection-BheV8eRd-YQNBdJjw.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BMHFJz4W-CDGuL3Yu.js → MailingDetailsSection-dpOFXIy_-ChE90SHL.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-ClAUcXqM-HBKW1kyR.js → MeetingCalenderPopup-Ma-N6si8-DVldPR_b.js} +1 -1
- package/dist/assets/{Menu-Cd5A1JNy-e_SIl2iW.js → Menu-CS4snQyL-iEWPQ8Jg.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CCBp1XGb-DfKbX64b.js → MyBankConnectionsSettingsPage-BNwfq3mV-DvRfS-ot.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CYYNDJEv-BQZ2VoxI.js → MyPendingActivationChargeCardListPage-CvtCpxZ2-B9s4AD2w.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage--4GywTfD-BZZwGrm5.js → MyProfileSettingsPage-CYHd_uJf-CXL88bXq.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BCwWE09x-BuhopnGe.js → NavBarWithPicker-CIwo3-bU-BlAZrmkB.js} +1 -1
- package/dist/assets/{NavigationArrow-Bgry4cXl-DAzfOxUH.js → NavigationArrow-Ctsd8z-N-Dey9XvGJ.js} +1 -1
- package/dist/assets/{NavigationDots-Ddi6oobs-DxfYtOhs.js → NavigationDots-DGv77DnI-DBz-xiee.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-WtpOSLWM-zMWYGlIP.js → NewGlobalMerchantPage-oyu_zZde-bRSk7vCu.js} +1 -1
- package/dist/assets/{NoDataChart-BNlDDQwD-Sl0108ki.js → NoDataChart-CXFwQK_G-CblpjrHE.js} +1 -1
- package/dist/assets/{NoDataTable-BS-9P_1q-D0B4frra.js → NoDataTable-DrDufNQl-Xxh0U3Y6.js} +1 -1
- package/dist/assets/{NotFoundPage-B9ora6ML-D_jz_LfE.js → NotFoundPage-D5ZkhpVx-Dlj_Efgz.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-Dz8TrJJt-DrRNFqWc.js → NotificationSettingsPage-DV2O4HOU-DYRLZiyD.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DFEuYLQn-DUPfNfRl.js → NotificationsListConfig-DzTt3sW7-D7k64tPL.js} +1 -1
- package/dist/assets/{NotificationsPage-BC4qwyyR-CN0IvL2c.js → NotificationsPage-pIGEEWO1-D5PlvpRi.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BEDrqFvy-46vwHXL-.js → OpExByVendorPage-B5udt4MV-Db0rh8wD.js} +1 -1
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-R2gJ3RpC.js → OverlayContainerPage-BrLfNEnQ-COB3BYnt.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Q6RMHNEP-CNNhzYR9.js → PandLWithForecastPage-BH4-z8YX-CdZe4LXy.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DgZaYNuQ-PyR6Yob-.js → PaymentAccountSetupBillingAddressSection-DXtYsHZ5-DYuls--U.js} +1 -1
- package/dist/assets/{PeoplePage-B7-DBwAE-uvbgxO_f.js → PeoplePage-CudFyR33-DWYV_q9f.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-BYrJIO4G-CKemIwTc.js → PortfolioAllocationFormPage--pbBsqs1-Bdnin9RL.js} +1 -1
- package/dist/assets/{PortfolioDetails-CSUj2M7N-B43xGMlq.js → PortfolioDetails-BMo4nZPY-C_OYsbEg.js} +1 -1
- package/dist/assets/{ProductsCarousel-CJawWb9Z-BdtwzFSn.js → ProductsCarousel-n8JigLY0-hfuXryxc.js} +1 -1
- package/dist/assets/{PromoBaseCards-DBUPttkv-7qEVLUcx.js → PromoBaseCards-C7Gs9HU9-bF3NRHMd.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-XDxex81f-DeVyM9HR.js → QBOConnectionDialog-Bs4TixAR-CkOj_Icl.js} +1 -1
- package/dist/assets/{QBOSetupSection-C6N7GK8Z-Ch9cbdvZ.js → QBOSetupSection-CmnpJttN-D-P5eb83.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-vED-R4-0-9Pv-eq.js → ReimbursementApprovalRuleDetailPage-JqIc8GYJ-C9mMI_X1.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BKnffido-bza8Gua_.js → ReimbursementApprovalRulesPage-PnesOCg3-DqiGKhbd.js} +1 -1
- package/dist/assets/ReimbursementDetailPage-D22_cS36-Bpcy5-fU.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-CSRGTsL--BAhI56PW.js → ReimbursementPromoPage-DIbk9BFN-DVPfxSMn.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Dt45ZWe6-BIGPDPeN.js → ReimbursementSetUpPage-DS-cwKlv-D_Hm45Ky.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BPB3gXW9-CF49ycsK.js → ReimbursementsBulkReviewDrawerPage-BLdVlRgq-JaicePT_.js} +1 -1
- package/dist/assets/{ReloadCard-C7H9HpbO-_kdesY41.js → ReloadCard-DBa4gyKQ-Buh0vXeY.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CXqW1clk-GSVgkRxB.js → ReportTableViewSelector-DuwAvmlS-BBnfMgKH.js} +1 -1
- package/dist/assets/{ReportsPage-cosy_Bbq-OTCGmxc4.js → ReportsPage-WABWxLPG-DKN5DzWh.js} +1 -1
- package/dist/assets/{RevenueChart-DUPn_XF8-BDu1SDxr.js → RevenueChart-B5jN8P8V-Bz2uKzvD.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DH6T7H7g-DH-6NE08.js → ReviewDetailsPage-BudlDfFj-BIOHcwWG.js} +1 -1
- package/dist/assets/{ReviewOverlay-D1gSW-Yw-B8hhebw_.js → ReviewOverlay-CckOQNCd-Cqn6hgqy.js} +1 -1
- package/dist/assets/{RoleWithToolTip-Cp5gvEZs-DwN1v8Cj.js → RoleWithToolTip-Bur7bxOe-CYEzIvk3.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CnphYKxN-BXYrlUXY.js → ScheduleDetailsFixedAssetsPage-Div2wWri-CXszSt2I.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-C-Aexea6-DU14GLoR.js → ScheduleDetailsPage-DDYQPFGk-CiGVq9tp.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DcwqaLmf-CGtKtyWB.js → ScheduleSequenceTable-1TRzUR6V-wcPOEmww.js} +1 -1
- package/dist/assets/ScreenRoutes-i5d_donU.js +203 -0
- package/dist/assets/{SetUpAccountSection-DcPnHW0X-DTztXzhn.js → SetUpAccountSection-Dfs_xZu7-CWFfutWm.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-BFPybRJc-BixU69LG.js → SetUpDefaultSection-TtnDS5ad-BZjzQ8Mk.js} +1 -1
- package/dist/assets/{SignIn-_2PLYEin-DIx0TRbT.js → SignIn-D3-Ker_M-zn09bTiA.js} +1 -1
- package/dist/assets/{SignInScreen-BnzespSp.js → SignInScreen-EsgrSlOr.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DoOD0SKy-CBwphAUh.js → SpendManagementListViewPage-D0yJ6ZZV-DPeBz9Dm.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-zAut4sVr-Dx6Uwcef.js → SpendManagementPerTabPage-Dfhzyv14-BxpKm9-A.js} +1 -1
- package/dist/assets/{SpendManagementSection-DZz_fsH6-BO0X1BhL.js → SpendManagementSection-CNgCznpS-D2Anolaw.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-CM4RGF3P-CEi1-z0Q.js → SpendMgmtSetupAccountSection-CKg4qknx-DMsYuVmq.js} +1 -1
- package/dist/assets/{StatementItem-CgyEvD-b-a_xofKOn.js → StatementItem-Cv3RZsIv-CE3xFXTY.js} +1 -1
- package/dist/assets/{StatementsPage-DsIQ8XQY-DrS2pukO.js → StatementsPage-4JEocF4A-CUYYmhxY.js} +1 -1
- package/dist/assets/{StatusSwitcher-0FW5MyfZ-Ckzka9NF.js → StatusSwitcher-DbsnK4Pn-QF_adjcm.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DROmoxUm-DMhWlatK.js → SubTabSwitcher-Di6AZRan-D-fc0CCz.js} +1 -1
- package/dist/assets/{SummaryCard-CvqpWY1e-CSF6-9Tw.js → SummaryCard-BbqP93PD-DCBLhe4V.js} +1 -1
- package/dist/assets/{TaskManagementPage-BlRUCsH2-CR3T4qHe.js → TaskManagementPage-BJhjliCJ-Dgf8KAM1.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DaSDSBJg-D8rwcFXC.js → TimeRangeSwitcher-MsG4Kt2X-hRGxoqg7.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CQXRt_ve-_zsfOZYb.js → TimeframeSwitcher-Cv7wfQSS--wV3l3C4.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DRxK4ucX-Dt89QoOS.js → TimeframeSwitcherWithToggle-CXnzJ3Ip-DVUB_GmO.js} +1 -1
- package/dist/assets/{TopExCard-Bx4hv8bP-CJJoCX_h.js → TopExCard-Bb0F0Re9-BGQwgN2R.js} +1 -1
- package/dist/assets/{TopExDetailPage-WwjISiBR-Cf2e4GFX.js → TopExDetailPage-BgRX-60I-Dvt1aqR4.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DZxj6ERf-6l8yINyG.js → TransactionDetailPage-C1clpiWS-CjTAZZDd.js} +1 -1
- package/dist/assets/{TransactionList-CS0vdVOy-BhTABrNB.js → TransactionList-DqlnGjYa-CR04FLWL.js} +1 -1
- package/dist/assets/{TransactionListBig-EJgfLOeO-88TXRgl4.js → TransactionListBig-CCuDCegl-nebtbqVL.js} +1 -1
- package/dist/assets/{TransactionListPage-B7HHD_XG-DWoC2vGy.js → TransactionListPage-B1TxgyxD-BG9D6Llv.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-91nT0xN2-BefYRztA.js → TransactionVendorDetailPage-BYWPYZkV-DmR3luWN.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DRnmOKbS-XYkHz5Q1.js → TransferDrawerPage-Cx4Qxlnr-KKZmPzs2.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-BL6F3EAV-BG3QG9B9.js → TreasuryOverviewPage-B0scZon9-BtBCUnCW.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-EgoFyZHZ-DAFbRUib.js → TreasuryPromoPage-Cs6MvdWT-CmcGtneC.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CNEy8TpS-DIs9Un6S.js → TreasurySetupPage-BT3fZK16-DjGogfn_.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CpHtCiHi-BWaLA3-u.js → TreasuryStatementsPage-Cj28uTCq-DnMgkVai.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-B4MAEQMq-Co2rZ51I.js → TreasuryTaxLetterPage-C6fYejXM-CXfwlQFb.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BCLp7kS2-bG4fJ74_.js → TreasuryTransferOrReviewPage-DMaGU-Gd-CFr5ChKO.js} +1 -1
- package/dist/assets/{TrendChart-BnJ_z_Ip-8PP2Ttx5.js → TrendChart-UOHctvPR-DYyf53nB.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D1U0xBzL-DWMtMU3P.js → TrendWithTransactions-DeXSoeh9-DHeP6Kmv.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-Bo9l9uDw-w1Di1v2h.js → UncategorizedAccountsMappingPage-BY8Y7Cfi-DtDaq4sQ.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-68TmJxRI-ClTOV1Ga.js → UnitIntegrationPage-TSdJXoyv-Cz-xulb6.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Cgxo-kPs-7HE8RrRn.js → UploadAdditionalDocumentOverlay-GdA3H_LM-C69p4BvM.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-D0T-_56--Bozo8IGD.js → Vendor2FAPopup-ga_dxJ2i-DbustIG7.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CXuz8qCs-BgCQ8sKJ.js → VendorACHDetailsPage-C0KPsWem-wXaugjAY.js} +1 -1
- package/dist/assets/{VendorDetailPage-XdXKT6C6-BpBs_08w.js → VendorDetailPage-DtHbNBi2-AhAahu41.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-D9bM52Dq-lQS5Eb9R.js → VendorDomesticWireDetailsPage-BRePkxjz-C_zV_um3.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BycAdkCM-BF1uBaWN.js → VendorFiling1099EditablePage-B9lgKnIN-DWOqfHoH.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DJ20U30K-C2xMC5RA.js → VendorFirstReviewPage-fnjh1JBs-eKAAo5iG.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CWM0qUI5-BvZcZxTa.js → VendorInternationalWireDetailsPage-B8mSTYwi-B8Dw9bcv.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C25EI591-DNZMv76Z.js → VendorInternationalWireSwiftDetailsPage-D7FYPVgc-BT4ij3cX.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-COdnN_-5-C6RZj4jP.js → VendorsAccountsSection-B5a7wuJN-D5T-paLW.js} +1 -1
- package/dist/assets/{VerifyDevice-DgUJHRD4-BmpB5n1i.js → VerifyDevice-CVJF9lwM-CPuvMYue.js} +1 -1
- package/dist/assets/{VideoPlayer-BpmcTJBM-DQk9qndK.js → VideoPlayer-DloIycOu-CLtG3Kiy.js} +1 -1
- package/dist/assets/{VideoPopup-B0Mebd5O-CsEoP_3Y.js → VideoPopup-D2oWKmZt-DPTUFVjt.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BA9frFhl-unl68OuI.js → WarningsDrawerPage-DW-8IxrS-DOJH3-n7.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CFLHbicW-BNiCHSEL.js → ZeniAccountDetailPage-CF5PQDtn-DCaodhL6.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CLFp-HZC-C7ZhyLPF.js → ZeniAccountListViewPage-Dvzgoo-B-DJDpKPpC.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Ckl-FxuF-DQRfXbZ_.js → ZeniAccountNavBarPieces-D7qqcIZ7-Ckj10NZU.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-UY251u5Y-YgCmw_Dj.js → ZeniAccountPromoPage-DD-ZYLox-Bmu7d_Bc.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Dyd_JQIP-CN5J54Fo.js → ZeniAccountSetupPage-ChTNTxo4-BfQrSTN7.js} +1 -1
- package/dist/assets/{ZeniCopyright-BsZ2nX3I-BqG8KaP3.js → ZeniCopyright-D7A5qQVt-DD6lHGWl.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DZV7XopX-CeQL-F7u.js → ZeniTransferAmountSlider-Clmv0ILZ-CusxQjDl.js} +1 -1
- package/dist/assets/{analyticsHelper-CGgt_qXV-B8CI40B8.js → analyticsHelper-Dn0mlAnz-iXePQX9C.js} +1 -1
- package/dist/assets/{analyticsHelper-CGnQfI5F.js → analyticsHelper-YKy7IxaP.js} +1 -1
- package/dist/assets/{chartTypes-CrYCtn5W-vvFJxyhx.js → chartTypes-A8wR1KBw-DpEneA3z.js} +1 -1
- package/dist/assets/{commonDimensions-CzZEAJMD-CXd4nX_H.js → commonDimensions-BT_as0IS-D3xsa4S9.js} +1 -1
- package/dist/assets/{crypto-cQYYQPTZ.js → crypto-Cicc6Fs8.js} +1 -1
- package/dist/assets/{detailCommon-DCm_e5wl-Dmz384l1.js → detailCommon-DppzaL-S-BgbDmqrB.js} +1 -1
- package/dist/assets/{downloadPdf-wjda1Kbt-CA-h_1ts.js → downloadPdf-CdA_CkNA-Bv6C7tQF.js} +1 -1
- package/dist/assets/{index-utnCtAcO.js → index-DI0MUGC6.js} +12 -12
- package/dist/assets/{lodash-D52QloPU.js → lodash-B66NTFTY.js} +6 -6
- package/dist/assets/{mapLoadingInProgressToTreeNode-CegpKrCb-CAUjmmc6.js → mapLoadingInProgressToTreeNode-_eXCwZ49-D7g990MI.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DmY1QvVV-Dyd_eDPt.js → mapSectionWithAcOnlyToTreeNode-Ch0t_vs_-BO4dZMxU.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CBqkMj---cnP7d7US.js → mapSpacerToTreeNode-DV0UxtV9-m8YDFU8F.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DN0p6EVx-p9sZxSMW.js → mapTimeframeBalancesToTreeNode-Mxxnpeq7-aaSrDsH6.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BdXepUFS-C5CRbd-m.js → mapTimeframeBalancesToTreeNode-puf5eiMx-Bhs3Sn9u.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D-hyDelr-Chgczrza.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B-W32Tm--Bv0I7MdF.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DcVKFWfH-ajwPTNjs.js → toCOABalancesWithID-CibeBR5w-DKx7lCaE.js} +1 -1
- package/dist/assets/{toChartData-CP77kYFN-WRS6hFfm.js → toChartData-D_R7lWVz-CD840bWJ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CAu0BSpC-PtGGDUlY.js → treasuryColorHelper-DudgBZZp-BB3FFLUP.js} +1 -1
- package/dist/assets/{uploadAttachment-NIzZa4c9-SVWT7q9X.js → uploadAttachment-DxrjP0NZ-kkI8V1hd.js} +1 -1
- package/dist/assets/{uploadReceipts-9DTOr0BG-DzIqT4ou.js → uploadReceipts-TOfVnojh-B2rywoul.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +9 -6
- package/dist/assets/CustomerOnboardingContainerPage-BQFnoCtd-B1bzOmSi.js +0 -1
- package/dist/assets/EditReimbursementDetailPage-Dqbs8qjg--rlw1Sms.js +0 -865
- package/dist/assets/ReimbursementDetailPage-DAw7ua01-D987A0H2.js +0 -314
- package/dist/assets/ScreenRoutes-GxRTI4h2.js +0 -206
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import{c as $t,q as Jr,l as H,d as Ze,z as Qe,y as lt,Z as Ah,e as Ih,f as Xr,F as Ph,N as Ot,O as tr,g as Mt,i as kt,P as Qr,o as It,Y as kh,U as jh,Q as Dt,k as bl,m as Pt,G as qh,p as Lh,u as hn,r as Nh,D as wl,v as Dh,w as El,x as Sl,B as Co,E as $h,J as Mh,K as Fh,L as Rl,R as Uh,V as Bh,X as Vh,S as Gh,T as zh,W as Hh,$ as Zh,a0 as Wh,a1 as Yh,a2 as Kh,a3 as Jh,a4 as Xh,a5 as Qh,a6 as ed}from"./index-DI0MUGC6.js";import{j as Y,D as en,S as Ft}from"./mui-Ty75qFQF.js";import{b as we,n as it,c as He,f as td,g as rd}from"./vendor-Bs1fkIUX.js";import{f as nd}from"./analyticsHelper-YKy7IxaP.js";import{g as et,u as Ce,f as We}from"./redux-CEhZD0hA.js";import{a as Ye,d as ht,e as id,N as Jt,R as wt,c as je,u as Po,b as Ao}from"./routing-Dk1A2KYI.js";import{B as Be}from"./analytics-CcevxdRy.js";import{p as Re}from"./sentry-BE5FTzpq.js";import{a as Je,b as ad,c as od,d as sd,e as ko,f as ud,g as cd,h as fd,i as Ut,j as Ol,k as Qt,l as tn,m as ld,n as hd,o as dd,p as pd,q as md,s as gd,t as vd,u as Tl,v as rr}from"./crypto-Cicc6Fs8.js";import yd from"qs";import{r as _d}from"./lodash-B66NTFTY.js";import"./liveblocks-8ht9CoL5.js";const bd={overlayWidth:new lt(100,100,50)},{common:{strings:Xo}}=tr.getLocalizedStrings();function wd(e,n){return{headerActions:{onTabChange:o=>{const i=kt(o),a=Mt(o);Ze.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(H.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ze.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Xo.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Xo.comma)}}),e(H.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(H.initializeCompanyHealthMetricViewLocalData(o))},onColumnSortConfigChanged:(o,i)=>{e(H.updateCompanyHealthViewUIState({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(H.fetchCompanyHealthMetricView())},onFiltersChange:o=>{e(H.updateCompanyHealthViewUIState({uiState:{filters:o}}))}}}}function Ed(e,n){return{headerData:{selectedTabOption:Ot("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sd=We(Ed,wd)(Ph);function dn({isDrawerOpen:e}){const n=Ye(),o=et(),i=$t(),a=Jr(),{companyId:t}=ht(),[r,s]=id(),[d,l]=we.useState(!1),u=Ce(b=>H.getCompanyHealthMetricView(b)),f=Ce(b=>H.getCompanyManagementView(b)),{additionalChurnFactors:h}=Ce(b=>H.getCompanyHealthMetricConfig(b)),{selectedCompanyDetail:w,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=u,g=Ce(b=>b.companyViewState.zeniUsers.fetchState),c=Ce(b=>b.companyHealthMetricConfigViewState);if(we.useEffect(()=>{const b=v=>v==="Not-Started"||v==="Error";u.fetchState==="Completed"?o(H.fetchAllCockpitViews(!1)):b(u.fetchState)&&(o(H.fetchCompanyHealthMetricView()),b(g)&&o(H.fetchZeniUsers()),b(c.fetchState)&&o(H.fetchCompanyHealthMetricConfig()))},[u.fetchState,c.fetchState]),we.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(H.initializeCompanyHealthMetricViewLocalData(t)),w!=null&&(Ze.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]),Qe.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return Y.jsxs(Y.Fragment,{children:[e===!0||m!=null&&w!=null?Y.jsx(en,{anchor:"right",open:m!=null,PaperProps:{style:{width:bd.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(H.removeSelectedCompanyId()),children:Y.jsx(Ah,{roomId:`cockpit_${m}`,autoConnect:!0,children:Y.jsx(Ih,{onSaveClick:()=>{m!=null&&o(H.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:b=>{u.selectedCompanyId!=null&&o(H.updateCompanyHealthMetricLocalStore({companyId:u.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>o(H.removeSelectedCompanyId()),analytics:Ze,urlSource:d,additionalChurnFactorsOptions:h})})}):null,Y.jsx(Sd,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:Xr.mixpanelHMUrl})]})}const xl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Rd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Od=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},De=({state:e,element:n})=>Qe.isSignedIn()===!0?Y.jsx(Y.Fragment,{children:n}):Y.jsx(Jt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Td(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/companies/:companyId",element:Y.jsx(De,{element:Y.jsx(dn,{isDrawerOpen:!0})})}),Y.jsx(je,{path:"/",element:Y.jsx(De,{element:Y.jsx(dn,{})})}),Y.jsx(je,{path:"/*",element:Y.jsx(De,{element:Y.jsx(dn,{})})})]})}const xd={drawerLeftMargin:new lt(0,0,240)};function nr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=Jr(),r=o?.valuePx(t)??xd.drawerLeftMargin.valuePx(t),s=$t();return Y.jsx(en,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Cd=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?Y.jsx(Ad,{children:Y.jsx(Qr,{size:"ExtraLarge",start:!0})}):null,Ad=it.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 ${It.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
+
`;function Id(e,n){const{loggedInUser:o,companyId:i,isMonthEnd:a,allUsers:t,isAuditScoreCompleted:r}=n,d=H.getReviewCompanySelectorView(e).companies.find(f=>f.companyId===i),l=H.getAuditRuleGroupViewSelectorView(e),u=i!=null?H.getAuditReportGroupViewSelectorView(i,e,o):null;return{allUsers:t,isAuditScoreCompleted:r,reviewCompanyView:d,loggedInUser:o,auditRuleGroups:l.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:u?.auditReportGroups??[],isControllerOrReviewer:u?.isControllerOrReviewer??!1},isMonthEnd:a,analytics:Ze}}function Pd(e,n){const{companyId:o,companyView:i,closeAuditScoreDrawer:a}=n;return{handleFetchAuditReportGroupView:t=>{o!=null&&e(H.fetchAuditReportGroupView(o,"generate",t))},handleGenerateAuditReport:t=>{o!=null&&(e(H.clearAuditReportGroupViewByCompanyId(o)),t.forEach(r=>{e(H.fetchAuditReportGroupView(o,"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(H.fetchReviewCompanyView()),a?a():n.navigate("../")},handleReasonAuditRule:(t,r,s,d)=>{o!=null&&e(H.saveReasonForAuditRule(o,r,t,s,d))}}}const kd=We(Id,Pd)(kh);function Cl({closeAuditScoreDrawer:e}){const n=Ye(),o=et(),{companyId:i}=ht(),a=Qe.getSignedInUser(),[t,r]=we.useState(!1);if(a==null)throw Error("Can't access Audit Report page without signing in...");const s=Ce(m=>H.getReviewCompanySelectorView(m)),d=Ce(m=>H.getCompanyManagementView(m).fetchState),l=Ce(m=>H.getCompanyByCompanyId(m.companyState,i??"")),u=Ce(m=>H.getAuditRuleGroupViewSelectorView(m)),f=Ce(m=>H.getAuditReportGroupViewSelectorView(i??"",m,a)),h=Ce(m=>H.getAllZeniUsersFromState(m));we.useEffect(()=>{s.fetchState==="Completed"&&u.fetchState==="Not-Started"&&o(H.fetchAuditRuleGroupView())},[s.fetchState,u.fetchState]),we.useEffect(()=>{u.fetchState==="Completed"&&d==="Completed"&&u.auditRuleGroups.forEach(m=>{if(f.auditReportGroups.find(g=>g.auditReportGroupId===m.auditRuleGroupId)==null&&i!=null){const c=s.companies.find(_=>_.companyId===i)?.auditSummary?.auditReportLastGeneratedDate!=null?"view":"generate";o(H.fetchAuditReportGroupView(i,c,m.auditRuleGroupId))}})},[u,s,f,d]),we.useEffect(()=>{const m=f.auditReportGroups.filter(y=>y.fetchState==="Completed"||y.fetchState==="Error");t===!1&&m.length!==0&&m.length===u.auditRuleGroups.length&&(r(!0),o(H.fetchReviewCompanyView(!0)))},[JSON.stringify(f.auditReportGroups.filter(m=>m.fetchState==="Completed"||m.fetchState==="Error"))]),we.useEffect(()=>{const m=f.auditReportGroups.filter(y=>y.fetchState==="In-Progress");t===!0&&m.length!==0&&m.length===u.auditRuleGroups.length&&r(!1)},[JSON.stringify(f.auditReportGroups.filter(m=>m.fetchState==="In-Progress"))]);const w=s.fetchState!=="Completed"||u.fetchState!=="Completed"||d!=="Completed"||u.auditRuleGroups.length===0;return w?Y.jsx(Cd,{fetchState:w?"In-Progress":"Completed"}):Y.jsx(Y.Fragment,{children:Y.jsx(kd,{isAuditScoreCompleted:(s.fetchState==="Completed"||s.fetchState==="Error")&&t,allUsers:h,companyId:i,isMonthEnd:!!e,navigate:n,loggedInUser:a,companyView:l,closeAuditScoreDrawer:e})})}const jd=it.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 qd({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:o}){const{companyId:i}=ht(),a=Qe.getSignedInUser();if(a==null)throw Error("Can't access Customer Request page without signing in...");const t=Ce(r=>H.getCompanyMonthEndReportSelectorView(r,i,a));return we.useEffect(()=>{o()},[]),Y.jsx(Y.Fragment,{children:t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?Y.jsx(jd,{children:Y.jsx(Qr,{size:"Large",start:!0})}):Y.jsx(jh,{onCloseClick:e,addCustomerRequest:n,snippets:t.companyMonthEndReportTemplatesData,bulletPoints:t.zeniRequestsData??[]})})}function Ld({onClose:e}){const n=et(),{companyId:o}=ht(),[i,a]=we.useState(!1),{useFeatureGate:t,useDynamicConfig:r}=Dt(),{isFeatureEnabled:s}=t(bl.enableZeniGPTFeatureForMonthEndEmail),{configValue:d}=r(Pt.monthEndPreviewEnablement);if(o==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,m]=we.useState(!1),[y,g]=we.useState([]),c=Qe.getSignedInUser();if(c==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const _=Ce(U=>H.getCompanyManagementView(U)),b=Ce(U=>H.getReviewCompanySelectorView(U)),v=Ce(U=>H.getAuditRuleGroupViewSelectorView(U)),E=Ce(U=>H.getAuditReportGroupViewSelectorView(o,U,c)),x=Ce(U=>H.getCompanyMonthEndReportSelectorView(U,o,c)),T=we.useCallback((U=!1)=>{n(H.clearAuditReportGroupViewByCompanyId(o)),u(!1),_.fetchState==="Completed"&&b.fetchState==="Completed"&&v.fetchState==="Completed"&&(v.auditRuleGroups.forEach(D=>{n(H.fetchAuditReportGroupView(o,"generate",D.auditRuleGroupId))}),n(H.fetchCompanyMonthEndReportView(U,o)),n(H.fetchCompanyMonthEndReportTemplates(o)))},[o,_.fetchState,b.fetchState,v.fetchState]);we.useEffect(()=>{const U=E.auditReportGroups.filter(D=>D.fetchState==="Completed"||D.fetchState==="Error");l===!1&&U.length!==0&&U.length===v.auditRuleGroups.length&&(u(!0),n(H.fetchReviewCompanyView(!0,!0)))},[E.auditReportGroups]);const P=we.useCallback(()=>{n(H.resetCompanyMonthEndReportFetchStatus({companyId:o})),u(!1),e()},[e]),F=we.useCallback(()=>{T(!0)},[T]),X=we.useCallback(U=>{n(H.sendCompanyMonthEndReport(o,U))},[]),K=we.useCallback((U,D,$,B)=>{n(H.saveCompanyMonthEndReport(U,o,D,!0,$,B))},[]),S=we.useCallback((U,D,$,B)=>{n(H.saveCompanyMonthEndReport(U,o,D,!1,$,B))},[]),R=we.useCallback(()=>{a(!1)},[]),L=we.useCallback(U=>{n(H.fetchImproveUsingZeniGPT(U,o))},[]),M=we.useCallback(U=>{n(H.updateAttachmentFiles({files:U}))},[]),Z=we.useCallback(U=>{n(H.removeAttachmentFiles(U))},[]),k=we.useCallback(()=>{n(H.openSnackbar({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),j=we.useCallback(()=>{n(H.closeSnackbar())},[]),q=we.useCallback(()=>{h(!0)},[]),N=we.useCallback(()=>{m(!0)},[]),V=we.useCallback(U=>{g(U),m(!1)},[]),G=we.useCallback(()=>{g([])},[]);return we.useEffect(()=>{x?.previewMonthEndReportStatus?.fetchState==="Completed"?a(!0):a(!1)},[x?.previewMonthEndReportStatus?.fetchState]),we.useEffect(()=>{(x?.sendMonthEndReportStatus?.fetchState==="Completed"||x?.saveMonthEndReportStatus?.fetchState==="Completed")&&P()},[x?.sendMonthEndReportStatus?.fetchState,x?.saveMonthEndReportStatus?.fetchState,P]),we.useEffect(()=>{n(H.fetchManagementView(!1)),n(H.fetchZeniUsers()),n(H.fetchAuditRuleGroupView())},[]),we.useEffect(()=>{T()},[T]),Y.jsxs(Y.Fragment,{children:[Y.jsx(nr,{isOpen:f||w,drawerLeftMargin:f?new lt(0,0,0,0):w?new lt(0,0,300,650):new lt(0,0,300,650),onClose:()=>{f?(n(H.fetchReviewCompanyView(!0,!0)),h(!1)):w&&m(!1)},children:Y.jsx(Nd,{onClick:U=>U.stopPropagation(),children:f?Y.jsx(Cl,{closeAuditScoreDrawer:()=>h(!1)}):w?Y.jsx(qd,{closeCustomerRequestDrawer:()=>m(!1),addCustomerRequest:V,resetCustomerRequest:G}):null})}),Y.jsx(qh,{companyId:o,enableZeniGPTFeature:s,enableSendingMonthEndEmail:d.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(d.companiesByPassPreviewMonthEndReport)?d.companiesByPassPreviewMonthEndReport.includes(o):!1,monthEndReportView:x,previewMode:i,customerRequestData:y,onNavigateBack:P,onRefresh:F,sendMonthEndReport:X,previewMonthEndReport:K,saveMonthEndReport:S,onEditClick:R,improveUsingZeniGPTClick:L,onRemoveFileAttachment:Z,onUpdateFileAttachment:M,onOpenFileAttachmentSnackBar:k,onCloseFileAttachmentSnackBar:j,onClickAuditScore:q,onClickCustomerRequest:N,isAuditScoreLoadingCompleted:l&&(b.fetchState==="Completed"||b.fetchState==="Error")})]})}const Nd=it(Ft)`
|
|
19
|
+
display: flex;
|
|
20
|
+
min-height: 100%;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
`;function Dd(){const e=et(),n=Ye(),{companyId:o,reportDate:i}=ht(),a=Ce(d=>H.getCompanyManagementView(d).fetchState);if(o==null||i==null)throw Error("Can't access historic Email without company id and reportDate...");const t=Ce(d=>H.getCompanyMonthEndReportHistoricData(d,o,H.zeniDate(i))),r=we.useCallback(d=>{n(`../../management/month-end-report-history/company/${o}/${d.format(tr.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(H.fetchCompanyMonthEndReportHistoricData(o,d))},[o]),s=we.useCallback(()=>{a==="Completed"&&t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&(e(H.fetchCompanyMonthEndReportHistoricDates(o)),e(H.fetchCompanyMonthEndReportHistoricData(o,H.zeniDate(i))))},[o,a,i,t.fetchState]);return we.useEffect(()=>{e(H.fetchManagementView(!1))},[]),we.useEffect(()=>{s()},[s]),Y.jsx(Lh,{monthEndReportHistoricData:t,reportSentDate:H.zeniDate(i),onDateChange:r,onNavigateBack:()=>n("../../"),onRefresh:s})}function $d({isOpen:e,emailHistoryMode:n,onClose:o}){return n?Y.jsx(nr,{drawerLeftMargin:new lt(hn[0],hn[0],hn[0]),isOpen:e,onClose:o,children:Y.jsx(Dd,{})}):Y.jsx(Nh,{isOpen:e,children:Y.jsx(Ld,{onClose:o})})}const{common:{strings:pn},dateFormat:Md}=tr.getLocalizedStrings();function Fd(e,n){const{loggedInUserRole:o,loggedInUser:i,navigate:a}=n;return{headerActions:{onTabChange:t=>{const r=kt(t),s=Mt(t);Ze.trackCockpitTabClicked(s),a(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(t,r)=>{e(H.updateCompanyManagementUIState({filterText:r}))},onFiltersChange:(t,r)=>{e(H.updateCompanyManagementUIState({filters:r}))}}},managementPageActions:{onColumnSortConfigChanged:(t,r)=>{e(H.updateCompanyManagementUIState({sortKey:t,sortOrder:r}))},changeHandlers:(t,r)=>{const s=Vd(r);Object.keys(s).length>0&&e(H.companyManagementSaveUpdates(t,s))},onScroll:t=>{e(H.updateCompanyManagementUIState({scrollYOffset:t}))},onViewDetailsLinkClicked:t=>{a(`./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=>{a(`/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&&Ze.trackCockpitTaskCardClicked({tenantName:t.company.company.companyInfo.name,tenantId:t.company.company.companyInfo.tenantId,user:{name:i.firstName!=null?i.firstName.concat(pn.space,i.lastName??pn.empty).trim():i.lastName??pn.empty,email:i.userEmail,role:o?.userRoles??[]},controllerEmails:r}),window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(t,r)=>{e(H.updateCompanyManagementUIState({filters:r}))},onCockpitReloadData:t=>{t==="management"&&e(H.fetchCompanyManagementView())},showMonthEndReportHistoricData:(t,r)=>{a(`/management/month-end-report-history/company/${t}/${r.startOf("month").format(Md.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Ud(e,n){return{headerData:{selectedTabOption:Ot("management")},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,managementView:n.managementView}}}const Bd=We(Ud,Fd)(wl);function cr({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:n=!1}){const o=Ye(),i=et(),{useDynamicConfig:a}=Dt(),{configValue:t}=a(Pt.monthEndInsightsEnablement),{configValue:r}=a(Pt.expenseAutomationEnablement),s=Qe.getSignedInUser();if(s==null)throw Error("Can't access Management page without signing in...");const d=Ce(h=>H.getCompanyManagementView(h)),l=Ce(h=>H.getUserRoleByUserId(h.userRoleState,s.userId)),u=Ce(h=>h.companyViewState.zeniUsers.fetchState);we.useEffect(()=>{d.fetchState==="Completed"?i(H.fetchAllCockpitViews(!1)):(d.fetchState==="Not-Started"||d.fetchState==="Error")&&(i(H.fetchCompanyManagementView()),(u==="Not-Started"||u==="Error")&&i(H.fetchZeniUsers()))},[d.fetchState]);const f=()=>{o(-1)};return Y.jsxs(Y.Fragment,{children:[e===!0?Y.jsx($d,{isOpen:e===!0,emailHistoryMode:n===!0,onClose:f}):null,Y.jsx(Bd,{loggedInUser:s,loggedInUserRole:l,managementView:d,navigate:o,companiesExcludedFromMonthEndReport:t.companiesExcludedFromMonthEndReport!=null?t.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:r.expenseAutomationEnabledCompanies!=null&&Array.isArray(r.expenseAutomationEnabledCompanies)?r.expenseAutomationEnabledCompanies:[]})]})}const Vd=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function Gd(e,n){return{onGoBack:()=>{n.navigate(-1)},onGoHome:()=>{n.navigate("/")}}}const zd=We(null,Gd)(Dh);function jo(){const e=Ye();return Y.jsx(zd,{navigate:e})}const Hd=Object.freeze(Object.defineProperty({__proto__:null,default:jo},Symbol.toStringTag,{value:"Module"})),{dateFormat:Zd}=tr.getLocalizedStrings();function Wd(e,n){const{navigate:o}=n;return{headerActions:{onNavigateBack:()=>{n.navigate("../")},filterActions:{onFilterTextChanged:(i,a)=>{i==="management"&&e(H.updateCompanyManagementUIState({filterText:a}))},onFiltersChange:(i,a)=>{i==="management"&&e(H.updateCompanyManagementUIState({filters:a}))}}},managementPageActions:{onColumnSortConfigChanged:(i,a)=>{e(H.updateCompanyManagementUIState({sortKey:i,sortOrder:a}))},changeHandlers:(i,a)=>{const t=Xd(a);Object.keys(t).length>0&&e(H.companyManagementSaveUpdates(i,t))},onScroll:i=>{e(H.updateCompanyManagementUIState({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,a)=>{i==="management"&&e(H.updateCompanyManagementUIState({filters:a}))},onMonthEndReportPageClick:i=>{o(`/management/month-end-report/company/${i.company.company.companyInfo.companyId}`)},onCockpitReloadData:i=>{i==="management"&&e(H.fetchCompanyManagementView())},showMonthEndReportHistoricData:(i,a)=>{o(`/management/month-end-report-history/company/${i}/${a.startOf("month").format(Zd.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Yd(e,n){return{headerData:{selectedTabOption:Ot("management"),showBackButton:!0},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,showDetailsPageLink:!1,managementView:{...n.managementView,uiState:{...n.managementView.uiState,scrollYOffset:0}}}}}const Kd=We(Yd,Wd)(wl);function Jd(){const e=Ye(),[n,o]=we.useState(!1),i=et(),{parentId:a}=ht(),{useDynamicConfig:t}=Dt(),{configValue:r}=t(Pt.monthEndInsightsEnablement),{configValue:s}=t(Pt.expenseAutomationEnablement),d=a!=null?Ce(f=>H.getParentSubsidiaryManagementView(f,a)):void 0;we.useEffect(()=>{n===!1&&a!=null&&(o(!0),i(H.fetchParentSubsidiaryManagementView(!1,a)))},[n]);const l=Qe.getSignedInUser();if(l==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const u=Ce(f=>H.getUserRoleByUserId(f.userRoleState,l.userId));return a==null?Y.jsx(jo,{}):d!=null?Y.jsx(Kd,{loggedInUser:l,loggedInUserRole:u,managementView:d,navigate:e,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]}):null}const Xd=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function Qd(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/",element:Y.jsx(De,{element:Y.jsx(cr,{})})}),Y.jsx(je,{path:"/parent/:parentId",element:Y.jsx(De,{element:Y.jsx(Jd,{})})}),Y.jsx(je,{path:"/month-end-report/company/:companyId",element:Y.jsx(De,{element:Y.jsx(cr,{isMonthEndEmailDrawerOpen:!0})})}),Y.jsx(je,{path:"/month-end-report-history/company/:companyId/:reportDate",element:Y.jsx(De,{element:Y.jsx(cr,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),Y.jsx(je,{path:"/*",element:Y.jsx(De,{element:Y.jsx(cr,{})})})]})}var mn={exports:{}},Qo;function ep(){return Qo||(Qo=1,function(e){(function(n){function o(a){return typeof a=="function"?a:typeof Be=="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 Be(r,"base64").toString("binary")}:typeof n.base64js=="object"?function(r){var s=n.base64js.b64ToByteArray(r);return Array.prototype.map.call(s,function(d){return String.fromCharCode(d)}).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")}}var i=o(n.atob);n.atob=i,e&&e.exports&&(e.exports=i)})(window)}(mn)),mn.exports}var fr={exports:{}},gn={exports:{}},vn={},es;function Al(){if(es)return vn;es=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,v){return Object.defineProperty(_,"prototype",{writable:!1}),_}function o(_,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&&a(_,b)}function a(_,b){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,x){return E.__proto__=x,E},a(_,b)}function t(_){var b=d();return function(){var E=l(_),x;if(b){var T=l(this).constructor;x=Reflect.construct(E,arguments,T)}else x=E.apply(this,arguments);return r(this,x)}}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 d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(_){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},l(_)}var u={},f,h;function w(_,b,v){v||(v=Error);function E(T,P,F){return typeof b=="string"?b:b(T,P,F)}var x=function(T){i(F,T);var P=t(F);function F(X,K,S){var R;return o(this,F),R=P.call(this,E(X,K,S)),R.code=_,R}return n(F)}(v);u[_]=x}function m(_,b){if(Array.isArray(_)){var v=_.length;return _=_.map(function(E){return String(E)}),v>2?"one of ".concat(b," ").concat(_.slice(0,v-1).join(", "),", or ")+_[v-1]:v===2?"one of ".concat(b," ").concat(_[0]," or ").concat(_[1]):"of ".concat(b," ").concat(_[0])}else return"of ".concat(b," ").concat(String(_))}function y(_,b,v){return _.substr(0,b.length)===b}function g(_,b,v){return(v===void 0||v>_.length)&&(v=_.length),_.substring(v-b.length,v)===b}function c(_,b,v){return typeof v!="number"&&(v=0),v+b.length>_.length?!1:_.indexOf(b,v)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(_,b,v){f===void 0&&(f=er()),f(typeof _=="string","'name' must be a string");var E;typeof b=="string"&&y(b,"not ")?(E="must not be",b=b.replace(/^not /,"")):E="must be";var x;if(g(_," argument"))x="The ".concat(_," ").concat(E," ").concat(m(b,"type"));else{var T=c(_,".")?"property":"argument";x='The "'.concat(_,'" ').concat(T," ").concat(E," ").concat(m(b,"type"))}return x+=". Received type ".concat(e(v)),x},TypeError),w("ERR_INVALID_ARG_VALUE",function(_,b){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";h===void 0&&(h=Je());var E=h.inspect(b);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(v,". Received ").concat(E)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(_,b,v){var E;return v&&v.constructor&&v.constructor.name?E="instance of ".concat(v.constructor.name):E="type ".concat(e(v)),"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(_),v=0;v<_;v++)b[v]=arguments[v];f===void 0&&(f=er()),f(b.length>0,"At least one arg needs to be specified");var E="The ",x=b.length;switch(b=b.map(function(T){return'"'.concat(T,'"')}),x){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,x-1).join(", "),E+=", and ".concat(b[x-1]," arguments");break}return"".concat(E," must be specified")},TypeError),vn.codes=u,vn}var yn,ts;function tp(){if(ts)return yn;ts=1;function e(q,N){var V=Object.keys(q);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(q);N&&(G=G.filter(function(U){return Object.getOwnPropertyDescriptor(q,U).enumerable})),V.push.apply(V,G)}return V}function n(q){for(var N=1;N<arguments.length;N++){var V=arguments[N]!=null?arguments[N]:{};N%2?e(Object(V),!0).forEach(function(G){o(q,G,V[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(V)):e(Object(V)).forEach(function(G){Object.defineProperty(q,G,Object.getOwnPropertyDescriptor(V,G))})}return q}function o(q,N,V){return N=r(N),N in q?Object.defineProperty(q,N,{value:V,enumerable:!0,configurable:!0,writable:!0}):q[N]=V,q}function i(q,N){if(!(q instanceof N))throw new TypeError("Cannot call a class as a function")}function a(q,N){for(var V=0;V<N.length;V++){var G=N[V];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(q,r(G.key),G)}}function t(q,N,V){return N&&a(q.prototype,N),Object.defineProperty(q,"prototype",{writable:!1}),q}function r(q){var N=s(q,"string");return _(N)==="symbol"?N:String(N)}function s(q,N){if(_(q)!=="object"||q===null)return q;var V=q[Symbol.toPrimitive];if(V!==void 0){var G=V.call(q,N);if(_(G)!=="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}function d(q,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(N&&N.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),N&&g(q,N)}function l(q){var N=m();return function(){var G=c(q),U;if(N){var D=c(this).constructor;U=Reflect.construct(G,arguments,D)}else U=G.apply(this,arguments);return u(this,U)}}function u(q,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(q)}function f(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function h(q){var N=typeof Map=="function"?new Map:void 0;return h=function(G){if(G===null||!y(G))return G;if(typeof G!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(G))return N.get(G);N.set(G,U)}function U(){return w(G,arguments,c(this).constructor)}return U.prototype=Object.create(G.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),g(U,G)},h(q)}function w(q,N,V){return m()?w=Reflect.construct.bind():w=function(U,D,$){var B=[null];B.push.apply(B,D);var re=Function.bind.apply(U,B),ee=new re;return $&&g(ee,$.prototype),ee},w.apply(null,arguments)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(q){return Function.toString.call(q).indexOf("[native code]")!==-1}function g(q,N){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,U){return G.__proto__=U,G},g(q,N)}function c(q){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},c(q)}function _(q){"@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},_(q)}var b=Je(),v=b.inspect,E=Al(),x=E.codes.ERR_INVALID_ARG_TYPE;function T(q,N,V){return(V===void 0||V>q.length)&&(V=q.length),q.substring(V-N.length,V)===N}function P(q,N){if(N=Math.floor(N),q.length==0||N==0)return"";var V=q.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)q+=q,N--;return q+=q.substring(0,V-q.length),q}var F="",X="",K="",S="",R={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:"},L=10;function M(q){var N=Object.keys(q),V=Object.create(Object.getPrototypeOf(q));return N.forEach(function(G){V[G]=q[G]}),Object.defineProperty(V,"message",{value:q.message}),V}function Z(q){return v(q,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function k(q,N,V){var G="",U="",D=0,$="",B=!1,re=Z(q),ee=re.split(`
|
|
26
|
+
`),se=Z(N).split(`
|
|
27
|
+
`),le=0,ge="";if(V==="strictEqual"&&_(q)==="object"&&_(N)==="object"&&q!==null&&N!==null&&(V="strictEqualObject"),ee.length===1&&se.length===1&&ee[0]!==se[0]){var ye=ee[0].length+se[0].length;if(ye<=L){if((_(q)!=="object"||q===null)&&(_(N)!=="object"||N===null)&&(q!==0||N!==0))return"".concat(R[V],`
|
|
28
|
+
|
|
29
|
+
`)+"".concat(ee[0]," !== ").concat(se[0],`
|
|
30
|
+
`)}else if(V!=="strictEqualObject"){var Se=Re.stderr&&Re.stderr.isTTY?Re.stderr.columns:80;if(ye<Se){for(;ee[0][le]===se[0][le];)le++;le>2&&(ge=`
|
|
31
|
+
`.concat(P(" ",le),"^"),le=0)}}}for(var Ae=ee[ee.length-1],qe=se[se.length-1];Ae===qe&&(le++<2?$=`
|
|
32
|
+
`.concat(Ae).concat($):G=Ae,ee.pop(),se.pop(),!(ee.length===0||se.length===0));)Ae=ee[ee.length-1],qe=se[se.length-1];var Le=Math.max(ee.length,se.length);if(Le===0){var ke=re.split(`
|
|
33
|
+
`);if(ke.length>30)for(ke[26]="".concat(F,"...").concat(S);ke.length>27;)ke.pop();return"".concat(R.notIdentical,`
|
|
34
|
+
|
|
35
|
+
`).concat(ke.join(`
|
|
36
|
+
`),`
|
|
37
|
+
`)}le>3&&($=`
|
|
38
|
+
`.concat(F,"...").concat(S).concat($),B=!0),G!==""&&($=`
|
|
39
|
+
`.concat(G).concat($),G="");var xe=0,Fe=R[V]+`
|
|
40
|
+
`.concat(X,"+ actual").concat(S," ").concat(K,"- expected").concat(S),rt=" ".concat(F,"...").concat(S," Lines skipped");for(le=0;le<Le;le++){var $e=le-D;if(ee.length<le+1)$e>1&&le>2&&($e>4?(U+=`
|
|
41
|
+
`.concat(F,"...").concat(S),B=!0):$e>3&&(U+=`
|
|
42
|
+
`.concat(se[le-2]),xe++),U+=`
|
|
43
|
+
`.concat(se[le-1]),xe++),D=le,G+=`
|
|
44
|
+
`.concat(K,"-").concat(S," ").concat(se[le]),xe++;else if(se.length<le+1)$e>1&&le>2&&($e>4?(U+=`
|
|
45
|
+
`.concat(F,"...").concat(S),B=!0):$e>3&&(U+=`
|
|
46
|
+
`.concat(ee[le-2]),xe++),U+=`
|
|
47
|
+
`.concat(ee[le-1]),xe++),D=le,U+=`
|
|
48
|
+
`.concat(X,"+").concat(S," ").concat(ee[le]),xe++;else{var Q=se[le],pe=ee[le],A=pe!==Q&&(!T(pe,",")||pe.slice(0,-1)!==Q);A&&T(Q,",")&&Q.slice(0,-1)===pe&&(A=!1,pe+=","),A?($e>1&&le>2&&($e>4?(U+=`
|
|
49
|
+
`.concat(F,"...").concat(S),B=!0):$e>3&&(U+=`
|
|
50
|
+
`.concat(ee[le-2]),xe++),U+=`
|
|
51
|
+
`.concat(ee[le-1]),xe++),D=le,U+=`
|
|
52
|
+
`.concat(X,"+").concat(S," ").concat(pe),G+=`
|
|
53
|
+
`.concat(K,"-").concat(S," ").concat(Q),xe+=2):(U+=G,G="",($e===1||le===0)&&(U+=`
|
|
54
|
+
`.concat(pe),xe++))}if(xe>20&&le<Le-2)return"".concat(Fe).concat(rt,`
|
|
55
|
+
`).concat(U,`
|
|
56
|
+
`).concat(F,"...").concat(S).concat(G,`
|
|
57
|
+
`)+"".concat(F,"...").concat(S)}return"".concat(Fe).concat(B?rt:"",`
|
|
58
|
+
`).concat(U).concat(G).concat($).concat(ge)}var j=function(q,N){d(G,q);var V=l(G);function G(U){var D;if(i(this,G),_(U)!=="object"||U===null)throw new x("options","Object",U);var $=U.message,B=U.operator,re=U.stackStartFn,ee=U.actual,se=U.expected,le=Error.stackTraceLimit;if(Error.stackTraceLimit=0,$!=null)D=V.call(this,String($));else if(Re.stderr&&Re.stderr.isTTY&&(Re.stderr&&Re.stderr.getColorDepth&&Re.stderr.getColorDepth()!==1?(F="\x1B[34m",X="\x1B[32m",S="\x1B[39m",K="\x1B[31m"):(F="",X="",S="",K="")),_(ee)==="object"&&ee!==null&&_(se)==="object"&&se!==null&&"stack"in ee&&ee instanceof Error&&"stack"in se&&se instanceof Error&&(ee=M(ee),se=M(se)),B==="deepStrictEqual"||B==="strictEqual")D=V.call(this,k(ee,se,B));else if(B==="notDeepStrictEqual"||B==="notStrictEqual"){var ge=R[B],ye=Z(ee).split(`
|
|
59
|
+
`);if(B==="notStrictEqual"&&_(ee)==="object"&&ee!==null&&(ge=R.notStrictEqualObject),ye.length>30)for(ye[26]="".concat(F,"...").concat(S);ye.length>27;)ye.pop();ye.length===1?D=V.call(this,"".concat(ge," ").concat(ye[0])):D=V.call(this,"".concat(ge,`
|
|
60
|
+
|
|
61
|
+
`).concat(ye.join(`
|
|
62
|
+
`),`
|
|
63
|
+
`))}else{var Se=Z(ee),Ae="",qe=R[B];B==="notDeepEqual"||B==="notEqual"?(Se="".concat(R[B],`
|
|
64
|
+
|
|
65
|
+
`).concat(Se),Se.length>1024&&(Se="".concat(Se.slice(0,1021),"..."))):(Ae="".concat(Z(se)),Se.length>512&&(Se="".concat(Se.slice(0,509),"...")),Ae.length>512&&(Ae="".concat(Ae.slice(0,509),"...")),B==="deepEqual"||B==="equal"?Se="".concat(qe,`
|
|
66
|
+
|
|
67
|
+
`).concat(Se,`
|
|
68
|
+
|
|
69
|
+
should equal
|
|
70
|
+
|
|
71
|
+
`):Ae=" ".concat(B," ").concat(Ae)),D=V.call(this,"".concat(Se).concat(Ae))}return Error.stackTraceLimit=le,D.generatedMessage=!$,Object.defineProperty(f(D),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),D.code="ERR_ASSERTION",D.actual=ee,D.expected=se,D.operator=B,Error.captureStackTrace&&Error.captureStackTrace(f(D),re),D.stack,D.name="AssertionError",u(D)}return t(G,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:N,value:function(D,$){return v(this,n(n({},$),{},{customInspect:!1,depth:0}))}}]),G}(h(Error),v.custom);return yn=j,yn}var _n,rs;function Il(){if(rs)return _n;rs=1;var e=Object.prototype.toString;return _n=function(o){var i=e.call(o),a=i==="[object Arguments]";return a||(a=i!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&e.call(o.callee)==="[object Function]"),a},_n}var bn,ns;function rp(){if(ns)return bn;ns=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Il(),a=Object.prototype.propertyIsEnumerable,t=!a.call({toString:null},"toString"),r=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=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{d(window[h])}catch{return!0}}catch{return!0}return!1}(),f=function(h){if(typeof window>"u"||!u)return d(h);try{return d(h)}catch{return!1}};e=function(w){var m=w!==null&&typeof w=="object",y=o.call(w)==="[object Function]",g=i(w),c=m&&o.call(w)==="[object String]",_=[];if(!m&&!y&&!g)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(c&&w.length>0&&!n.call(w,0))for(var v=0;v<w.length;++v)_.push(String(v));if(g&&w.length>0)for(var E=0;E<w.length;++E)_.push(String(E));else for(var x in w)!(b&&x==="prototype")&&n.call(w,x)&&_.push(String(x));if(t)for(var T=f(w),P=0;P<s.length;++P)!(T&&s[P]==="constructor")&&n.call(w,s[P])&&_.push(s[P]);return _}}return bn=e,bn}var wn,is;function Pl(){if(is)return wn;is=1;var e=Array.prototype.slice,n=Il(),o=Object.keys,i=o?function(r){return o(r)}:rp(),a=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(d){return n(d)?a(e.call(d)):a(d)})}else Object.keys=i;return Object.keys||i},wn=i,wn}var En,as;function np(){if(as)return En;as=1;var e=Pl(),n=ad()(),o=od(),i=sd(),a=o("Array.prototype.push"),t=o("Object.prototype.propertyIsEnumerable"),r=n?i.getOwnPropertySymbols:null;return En=function(d,l){if(d==null)throw new TypeError("target must be an object");var u=i(d);if(arguments.length===1)return u;for(var f=1;f<arguments.length;++f){var h=i(arguments[f]),w=e(h),m=n&&(i.getOwnPropertySymbols||r);if(m)for(var y=m(h),g=0;g<y.length;++g){var c=y[g];t(h,c)&&a(w,c)}for(var _=0;_<w.length;++_){var b=w[_];if(t(h,b)){var v=h[b];u[b]=v}}}return u},En}var Sn,os;function ip(){if(os)return Sn;os=1;var e=np(),n=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",a=i.split(""),t={},r=0;r<a.length;++r)t[a[r]]=a[r];var s=Object.assign({},t),d="";for(var l in s)d+=l;return i!==d},o=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 Sn=function(){return!Object.assign||n()||o()?e:Object.assign},Sn}var Rn,ss;function kl(){if(ss)return Rn;ss=1;var e=function(n){return n!==n};return Rn=function(o,i){return o===0&&i===0?1/o===1/i:!!(o===i||e(o)&&e(i))},Rn}var On,us;function qo(){if(us)return On;us=1;var e=kl();return On=function(){return typeof Object.is=="function"?Object.is:e},On}var Tn,cs;function ap(){if(cs)return Tn;cs=1;var e=ud(),n=ko(),o=n(e("String.prototype.indexOf"));return Tn=function(a,t){var r=e(a,!!t);return typeof r=="function"&&o(a,".prototype.")>-1?n(r):r},Tn}var xn,fs;function rn(){if(fs)return xn;fs=1;var e=Pl(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",o=Object.prototype.toString,i=Array.prototype.concat,a=cd(),t=function(l){return typeof l=="function"&&o.call(l)==="[object Function]"},r=fd()(),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?a(l,u,f,!0):a(l,u,f)},d=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 d.supportsDescriptors=!!r,xn=d,xn}var Cn,ls;function op(){if(ls)return Cn;ls=1;var e=qo(),n=rn();return Cn=function(){var i=e();return n(Object,{is:i},{is:function(){return Object.is!==i}}),i},Cn}var An,hs;function sp(){if(hs)return An;hs=1;var e=rn(),n=ko(),o=kl(),i=qo(),a=op(),t=n(i(),Object);return e(t,{getPolyfill:i,implementation:o,shim:a}),An=t,An}var In,ds;function jl(){return ds||(ds=1,In=function(n){return n!==n}),In}var Pn,ps;function ql(){if(ps)return Pn;ps=1;var e=jl();return Pn=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Pn}var kn,ms;function up(){if(ms)return kn;ms=1;var e=rn(),n=ql();return kn=function(){var i=n();return e(Number,{isNaN:i},{isNaN:function(){return Number.isNaN!==i}}),i},kn}var jn,gs;function cp(){if(gs)return jn;gs=1;var e=ko(),n=rn(),o=jl(),i=ql(),a=up(),t=e(i(),Number);return n(t,{getPolyfill:i,implementation:o,shim:a}),jn=t,jn}var qn,vs;function fp(){if(vs)return qn;vs=1;function e(A,J){return t(A)||a(A,J)||o(A,J)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
72
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(A,J){if(A){if(typeof A=="string")return i(A,J);var fe=Object.prototype.toString.call(A).slice(8,-1);if(fe==="Object"&&A.constructor&&(fe=A.constructor.name),fe==="Map"||fe==="Set")return Array.from(A);if(fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fe))return i(A,J)}}function i(A,J){(J==null||J>A.length)&&(J=A.length);for(var fe=0,_e=new Array(J);fe<J;fe++)_e[fe]=A[fe];return _e}function a(A,J){var fe=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(fe!=null){var _e,me,he,Te,I=[],ie=!0,ce=!1;try{if(he=(fe=fe.call(A)).next,J!==0)for(;!(ie=(_e=he.call(fe)).done)&&(I.push(_e.value),I.length!==J);ie=!0);}catch(de){ce=!0,me=de}finally{try{if(!ie&&fe.return!=null&&(Te=fe.return(),Object(Te)!==Te))return}finally{if(ce)throw me}}return I}}function t(A){if(Array.isArray(A))return A}function r(A){"@babel/helpers - typeof";return r=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},r(A)}var s=/a/g.flags!==void 0,d=function(J){var fe=[];return J.forEach(function(_e){return fe.push(_e)}),fe},l=function(J){var fe=[];return J.forEach(function(_e,me){return fe.push([me,_e])}),fe},u=Object.is?Object.is:sp(),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:cp();function w(A){return A.call.bind(A)}var m=w(Object.prototype.hasOwnProperty),y=w(Object.prototype.propertyIsEnumerable),g=w(Object.prototype.toString),c=Je().types,_=c.isAnyArrayBuffer,b=c.isArrayBufferView,v=c.isDate,E=c.isMap,x=c.isRegExp,T=c.isSet,P=c.isNativeError,F=c.isBoxedPrimitive,X=c.isNumberObject,K=c.isStringObject,S=c.isBooleanObject,R=c.isBigIntObject,L=c.isSymbolObject,M=c.isFloat32Array,Z=c.isFloat64Array;function k(A){if(A.length===0||A.length>10)return!0;for(var J=0;J<A.length;J++){var fe=A.charCodeAt(J);if(fe<48||fe>57)return!0}return A.length===10&&A>=Math.pow(2,32)}function j(A){return Object.keys(A).filter(k).concat(f(A).filter(Object.prototype.propertyIsEnumerable.bind(A)))}/*!
|
|
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 q(A,J){if(A===J)return 0;for(var fe=A.length,_e=J.length,me=0,he=Math.min(fe,_e);me<he;++me)if(A[me]!==J[me]){fe=A[me],_e=J[me];break}return fe<_e?-1:_e<fe?1:0}var N=!0,V=!1,G=0,U=1,D=2,$=3;function B(A,J){return s?A.source===J.source&&A.flags===J.flags:RegExp.prototype.toString.call(A)===RegExp.prototype.toString.call(J)}function re(A,J){if(A.byteLength!==J.byteLength)return!1;for(var fe=0;fe<A.byteLength;fe++)if(A[fe]!==J[fe])return!1;return!0}function ee(A,J){return A.byteLength!==J.byteLength?!1:q(new Uint8Array(A.buffer,A.byteOffset,A.byteLength),new Uint8Array(J.buffer,J.byteOffset,J.byteLength))===0}function se(A,J){return A.byteLength===J.byteLength&&q(new Uint8Array(A),new Uint8Array(J))===0}function le(A,J){return X(A)?X(J)&&u(Number.prototype.valueOf.call(A),Number.prototype.valueOf.call(J)):K(A)?K(J)&&String.prototype.valueOf.call(A)===String.prototype.valueOf.call(J):S(A)?S(J)&&Boolean.prototype.valueOf.call(A)===Boolean.prototype.valueOf.call(J):R(A)?R(J)&&BigInt.prototype.valueOf.call(A)===BigInt.prototype.valueOf.call(J):L(J)&&Symbol.prototype.valueOf.call(A)===Symbol.prototype.valueOf.call(J)}function ge(A,J,fe,_e){if(A===J)return A!==0?!0:fe?u(A,J):!0;if(fe){if(r(A)!=="object")return typeof A=="number"&&h(A)&&h(J);if(r(J)!=="object"||A===null||J===null||Object.getPrototypeOf(A)!==Object.getPrototypeOf(J))return!1}else{if(A===null||r(A)!=="object")return J===null||r(J)!=="object"?A==J:!1;if(J===null||r(J)!=="object")return!1}var me=g(A),he=g(J);if(me!==he)return!1;if(Array.isArray(A)){if(A.length!==J.length)return!1;var Te=j(A),I=j(J);return Te.length!==I.length?!1:Se(A,J,fe,_e,U,Te)}if(me==="[object Object]"&&(!E(A)&&E(J)||!T(A)&&T(J)))return!1;if(v(A)){if(!v(J)||Date.prototype.getTime.call(A)!==Date.prototype.getTime.call(J))return!1}else if(x(A)){if(!x(J)||!B(A,J))return!1}else if(P(A)||A instanceof Error){if(A.message!==J.message||A.name!==J.name)return!1}else if(b(A)){if(!fe&&(M(A)||Z(A))){if(!re(A,J))return!1}else if(!ee(A,J))return!1;var ie=j(A),ce=j(J);return ie.length!==ce.length?!1:Se(A,J,fe,_e,G,ie)}else{if(T(A))return!T(J)||A.size!==J.size?!1:Se(A,J,fe,_e,D);if(E(A))return!E(J)||A.size!==J.size?!1:Se(A,J,fe,_e,$);if(_(A)){if(!se(A,J))return!1}else if(F(A)&&!le(A,J))return!1}return Se(A,J,fe,_e,G)}function ye(A,J){return J.filter(function(fe){return y(A,fe)})}function Se(A,J,fe,_e,me,he){if(arguments.length===5){he=Object.keys(A);var Te=Object.keys(J);if(he.length!==Te.length)return!1}for(var I=0;I<he.length;I++)if(!m(J,he[I]))return!1;if(fe&&arguments.length===5){var ie=f(A);if(ie.length!==0){var ce=0;for(I=0;I<ie.length;I++){var de=ie[I];if(y(A,de)){if(!y(J,de))return!1;he.push(de),ce++}else if(y(J,de))return!1}var W=f(J);if(ie.length!==W.length&&ye(J,W).length!==ce)return!1}else{var oe=f(J);if(oe.length!==0&&ye(J,oe).length!==0)return!1}}if(he.length===0&&(me===G||me===U&&A.length===0||A.size===0))return!0;if(_e===void 0)_e={val1:new Map,val2:new Map,position:0};else{var O=_e.val1.get(A);if(O!==void 0){var ue=_e.val2.get(J);if(ue!==void 0)return O===ue}_e.position++}_e.val1.set(A,_e.position),_e.val2.set(J,_e.position);var Oe=$e(A,J,fe,he,_e,me);return _e.val1.delete(A),_e.val2.delete(J),Oe}function Ae(A,J,fe,_e){for(var me=d(A),he=0;he<me.length;he++){var Te=me[he];if(ge(J,Te,fe,_e))return A.delete(Te),!0}return!1}function qe(A){switch(r(A)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":A=+A;case"number":if(h(A))return!1}return!0}function Le(A,J,fe){var _e=qe(fe);return _e??(J.has(_e)&&!A.has(_e))}function ke(A,J,fe,_e,me){var he=qe(fe);if(he!=null)return he;var Te=J.get(he);return Te===void 0&&!J.has(he)||!ge(_e,Te,!1,me)?!1:!A.has(he)&&ge(_e,Te,!1,me)}function xe(A,J,fe,_e){for(var me=null,he=d(A),Te=0;Te<he.length;Te++){var I=he[Te];if(r(I)==="object"&&I!==null)me===null&&(me=new Set),me.add(I);else if(!J.has(I)){if(fe||!Le(A,J,I))return!1;me===null&&(me=new Set),me.add(I)}}if(me!==null){for(var ie=d(J),ce=0;ce<ie.length;ce++){var de=ie[ce];if(r(de)==="object"&&de!==null){if(!Ae(me,de,fe,_e))return!1}else if(!fe&&!A.has(de)&&!Ae(me,de,fe,_e))return!1}return me.size===0}return!0}function Fe(A,J,fe,_e,me,he){for(var Te=d(A),I=0;I<Te.length;I++){var ie=Te[I];if(ge(fe,ie,me,he)&&ge(_e,J.get(ie),me,he))return A.delete(ie),!0}return!1}function rt(A,J,fe,_e){for(var me=null,he=l(A),Te=0;Te<he.length;Te++){var I=e(he[Te],2),ie=I[0],ce=I[1];if(r(ie)==="object"&&ie!==null)me===null&&(me=new Set),me.add(ie);else{var de=J.get(ie);if(de===void 0&&!J.has(ie)||!ge(ce,de,fe,_e)){if(fe||!ke(A,J,ie,ce,_e))return!1;me===null&&(me=new Set),me.add(ie)}}}if(me!==null){for(var W=l(J),oe=0;oe<W.length;oe++){var O=e(W[oe],2),ue=O[0],Oe=O[1];if(r(ue)==="object"&&ue!==null){if(!Fe(me,A,ue,Oe,fe,_e))return!1}else if(!fe&&(!A.has(ue)||!ge(A.get(ue),Oe,!1,_e))&&!Fe(me,A,ue,Oe,!1,_e))return!1}return me.size===0}return!0}function $e(A,J,fe,_e,me,he){var Te=0;if(he===D){if(!xe(A,J,fe,me))return!1}else if(he===$){if(!rt(A,J,fe,me))return!1}else if(he===U)for(;Te<A.length;Te++)if(m(A,Te)){if(!m(J,Te)||!ge(A[Te],J[Te],fe,me))return!1}else{if(m(J,Te))return!1;for(var I=Object.keys(A);Te<I.length;Te++){var ie=I[Te];if(!m(J,ie)||!ge(A[ie],J[ie],fe,me))return!1}return I.length===Object.keys(J).length}for(Te=0;Te<_e.length;Te++){var ce=_e[Te];if(!ge(A[ce],J[ce],fe,me))return!1}return!0}function Q(A,J){return ge(A,J,V)}function pe(A,J){return ge(A,J,N)}return qn={isDeepEqual:Q,isDeepStrictEqual:pe},qn}var ys;function er(){if(ys)return gn.exports;ys=1;function e(D){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},e(D)}function n(D,$,B){return Object.defineProperty(D,"prototype",{writable:!1}),D}function o(D,$){if(!(D instanceof $))throw new TypeError("Cannot call a class as a function")}var i=Al(),a=i.codes,t=a.ERR_AMBIGUOUS_ARGUMENT,r=a.ERR_INVALID_ARG_TYPE,s=a.ERR_INVALID_ARG_VALUE,d=a.ERR_INVALID_RETURN_VALUE,l=a.ERR_MISSING_ARGS,u=tp(),f=Je(),h=f.inspect,w=Je().types,m=w.isPromise,y=w.isRegExp,g=ip()(),c=qo()(),_=ap()("RegExp.prototype.test"),b,v;function E(){var D=fp();b=D.isDeepEqual,v=D.isDeepStrictEqual}var x=!1,T=gn.exports=S,P={};function F(D){throw D.message instanceof Error?D.message:new u(D)}function X(D,$,B,re,ee){var se=arguments.length,le;if(se===0)le="Failed";else if(se===1)B=D,D=void 0;else{if(x===!1){x=!0;var ge=Re.emitWarning?Re.emitWarning:console.warn.bind(console);ge("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(B instanceof Error)throw B;var ye={actual:D,expected:$,operator:re===void 0?"fail":re,stackStartFn:ee||X};B!==void 0&&(ye.message=B);var Se=new u(ye);throw le&&(Se.message=le,Se.generatedMessage=!0),Se}T.fail=X,T.AssertionError=u;function K(D,$,B,re){if(!B){var ee=!1;if($===0)ee=!0,re="No value argument passed to `assert.ok()`";else if(re instanceof Error)throw re;var se=new u({actual:B,expected:!0,message:re,operator:"==",stackStartFn:D});throw se.generatedMessage=ee,se}}function S(){for(var D=arguments.length,$=new Array(D),B=0;B<D;B++)$[B]=arguments[B];K.apply(void 0,[S,$.length].concat($))}T.ok=S,T.equal=function D($,B,re){if(arguments.length<2)throw new l("actual","expected");$!=B&&F({actual:$,expected:B,message:re,operator:"==",stackStartFn:D})},T.notEqual=function D($,B,re){if(arguments.length<2)throw new l("actual","expected");$==B&&F({actual:$,expected:B,message:re,operator:"!=",stackStartFn:D})},T.deepEqual=function D($,B,re){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),b($,B)||F({actual:$,expected:B,message:re,operator:"deepEqual",stackStartFn:D})},T.notDeepEqual=function D($,B,re){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),b($,B)&&F({actual:$,expected:B,message:re,operator:"notDeepEqual",stackStartFn:D})},T.deepStrictEqual=function D($,B,re){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),v($,B)||F({actual:$,expected:B,message:re,operator:"deepStrictEqual",stackStartFn:D})},T.notDeepStrictEqual=R;function R(D,$,B){if(arguments.length<2)throw new l("actual","expected");b===void 0&&E(),v(D,$)&&F({actual:D,expected:$,message:B,operator:"notDeepStrictEqual",stackStartFn:R})}T.strictEqual=function D($,B,re){if(arguments.length<2)throw new l("actual","expected");c($,B)||F({actual:$,expected:B,message:re,operator:"strictEqual",stackStartFn:D})},T.notStrictEqual=function D($,B,re){if(arguments.length<2)throw new l("actual","expected");c($,B)&&F({actual:$,expected:B,message:re,operator:"notStrictEqual",stackStartFn:D})};var L=n(function D($,B,re){var ee=this;o(this,D),B.forEach(function(se){se in $&&(re!==void 0&&typeof re[se]=="string"&&y($[se])&&_($[se],re[se])?ee[se]=re[se]:ee[se]=$[se])})});function M(D,$,B,re,ee,se){if(!(B in D)||!v(D[B],$[B])){if(!re){var le=new L(D,ee),ge=new L($,ee,D),ye=new u({actual:le,expected:ge,operator:"deepStrictEqual",stackStartFn:se});throw ye.actual=D,ye.expected=$,ye.operator=se.name,ye}F({actual:D,expected:$,message:re,operator:se.name,stackStartFn:se})}}function Z(D,$,B,re){if(typeof $!="function"){if(y($))return _($,D);if(arguments.length===2)throw new r("expected",["Function","RegExp"],$);if(e(D)!=="object"||D===null){var ee=new u({actual:D,expected:$,message:B,operator:"deepStrictEqual",stackStartFn:re});throw ee.operator=re.name,ee}var se=Object.keys($);if($ instanceof Error)se.push("name","message");else if(se.length===0)throw new s("error",$,"may not be an empty object");return b===void 0&&E(),se.forEach(function(le){typeof D[le]=="string"&&y($[le])&&_($[le],D[le])||M(D,$,le,B,se,re)}),!0}return $.prototype!==void 0&&D instanceof $?!0:Error.isPrototypeOf($)?!1:$.call({},D)===!0}function k(D){if(typeof D!="function")throw new r("fn","Function",D);try{D()}catch($){return $}return P}function j(D){return m(D)||D!==null&&e(D)==="object"&&typeof D.then=="function"&&typeof D.catch=="function"}function q(D){return Promise.resolve().then(function(){var $;if(typeof D=="function"){if($=D(),!j($))throw new d("instance of Promise","promiseFn",$)}else if(j(D))$=D;else throw new r("promiseFn",["Function","Promise"],D);return Promise.resolve().then(function(){return $}).then(function(){return P}).catch(function(B){return B})})}function N(D,$,B,re){if(typeof B=="string"){if(arguments.length===4)throw new r("error",["Object","Error","Function","RegExp"],B);if(e($)==="object"&&$!==null){if($.message===B)throw new t("error/message",'The error message "'.concat($.message,'" is identical to the message.'))}else if($===B)throw new t("error/message",'The error "'.concat($,'" is identical to the message.'));re=B,B=void 0}else if(B!=null&&e(B)!=="object"&&typeof B!="function")throw new r("error",["Object","Error","Function","RegExp"],B);if($===P){var ee="";B&&B.name&&(ee+=" (".concat(B.name,")")),ee+=re?": ".concat(re):".";var se=D.name==="rejects"?"rejection":"exception";F({actual:void 0,expected:B,operator:D.name,message:"Missing expected ".concat(se).concat(ee),stackStartFn:D})}if(B&&!Z($,B,re,D))throw $}function V(D,$,B,re){if($!==P){if(typeof B=="string"&&(re=B,B=void 0),!B||Z($,B)){var ee=re?": ".concat(re):".",se=D.name==="doesNotReject"?"rejection":"exception";F({actual:$,expected:B,operator:D.name,message:"Got unwanted ".concat(se).concat(ee,`
|
|
78
|
+
`)+'Actual message: "'.concat($&&$.message,'"'),stackStartFn:D})}throw $}}T.throws=function D($){for(var B=arguments.length,re=new Array(B>1?B-1:0),ee=1;ee<B;ee++)re[ee-1]=arguments[ee];N.apply(void 0,[D,k($)].concat(re))},T.rejects=function D($){for(var B=arguments.length,re=new Array(B>1?B-1:0),ee=1;ee<B;ee++)re[ee-1]=arguments[ee];return q($).then(function(se){return N.apply(void 0,[D,se].concat(re))})},T.doesNotThrow=function D($){for(var B=arguments.length,re=new Array(B>1?B-1:0),ee=1;ee<B;ee++)re[ee-1]=arguments[ee];V.apply(void 0,[D,k($)].concat(re))},T.doesNotReject=function D($){for(var B=arguments.length,re=new Array(B>1?B-1:0),ee=1;ee<B;ee++)re[ee-1]=arguments[ee];return q($).then(function(se){return V.apply(void 0,[D,se].concat(re))})},T.ifError=function D($){if($!=null){var B="ifError got unwanted exception: ";e($)==="object"&&typeof $.message=="string"?$.message.length===0&&$.constructor?B+=$.constructor.name:B+=$.message:B+=h($);var re=new u({actual:$,expected:null,operator:"ifError",message:B,stackStartFn:D}),ee=$.stack;if(typeof ee=="string"){var se=ee.split(`
|
|
79
|
+
`);se.shift();for(var le=re.stack.split(`
|
|
80
|
+
`),ge=0;ge<se.length;ge++){var ye=le.indexOf(se[ge]);if(ye!==-1){le=le.slice(0,ye);break}}re.stack="".concat(le.join(`
|
|
81
|
+
`),`
|
|
82
|
+
`).concat(se.join(`
|
|
83
|
+
`))}throw re}};function G(D,$,B,re,ee){if(!y($))throw new r("regexp","RegExp",$);var se=ee==="match";if(typeof D!="string"||_($,D)!==se){if(B instanceof Error)throw B;var le=!B;B=B||(typeof D!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(D)," (").concat(h(D),")"):(se?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(h($),`. Input:
|
|
84
|
+
|
|
85
|
+
`).concat(h(D),`
|
|
86
|
+
`));var ge=new u({actual:D,expected:$,message:B,operator:ee,stackStartFn:re});throw ge.generatedMessage=le,ge}}T.match=function D($,B,re){G($,B,re,D,"match")},T.doesNotMatch=function D($,B,re){G($,B,re,D,"doesNotMatch")};function U(){for(var D=arguments.length,$=new Array(D),B=0;B<D;B++)$[B]=arguments[B];K.apply(void 0,[U,$.length].concat($))}return T.strict=g(U,T,{equal:T.strictEqual,deepEqual:T.deepStrictEqual,notEqual:T.notStrictEqual,notDeepEqual:T.notDeepStrictEqual}),T.strict.strict=T.strict,gn.exports}var _s;function lp(){return _s||(_s=1,function(e,n){var o=er(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a="abcdefghijklmnopqrstuvwxyz0123456789",t="0123456789";n=e.exports=r(i),n.base62=n,n.base36=r(a),n.base10=r(t),n.create=r;function r(s){o(typeof s=="string","the list of characters must be a string!");var d=Be.byteLength(s);return function(u){u=u||10,o(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(d*Math.random())];return f}}}(fr,fr.exports)),fr.exports}var lr={exports:{}},hr={exports:{}};/*!
|
|
87
|
+
* random-bytes
|
|
88
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
89
|
+
* MIT Licensed
|
|
90
|
+
*/var bs;function hp(){if(bs)return hr.exports;bs=1;var e=Ut(),n=e.randomBytes===e.pseudoRandomBytes?1:3;hr.exports=o,hr.exports.sync=i;function o(t,r){if(r!==void 0&&typeof r!="function")throw new TypeError("argument callback must be a function");if(!r&&!He.Promise)throw new TypeError("argument callback is required");return r?a(t,n,r):new Promise(function(d,l){a(t,n,function(f,h){if(f)return l(f);d(h)})})}function i(t){for(var r=null,s=0;s<n;s++)try{return e.randomBytes(t)}catch(d){r=d}throw r}function a(t,r,s){e.randomBytes(t,function(l,u){if(!l)return s(null,u);if(!--r)return s(l);setTimeout(a.bind(null,t,r,s),10)})}return hr.exports}/*!
|
|
91
|
+
* uid-safe
|
|
92
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
93
|
+
* Copyright(c) 2015-2017 Douglas Christopher Wilson
|
|
94
|
+
* MIT Licensed
|
|
95
|
+
*/var ws;function dp(){if(ws)return lr.exports;ws=1;var e=hp(),n=/=+$/,o=/\+/g,i=/\//g;lr.exports=a,lr.exports.sync=t;function a(d,l){if(l!==void 0&&typeof l!="function")throw new TypeError("argument callback must be a function");if(!l&&!He.Promise)throw new TypeError("argument callback is required");return l?r(d,l):new Promise(function(f,h){r(d,function(m,y){if(m)return h(m);f(y)})})}function t(d){return s(e.sync(d))}function r(d,l){e(d,function(u,f){if(u)return l(u);l(null,s(f))})}function s(d){return d.toString("base64").replace(n,"").replace(o,"-").replace(i,"_")}return lr.exports}var Ln,Es;function pp(){if(Es)return Ln;Es=1;var e=Ut();function n(i,a){if(i.length!==a.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(i,a);for(var t=0;t<i.length;t++)if(i[t]!==a[t])return!1;return!0}function o(i,a){var t=String(i),r=String(a),s=e.pseudoRandomBytes(32),d=e.createHmac("sha256",s).update(t).digest(),l=e.createHmac("sha256",s).update(r).digest();return n(d,l)&&i===a}return Ln=o,Ln}/*!
|
|
96
|
+
* csrf
|
|
97
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
98
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
99
|
+
* MIT Licensed
|
|
100
|
+
*/var Nn,Ss;function mp(){if(Ss)return Nn;Ss=1;var e=lp(),n=dp(),o=pp(),i=Ut(),a=/=/g,t=/\+/g,r=/\//g;Nn=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+"-"+d(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),m=this._tokenize(u,w);return o(f,m)};function d(l){return i.createHash("sha1").update(l,"ascii").digest("base64").replace(t,"-").replace(r,"_").replace(a,"")}return Nn}var Dn={},$n,Rs;function gp(){return Rs||(Rs=1,$n=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)),$n}var Mn,Os;function vp(){if(Os)return Mn;Os=1;var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function i(r,s){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;s=s||1;var d=r.slice(0,s),l=r.slice(s);return Array.prototype.concat.call([],i(d),i(l))}function a(r){try{return decodeURIComponent(r)}catch{for(var s=r.match(n)||[],d=1;d<s.length;d++)r=i(s,d).join(""),s=r.match(n)||[];return r}}function t(r){for(var s={"%FE%FF":"��","%FF%FE":"��"},d=o.exec(r);d;){try{s[d[0]]=decodeURIComponent(d[0])}catch{var l=a(d[0]);l!==d[0]&&(s[d[0]]=l)}d=o.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 Mn=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)}},Mn}var Fn,Ts;function yp(){return Ts||(Ts=1,Fn=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const o=e.indexOf(n);return o===-1?[e]:[e.slice(0,o),e.slice(o+n.length)]}),Fn}var Un,xs;function _p(){return xs||(xs=1,Un=function(e,n){for(var o={},i=Object.keys(e),a=Array.isArray(n),t=0;t<i.length;t++){var r=i[t],s=e[r];(a?n.indexOf(r)!==-1:n(r,s,e))&&(o[r]=s)}return o}),Un}var Cs;function bp(){return Cs||(Cs=1,function(e){const n=gp(),o=vp(),i=yp(),a=_p(),t=c=>c==null;function r(c){switch(c.arrayFormat){case"index":return _=>(b,v)=>{const E=b.length;return v===void 0||c.skipNull&&v===null||c.skipEmptyString&&v===""?b:v===null?[...b,[l(_,c),"[",E,"]"].join("")]:[...b,[l(_,c),"[",l(E,c),"]=",l(v,c)].join("")]};case"bracket":return _=>(b,v)=>v===void 0||c.skipNull&&v===null||c.skipEmptyString&&v===""?b:v===null?[...b,[l(_,c),"[]"].join("")]:[...b,[l(_,c),"[]=",l(v,c)].join("")];case"comma":case"separator":return _=>(b,v)=>v==null||v.length===0?b:b.length===0?[[l(_,c),"=",l(v,c)].join("")]:[[b,l(v,c)].join(c.arrayFormatSeparator)];default:return _=>(b,v)=>v===void 0||c.skipNull&&v===null||c.skipEmptyString&&v===""?b:v===null?[...b,l(_,c)]:[...b,[l(_,c),"=",l(v,c)].join("")]}}function s(c){let _;switch(c.arrayFormat){case"index":return(b,v,E)=>{if(_=/\[(\d*)\]$/.exec(b),b=b.replace(/\[\d*\]$/,""),!_){E[b]=v;return}E[b]===void 0&&(E[b]={}),E[b][_[1]]=v};case"bracket":return(b,v,E)=>{if(_=/(\[\])$/.exec(b),b=b.replace(/\[\]$/,""),!_){E[b]=v;return}if(E[b]===void 0){E[b]=[v];return}E[b]=[].concat(E[b],v)};case"comma":case"separator":return(b,v,E)=>{const x=typeof v=="string"&&v.includes(c.arrayFormatSeparator),T=typeof v=="string"&&!x&&u(v,c).includes(c.arrayFormatSeparator);v=T?u(v,c):v;const P=x||T?v.split(c.arrayFormatSeparator).map(F=>u(F,c)):v===null?v:u(v,c);E[b]=P};default:return(b,v,E)=>{if(E[b]===void 0){E[b]=v;return}E[b]=[].concat(E[b],v)}}}function d(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?o(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 m(c){c=h(c);const _=c.indexOf("?");return _===-1?"":c.slice(_+1)}function y(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 g(c,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),d(_.arrayFormatSeparator);const b=s(_),v=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return v;for(const E of c.split("&")){if(E==="")continue;let[x,T]=i(_.decode?E.replace(/\+/g," "):E,"=");T=T===void 0?null:["comma","separator"].includes(_.arrayFormat)?T:u(T,_),b(u(x,_),T,v)}for(const E of Object.keys(v)){const x=v[E];if(typeof x=="object"&&x!==null)for(const T of Object.keys(x))x[T]=y(x[T],_);else v[E]=y(x,_)}return _.sort===!1?v:(_.sort===!0?Object.keys(v).sort():Object.keys(v).sort(_.sort)).reduce((E,x)=>{const T=v[x];return T&&typeof T=="object"&&!Array.isArray(T)?E[x]=f(T):E[x]=T,E},Object.create(null))}e.extract=m,e.parse=g,e.stringify=(c,_)=>{if(!c)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),d(_.arrayFormatSeparator);const b=T=>_.skipNull&&t(c[T])||_.skipEmptyString&&c[T]==="",v=r(_),E={};for(const T of Object.keys(c))b(T)||(E[T]=c[T]);const x=Object.keys(E);return _.sort!==!1&&x.sort(_.sort),x.map(T=>{const P=c[T];return P===void 0?"":P===null?l(T,_):Array.isArray(P)?P.reduce(v(T),[]).join("&"):l(T,_)+"="+l(P,_)}).filter(T=>T.length>0).join("&")},e.parseUrl=(c,_)=>{_=Object.assign({decode:!0},_);const[b,v]=i(c,"#");return Object.assign({url:b.split("?")[0]||"",query:g(m(c),_)},_&&_.parseFragmentIdentifier&&v?{fragmentIdentifier:u(v,_)}:{})},e.stringifyUrl=(c,_)=>{_=Object.assign({encode:!0,strict:!0},_);const b=h(c.url).split("?")[0]||"",v=e.extract(c.url),E=e.parse(v,{sort:!1}),x=Object.assign(E,c.query);let T=e.stringify(x,_);T&&(T=`?${T}`);let P=w(c.url);return c.fragmentIdentifier&&(P=`#${l(c.fragmentIdentifier,_)}`),`${b}${T}${P}`},e.pick=(c,_,b)=>{b=Object.assign({parseFragmentIdentifier:!0},b);const{url:v,query:E,fragmentIdentifier:x}=e.parseUrl(c,b);return e.stringifyUrl({url:v,query:a(E,_),fragmentIdentifier:x},b)},e.exclude=(c,_,b)=>{const v=Array.isArray(_)?E=>!_.includes(E):(E,x)=>!_(E,x);return e.pick(c,v,b)}}(Dn)),Dn}var Tt={},xt={},Bn={},Gt={},As;function Ll(){if(As)return Gt;As=1,Object.defineProperty(Gt,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(i,a){(this.$[i]=this.$[i]||[]).push(a)}off(i,a){const t=this.$[i];t&&t.splice(t.indexOf(a)>>>0,1)}each(i){this._.push(i)}none(i){this._.splice(this._.indexOf(i)>>>0,1)}emit(i,...a){const t=this.$[i];t&&t.slice().forEach(r=>r(...a)),this._.slice().forEach(r=>r({type:i,args:a}))}}Gt.Emitter=e;function n(o,i,a){function t(...r){return o.off(i,t),a(...r)}return o.on(i,t),t}return Gt.once=n,Gt}var dr={},Is;function wp(){if(Is)return dr;Is=1,Object.defineProperty(dr,"__esModule",{value:!0});function e(n){if(!n)return 0;n=n.toString();for(var o=n.length,i=n.length;i--;){var a=n.charCodeAt(i);56320<=a&&a<=57343&&i--,127<a&&a<=2047?o++:2047<a&&a<=65535&&(o+=2)}return o}return dr.byteLength=e,dr}var Ct={},Ps;function Ep(){if(Ps)return Ct;Ps=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.expectNever=Ct.expectType=void 0;const e=o=>{};Ct.expectType=e;const n=o=>{throw new TypeError("Unexpected value: "+o)};return Ct.expectNever=n,Ct}var pr={},ks;function Zr(){if(ks)return pr;ks=1,Object.defineProperty(pr,"__esModule",{value:!0});class e{constructor(o){this.object=Object.create(null),o&&this.extend(o)}set(o,i){this.object[o.toLowerCase()]=Array.isArray(i)?i.map(String):String(i)}append(o,i){const a=o.toLowerCase(),t=this.object[a];if(t===void 0)Array.isArray(i)?this.object[a]=i.map(String):this.object[a]=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[a]=Array.isArray(i)?[t,...i.map(String)]:[t,String(i)]}get(o){const i=this.object[o.toLowerCase()];return i===void 0?null:Array.isArray(i)?i[0]:i}getAll(o){const i=this.object[o.toLowerCase()];return i===void 0?[]:Array.isArray(i)?[...i]:[i]}has(o){return o.toLowerCase()in this.object}delete(o){delete this.object[o.toLowerCase()]}*entries(){yield*Object.entries(this.object)}*keys(){yield*Object.keys(this.object)}*values(){yield*Object.values(this.object)}clear(){this.object=Object.create(null)}asObject(){return Object.assign(Object.create(null),this.object)}extend(o){if(Symbol.iterator in o)for(const[i,a]of o)this.append(i,a);else if(o instanceof e)for(const[i,a]of o.entries())this.append(i,a);else for(const i of Object.keys(o)){const a=o[i];a!==void 0&&this.append(i,a)}}clone(){return new e(this.object)}}return pr.Headers=e,pr}var zt={},js;function Wr(){if(js)return zt;js=1,Object.defineProperty(zt,"__esModule",{value:!0});const e=Ll();class n extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}zt.Signal=n;class o{constructor(){this.signal=new n}abort(){this.signal.emit("abort")}}return zt.AbortController=o,zt}var Vn={},qs;function Nl(){return qs||(qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function n(i){const a=o(i);return a===null?null:(i.$rawBody=e.kBodyUsed,a)}e.useRawBody=n;function o(i){const{$rawBody:a}=i;if(a===e.kBodyUsed)throw new TypeError("Body already used");if(a===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return a}e.getRawBody=o}(Vn)),Vn}var Ls;function Dl(){return Ls||(Ls=1,function(e){function n(y){for(var g in y)e.hasOwnProperty(g)||(e[g]=y[g])}Object.defineProperty(e,"__esModule",{value:!0});const o=Ll(),i=wp(),a=Ep(),t=Zr(),r=Wr(),s=Nl();n(Zr()),n(Wr());function d(y){const g=new DataView(y);return new TextDecoder("utf-8").decode(g)}function l(y){return new TextEncoder().encode(y)}function u(y){const g=y.getReader();function c(_){return g.read().then(b=>{if(b.done)return _;const v=b.value,E=new Uint8Array(_.byteLength+v.byteLength);return E.set(_,0),E.set(v,_.byteLength),c(E)})}return c(new Uint8Array(0))}class f{constructor(g){const c=g===void 0?null:g;this.$rawBody=c}get bodyUsed(){return this.$rawBody===s.kBodyUsed||this.$rawBody===s.kBodyDestroyed}json(){return this.text().then(g=>JSON.parse(g))}text(){const g=s.useRawBody(this);return g===null?Promise.resolve(""):typeof g=="string"?Promise.resolve(g):g instanceof ArrayBuffer?Promise.resolve(d(g)):u(g).then(d)}arrayBuffer(){const g=s.useRawBody(this);return g===null?Promise.resolve(new ArrayBuffer(0)):g instanceof ArrayBuffer?Promise.resolve(g):typeof g=="string"?Promise.resolve(l(g).buffer):u(g)}readableStream(){const g=s.useRawBody(this);return g===null?new ReadableStream({start(c){c.close()}}):typeof g=="string"?new ReadableStream({start(c){c.enqueue(l(g)),c.close()}}):g instanceof ArrayBuffer?new ReadableStream({start(c){c.enqueue(new Uint8Array(g)),c.close()}}):g}clone(){const g=s.getRawBody(this);if(g instanceof ReadableStream){const[c,_]=g.tee();return this.$rawBody=c,new f(_)}return new f(g)}destroy(){const g=s.getRawBody(this);return this.$rawBody=s.kBodyDestroyed,g instanceof ReadableStream?g.cancel():Promise.resolve()}}e.Body=f;class h extends f{constructor(g,c={}){const _=typeof g=="string"?void 0:g.clone(),b=c.body||(_?s.getRawBody(_):null),v=_&&!c.headers?_.headers:m(b,c.headers,c.omitDefaultHeaders===!0);super(b),this.url=typeof g=="string"?g:g.url,this.method=c.method||_&&_.method||"GET",this.signal=c.signal||_&&_.signal||new r.Signal,this.headers=v,this.trailer=_&&!c.trailer?_.trailer:Promise.resolve(c.trailer).then(E=>new t.Headers(E)),o.once(this.signal,"abort",()=>this.destroy())}clone(){const g=super.clone();return new h(this.url,{body:s.getRawBody(g),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(g,c={}){const _=m(g,c.headers,c.omitDefaultHeaders===!0);super(g),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 g=super.clone();return new w(s.getRawBody(g),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(c=>c.clone())})}}e.Response=w;function m(y,g,c){const _=new t.Headers(g);if(y==null)return _;if(typeof y=="string")return!c&&!_.has("Content-Type")&&_.set("Content-Type","text/plain"),!c&&!_.has("Content-Length")&&_.set("Content-Length",i.byteLength(y).toString()),_;if(!c&&!_.has("Content-Type")&&_.set("Content-Type","application/octet-stream"),y instanceof ArrayBuffer)return!c&&!_.has("Content-Length")&&_.set("Content-Length",String(y.byteLength)),_;if(y instanceof ReadableStream)return _;throw a.expectType(y),new TypeError("Unknown body type")}}(Bn)),Bn}var ct={},Ns;function Sp(){if(Ns)return ct;Ns=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=Dl(),n=Nl();class o extends e.Response{constructor(h,w){super(h,w),this.url=w.url}}ct.XhrResponse=o;class i extends Error{constructor(h,w){super(w),this.request=h,this.code="EBLOCKED"}}ct.BlockedRequestError=i;class a extends Error{constructor(h,w){super(w),this.request=h,this.code="EINVALID"}}ct.InvalidRequestError=a;class t extends Error{constructor(h,w){super(w),this.request=h,this.code="EUNAVAILABLE"}}ct.ConnectionError=t;class r extends Error{constructor(h,w){super(w),this.request=h,this.code="ECSP"}}ct.CSPError=r;class s extends Error{constructor(h,w){super(w),this.request=h,this.code="ETYPE"}}ct.TypeError=s;class d extends Error{constructor(h,w){super(w),this.request=h,this.code="EABORT"}}ct.AbortError=d;function l(f={}){return function(h){return new Promise(function(w,m){const y=f.type||"arraybuffer",g=h.method.toUpperCase();if(h.signal.aborted)return m(new d(h,"Request has been aborted"));if(window.location.protocol==="https:"&&h.url.startsWith("http:"))return m(new i(h,`The connection to "${h.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(h.url))return m(new a(h,`Refusing to connect to "${h.url}"`));const c=new XMLHttpRequest;let _=!1;function b(){const E=new o(y==="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 v(){return m(new t(h,`Unable to connect to "${h.url}"`))}c.onload=b,c.onabort=b,c.onerror=v,c.onprogress=E=>{h.signal.emit("requestBytes",E.loaded)},g!=="GET"&&g!=="HEAD"&&c.upload&&(_=!0,c.upload.onprogress=E=>{h.signal.emit("responseBytes",E.loaded)},c.upload.onloadend=()=>{h.signal.emit("requestEnded")});try{c.open(g,h.url)}catch{return m(new r(h,`Refused to connect to "${h.url}"`))}if(f.withCredentials&&(c.withCredentials=!0),f.overrideMimeType&&c.overrideMimeType(f.overrideMimeType),y!=="text")try{c.responseType=y}finally{if(c.responseType!==y)return m(new s(h,`Unsupported type: ${y}`))}for(const[E,x]of h.headers.entries())if(Array.isArray(x))for(const T of x)c.setRequestHeader(E,T);else c.setRequestHeader(E,x);h.signal.emit("requestStarted"),_||h.signal.emit("requestEnded"),h.signal.on("abort",()=>c.abort()),c.send(n.useRawBody(h))})}}ct.transport=l;function u(f){const h=[],w=f.split(/\r?\n/);for(const m of w)if(m){const y=m.indexOf(":"),g=m.substr(0,y).trim(),c=m.substr(y+1).trim();h.push([g,c])}return h}return ct}var Ht={},Ds;function Io(){if(Ds)return Ht;Ds=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.toFetch=void 0;function e(n,o){function i(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...t){const r=t.length===1&&t[0]instanceof o?t[0]:new o(...t);return n(r,i)}}return Ht.toFetch=e,Ht}var $s;function Rp(){return $s||($s=1,function(e){var n=xt&&xt.__createBinding||(Object.create?function(r,s,d,l){l===void 0&&(l=d),Object.defineProperty(r,l,{enumerable:!0,get:function(){return s[d]}})}:function(r,s,d,l){l===void 0&&(l=d),r[l]=s[d]}),o=xt&&xt.__exportStar||function(r,s){for(var d in r)d!=="default"&&!Object.prototype.hasOwnProperty.call(s,d)&&n(s,r,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const i=Dl();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return i.Request}});const a=Sp();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return a.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return a.XhrResponse}});const t=Io();o(Io(),e),o(Wr(),e),o(Zr(),e),e.middleware=a.transport(),e.fetch=t.toFetch(e.middleware,i.Request)}(xt)),xt}var Ms;function Op(){return Ms||(Ms=1,function(e){var n=Tt&&Tt.__createBinding||(Object.create?function(a,t,r,s){s===void 0&&(s=r),Object.defineProperty(a,s,{enumerable:!0,get:function(){return t[r]}})}:function(a,t,r,s){s===void 0&&(s=r),a[s]=t[r]}),o=Tt&&Tt.__exportStar||function(a,t){for(var r in a)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,a,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const i=Rp();o(Io(),e),o(Wr(),e),o(Zr(),e),e.fetch=i.fetch,e.middleware=i.middleware}(Tt)),Tt}var ze={},Fs;function jt(){return Fs||(Fs=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 Gn={},mr={},zn,Us;function at(){if(Us)return zn;Us=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(m)}function n(m,y,g){return Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function i(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),y&&f(m,y)}function a(m){var y=l();return function(){var c=h(m),_;if(y){var b=h(this).constructor;_=Reflect.construct(c,arguments,b)}else _=c.apply(this,arguments);return t(this,_)}}function t(m,y){if(y&&(e(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(m)}function r(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function s(m){var y=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 y<"u"){if(y.has(c))return y.get(c);y.set(c,_)}function _(){return d(c,arguments,h(this).constructor)}return _.prototype=Object.create(c.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),f(_,c)},s(m)}function d(m,y,g){return l()?d=Reflect.construct.bind():d=function(_,b,v){var E=[null];E.push.apply(E,b);var x=Function.bind.apply(_,E),T=new x;return v&&f(T,v.prototype),T},d.apply(null,arguments)}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(m){return Function.toString.call(m).indexOf("[native code]")!==-1}function f(m,y){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,_){return c.__proto__=_,c},f(m,y)}function h(m){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},h(m)}var w=function(m){i(g,m);var y=a(g);function g(c){var _;return o(this,g),_=y.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(_),g),_}return n(g)}(s(Error));return zn=function(m){if(m.length>2)throw new w(m);function y(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=c}y.prototype.transform=m;function g(c){return new y(c)}return g.Format=y,g},zn}var Zt={exports:{}},Hn={exports:{}},Zn={exports:{}},Wn={exports:{}},Bs;function Tp(){return Bs||(Bs=1,function(e){var n={};e.exports=n;var o={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(o).forEach(function(i){var a=o[i],t=n[i]=[];t.open="\x1B["+a[0]+"m",t.close="\x1B["+a[1]+"m"})}(Wn)),Wn.exports}var Yn,Vs;function xp(){return Vs||(Vs=1,Yn=function(e,n){n=n||Re.argv;var o=n.indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",a=n.indexOf(i+e);return a!==-1&&(o===-1?!0:a<o)}),Yn}var Kn,Gs;function Cp(){if(Gs)return Kn;Gs=1;var e={},n=jt(),o=xp(),i=e,a=void 0;o("no-color")||o("no-colors")||o("color=false")?a=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function t(d){return d===0?!1:{level:d,hasBasic:!0,has256:d>=2,has16m:d>=3}}function r(d){if(a===!1)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(d&&!d.isTTY&&a!==!0)return 0;var l=a?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(d){var l=r(d);return t(l)}return Kn={supportsColor:s,stdout:s(Re.stdout),stderr:s(Re.stderr)},Kn}var Jn={exports:{}},zs;function Ap(){return zs||(zs=1,function(e){e.exports=function(o,i){var a="";o=o||"Run the trap, drop the bass",o=o.split("");var t={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return o.forEach(function(r){r=r.toLowerCase();var s=t[r]||[" "],d=Math.floor(Math.random()*s.length);typeof t[r]<"u"?a+=t[r][d]:a+=r}),a}}(Jn)),Jn.exports}var Xn={exports:{}},Hs;function Ip(){return Hs||(Hs=1,function(e){e.exports=function(o,i){o=o||" he is here ";var a={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},t=[].concat(a.up,a.down,a.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 d(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 m=["up","mid","down"];for(var y in m)for(var g=m[y],c=0;c<=h[g];c++)u[g]&&(f=f+a[g][r(a[g].length)])}return f}return d(o,i)}}(Xn)),Xn.exports}var Qn={exports:{}},Zs;function Pp(){return Zs||(Zs=1,function(e){e.exports=function(n){return function(o,i,a){if(o===" ")return o;switch(i%3){case 0:return n.red(o);case 1:return n.white(o);case 2:return n.blue(o)}}}}(Qn)),Qn.exports}var ei={exports:{}},Ws;function kp(){return Ws||(Ws=1,function(e){e.exports=function(n){return function(o,i,a){return i%2===0?o:n.inverse(o)}}}(ei)),ei.exports}var ti={exports:{}},Ys;function jp(){return Ys||(Ys=1,function(e){e.exports=function(n){var o=["red","yellow","green","blue","magenta"];return function(i,a,t){return i===" "?i:n[o[a++%o.length]](i)}}}(ti)),ti.exports}var ri={exports:{}},Ks;function qp(){return Ks||(Ks=1,function(e){e.exports=function(n){var o=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,a,t){return i===" "?i:n[o[Math.round(Math.random()*(o.length-2))]](i)}}}(ri)),ri.exports}var Js;function Lp(){return Js||(Js=1,function(e){var n={};e.exports=n,n.themes={};var o=Je(),i=n.styles=Tp(),a=Object.defineProperties,t=new RegExp(/[\r\n]+/g);n.supportsColor=Cp().supportsColor,typeof n.enabled>"u"&&(n.enabled=n.supportsColor()!==!1),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(y){return(""+y).replace(/\x1B\[\d+m/g,"")},n.stylize=function(g,c){if(!n.enabled)return g+"";var _=i[c];return!_&&c in n?n[c](g):_.open+g+_.close};var r=/[|\\{}()[\]^$+*?.]/g,s=function(y){if(typeof y!="string")throw new TypeError("Expected a string");return y.replace(r,"\\$&")};function d(y){var g=function c(){return f.apply(c,arguments)};return g._styles=y,g.__proto__=u,g}var l=function(){var y={};return i.grey=i.gray,Object.keys(i).forEach(function(g){i[g].closeRe=new RegExp(s(i[g].close),"g"),y[g]={get:function(){return d(this._styles.concat(g))}}}),y}(),u=a(function(){},l);function f(){var y=Array.prototype.slice.call(arguments),g=y.map(function(E){return E!=null&&E.constructor===String?E:o.inspect(E)}).join(" ");if(!n.enabled||!g)return g;for(var c=g.indexOf(`
|
|
105
|
+
`)!=-1,_=this._styles,b=_.length;b--;){var v=i[_[b]];g=v.open+g.replace(v.closeRe,v.open)+v.close,c&&(g=g.replace(t,function(E){return v.close+E+v.open}))}return g}n.setTheme=function(y){if(typeof y=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var g in y)(function(c){n[c]=function(_){if(typeof y[c]=="object"){var b=_;for(var v in y[c])b=n[y[c][v]](b);return b}return n[y[c]](_)}})(g)};function h(){var y={};return Object.keys(l).forEach(function(g){y[g]={get:function(){return d([g])}}}),y}var w=function(g,c){var _=c.split("");return _=_.map(g),_.join("")};n.trap=Ap(),n.zalgo=Ip(),n.maps={},n.maps.america=Pp()(n),n.maps.zebra=kp()(n),n.maps.rainbow=jp()(n),n.maps.random=qp()(n);for(var m in n.maps)(function(y){n[y]=function(g){return w(n.maps[y],g)}})(m);a(n,h())}(Zn)),Zn.exports}var Xs;function $l(){return Xs||(Xs=1,function(e){var n=Lp();e.exports=n}(Hn)),Hn.exports}var ni={},ii={},gr={},Qs;function Np(){return Qs||(Qs=1,gr.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},gr.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),gr}var vr={},eu;function Dp(){return eu||(eu=1,vr.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},vr.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),vr}var yr={},tu;function $p(){return tu||(tu=1,yr.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},yr.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),yr}var ru;function Mp(){return ru||(ru=1,function(e){Object.defineProperty(e,"cli",{value:Np()}),Object.defineProperty(e,"npm",{value:Dp()}),Object.defineProperty(e,"syslog",{value:$p()})}(ii)),ii}var nu;function Ve(){return nu||(nu=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:Mp()})}(ni)),ni}var iu;function Lo(){if(iu)return Zt.exports;iu=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 o(l,u,f){return u&&n(l.prototype,u),f&&n(l,f),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=$l(),a=Ve(),t=a.LEVEL,r=a.MESSAGE;i.enabled=!0;var s=/\s+/,d=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 o(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 m=0,y=l.allColors[f].length;m<y;m++)w=i[l.allColors[f][m]](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,m){return w[m]=s.test(f[m])?f[m].split(s):f[m],w},{});return l.allColors=Object.assign({},l.allColors||{},h),l.allColors}}]),l}();return Zt.exports=function(l){return new d(l)},Zt.exports.Colorizer=Zt.exports.Format=d,Zt.exports}var ai,au;function Fp(){if(au)return ai;au=1;var e=Lo(),n=e.Colorizer;return ai=function(o){return n.addColors(o.colors||o),o},ai}var oi,ou;function Up(){if(ou)return oi;ou=1;var e=at();return oi=e(function(n){return n.message=" ".concat(n.message),n}),oi}var _r={exports:{}},Wt={exports:{}},su;function Ml(){if(su)return Wt.exports;su=1;function e(m){return a(m)||i(m)||o(m)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
106
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(m,y){if(m){if(typeof m=="string")return t(m,y);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return t(m,y)}}function i(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function a(m){if(Array.isArray(m))return t(m)}function t(m,y){(y==null||y>m.length)&&(y=m.length);for(var g=0,c=new Array(y);g<y;g++)c[g]=m[g];return c}function r(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function s(m,y){for(var g=0;g<y.length;g++){var c=y[g];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(m,c.key,c)}}function d(m,y,g){return y&&s(m.prototype,y),g&&s(m,g),Object.defineProperty(m,"prototype",{writable:!1}),m}var l=Ve(),u=l.configs,f=l.LEVEL,h=l.MESSAGE,w=function(){function m(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:u.npm.levels};r(this,m),this.paddings=m.paddingForLevels(y.levels,y.filler),this.options=y}return d(m,[{key:"transform",value:function(g,c){return g.message="".concat(this.paddings[g[f]]).concat(g.message),g[h]&&(g[h]="".concat(this.paddings[g[f]]).concat(g[h])),g}}],[{key:"getLongestLevel",value:function(g){var c=Object.keys(g).map(function(_){return _.length});return Math.max.apply(Math,e(c))}},{key:"paddingForLevel",value:function(g,c,_){var b=_+1-g.length,v=Math.floor(b/c.length),E="".concat(c).concat(c.repeat(v));return E.slice(0,b)}},{key:"paddingForLevels",value:function(g){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",_=m.getLongestLevel(g);return Object.keys(g).reduce(function(b,v){return b[v]=m.paddingForLevel(v,c,_),b},{})}}]),m}();return Wt.exports=function(m){return new w(m)},Wt.exports.Padder=Wt.exports.Format=w,Wt.exports}var uu;function Bp(){if(uu)return _r.exports;uu=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 m=h[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,m.key,m)}}function o(f,h,w){return h&&n(f.prototype,h),Object.defineProperty(f,"prototype",{writable:!1}),f}var i=Lo(),a=i.Colorizer,t=Ml(),r=t.Padder,s=Ve(),d=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=d.cli.levels),this.colorizer=new a(h),this.padder=new r(h),this.options=h}return o(f,[{key:"transform",value:function(w,m){return this.colorizer.transform(this.padder.transform(w,m),m),w[l]="".concat(w.level,":").concat(w.message),w}}]),f}();return _r.exports=function(f){return new u(f)},_r.exports.Format=u,_r.exports}var br={exports:{}},cu;function Vp(){if(cu)return br.exports;cu=1;var e=at();function n(i){if(i.every(o))return function(a){for(var t=a,r=0;r<i.length;r++)if(t=i[r].transform(t,i[r].options),!t)return!1;return t}}function o(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 br.exports=function(){for(var i=arguments.length,a=new Array(i),t=0;t<i;t++)a[t]=arguments[t];var r=e(n(a)),s=r();return s.Format=r.Format,s},br.exports.cascade=n,br.exports}var si,fu;function Gp(){if(fu)return si;fu=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=at(),o=Ve(),i=o.LEVEL,a=o.MESSAGE;return si=n(function(t,r){var s=r.stack;if(t instanceof Error){var d,l=Object.assign({},t,(d={level:t.level},e(d,i,t[i]||t.level),e(d,"message",t.message),e(d,a,t[a]||t.message),d));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[a]=u.message,s&&(t.stack=u.stack),t}),si}var wr={exports:{}},lu;function ir(){return lu||(lu=1,function(e,n){const{hasOwnProperty:o}=Object.prototype,i=b();i.configure=b,i.stringify=i,i.default=i,n.stringify=i,n.configure=b,e.exports=i;const a=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,t=new RegExp(a,"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(v){if(v.length===2){const x=v.charCodeAt(1);return`${v[0]}\\u${x.toString(16)}`}const E=v.charCodeAt(0);return r.length>E?r[E]:`\\u${E.toString(16)}`}function d(v){if(v.length<5e3&&!a.test(v))return v;if(v.length>100)return v.replace(t,s);let E="",x=0;for(let T=0;T<v.length;T++){const P=v.charCodeAt(T);if(P===34||P===92||P<32)E+=`${v.slice(x,T)}${r[P]}`,x=T+1;else if(P>=55296&&P<=57343){if(P<=56319&&T+1<v.length){const F=v.charCodeAt(T+1);if(F>=56320&&F<=57343){T++;continue}}E+=`${v.slice(x,T)}\\u${P.toString(16)}`,x=T+1}}return E+=v.slice(x),E}function l(v){if(v.length>200)return v.sort();for(let E=1;E<v.length;E++){const x=v[E];let T=E;for(;T!==0&&v[T-1]>x;)v[T]=v[T-1],T--;v[T]=x}return v}const u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function f(v){return u.call(v)!==void 0&&v.length!==0}function h(v,E,x){v.length<x&&(x=v.length);const T=E===","?"":" ";let P=`"0":${T}${v[0]}`;for(let F=1;F<x;F++)P+=`${E}"${F}":${T}${v[F]}`;return P}function w(v){if(o.call(v,"circularValue")){const E=v.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 m(v,E){let x;if(o.call(v,E)&&(x=v[E],typeof x!="boolean"))throw new TypeError(`The "${E}" argument must be of type boolean`);return x===void 0?!0:x}function y(v,E){let x;if(o.call(v,E)){if(x=v[E],typeof x!="number")throw new TypeError(`The "${E}" argument must be of type number`);if(!Number.isInteger(x))throw new TypeError(`The "${E}" argument must be an integer`);if(x<1)throw new RangeError(`The "${E}" argument must be >= 1`)}return x===void 0?1/0:x}function g(v){return v===1?"1 item":`${v} items`}function c(v){const E=new Set;for(const x of v)(typeof x=="string"||typeof x=="number")&&E.add(String(x));return E}function _(v){if(o.call(v,"strict")){const E=v.strict;if(typeof E!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(E)return x=>{let T=`Object can not safely be stringified. Received type ${typeof x}`;throw typeof x!="function"&&(T+=` (${x.toString()})`),new Error(T)}}}function b(v){v={...v};const E=_(v);E&&(v.bigint===void 0&&(v.bigint=!1),"circularValue"in v||(v.circularValue=Error));const x=w(v),T=m(v,"bigint"),P=m(v,"deterministic"),F=y(v,"maximumDepth"),X=y(v,"maximumBreadth");function K(Z,k,j,q,N,V){let G=k[Z];switch(typeof G=="object"&&G!==null&&typeof G.toJSON=="function"&&(G=G.toJSON(Z)),G=q.call(k,Z,G),typeof G){case"string":return`"${d(G)}"`;case"object":{if(G===null)return"null";if(j.indexOf(G)!==-1)return x;let U="",D=",";const $=V;if(Array.isArray(G)){if(G.length===0)return"[]";if(F<j.length+1)return'"[Array]"';j.push(G),N!==""&&(V+=N,U+=`
|
|
108
|
+
${V}`,D=`,
|
|
109
|
+
${V}`);const ge=Math.min(G.length,X);let ye=0;for(;ye<ge-1;ye++){const Ae=K(ye,G,j,q,N,V);U+=Ae!==void 0?Ae:"null",U+=D}const Se=K(ye,G,j,q,N,V);if(U+=Se!==void 0?Se:"null",G.length-1>X){const Ae=G.length-X-1;U+=`${D}"... ${g(Ae)} not stringified"`}return N!==""&&(U+=`
|
|
110
|
+
${$}`),j.pop(),`[${U}]`}let B=Object.keys(G);const re=B.length;if(re===0)return"{}";if(F<j.length+1)return'"[Object]"';let ee="",se="";N!==""&&(V+=N,D=`,
|
|
111
|
+
${V}`,ee=" ");let le=Math.min(re,X);f(G)&&(U+=h(G,D,X),B=B.slice(G.length),le-=G.length,se=D),P&&(B=l(B)),j.push(G);for(let ge=0;ge<le;ge++){const ye=B[ge],Se=K(ye,G,j,q,N,V);Se!==void 0&&(U+=`${se}"${d(ye)}":${ee}${Se}`,se=D)}if(re>X){const ge=re-X;U+=`${se}"...":${ee}"${g(ge)} not stringified"`,se=D}return N!==""&&se.length>1&&(U=`
|
|
112
|
+
${V}${U}
|
|
113
|
+
${$}`),j.pop(),`{${U}}`}case"number":return isFinite(G)?String(G):E?E(G):"null";case"boolean":return G===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(G);default:return E?E(G):void 0}}function S(Z,k,j,q,N,V){switch(typeof k=="object"&&k!==null&&typeof k.toJSON=="function"&&(k=k.toJSON(Z)),typeof k){case"string":return`"${d(k)}"`;case"object":{if(k===null)return"null";if(j.indexOf(k)!==-1)return x;const G=V;let U="",D=",";if(Array.isArray(k)){if(k.length===0)return"[]";if(F<j.length+1)return'"[Array]"';j.push(k),N!==""&&(V+=N,U+=`
|
|
114
|
+
${V}`,D=`,
|
|
115
|
+
${V}`);const re=Math.min(k.length,X);let ee=0;for(;ee<re-1;ee++){const le=S(ee,k[ee],j,q,N,V);U+=le!==void 0?le:"null",U+=D}const se=S(ee,k[ee],j,q,N,V);if(U+=se!==void 0?se:"null",k.length-1>X){const le=k.length-X-1;U+=`${D}"... ${g(le)} not stringified"`}return N!==""&&(U+=`
|
|
116
|
+
${G}`),j.pop(),`[${U}]`}j.push(k);let $="";N!==""&&(V+=N,D=`,
|
|
117
|
+
${V}`,$=" ");let B="";for(const re of q){const ee=S(re,k[re],j,q,N,V);ee!==void 0&&(U+=`${B}"${d(re)}":${$}${ee}`,B=D)}return N!==""&&B.length>1&&(U=`
|
|
118
|
+
${V}${U}
|
|
119
|
+
${G}`),j.pop(),`{${U}}`}case"number":return isFinite(k)?String(k):E?E(k):"null";case"boolean":return k===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(k);default:return E?E(k):void 0}}function R(Z,k,j,q,N){switch(typeof k){case"string":return`"${d(k)}"`;case"object":{if(k===null)return"null";if(typeof k.toJSON=="function"){if(k=k.toJSON(Z),typeof k!="object")return R(Z,k,j,q,N);if(k===null)return"null"}if(j.indexOf(k)!==-1)return x;const V=N;if(Array.isArray(k)){if(k.length===0)return"[]";if(F<j.length+1)return'"[Array]"';j.push(k),N+=q;let ee=`
|
|
120
|
+
${N}`;const se=`,
|
|
121
|
+
${N}`,le=Math.min(k.length,X);let ge=0;for(;ge<le-1;ge++){const Se=R(ge,k[ge],j,q,N);ee+=Se!==void 0?Se:"null",ee+=se}const ye=R(ge,k[ge],j,q,N);if(ee+=ye!==void 0?ye:"null",k.length-1>X){const Se=k.length-X-1;ee+=`${se}"... ${g(Se)} not stringified"`}return ee+=`
|
|
122
|
+
${V}`,j.pop(),`[${ee}]`}let G=Object.keys(k);const U=G.length;if(U===0)return"{}";if(F<j.length+1)return'"[Object]"';N+=q;const D=`,
|
|
123
|
+
${N}`;let $="",B="",re=Math.min(U,X);f(k)&&($+=h(k,D,X),G=G.slice(k.length),re-=k.length,B=D),P&&(G=l(G)),j.push(k);for(let ee=0;ee<re;ee++){const se=G[ee],le=R(se,k[se],j,q,N);le!==void 0&&($+=`${B}"${d(se)}": ${le}`,B=D)}if(U>X){const ee=U-X;$+=`${B}"...": "${g(ee)} not stringified"`,B=D}return B!==""&&($=`
|
|
124
|
+
${N}${$}
|
|
125
|
+
${V}`),j.pop(),`{${$}}`}case"number":return isFinite(k)?String(k):E?E(k):"null";case"boolean":return k===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(k);default:return E?E(k):void 0}}function L(Z,k,j){switch(typeof k){case"string":return`"${d(k)}"`;case"object":{if(k===null)return"null";if(typeof k.toJSON=="function"){if(k=k.toJSON(Z),typeof k!="object")return L(Z,k,j);if(k===null)return"null"}if(j.indexOf(k)!==-1)return x;let q="";if(Array.isArray(k)){if(k.length===0)return"[]";if(F<j.length+1)return'"[Array]"';j.push(k);const D=Math.min(k.length,X);let $=0;for(;$<D-1;$++){const re=L($,k[$],j);q+=re!==void 0?re:"null",q+=","}const B=L($,k[$],j);if(q+=B!==void 0?B:"null",k.length-1>X){const re=k.length-X-1;q+=`,"... ${g(re)} not stringified"`}return j.pop(),`[${q}]`}let N=Object.keys(k);const V=N.length;if(V===0)return"{}";if(F<j.length+1)return'"[Object]"';let G="",U=Math.min(V,X);f(k)&&(q+=h(k,",",X),N=N.slice(k.length),U-=k.length,G=","),P&&(N=l(N)),j.push(k);for(let D=0;D<U;D++){const $=N[D],B=L($,k[$],j);B!==void 0&&(q+=`${G}"${d($)}":${B}`,G=",")}if(V>X){const D=V-X;q+=`${G}"...":"${g(D)} not stringified"`}return j.pop(),`{${q}}`}case"number":return isFinite(k)?String(k):E?E(k):"null";case"boolean":return k===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(k);default:return E?E(k):void 0}}function M(Z,k,j){if(arguments.length>1){let q="";if(typeof j=="number"?q=" ".repeat(Math.min(j,10)):typeof j=="string"&&(q=j.slice(0,10)),k!=null){if(typeof k=="function")return K("",{"":Z},[],k,q,"");if(Array.isArray(k))return S("",Z,[],c(k),q,"")}if(q.length!==0)return R("",Z,[],q,"")}return L("",Z,[])}return M}}(wr,wr.exports)),wr.exports}var ui,hu;function zp(){if(hu)return ui;hu=1;var e=at(),n=Ve(),o=n.MESSAGE,i=ir();function a(t,r){return typeof r=="bigint"?r.toString():r}return ui=e(function(t,r){var s=i.configure(r);return t[o]=s(t,r.replacer||a,r.space),t}),ui}var ci,du;function Hp(){if(du)return ci;du=1;var e=at();return ci=e(function(n,o){return o.message?(n.message="[".concat(o.label,"] ").concat(n.message),n):(n.label=o.label,n)}),ci}var fi,pu;function Zp(){if(pu)return fi;pu=1;var e=at(),n=Ve(),o=n.MESSAGE,i=ir();return fi=e(function(a){var t={};return a.message&&(t["@message"]=a.message,delete a.message),a.timestamp&&(t["@timestamp"]=a.timestamp,delete a.timestamp),t["@fields"]=a,a[o]=i(t),a}),fi}var li,mu;function Wp(){if(mu)return li;mu=1;function e(a,t,r){return t in a?Object.defineProperty(a,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[t]=r,a}var n=at();function o(a,t,r){var s=t.reduce(function(l,u){return l[u]=a[u],delete a[u],l},{}),d=Object.keys(a).reduce(function(l,u){return l[u]=a[u],delete a[u],l},{});return Object.assign(a,s,e({},r,d)),a}function i(a,t,r){return a[r]=t.reduce(function(s,d){return s[d]=a[d],delete a[d],s},{}),a}return li=n(function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="metadata";t.key&&(r=t.key);var s=[];return!t.fillExcept&&!t.fillWith&&(s.push("level"),s.push("message")),t.fillExcept&&(s=t.fillExcept),s.length>0?o(a,s,r):t.fillWith?i(a,t.fillWith,r):a}),li}var hi,gu;function Fl(){if(gu)return hi;gu=1;var e=1e3,n=e*60,o=n*60,i=o*24,a=i*7,t=i*365.25;hi=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?d(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*a;case"days":case"day":case"d":return h*i;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;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>=o?Math.round(u/o)+"h":f>=n?Math.round(u/n)+"m":f>=e?Math.round(u/e)+"s":u+"ms"}function d(u){var f=Math.abs(u);return f>=i?l(u,f,i,"day"):f>=o?l(u,f,o,"hour"):f>=n?l(u,f,n,"minute"):f>=e?l(u,f,e,"second"):u+" ms"}function l(u,f,h,w){var m=f>=h*1.5;return Math.round(u/h)+" "+w+(m?"s":"")}return hi}var di,vu;function Yp(){if(vu)return di;vu=1;var e=void 0,n=at(),o=Fl();return di=n(function(i){var a=+new Date;return e.diff=a-(e.prevTime||a),e.prevTime=a,i.ms="+".concat(o(e.diff)),i}),di}var pi,yu;function Kp(){if(yu)return pi;yu=1;var e=Je().inspect,n=at(),o=Ve(),i=o.LEVEL,a=o.MESSAGE,t=o.SPLAT;return pi=n(function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=Object.assign({},r);return delete d[i],delete d[a],delete d[t],r[a]=e(d,!1,s.depth||null,s.colorize),r}),pi}var Yt={exports:{}},_u;function Jp(){if(_u)return Yt.exports;_u=1;function e(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function n(r,s){for(var d=0;d<s.length;d++){var l=s[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}function o(r,s,d){return s&&n(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r}var i=Ve(),a=i.MESSAGE,t=function(){function r(s){e(this,r),this.template=s}return o(r,[{key:"transform",value:function(d){return d[a]=this.template(d),d}}]),r}();return Yt.exports=function(r){return new t(r)},Yt.exports.Printf=Yt.exports.Format=t,Yt.exports}var mi,bu;function Xp(){if(bu)return mi;bu=1;var e=at(),n=Ve(),o=n.MESSAGE,i=ir();return mi=e(function(a){var t=i(Object.assign({},a,{level:void 0,message:void 0,splat:void 0})),r=a.padding&&a.padding[a.level]||"";return t!=="{}"?a[o]="".concat(a.level,":").concat(r," ").concat(a.message," ").concat(t):a[o]="".concat(a.level,":").concat(r," ").concat(a.message),a}),mi}var gi,wu;function Qp(){if(wu)return gi;wu=1;function e(y){return a(y)||i(y)||o(y)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
126
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(y,g){if(y){if(typeof y=="string")return t(y,g);var c=Object.prototype.toString.call(y).slice(8,-1);if(c==="Object"&&y.constructor&&(c=y.constructor.name),c==="Map"||c==="Set")return Array.from(y);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return t(y,g)}}function i(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function a(y){if(Array.isArray(y))return t(y)}function t(y,g){(g==null||g>y.length)&&(g=y.length);for(var c=0,_=new Array(g);c<g;c++)_[c]=y[c];return _}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function s(y,g){for(var c=0;c<g.length;c++){var _=g[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}function d(y,g,c){return g&&s(y.prototype,g),Object.defineProperty(y,"prototype",{writable:!1}),y}var l=Je(),u=Ve(),f=u.SPLAT,h=/%[scdjifoO%]/g,w=/%%/g,m=function(){function y(g){r(this,y),this.options=g}return d(y,[{key:"_splat",value:function(c,_){var b=c.message,v=c[f]||c.splat||[],E=b.match(w),x=E&&E.length||0,T=_.length-x,P=T-v.length,F=P<0?v.splice(P,-1*P):[],X=F.length;if(X)for(var K=0;K<X;K++)Object.assign(c,F[K]);return c.message=l.format.apply(l,[b].concat(e(v))),c}},{key:"transform",value:function(c){var _=c.message,b=c[f]||c.splat;if(!b||!b.length)return c;var v=_&&_.match&&_.match(h);if(!v&&(b||b.length)){var E=b.length>1?b.splice(0):b,x=E.length;if(x)for(var T=0;T<x;T++)Object.assign(c,E[T]);return c}return v?this._splat(c,v):c}}]),y}();return gi=function(y){return new m(y)},gi}var Ul=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,St="\\d\\d?",Et="\\d\\d",em="\\d{3}",tm="\\d{4}",Xt="[^\\s]+",Bl=/\[([^]*?)\]/gm;function Vl(e,n){for(var o=[],i=0,a=e.length;i<a;i++)o.push(e[i].substr(0,n));return o}var Eu=function(e){return function(n,o){var i=o[e].map(function(t){return t.toLowerCase()}),a=i.indexOf(n.toLowerCase());return a>-1?a:null}};function Rt(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];for(var i=0,a=n;i<a.length;i++){var t=a[i];for(var r in t)e[r]=t[r]}return e}var Gl=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],zl=["January","February","March","April","May","June","July","August","September","October","November","December"],rm=Vl(zl,3),nm=Vl(Gl,3),No={dayNamesShort:nm,dayNames:Gl,monthNamesShort:rm,monthNames:zl,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},Yr=Rt({},No),Hl=function(e){return Yr=Rt(Yr,e)},Su=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},nt=function(e,n){for(n===void 0&&(n=2),e=String(e);e.length<n;)e="0"+e;return e},im={D:function(e){return String(e.getDate())},DD:function(e){return nt(e.getDate())},Do:function(e,n){return n.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return nt(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 nt(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 nt(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return nt(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return nt(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return nt(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return nt(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return nt(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return nt(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return nt(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?"-":"+")+nt(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4)},Z:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+nt(Math.floor(Math.abs(n)/60),2)+":"+nt(Math.abs(n)%60,2)}},Ru=function(e){return+e-1},Ou=[null,St],Tu=[null,Xt],xu=["isPm",Xt,function(e,n){var o=e.toLowerCase();return o===n.amPm[0]?0:o===n.amPm[1]?1:null}],Cu=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var n=(e+"").match(/([+-]|\d\d)/gi);if(n){var o=+n[1]*60+parseInt(n[2],10);return n[0]==="+"?o:-o}return 0}],am={D:["day",St],DD:["day",Et],Do:["day",St+Xt,function(e){return parseInt(e,10)}],M:["month",St,Ru],MM:["month",Et,Ru],YY:["year",Et,function(e){var n=new Date,o=+(""+n.getFullYear()).substr(0,2);return+(""+(+e>68?o-1:o)+e)}],h:["hour",St,void 0,"isPm"],hh:["hour",Et,void 0,"isPm"],H:["hour",St],HH:["hour",Et],m:["minute",St],mm:["minute",Et],s:["second",St],ss:["second",Et],YYYY:["year",tm],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",Et,function(e){return+e*10}],SSS:["millisecond",em],d:Ou,dd:Ou,ddd:Tu,dddd:Tu,MMM:["month",Xt,Eu("monthNamesShort")],MMMM:["month",Xt,Eu("monthNames")],a:xu,A:xu,ZZ:Cu,Z:Cu},Kr={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"},Zl=function(e){return Rt(Kr,e)},Wl=function(e,n,o){if(n===void 0&&(n=Kr.default),o===void 0&&(o={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");n=Kr[n]||n;var i=[];n=n.replace(Bl,function(t,r){return i.push(r),"@@@"});var a=Rt(Rt({},Yr),o);return n=n.replace(Ul,function(t){return im[t](e,a)}),n.replace(/@@@/g,function(){return i.shift()})};function Yl(e,n,o){if(o===void 0&&(o={}),typeof n!="string")throw new Error("Invalid format in fecha parse");if(n=Kr[n]||n,e.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},t=[],r=[],s=n.replace(Bl,function(v,E){return r.push(Su(E)),"@@@"}),d={},l={};s=Su(s).replace(Ul,function(v){var E=am[v],x=E[0],T=E[1],P=E[3];if(d[x])throw new Error("Invalid format. "+x+" specified twice in format");return d[x]=!0,P&&(l[P]=!0),t.push(E),"("+T+")"}),Object.keys(l).forEach(function(v){if(!d[v])throw new Error("Invalid format. "+v+" 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=Rt(Rt({},Yr),o),h=1;h<u.length;h++){var w=t[h-1],m=w[0],y=w[2],g=y?y(u[h],f):+u[h];if(g==null)return null;a[m]=g}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var c;if(a.timezoneOffset==null){c=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],h=0,b=_.length;h<b;h++)if(d[_[h][0]]&&a[_[h][0]]!==c[_[h][1]]())return null}else if(c=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return c}var om={format:Wl,parse:Yl,defaultI18n:No,setGlobalDateI18n:Hl,setGlobalDateMasks:Zl};const sm=Object.freeze(Object.defineProperty({__proto__:null,assign:Rt,default:om,defaultI18n:No,format:Wl,parse:Yl,setGlobalDateI18n:Hl,setGlobalDateMasks:Zl},Symbol.toStringTag,{value:"Module"})),um=td(sm);var vi,Au;function cm(){if(Au)return vi;Au=1;var e=um,n=at();return vi=n(function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.format&&(o.timestamp=typeof i.format=="function"?i.format():e.format(new Date,i.format)),o.timestamp||(o.timestamp=new Date().toISOString()),i.alias&&(o[i.alias]=o.timestamp),o}),vi}var yi,Iu;function fm(){if(Iu)return yi;Iu=1;var e=$l(),n=at(),o=Ve(),i=o.MESSAGE;return yi=n(function(a,t){return t.level!==!1&&(a.level=e.strip(a.level)),t.message!==!1&&(a.message=e.strip(String(a.message))),t.raw!==!1&&a[i]&&(a[i]=e.strip(String(a[i]))),a}),yi}var Pu;function Kl(){if(Pu)return mr;Pu=1;var e=mr.format=at();return mr.levels=Fp(),Object.defineProperty(e,"align",{value:Up()}),Object.defineProperty(e,"cli",{value:Bp()}),Object.defineProperty(e,"colorize",{value:Lo()}),Object.defineProperty(e,"combine",{value:Vp()}),Object.defineProperty(e,"errors",{value:Gp()}),Object.defineProperty(e,"json",{value:zp()}),Object.defineProperty(e,"label",{value:Hp()}),Object.defineProperty(e,"logstash",{value:Zp()}),Object.defineProperty(e,"metadata",{value:Wp()}),Object.defineProperty(e,"ms",{value:Yp()}),Object.defineProperty(e,"padLevels",{value:Ml()}),Object.defineProperty(e,"prettyPrint",{value:Kp()}),Object.defineProperty(e,"printf",{value:Jp()}),Object.defineProperty(e,"simple",{value:Xp()}),Object.defineProperty(e,"splat",{value:Qp()}),Object.defineProperty(e,"timestamp",{value:cm()}),Object.defineProperty(e,"uncolorize",{value:fm()}),mr}var _i={},ku;function Jl(){return ku||(ku=1,function(e){var n=Je(),o=n.format;e.warn={deprecated:function(a){return function(){throw new Error(o("{ %s } was removed in winston@3.0.0.",a))}},useFormat:function(a){return function(){throw new Error([o("{ %s } was removed in winston@3.0.0.",a),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
127
|
+
`))}},forFunctions:function(a,t,r){r.forEach(function(s){a[s]=e.warn[t](s)})},moved:function(a,t,r){function s(){return function(){throw new Error([o("winston.%s was moved in winston@3.0.0.",r),o("Use a winston.%s instead.",t)].join(`
|
|
128
|
+
`))}}Object.defineProperty(a,r,{get:s,set:s})},forProperties:function(a,t,r){r.forEach(function(s){var d=e.warn[t](s);Object.defineProperty(a,s,{get:d,set:d})})}}}(_i)),_i}const lm="3.8.2",hm={version:lm};var bi={},Er={exports:{}},wi={exports:{}},ju;function dm(){if(ju)return wi.exports;ju=1;var e=Je(),n=Ve(),o=n.LEVEL,i=qt(),a=wi.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(d){this.emit("error",d,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=s.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(a,i),a.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);(!this.level||this.levels[this.level]>=this.levels[r[o]])&&this.transport.log(r[o],r.message,r,this._nop),d(null)},a.prototype._writev=function(r,s){for(var d=0;d<r.length;d++)this._accept(r[d])&&(this.transport.log(r[d].chunk[o],r[d].chunk.message,r[d].chunk,this._nop),r[d].callback());return s(null)},a.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
129
|
+
`))},a.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},wi.exports}var qu;function qt(){if(qu)return Er.exports;qu=1;var e=Je(),n=Ol(),o=Ve(),i=o.LEVEL,a=Er.exports=function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.call(this,{objectMode:!0,highWaterMark:s.highWaterMark}),this.format=s.format,this.level=s.level,this.handleExceptions=s.handleExceptions,this.handleRejections=s.handleRejections,this.silent=s.silent,s.log&&(this.log=s.log),s.logv&&(this.logv=s.logv),s.close&&(this.close=s.close),this.once("pipe",function(d){r.levels=d.levels,r.parent=d}),this.once("unpipe",function(d){d===r.parent&&(r.parent=null,r.close&&r.close())})};return e.inherits(a,n),a.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);var l=this.level||this.parent&&this.parent.level;if(!l||this.levels[l]>=this.levels[r[i]]){if(r&&!this.format)return this.log(r,d);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(d(),u)throw u;return}return this.log(f,d)}return this._writableState.sync=!1,d(null)},a.prototype._writev=function(r,s){if(this.logv){var d=r.filter(this._accept,this);return d.length?this.logv(d,s):s(null)}for(var l=0;l<r.length;l++)if(this._accept(r[l])){if(r[l].chunk&&!this.format){this.log(r[l].chunk,r[l].callback);continue}var 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)},a.prototype._accept=function(r){var s=r.chunk;if(this.silent)return!1;var d=this.level||this.parent&&this.parent.level;return!!((s.exception===!0||!d||this.levels[d]>=this.levels[s[i]])&&(this.handleExceptions||s.exception!==!0))},a.prototype._nop=function(){},Er.exports.LegacyTransportStream=dm(),Er.exports}var Ei,Lu;function pm(){if(Lu)return Ei;Lu=1;function e(g){"@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(g)}function n(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}function o(g,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(g,b.key,b)}}function i(g,c,_){return c&&o(g.prototype,c),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(c&&c.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),c&&t(g,c)}function t(g,c){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},t(g,c)}function r(g){var c=l();return function(){var b=u(g),v;if(c){var E=u(this).constructor;v=Reflect.construct(b,arguments,E)}else v=b.apply(this,arguments);return s(this,v)}}function s(g,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 d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}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(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},u(g)}var f=jt(),h=Ve(),w=h.LEVEL,m=h.MESSAGE,y=qt();return Ei=function(g){a(_,g);var c=r(_);function _(){var b,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(this,_),b=c.call(this,v),b.name=v.name||"console",b.stderrLevels=b._stringArrayToSet(v.stderrLevels),b.consoleWarnLevels=b._stringArrayToSet(v.consoleWarnLevels),b.eol=typeof v.eol=="string"?v.eol:f.EOL,b.setMaxListeners(30),b}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.stderrLevels[v[w]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.error(v[m]),E&&E();return}else if(this.consoleWarnLevels[v[w]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.warn(v[m]),E&&E();return}console._stdout?console._stdout.write("".concat(v[m]).concat(this.eol)):console.log(v[m]),E&&E()}},{key:"_stringArrayToSet",value:function(v,E){if(!v)return{};if(E=E||"Cannot make set from type other than Array of string elements",!Array.isArray(v))throw new Error(E);return v.reduce(function(x,T){if(typeof T!="string")throw new Error(E);return x[T]=!0,x},{})}}]),_}(y),Ei}var Si,Nu;function Do(){if(Nu)return Si;Nu=1;var e=null;return Si=e,Si}var Ri,Du;function Xl(){if(Du)return Ri;Du=1;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,t){for(var r="",s=0,d=-1,l=0,u,f=0;f<=a.length;++f){if(f<a.length)u=a.charCodeAt(f);else{if(u===47)break;u=47}if(u===47){if(!(d===f-1||l===1))if(d!==f-1&&l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var h=r.lastIndexOf("/");if(h!==r.length-1){h===-1?(r="",s=0):(r=r.slice(0,h),s=r.length-1-r.lastIndexOf("/")),d=f,l=0;continue}}else if(r.length===2||r.length===1){r="",s=0,d=f,l=0;continue}}t&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+a.slice(d+1,f):r=a.slice(d+1,f),s=f-d-1;d=f,l=0}else u===46&&l!==-1?++l:l=-1}return r}function o(a,t){var r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+a+s:s}var i={resolve:function(){for(var t="",r=!1,s,d=arguments.length-1;d>=-1&&!r;d--){var l;d>=0?l=arguments[d]:(s===void 0&&(s=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 d=t.length,l=d-s,u=1;u<r.length&&r.charCodeAt(u)===47;++u);for(var f=r.length,h=f-u,w=l<h?l:h,m=-1,y=0;y<=w;++y){if(y===w){if(h>w){if(r.charCodeAt(u+y)===47)return r.slice(u+y+1);if(y===0)return r.slice(u+y)}else l>w&&(t.charCodeAt(s+y)===47?m=y:y===0&&(m=0));break}var g=t.charCodeAt(s+y),c=r.charCodeAt(u+y);if(g!==c)break;g===47&&(m=y)}var _="";for(y=s+m+1;y<=d;++y)(y===d||t.charCodeAt(y)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(u+m):(u+=m,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,d=-1,l=!0,u=t.length-1;u>=1;--u)if(r=t.charCodeAt(u),r===47){if(!l){d=u;break}}else l=!1;return d===-1?s?"/":".":s&&d===1?"//":t.slice(0,d)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(t);var s=0,d=-1,l=!0,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&&(d=u):(f=-1,d=h))}return s===d?d=h:d===-1&&(d=t.length),t.slice(s,d)}else{for(u=t.length-1;u>=0;--u)if(t.charCodeAt(u)===47){if(!l){s=u+1;break}}else d===-1&&(l=!1,d=u+1);return d===-1?"":t.slice(s,d)}},extname:function(t){e(t);for(var r=-1,s=0,d=-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}d===-1&&(l=!1,d=f+1),h===46?r===-1?r=f:u!==1&&(u=1):r!==-1&&(u=-1)}return r===-1||d===-1||u===0||u===1&&r===d-1&&r===s+1?"":t.slice(r,d)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return o("/",t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var s=t.charCodeAt(0),d=s===47,l;d?(r.root="/",l=1):l=0;for(var u=-1,f=0,h=-1,w=!0,m=t.length-1,y=0;m>=l;--m){if(s=t.charCodeAt(m),s===47){if(!w){f=m+1;break}continue}h===-1&&(w=!1,h=m+1),s===46?u===-1?u=m:y!==1&&(y=1):u!==-1&&(y=-1)}return u===-1||h===-1||y===0||y===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&d?r.base=r.name=t.slice(1,h):r.base=r.name=t.slice(f,h)):(f===0&&d?(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):d&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Ri=i,Ri}var Sr={exports:{}},Rr={exports:{}},Or={exports:{}},$u;function $o(){return $u||($u=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return i&&typeof i.length=="number"&&i.length>=0&&i.length%1===0}e.exports=n.default}(Or,Or.exports)),Or.exports}var gt={},Tr={exports:{}},xr={exports:{}},Mu;function mm(){return Mu||(Mu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return function(...i){var a=i.pop();return o.call(this,i,a)}},e.exports=n.default}(xr,xr.exports)),xr.exports}var _t={},Fu;function gm(){if(Fu)return _t;Fu=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.fallback=i,_t.wrap=a;var e=_t.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,n=_t.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,o=_t.hasNextTick=typeof Re=="object"&&typeof Re.nextTick=="function";function i(r){setTimeout(r,0)}function a(r){return(s,...d)=>r(()=>s(...d))}var t;return e?t=queueMicrotask:n?t=setImmediate:o?t=Re.nextTick:t=i,_t.default=a(t),_t}var Uu;function vm(){return Uu||(Uu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var o=mm(),i=s(o),a=gm(),t=s(a),r=Bt();function s(f){return f&&f.__esModule?f:{default:f}}function d(f){return(0,r.isAsync)(f)?function(...h){const w=h.pop(),m=f.apply(this,h);return l(m,w)}:(0,i.default)(function(h,w){var m;try{m=f.apply(this,h)}catch(y){return w(y)}if(m&&typeof m.then=="function")return l(m,w);w(null,m)})}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(m){(0,t.default)(y=>{throw y},m)}}e.exports=n.default}(Tr,Tr.exports)),Tr.exports}var Bu;function Bt(){if(Bu)return gt;Bu=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.isAsyncIterable=gt.isAsyncGenerator=gt.isAsync=void 0;var e=vm(),n=o(e);function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return s[Symbol.toStringTag]==="AsyncFunction"}function a(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=a,gt.isAsyncIterable=t,gt}var Cr={exports:{}},Vu;function ar(){return Vu||(Vu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i,a=i.length){if(!a)throw new Error("arity is undefined");function t(...r){return typeof r[a-1]=="function"?i.apply(this,r):new Promise((s,d)=>{r[a-1]=(l,...u)=>{if(l)return d(l);s(u.length>1?u:u[0])},i.apply(this,r)})}return t}e.exports=n.default}(Cr,Cr.exports)),Cr.exports}var Gu;function ym(){return Gu||(Gu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=$o(),i=d(o),a=Bt(),t=d(a),r=ar(),s=d(r);function d(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,m,y)=>{(0,t.default)(w)((g,...c)=>{c.length<2&&([c]=c),h[m]=c,y(g)})},w=>f(w,h))},3),e.exports=n.default}(Rr,Rr.exports)),Rr.exports}var Ar={exports:{}},Ir={exports:{}},Pr={exports:{}},kr={exports:{}},zu;function Ql(){return zu||(zu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){function a(...t){if(i!==null){var r=i;i=null,r.apply(this,t)}}return Object.assign(a,i),a}e.exports=n.default}(kr,kr.exports)),kr.exports}var jr={exports:{}},qr={exports:{}},Hu;function _m(){return Hu||(Hu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return o[Symbol.iterator]&&o[Symbol.iterator]()},e.exports=n.default}(qr,qr.exports)),qr.exports}var Zu;function bm(){return Zu||(Zu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var o=$o(),i=r(o),a=_m(),t=r(a);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 d(f){var h=-1;return function(){var m=f.next();return m.done?null:(h++,{value:m.value,key:h})}}function l(f){var h=f?Object.keys(f):[],w=-1,m=h.length;return function y(){var g=h[++w];return g==="__proto__"?y():w<m?{value:f[g],key:g}:null}}function u(f){if((0,i.default)(f))return s(f);var h=(0,t.default)(f);return h?d(h):l(f)}e.exports=n.default}(jr,jr.exports)),jr.exports}var Lr={exports:{}},Wu;function eh(){return Wu||(Wu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return function(...a){if(i===null)throw new Error("Callback was already called.");var t=i;i=null,t.apply(this,a)}}e.exports=n.default}(Lr,Lr.exports)),Lr.exports}var Nr={exports:{}},Dr={exports:{}},Yu;function Mo(){return Yu||(Yu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});const o={};n.default=o,e.exports=n.default}(Dr,Dr.exports)),Dr.exports}var Ku;function wm(){return Ku||(Ku=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;var o=Mo(),i=a(o);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,s,d,l){let u=!1,f=!1,h=!1,w=0,m=0;function y(){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++,d(_,m,g),m++,y()}}).catch(c))}function g(_,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);y()}}function c(_){f||(h=!1,u=!0,l(_))}y()}e.exports=n.default}(Nr,Nr.exports)),Nr.exports}var Ju;function Em(){return Ju||(Ju=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Ql(),i=w(o),a=bm(),t=w(a),r=eh(),s=w(r),d=Bt(),l=wm(),u=w(l),f=Mo(),h=w(f);function w(m){return m&&m.__esModule?m:{default:m}}n.default=m=>(y,g,c)=>{if(c=(0,i.default)(c),m<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!y)return c(null);if((0,d.isAsyncGenerator)(y))return(0,u.default)(y,m,g,c);if((0,d.isAsyncIterable)(y))return(0,u.default)(y[Symbol.asyncIterator](),m,g,c);var _=(0,t.default)(y),b=!1,v=!1,E=0,x=!1;function T(F,X){if(!v)if(E-=1,F)b=!0,c(F);else if(F===!1)b=!0,v=!0;else{if(X===h.default||b&&E<=0)return b=!0,c(null);x||P()}}function P(){for(x=!0;E<m&&!b;){var F=_();if(F===null){b=!0,E<=0&&c(null);return}E+=1,g(F.value,F.key,(0,s.default)(T))}x=!1}P()},e.exports=n.default}(Pr,Pr.exports)),Pr.exports}var Xu;function th(){return Xu||(Xu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Em(),i=d(o),a=Bt(),t=d(a),r=ar(),s=d(r);function d(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}(Ir,Ir.exports)),Ir.exports}var Qu;function Sm(){return Qu||(Qu=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=th(),i=r(o),a=ar(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l,u){return(0,i.default)(d,1,l,u)}n.default=(0,t.default)(s,3),e.exports=n.default}(Ar,Ar.exports)),Ar.exports}var ec;function Rm(){return ec||(ec=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var o=ym(),i=r(o),a=Sm(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l){return(0,i.default)(t.default,d,l)}e.exports=n.default}(Sr,Sr.exports)),Sr.exports}var Oi={},Ti={},xi,tc;function Om(){if(tc)return xi;tc=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 xi=e,xi}var ft={},Ci={},rc;function nn(){return rc||(rc=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(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 d in s)o(s,d)&&(t[d]=s[d])}}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,d,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),l);return}for(var u=0;u<d;u++)t[l+u]=r[s+u]},flattenChunks:function(t){var r,s,d,l,u,f;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(f=new Uint8Array(d),l=0,r=0,s=t.length;r<s;r++)u=t[r],f.set(u,l),l+=u.length;return f}},a={arraySet:function(t,r,s,d,l){for(var u=0;u<d;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,a))},e.setTyped(n)}(Ci)),Ci}var At={},nc;function Tm(){if(nc)return At;nc=1;var e=nn(),n=4,o=0,i=1,a=2;function t(I){for(var ie=I.length;--ie>=0;)I[ie]=0}var r=0,s=1,d=2,l=3,u=258,f=29,h=256,w=h+1+f,m=30,y=19,g=2*w+1,c=15,_=16,b=7,v=256,E=16,x=17,T=18,P=[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],F=[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],X=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((w+2)*2);t(R);var L=new Array(m*2);t(L);var M=new Array(S);t(M);var Z=new Array(u-l+1);t(Z);var k=new Array(f);t(k);var j=new Array(m);t(j);function q(I,ie,ce,de,W){this.static_tree=I,this.extra_bits=ie,this.extra_base=ce,this.elems=de,this.max_length=W,this.has_stree=I&&I.length}var N,V,G;function U(I,ie){this.dyn_tree=I,this.max_code=0,this.stat_desc=ie}function D(I){return I<256?M[I]:M[256+(I>>>7)]}function $(I,ie){I.pending_buf[I.pending++]=ie&255,I.pending_buf[I.pending++]=ie>>>8&255}function B(I,ie,ce){I.bi_valid>_-ce?(I.bi_buf|=ie<<I.bi_valid&65535,$(I,I.bi_buf),I.bi_buf=ie>>_-I.bi_valid,I.bi_valid+=ce-_):(I.bi_buf|=ie<<I.bi_valid&65535,I.bi_valid+=ce)}function re(I,ie,ce){B(I,ce[ie*2],ce[ie*2+1])}function ee(I,ie){var ce=0;do ce|=I&1,I>>>=1,ce<<=1;while(--ie>0);return ce>>>1}function se(I){I.bi_valid===16?($(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function le(I,ie){var ce=ie.dyn_tree,de=ie.max_code,W=ie.stat_desc.static_tree,oe=ie.stat_desc.has_stree,O=ie.stat_desc.extra_bits,ue=ie.stat_desc.extra_base,Oe=ie.stat_desc.max_length,p,te,ae,C,z,ne,Ee=0;for(C=0;C<=c;C++)I.bl_count[C]=0;for(ce[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],C=ce[ce[te*2+1]*2+1]+1,C>Oe&&(C=Oe,Ee++),ce[te*2+1]=C,!(te>de)&&(I.bl_count[C]++,z=0,te>=ue&&(z=O[te-ue]),ne=ce[te*2],I.opt_len+=ne*(C+z),oe&&(I.static_len+=ne*(W[te*2+1]+z)));if(Ee!==0){do{for(C=Oe-1;I.bl_count[C]===0;)C--;I.bl_count[C]--,I.bl_count[C+1]+=2,I.bl_count[Oe]--,Ee-=2}while(Ee>0);for(C=Oe;C!==0;C--)for(te=I.bl_count[C];te!==0;)ae=I.heap[--p],!(ae>de)&&(ce[ae*2+1]!==C&&(I.opt_len+=(C-ce[ae*2+1])*ce[ae*2],ce[ae*2+1]=C),te--)}}function ge(I,ie,ce){var de=new Array(c+1),W=0,oe,O;for(oe=1;oe<=c;oe++)de[oe]=W=W+ce[oe-1]<<1;for(O=0;O<=ie;O++){var ue=I[O*2+1];ue!==0&&(I[O*2]=ee(de[ue]++,ue))}}function ye(){var I,ie,ce,de,W,oe=new Array(c+1);for(ce=0,de=0;de<f-1;de++)for(k[de]=ce,I=0;I<1<<P[de];I++)Z[ce++]=de;for(Z[ce-1]=de,W=0,de=0;de<16;de++)for(j[de]=W,I=0;I<1<<F[de];I++)M[W++]=de;for(W>>=7;de<m;de++)for(j[de]=W<<7,I=0;I<1<<F[de]-7;I++)M[256+W++]=de;for(ie=0;ie<=c;ie++)oe[ie]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,oe[8]++;for(;I<=255;)R[I*2+1]=9,I++,oe[9]++;for(;I<=279;)R[I*2+1]=7,I++,oe[7]++;for(;I<=287;)R[I*2+1]=8,I++,oe[8]++;for(ge(R,w+1,oe),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=ee(I,5);N=new q(R,P,h+1,w,c),V=new q(L,F,0,m,c),G=new q(new Array(0),X,0,y,b)}function Se(I){var ie;for(ie=0;ie<w;ie++)I.dyn_ltree[ie*2]=0;for(ie=0;ie<m;ie++)I.dyn_dtree[ie*2]=0;for(ie=0;ie<y;ie++)I.bl_tree[ie*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ae(I){I.bi_valid>8?$(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function qe(I,ie,ce,de){Ae(I),$(I,ce),$(I,~ce),e.arraySet(I.pending_buf,I.window,ie,ce,I.pending),I.pending+=ce}function Le(I,ie,ce,de){var W=ie*2,oe=ce*2;return I[W]<I[oe]||I[W]===I[oe]&&de[ie]<=de[ce]}function ke(I,ie,ce){for(var de=I.heap[ce],W=ce<<1;W<=I.heap_len&&(W<I.heap_len&&Le(ie,I.heap[W+1],I.heap[W],I.depth)&&W++,!Le(ie,de,I.heap[W],I.depth));)I.heap[ce]=I.heap[W],ce=W,W<<=1;I.heap[ce]=de}function xe(I,ie,ce){var de,W,oe=0,O,ue;if(I.last_lit!==0)do de=I.pending_buf[I.d_buf+oe*2]<<8|I.pending_buf[I.d_buf+oe*2+1],W=I.pending_buf[I.l_buf+oe],oe++,de===0?re(I,W,ie):(O=Z[W],re(I,O+h+1,ie),ue=P[O],ue!==0&&(W-=k[O],B(I,W,ue)),de--,O=D(de),re(I,O,ce),ue=F[O],ue!==0&&(de-=j[O],B(I,de,ue)));while(oe<I.last_lit);re(I,v,ie)}function Fe(I,ie){var ce=ie.dyn_tree,de=ie.stat_desc.static_tree,W=ie.stat_desc.has_stree,oe=ie.stat_desc.elems,O,ue,Oe=-1,p;for(I.heap_len=0,I.heap_max=g,O=0;O<oe;O++)ce[O*2]!==0?(I.heap[++I.heap_len]=Oe=O,I.depth[O]=0):ce[O*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=Oe<2?++Oe:0,ce[p*2]=1,I.depth[p]=0,I.opt_len--,W&&(I.static_len-=de[p*2+1]);for(ie.max_code=Oe,O=I.heap_len>>1;O>=1;O--)ke(I,ce,O);p=oe;do O=I.heap[1],I.heap[1]=I.heap[I.heap_len--],ke(I,ce,1),ue=I.heap[1],I.heap[--I.heap_max]=O,I.heap[--I.heap_max]=ue,ce[p*2]=ce[O*2]+ce[ue*2],I.depth[p]=(I.depth[O]>=I.depth[ue]?I.depth[O]:I.depth[ue])+1,ce[O*2+1]=ce[ue*2+1]=p,I.heap[1]=p++,ke(I,ce,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],le(I,ie),ge(ce,Oe,I.bl_count)}function rt(I,ie,ce){var de,W=-1,oe,O=ie[0*2+1],ue=0,Oe=7,p=4;for(O===0&&(Oe=138,p=3),ie[(ce+1)*2+1]=65535,de=0;de<=ce;de++)oe=O,O=ie[(de+1)*2+1],!(++ue<Oe&&oe===O)&&(ue<p?I.bl_tree[oe*2]+=ue:oe!==0?(oe!==W&&I.bl_tree[oe*2]++,I.bl_tree[E*2]++):ue<=10?I.bl_tree[x*2]++:I.bl_tree[T*2]++,ue=0,W=oe,O===0?(Oe=138,p=3):oe===O?(Oe=6,p=3):(Oe=7,p=4))}function $e(I,ie,ce){var de,W=-1,oe,O=ie[0*2+1],ue=0,Oe=7,p=4;for(O===0&&(Oe=138,p=3),de=0;de<=ce;de++)if(oe=O,O=ie[(de+1)*2+1],!(++ue<Oe&&oe===O)){if(ue<p)do re(I,oe,I.bl_tree);while(--ue!==0);else oe!==0?(oe!==W&&(re(I,oe,I.bl_tree),ue--),re(I,E,I.bl_tree),B(I,ue-3,2)):ue<=10?(re(I,x,I.bl_tree),B(I,ue-3,3)):(re(I,T,I.bl_tree),B(I,ue-11,7));ue=0,W=oe,O===0?(Oe=138,p=3):oe===O?(Oe=6,p=3):(Oe=7,p=4)}}function Q(I){var ie;for(rt(I,I.dyn_ltree,I.l_desc.max_code),rt(I,I.dyn_dtree,I.d_desc.max_code),Fe(I,I.bl_desc),ie=y-1;ie>=3&&I.bl_tree[K[ie]*2+1]===0;ie--);return I.opt_len+=3*(ie+1)+5+5+4,ie}function pe(I,ie,ce,de){var W;for(B(I,ie-257,5),B(I,ce-1,5),B(I,de-4,4),W=0;W<de;W++)B(I,I.bl_tree[K[W]*2+1],3);$e(I,I.dyn_ltree,ie-1),$e(I,I.dyn_dtree,ce-1)}function A(I){var ie=4093624447,ce;for(ce=0;ce<=31;ce++,ie>>>=1)if(ie&1&&I.dyn_ltree[ce*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(ce=32;ce<h;ce++)if(I.dyn_ltree[ce*2]!==0)return i;return o}var J=!1;function fe(I){J||(ye(),J=!0),I.l_desc=new U(I.dyn_ltree,N),I.d_desc=new U(I.dyn_dtree,V),I.bl_desc=new U(I.bl_tree,G),I.bi_buf=0,I.bi_valid=0,Se(I)}function _e(I,ie,ce,de){B(I,(r<<1)+(de?1:0),3),qe(I,ie,ce)}function me(I){B(I,s<<1,3),re(I,v,R),se(I)}function he(I,ie,ce,de){var W,oe,O=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=A(I)),Fe(I,I.l_desc),Fe(I,I.d_desc),O=Q(I),W=I.opt_len+3+7>>>3,oe=I.static_len+3+7>>>3,oe<=W&&(W=oe)):W=oe=ce+5,ce+4<=W&&ie!==-1?_e(I,ie,ce,de):I.strategy===n||oe===W?(B(I,(s<<1)+(de?1:0),3),xe(I,R,L)):(B(I,(d<<1)+(de?1:0),3),pe(I,I.l_desc.max_code+1,I.d_desc.max_code+1,O+1),xe(I,I.dyn_ltree,I.dyn_dtree)),Se(I),de&&Ae(I)}function Te(I,ie,ce){return I.pending_buf[I.d_buf+I.last_lit*2]=ie>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ie&255,I.pending_buf[I.l_buf+I.last_lit]=ce&255,I.last_lit++,ie===0?I.dyn_ltree[ce*2]++:(I.matches++,ie--,I.dyn_ltree[(Z[ce]+h+1)*2]++,I.dyn_dtree[D(ie)*2]++),I.last_lit===I.lit_bufsize-1}return At._tr_init=fe,At._tr_stored_block=_e,At._tr_flush_block=he,At._tr_tally=Te,At._tr_align=me,At}var Ai,ic;function rh(){if(ic)return Ai;ic=1;function e(n,o,i,a){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+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return Ai=e,Ai}var Ii,ac;function nh(){if(ac)return Ii;ac=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var l=r;l<d;l++)i=i>>>8^s[(i^a[l])&255];return i^-1}return Ii=o,Ii}var Pi,oc;function xm(){return oc||(oc=1,Pi={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"}),Pi}var sc;function Cm(){if(sc)return ft;sc=1;var e=nn(),n=Tm(),o=rh(),i=nh(),a=xm(),t=0,r=1,s=3,d=4,l=5,u=0,f=1,h=-2,w=-3,m=-5,y=-1,g=1,c=2,_=3,b=4,v=0,E=2,x=8,T=9,P=15,F=8,X=29,K=256,S=K+1+X,R=30,L=19,M=2*S+1,Z=15,k=3,j=258,q=j+k+1,N=32,V=42,G=69,U=73,D=91,$=103,B=113,re=666,ee=1,se=2,le=3,ge=4,ye=3;function Se(p,te){return p.msg=a[te],te}function Ae(p){return(p<<1)-(p>4?9:0)}function qe(p){for(var te=p.length;--te>=0;)p[te]=0}function Le(p){var te=p.state,ae=te.pending;ae>p.avail_out&&(ae=p.avail_out),ae!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,ae,p.next_out),p.next_out+=ae,te.pending_out+=ae,p.total_out+=ae,p.avail_out-=ae,te.pending-=ae,te.pending===0&&(te.pending_out=0))}function ke(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,Le(p.strm)}function xe(p,te){p.pending_buf[p.pending++]=te}function Fe(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function rt(p,te,ae,C){var z=p.avail_in;return z>C&&(z=C),z===0?0:(p.avail_in-=z,e.arraySet(te,p.input,p.next_in,z,ae),p.state.wrap===1?p.adler=o(p.adler,te,z,ae):p.state.wrap===2&&(p.adler=i(p.adler,te,z,ae)),p.next_in+=z,p.total_in+=z,z)}function $e(p,te){var ae=p.max_chain_length,C=p.strstart,z,ne,Ee=p.prev_length,ve=p.nice_match,be=p.strstart>p.w_size-q?p.strstart-(p.w_size-q):0,Ie=p.window,ut=p.w_mask,Ne=p.prev,Pe=p.strstart+j,Me=Ie[C+Ee-1],Ue=Ie[C+Ee];p.prev_length>=p.good_match&&(ae>>=2),ve>p.lookahead&&(ve=p.lookahead);do if(z=te,!(Ie[z+Ee]!==Ue||Ie[z+Ee-1]!==Me||Ie[z]!==Ie[C]||Ie[++z]!==Ie[C+1])){C+=2,z++;do;while(Ie[++C]===Ie[++z]&&Ie[++C]===Ie[++z]&&Ie[++C]===Ie[++z]&&Ie[++C]===Ie[++z]&&Ie[++C]===Ie[++z]&&Ie[++C]===Ie[++z]&&Ie[++C]===Ie[++z]&&Ie[++C]===Ie[++z]&&C<Pe);if(ne=j-(Pe-C),C=Pe-j,ne>Ee){if(p.match_start=te,Ee=ne,ne>=ve)break;Me=Ie[C+Ee-1],Ue=Ie[C+Ee]}}while((te=Ne[te&ut])>be&&--ae!==0);return Ee<=p.lookahead?Ee:p.lookahead}function Q(p){var te=p.w_size,ae,C,z,ne,Ee;do{if(ne=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-q)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,C=p.hash_size,ae=C;do z=p.head[--ae],p.head[ae]=z>=te?z-te:0;while(--C);C=te,ae=C;do z=p.prev[--ae],p.prev[ae]=z>=te?z-te:0;while(--C);ne+=te}if(p.strm.avail_in===0)break;if(C=rt(p.strm,p.window,p.strstart+p.lookahead,ne),p.lookahead+=C,p.lookahead+p.insert>=k)for(Ee=p.strstart-p.insert,p.ins_h=p.window[Ee],p.ins_h=(p.ins_h<<p.hash_shift^p.window[Ee+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[Ee+k-1])&p.hash_mask,p.prev[Ee&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=Ee,Ee++,p.insert--,!(p.lookahead+p.insert<k)););}while(p.lookahead<q&&p.strm.avail_in!==0)}function pe(p,te){var ae=65535;for(ae>p.pending_buf_size-5&&(ae=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Q(p),p.lookahead===0&&te===t)return ee;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var C=p.block_start+ae;if((p.strstart===0||p.strstart>=C)&&(p.lookahead=p.strstart-C,p.strstart=C,ke(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-q&&(ke(p,!1),p.strm.avail_out===0))return ee}return p.insert=0,te===d?(ke(p,!0),p.strm.avail_out===0?le:ge):(p.strstart>p.block_start&&(ke(p,!1),p.strm.avail_out===0),ee)}function A(p,te){for(var ae,C;;){if(p.lookahead<q){if(Q(p),p.lookahead<q&&te===t)return ee;if(p.lookahead===0)break}if(ae=0,p.lookahead>=k&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,ae=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),ae!==0&&p.strstart-ae<=p.w_size-q&&(p.match_length=$e(p,ae)),p.match_length>=k)if(C=n._tr_tally(p,p.strstart-p.match_start,p.match_length-k),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=k){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,ae=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else C=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(C&&(ke(p,!1),p.strm.avail_out===0))return ee}return p.insert=p.strstart<k-1?p.strstart:k-1,te===d?(ke(p,!0),p.strm.avail_out===0?le:ge):p.last_lit&&(ke(p,!1),p.strm.avail_out===0)?ee:se}function J(p,te){for(var ae,C,z;;){if(p.lookahead<q){if(Q(p),p.lookahead<q&&te===t)return ee;if(p.lookahead===0)break}if(ae=0,p.lookahead>=k&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,ae=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=k-1,ae!==0&&p.prev_length<p.max_lazy_match&&p.strstart-ae<=p.w_size-q&&(p.match_length=$e(p,ae),p.match_length<=5&&(p.strategy===g||p.match_length===k&&p.strstart-p.match_start>4096)&&(p.match_length=k-1)),p.prev_length>=k&&p.match_length<=p.prev_length){z=p.strstart+p.lookahead-k,C=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-k),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=z&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+k-1])&p.hash_mask,ae=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=k-1,p.strstart++,C&&(ke(p,!1),p.strm.avail_out===0))return ee}else if(p.match_available){if(C=n._tr_tally(p,0,p.window[p.strstart-1]),C&&ke(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return ee}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(C=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<k-1?p.strstart:k-1,te===d?(ke(p,!0),p.strm.avail_out===0?le:ge):p.last_lit&&(ke(p,!1),p.strm.avail_out===0)?ee:se}function fe(p,te){for(var ae,C,z,ne,Ee=p.window;;){if(p.lookahead<=j){if(Q(p),p.lookahead<=j&&te===t)return ee;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=k&&p.strstart>0&&(z=p.strstart-1,C=Ee[z],C===Ee[++z]&&C===Ee[++z]&&C===Ee[++z])){ne=p.strstart+j;do;while(C===Ee[++z]&&C===Ee[++z]&&C===Ee[++z]&&C===Ee[++z]&&C===Ee[++z]&&C===Ee[++z]&&C===Ee[++z]&&C===Ee[++z]&&z<ne);p.match_length=j-(ne-z),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=k?(ae=n._tr_tally(p,1,p.match_length-k),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(ae=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),ae&&(ke(p,!1),p.strm.avail_out===0))return ee}return p.insert=0,te===d?(ke(p,!0),p.strm.avail_out===0?le:ge):p.last_lit&&(ke(p,!1),p.strm.avail_out===0)?ee:se}function _e(p,te){for(var ae;;){if(p.lookahead===0&&(Q(p),p.lookahead===0)){if(te===t)return ee;break}if(p.match_length=0,ae=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,ae&&(ke(p,!1),p.strm.avail_out===0))return ee}return p.insert=0,te===d?(ke(p,!0),p.strm.avail_out===0?le:ge):p.last_lit&&(ke(p,!1),p.strm.avail_out===0)?ee:se}function me(p,te,ae,C,z){this.good_length=p,this.max_lazy=te,this.nice_length=ae,this.max_chain=C,this.func=z}var he;he=[new me(0,0,0,0,pe),new me(4,4,8,4,A),new me(4,5,16,8,A),new me(4,6,32,32,A),new me(4,4,16,16,J),new me(8,16,32,32,J),new me(8,16,128,128,J),new me(8,32,128,256,J),new me(32,128,258,1024,J),new me(32,258,258,4096,J)];function Te(p){p.window_size=2*p.w_size,qe(p.head),p.max_lazy_match=he[p.level].max_lazy,p.good_match=he[p.level].good_length,p.nice_match=he[p.level].nice_length,p.max_chain_length=he[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=k-1,p.match_available=0,p.ins_h=0}function I(){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=x,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(M*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),qe(this.dyn_ltree),qe(this.dyn_dtree),qe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(Z+1),this.heap=new e.Buf16(2*S+1),qe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),qe(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 ie(p){var te;return!p||!p.state?Se(p,h):(p.total_in=p.total_out=0,p.data_type=E,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?V:B,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),u)}function ce(p){var te=ie(p);return te===u&&Te(p.state),te}function de(p,te){return!p||!p.state||p.state.wrap!==2?h:(p.state.gzhead=te,u)}function W(p,te,ae,C,z,ne){if(!p)return h;var Ee=1;if(te===y&&(te=6),C<0?(Ee=0,C=-C):C>15&&(Ee=2,C-=16),z<1||z>T||ae!==x||C<8||C>15||te<0||te>9||ne<0||ne>b)return Se(p,h);C===8&&(C=9);var ve=new I;return p.state=ve,ve.strm=p,ve.wrap=Ee,ve.gzhead=null,ve.w_bits=C,ve.w_size=1<<ve.w_bits,ve.w_mask=ve.w_size-1,ve.hash_bits=z+7,ve.hash_size=1<<ve.hash_bits,ve.hash_mask=ve.hash_size-1,ve.hash_shift=~~((ve.hash_bits+k-1)/k),ve.window=new e.Buf8(ve.w_size*2),ve.head=new e.Buf16(ve.hash_size),ve.prev=new e.Buf16(ve.w_size),ve.lit_bufsize=1<<z+6,ve.pending_buf_size=ve.lit_bufsize*4,ve.pending_buf=new e.Buf8(ve.pending_buf_size),ve.d_buf=1*ve.lit_bufsize,ve.l_buf=3*ve.lit_bufsize,ve.level=te,ve.strategy=ne,ve.method=ae,ce(p)}function oe(p,te){return W(p,te,x,P,F,v)}function O(p,te){var ae,C,z,ne;if(!p||!p.state||te>l||te<0)return p?Se(p,h):h;if(C=p.state,!p.output||!p.input&&p.avail_in!==0||C.status===re&&te!==d)return Se(p,p.avail_out===0?m:h);if(C.strm=p,ae=C.last_flush,C.last_flush=te,C.status===V)if(C.wrap===2)p.adler=0,xe(C,31),xe(C,139),xe(C,8),C.gzhead?(xe(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)),xe(C,C.gzhead.time&255),xe(C,C.gzhead.time>>8&255),xe(C,C.gzhead.time>>16&255),xe(C,C.gzhead.time>>24&255),xe(C,C.level===9?2:C.strategy>=c||C.level<2?4:0),xe(C,C.gzhead.os&255),C.gzhead.extra&&C.gzhead.extra.length&&(xe(C,C.gzhead.extra.length&255),xe(C,C.gzhead.extra.length>>8&255)),C.gzhead.hcrc&&(p.adler=i(p.adler,C.pending_buf,C.pending,0)),C.gzindex=0,C.status=G):(xe(C,0),xe(C,0),xe(C,0),xe(C,0),xe(C,0),xe(C,C.level===9?2:C.strategy>=c||C.level<2?4:0),xe(C,ye),C.status=B);else{var Ee=x+(C.w_bits-8<<4)<<8,ve=-1;C.strategy>=c||C.level<2?ve=0:C.level<6?ve=1:C.level===6?ve=2:ve=3,Ee|=ve<<6,C.strstart!==0&&(Ee|=N),Ee+=31-Ee%31,C.status=B,Fe(C,Ee),C.strstart!==0&&(Fe(C,p.adler>>>16),Fe(C,p.adler&65535)),p.adler=1}if(C.status===G)if(C.gzhead.extra){for(z=C.pending;C.gzindex<(C.gzhead.extra.length&65535)&&!(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>z&&(p.adler=i(p.adler,C.pending_buf,C.pending-z,z)),Le(p),z=C.pending,C.pending===C.pending_buf_size));)xe(C,C.gzhead.extra[C.gzindex]&255),C.gzindex++;C.gzhead.hcrc&&C.pending>z&&(p.adler=i(p.adler,C.pending_buf,C.pending-z,z)),C.gzindex===C.gzhead.extra.length&&(C.gzindex=0,C.status=U)}else C.status=U;if(C.status===U)if(C.gzhead.name){z=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>z&&(p.adler=i(p.adler,C.pending_buf,C.pending-z,z)),Le(p),z=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,xe(C,ne)}while(ne!==0);C.gzhead.hcrc&&C.pending>z&&(p.adler=i(p.adler,C.pending_buf,C.pending-z,z)),ne===0&&(C.gzindex=0,C.status=D)}else C.status=D;if(C.status===D)if(C.gzhead.comment){z=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>z&&(p.adler=i(p.adler,C.pending_buf,C.pending-z,z)),Le(p),z=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,xe(C,ne)}while(ne!==0);C.gzhead.hcrc&&C.pending>z&&(p.adler=i(p.adler,C.pending_buf,C.pending-z,z)),ne===0&&(C.status=$)}else C.status=$;if(C.status===$&&(C.gzhead.hcrc?(C.pending+2>C.pending_buf_size&&Le(p),C.pending+2<=C.pending_buf_size&&(xe(C,p.adler&255),xe(C,p.adler>>8&255),p.adler=0,C.status=B)):C.status=B),C.pending!==0){if(Le(p),p.avail_out===0)return C.last_flush=-1,u}else if(p.avail_in===0&&Ae(te)<=Ae(ae)&&te!==d)return Se(p,m);if(C.status===re&&p.avail_in!==0)return Se(p,m);if(p.avail_in!==0||C.lookahead!==0||te!==t&&C.status!==re){var be=C.strategy===c?_e(C,te):C.strategy===_?fe(C,te):he[C.level].func(C,te);if((be===le||be===ge)&&(C.status=re),be===ee||be===le)return p.avail_out===0&&(C.last_flush=-1),u;if(be===se&&(te===r?n._tr_align(C):te!==l&&(n._tr_stored_block(C,0,0,!1),te===s&&(qe(C.head),C.lookahead===0&&(C.strstart=0,C.block_start=0,C.insert=0))),Le(p),p.avail_out===0))return C.last_flush=-1,u}return te!==d?u:C.wrap<=0?f:(C.wrap===2?(xe(C,p.adler&255),xe(C,p.adler>>8&255),xe(C,p.adler>>16&255),xe(C,p.adler>>24&255),xe(C,p.total_in&255),xe(C,p.total_in>>8&255),xe(C,p.total_in>>16&255),xe(C,p.total_in>>24&255)):(Fe(C,p.adler>>>16),Fe(C,p.adler&65535)),Le(p),C.wrap>0&&(C.wrap=-C.wrap),C.pending!==0?u:f)}function ue(p){var te;return!p||!p.state?h:(te=p.state.status,te!==V&&te!==G&&te!==U&&te!==D&&te!==$&&te!==B&&te!==re?Se(p,h):(p.state=null,te===B?Se(p,w):u))}function Oe(p,te){var ae=te.length,C,z,ne,Ee,ve,be,Ie,ut;if(!p||!p.state||(C=p.state,Ee=C.wrap,Ee===2||Ee===1&&C.status!==V||C.lookahead))return h;for(Ee===1&&(p.adler=o(p.adler,te,ae,0)),C.wrap=0,ae>=C.w_size&&(Ee===0&&(qe(C.head),C.strstart=0,C.block_start=0,C.insert=0),ut=new e.Buf8(C.w_size),e.arraySet(ut,te,ae-C.w_size,C.w_size,0),te=ut,ae=C.w_size),ve=p.avail_in,be=p.next_in,Ie=p.input,p.avail_in=ae,p.next_in=0,p.input=te,Q(C);C.lookahead>=k;){z=C.strstart,ne=C.lookahead-(k-1);do C.ins_h=(C.ins_h<<C.hash_shift^C.window[z+k-1])&C.hash_mask,C.prev[z&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=z,z++;while(--ne);C.strstart=z,C.lookahead=k-1,Q(C)}return C.strstart+=C.lookahead,C.block_start=C.strstart,C.insert=C.lookahead,C.lookahead=0,C.match_length=C.prev_length=k-1,C.match_available=0,p.next_in=be,p.input=Ie,p.avail_in=ve,C.wrap=Ee,u}return ft.deflateInit=oe,ft.deflateInit2=W,ft.deflateReset=ce,ft.deflateResetKeep=ie,ft.deflateSetHeader=de,ft.deflate=O,ft.deflateEnd=ue,ft.deflateSetDictionary=Oe,ft.deflateInfo="pako deflate (from Nodeca project)",ft}var st={},ki,uc;function Am(){if(uc)return ki;uc=1;var e=30,n=12;return ki=function(i,a){var t,r,s,d,l,u,f,h,w,m,y,g,c,_,b,v,E,x,T,P,F,X,K,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,l=d-(a-i.avail_out),u=d+(i.avail_out-257),f=t.dmax,h=t.wsize,w=t.whave,m=t.wnext,y=t.window,g=t.hold,c=t.bits,_=t.lencode,b=t.distcode,v=(1<<t.lenbits)-1,E=(1<<t.distbits)-1;e:do{c<15&&(g+=S[r++]<<c,c+=8,g+=S[r++]<<c,c+=8),x=_[g&v];t:for(;;){if(T=x>>>24,g>>>=T,c-=T,T=x>>>16&255,T===0)R[d++]=x&65535;else if(T&16){P=x&65535,T&=15,T&&(c<T&&(g+=S[r++]<<c,c+=8),P+=g&(1<<T)-1,g>>>=T,c-=T),c<15&&(g+=S[r++]<<c,c+=8,g+=S[r++]<<c,c+=8),x=b[g&E];r:for(;;){if(T=x>>>24,g>>>=T,c-=T,T=x>>>16&255,T&16){if(F=x&65535,T&=15,c<T&&(g+=S[r++]<<c,c+=8,c<T&&(g+=S[r++]<<c,c+=8)),F+=g&(1<<T)-1,F>f){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=T,c-=T,T=d-l,F>T){if(T=F-T,T>w&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(X=0,K=y,m===0){if(X+=h-T,T<P){P-=T;do R[d++]=y[X++];while(--T);X=d-F,K=R}}else if(m<T){if(X+=h+m-T,T-=m,T<P){P-=T;do R[d++]=y[X++];while(--T);if(X=0,m<P){T=m,P-=T;do R[d++]=y[X++];while(--T);X=d-F,K=R}}}else if(X+=m-T,T<P){P-=T;do R[d++]=y[X++];while(--T);X=d-F,K=R}for(;P>2;)R[d++]=K[X++],R[d++]=K[X++],R[d++]=K[X++],P-=3;P&&(R[d++]=K[X++],P>1&&(R[d++]=K[X++]))}else{X=d-F;do R[d++]=R[X++],R[d++]=R[X++],R[d++]=R[X++],P-=3;while(P>2);P&&(R[d++]=R[X++],P>1&&(R[d++]=R[X++]))}}else if((T&64)===0){x=b[(x&65535)+(g&(1<<T)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((T&64)===0){x=_[(x&65535)+(g&(1<<T)-1)];continue t}else if(T&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<u);P=c>>3,r-=P,c-=P<<3,g&=(1<<c)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<u?257+(u-d):257-(d-u),t.hold=g,t.bits=c},ki}var ji,cc;function Im(){if(cc)return ji;cc=1;var e=nn(),n=15,o=852,i=592,a=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],d=[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 ji=function(h,w,m,y,g,c,_,b){var v=b.bits,E=0,x=0,T=0,P=0,F=0,X=0,K=0,S=0,R=0,L=0,M,Z,k,j,q,N=null,V=0,G,U=new e.Buf16(n+1),D=new e.Buf16(n+1),$=null,B=0,re,ee,se;for(E=0;E<=n;E++)U[E]=0;for(x=0;x<y;x++)U[w[m+x]]++;for(F=v,P=n;P>=1&&U[P]===0;P--);if(F>P&&(F=P),P===0)return g[c++]=1<<24|64<<16|0,g[c++]=1<<24|64<<16|0,b.bits=1,0;for(T=1;T<P&&U[T]===0;T++);for(F<T&&(F=T),S=1,E=1;E<=n;E++)if(S<<=1,S-=U[E],S<0)return-1;if(S>0&&(h===a||P!==1))return-1;for(D[1]=0,E=1;E<n;E++)D[E+1]=D[E]+U[E];for(x=0;x<y;x++)w[m+x]!==0&&(_[D[w[m+x]]++]=x);if(h===a?(N=$=_,G=19):h===t?(N=s,V-=257,$=d,B-=257,G=256):(N=l,$=u,G=-1),L=0,x=0,E=T,q=c,X=F,K=0,k=-1,R=1<<F,j=R-1,h===t&&R>o||h===r&&R>i)return 1;for(;;){re=E-K,_[x]<G?(ee=0,se=_[x]):_[x]>G?(ee=$[B+_[x]],se=N[V+_[x]]):(ee=96,se=0),M=1<<E-K,Z=1<<X,T=Z;do Z-=M,g[q+(L>>K)+Z]=re<<24|ee<<16|se|0;while(Z!==0);for(M=1<<E-1;L&M;)M>>=1;if(M!==0?(L&=M-1,L+=M):L=0,x++,--U[E]===0){if(E===P)break;E=w[m+_[x]]}if(E>F&&(L&j)!==k){for(K===0&&(K=F),q+=T,X=E-K,S=1<<X;X+K<P&&(S-=U[X+K],!(S<=0));)X++,S<<=1;if(R+=1<<X,h===t&&R>o||h===r&&R>i)return 1;k=L&j,g[k]=F<<24|X<<16|q-c|0}}return L!==0&&(g[q+L]=E-K<<24|64<<16|0),b.bits=F,0},ji}var fc;function Pm(){if(fc)return st;fc=1;var e=nn(),n=rh(),o=nh(),i=Am(),a=Im(),t=0,r=1,s=2,d=4,l=5,u=6,f=0,h=1,w=2,m=-2,y=-3,g=-4,c=-5,_=8,b=1,v=2,E=3,x=4,T=5,P=6,F=7,X=8,K=9,S=10,R=11,L=12,M=13,Z=14,k=15,j=16,q=17,N=18,V=19,G=20,U=21,D=22,$=23,B=24,re=25,ee=26,se=27,le=28,ge=29,ye=30,Se=31,Ae=32,qe=852,Le=592,ke=15,xe=ke;function Fe(W){return(W>>>24&255)+(W>>>8&65280)+((W&65280)<<8)+((W&255)<<24)}function rt(){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 $e(W){var oe;return!W||!W.state?m:(oe=W.state,W.total_in=W.total_out=oe.total=0,W.msg="",oe.wrap&&(W.adler=oe.wrap&1),oe.mode=b,oe.last=0,oe.havedict=0,oe.dmax=32768,oe.head=null,oe.hold=0,oe.bits=0,oe.lencode=oe.lendyn=new e.Buf32(qe),oe.distcode=oe.distdyn=new e.Buf32(Le),oe.sane=1,oe.back=-1,f)}function Q(W){var oe;return!W||!W.state?m:(oe=W.state,oe.wsize=0,oe.whave=0,oe.wnext=0,$e(W))}function pe(W,oe){var O,ue;return!W||!W.state||(ue=W.state,oe<0?(O=0,oe=-oe):(O=(oe>>4)+1,oe<48&&(oe&=15)),oe&&(oe<8||oe>15))?m:(ue.window!==null&&ue.wbits!==oe&&(ue.window=null),ue.wrap=O,ue.wbits=oe,Q(W))}function A(W,oe){var O,ue;return W?(ue=new rt,W.state=ue,ue.window=null,O=pe(W,oe),O!==f&&(W.state=null),O):m}function J(W){return A(W,xe)}var fe=!0,_e,me;function he(W){if(fe){var oe;for(_e=new e.Buf32(512),me=new e.Buf32(32),oe=0;oe<144;)W.lens[oe++]=8;for(;oe<256;)W.lens[oe++]=9;for(;oe<280;)W.lens[oe++]=7;for(;oe<288;)W.lens[oe++]=8;for(a(r,W.lens,0,288,_e,0,W.work,{bits:9}),oe=0;oe<32;)W.lens[oe++]=5;a(s,W.lens,0,32,me,0,W.work,{bits:5}),fe=!1}W.lencode=_e,W.lenbits=9,W.distcode=me,W.distbits=5}function Te(W,oe,O,ue){var Oe,p=W.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),ue>=p.wsize?(e.arraySet(p.window,oe,O-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(Oe=p.wsize-p.wnext,Oe>ue&&(Oe=ue),e.arraySet(p.window,oe,O-ue,Oe,p.wnext),ue-=Oe,ue?(e.arraySet(p.window,oe,O-ue,ue,0),p.wnext=ue,p.whave=p.wsize):(p.wnext+=Oe,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=Oe))),0}function I(W,oe){var O,ue,Oe,p,te,ae,C,z,ne,Ee,ve,be,Ie,ut,Ne=0,Pe,Me,Ue,Xe,sr,ur,Ge,ot,Ke=new e.Buf8(4),yt,mt,Jo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!W||!W.state||!W.output||!W.input&&W.avail_in!==0)return m;O=W.state,O.mode===L&&(O.mode=M),te=W.next_out,Oe=W.output,C=W.avail_out,p=W.next_in,ue=W.input,ae=W.avail_in,z=O.hold,ne=O.bits,Ee=ae,ve=C,ot=f;e:for(;;)switch(O.mode){case b:if(O.wrap===0){O.mode=M;break}for(;ne<16;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(O.wrap&2&&z===35615){O.check=0,Ke[0]=z&255,Ke[1]=z>>>8&255,O.check=o(O.check,Ke,2,0),z=0,ne=0,O.mode=v;break}if(O.flags=0,O.head&&(O.head.done=!1),!(O.wrap&1)||(((z&255)<<8)+(z>>8))%31){W.msg="incorrect header check",O.mode=ye;break}if((z&15)!==_){W.msg="unknown compression method",O.mode=ye;break}if(z>>>=4,ne-=4,Ge=(z&15)+8,O.wbits===0)O.wbits=Ge;else if(Ge>O.wbits){W.msg="invalid window size",O.mode=ye;break}O.dmax=1<<Ge,W.adler=O.check=1,O.mode=z&512?S:L,z=0,ne=0;break;case v:for(;ne<16;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(O.flags=z,(O.flags&255)!==_){W.msg="unknown compression method",O.mode=ye;break}if(O.flags&57344){W.msg="unknown header flags set",O.mode=ye;break}O.head&&(O.head.text=z>>8&1),O.flags&512&&(Ke[0]=z&255,Ke[1]=z>>>8&255,O.check=o(O.check,Ke,2,0)),z=0,ne=0,O.mode=E;case E:for(;ne<32;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}O.head&&(O.head.time=z),O.flags&512&&(Ke[0]=z&255,Ke[1]=z>>>8&255,Ke[2]=z>>>16&255,Ke[3]=z>>>24&255,O.check=o(O.check,Ke,4,0)),z=0,ne=0,O.mode=x;case x:for(;ne<16;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}O.head&&(O.head.xflags=z&255,O.head.os=z>>8),O.flags&512&&(Ke[0]=z&255,Ke[1]=z>>>8&255,O.check=o(O.check,Ke,2,0)),z=0,ne=0,O.mode=T;case T:if(O.flags&1024){for(;ne<16;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}O.length=z,O.head&&(O.head.extra_len=z),O.flags&512&&(Ke[0]=z&255,Ke[1]=z>>>8&255,O.check=o(O.check,Ke,2,0)),z=0,ne=0}else O.head&&(O.head.extra=null);O.mode=P;case P:if(O.flags&1024&&(be=O.length,be>ae&&(be=ae),be&&(O.head&&(Ge=O.head.extra_len-O.length,O.head.extra||(O.head.extra=new Array(O.head.extra_len)),e.arraySet(O.head.extra,ue,p,be,Ge)),O.flags&512&&(O.check=o(O.check,ue,be,p)),ae-=be,p+=be,O.length-=be),O.length))break e;O.length=0,O.mode=F;case F:if(O.flags&2048){if(ae===0)break e;be=0;do Ge=ue[p+be++],O.head&&Ge&&O.length<65536&&(O.head.name+=String.fromCharCode(Ge));while(Ge&&be<ae);if(O.flags&512&&(O.check=o(O.check,ue,be,p)),ae-=be,p+=be,Ge)break e}else O.head&&(O.head.name=null);O.length=0,O.mode=X;case X:if(O.flags&4096){if(ae===0)break e;be=0;do Ge=ue[p+be++],O.head&&Ge&&O.length<65536&&(O.head.comment+=String.fromCharCode(Ge));while(Ge&&be<ae);if(O.flags&512&&(O.check=o(O.check,ue,be,p)),ae-=be,p+=be,Ge)break e}else O.head&&(O.head.comment=null);O.mode=K;case K:if(O.flags&512){for(;ne<16;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(z!==(O.check&65535)){W.msg="header crc mismatch",O.mode=ye;break}z=0,ne=0}O.head&&(O.head.hcrc=O.flags>>9&1,O.head.done=!0),W.adler=O.check=0,O.mode=L;break;case S:for(;ne<32;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}W.adler=O.check=Fe(z),z=0,ne=0,O.mode=R;case R:if(O.havedict===0)return W.next_out=te,W.avail_out=C,W.next_in=p,W.avail_in=ae,O.hold=z,O.bits=ne,w;W.adler=O.check=1,O.mode=L;case L:if(oe===l||oe===u)break e;case M:if(O.last){z>>>=ne&7,ne-=ne&7,O.mode=se;break}for(;ne<3;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}switch(O.last=z&1,z>>>=1,ne-=1,z&3){case 0:O.mode=Z;break;case 1:if(he(O),O.mode=G,oe===u){z>>>=2,ne-=2;break e}break;case 2:O.mode=q;break;case 3:W.msg="invalid block type",O.mode=ye}z>>>=2,ne-=2;break;case Z:for(z>>>=ne&7,ne-=ne&7;ne<32;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if((z&65535)!==(z>>>16^65535)){W.msg="invalid stored block lengths",O.mode=ye;break}if(O.length=z&65535,z=0,ne=0,O.mode=k,oe===u)break e;case k:O.mode=j;case j:if(be=O.length,be){if(be>ae&&(be=ae),be>C&&(be=C),be===0)break e;e.arraySet(Oe,ue,p,be,te),ae-=be,p+=be,C-=be,te+=be,O.length-=be;break}O.mode=L;break;case q:for(;ne<14;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(O.nlen=(z&31)+257,z>>>=5,ne-=5,O.ndist=(z&31)+1,z>>>=5,ne-=5,O.ncode=(z&15)+4,z>>>=4,ne-=4,O.nlen>286||O.ndist>30){W.msg="too many length or distance symbols",O.mode=ye;break}O.have=0,O.mode=N;case N:for(;O.have<O.ncode;){for(;ne<3;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}O.lens[Jo[O.have++]]=z&7,z>>>=3,ne-=3}for(;O.have<19;)O.lens[Jo[O.have++]]=0;if(O.lencode=O.lendyn,O.lenbits=7,yt={bits:O.lenbits},ot=a(t,O.lens,0,19,O.lencode,0,O.work,yt),O.lenbits=yt.bits,ot){W.msg="invalid code lengths set",O.mode=ye;break}O.have=0,O.mode=V;case V:for(;O.have<O.nlen+O.ndist;){for(;Ne=O.lencode[z&(1<<O.lenbits)-1],Pe=Ne>>>24,Me=Ne>>>16&255,Ue=Ne&65535,!(Pe<=ne);){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(Ue<16)z>>>=Pe,ne-=Pe,O.lens[O.have++]=Ue;else{if(Ue===16){for(mt=Pe+2;ne<mt;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(z>>>=Pe,ne-=Pe,O.have===0){W.msg="invalid bit length repeat",O.mode=ye;break}Ge=O.lens[O.have-1],be=3+(z&3),z>>>=2,ne-=2}else if(Ue===17){for(mt=Pe+3;ne<mt;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}z>>>=Pe,ne-=Pe,Ge=0,be=3+(z&7),z>>>=3,ne-=3}else{for(mt=Pe+7;ne<mt;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}z>>>=Pe,ne-=Pe,Ge=0,be=11+(z&127),z>>>=7,ne-=7}if(O.have+be>O.nlen+O.ndist){W.msg="invalid bit length repeat",O.mode=ye;break}for(;be--;)O.lens[O.have++]=Ge}}if(O.mode===ye)break;if(O.lens[256]===0){W.msg="invalid code -- missing end-of-block",O.mode=ye;break}if(O.lenbits=9,yt={bits:O.lenbits},ot=a(r,O.lens,0,O.nlen,O.lencode,0,O.work,yt),O.lenbits=yt.bits,ot){W.msg="invalid literal/lengths set",O.mode=ye;break}if(O.distbits=6,O.distcode=O.distdyn,yt={bits:O.distbits},ot=a(s,O.lens,O.nlen,O.ndist,O.distcode,0,O.work,yt),O.distbits=yt.bits,ot){W.msg="invalid distances set",O.mode=ye;break}if(O.mode=G,oe===u)break e;case G:O.mode=U;case U:if(ae>=6&&C>=258){W.next_out=te,W.avail_out=C,W.next_in=p,W.avail_in=ae,O.hold=z,O.bits=ne,i(W,ve),te=W.next_out,Oe=W.output,C=W.avail_out,p=W.next_in,ue=W.input,ae=W.avail_in,z=O.hold,ne=O.bits,O.mode===L&&(O.back=-1);break}for(O.back=0;Ne=O.lencode[z&(1<<O.lenbits)-1],Pe=Ne>>>24,Me=Ne>>>16&255,Ue=Ne&65535,!(Pe<=ne);){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(Me&&(Me&240)===0){for(Xe=Pe,sr=Me,ur=Ue;Ne=O.lencode[ur+((z&(1<<Xe+sr)-1)>>Xe)],Pe=Ne>>>24,Me=Ne>>>16&255,Ue=Ne&65535,!(Xe+Pe<=ne);){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}z>>>=Xe,ne-=Xe,O.back+=Xe}if(z>>>=Pe,ne-=Pe,O.back+=Pe,O.length=Ue,Me===0){O.mode=ee;break}if(Me&32){O.back=-1,O.mode=L;break}if(Me&64){W.msg="invalid literal/length code",O.mode=ye;break}O.extra=Me&15,O.mode=D;case D:if(O.extra){for(mt=O.extra;ne<mt;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}O.length+=z&(1<<O.extra)-1,z>>>=O.extra,ne-=O.extra,O.back+=O.extra}O.was=O.length,O.mode=$;case $:for(;Ne=O.distcode[z&(1<<O.distbits)-1],Pe=Ne>>>24,Me=Ne>>>16&255,Ue=Ne&65535,!(Pe<=ne);){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if((Me&240)===0){for(Xe=Pe,sr=Me,ur=Ue;Ne=O.distcode[ur+((z&(1<<Xe+sr)-1)>>Xe)],Pe=Ne>>>24,Me=Ne>>>16&255,Ue=Ne&65535,!(Xe+Pe<=ne);){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}z>>>=Xe,ne-=Xe,O.back+=Xe}if(z>>>=Pe,ne-=Pe,O.back+=Pe,Me&64){W.msg="invalid distance code",O.mode=ye;break}O.offset=Ue,O.extra=Me&15,O.mode=B;case B:if(O.extra){for(mt=O.extra;ne<mt;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}O.offset+=z&(1<<O.extra)-1,z>>>=O.extra,ne-=O.extra,O.back+=O.extra}if(O.offset>O.dmax){W.msg="invalid distance too far back",O.mode=ye;break}O.mode=re;case re:if(C===0)break e;if(be=ve-C,O.offset>be){if(be=O.offset-be,be>O.whave&&O.sane){W.msg="invalid distance too far back",O.mode=ye;break}be>O.wnext?(be-=O.wnext,Ie=O.wsize-be):Ie=O.wnext-be,be>O.length&&(be=O.length),ut=O.window}else ut=Oe,Ie=te-O.offset,be=O.length;be>C&&(be=C),C-=be,O.length-=be;do Oe[te++]=ut[Ie++];while(--be);O.length===0&&(O.mode=U);break;case ee:if(C===0)break e;Oe[te++]=O.length,C--,O.mode=U;break;case se:if(O.wrap){for(;ne<32;){if(ae===0)break e;ae--,z|=ue[p++]<<ne,ne+=8}if(ve-=C,W.total_out+=ve,O.total+=ve,ve&&(W.adler=O.check=O.flags?o(O.check,Oe,ve,te-ve):n(O.check,Oe,ve,te-ve)),ve=C,(O.flags?z:Fe(z))!==O.check){W.msg="incorrect data check",O.mode=ye;break}z=0,ne=0}O.mode=le;case le:if(O.wrap&&O.flags){for(;ne<32;){if(ae===0)break e;ae--,z+=ue[p++]<<ne,ne+=8}if(z!==(O.total&4294967295)){W.msg="incorrect length check",O.mode=ye;break}z=0,ne=0}O.mode=ge;case ge:ot=h;break e;case ye:ot=y;break e;case Se:return g;case Ae:default:return m}return W.next_out=te,W.avail_out=C,W.next_in=p,W.avail_in=ae,O.hold=z,O.bits=ne,(O.wsize||ve!==W.avail_out&&O.mode<ye&&(O.mode<se||oe!==d))&&Te(W,W.output,W.next_out,ve-W.avail_out),Ee-=W.avail_in,ve-=W.avail_out,W.total_in+=Ee,W.total_out+=ve,O.total+=ve,O.wrap&&ve&&(W.adler=O.check=O.flags?o(O.check,Oe,ve,W.next_out-ve):n(O.check,Oe,ve,W.next_out-ve)),W.data_type=O.bits+(O.last?64:0)+(O.mode===L?128:0)+(O.mode===G||O.mode===k?256:0),(Ee===0&&ve===0||oe===d)&&ot===f&&(ot=c),ot}function ie(W){if(!W||!W.state)return m;var oe=W.state;return oe.window&&(oe.window=null),W.state=null,f}function ce(W,oe){var O;return!W||!W.state||(O=W.state,(O.wrap&2)===0)?m:(O.head=oe,oe.done=!1,f)}function de(W,oe){var O=oe.length,ue,Oe,p;return!W||!W.state||(ue=W.state,ue.wrap!==0&&ue.mode!==R)?m:ue.mode===R&&(Oe=1,Oe=n(Oe,oe,O,0),Oe!==ue.check)?y:(p=Te(W,oe,O,O),p?(ue.mode=Se,g):(ue.havedict=1,f))}return st.inflateReset=Q,st.inflateReset2=pe,st.inflateResetKeep=$e,st.inflateInit=J,st.inflateInit2=A,st.inflate=I,st.inflateEnd=ie,st.inflateGetHeader=ce,st.inflateSetDictionary=de,st.inflateInfo="pako inflate (from Nodeca project)",st}var qi,lc;function km(){return lc||(lc=1,qi={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}),qi}var hc;function jm(){return hc||(hc=1,function(e){var n=er(),o=Om(),i=Cm(),a=Pm(),t=km();for(var r in t)e[r]=t[r];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;var s=31,d=139;function l(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)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},l.prototype.write=function(u,f,h,w,m,y,g){return this._write(!0,u,f,h,w,m,y,g)},l.prototype.writeSync=function(u,f,h,w,m,y,g){return this._write(!1,u,f,h,w,m,y,g)},l.prototype._write=function(u,f,h,w,m,y,g,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=Be.alloc(0),m=0,w=0),this.strm.avail_in=m,this.strm.input=h,this.strm.next_in=w,this.strm.avail_out=c,this.strm.output=y,this.strm.next_out=g,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]===d?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.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=a.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,m){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,m),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,m){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 o,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=a.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=m,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=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l}(Ti)),Ti}var dc;function qm(){return dc||(dc=1,function(e){var n=Qt().Buffer,o=tn().Transform,i=jm(),a=Je(),t=er().ok,r=Qt().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 d=Object.keys(i),l=0;l<d.length;l++){var u=d[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 m=h[w];f[f[m]]=m}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),e.Deflate=c,e.Inflate=_,e.Gzip=b,e.Gunzip=v,e.DeflateRaw=E,e.InflateRaw=x,e.Unzip=T,e.createDeflate=function(S){return new c(S)},e.createInflate=function(S){return new _(S)},e.createDeflateRaw=function(S){return new E(S)},e.createInflateRaw=function(S){return new x(S)},e.createGzip=function(S){return new b(S)},e.createGunzip=function(S){return new v(S)},e.createUnzip=function(S){return new T(S)},e.deflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new c(R),S,L)},e.deflateSync=function(S,R){return g(new c(R),S)},e.gzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new b(R),S,L)},e.gzipSync=function(S,R){return g(new b(R),S)},e.deflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new E(R),S,L)},e.deflateRawSync=function(S,R){return g(new E(R),S)},e.unzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new T(R),S,L)},e.unzipSync=function(S,R){return g(new T(R),S)},e.inflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new _(R),S,L)},e.inflateSync=function(S,R){return g(new _(R),S)},e.gunzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new v(R),S,L)},e.gunzipSync=function(S,R){return g(new v(R),S)},e.inflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new x(R),S,L)},e.inflateRawSync=function(S,R){return g(new x(R),S)};function y(S,R,L){var M=[],Z=0;S.on("error",j),S.on("end",q),S.end(R),k();function k(){for(var N;(N=S.read())!==null;)M.push(N),Z+=N.length;S.once("readable",k)}function j(N){S.removeListener("end",q),S.removeListener("readable",k),L(N)}function q(){var N,V=null;Z>=r?V=new RangeError(s):N=n.concat(M,Z),M=[],S.close(),L(V,N)}}function g(S,R){if(typeof R=="string"&&(R=n.from(R)),!n.isBuffer(R))throw new TypeError("Not a string or buffer");var L=S._finishFlushFlag;return S._processChunk(R,L)}function c(S){if(!(this instanceof c))return new c(S);F.call(this,S,i.DEFLATE)}function _(S){if(!(this instanceof _))return new _(S);F.call(this,S,i.INFLATE)}function b(S){if(!(this instanceof b))return new b(S);F.call(this,S,i.GZIP)}function v(S){if(!(this instanceof v))return new v(S);F.call(this,S,i.GUNZIP)}function E(S){if(!(this instanceof E))return new E(S);F.call(this,S,i.DEFLATERAW)}function x(S){if(!(this instanceof x))return new x(S);F.call(this,S,i.INFLATERAW)}function T(S){if(!(this instanceof T))return new T(S);F.call(this,S,i.UNZIP)}function P(S){return S===i.Z_NO_FLUSH||S===i.Z_PARTIAL_FLUSH||S===i.Z_SYNC_FLUSH||S===i.Z_FULL_FLUSH||S===i.Z_FINISH||S===i.Z_BLOCK}function F(S,R){var L=this;if(this._opts=S=S||{},this._chunkSize=S.chunkSize||e.Z_DEFAULT_CHUNK,o.call(this,S),S.flush&&!P(S.flush))throw new Error("Invalid flush flag: "+S.flush);if(S.finishFlush&&!P(S.finishFlush))throw new Error("Invalid flush flag: "+S.finishFlush);if(this._flushFlag=S.flush||i.Z_NO_FLUSH,this._finishFlushFlag=typeof S.finishFlush<"u"?S.finishFlush:i.Z_FINISH,S.chunkSize&&(S.chunkSize<e.Z_MIN_CHUNK||S.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+S.chunkSize);if(S.windowBits&&(S.windowBits<e.Z_MIN_WINDOWBITS||S.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+S.windowBits);if(S.level&&(S.level<e.Z_MIN_LEVEL||S.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+S.level);if(S.memLevel&&(S.memLevel<e.Z_MIN_MEMLEVEL||S.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+S.memLevel);if(S.strategy&&S.strategy!=e.Z_FILTERED&&S.strategy!=e.Z_HUFFMAN_ONLY&&S.strategy!=e.Z_RLE&&S.strategy!=e.Z_FIXED&&S.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+S.strategy);if(S.dictionary&&!n.isBuffer(S.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(R);var M=this;this._hadError=!1,this._handle.onerror=function(j,q){X(M),M._hadError=!0;var N=new Error(j);N.errno=q,N.code=e.codes[q],M.emit("error",N)};var Z=e.Z_DEFAULT_COMPRESSION;typeof S.level=="number"&&(Z=S.level);var k=e.Z_DEFAULT_STRATEGY;typeof S.strategy=="number"&&(k=S.strategy),this._handle.init(S.windowBits||e.Z_DEFAULT_WINDOWBITS,Z,S.memLevel||e.Z_DEFAULT_MEMLEVEL,k,S.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=Z,this._strategy=k,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!L._handle},configurable:!0,enumerable:!0})}a.inherits(F,o),F.prototype.params=function(S,R,L){if(S<e.Z_MIN_LEVEL||S>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+S);if(R!=e.Z_FILTERED&&R!=e.Z_HUFFMAN_ONLY&&R!=e.Z_RLE&&R!=e.Z_FIXED&&R!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+R);if(this._level!==S||this._strategy!==R){var M=this;this.flush(i.Z_SYNC_FLUSH,function(){t(M._handle,"zlib binding closed"),M._handle.params(S,R),M._hadError||(M._level=S,M._strategy=R,L&&L())})}else Re.nextTick(L)},F.prototype.reset=function(){return t(this._handle,"zlib binding closed"),this._handle.reset()},F.prototype._flush=function(S){this._transform(n.alloc(0),"",S)},F.prototype.flush=function(S,R){var L=this,M=this._writableState;(typeof S=="function"||S===void 0&&!R)&&(R=S,S=i.Z_FULL_FLUSH),M.ended?R&&Re.nextTick(R):M.ending?R&&this.once("end",R):M.needDrain?R&&this.once("drain",function(){return L.flush(S,R)}):(this._flushFlag=S,this.write(n.alloc(0),"",R))},F.prototype.close=function(S){X(this,S),Re.nextTick(K,this)};function X(S,R){R&&Re.nextTick(R),S._handle&&(S._handle.close(),S._handle=null)}function K(S){S.emit("close")}F.prototype._transform=function(S,R,L){var M,Z=this._writableState,k=Z.ending||Z.ended,j=k&&(!S||Z.length===S.length);if(S!==null&&!n.isBuffer(S))return L(new Error("invalid input"));if(!this._handle)return L(new Error("zlib binding closed"));j?M=this._finishFlushFlag:(M=this._flushFlag,S.length>=Z.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),this._processChunk(S,M,L)},F.prototype._processChunk=function(S,R,L){var M=S&&S.length,Z=this._chunkSize-this._offset,k=0,j=this,q=typeof L=="function";if(!q){var N=[],V=0,G;this.on("error",function(re){G=re}),t(this._handle,"zlib binding closed");do var U=this._handle.writeSync(R,S,k,M,this._buffer,this._offset,Z);while(!this._hadError&&B(U[0],U[1]));if(this._hadError)throw G;if(V>=r)throw X(this),new RangeError(s);var D=n.concat(N,V);return X(this),D}t(this._handle,"zlib binding closed");var $=this._handle.write(R,S,k,M,this._buffer,this._offset,Z);$.buffer=S,$.callback=B;function B(re,ee){if(this&&(this.buffer=null,this.callback=null),!j._hadError){var se=Z-ee;if(t(se>=0,"have should not go down"),se>0){var le=j._buffer.slice(j._offset,j._offset+se);j._offset+=se,q?j.push(le):(N.push(le),V+=le.length)}if((ee===0||j._offset>=j._chunkSize)&&(Z=j._chunkSize,j._offset=0,j._buffer=n.allocUnsafe(j._chunkSize)),ee===0){if(k+=M-re,M=re,!q)return!0;var ge=j._handle.write(R,S,k,M,j._buffer,j._offset,j._chunkSize);ge.callback=B,ge.buffer=S;return}if(!q)return!1;L()}}},a.inherits(c,F),a.inherits(_,F),a.inherits(b,F),a.inherits(v,F),a.inherits(E,F),a.inherits(x,F),a.inherits(T,F)}(Oi)),Oi}var $r={exports:{}},pc;function Lt(){return pc||(pc=1,function(e,n){n=e.exports=ld(),n.Stream=n,n.Readable=n,n.Writable=Ol(),n.Duplex=hd(),n.Transform=dd(),n.PassThrough=pd(),n.finished=md(),n.pipeline=gd()}($r,$r.exports)),$r.exports}var Li={exports:{}},Ni,mc;function Lm(){if(mc)return Ni;mc=1;var e=[],n=[],o=function(){};function i(h){return~e.indexOf(h)?!1:(e.push(h),!0)}function a(h){o=h}function t(h){for(var w=[],m=0;m<e.length;m++){if(e[m].async){w.push(e[m]);continue}if(e[m](h))return!0}return w.length?new Promise(function(g){Promise.all(w.map(function(_){return _(h)})).then(function(_){g(_.some(Boolean))})}):!1}function r(h){return~n.indexOf(h)?!1:(n.push(h),!0)}function s(){o.apply(o,arguments)}function d(h){for(var w=0;w<n.length;w++)h=n[w].apply(n[w],arguments);return h}function l(h,w){var m=Object.prototype.hasOwnProperty;for(var y in w)m.call(w,y)&&(h[y]=w[y]);return h}function u(h){return h.enabled=!1,h.modify=r,h.set=a,h.use=i,l(function(){return!1},h)}function f(h){function w(){var m=Array.prototype.slice.call(arguments,0);return s.call(s,h,d(m,h)),!0}return h.enabled=!0,h.modify=r,h.set=a,h.use=i,l(w,h)}return Ni=function(w){return w.introduce=l,w.enabled=t,w.process=d,w.modify=r,w.write=s,w.nope=u,w.yep=f,w.set=a,w.use=i,w},Ni}var Di,gc;function Nm(){if(gc)return Di;gc=1;var e=Lm(),n=e(function o(i,a){return a=a||{},a.namespace=i,a.prod=!0,a.dev=!1,a.force||o.force?o.yep(a):o.nope(a)});return Di=n,Di}var vc;function an(){return vc||(vc=1,Li.exports=Nm()),Li.exports}var $i,yc;function Dm(){if(yc)return $i;yc=1;var e=Do(),n=vd(),o=n.StringDecoder,i=Lt(),a=i.Stream;function t(){}return $i=function(r,s){var d=Be.alloc(65536),l=new o("utf8"),u=new a,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(m,y){if(m){s?s(m):u.emit("error",m),u.destroy();return}(function g(){if(u.destroyed){e.close(y,t);return}return e.read(y,d,0,d.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(g,1e3);var b=l.write(d.slice(0,_));s||u.emit("data",b),b=(f+b).split(/\n+/);for(var v=b.length-1,E=0;E<v;E++)(r.start==null||w>r.start)&&(s?s(null,b[E]):u.emit("line",b[E])),w++;return f=b[v],h+=_,g()})})()}),s?u.destroy:u},$i}var Mi,_c;function $m(){if(_c)return Mi;_c=1;function e(P){"@babel/helpers - typeof";return e=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},e(P)}function n(P,F){if(!(P instanceof F))throw new TypeError("Cannot call a class as a function")}function o(P,F){for(var X=0;X<F.length;X++){var K=F[X];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(P,K.key,K)}}function i(P,F,X){return F&&o(P.prototype,F),Object.defineProperty(P,"prototype",{writable:!1}),P}function a(P,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(F&&F.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),F&&t(P,F)}function t(P,F){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,S){return K.__proto__=S,K},t(P,F)}function r(P){var F=l();return function(){var K=u(P),S;if(F){var R=u(this).constructor;S=Reflect.construct(K,arguments,R)}else S=K.apply(this,arguments);return s(this,S)}}function s(P,F){if(F&&(e(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(P)}function d(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}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(P){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},u(P)}var f=Do(),h=Xl(),w=Rm(),m=qm(),y=Ve(),g=y.MESSAGE,c=Lt(),_=c.Stream,b=c.PassThrough,v=qt(),E=an()("winston:file"),x=jt(),T=Dm();return Mi=function(P){a(X,P);var F=r(X);function X(){var K,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,X),K=F.call(this,S),K.name=S.name||"file";function R(L){for(var M=arguments.length,Z=new Array(M>1?M-1:0),k=1;k<M;k++)Z[k-1]=arguments[k];Z.slice(1).forEach(function(j){if(S[j])throw new Error("Cannot set ".concat(j," and ").concat(L," together"))})}if(K._stream=new b,K._stream.setMaxListeners(30),K._onError=K._onError.bind(d(K)),S.filename||S.dirname)R("filename or dirname","stream"),K._basename=K.filename=S.filename?h.basename(S.filename):"winston.log",K.dirname=S.dirname||h.dirname(S.filename),K.options=S.options||{flags:"a"};else if(S.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),R("stream","filename","maxsize"),K._dest=K._stream.pipe(K._setupStream(S.stream)),K.dirname=h.dirname(K._dest.path);else throw new Error("Cannot log to file without filename or stream.");return K.maxsize=S.maxsize||null,K.rotationFormat=S.rotationFormat||!1,K.zippedArchive=S.zippedArchive||!1,K.maxFiles=S.maxFiles||null,K.eol=typeof S.eol=="string"?S.eol:x.EOL,K.tailable=S.tailable||!1,K._size=0,K._pendingSize=0,K._created=0,K._drain=!1,K._opening=!1,K._ending=!1,K.dirname&&K._createLogDirIfNotExist(K.dirname),K.open(),K}return i(X,[{key:"finishIfEnding",value:function(){var S=this;this._ending&&(this._opening?this.once("open",function(){S._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})}):(this._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})))}},{key:"log",value:function(S){var R=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return L(),!0;if(this._drain){this._stream.once("drain",function(){R._drain=!1,R.log(S,L)});return}if(this._rotate){this._stream.once("rotate",function(){R._rotate=!1,R.log(S,L)});return}var M="".concat(S[g]).concat(this.eol),Z=Be.byteLength(M);function k(){var q=this;this._size+=Z,this._pendingSize-=Z,E("logged %s %s",this._size,M),this.emit("logged",S),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return q._rotateFile()}))}this._pendingSize+=Z,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var j=this._stream.write(M,k.bind(this));return j?L():(this._drain=!0,this._stream.once("drain",function(){R._drain=!1,L()})),E("written",j,this._drain),this.finishIfEnding(),j}},{key:"query",value:function(S,R){typeof S=="function"&&(R=S,S={}),S=G(S);var L=h.join(this.dirname,this.filename),M="",Z=[],k=0,j=f.createReadStream(L,{encoding:"utf8"});j.on("error",function(U){if(j.readable&&j.destroy(),!!R)return U.code!=="ENOENT"?R(U):R(null,Z)}),j.on("data",function(U){U=(M+U).split(/\n+/);for(var D=U.length-1,$=0;$<D;$++)(!S.start||k>=S.start)&&q(U[$]),k++;M=U[D]}),j.on("close",function(){M&&q(M,!0),S.order==="desc"&&(Z=Z.reverse()),R&&R(null,Z)});function q(U,D){try{var $=JSON.parse(U);V($)&&N($)}catch(B){D||j.emit("error",B)}}function N(U){if(S.rows&&Z.length>=S.rows&&S.order!=="desc"){j.readable&&j.destroy();return}S.fields&&(U=S.fields.reduce(function(D,$){return D[$]=U[$],D},{})),S.order==="desc"&&Z.length>=S.rows&&Z.shift(),Z.push(U)}function V(U){if(U&&e(U)==="object"){var D=new Date(U.timestamp);if(!(S.from&&D<S.from||S.until&&D>S.until||S.level&&S.level!==U.level))return!0}}function G(U){return U=U||{},U.rows=U.rows||U.limit||10,U.start=U.start||0,U.until=U.until||new Date,e(U.until)!=="object"&&(U.until=new Date(U.until)),U.from=U.from||U.until-24*60*60*1e3,e(U.from)!=="object"&&(U.from=new Date(U.from)),U.order=U.order||"desc",U}}},{key:"stream",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=h.join(this.dirname,this.filename),L=new _,M={file:R,start:S.start};return L.destroy=T(M,function(Z,k){if(Z)return L.emit("error",Z);try{L.emit("data",k),k=JSON.parse(k),L.emit("log",k)}catch(j){L.emit("error",j)}}),L}},{key:"open",value:function(){var S=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(R,L){if(R)return S.emit("error",R);E("stat done: %s { size: %s }",S.filename,L),S._size=L,S._dest=S._createStream(S._stream),S._opening=!1,S.once("open",function(){S._stream.eventNames().includes("rotate")?S._stream.emit("rotate"):S._rotate=!1})})))}},{key:"stat",value:function(S){var R=this,L=this._getFile(),M=h.join(this.dirname,L);f.stat(M,function(Z,k){if(Z&&Z.code==="ENOENT")return E("ENOENT ok",M),R.filename=L,S(null,0);if(Z)return E("err ".concat(Z.code," ").concat(M)),S(Z);if(!k||R._needsNewFile(k.size))return R._incFile(function(){return R.stat(S)});R.filename=L,S(null,k.size)})}},{key:"close",value:function(S){var R=this;this._stream&&this._stream.end(function(){S&&S(),R.emit("flush"),R.emit("closed")})}},{key:"_needsNewFile",value:function(S){return S=S||this._size,this.maxsize&&S>=this.maxsize}},{key:"_onError",value:function(S){this.emit("error",S)}},{key:"_setupStream",value:function(S){return S.on("error",this._onError),S}},{key:"_cleanupStream",value:function(S){return S.removeListener("error",this._onError),S}},{key:"_rotateFile",value:function(){var S=this;this._incFile(function(){return S.open()})}},{key:"_endStream",value:function(){var S=this,R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){S._cleanupStream(S._dest),R()})):R()}},{key:"_createStream",value:function(S){var R=this,L=h.join(this.dirname,this.filename);E("create stream start",L,this.options);var M=f.createWriteStream(L,this.options).on("error",function(k){return E(k)}).on("close",function(){return E("close",M.path,M.bytesWritten)}).on("open",function(){E("file open ok",L),R.emit("open",L),S.pipe(M),R.rotatedWhileOpening&&(R._stream=new b,R._stream.setMaxListeners(30),R._rotateFile(),R.rotatedWhileOpening=!1,R._cleanupStream(M),S.end())});if(E("create stream ok",L),this.zippedArchive){var Z=m.createGzip();return Z.pipe(M),Z}return M}},{key:"_incFile",value:function(S){E("_incFile",this.filename);var R=h.extname(this._basename),L=h.basename(this._basename,R);this.tailable?this._checkMaxFilesTailable(R,L,S):(this._created+=1,this._checkMaxFilesIncrementing(R,L,S))}},{key:"_getFile",value:function(){var S=h.extname(this._basename),R=h.basename(this._basename,S),L=this.rotationFormat?this.rotationFormat():this._created,M=!this.tailable&&this._created?"".concat(R).concat(L).concat(S):"".concat(R).concat(S);return this.zippedArchive&&!this.tailable?"".concat(M,".gz"):M}},{key:"_checkMaxFilesIncrementing",value:function(S,R,L){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(L);var M=this._created-this.maxFiles,Z=M!==0?M:"",k=this.zippedArchive?".gz":"",j="".concat(R).concat(Z).concat(S).concat(k),q=h.join(this.dirname,j);f.unlink(q,L)}},{key:"_checkMaxFilesTailable",value:function(S,R,L){var M=this,Z=[];if(this.maxFiles){for(var k=this.zippedArchive?".gz":"",j=this.maxFiles-1;j>1;j--)Z.push((function(q,N){var V=this,G="".concat(R).concat(q-1).concat(S).concat(k),U=h.join(this.dirname,G);f.exists(U,function(D){if(!D)return N(null);G="".concat(R).concat(q).concat(S).concat(k),f.rename(U,h.join(V.dirname,G),N)})}).bind(this,j));w(Z,function(){f.rename(h.join(M.dirname,"".concat(R).concat(S)),h.join(M.dirname,"".concat(R,"1").concat(S).concat(k)),L)})}}},{key:"_createLogDirIfNotExist",value:function(S){f.existsSync(S)||f.mkdirSync(S,{recursive:!0})}}]),X}(v),Mi}var Fi={},Ui={exports:{}},Bi={},bc;function ih(){return bc||(bc=1,function(e){e.fetch=a(He.fetch)&&a(He.ReadableStream),e.writableStream=a(He.WritableStream),e.abortController=a(He.AbortController);var n;function o(){if(n!==void 0)return n;if(He.XMLHttpRequest){n=new He.XMLHttpRequest;try{n.open("GET",He.XDomainRequest?"/":"https://example.com")}catch{n=null}}else n=null;return n}function i(t){var r=o();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||(o()?a(o().overrideMimeType):!1);function a(t){return typeof t=="function"}n=null}(Bi)),Bi}var Mr={},wc;function ah(){if(wc)return Mr;wc=1;var e=ih(),n=Tl(),o=Lt(),i=Mr.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=Mr.IncomingMessage=function(t,r,s,d){var l=this;if(o.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 y=function(){f.read().then(function(g){if(!l._destroyed){if(d(g.done),g.done){l.push(null);return}l.push(Be.from(g.value)),y()}}).catch(function(g){d(!0),l._destroyed||l.emit("error",g)})};if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach(function(g,c){l.headers[c.toLowerCase()]=g,l.rawHeaders.push(c,g)}),e.writableStream){var u=new WritableStream({write:function(g){return d(!1),new Promise(function(c,_){l._destroyed?_():l.push(Be.from(g))?c():l._resumeFetch=c})},close:function(){d(!0),l._destroyed||l.push(null)},abort:function(g){d(!0),l._destroyed||l.emit("error",g)}});try{r.body.pipeTo(u).catch(function(g){d(!0),l._destroyed||l.emit("error",g)});return}catch{}}var f=r.body.getReader();y()}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(y){var g=y.match(/^([^:]+):\s*(.*)/);if(g){var c=g[1].toLowerCase();c==="set-cookie"?(l.headers[c]===void 0&&(l.headers[c]=[]),l.headers[c].push(g[2])):l.headers[c]!==void 0?l.headers[c]+=", "+g[2]:l.headers[c]=g[2],l.rawHeaders.push(g[1],g[2])}}),l._charset="x-user-defined",!e.overrideMimeType){var w=l.rawHeaders["mime-type"];if(w){var m=w.match(/;\s*charset=([^;])(;|$)/);m&&(l._charset=m[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};return n(a,o.Readable),a.prototype._read=function(){var t=this,r=t._resumeFetch;r&&(t._resumeFetch=null,r())},a.prototype._onXHRProgress=function(t){var r=this,s=r._xhr,d=null;switch(r._mode){case"text":if(d=s.responseText,d.length>r._pos){var l=d.substr(r._pos);if(r._charset==="x-user-defined"){for(var u=Be.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=d.length}break;case"arraybuffer":if(s.readyState!==i.DONE||!s.response)break;d=s.response,r.push(Be.from(new Uint8Array(d)));break;case"moz-chunked-arraybuffer":if(d=s.response,s.readyState!==i.LOADING||!d)break;r.push(Be.from(new Uint8Array(d)));break;case"ms-stream":if(d=s.response,s.readyState!==i.LOADING)break;var h=new He.MSStreamReader;h.onprogress=function(){h.result.byteLength>r._pos&&(r.push(Be.from(new Uint8Array(h.result.slice(r._pos)))),r._pos=h.result.byteLength)},h.onload=function(){t(!0),r.push(null)},h.readAsArrayBuffer(d);break}r._xhr.readyState===i.DONE&&r._mode!=="ms-stream"&&(t(!0),r.push(null))},Mr}var Ec;function Mm(){if(Ec)return Ui.exports;Ec=1;var e=ih(),n=Tl(),o=ah(),i=Lt(),a=o.IncomingMessage,t=o.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=Ui.exports=function(u){var f=this;i.Writable.call(f),f._opts=u,f._body=[],f._headers={},u.auth&&f.setHeader("Authorization","Basic "+Be.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(m){f.setHeader(m,u.headers[m])});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 m=[];if(Object.keys(h).forEach(function(_){var b=h[_].name,v=h[_].value;Array.isArray(v)?v.forEach(function(E){m.push([b,E])}):m.push([b,v])}),u._mode==="fetch"){var y=null;if(e.abortController){var g=new AbortController;y=g.signal,u._fetchAbortController=g,"requestTimeout"in f&&f.requestTimeout!==0&&(u._fetchTimer=He.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},f.requestTimeout))}He.fetch(u._opts.url,{method:u._opts.method,headers:m,body:w||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:y}).then(function(_){u._fetchResponse=_,u._resetTimers(!1),u._connect()},function(_){u._resetTimers(!0),u._destroyed||u.emit("error",_)})}else{var c=u._xhr=new He.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")}),m.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 d(u){try{var f=u.status;return f!==null&&f!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!d(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 a(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;He.clearTimeout(f._socketTimer),f._socketTimer=null,u?(He.clearTimeout(f._fetchTimer),f._fetchTimer=null):f._socketTimeout&&(f._socketTimer=He.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 Ui.exports}var Vi,Sc;function Fm(){if(Sc)return Vi;Sc=1,Vi=n;var e=Object.prototype.hasOwnProperty;function n(){for(var o={},i=0;i<arguments.length;i++){var a=arguments[i];for(var t in a)e.call(a,t)&&(o[t]=a[t])}return o}return Vi}var Gi,Rc;function Um(){return Rc||(Rc=1,Gi={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"}),Gi}var Fr={exports:{}},Kt={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var Bm=Kt.exports,Oc;function Vm(){return Oc||(Oc=1,function(e,n){(function(o){var i=n&&!n.nodeType&&n,a=e&&!e.nodeType&&e,t=typeof He=="object"&&He;(t.global===t||t.window===t||t.self===t)&&(o=t);var r,s=2147483647,d=36,l=1,u=26,f=38,h=700,w=72,m=128,y="-",g=/^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"},v=d-l,E=Math.floor,x=String.fromCharCode,T;function P(N){throw new RangeError(b[N])}function F(N,V){for(var G=N.length,U=[];G--;)U[G]=V(N[G]);return U}function X(N,V){var G=N.split("@"),U="";G.length>1&&(U=G[0]+"@",N=G[1]),N=N.replace(_,".");var D=N.split("."),$=F(D,V).join(".");return U+$}function K(N){for(var V=[],G=0,U=N.length,D,$;G<U;)D=N.charCodeAt(G++),D>=55296&&D<=56319&&G<U?($=N.charCodeAt(G++),($&64512)==56320?V.push(((D&1023)<<10)+($&1023)+65536):(V.push(D),G--)):V.push(D);return V}function S(N){return F(N,function(V){var G="";return V>65535&&(V-=65536,G+=x(V>>>10&1023|55296),V=56320|V&1023),G+=x(V),G}).join("")}function R(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:d}function L(N,V){return N+22+75*(N<26)-((V!=0)<<5)}function M(N,V,G){var U=0;for(N=G?E(N/h):N>>1,N+=E(N/V);N>v*u>>1;U+=d)N=E(N/v);return E(U+(v+1)*N/(N+f))}function Z(N){var V=[],G=N.length,U,D=0,$=m,B=w,re,ee,se,le,ge,ye,Se,Ae,qe;for(re=N.lastIndexOf(y),re<0&&(re=0),ee=0;ee<re;++ee)N.charCodeAt(ee)>=128&&P("not-basic"),V.push(N.charCodeAt(ee));for(se=re>0?re+1:0;se<G;){for(le=D,ge=1,ye=d;se>=G&&P("invalid-input"),Se=R(N.charCodeAt(se++)),(Se>=d||Se>E((s-D)/ge))&&P("overflow"),D+=Se*ge,Ae=ye<=B?l:ye>=B+u?u:ye-B,!(Se<Ae);ye+=d)qe=d-Ae,ge>E(s/qe)&&P("overflow"),ge*=qe;U=V.length+1,B=M(D-le,U,le==0),E(D/U)>s-$&&P("overflow"),$+=E(D/U),D%=U,V.splice(D++,0,$)}return S(V)}function k(N){var V,G,U,D,$,B,re,ee,se,le,ge,ye=[],Se,Ae,qe,Le;for(N=K(N),Se=N.length,V=m,G=0,$=w,B=0;B<Se;++B)ge=N[B],ge<128&&ye.push(x(ge));for(U=D=ye.length,D&&ye.push(y);U<Se;){for(re=s,B=0;B<Se;++B)ge=N[B],ge>=V&&ge<re&&(re=ge);for(Ae=U+1,re-V>E((s-G)/Ae)&&P("overflow"),G+=(re-V)*Ae,V=re,B=0;B<Se;++B)if(ge=N[B],ge<V&&++G>s&&P("overflow"),ge==V){for(ee=G,se=d;le=se<=$?l:se>=$+u?u:se-$,!(ee<le);se+=d)Le=ee-le,qe=d-le,ye.push(x(L(le+Le%qe,0))),ee=E(Le/qe);ye.push(x(L(ee,0))),$=M(G,Ae,U==D),G=0,++U}++G,++V}return ye.join("")}function j(N){return X(N,function(V){return g.test(V)?Z(V.slice(4).toLowerCase()):V})}function q(N){return X(N,function(V){return c.test(V)?"xn--"+k(V):V})}if(r={version:"1.4.1",ucs2:{decode:K,encode:S},decode:Z,encode:k,toASCII:q,toUnicode:j},i&&a)if(e.exports==i)a.exports=r;else for(T in r)r.hasOwnProperty(T)&&(i[T]=r[T]);else o.punycode=r})(Bm)}(Kt,Kt.exports)),Kt.exports}var Tc;function oh(){return Tc||(Tc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Vm(),i=yd;function a(Q){return Q&&typeof Q=="object"&&"default"in Q?Q:{default:Q}}var t=a(o),r=a(i),s=t.default;function d(){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",`
|
|
130
|
+
`," "],w=["{","}","|","\\","^","`"].concat(h),m=["'"].concat(w),y=["%","/","?",";","#"].concat(m),g=["/","?","#"],c=255,_=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},T=r.default;function P(Q,pe,A){if(Q&&typeof Q=="object"&&Q instanceof d)return Q;var J=new d;return J.parse(Q,pe,A),J}d.prototype.parse=function(Q,pe,A){if(typeof Q!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof Q);var J=Q.indexOf("?"),fe=J!==-1&&J<Q.indexOf("#")?"?":"#",_e=Q.split(fe),me=/\\/g;_e[0]=_e[0].replace(me,"/"),Q=_e.join(fe);var he=Q;if(he=he.trim(),!A&&Q.split("#").length===1){var Te=f.exec(he);if(Te)return this.path=he,this.href=he,this.pathname=Te[1],Te[2]?(this.search=Te[2],pe?this.query=T.parse(this.search.substr(1)):this.query=this.search.substr(1)):pe&&(this.search="",this.query={}),this}var I=l.exec(he);if(I){I=I[0];var ie=I.toLowerCase();this.protocol=ie,he=he.substr(I.length)}if(A||I||he.match(/^\/\/[^@/]+@[^@/]+/)){var ce=he.substr(0,2)==="//";ce&&!(I&&E[I])&&(he=he.substr(2),this.slashes=!0)}if(!E[I]&&(ce||I&&!x[I])){for(var de=-1,W=0;W<g.length;W++){var oe=he.indexOf(g[W]);oe!==-1&&(de===-1||oe<de)&&(de=oe)}var O,ue;de===-1?ue=he.lastIndexOf("@"):ue=he.lastIndexOf("@",de),ue!==-1&&(O=he.slice(0,ue),he=he.slice(ue+1),this.auth=decodeURIComponent(O)),de=-1;for(var W=0;W<y.length;W++){var oe=he.indexOf(y[W]);oe!==-1&&(de===-1||oe<de)&&(de=oe)}de===-1&&(de=he.length),this.host=he.slice(0,de),he=he.slice(de),this.parseHost(),this.hostname=this.hostname||"";var Oe=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Oe)for(var p=this.hostname.split(/\./),W=0,te=p.length;W<te;W++){var ae=p[W];if(ae&&!ae.match(_)){for(var C="",z=0,ne=ae.length;z<ne;z++)ae.charCodeAt(z)>127?C+="x":C+=ae[z];if(!C.match(_)){var Ee=p.slice(0,W),ve=p.slice(W+1),be=ae.match(b);be&&(Ee.push(be[1]),ve.unshift(be[2])),ve.length&&(he="/"+ve.join(".")+he),this.hostname=Ee.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),Oe||(this.hostname=s.toASCII(this.hostname));var Ie=this.port?":"+this.port:"",ut=this.hostname||"";this.host=ut+Ie,this.href+=this.host,Oe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),he[0]!=="/"&&(he="/"+he))}if(!v[ie])for(var W=0,te=m.length;W<te;W++){var Ne=m[W];if(he.indexOf(Ne)!==-1){var Pe=encodeURIComponent(Ne);Pe===Ne&&(Pe=escape(Ne)),he=he.split(Ne).join(Pe)}}var Me=he.indexOf("#");Me!==-1&&(this.hash=he.substr(Me),he=he.slice(0,Me));var Ue=he.indexOf("?");if(Ue!==-1?(this.search=he.substr(Ue),this.query=he.substr(Ue+1),pe&&(this.query=T.parse(this.query)),he=he.slice(0,Ue)):pe&&(this.search="",this.query={}),he&&(this.pathname=he),x[ie]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ie=this.pathname||"",Xe=this.search||"";this.path=Ie+Xe}return this.href=this.format(),this};function F(Q){return typeof Q=="string"&&(Q=P(Q)),Q instanceof d?Q.format():d.prototype.format.call(Q)}d.prototype.format=function(){var Q=this.auth||"";Q&&(Q=encodeURIComponent(Q),Q=Q.replace(/%3A/i,":"),Q+="@");var pe=this.protocol||"",A=this.pathname||"",J=this.hash||"",fe=!1,_e="";this.host?fe=Q+this.host:this.hostname&&(fe=Q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(_e=T.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var me=this.search||_e&&"?"+_e||"";return pe&&pe.substr(-1)!==":"&&(pe+=":"),this.slashes||(!pe||x[pe])&&fe!==!1?(fe="//"+(fe||""),A&&A.charAt(0)!=="/"&&(A="/"+A)):fe||(fe=""),J&&J.charAt(0)!=="#"&&(J="#"+J),me&&me.charAt(0)!=="?"&&(me="?"+me),A=A.replace(/[?#]/g,function(he){return encodeURIComponent(he)}),me=me.replace("#","%23"),pe+fe+A+me+J};function X(Q,pe){return P(Q,!1,!0).resolve(pe)}d.prototype.resolve=function(Q){return this.resolveObject(P(Q,!1,!0)).format()};function K(Q,pe){return Q?P(Q,!1,!0).resolveObject(pe):pe}d.prototype.resolveObject=function(Q){if(typeof Q=="string"){var pe=new d;pe.parse(Q,!1,!0),Q=pe}for(var A=new d,J=Object.keys(this),fe=0;fe<J.length;fe++){var _e=J[fe];A[_e]=this[_e]}if(A.hash=Q.hash,Q.href==="")return A.href=A.format(),A;if(Q.slashes&&!Q.protocol){for(var me=Object.keys(Q),he=0;he<me.length;he++){var Te=me[he];Te!=="protocol"&&(A[Te]=Q[Te])}return x[A.protocol]&&A.hostname&&!A.pathname&&(A.pathname="/",A.path=A.pathname),A.href=A.format(),A}if(Q.protocol&&Q.protocol!==A.protocol){if(!x[Q.protocol]){for(var I=Object.keys(Q),ie=0;ie<I.length;ie++){var ce=I[ie];A[ce]=Q[ce]}return A.href=A.format(),A}if(A.protocol=Q.protocol,!Q.host&&!E[Q.protocol]){for(var te=(Q.pathname||"").split("/");te.length&&!(Q.host=te.shift()););Q.host||(Q.host=""),Q.hostname||(Q.hostname=""),te[0]!==""&&te.unshift(""),te.length<2&&te.unshift(""),A.pathname=te.join("/")}else A.pathname=Q.pathname;if(A.search=Q.search,A.query=Q.query,A.host=Q.host||"",A.auth=Q.auth,A.hostname=Q.hostname||Q.host,A.port=Q.port,A.pathname||A.search){var de=A.pathname||"",W=A.search||"";A.path=de+W}return A.slashes=A.slashes||Q.slashes,A.href=A.format(),A}var oe=A.pathname&&A.pathname.charAt(0)==="/",O=Q.host||Q.pathname&&Q.pathname.charAt(0)==="/",ue=O||oe||A.host&&Q.pathname,Oe=ue,p=A.pathname&&A.pathname.split("/")||[],te=Q.pathname&&Q.pathname.split("/")||[],ae=A.protocol&&!x[A.protocol];if(ae&&(A.hostname="",A.port=null,A.host&&(p[0]===""?p[0]=A.host:p.unshift(A.host)),A.host="",Q.protocol&&(Q.hostname=null,Q.port=null,Q.host&&(te[0]===""?te[0]=Q.host:te.unshift(Q.host)),Q.host=null),ue=ue&&(te[0]===""||p[0]==="")),O)A.host=Q.host||Q.host===""?Q.host:A.host,A.hostname=Q.hostname||Q.hostname===""?Q.hostname:A.hostname,A.search=Q.search,A.query=Q.query,p=te;else if(te.length)p||(p=[]),p.pop(),p=p.concat(te),A.search=Q.search,A.query=Q.query;else if(Q.search!=null){if(ae){A.host=p.shift(),A.hostname=A.host;var C=A.host&&A.host.indexOf("@")>0?A.host.split("@"):!1;C&&(A.auth=C.shift(),A.hostname=C.shift(),A.host=A.hostname)}return A.search=Q.search,A.query=Q.query,(A.pathname!==null||A.search!==null)&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.href=A.format(),A}if(!p.length)return A.pathname=null,A.search?A.path="/"+A.search:A.path=null,A.href=A.format(),A;for(var z=p.slice(-1)[0],ne=(A.host||Q.host||p.length>1)&&(z==="."||z==="..")||z==="",Ee=0,ve=p.length;ve>=0;ve--)z=p[ve],z==="."?p.splice(ve,1):z===".."?(p.splice(ve,1),Ee++):Ee&&(p.splice(ve,1),Ee--);if(!ue&&!Oe)for(;Ee--;Ee)p.unshift("..");ue&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),ne&&p.join("/").substr(-1)!=="/"&&p.push("");var be=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(ae){A.hostname=be?"":p.length?p.shift():"",A.host=A.hostname;var C=A.host&&A.host.indexOf("@")>0?A.host.split("@"):!1;C&&(A.auth=C.shift(),A.hostname=C.shift(),A.host=A.hostname)}return ue=ue||A.host&&p.length,ue&&!be&&p.unshift(""),p.length>0?A.pathname=p.join("/"):(A.pathname=null,A.path=null),(A.pathname!==null||A.search!==null)&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.auth=Q.auth||A.auth,A.slashes=A.slashes||Q.slashes,A.href=A.format(),A},d.prototype.parseHost=function(){var Q=this.host,pe=u.exec(Q);pe&&(pe=pe[0],pe!==":"&&(this.port=pe.substr(1)),Q=Q.substr(0,Q.length-pe.length)),Q&&(this.hostname=Q)};var S=P,R=X,L=K,M=F,Z=d;function k(Q,pe){for(var A=0,J=Q.length-1;J>=0;J--){var fe=Q[J];fe==="."?Q.splice(J,1):fe===".."?(Q.splice(J,1),A++):A&&(Q.splice(J,1),A--)}if(pe)for(;A--;A)Q.unshift("..");return Q}function j(){for(var Q="",pe=!1,A=arguments.length-1;A>=-1&&!pe;A--){var J=A>=0?arguments[A]:"/";if(typeof J!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!J)continue;Q=J+"/"+Q,pe=J.charAt(0)==="/"}return Q=k(q(Q.split("/"),function(fe){return!!fe}),!pe).join("/"),(pe?"/":"")+Q||"."}function q(Q,pe){if(Q.filter)return Q.filter(pe);for(var A=[],J=0;J<Q.length;J++)pe(Q[J],J,Q)&&A.push(Q[J]);return A}var N=function(Q){function pe(){var J=this||self;return delete Q.prototype.__magic__,J}if(typeof globalThis=="object")return globalThis;if(this)return pe();Q.defineProperty(Q.prototype,"__magic__",{configurable:!0,get:pe});var A=__magic__;return A}(Object),V=M,G=S,U=R,D=Z,$=N.URL,B=N.URLSearchParams,re=/%/g,ee=/\\/g,se=/\n/g,le=/\r/g,ge=/\t/g,ye=47;function Se(Q){var pe=Q??null;return!!(pe!==null&&pe?.href&&pe?.origin)}function Ae(Q){if(Q.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var pe=Q.pathname,A=0;A<pe.length;A++)if(pe[A]==="%"){var J=pe.codePointAt(A+2)|32;if(pe[A+1]==="2"&&J===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(pe)}function qe(Q){return Q.includes("%")&&(Q=Q.replace(re,"%25")),Q.includes("\\")&&(Q=Q.replace(ee,"%5C")),Q.includes(`
|
|
131
|
+
`)&&(Q=Q.replace(se,"%0A")),Q.includes("\r")&&(Q=Q.replace(le,"%0D")),Q.includes(" ")&&(Q=Q.replace(ge,"%09")),Q}var Le=function(pe){if(typeof pe>"u")throw new TypeError('The "domain" argument must be specified');return new $("http://"+pe).hostname},ke=function(pe){if(typeof pe>"u")throw new TypeError('The "domain" argument must be specified');return new $("http://"+pe).hostname},xe=function(pe){var A=new $("file://"),J=j(pe),fe=pe.charCodeAt(pe.length-1);return fe===ye&&J[J.length-1]!=="/"&&(J+="/"),A.pathname=qe(J),A},Fe=function(pe){if(!Se(pe)&&typeof pe!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof pe+" ("+pe+")");var A=new $(pe);if(A.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return Ae(A)},rt=function(pe,A){var J,fe,_e,me;if(A===void 0&&(A={}),!(pe instanceof $))return V(pe);if(typeof A!="object"||A===null)throw new TypeError('The "options" argument must be of type object.');var he=(J=A.auth)!=null?J:!0,Te=(fe=A.fragment)!=null?fe:!0,I=(_e=A.search)!=null?_e:!0;(me=A.unicode)!=null;var ie=new $(pe.toString());return he||(ie.username="",ie.password=""),Te||(ie.hash=""),I||(ie.search=""),ie.toString()},$e={format:rt,parse:G,resolve:U,resolveObject:L,Url:D,URL:$,URLSearchParams:B,domainToASCII:Le,domainToUnicode:ke,pathToFileURL:xe,fileURLToPath:Fe};n.URL=$,n.URLSearchParams=B,n.Url=D,n.default=$e,n.domainToASCII=Le,n.domainToUnicode=ke,n.fileURLToPath=Fe,n.format=rt,n.parse=G,n.pathToFileURL=xe,n.resolve=U,n.resolveObject=L,n=e.exports=$e}(Fr,Fr.exports)),Fr.exports}var xc;function sh(){return xc||(xc=1,function(e){var n=Mm(),o=ah(),i=Fm(),a=Um(),t=oh(),r=e;r.request=function(s,d){typeof s=="string"?s=t.parse(s):s=i(s);var l=He.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 m=new n(s);return d&&m.on("response",d),m},r.get=function(d,l){var u=r.request(d,l);return u.end(),u},r.ClientRequest=n,r.IncomingMessage=o.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=a,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"]}(Fi)),Fi}var zi={exports:{}},Cc;function Gm(){return Cc||(Cc=1,function(e){var n=sh(),o=oh(),i=e.exports;for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);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=o.parse(r)),r.protocol||(r.protocol="https:"),r.protocol!=="https:")throw new Error('Protocol "'+r.protocol+'" not supported. Expected "https:"');return r}}(zi)),zi.exports}var Hi,Ac;function zm(){if(Ac)return Hi;Ac=1;function e(v){"@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(v)}function n(v,E){var x=Object.keys(v);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(v);E&&(T=T.filter(function(P){return Object.getOwnPropertyDescriptor(v,P).enumerable})),x.push.apply(x,T)}return x}function o(v){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?n(Object(x),!0).forEach(function(T){i(v,T,x[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(T){Object.defineProperty(v,T,Object.getOwnPropertyDescriptor(x,T))})}return v}function i(v,E,x){return E in v?Object.defineProperty(v,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):v[E]=x,v}function a(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}function t(v,E){for(var x=0;x<E.length;x++){var T=E[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}function r(v,E,x){return E&&t(v.prototype,E),Object.defineProperty(v,"prototype",{writable:!1}),v}function s(v,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(E&&E.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),E&&d(v,E)}function d(v,E){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,P){return T.__proto__=P,T},d(v,E)}function l(v){var E=h();return function(){var T=w(v),P;if(E){var F=w(this).constructor;P=Reflect.construct(T,arguments,F)}else P=T.apply(this,arguments);return u(this,P)}}function u(v,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(v)}function f(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}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(v){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},w(v)}var m=sh(),y=Gm(),g=Lt(),c=g.Stream,_=qt(),b=ir();return Hi=function(v){s(x,v);var E=l(x);function x(){var T,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a(this,x),T=E.call(this,P),T.options=P,T.name=P.name||"http",T.ssl=!!P.ssl,T.host=P.host||"localhost",T.port=P.port,T.auth=P.auth,T.path=P.path||"",T.agent=P.agent,T.headers=P.headers||{},T.headers["content-type"]="application/json",T.batch=P.batch||!1,T.batchInterval=P.batchInterval||5e3,T.batchCount=P.batchCount||10,T.batchOptions=[],T.batchTimeoutID=-1,T.batchCallback={},T.port||(T.port=T.ssl?443:80),T}return r(x,[{key:"log",value:function(P,F){var X=this;this._request(P,function(K,S){S&&S.statusCode!==200&&(K=new Error("Invalid HTTP Status Code: ".concat(S.statusCode))),K?X.emit("warn",K):X.emit("logged",P)}),F&&setImmediate(F)}},{key:"query",value:function(P,F){typeof P=="function"&&(F=P,P={}),P={method:"query",params:this.normalizeQuery(P)},P.params.path&&(P.path=P.params.path,delete P.params.path),P.params.auth&&(P.auth=P.params.auth,delete P.params.auth),this._request(P,function(X,K,S){if(K&&K.statusCode!==200&&(X=new Error("Invalid HTTP Status Code: ".concat(K.statusCode))),X)return F(X);if(typeof S=="string")try{S=JSON.parse(S)}catch(R){return F(R)}F(null,S)})}},{key:"stream",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=new c;P={method:"stream",params:P},P.params.path&&(P.path=P.params.path,delete P.params.path),P.params.auth&&(P.auth=P.params.auth,delete P.params.auth);var X="",K=this._request(P);return F.destroy=function(){return K.destroy()},K.on("data",function(S){S=(X+S).split(/\n+/);for(var R=S.length-1,L=0;L<R;L++)try{F.emit("log",JSON.parse(S[L]))}catch(M){F.emit("error",M)}X=S[R]}),K.on("error",function(S){return F.emit("error",S)}),F}},{key:"_request",value:function(P,F){P=P||{};var X=P.auth||this.auth,K=P.path||this.path||"";delete P.auth,delete P.path,this.batch?this._doBatch(P,F,X,K):this._doRequest(P,F,X,K)}},{key:"_doBatch",value:function(P,F,X,K){if(this.batchOptions.push(P),this.batchOptions.length===1){var S=this;this.batchCallback=F,this.batchTimeoutID=setTimeout(function(){S.batchTimeoutID=-1,S._doBatchRequest(S.batchCallback,X,K)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,X,K)}},{key:"_doBatchRequest",value:function(P,F,X){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var K=this.batchOptions.slice();this.batchOptions=[],this._doRequest(K,P,F,X)}},{key:"_doRequest",value:function(P,F,X,K){var S=Object.assign({},this.headers);X&&X.bearer&&(S.Authorization="Bearer ".concat(X.bearer));var R=(this.ssl?y:m).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(K.replace(/^\//,"")),headers:S,auth:X&&X.username&&X.password?"".concat(X.username,":").concat(X.password):"",agent:this.agent}));R.on("error",F),R.on("response",function(L){return L.on("end",function(){return F(null,L)}).resume()}),R.end(Be.from(b(P,this.options.replacer),"utf8"))}}]),x}(_),Hi}var Zi,Ic;function uh(){if(Ic)return Zi;Ic=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",Zi=e,Zi}var Wi,Pc;function Hm(){if(Pc)return Wi;Pc=1;function e(g){"@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(g)}function n(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}function o(g,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(g,b.key,b)}}function i(g,c,_){return c&&o(g.prototype,c),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(c&&c.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),c&&t(g,c)}function t(g,c){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},t(g,c)}function r(g){var c=l();return function(){var b=u(g),v;if(c){var E=u(this).constructor;v=Reflect.construct(b,arguments,E)}else v=b.apply(this,arguments);return s(this,v)}}function s(g,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 d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}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(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},u(g)}var f=uh(),h=Ve(),w=h.MESSAGE,m=jt(),y=qt();return Wi=function(g){a(_,g);var c=r(_);function _(){var b,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n(this,_),b=c.call(this,v),!v.stream||!f(v.stream))throw new Error("options.stream is required.");return b._stream=v.stream,b._stream.setMaxListeners(1/0),b.isObjectMode=v.stream._writableState.objectMode,b.eol=typeof v.eol=="string"?v.eol:m.EOL,b}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.isObjectMode){this._stream.write(v),E&&E();return}this._stream.write("".concat(v[w]).concat(this.eol)),E&&E()}}]),_}(y),Wi}var kc;function Zm(){return kc||(kc=1,function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return pm()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return $m()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return zm()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return Hm()}})}(bi)),bi}var Nt={},jc;function Fo(){if(jc)return Nt;jc=1;var e=Kl(),n=Ve(),o=n.configs;return Nt.cli=e.levels(o.cli),Nt.npm=e.levels(o.npm),Nt.syslog=e.levels(o.syslog),Nt.addColors=e.levels,Nt}var Ur={exports:{}},Br={exports:{}},qc;function Wm(){return qc||(qc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=$o(),i=g(o),a=Mo(),t=g(a),r=th(),s=g(r),d=Ql(),l=g(d),u=eh(),f=g(u),h=Bt(),w=g(h),m=ar(),y=g(m);function g(v){return v&&v.__esModule?v:{default:v}}function c(v,E,x){x=(0,l.default)(x);var T=0,P=0,{length:F}=v,X=!1;F===0&&x(null);function K(S,R){S===!1&&(X=!0),X!==!0&&(S?x(S):(++P===F||R===t.default)&&x(null))}for(;T<F;T++)E(v[T],T,(0,f.default)(K))}function _(v,E,x){return(0,s.default)(v,1/0,E,x)}function b(v,E,x){var T=(0,i.default)(v)?c:_;return T(v,(0,w.default)(E),x)}n.default=(0,y.default)(b,3),e.exports=n.default}(Br,Br.exports)),Br.exports}var Vr={exports:{}},Lc;function Ym(){return Lc||(Lc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return(a,t,r)=>i(a,r)}e.exports=n.default}(Vr,Vr.exports)),Vr.exports}var Nc;function Uo(){return Nc||(Nc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Wm(),i=u(o),a=Ym(),t=u(a),r=Bt(),s=u(r),d=ar(),l=u(d);function u(h){return h&&h.__esModule?h:{default:h}}function f(h,w,m){return(0,i.default)(h,(0,t.default)((0,s.default)(w)),m)}n.default=(0,l.default)(f,3),e.exports=n.default}(Ur,Ur.exports)),Ur.exports}var Yi,Dc;function Km(){if(Dc)return Yi;Dc=1;var e=Object.prototype.toString;return Yi=function(o){if(typeof o.displayName=="string"&&o.constructor.name)return o.displayName;if(typeof o.name=="string"&&o.name)return o.name;if(typeof o=="object"&&o.constructor&&typeof o.constructor.name=="string")return o.constructor.name;var i=o.toString(),a=e.call(o).slice(8,-1);return a==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=a,i||"anonymous"},Yi}var Ki,$c;function ch(){if($c)return Ki;$c=1;var e=Km();return Ki=function(o){var i=0,a;function t(){return i||(i=1,a=o.apply(this,arguments),o=null),a}return t.displayName=e(o),t},Ki}var Ji={},Mc;function fh(){return Mc||(Mc=1,function(e){e.get=function(a){var t=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},s=Error.prepareStackTrace;Error.prepareStackTrace=function(l,u){return u},Error.captureStackTrace(r,a||e.get);var d=r.stack;return Error.prepareStackTrace=s,Error.stackTraceLimit=t,d},e.parse=function(a){if(!a.stack)return[];var t=this,r=a.stack.split(`
|
|
132
|
+
`).slice(1);return r.map(function(s){if(s.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:s,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var d=s.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(d){var l=null,u=null,f=null,h=null,w=null,m=d[5]==="native";if(d[1]){f=d[1];var y=f.lastIndexOf(".");if(f[y-1]=="."&&y--,y>0){l=f.substr(0,y),u=f.substr(y+1);var g=l.indexOf(".Module");g>0&&(f=f.substr(g+1),l=l.substr(0,g))}h=null}u&&(h=l,w=u),u==="<anonymous>"&&(w=null,f=null);var c={fileName:d[2]||null,lineNumber:parseInt(d[3],10)||null,functionName:f,typeName:h,methodName:w,columnNumber:parseInt(d[4],10)||null,native:m};return t._createParsedCallSite(c)}}).filter(function(s){return!!s})};function n(a){for(var t in a)this[t]=a[t]}var o=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],i=["topLevel","eval","native","constructor"];o.forEach(function(a){n.prototype[a]=null,n.prototype["get"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),i.forEach(function(a){n.prototype[a]=!1,n.prototype["is"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),e._createParsedCallSite=function(a){return new n(a)}}(Ji)),Ji}var Xi,Fc;function lh(){if(Fc)return Xi;Fc=1;function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},e(w)}function n(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function o(w,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(w,g.key,g)}}function i(w,m,y){return m&&o(w.prototype,m),Object.defineProperty(w,"prototype",{writable:!1}),w}function a(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(m&&m.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),m&&t(w,m)}function t(w,m){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,c){return g.__proto__=c,g},t(w,m)}function r(w){var m=l();return function(){var g=u(w),c;if(m){var _=u(this).constructor;c=Reflect.construct(g,arguments,_)}else c=g.apply(this,arguments);return s(this,c)}}function s(w,m){if(m&&(e(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(w)}function d(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(w){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},u(w)}var f=Lt(),h=f.Writable;return Xi=function(w){a(y,w);var m=r(y);function y(g){var c;if(n(this,y),c=m.call(this,{objectMode:!0}),!g)throw new Error("ExceptionStream requires a TransportStream instance.");return c.handleExceptions=!0,c.transport=g,c}return i(y,[{key:"_write",value:function(c,_,b){return c.exception?this.transport.log(c,b):(b(),!0)}}]),y}(h),Xi}var Qi,Uc;function hh(){if(Uc)return Qi;Uc=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 o(l,u,f){return u&&n(l.prototype,u),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=jt(),a=Uo(),t=an()("winston:exception"),r=ch(),s=fh(),d=lh();return Qi=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 o(l,[{key:"handle",value:function(){for(var f=this,h=arguments.length,w=new Array(h),m=0;m<h;m++)w[m]=arguments[m];w.forEach(function(y){if(Array.isArray(y))return y.forEach(function(g){return f._addHandler(g)});f._addHandler(y)}),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(`
|
|
133
|
+
`),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 d(f);this.handlers.set(f,h),this.logger.pipe(h)}}},{key:"_uncaughtException",value:function(f){var h=this.getAllInfo(f),w=this._getExceptionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(f):this.logger.exitOnError,y;!w.length&&m&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",Re._exiting),m&&!Re._exiting&&(y&&clearTimeout(y),Re.exit(1))}if(!w||w.length===0)return Re.nextTick(g);a(w,function(c,_){var b=r(_),v=c.transport||c;function E(x){return function(){t(x),b()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(h),m&&(y=setTimeout(g,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(f){var h=f.transport||f;return h.handleExceptions})}}]),l}(),Qi}var ea,Bc;function dh(){if(Bc)return ea;Bc=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 o(l,u,f){return u&&n(l.prototype,u),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=jt(),a=Uo(),t=an()("winston:rejection"),r=ch(),s=fh(),d=lh();return ea=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 o(l,[{key:"handle",value:function(){for(var f=this,h=arguments.length,w=new Array(h),m=0;m<h;m++)w[m]=arguments[m];w.forEach(function(y){if(Array.isArray(y))return y.forEach(function(g){return f._addHandler(g)});f._addHandler(y)}),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(`
|
|
134
|
+
`),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 d(f);this.handlers.set(f,h),this.logger.pipe(h)}}},{key:"_unhandledRejection",value:function(f){var h=this.getAllInfo(f),w=this._getRejectionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(f):this.logger.exitOnError,y;!w.length&&m&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",Re._exiting),m&&!Re._exiting&&(y&&clearTimeout(y),Re.exit(1))}if(!w||w.length===0)return Re.nextTick(g);a(w,function(c,_){var b=r(_),v=c.transport||c;function E(x){return function(){t(x),b()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(h),m&&(y=setTimeout(g,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(f){var h=f.transport||f;return h.handleRejections})}}]),l}(),ea}var ta={exports:{}},Vc;function Jm(){if(Vc)return ta.exports;Vc=1;const e=Je(),{LEVEL:n}=Ve(),o=qt(),i=ta.exports=function(t={}){if(o.call(this,t),!t.transport||typeof t.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=t.transport,this.level=this.level||t.transport.level,this.handleExceptions=this.handleExceptions||t.transport.handleExceptions,this._deprecated();function r(s){this.emit("error",s,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(i,o),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(`
|
|
135
|
+
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},ta.exports}var ra,Gc;function Xm(){if(Gc)return ra;Gc=1;function e(a){"@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(a)}function n(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function o(a,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(a,s.key,s)}}function i(a,t,r){return t&&o(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}return ra=function(){function a(t){if(n(this,a),!t)throw new Error("Logger is required for profiling.");this.logger=t,this.start=Date.now()}return i(a,[{key:"done",value:function(){for(var r=arguments.length,s=new Array(r),d=0;d<r;d++)s[d]=arguments[d];typeof s[s.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),s.pop());var l=e(s[s.length-1])==="object"?s.pop():{};return l.level=l.level||"info",l.durationMs=Date.now()-this.start,this.logger.write(l)}}]),a}(),ra}var na,zc;function Qm(){if(zc)return na;zc=1;class e extends Error{constructor(o){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
136
|
+
Found: ${o.toString().split(`
|
|
137
|
+
`)[0]}
|
|
138
|
+
`),Error.captureStackTrace(this,e)}}return na=n=>{if(n.length>2)throw new e(n);function o(a={}){this.options=a}o.prototype.transform=n;function i(a){return new o(a)}return i.Format=o,i},na}var ia,Hc;function eg(){if(Hc)return ia;Hc=1;const e=Qm(),{MESSAGE:n}=Ve(),o=ir();function i(a,t){return typeof t=="bigint"?t.toString():t}return ia=e((a,t)=>{const r=o.configure(t);return a[n]=r(a,t.replacer||i,t.space),a}),ia}var aa,Zc;function tg(){if(Zc)return aa;Zc=1;function e(L,M,Z){return M in L?Object.defineProperty(L,M,{value:Z,enumerable:!0,configurable:!0,writable:!0}):L[M]=Z,L}function n(L){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},n(L)}function o(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function i(L,M){for(var Z=0;Z<M.length;Z++){var k=M[Z];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(L,k.key,k)}}function a(L,M,Z){return M&&i(L.prototype,M),Object.defineProperty(L,"prototype",{writable:!1}),L}function t(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),M&&r(L,M)}function r(L,M){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,j){return k.__proto__=j,k},r(L,M)}function s(L){var M=u();return function(){var k=f(L),j;if(M){var q=f(this).constructor;j=Reflect.construct(k,arguments,q)}else j=k.apply(this,arguments);return d(this,j)}}function d(L,M){if(M&&(n(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(L)}function l(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}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(L){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},f(L)}var h=Lt(),w=h.Stream,m=h.Transform,y=Uo(),g=Ve(),c=g.LEVEL,_=g.SPLAT,b=uh(),v=hh(),E=dh(),x=Jm(),T=Xm(),P=Jl(),F=P.warn,X=Fo(),K=/%[scdjifoO%]/g,S=function(L){t(Z,L);var M=s(Z);function Z(k){var j;return o(this,Z),j=M.call(this,{objectMode:!0}),j.configure(k),j}return a(Z,[{key:"child",value:function(j){var q=this;return Object.create(q,{write:{value:function(V){var G=Object.assign({},j,V);V instanceof Error&&(G.stack=V.stack,G.message=V.message),q.write(G)}}})}},{key:"configure",value:function(){var j=this,q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=q.silent,V=q.format,G=q.defaultMeta,U=q.levels,D=q.level,$=D===void 0?"info":D,B=q.exitOnError,re=B===void 0?!0:B,ee=q.transports,se=q.colors,le=q.emitErrs,ge=q.formatters,ye=q.padLevels,Se=q.rewriters,Ae=q.stripColors,qe=q.exceptionHandlers,Le=q.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=N,this.format=V||this.format||eg()(),this.defaultMeta=G||null,this.levels=U||this.levels||X.npm.levels,this.level=$,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new v(this),this.rejections=new E(this),this.profilers={},this.exitOnError=re,ee&&(ee=Array.isArray(ee)?ee:[ee],ee.forEach(function(ke){return j.add(ke)})),se||le||ge||ye||Se||Ae)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(`
|
|
139
|
+
`));qe&&this.exceptions.handle(qe),Le&&this.rejections.handle(Le)}},{key:"isLevelEnabled",value:function(j){var q=this,N=R(this.levels,j);if(N===null)return!1;var V=R(this.levels,this.level);if(V===null)return!1;if(!this.transports||this.transports.length===0)return V>=N;var G=this.transports.findIndex(function(U){var D=R(q.levels,U.level);return D===null&&(D=V),D>=N});return G!==-1}},{key:"log",value:function(j,q){for(var N,V=arguments.length,G=new Array(V>2?V-2:0),U=2;U<V;U++)G[U-2]=arguments[U];if(arguments.length===1)return j[c]=j.level,this._addDefaultMeta(j),this.write(j),this;if(arguments.length===2){var D;return q&&n(q)==="object"?(q[c]=q.level=j,this._addDefaultMeta(q),this.write(q),this):(q=(D={},e(D,c,j),e(D,"level",j),e(D,"message",q),D),this._addDefaultMeta(q),this.write(q),this)}var $=G[0];if(n($)==="object"&&$!==null){var B=q&&q.match&&q.match(K);if(!B){var re,ee=Object.assign({},this.defaultMeta,$,(re={},e(re,c,j),e(re,_,G),e(re,"level",j),e(re,"message",q),re));return $.message&&(ee.message="".concat(ee.message," ").concat($.message)),$.stack&&(ee.stack=$.stack),this.write(ee),this}}return this.write(Object.assign({},this.defaultMeta,(N={},e(N,c,j),e(N,_,G),e(N,"level",j),e(N,"message",q),N))),this}},{key:"_transform",value:function(j,q,N){if(this.silent)return N();j[c]||(j[c]=j.level),!this.levels[j[c]]&&this.levels[j[c]]!==0&&console.error("[winston] Unknown logger level: %s",j[c]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",j);try{this.push(this.format.transform(j,this.format.options))}finally{this._writableState.sync=!1,N()}}},{key:"_final",value:function(j){var q=this.transports.slice();y(q,function(N,V){if(!N||N.finished)return setImmediate(V);N.once("finish",V),N.end()},j)}},{key:"add",value:function(j){var q=!b(j)||j.log.length>2?new x({transport:j}):j;if(!q._writableState||!q._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",q),this._onEvent("warn",q),this.pipe(q),j.handleExceptions&&this.exceptions.handle(),j.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(j){if(!j)return this;var q=j;return(!b(j)||j.log.length>2)&&(q=this.transports.filter(function(N){return N.transport===j})[0]),q&&this.unpipe(q),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(){F.deprecated("setLevels")}},{key:"query",value:function(j,q){typeof j=="function"&&(q=j,j={}),j=j||{};var N={},V=Object.assign({},j.query||{});function G(D,$){j.query&&typeof D.formatQuery=="function"&&(j.query=D.formatQuery(V)),D.query(j,function(B,re){if(B)return $(B);typeof D.formatResults=="function"&&(re=D.formatResults(re,j.format)),$(null,re)})}function U(D,$){G(D,function(B,re){$&&(re=B||re,re&&(N[D.name]=re),$()),$=null})}y(this.transports.filter(function(D){return!!D.query}),U,function(){return q(null,N)})}},{key:"stream",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=new w,N=[];return q._streams=N,q.destroy=function(){for(var V=N.length;V--;)N[V].destroy()},this.transports.filter(function(V){return!!V.stream}).forEach(function(V){var G=V.stream(j);G&&(N.push(G),G.on("log",function(U){U.transport=U.transport||[],U.transport.push(V.name),q.emit("log",U)}),G.on("error",function(U){U.transport=U.transport||[],U.transport.push(V.name),q.emit("error",U)}))}),q}},{key:"startTimer",value:function(){return new T(this)}},{key:"profile",value:function(j){var q=Date.now();if(this.profilers[j]){var N=this.profilers[j];delete this.profilers[j];for(var V=arguments.length,G=new Array(V>1?V-1:0),U=1;U<V;U++)G[U-1]=arguments[U];typeof G[G.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),G.pop());var D=n(G[G.length-1])==="object"?G.pop():{};return D.level=D.level||"info",D.durationMs=q-N,D.message=D.message||j,this.write(D)}return this.profilers[j]=q,this}},{key:"handleExceptions",value:function(){var j;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(j=this.exceptions).handle.apply(j,arguments)}},{key:"unhandleExceptions",value:function(){var j;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(j=this.exceptions).unhandle.apply(j,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(`
|
|
140
|
+
`))}},{key:"_onEvent",value:function(j,q){function N(V){j==="error"&&!this.transports.includes(q)&&this.add(q),this.emit(j,V,q)}q["__winston"+j]||(q["__winston"+j]=N.bind(this),q.on(j,q["__winston"+j]))}},{key:"_addDefaultMeta",value:function(j){this.defaultMeta&&Object.assign(j,this.defaultMeta)}}]),Z}(m);function R(L,M){var Z=L[M];return!Z&&Z!==0?null:Z}return Object.defineProperty(S.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var M=this._readableState.pipes;return Array.isArray(M)?M:[M].filter(Boolean)}}),aa=S,aa}var oa,Wc;function ph(){if(Wc)return oa;Wc=1;function e(g){"@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(g)}function n(g,c,_){return Object.defineProperty(g,"prototype",{writable:!1}),g}function o(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}function i(g,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(c&&c.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),c&&a(g,c)}function a(g,c){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},a(g,c)}function t(g){var c=d();return function(){var b=l(g),v;if(c){var E=l(this).constructor;v=Reflect.construct(b,arguments,E)}else v=b.apply(this,arguments);return r(this,v)}}function r(g,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(g)}function s(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(g){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},l(g)}var u=Ve(),f=u.LEVEL,h=Fo(),w=tg(),m=an()("winston:create-logger");function y(g){return"is"+g.charAt(0).toUpperCase()+g.slice(1)+"Enabled"}return oa=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};g.levels=g.levels||h.npm.levels;var c=function(b){i(E,b);var v=t(E);function E(x){return o(this,E),v.call(this,x)}return n(E)}(w),_=new c(g);return Object.keys(g.levels).forEach(function(b){if(m('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 v=this||_,E=arguments.length,x=new Array(E),T=0;T<E;T++)x[T]=arguments[T];if(x.length===1){var P=x[0],F=P&&P.message&&P||{message:P};return F.level=F[f]=b,v._addDefaultMeta(F),v.write(F),this||_}return x.length===0?(v.log(b,""),v):v.log.apply(v,[b].concat(x))},c.prototype[y(b)]=function(){return(this||_).isLevelEnabled(b)}}),_},oa}var sa,Yc;function rg(){if(Yc)return sa;Yc=1;function e(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function n(a,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(a,s.key,s)}}function o(a,t,r){return t&&n(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}var i=ph();return sa=function(){function a(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,a),this.loggers=new Map,this.options=t}return o(a,[{key:"add",value:function(r,s){var d=this;if(!this.loggers.has(r)){s=Object.assign({},s||this.options);var l=s.transports||this.options.transports;s.transports=l?l.slice():[];var u=i(s);u.on("close",function(){return d._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(d,l){return s._removeLogger(l)})}},{key:"_removeLogger",value:function(r){if(this.loggers.has(r)){var s=this.loggers.get(r);s.close(),this._delete(r)}}},{key:"_delete",value:function(r){this.loggers.delete(r)}}]),a}(),sa}var Kc;function ng(){return Kc||(Kc=1,function(e){var n=Kl(),o=Jl(),i=o.warn;e.version=hm.version,e.transports=Zm(),e.config=Fo(),e.addColors=n.levels,e.format=n.format,e.createLogger=ph(),e.ExceptionHandler=hh(),e.RejectionHandler=dh(),e.Container=rg(),e.Transport=qt(),e.loggers=new e.Container;var a=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 a[t].apply(a,arguments)}}),Object.defineProperty(e,"level",{get:function(){return a.level},set:function(r){a.level=r}}),Object.defineProperty(e,"exceptions",{get:function(){return a.exceptions}}),["exitOnError"].forEach(function(t){Object.defineProperty(e,t,{get:function(){return a[t]},set:function(s){a[t]=s}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:a.exceptionHandlers,rejectionHandlers:a.rejectionHandlers,transports:a.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")}(Gn)),Gn}var ua={exports:{}},ca,Jc;function on(){if(Jc)return ca;Jc=1;var e=function(n,o){Error.call(this,n),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=n,o&&(this.inner=o)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,ca=e,ca}var fa,Xc;function mh(){if(Xc)return fa;Xc=1;var e=on(),n=function(o,i){e.call(this,o),this.name="NotBeforeError",this.date=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,fa=n,fa}var la,Qc;function gh(){if(Qc)return la;Qc=1;var e=on(),n=function(o,i){e.call(this,o),this.name="TokenExpiredError",this.expiredAt=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,la=n,la}var bt={},ha,ef;function vh(){if(ef)return ha;ef=1;var e=rr().Buffer,n=tn(),o=Je();function i(a){if(this.buffer=null,this.writable=!0,this.readable=!0,!a)return this.buffer=e.alloc(0),this;if(typeof a.pipe=="function")return this.buffer=e.alloc(0),a.pipe(this),this;if(a.length||typeof a=="object")return this.buffer=a,this.writable=!1,Re.nextTick((function(){this.emit("end",a),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof a+")")}return o.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},ha=i,ha}var da,tf;function ig(){if(tf)return da;tf=1;function e(i){var a=(i/8|0)+(i%8===0?0:1);return a}var n={ES256:e(256),ES384:e(384),ES512:e(521)};function o(i){var a=n[i];if(a)return a;throw new Error('Unknown algorithm "'+i+'"')}return da=o,da}var pa,rf;function ag(){if(rf)return pa;rf=1;var e=rr().Buffer,n=ig(),o=128,i=0,a=32,t=16,r=2,s=t|a|i<<6,d=r|i<<6;function l(m){return m.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function u(m){if(e.isBuffer(m))return m;if(typeof m=="string")return e.from(m,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function f(m,y){m=u(m);var g=n(y),c=g+1,_=m.length,b=0;if(m[b++]!==s)throw new Error('Could not find expected "seq"');var v=m[b++];if(v===(o|1)&&(v=m[b++]),_-b<v)throw new Error('"seq" specified length of "'+v+'", only "'+(_-b)+'" remaining');if(m[b++]!==d)throw new Error('Could not find expected "int" for "r"');var E=m[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 x=b;if(b+=E,m[b++]!==d)throw new Error('Could not find expected "int" for "s"');var T=m[b++];if(_-b!==T)throw new Error('"s" specified length of "'+T+'", expected "'+(_-b)+'"');if(c<T)throw new Error('"s" specified length of "'+T+'", max of "'+c+'" is acceptable');var P=b;if(b+=T,b!==_)throw new Error('Expected to consume entire buffer, but "'+(_-b)+'" bytes remain');var F=g-E,X=g-T,K=e.allocUnsafe(F+E+X+T);for(b=0;b<F;++b)K[b]=0;m.copy(K,b,x+Math.max(-F,0),x+E),b=g;for(var S=b;b<S+X;++b)K[b]=0;return m.copy(K,b,P+Math.max(-X,0),P+T),K=K.toString("base64"),K=l(K),K}function h(m,y,g){for(var c=0;y+c<g&&m[y+c]===0;)++c;var _=m[y+c]>=o;return _&&--c,c}function w(m,y){m=u(m);var g=n(y),c=m.length;if(c!==g*2)throw new TypeError('"'+y+'" signatures must be "'+g*2+'" bytes, saw "'+c+'"');var _=h(m,0,g),b=h(m,g,m.length),v=g-_,E=g-b,x=2+v+1+1+E,T=x<o,P=e.allocUnsafe((T?2:3)+x),F=0;return P[F++]=s,T?P[F++]=x:(P[F++]=o|1,P[F++]=x&255),P[F++]=d,P[F++]=v,_<0?(P[F++]=0,F+=m.copy(P,F,0,g)):F+=m.copy(P,F,_,g),P[F++]=d,P[F++]=E,b<0?(P[F++]=0,m.copy(P,F,g)):m.copy(P,F,g+b),P}return pa={derToJose:f,joseToDer:w},pa}var ma,nf;function og(){if(nf)return ma;nf=1;var e=Qt().Buffer,n=Qt().SlowBuffer;ma=o;function o(t,r){if(!e.isBuffer(t)||!e.isBuffer(r)||t.length!==r.length)return!1;for(var s=0,d=0;d<t.length;d++)s|=t[d]^r[d];return s===0}o.install=function(){e.prototype.equal=n.prototype.equal=function(r){return o(this,r)}};var i=e.prototype.equal,a=n.prototype.equal;return o.restore=function(){e.prototype.equal=i,n.prototype.equal=a},ma}var ga,af;function yh(){if(af)return ga;af=1;var e=rr().Buffer,n=Ut(),o=ag(),i=Je(),a=`"%s" is not a valid algorithm.
|
|
141
|
+
Supported algorithms are:
|
|
142
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,t="secret must be a string or buffer",r="key must be a string or a buffer",s="key must be a string, a buffer or an object",d=typeof n.createPublicKey=="function";d&&(r+=" or a KeyObject",t+="or a KeyObject");function l(R){if(!e.isBuffer(R)&&typeof R!="string"&&(!d||typeof R!="object"||typeof R.type!="string"||typeof R.asymmetricKeyType!="string"||typeof R.export!="function"))throw m(r)}function u(R){if(!e.isBuffer(R)&&typeof R!="string"&&typeof R!="object")throw m(s)}function f(R){if(!e.isBuffer(R)){if(typeof R=="string")return R;if(!d||typeof R!="object"||R.type!=="secret"||typeof R.export!="function")throw m(t)}}function h(R){return R.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function w(R){R=R.toString();var L=4-R.length%4;if(L!==4)for(var M=0;M<L;++M)R+="=";return R.replace(/\-/g,"+").replace(/_/g,"/")}function m(R){var L=[].slice.call(arguments,1),M=i.format.bind(i,R).apply(null,L);return new TypeError(M)}function y(R){return e.isBuffer(R)||typeof R=="string"}function g(R){return y(R)||(R=JSON.stringify(R)),R}function c(R){return function(M,Z){f(Z),M=g(M);var k=n.createHmac("sha"+R,Z),j=(k.update(M),k.digest("base64"));return h(j)}}var _,b="timingSafeEqual"in n?function(L,M){return L.byteLength!==M.byteLength?!1:n.timingSafeEqual(L,M)}:function(L,M){return _||(_=og()),_(L,M)};function v(R){return function(M,Z,k){var j=c(R)(M,k);return b(e.from(Z),e.from(j))}}function E(R){return function(M,Z){u(Z),M=g(M);var k=n.createSign("RSA-SHA"+R),j=(k.update(M),k.sign(Z,"base64"));return h(j)}}function x(R){return function(M,Z,k){l(k),M=g(M),Z=w(Z);var j=n.createVerify("RSA-SHA"+R);return j.update(M),j.verify(k,Z,"base64")}}function T(R){return function(M,Z){u(Z),M=g(M);var k=n.createSign("RSA-SHA"+R),j=(k.update(M),k.sign({key:Z,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return h(j)}}function P(R){return function(M,Z,k){l(k),M=g(M),Z=w(Z);var j=n.createVerify("RSA-SHA"+R);return j.update(M),j.verify({key:k,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},Z,"base64")}}function F(R){var L=E(R);return function(){var Z=L.apply(null,arguments);return Z=o.derToJose(Z,"ES"+R),Z}}function X(R){var L=x(R);return function(Z,k,j){k=o.joseToDer(k,"ES"+R).toString("base64");var q=L(Z,k,j);return q}}function K(){return function(){return""}}function S(){return function(L,M){return M===""}}return ga=function(L){var M={hs:c,rs:E,ps:T,es:F,none:K},Z={hs:v,rs:x,ps:P,es:X,none:S},k=L.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!k)throw m(a,L);var j=(k[1]||k[3]).toLowerCase(),q=k[2];return{sign:M[j](q),verify:Z[j](q)}},ga}var va,of;function _h(){if(of)return va;of=1;var e=Qt().Buffer;return va=function(o){return typeof o=="string"?o:typeof o=="number"||e.isBuffer(o)?o.toString():JSON.stringify(o)},va}var ya,sf;function sg(){if(sf)return ya;sf=1;var e=rr().Buffer,n=vh(),o=yh(),i=tn(),a=_h(),t=Je();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(a(u),"binary"),m=r(a(f),h);return t.format("%s.%s",w,m)}function d(u){var f=u.header,h=u.payload,w=u.secret||u.privateKey,m=u.encoding,y=o(f.alg),g=s(f,h,m),c=y.sign(g,w);return t.format("%s.%s",g,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=d({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",f),this.emit("data",f),this.emit("end"),this.readable=!1,f}catch(h){this.readable=!1,this.emit("error",h),this.emit("close")}},l.sign=d,ya=l,ya}var _a,uf;function ug(){if(uf)return _a;uf=1;var e=rr().Buffer,n=vh(),o=yh(),i=tn(),a=_h(),t=Je(),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 d(c){if(s(c))return c;try{return JSON.parse(c)}catch{return}}function l(c){var _=c.split(".",1)[0];return d(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 m(c,_,b){if(!_){var v=new Error("Missing algorithm parameter for jws.verify");throw v.code="MISSING_ALGORITHM",v}c=a(c);var E=f(c),x=u(c),T=o(_);return T.verify(x,E,b)}function y(c,_){if(_=_||{},c=a(c),!w(c))return null;var b=l(c);if(!b)return null;var v=h(c);return(b.typ==="JWT"||_.json)&&(v=JSON.parse(v,_.encoding)),{header:b,payload:v,signature:f(c)}}function g(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(g,i),g.prototype.verify=function(){try{var _=m(this.signature.buffer,this.algorithm,this.key.buffer),b=y(this.signature.buffer,this.encoding);return this.emit("done",_,b),this.emit("data",_),this.emit("end"),this.readable=!1,_}catch(v){this.readable=!1,this.emit("error",v),this.emit("close")}},g.decode=y,g.isValid=w,g.verify=m,_a=g,_a}var cf;function Bo(){if(cf)return bt;cf=1;var e=sg(),n=ug(),o=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return bt.ALGORITHMS=o,bt.sign=e.sign,bt.verify=n.verify,bt.decode=n.decode,bt.isValid=n.isValid,bt.createSign=function(a){return new e(a)},bt.createVerify=function(a){return new n(a)},bt}var ba,ff;function bh(){if(ff)return ba;ff=1;var e=Bo();return ba=function(n,o){o=o||{};var i=e.decode(n,o);if(!i)return null;var a=i.payload;if(typeof a=="string")try{var t=JSON.parse(a);t!==null&&typeof t=="object"&&(a=t)}catch{}return o.complete===!0?{header:i.header,payload:a,signature:i.signature}:a},ba}var wa,lf;function wh(){if(lf)return wa;lf=1;var e=Fl();return wa=function(n,o){var i=o||Math.floor(Date.now()/1e3);if(typeof n=="string"){var a=e(n);return typeof a>"u"?void 0:Math.floor(i+a/1e3)}else return typeof n=="number"?i+n:void 0},wa}var Gr={exports:{}},Ea,hf;function sn(){if(hf)return Ea;hf=1;const e="2.0.0",n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991;return Ea={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:o,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ea}var Sa,df;function un(){if(df)return Sa;df=1;var e={};return Sa=typeof Re=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...o)=>console.error("SEMVER",...o):()=>{},Sa}var pf;function or(){return pf||(pf=1,function(e,n){const{MAX_SAFE_COMPONENT_LENGTH:o}=sn(),i=un();n=e.exports={};const a=n.re=[],t=n.safeRe=[],r=n.src=[],s=n.t={};let d=0;const l=(u,f,h)=>{const w=f.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),m=d++;i(u,m,f),s[u]=m,r[m]=f,a[m]=new RegExp(f,h?"g":void 0),t[m]=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,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?(?:$|[^\\d])`),l("COERCERTL",r[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${r[s.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",l("TILDE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${r[s.LONECARET]}\\s+`,!0),n.caretTrimReplace="$1^",l("CARET",`^${r[s.LONECARET]}${r[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${r[s.LONECARET]}${r[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${r[s.GTLT]}\\s*(${r[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]}|${r[s.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${r[s.XRANGEPLAIN]})\\s+-\\s+(${r[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${r[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Gr,Gr.exports)),Gr.exports}var Ra,mf;function Vo(){if(mf)return Ra;mf=1;const e=Object.freeze({loose:!0}),n=Object.freeze({});return Ra=i=>i?typeof i!="object"?e:i:n,Ra}var Oa,gf;function Eh(){if(gf)return Oa;gf=1;const e=/^[0-9]+$/,n=(i,a)=>{const t=e.test(i),r=e.test(a);return t&&r&&(i=+i,a=+a),i===a?0:t&&!r?-1:r&&!t?1:i<a?-1:1};return Oa={compareIdentifiers:n,rcompareIdentifiers:(i,a)=>n(a,i)},Oa}var Ta,vf;function tt(){if(vf)return Ta;vf=1;const e=un(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=sn(),{safeRe:i,t:a}=or(),t=Vo(),{compareIdentifiers:r}=Eh();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[a.LOOSE]:i[a.FULL]);if(!f)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const w=+h;if(w>=0&&w<o)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 Ta=s,Ta}var xa,yf;function Vt(){if(yf)return xa;yf=1;const e=tt();return xa=(o,i,a=!1)=>{if(o instanceof e)return o;try{return new e(o,i)}catch(t){if(!a)return null;throw t}},xa}var Ca,_f;function cg(){if(_f)return Ca;_f=1;const e=Vt();return Ca=(o,i)=>{const a=e(o,i);return a?a.version:null},Ca}var Aa,bf;function fg(){if(bf)return Aa;bf=1;const e=Vt();return Aa=(o,i)=>{const a=e(o.trim().replace(/^[=v]+/,""),i);return a?a.version:null},Aa}var Ia,wf;function lg(){if(wf)return Ia;wf=1;const e=tt();return Ia=(o,i,a,t,r)=>{typeof a=="string"&&(r=t,t=a,a=void 0);try{return new e(o instanceof e?o.version:o,a).inc(i,t,r).version}catch{return null}},Ia}var Pa,Ef;function hg(){if(Ef)return Pa;Ef=1;const e=Vt();return Pa=(o,i)=>{const a=e(o,null,!0),t=e(i,null,!0),r=a.compare(t);if(r===0)return null;const s=r>0,d=s?a:t,l=s?t:a,u=!!d.prerelease.length;if(!!l.prerelease.length&&!u)return!l.patch&&!l.minor?"major":d.patch?"patch":d.minor?"minor":"major";const h=u?"pre":"";return a.major!==t.major?h+"major":a.minor!==t.minor?h+"minor":a.patch!==t.patch?h+"patch":"prerelease"},Pa}var ka,Sf;function dg(){if(Sf)return ka;Sf=1;const e=tt();return ka=(o,i)=>new e(o,i).major,ka}var ja,Rf;function pg(){if(Rf)return ja;Rf=1;const e=tt();return ja=(o,i)=>new e(o,i).minor,ja}var qa,Of;function mg(){if(Of)return qa;Of=1;const e=tt();return qa=(o,i)=>new e(o,i).patch,qa}var La,Tf;function gg(){if(Tf)return La;Tf=1;const e=Vt();return La=(o,i)=>{const a=e(o,i);return a&&a.prerelease.length?a.prerelease:null},La}var Na,xf;function dt(){if(xf)return Na;xf=1;const e=tt();return Na=(o,i,a)=>new e(o,a).compare(new e(i,a)),Na}var Da,Cf;function vg(){if(Cf)return Da;Cf=1;const e=dt();return Da=(o,i,a)=>e(i,o,a),Da}var $a,Af;function yg(){if(Af)return $a;Af=1;const e=dt();return $a=(o,i)=>e(o,i,!0),$a}var Ma,If;function Go(){if(If)return Ma;If=1;const e=tt();return Ma=(o,i,a)=>{const t=new e(o,a),r=new e(i,a);return t.compare(r)||t.compareBuild(r)},Ma}var Fa,Pf;function _g(){if(Pf)return Fa;Pf=1;const e=Go();return Fa=(o,i)=>o.sort((a,t)=>e(a,t,i)),Fa}var Ua,kf;function bg(){if(kf)return Ua;kf=1;const e=Go();return Ua=(o,i)=>o.sort((a,t)=>e(t,a,i)),Ua}var Ba,jf;function cn(){if(jf)return Ba;jf=1;const e=dt();return Ba=(o,i,a)=>e(o,i,a)>0,Ba}var Va,qf;function zo(){if(qf)return Va;qf=1;const e=dt();return Va=(o,i,a)=>e(o,i,a)<0,Va}var Ga,Lf;function Sh(){if(Lf)return Ga;Lf=1;const e=dt();return Ga=(o,i,a)=>e(o,i,a)===0,Ga}var za,Nf;function Rh(){if(Nf)return za;Nf=1;const e=dt();return za=(o,i,a)=>e(o,i,a)!==0,za}var Ha,Df;function Ho(){if(Df)return Ha;Df=1;const e=dt();return Ha=(o,i,a)=>e(o,i,a)>=0,Ha}var Za,$f;function Zo(){if($f)return Za;$f=1;const e=dt();return Za=(o,i,a)=>e(o,i,a)<=0,Za}var Wa,Mf;function Oh(){if(Mf)return Wa;Mf=1;const e=Sh(),n=Rh(),o=cn(),i=Ho(),a=zo(),t=Zo();return Wa=(s,d,l,u)=>{switch(d){case"===":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s===l;case"!==":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s!==l;case"":case"=":case"==":return e(s,l,u);case"!=":return n(s,l,u);case">":return o(s,l,u);case">=":return i(s,l,u);case"<":return a(s,l,u);case"<=":return t(s,l,u);default:throw new TypeError(`Invalid operator: ${d}`)}},Wa}var Ya,Ff;function wg(){if(Ff)return Ya;Ff=1;const e=tt(),n=Vt(),{safeRe:o,t:i}=or();return Ya=(t,r)=>{if(t instanceof e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;r=r||{};let s=null;if(!r.rtl)s=t.match(o[i.COERCE]);else{let d;for(;(d=o[i.COERCERTL].exec(t))&&(!s||s.index+s[0].length!==t.length);)(!s||d.index+d[0].length!==s.index+s[0].length)&&(s=d),o[i.COERCERTL].lastIndex=d.index+d[1].length+d[2].length;o[i.COERCERTL].lastIndex=-1}return s===null?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)},Ya}var Ka,Uf;function Eg(){return Uf||(Uf=1,Ka=function(e){e.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}),Ka}var Ja,Bf;function Sg(){if(Bf)return Ja;Bf=1,Ja=e,e.Node=a,e.create=e;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&typeof t.forEach=="function")t.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,d=arguments.length;s<d;s++)r.push(arguments[s]);return r}e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var r=t.next,s=t.prev;return r&&(r.prev=s),s&&(s.next=r),t===this.head&&(this.head=r),t===this.tail&&(this.tail=s),t.list.length--,t.next=null,t.prev=null,t.list=null,r},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var r=this.head;t.list=this,t.next=r,r&&(r.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var r=this.tail;t.list=this,t.prev=r,r&&(r.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++)o(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)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,d=0;s!==null;d++)t.call(r,s.value,d,this),s=s.next},e.prototype.forEachReverse=function(t,r){r=r||this;for(var s=this.tail,d=this.length-1;s!==null;d--)t.call(r,s.value,d,this),s=s.prev},e.prototype.get=function(t){for(var r=0,s=this.head;s!==null&&r<t;r++)s=s.next;if(r===t&&s!==null)return s.value},e.prototype.getReverse=function(t){for(var r=0,s=this.tail;s!==null&&r<t;r++)s=s.prev;if(r===t&&s!==null)return s.value},e.prototype.map=function(t,r){r=r||this;for(var s=new e,d=this.head;d!==null;)s.push(t.call(r,d.value,this)),d=d.next;return s},e.prototype.mapReverse=function(t,r){r=r||this;for(var s=new e,d=this.tail;d!==null;)s.push(t.call(r,d.value,this)),d=d.prev;return s},e.prototype.reduce=function(t,r){var s,d=this.head;if(arguments.length>1)s=r;else if(this.head)d=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;d!==null;l++)s=t(s,d.value,l),d=d.next;return s},e.prototype.reduceReverse=function(t,r){var s,d=this.tail;if(arguments.length>1)s=r;else if(this.tail)d=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;d!==null;l--)s=t(s,d.value,l),d=d.prev;return s},e.prototype.toArray=function(){for(var t=new Array(this.length),r=0,s=this.head;s!==null;r++)t[r]=s.value,s=s.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),r=0,s=this.tail;s!==null;r++)t[r]=s.value,s=s.prev;return t},e.prototype.slice=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(;l!==null&&d<r;d++,l=l.next)s.push(l.value);return s},e.prototype.sliceReverse=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=this.length,l=this.tail;l!==null&&d>r;d--)l=l.prev;for(;l!==null&&d>t;d--,l=l.prev)s.push(l.value);return s},e.prototype.splice=function(t,r,...s){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(var u=[],d=0;l&&d<r;d++)u.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var d=0;d<s.length;d++)l=n(this,l,s[d]);return u},e.prototype.reverse=function(){for(var t=this.head,r=this.tail,s=t;s!==null;s=s.prev){var d=s.prev;s.prev=s.next,s.next=d}return this.head=r,this.tail=t,this};function n(t,r,s){var d=r===t.head?new a(s,null,r,t):new a(s,r,r.next,t);return d.next===null&&(t.tail=d),d.prev===null&&(t.head=d),t.length++,d}function o(t,r){t.tail=new a(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function i(t,r){t.head=new a(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,r,s,d){if(!(this instanceof a))return new a(t,r,s,d);this.list=d,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Eg()(e)}catch{}return Ja}var Xa,Vf;function Rg(){if(Vf)return Xa;Vf=1;const e=Sg(),n=Symbol("max"),o=Symbol("length"),i=Symbol("lengthCalculator"),a=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),s=Symbol("noDisposeOnSet"),d=Symbol("lruList"),l=Symbol("cache"),u=Symbol("updateAgeOnGet"),f=()=>1;class h{constructor(v){if(typeof v=="number"&&(v={max:v}),v||(v={}),v.max&&(typeof v.max!="number"||v.max<0))throw new TypeError("max must be a non-negative number");this[n]=v.max||1/0;const E=v.length||f;if(this[i]=typeof E!="function"?f:E,this[a]=v.stale||!1,v.maxAge&&typeof v.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=v.maxAge||0,this[r]=v.dispose,this[s]=v.noDisposeOnSet||!1,this[u]=v.updateAgeOnGet||!1,this.reset()}set max(v){if(typeof v!="number"||v<0)throw new TypeError("max must be a non-negative number");this[n]=v||1/0,y(this)}get max(){return this[n]}set allowStale(v){this[a]=!!v}get allowStale(){return this[a]}set maxAge(v){if(typeof v!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=v,y(this)}get maxAge(){return this[t]}set lengthCalculator(v){typeof v!="function"&&(v=f),v!==this[i]&&(this[i]=v,this[o]=0,this[d].forEach(E=>{E.length=this[i](E.value,E.key),this[o]+=E.length})),y(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(v,E){E=E||this;for(let x=this[d].tail;x!==null;){const T=x.prev;_(this,v,x,E),x=T}}forEach(v,E){E=E||this;for(let x=this[d].head;x!==null;){const T=x.next;_(this,v,x,E),x=T}}keys(){return this[d].toArray().map(v=>v.key)}values(){return this[d].toArray().map(v=>v.value)}reset(){this[r]&&this[d]&&this[d].length&&this[d].forEach(v=>this[r](v.key,v.value)),this[l]=new Map,this[d]=new e,this[o]=0}dump(){return this[d].map(v=>m(this,v)?!1:{k:v.key,v:v.value,e:v.now+(v.maxAge||0)}).toArray().filter(v=>v)}dumpLru(){return this[d]}set(v,E,x){if(x=x||this[t],x&&typeof x!="number")throw new TypeError("maxAge must be a number");const T=x?Date.now():0,P=this[i](E,v);if(this[l].has(v)){if(P>this[n])return g(this,this[l].get(v)),!1;const K=this[l].get(v).value;return this[r]&&(this[s]||this[r](v,K.value)),K.now=T,K.maxAge=x,K.value=E,this[o]+=P-K.length,K.length=P,this.get(v),y(this),!0}const F=new c(v,E,P,T,x);return F.length>this[n]?(this[r]&&this[r](v,E),!1):(this[o]+=F.length,this[d].unshift(F),this[l].set(v,this[d].head),y(this),!0)}has(v){if(!this[l].has(v))return!1;const E=this[l].get(v).value;return!m(this,E)}get(v){return w(this,v,!0)}peek(v){return w(this,v,!1)}pop(){const v=this[d].tail;return v?(g(this,v),v.value):null}del(v){g(this,this[l].get(v))}load(v){this.reset();const E=Date.now();for(let x=v.length-1;x>=0;x--){const T=v[x],P=T.e||0;if(P===0)this.set(T.k,T.v);else{const F=P-E;F>0&&this.set(T.k,T.v,F)}}}prune(){this[l].forEach((v,E)=>w(this,E,!1))}}const w=(b,v,E)=>{const x=b[l].get(v);if(x){const T=x.value;if(m(b,T)){if(g(b,x),!b[a])return}else E&&(b[u]&&(x.value.now=Date.now()),b[d].unshiftNode(x));return T.value}},m=(b,v)=>{if(!v||!v.maxAge&&!b[t])return!1;const E=Date.now()-v.now;return v.maxAge?E>v.maxAge:b[t]&&E>b[t]},y=b=>{if(b[o]>b[n])for(let v=b[d].tail;b[o]>b[n]&&v!==null;){const E=v.prev;g(b,v),v=E}},g=(b,v)=>{if(v){const E=v.value;b[r]&&b[r](E.key,E.value),b[o]-=E.length,b[l].delete(E.key),b[d].removeNode(v)}};class c{constructor(v,E,x,T,P){this.key=v,this.value=E,this.length=x,this.now=T,this.maxAge=P||0}}const _=(b,v,E,x)=>{let T=E.value;m(b,T)&&(g(b,E),b[a]||(T=void 0)),T&&v.call(x,T.value,T.key,b)};return Xa=h,Xa}var Qa,Gf;function pt(){if(Gf)return Qa;Gf=1;class e{constructor(L,M){if(M=i(M),L instanceof e)return L.loose===!!M.loose&&L.includePrerelease===!!M.includePrerelease?L:new e(L.raw,M);if(L instanceof a)return this.raw=L.value,this.set=[[L]],this.format(),this;if(this.options=M,this.loose=!!M.loose,this.includePrerelease=!!M.includePrerelease,this.raw=L.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(Z=>this.parseRange(Z)).filter(Z=>Z.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const Z=this.set[0];if(this.set=this.set.filter(k=>!m(k[0])),this.set.length===0)this.set=[Z];else if(this.set.length>1){for(const k of this.set)if(k.length===1&&y(k[0])){this.set=[k];break}}}this.format()}format(){return this.range=this.set.map(L=>L.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(L){const Z=((this.options.includePrerelease&&h)|(this.options.loose&&w))+":"+L,k=o.get(Z);if(k)return k;const j=this.options.loose,q=j?s[d.HYPHENRANGELOOSE]:s[d.HYPHENRANGE];L=L.replace(q,K(this.options.includePrerelease)),t("hyphen replace",L),L=L.replace(s[d.COMPARATORTRIM],l),t("comparator trim",L),L=L.replace(s[d.TILDETRIM],u),L=L.replace(s[d.CARETTRIM],f);let N=L.split(" ").map(D=>c(D,this.options)).join(" ").split(/\s+/).map(D=>X(D,this.options));j&&(N=N.filter(D=>(t("loose invalid filter",D,this.options),!!D.match(s[d.COMPARATORLOOSE])))),t("range list",N);const V=new Map,G=N.map(D=>new a(D,this.options));for(const D of G){if(m(D))return[D];V.set(D.value,D)}V.size>1&&V.has("")&&V.delete("");const U=[...V.values()];return o.set(Z,U),U}intersects(L,M){if(!(L instanceof e))throw new TypeError("a Range is required");return this.set.some(Z=>g(Z,M)&&L.set.some(k=>g(k,M)&&Z.every(j=>k.every(q=>j.intersects(q,M)))))}test(L){if(!L)return!1;if(typeof L=="string")try{L=new r(L,this.options)}catch{return!1}for(let M=0;M<this.set.length;M++)if(S(this.set[M],L,this.options))return!0;return!1}}Qa=e;const n=Rg(),o=new n({max:1e3}),i=Vo(),a=fn(),t=un(),r=tt(),{safeRe:s,t:d,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:f}=or(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:w}=sn(),m=R=>R.value==="<0.0.0-0",y=R=>R.value==="",g=(R,L)=>{let M=!0;const Z=R.slice();let k=Z.pop();for(;M&&Z.length;)M=Z.every(j=>k.intersects(j,L)),k=Z.pop();return M},c=(R,L)=>(t("comp",R,L),R=E(R,L),t("caret",R),R=b(R,L),t("tildes",R),R=T(R,L),t("xrange",R),R=F(R,L),t("stars",R),R),_=R=>!R||R.toLowerCase()==="x"||R==="*",b=(R,L)=>R.trim().split(/\s+/).map(M=>v(M,L)).join(" "),v=(R,L)=>{const M=L.loose?s[d.TILDELOOSE]:s[d.TILDE];return R.replace(M,(Z,k,j,q,N)=>{t("tilde",R,Z,k,j,q,N);let V;return _(k)?V="":_(j)?V=`>=${k}.0.0 <${+k+1}.0.0-0`:_(q)?V=`>=${k}.${j}.0 <${k}.${+j+1}.0-0`:N?(t("replaceTilde pr",N),V=`>=${k}.${j}.${q}-${N} <${k}.${+j+1}.0-0`):V=`>=${k}.${j}.${q} <${k}.${+j+1}.0-0`,t("tilde return",V),V})},E=(R,L)=>R.trim().split(/\s+/).map(M=>x(M,L)).join(" "),x=(R,L)=>{t("caret",R,L);const M=L.loose?s[d.CARETLOOSE]:s[d.CARET],Z=L.includePrerelease?"-0":"";return R.replace(M,(k,j,q,N,V)=>{t("caret",R,k,j,q,N,V);let G;return _(j)?G="":_(q)?G=`>=${j}.0.0${Z} <${+j+1}.0.0-0`:_(N)?j==="0"?G=`>=${j}.${q}.0${Z} <${j}.${+q+1}.0-0`:G=`>=${j}.${q}.0${Z} <${+j+1}.0.0-0`:V?(t("replaceCaret pr",V),j==="0"?q==="0"?G=`>=${j}.${q}.${N}-${V} <${j}.${q}.${+N+1}-0`:G=`>=${j}.${q}.${N}-${V} <${j}.${+q+1}.0-0`:G=`>=${j}.${q}.${N}-${V} <${+j+1}.0.0-0`):(t("no pr"),j==="0"?q==="0"?G=`>=${j}.${q}.${N}${Z} <${j}.${q}.${+N+1}-0`:G=`>=${j}.${q}.${N}${Z} <${j}.${+q+1}.0-0`:G=`>=${j}.${q}.${N} <${+j+1}.0.0-0`),t("caret return",G),G})},T=(R,L)=>(t("replaceXRanges",R,L),R.split(/\s+/).map(M=>P(M,L)).join(" ")),P=(R,L)=>{R=R.trim();const M=L.loose?s[d.XRANGELOOSE]:s[d.XRANGE];return R.replace(M,(Z,k,j,q,N,V)=>{t("xRange",R,Z,k,j,q,N,V);const G=_(j),U=G||_(q),D=U||_(N),$=D;return k==="="&&$&&(k=""),V=L.includePrerelease?"-0":"",G?k===">"||k==="<"?Z="<0.0.0-0":Z="*":k&&$?(U&&(q=0),N=0,k===">"?(k=">=",U?(j=+j+1,q=0,N=0):(q=+q+1,N=0)):k==="<="&&(k="<",U?j=+j+1:q=+q+1),k==="<"&&(V="-0"),Z=`${k+j}.${q}.${N}${V}`):U?Z=`>=${j}.0.0${V} <${+j+1}.0.0-0`:D&&(Z=`>=${j}.${q}.0${V} <${j}.${+q+1}.0-0`),t("xRange return",Z),Z})},F=(R,L)=>(t("replaceStars",R,L),R.trim().replace(s[d.STAR],"")),X=(R,L)=>(t("replaceGTE0",R,L),R.trim().replace(s[L.includePrerelease?d.GTE0PRE:d.GTE0],"")),K=R=>(L,M,Z,k,j,q,N,V,G,U,D,$,B)=>(_(Z)?M="":_(k)?M=`>=${Z}.0.0${R?"-0":""}`:_(j)?M=`>=${Z}.${k}.0${R?"-0":""}`:q?M=`>=${M}`:M=`>=${M}${R?"-0":""}`,_(G)?V="":_(U)?V=`<${+G+1}.0.0-0`:_(D)?V=`<${G}.${+U+1}.0-0`:$?V=`<=${G}.${U}.${D}-${$}`:R?V=`<${G}.${U}.${+D+1}-0`:V=`<=${V}`,`${M} ${V}`.trim()),S=(R,L,M)=>{for(let Z=0;Z<R.length;Z++)if(!R[Z].test(L))return!1;if(L.prerelease.length&&!M.includePrerelease){for(let Z=0;Z<R.length;Z++)if(t(R[Z].semver),R[Z].semver!==a.ANY&&R[Z].semver.prerelease.length>0){const k=R[Z].semver;if(k.major===L.major&&k.minor===L.minor&&k.patch===L.patch)return!0}return!1}return!0};return Qa}var eo,zf;function fn(){if(zf)return eo;zf=1;const e=Symbol("SemVer ANY");class n{static get ANY(){return e}constructor(u,f){if(f=o(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[a.COMPARATORLOOSE]:i[a.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 d(u.value,f).test(this.value):u.operator===""?u.value===""?!0:new d(this.value,f).test(u.semver):(f=o(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(">")))}}eo=n;const o=Vo(),{safeRe:i,t:a}=or(),t=Oh(),r=un(),s=tt(),d=pt();return eo}var to,Hf;function ln(){if(Hf)return to;Hf=1;const e=pt();return to=(o,i,a)=>{try{i=new e(i,a)}catch{return!1}return i.test(o)},to}var ro,Zf;function Og(){if(Zf)return ro;Zf=1;const e=pt();return ro=(o,i)=>new e(o,i).set.map(a=>a.map(t=>t.value).join(" ").trim().split(" ")),ro}var no,Wf;function Tg(){if(Wf)return no;Wf=1;const e=tt(),n=pt();return no=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(l=>{d.test(l)&&(!r||s.compare(l)===-1)&&(r=l,s=new e(r,t))}),r},no}var io,Yf;function xg(){if(Yf)return io;Yf=1;const e=tt(),n=pt();return io=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(l=>{d.test(l)&&(!r||s.compare(l)===1)&&(r=l,s=new e(r,t))}),r},io}var ao,Kf;function Cg(){if(Kf)return ao;Kf=1;const e=tt(),n=pt(),o=cn();return ao=(a,t)=>{a=new n(a,t);let r=new e("0.0.0");if(a.test(r)||(r=new e("0.0.0-0"),a.test(r)))return r;r=null;for(let s=0;s<a.set.length;++s){const d=a.set[s];let l=null;d.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||o(f,l))&&(l=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),l&&(!r||o(r,l))&&(r=l)}return r&&a.test(r)?r:null},ao}var oo,Jf;function Ag(){if(Jf)return oo;Jf=1;const e=pt();return oo=(o,i)=>{try{return new e(o,i).range||"*"}catch{return null}},oo}var so,Xf;function Wo(){if(Xf)return so;Xf=1;const e=tt(),n=fn(),{ANY:o}=n,i=pt(),a=ln(),t=cn(),r=zo(),s=Zo(),d=Ho();return so=(u,f,h,w)=>{u=new e(u,w),f=new i(f,w);let m,y,g,c,_;switch(h){case">":m=t,y=s,g=r,c=">",_=">=";break;case"<":m=r,y=d,g=t,c="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(u,f,w))return!1;for(let b=0;b<f.set.length;++b){const v=f.set[b];let E=null,x=null;if(v.forEach(T=>{T.semver===o&&(T=new n(">=0.0.0")),E=E||T,x=x||T,m(T.semver,E.semver,w)?E=T:g(T.semver,x.semver,w)&&(x=T)}),E.operator===c||E.operator===_||(!x.operator||x.operator===c)&&y(u,x.semver))return!1;if(x.operator===_&&g(u,x.semver))return!1}return!0},so}var uo,Qf;function Ig(){if(Qf)return uo;Qf=1;const e=Wo();return uo=(o,i,a)=>e(o,i,">",a),uo}var co,el;function Pg(){if(el)return co;el=1;const e=Wo();return co=(o,i,a)=>e(o,i,"<",a),co}var fo,tl;function kg(){if(tl)return fo;tl=1;const e=pt();return fo=(o,i,a)=>(o=new e(o,a),i=new e(i,a),o.intersects(i,a)),fo}var lo,rl;function jg(){if(rl)return lo;rl=1;const e=ln(),n=dt();return lo=(o,i,a)=>{const t=[];let r=null,s=null;const d=o.sort((h,w)=>n(h,w,a));for(const h of d)e(h,i,a)?(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===d[0]?l.push("*"):w?h===d[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},lo}var ho,nl;function qg(){if(nl)return ho;nl=1;const e=pt(),n=fn(),{ANY:o}=n,i=ln(),a=dt(),t=(f,h,w={})=>{if(f===h)return!0;f=new e(f,w),h=new e(h,w);let m=!1;e:for(const y of f.set){for(const g of h.set){const c=d(y,g,w);if(m=m||c!==null,c)continue e}if(m)return!1}return!0},r=[new n(">=0.0.0-0")],s=[new n(">=0.0.0")],d=(f,h,w)=>{if(f===h)return!0;if(f.length===1&&f[0].semver===o){if(h.length===1&&h[0].semver===o)return!0;w.includePrerelease?f=r:f=s}if(h.length===1&&h[0].semver===o){if(w.includePrerelease)return!0;h=s}const m=new Set;let y,g;for(const P of f)P.operator===">"||P.operator===">="?y=l(y,P,w):P.operator==="<"||P.operator==="<="?g=u(g,P,w):m.add(P.semver);if(m.size>1)return null;let c;if(y&&g){if(c=a(y.semver,g.semver,w),c>0)return null;if(c===0&&(y.operator!==">="||g.operator!=="<="))return null}for(const P of m){if(y&&!i(P,String(y),w)||g&&!i(P,String(g),w))return null;for(const F of h)if(!i(P,String(F),w))return!1;return!0}let _,b,v,E,x=g&&!w.includePrerelease&&g.semver.prerelease.length?g.semver:!1,T=y&&!w.includePrerelease&&y.semver.prerelease.length?y.semver:!1;x&&x.prerelease.length===1&&g.operator==="<"&&x.prerelease[0]===0&&(x=!1);for(const P of h){if(E=E||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",y){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(_=l(y,P,w),_===P&&_!==y)return!1}else if(y.operator===">="&&!i(y.semver,String(P),w))return!1}if(g){if(x&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===x.major&&P.semver.minor===x.minor&&P.semver.patch===x.patch&&(x=!1),P.operator==="<"||P.operator==="<="){if(b=u(g,P,w),b===P&&b!==g)return!1}else if(g.operator==="<="&&!i(g.semver,String(P),w))return!1}if(!P.operator&&(g||y)&&c!==0)return!1}return!(y&&v&&!g&&c!==0||g&&E&&!y&&c!==0||T||x)},l=(f,h,w)=>{if(!f)return h;const m=a(f.semver,h.semver,w);return m>0?f:m<0||h.operator===">"&&f.operator===">="?h:f},u=(f,h,w)=>{if(!f)return h;const m=a(f.semver,h.semver,w);return m<0?f:m>0||h.operator==="<"&&f.operator==="<="?h:f};return ho=t,ho}var po,il;function Yo(){if(il)return po;il=1;const e=or(),n=sn(),o=tt(),i=Eh(),a=Vt(),t=cg(),r=fg(),s=lg(),d=hg(),l=dg(),u=pg(),f=mg(),h=gg(),w=dt(),m=vg(),y=yg(),g=Go(),c=_g(),_=bg(),b=cn(),v=zo(),E=Sh(),x=Rh(),T=Ho(),P=Zo(),F=Oh(),X=wg(),K=fn(),S=pt(),R=ln(),L=Og(),M=Tg(),Z=xg(),k=Cg(),j=Ag(),q=Wo(),N=Ig(),V=Pg(),G=kg(),U=jg(),D=qg();return po={parse:a,valid:t,clean:r,inc:s,diff:d,major:l,minor:u,patch:f,prerelease:h,compare:w,rcompare:m,compareLoose:y,compareBuild:g,sort:c,rsort:_,gt:b,lt:v,eq:E,neq:x,gte:T,lte:P,cmp:F,coerce:X,Comparator:K,Range:S,satisfies:R,toComparators:L,maxSatisfying:M,minSatisfying:Z,minVersion:k,validRange:j,outside:q,gtr:N,ltr:V,intersects:G,simplifyRange:U,subset:D,SemVer:o,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},po}var mo,al;function Lg(){return al||(al=1,mo=Yo().satisfies(Re.version,">=15.7.0")),mo}var go,ol;function Ng(){return ol||(ol=1,go=Yo().satisfies(Re.version,">=16.9.0")),go}var vo,sl;function Th(){if(sl)return vo;sl=1;const e=Lg(),n=Ng(),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return vo=function(a,t){if(!a||!t)return;const r=t.asymmetricKeyType;if(!r)return;const s=o[r];if(!s)throw new Error(`Unknown key type "${r}".`);if(!s.includes(a))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(e)switch(r){case"ec":const d=t.asymmetricKeyDetails.namedCurve,l=i[a];if(d!==l)throw new Error(`"alg" parameter "${a}" requires curve "${l}".`);break;case"rsa-pss":if(n){const u=parseInt(a.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" ${a}.`);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" ${a}.`)}break}},vo}var yo,ul;function xh(){if(ul)return yo;ul=1;var e=Yo();return yo=e.satisfies(Re.version,"^6.12.0 || >=8.0.0"),yo}var _o,cl;function Dg(){if(cl)return _o;cl=1;const e=on(),n=mh(),o=gh(),i=bh(),a=wh(),t=Th(),r=xh(),s=Bo(),{KeyObject:d,createSecretKey:l,createPublicKey:u}=Ut(),f=["RS256","RS384","RS512"],h=["ES256","ES384","ES512"],w=["RS256","RS384","RS512"],m=["HS256","HS384","HS512"];return r&&(f.splice(f.length,0,"PS256","PS384","PS512"),w.splice(w.length,0,"PS256","PS384","PS512")),_o=function(y,g,c,_){typeof c=="function"&&!_&&(_=c,c={}),c||(c={}),c=Object.assign({},c);let b;if(_?b=_:b=function(F,X){if(F)throw F;return X},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 v=c.clockTimestamp||Math.floor(Date.now()/1e3);if(!y)return b(new e("jwt must be provided"));if(typeof y!="string")return b(new e("jwt must be a string"));const E=y.split(".");if(E.length!==3)return b(new e("jwt malformed"));let x;try{x=i(y,{complete:!0})}catch(F){return b(F)}if(!x)return b(new e("invalid token"));const T=x.header;let P;if(typeof g=="function"){if(!_)return b(new e("verify must be called asynchronous if secret or public key is provided as a callback"));P=g}else P=function(F,X){return X(null,g)};return P(T,function(F,X){if(F)return b(new e("error in secret or public key callback: "+F.message));const K=E[2].trim()!=="";if(!K&&X)return b(new e("jwt signature is required"));if(K&&!X)return b(new e("secret or public key must be provided"));if(!K&&!c.algorithms)return b(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(X!=null&&!(X instanceof d))try{X=u(X)}catch{try{X=l(typeof X=="string"?Be.from(X):X)}catch{return b(new e("secretOrPublicKey is not valid key material"))}}if(c.algorithms||(X.type==="secret"?c.algorithms=m:["rsa","rsa-pss"].includes(X.asymmetricKeyType)?c.algorithms=w:X.asymmetricKeyType==="ec"?c.algorithms=h:c.algorithms=f),c.algorithms.indexOf(x.header.alg)===-1)return b(new e("invalid algorithm"));if(T.alg.startsWith("HS")&&X.type!=="secret")return b(new e(`secretOrPublicKey must be a symmetric key when using ${T.alg}`));if(/^(?:RS|PS|ES)/.test(T.alg)&&X.type!=="public")return b(new e(`secretOrPublicKey must be an asymmetric key when using ${T.alg}`));if(!c.allowInvalidAsymmetricKeyTypes)try{t(T.alg,X)}catch(L){return b(L)}let S;try{S=s.verify(y,x.header.alg,X)}catch(L){return b(L)}if(!S)return b(new e("invalid signature"));const R=x.payload;if(typeof R.nbf<"u"&&!c.ignoreNotBefore){if(typeof R.nbf!="number")return b(new e("invalid nbf value"));if(R.nbf>v+(c.clockTolerance||0))return b(new n("jwt not active",new Date(R.nbf*1e3)))}if(typeof R.exp<"u"&&!c.ignoreExpiration){if(typeof R.exp!="number")return b(new e("invalid exp value"));if(v>=R.exp+(c.clockTolerance||0))return b(new o("jwt expired",new Date(R.exp*1e3)))}if(c.audience){const L=Array.isArray(c.audience)?c.audience:[c.audience];if(!(Array.isArray(R.aud)?R.aud:[R.aud]).some(function(k){return L.some(function(j){return j instanceof RegExp?j.test(k):j===k})}))return b(new e("jwt audience invalid. expected: "+L.join(" or ")))}if(c.issuer&&(typeof c.issuer=="string"&&R.iss!==c.issuer||Array.isArray(c.issuer)&&c.issuer.indexOf(R.iss)===-1))return b(new e("jwt issuer invalid. expected: "+c.issuer));if(c.subject&&R.sub!==c.subject)return b(new e("jwt subject invalid. expected: "+c.subject));if(c.jwtid&&R.jti!==c.jwtid)return b(new e("jwt jwtid invalid. expected: "+c.jwtid));if(c.nonce&&R.nonce!==c.nonce)return b(new e("jwt nonce invalid. expected: "+c.nonce));if(c.maxAge){if(typeof R.iat!="number")return b(new e("iat required when maxAge is specified"));const L=a(c.maxAge,R.iat);if(typeof L>"u")return b(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(v>=L+(c.clockTolerance||0))return b(new o("maxAge exceeded",new Date(L*1e3)))}if(c.complete===!0){const L=x.signature;return b(null,{header:T,payload:R,signature:L})}return b(null,R)})},_o}var bo,fl;function $g(){if(fl)return bo;fl=1;const e=wh(),n=xh(),o=Th(),i=Bo(),{includes:a,isBoolean:t,isInteger:r,isNumber:s,isPlainObject:d,isString:l,once:u}=_d(),{KeyObject:f,createSecretKey:h,createPrivateKey:w}=Ut(),m=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];n&&m.splice(3,0,"PS256","PS384","PS512");const y={expiresIn:{isValid:function(x){return r(x)||l(x)&&x},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(x){return r(x)||l(x)&&x},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(x){return l(x)||Array.isArray(x)},message:'"audience" must be a string or array'},algorithm:{isValid:a.bind(null,m),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:l,message:'"encoding" must be a string'},issuer:{isValid:l,message:'"issuer" must be a string'},subject:{isValid:l,message:'"subject" must be a string'},jwtid:{isValid:l,message:'"jwtid" must be a string'},noTimestamp:{isValid:t,message:'"noTimestamp" must be a boolean'},keyid:{isValid:l,message:'"keyid" must be a string'},mutatePayload:{isValid:t,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:t,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:t,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={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(x,T,P,F){if(!d(P))throw new Error('Expected "'+F+'" to be a plain object.');Object.keys(P).forEach(function(X){const K=x[X];if(!K){if(!T)throw new Error('"'+X+'" is not allowed in "'+F+'"');return}if(!K.isValid(P[X]))throw new Error(K.message)})}function _(x){return c(y,!1,x,"options")}function b(x){return c(g,!0,x,"payload")}const v={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},E=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return bo=function(x,T,P,F){typeof P=="function"?(F=P,P={}):P=P||{};const X=typeof x=="object"&&!Be.isBuffer(x),K=Object.assign({alg:P.algorithm||"HS256",typ:X?"JWT":void 0,kid:P.keyid},P.header);function S(M){if(F)return F(M);throw M}if(!T&&P.algorithm!=="none")return S(new Error("secretOrPrivateKey must have a value"));if(T!=null&&!(T instanceof f))try{T=w(T)}catch{try{T=h(typeof T=="string"?Be.from(T):T)}catch{return S(new Error("secretOrPrivateKey is not valid key material"))}}if(K.alg.startsWith("HS")&&T.type!=="secret")return S(new Error(`secretOrPrivateKey must be a symmetric key when using ${K.alg}`));if(/^(?:RS|PS|ES)/.test(K.alg)){if(T.type!=="private")return S(new Error(`secretOrPrivateKey must be an asymmetric key when using ${K.alg}`));if(!P.allowInsecureKeySizes&&!K.alg.startsWith("ES")&&T.asymmetricKeyDetails!==void 0&&T.asymmetricKeyDetails.modulusLength<2048)return S(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${K.alg}`))}if(typeof x>"u")return S(new Error("payload is required"));if(X){try{b(x)}catch(M){return S(M)}P.mutatePayload||(x=Object.assign({},x))}else{const M=E.filter(function(Z){return typeof P[Z]<"u"});if(M.length>0)return S(new Error("invalid "+M.join(",")+" option for "+typeof x+" payload"))}if(typeof x.exp<"u"&&typeof P.expiresIn<"u")return S(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof x.nbf<"u"&&typeof P.notBefore<"u")return S(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{_(P)}catch(M){return S(M)}if(!P.allowInvalidAsymmetricKeyTypes)try{o(K.alg,T)}catch(M){return S(M)}const R=x.iat||Math.floor(Date.now()/1e3);if(P.noTimestamp?delete x.iat:X&&(x.iat=R),typeof P.notBefore<"u"){try{x.nbf=e(P.notBefore,R)}catch(M){return S(M)}if(typeof x.nbf>"u")return S(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof P.expiresIn<"u"&&typeof x=="object"){try{x.exp=e(P.expiresIn,R)}catch(M){return S(M)}if(typeof x.exp>"u")return S(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(v).forEach(function(M){const Z=v[M];if(typeof P[M]<"u"){if(typeof x[Z]<"u")return S(new Error('Bad "options.'+M+'" option. The payload already has an "'+Z+'" property.'));x[Z]=P[M]}});const L=P.encoding||"utf8";if(typeof F=="function")F=F&&u(F),i.createSign({header:K,privateKey:T,payload:x,encoding:L}).once("error",F).once("done",function(M){if(!P.allowInsecureKeySizes&&/^(?:RS|PS)/.test(K.alg)&&M.length<256)return F(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${K.alg}`));F(null,M)});else{let M=i.sign({header:K,payload:x,secret:T,encoding:L});if(!P.allowInsecureKeySizes&&/^(?:RS|PS)/.test(K.alg)&&M.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${K.alg}`);return M}},bo}var ll;function Mg(){return ll||(ll=1,function(e){e.exports={verify:Dg(),sign:$g(),JsonWebTokenError:on(),NotBeforeError:mh(),TokenExpiredError:gh()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:bh()})}(ua)),ua.exports}var wo,hl;function Fg(){if(hl)return wo;hl=1;function e(n){this.token=n.token||"",this.response=n.response||"",this.body=n.responseText||"",this.json=null,this.intuit_tid=n.intuit_tid||""}return e.prototype.processResponse=function(o){this.response=o||"",this.body=o&&o.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=o&&o.headers&&o.headers.intuit_tid||""},e.prototype.getToken=function(){return this.token.getToken()},e.prototype.text=function(){return this.body},e.prototype.status=function(){return this.response.status},e.prototype.headers=function(){return this.response.headers},e.prototype.valid=function(){return this.response&&Number(this.response.status)>=200&&Number(this.response.status)<300},e.prototype.getJson=function(){if(!this.isJson())throw new Error("AuthResponse is not JSON");return this.json||(this.json=this.body?JSON.parse(this.body):null),this.json},e.prototype.get_intuit_tid=function(){return this.intuit_tid},e.prototype.isContentType=function(o){return this.getContentType().indexOf(o)>-1},e.prototype.getContentType=function(){return this.response.get(e._contentType)||""},e.prototype.isJson=function(){return this.isContentType("application/json")},e._contentType="Content-Type",e._jsonContentType="application/json",e._urlencodedContentType="application/x-www-form-urlencoded",wo=e,wo}const Ug="0.0.4",Bg={version:Ug};var Eo,dl;function Vg(){if(dl)return Eo;dl=1;function e(n){n=n||{},this.realmId=n.realmId||"",this.token_type=n.token_type||"",this.access_token=n.access_token||"",this.refresh_token=n.refresh_token||"",this.expires_in=n.expires_in||0,this.x_refresh_token_expires_in=n.x_refresh_token_expires_in||0,this.id_token=n.id_token||"",this.latency=n.latency||60*1e3,this.createdAt=n.createdAt||Date.now()}return e.prototype.accessToken=function(){return this.getToken().access_token},e.prototype.refreshToken=function(){return this.getToken().refresh_token},e.prototype.tokenType=function(){return this.getToken().token_type},e.prototype.getToken=function(){return{token_type:this.token_type,access_token:this.access_token,expires_in:this.expires_in,refresh_token:this.refresh_token,x_refresh_token_expires_in:this.x_refresh_token_expires_in,realmId:this.realmId,id_token:this.id_token,createdAt:this.createdAt}},e.prototype.setToken=function(o){return this.access_token=o.access_token,this.refresh_token=o.refresh_token,this.token_type=o.token_type,this.expires_in=o.expires_in,this.x_refresh_token_expires_in=o.x_refresh_token_expires_in,this.id_token=o.id_token||"",this.createdAt=o.createdAt||Date.now(),this},e.prototype.clearToken=function(){return this.access_token="",this.refresh_token="",this.token_type="",this.expires_in=0,this.x_refresh_token_expires_in=0,this.id_token="",this.createdAt=0,this},e.prototype._checkExpiry=function(o){return this.createdAt+o*1e3-this.latency>Date.now()},e.prototype.isAccessTokenValid=function(){return this._checkExpiry(this.expires_in)},e.prototype.isRefreshTokenValid=function(){return this._checkExpiry(this.x_refresh_token_expires_in)},Eo=e,Eo}var So,pl;function Gg(){if(pl)return So;pl=1,So=e;function e(a,t){var r=Be.from(a,"base64"),s=Be.from(t,"base64"),d=r.toString("hex"),l=s.toString("hex");d=n(d),l=n(l);var u=d.length/2,f=l.length/2,h=i(u),w=i(f),m="30"+i(u+f+h.length/2+w.length/2+2)+"02"+h+d+"02"+w+l,y=Be.from(m,"hex").toString("base64"),g=`-----BEGIN RSA PUBLIC KEY-----
|
|
143
|
+
`+y.match(/.{1,64}/g).join(`
|
|
144
|
+
`)+`
|
|
145
|
+
-----END RSA PUBLIC KEY-----
|
|
146
|
+
`;return g}function n(a){var t=a[0];return t<"0"||t>"7"?"00"+a:a}function o(a){var t=a.toString(16);return t.length%2?"0"+t:t}function i(a){if(a<=127)return o(a);var t=o(a),r=128+t.length/2;return o(r)+t}return So}var Ro,ml;function zg(){if(ml)return Ro;ml=1;const e=ep(),n=mp(),o=bp(),i=Op(),a=jt(),t=ng(),r=Xl(),s=Do(),d=Mg(),l=Fg(),u=Bg,f=Vg();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 m="./logs";s.existsSync(m)||s.mkdirSync(m),this.logger=t.createLogger({level:"info",format:t.format.combine(t.format.timestamp(),t.format.printf(y=>`${y.timestamp} ${y.level}: ${y.message}`)),transports:[new t.transports.File({filename:r.join(m,"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}_${a.type()}_${a.release()}_${a.platform()}`,h.prototype.setAuthorizeURLs=function(m){if(!m)throw new Error("Provide the custom authorize URL's");return h.authorizeEndpoint=m.authorizeEndpoint,h.tokenEndpoint=m.tokenEndpoint,h.revokeEndpoint=m.revokeEndpoint,this.environment==="sandbox"?h.userinfo_endpoint_sandbox=m.userInfoEndpoint:h.userinfo_endpoint_production=m.userInfoEndpoint,this},h.prototype.authorizeUri=function(m){if(m=m||{},!m.scope)throw new Error("Provide the scopes");const y=`${h.authorizeEndpoint}?${o.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(m.scope)?m.scope.join(" "):m.scope,state:m.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",y),y},h.prototype.createToken=function(m){return new Promise(y=>{if(!m)throw new Error("Provide the Uri");const g=o.parse(m.split("?").reverse()[0]);this.getToken().realmId=g.realmId?g.realmId:"","state"in g&&(this.getToken().state=g.state);const c={};g.code&&(c.grant_type="authorization_code",c.code=g.code,c.redirect_uri=g.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}};y(this.getTokenRequest(_))}).then(y=>{const g=y.json?y:null,c=g&&g.getJson()||y;return this.token.setToken(c),this.log("info","Create Token response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(y,null,2)),y})},h.prototype.refresh=function(){return new Promise(m=>{this.validateToken();const y={};y.grant_type="refresh_token",y.refresh_token=this.getToken().refresh_token;const g={url:h.tokenEndpoint,body:y,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":h.user_agent}};m(this.getTokenRequest(g))}).then(m=>{const y=m.json?m:null,g=y&&y.getJson()||m;return this.token.setToken(g),this.log("info","Refresh Token () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(m,null,2)),m})},h.prototype.refreshUsingToken=function(m){return new Promise(y=>{if(!m)throw new Error("The Refresh token is missing");const g={};g.grant_type="refresh_token",g.refresh_token=m;const c={url:h.tokenEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":h.user_agent}};y(this.getTokenRequest(c))}).then(y=>{const g=y.json?y:null,c=g&&g.getJson()||y;return this.token.setToken(c),this.log("info","Refresh usingToken () response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(y,null,2)),y})},h.prototype.revoke=function(m){return new Promise(y=>{m=m||{};const g={};g.token=m.access_token||m.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const c={url:h.revokeEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:l._jsonContentType,"Content-Type":l._jsonContentType,"User-Agent":h.user_agent}};y(this.getTokenRequest(c))}).then(y=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(y,null,2)),y})},h.prototype.getUserInfo=function(){return new Promise(m=>{const y={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}};m(this.getTokenRequest(y))}).then(m=>{const y=m.json?m:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(m,null,2)),m})},h.prototype.makeApiCall=function(m){return new Promise(y=>{m=m||{};const g=m.transport?m.transport:i.createTransport({type:"text"}),c=m.headers&&typeof m.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":h.user_agent},m.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":h.user_agent}),_={url:m.url,method:m.method||"GET",headers:c,transport:g};m.body&&(_.body=m.body),y(this.getTokenRequest(_))}).then(y=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(y,null,2)),y})},h.prototype.validateIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,c=g.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 v={url:h.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":h.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),!!y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},h.prototype.getValidatedIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,c=g.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 v={url:h.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":h.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},h.prototype.getIdTokenComponents=async function(w={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const y=(this.getToken().id_token||w.id_token).split("."),g=JSON.parse(e(y[0])),c=JSON.parse(e(y[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:g,id_token_payload:c}},h.prototype.getKeyFromJWKsURI=function(m,y,g){return new Promise(c=>{c(this.loadResponse(g))}).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===y),v=this.getPublicKey(b.n,b.e);return d.verify(m,v)}).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(m,y){return Gg()(m,y)},h.prototype.getTokenRequest=function(m){const y=new l({token:this.token});return new Promise(g=>{g(this.loadResponse(m))}).then(g=>{if(y.processResponse(g),!y.valid())throw new Error("Response has an Error");return y}).catch(g=>{throw g.authResponse||(g=this.createError(g,y)),g})},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(m){return i.get(m).then(y=>y)},h.prototype.loadResponseFromJWKsURI=function(m){return i.get(m).then(y=>y)},h.prototype.createError=function(m,y){return!y||y.body===""?(m.error=y&&y.response.statusText||m.message||"",m.authResponse=y||"",m.intuit_tid=y&&y.headers()&&y.headers().intuit_tid||"",m.originalMessage=m.message||"",m.error_description=y&&y.response.statusText||"",m):(m.authResponse=y,m.originalMessage=m.message,m.error="","error"in y.getJson()?m.error=y.getJson().error:y.response.statusText?m.error=y.response.statusText:m.message&&(m.error=m.message),m.error_description="","error_description"in y.getJson()?m.error_description=y.getJson().error_description:y.response.statusText&&(m.error_description=y.response.statusText),m.intuit_tid=y.headers().intuit_tid,m)},h.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},h.prototype.getToken=function(){return this.token},h.prototype.setToken=function(m){return this.token=new f(m),this.token},h.prototype.authHeader=function(){const m=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(m):Be.from(m).toString("base64")},h.prototype.log=function(m,y,g){this.logging&&this.logger.log(m,y+g)},Ro=h,Ro}var Hg=zg();const vt=rd(Hg),zr=(()=>{let e,n,o="";return{initiatedCompanyID:o,init:(t,r)=>{n=new vt({clientId:Xr.quickbooksKey,clientSecret:"",environment:El,redirectUri:window.location.origin+t}),e=n.authorizeUri({state:r,scope:[vt.scopes.Accounting,vt.scopes.OpenId,vt.scopes.Email,vt.scopes.Profile]}),o=r},handleClick:()=>{window.open(e,"_self","noopener")}}})();function Ko(e){const o=H.toZeniUrl(e,!0).query,i=o.code,a=o.realmId,t=o.state,r=i!=null?decodeURIComponent(i):"",s=a!=null?decodeURIComponent(a):"",d=t!=null?decodeURIComponent(t):"";return{code:r,realmId:s,state:d}}const Zg=(e,n,o,i,a)=>e!==""&&n!==""&&o!==""&&i!==null&&i!==""&&a!==null&&a!=="",Wg=({code:e,realmId:n,state:o,connectionId:i,signedInuserId:a,tenantId:t,companyId:r,onboardingViewFetchState:s,saveConnectionFetchState:d})=>Zg(e,n,o,i,a)===!0&&d!=="In-Progress"&&s==="Completed"&&t!=null&&r!=null,Yg=()=>{const e=Po(),{code:n,realmId:o,state:i}=Ko(e.search),a=Qe.getSignedInUser()?.userId??"",t=i==="create-qbo-subscription";if(Kg(n,o,i,a))if(t){const r=`/onboarding/${i}?code=${n}&realmId=${o}&state=${i}`;return Y.jsx(Jt,{to:r})}else{const r=`/onboarding/edit/${i}?code=${n}&realmId=${o}&state=auth_flow`;return Y.jsx(Jt,{to:r})}return Y.jsx(Jt,{to:"../../"})},Kg=(e,n,o,i)=>e!==""&&n!==""&&o!==""&&i!==null&&i!=="",Jg=it.div`
|
|
147
|
+
display: flex;
|
|
148
|
+
height: 100vh;
|
|
149
|
+
width: 100%;
|
|
150
|
+
flex: 1 1 auto;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
align-items: center;
|
|
153
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
154
|
+
box-shadow: ${e=>`0px 2px 4px ${e.theme.colors.dropShadowNormal}`};
|
|
155
|
+
`;function Xg(e,n){const{address:o,showNavbarWithClose:i,sectionStyles:a,navbarStyles:t}=n;return{showNavbarWithClose:i,addressToEdit:o?.addressToCreate,loadingState:o?.status.fetchState,googleAPIKey:Xr.googleMapsAPIKey,sectionStyles:a,navbarStyles:t}}function Qg(e,n){return{onSubmitHandler:o=>{const i=rv(o);e(H.newAddressInLocalStore({addressType:"company_address",addressToCreate:i})),n.closeDrawerHandler?.()},onCancel:()=>{n.closeDrawerHandler?.()}}}const ev=We(Xg,Qg)($h);function tv({closeDrawerHandler:e}){const n=$t(),o=Ye(),i=Po(),{addressType:a}=ht(),t=Jr(),r=Qe.getSignedInUser(),s=Ce(l=>H.getNewAddress("company_address",l));if(r==null)throw Error("Can't access address page without signing in...");const d=l=>l.trackPageLoaded(s?.newAddressId!=null?Co.Event.editAddress:Co.Event.addAddress);return a!=null&&!a.match(/(company_address)$/g)?Y.jsx(jo,{}):Y.jsxs(Y.Fragment,{children:[Y.jsx(Sl,{analytics:Ze,onLoad:d}),Y.jsx(Jg,{windowSize:t,children:Y.jsx(ev,{location:i,navigate:o,address:s,closeDrawerHandler:e,showNavbarWithClose:!0,navbarStyles:{backgroundColor:n.colors.grey5},sectionStyles:{backgroundColor:n.colors.grey5}})})]})}const rv=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}),nv={drawerLeftMargin:new lt(0,0,240)},iv=({isAddressDrawerOpen:e,closeDrawerHandler:n})=>{const o=$t(),i=Jr(),a=nv.drawerLeftMargin.valuePx(i),t=()=>{n?.()};return Y.jsx(en,{anchor:"right",open:e,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.8,cursor:"pointer"}}},onClick:()=>t(),children:Y.jsx(av,{onClick:r=>r.stopPropagation(),children:Y.jsx(tv,{closeDrawerHandler:n})})})},av=it(Ft)`
|
|
156
|
+
display: flex;
|
|
157
|
+
min-height: 100%;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
`,ov=it.div`
|
|
160
|
+
display: flex;
|
|
161
|
+
width: 100%;
|
|
162
|
+
height: calc(100vh - 110px);
|
|
163
|
+
flex-direction: row;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
align-items: center;
|
|
166
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
167
|
+
`,sv=({companyId:e,isOnboardingCustomerDrawerOpen:n,closeDrawerHandler:o})=>{const i=Ye(),a=$t(),t=et(),[r,s]=we.useState(!1),[d,l]=we.useState(!1),[u,f]=we.useState(!1),[h,w]=we.useState(!1),m=tr.getLocalizedStrings(),{code:y,realmId:g,state:c}=Ko(location.search),_={onOkClick:()=>{s(!1),q()},onCancelClick:()=>{s(!1)}},b=Ce($=>H.getNewOnboardingCustomerView($)),{newOnboardedCustomerId:v}=b,E=b.companyView?.company.companyInfo.tenantId,x=b.newOnboardingCustomerLocalData.selectedProducts??[],T=x.includes("zeni_checking")&&!x.includes("bookkeeping"),P=Ce($=>H.getOnboardingCockpitView($)),F=Ce($=>H.getFileListWithStatus($)),X=Ce($=>$.userState),K=b.companyView?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,S=b.externalConnections?.accounting[0],R=S?.connectionType,L=S?.connectionName,M=S?.connectionId??"",Z=b.customerLocalStoreInitState!=="Completed"||b.onboardingCompletedCompanies.fetchState!=="Completed"||F.fetchState==="In-Progress",k=Qe.getSignedInUser();if(k==null)throw Error("Can't access onboarding customer page without signing in...");const j=we.useCallback(()=>{w(!0),t(H.saveOnboardingCustomerViewUpdates(!1,!0))},[]),q=()=>{t(H.updateOnboardingCustomerListUIState({selectedStep:""})),t(H.clearOnboardingCustomerViewUpdateData()),o()},N=$=>{t(H.saveOnboardingCustomerViewUpdates($)),t(H.updateOnboardingCustomerListUIState({selectedStep:""}))},V=$=>{$!=null&&i($==="management"?"../../management":"../")},G=$=>{t(H.getOnboardingEmailGroup($))},U=$=>{const B=uv($,b);t(H.saveOnboardingCustomerDataInLocalStore(B)),l(!0)},D=()=>{document.cookie="pre_board_questionnaire_id= ;path=/;",window.open("/pre-onboard")};return we.useEffect(()=>{P.fetchState==="Completed"&&t(H.initializeOnboardingCustomerViewUpdateData(e))},[e,P.fetchState,X.userByUserId]),we.useEffect(()=>{E!=null&&K!==!0&&!T&&t(H.fetchExternalConnectionsForTenant(k.userId,E))},[E,K]),we.useEffect(()=>{e!=null&&zr.initiatedCompanyID!==e&&K!==!0&&zr.init("/cockpit/onboarding/auth",e)},[e]),we.useEffect(()=>{b.sendInviteFetchState.fetchState==="Completed"&&(t(H.clearOnboardingCustomerViewUpdateData()),o())},[b.sendInviteFetchState.fetchState]),we.useEffect(()=>{b.customerLocalStoreInitState==="Error"&&i("../../onboarding")},[b.customerLocalStoreInitState]),we.useEffect(()=>{Wg({code:y,realmId:g,state:c,connectionId:M,signedInuserId:k.userId,tenantId:E,companyId:e,onboardingViewFetchState:P.fetchState,saveConnectionFetchState:b.externalConnections?.saveConnectionState})&&E!=null&&(t(H.saveExternalConnectionForTenant(E,{connection_type:R??"accounting",connection_name:L??"quickbooks_online",authorization_code:y,realm_id:g,connection_id:M,user_id:k.userId},H.toZeniUrl(window.location.origin+"/cockpit/onboarding/auth"),e,k.userId)),i(`/onboarding/edit/${e}`))},[R,L,y,g,c,M,k.userId,b.externalConnections?.saveConnectionState,location.pathname,P.fetchState,E,e]),we.useEffect(()=>{b.fetchState==="Completed"&&(h===!0?e==null&&v!=null?i(`../../onboarding/edit/${v}`):e!=null&&v==null&&zr.handleClick():(t(H.clearOnboardingCustomerViewUpdateData()),o()))},[b.fetchState,e,h]),we.useEffect(()=>{b.externalConnections?.fetchState==="Completed"&&h===!0&&v!=null&&zr.handleClick()},[b.externalConnections?.fetchState,h,v]),Y.jsx(en,{anchor:"right",open:n,PaperProps:{style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:()=>{d===!0?s(!0):q()},children:Y.jsxs(cv,{children:[r===!0?Y.jsx(Mh,{titleComponent:Y.jsx(fv,{children:m.cockpit.onboarding.discardTitle}),descriptionComponent:Y.jsx(lv,{children:m.cockpit.onboarding.discardDescription}),primaryButtonText:m.cockpit.onboarding.delete,secondaryButtonText:m.cockpit.onboarding.cancel,action:_}):null,Z?Y.jsx(ov,{children:Y.jsx(Qr,{size:"Large",start:!0})}):Y.jsxs(Y.Fragment,{children:[Y.jsx(Fh,{localData:b,analytics:Ze,onCloseClick:q,onCompanyDomainBlurred:G,onSaveClick:N,onViewClick:V,onOnboardingCustomerDataUpdated:U,onNavigateToPreOnboarding:D,screenType:e!=null?"edit":"create",onQBOConnectClick:j,qboConnectClicked:h}),u===!0?Y.jsx(iv,{isAddressDrawerOpen:u,closeDrawerHandler:()=>{f(!1)}}):null]})]})})},uv=(e,n)=>{const o={},{companySection:i,customerSection:a,groupSection:t,qboConnectionSection:r}=e,{newOnboardingCustomerLocalData:s}=n;return s.companyId==null&&(o.companyEmailDomain=i.companyDomain),s.isEmailGroupCreated!==!0&&(o.groupId=t.groupEmail,o.groupName=t.groupName,o.groupDescription=t.groupDescription),o.email=a.email,o.customerName={firstName:a.customerName.firstName,lastName:a.customerName.lastName},o.name=a.name,o.chargebeeId=a.chargebeeId,o.qboRealmId=a.realmId,o.hubSpotId=a.hubSpotId,o.selectedProducts=a.products.selectedOptions.map(d=>H.toProductTypeStrict(d)).filter(d=>d!=null),a.entityType.selectedOption!=null?a.entityType.selectedOption?.value==="Subsidiary"?(o.isSubsidiary=!0,a.company.selectedOption!=null&&(o.parentCompanyId=a.company.selectedOption.value)):o.isSubsidiary=!1:o.isSubsidiary=void 0,r.accountingConnectionCreationMode!=null&&(o.accountingConnectionCreationMode=r.accountingConnectionCreationMode),o},cv=it(Ft)`
|
|
168
|
+
display: flex;
|
|
169
|
+
min-height: 100%;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
`,fv=it(Rl.H6Regular)`
|
|
172
|
+
margin-top: ${It.sp7};
|
|
173
|
+
padding-left: ${It.sp8};
|
|
174
|
+
padding-right: ${It.sp8};
|
|
175
|
+
color: ${e=>e.theme.colors.primary};
|
|
176
|
+
word-break: break-word;
|
|
177
|
+
`,lv=it(Rl.StandardRegularSp)`
|
|
178
|
+
color: ${e=>e.theme.colors.hero};
|
|
179
|
+
padding-left: ${It.sp8};
|
|
180
|
+
padding-right: ${It.sp8};
|
|
181
|
+
margin-bottom: 30px;
|
|
182
|
+
margin-top: ${It.sp4};
|
|
183
|
+
white-space: pre-line;
|
|
184
|
+
`,gl=(()=>{let e="",n;return{init:(a,t="create-qbo-subscription")=>{n=new vt({clientId:Xr.quickbooksKey,clientSecret:"",environment:El,redirectUri:`${window.location.origin}${a}`}),e=n.authorizeUri({state:t,scope:[vt.scopes.Accounting,vt.scopes.OpenId,vt.scopes.Email,vt.scopes.Profile]})},handleClick:()=>{window.open(e,"_self","noopener")}}})(),hv=(e,n,o,i)=>e!==""&&n!==""&&o!==""&&i!=null&&i!=="",dv=({code:e,realmId:n,state:o,signedInuserId:i})=>hv(e,n,o,i)===!0;function pv(e,n){return{headerActions:{onTabChange:o=>{const i=kt(o),a=Mt(o);Ze.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(H.updateOnboardingCustomerListUIState({filterText:i}))}}},onboardingPageActions:{onOnboardingStepClicked:(o,i)=>{e(H.updateOnboardingCustomerListUIState({selectedStep:i})),n.navigate(`../edit/${o}`)},onCancelClicked:()=>{e(H.updateOnboardingCustomerListUIState({showGoLivePopUp:!1}))},onGoLiveClicked:o=>{e(H.saveOnboardingCustomerCompletedStatus(o.companyId,o))},onUpdateCustomerCreationStatus:()=>{e(H.updateCustomerCreationStatus())},onSendInviteClick:o=>{e(H.sendOnboardingCustomerViewInvite(o))},onColumnSortConfigChanged:(o,i)=>{e(H.updateOnboardingCustomerListUIState({sortKey:o,sortOrder:i}))},redirectToDashboardOnboarding:o=>{window.open(`/${o}/onboarding`)},onRetryBankAccountConnection:o=>{e(H.retryBankAccountConnectionForOnboarding({companyId:o}))},onFilterTextChanged:(o,i)=>{e(H.updateOnboardingCustomerListUIState({filterText:i}))},onCockpitReloadData:o=>{o==="onboarding"&&(e(H.fetchCompanyOnboardingView()),e(H.fetchQBOConnectionPool()))},onQBOConnectClick:()=>{gl.init("/cockpit/onboarding/auth","create-qbo-subscription"),gl.handleClick()},onScroll:o=>{}}}}function mv(e,n){return{headerData:{selectedTabOption:Ot("onboarding")},onboardingPageData:{onboardingView:n.onboardingView,loggedInUser:n.signedInUser,qboConnectionPoolFlag:n.qboConnectionPoolFlag}}}const gv=We(mv,pv)(Uh);function Hr({isOnboardingCustomerDrawerOpen:e}){const n=Ye(),o=et(),{onboardingCustomerCompanyId:i}=ht(),[a,t]=we.useState(!1),{useDynamicConfig:r}=Dt(),{configValue:s}=r(Pt.qboConnectionPoolEnablement),{code:d,realmId:l,state:u}=Ko(location.search),f=Ce(y=>H.getOnboardingCockpitView(y)),h=Qe.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=Ce(y=>y.companyViewState.zeniUsers.fetchState);we.useEffect(()=>{f.fetchState==="Completed"?o(H.fetchAllCockpitViews(!1)):(f.fetchState==="Not-Started"||f.fetchState==="Error")&&(o(H.fetchCompanyOnboardingView()),(w==="Not-Started"||w==="Error")&&o(H.fetchZeniUsers()),f.qboConnectionPool.fetchState==="Not-Started"&&o(H.fetchQBOConnectionPool()))},[f.fetchState]),we.useEffect(()=>{f.updateStatus.fetchState==="Completed"&&(o(H.fetchCompanyManagementView(!0)),o(H.fetchCompanyPortfolioView(!0)),o(H.fetchSubscriptionList(!0)),o(H.fetchOnboardingCompletedCompanies()),f.uiState.showGoLivePopUp&&o(H.updateOnboardingCustomerListUIState({showGoLivePopUp:!1})),setTimeout(()=>{o(H.updateStatusAfterOnboardingCompleted())},5e3))},[f.updateStatus.fetchState]),we.useEffect(()=>{dv({code:d,realmId:l,state:u,signedInuserId:h.userId})&&u==="create-qbo-subscription"&&(o(H.updateQBOConnectionPoolExternalConnection({connection_type:"accounting",connection_name:"quickbooks_online",connection_id:"",authorization_code:d,realm_id:l,user_id:h.userId},H.toZeniUrl(window.location.origin+"/cockpit/onboarding/auth"),h.userId)),n("/onboarding"))},[d,l,u,h.userId,location.pathname]);const m=()=>{t(!1),o(H.resetNewOnboardedCustomerId()),n("../")};return Y.jsxs(Y.Fragment,{children:[a===!0?Y.jsx(sv,{isOnboardingCustomerDrawerOpen:a,closeDrawerHandler:m,companyId:i}):null,Y.jsx(gv,{onboardingView:f,qboConnectionPoolFlag:Array.isArray(s.userEmailAccessForQBOConnectionPool)&&s.userEmailAccessForQBOConnectionPool.includes(h.userEmail),navigate:n,signedInUser:h})]})}function vv(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/",element:Y.jsx(De,{element:Y.jsx(Hr,{})})}),Y.jsx(je,{path:"/new",element:Y.jsx(De,{element:Y.jsx(Hr,{isOnboardingCustomerDrawerOpen:!0})})}),Y.jsx(je,{path:"/edit/:onboardingCustomerCompanyId",element:Y.jsx(De,{element:Y.jsx(Hr,{isOnboardingCustomerDrawerOpen:!0})})}),Y.jsx(je,{path:"/auth",element:Y.jsx(De,{element:Y.jsx(Yg,{})})}),Y.jsx(je,{path:"/*",element:Y.jsx(De,{element:Y.jsx(Hr,{})})})]})}function yv(e,n){return{headerActions:{onTabChange:o=>{const i=kt(o),a=Mt(o);Ze.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(H.updateCompanyPortfolioUIState({filterText:i}))},onFiltersChange:(o,i)=>{e(H.updateCompanyPortfolioUIState({filters:i}))}}},portfolioPageActions:{onColumnSortConfigChanged:(o,i)=>{e(H.updateCompanyPortfolioUIState({sortKey:o,sortOrder:i}))},onScroll:o=>{e(H.updateCompanyPortfolioUIState({scrollYOffset:o}))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(o,i)=>{e(H.updateCompanyPortfolioUIState({filters:i}))},onCockpitReloadData:o=>{o==="portfolio"&&e(H.fetchCompanyPortfolioView())}}}}function _v(e,n){return{headerData:{selectedTabOption:Ot("portfolio")},portfolioPageData:{portfolioView:n.portfolioView}}}const bv=We(_v,yv)(Bh);function vl(){const e=Ye(),n=et(),o=Ce(a=>H.getCompanyPortfolioView(a)),i=Ce(a=>a.companyViewState.zeniUsers.fetchState);return we.useEffect(()=>{o.fetchState==="Completed"?n(H.fetchAllCockpitViews(!1)):(o.fetchState==="Not-Started"||o.fetchState==="Error")&&(n(H.fetchCompanyPortfolioView()),(i==="Not-Started"||i==="Error")&&n(H.fetchZeniUsers()))},[o.fetchState]),Y.jsx(bv,{portfolioView:o,navigate:e})}function wv(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/",element:Y.jsx(De,{element:Y.jsx(vl,{})})}),Y.jsx(je,{path:"/*",element:Y.jsx(De,{element:Y.jsx(vl,{})})})]})}function Ev(e,n){const{merchantId:o}=n,i=H.getGlobalMerchantView(e);return{tenantMerchant:o!=null?H.getTenantMerchantByMerchantId(e,o):void 0,globalMerchantView:i,analytics:Ze}}function Sv(e,n){const{merchantId:o,navigate:i}=n;return{updateCreateGlobalMerchantLocalData:(a,t,r)=>{e(H.updateCreateGlobalMerchantLocalData(a,t,r!=null?H.toZeniUrlWithoutBaseURL(r):void 0))},fetchRecommendation:()=>{e(H.fetchGlobalMerchantRecommendation("global"))},onSaveClick:()=>{e(H.createGlobalMerchant(o,"vendor_global_review"))},onBackClick:()=>{i("../vendors")}}}const Rv=We(Ev,Sv)(Vh);function Ov(){const e=Ye(),n=et(),{merchantId:o}=ht(),i=Ce(a=>H.getGlobalMerchantView(a).newGlobalMerchantData?.status.fetchState);return we.useEffect(()=>{i==="Completed"&&(n(H.clearGlobalMerchantView()),e("../vendors"))},[i]),Y.jsx(Rv,{merchantId:o,navigate:e})}function Tv(e){const n=H.getGlobalMerchantAutoCompleteResults(e);return{vendorGlobalReviewView:H.getVendorGlobalReviewView(e),globalMerchantAutoCompleteView:n,analytics:Ze}}function xv(e,n){const{navigate:o}=n;return{onApproveGlobalReview:i=>{e(H.approveVendorGlobalReview(i))},onRejectGlobalReview:i=>{e(H.rejectVendorGlobalReview(i))},onCreateGlobalMerchant:(i,a,t)=>{a!=null&&(e(H.updateCreateGlobalMerchantLocalData(a,null,t)),e(H.fetchGlobalMerchantRecommendation("global"))),i!=null?o(`./create/${i}`):o("./create")},onFetchGlobalReviewList:(i,a,t)=>{e(H.fetchVendorGlobalReviewView(i,a,t))},onUpdateGlobalReviewUIState:i=>{e(H.updateVendorGlobalReviewViewUIState(i))},onFetchGlobalMerchantAutoCompleteResults:i=>{e(H.fetchGlobalMerchantAutoCompleteView({searchString:i,globalMerchantType:"vendor"}))},onUpdateSelectedGlobalMerchant:(i,a,t)=>{const r=Av(a);e(H.updateVendorGlobalReviewViewLocalData({merchantId:i,currentSelection:r,customMerchantId:t}))},onClearGlobalMerchantAutoCompleteResults:()=>{e(H.clearGlobalMerchantAutoCompleteResults())},onBackClick:()=>{o("../../management")}}}const Cv=We(Tv,xv)(Gh);function Oo(){const e=Ye(),n=et(),o=Ao("/reconciliation/vendors/create/*")!=null,i=Ce(t=>H.getGlobalMerchantView(t));we.useEffect(()=>{o&&i.fetchState==="Not-Started"&&e("../vendors"),n(H.fetchVendorGlobalReviewView(void 0,!1))},[]);const a=t=>t.trackPageLoaded(Co.Event.vendorGlobalReviewListPage);return Y.jsxs(Y.Fragment,{children:[Y.jsx(Sl,{analytics:Ze,onLoad:a}),Y.jsx(nr,{isOpen:o,drawerLeftMargin:new lt(0,0,300,450),onClose:()=>{i.newGlobalMerchantData!=null&&Ze.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:Y.jsx(Iv,{onClick:t=>t.stopPropagation(),children:Y.jsx(Ov,{})})}),Y.jsx(Cv,{navigate:e})]})}const Av=e=>e.originalVendor===!0?"originalVendor":e.recommendedFirst===!0?"recommendedFirst":e.recommendedSecond===!0?"recommendedSecond":e.requested===!0?"requested":null,Iv=it(Ft)`
|
|
185
|
+
display: flex;
|
|
186
|
+
min-height: 100%;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
`;function Pv(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/vendors",element:Y.jsx(De,{element:Y.jsx(Oo,{})})}),Y.jsx(je,{path:"/vendors/create",element:Y.jsx(De,{element:Y.jsx(Oo,{})})}),Y.jsx(je,{path:"/vendors/create/:merchantId",element:Y.jsx(De,{element:Y.jsx(Oo,{})})})]})}const kv=it.div`
|
|
189
|
+
display: flex;
|
|
190
|
+
width: 100%;
|
|
191
|
+
height: calc(100vh - 110px);
|
|
192
|
+
flex-direction: row;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
align-items: center;
|
|
195
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
196
|
+
`;function jv(e,n){const{companyId:o,reviewView:i}=n;return{allUsers:i.zeniUsers,companyView:i.companies.find(a=>a.companyId===o)}}function qv(e,n){const{companyId:o}=n;return{onRetryBankAccountConnection:()=>{o!=null&&e(H.retryBankAccountConnection({companyId:o}))},onCloseClick:()=>{n.navigate("../")}}}const Lv=We(jv,qv)(zh);function Nv(){const e=Ye(),{companyId:n}=ht(),o=Ce(i=>H.getReviewCompanySelectorView(i));return Y.jsx(Y.Fragment,{children:o.fetchState==="In-Progress"?Y.jsx(kv,{children:Y.jsx(Qr,{size:"Large",start:!0})}):Y.jsx(Lv,{companyId:n,reviewView:o,navigate:e})})}function Dv(e,n){const{expenseAutomationEnabledCompanies:o,navigate:i}=n;return{headerActions:{onTabChange:a=>{const t=kt(a),r=Mt(a);Ze.trackCockpitTabClicked(r),i(`../../${t}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,t)=>{e(H.updateReviewCompanyListUIState({filterText:t}))}}},reviewPageActions:{onColumnSortConfigChanged:(a,t)=>{e(H.updateReviewCompanyListUIState({sortKey:a,sortOrder:t}))},onTransactionTagClicked:(a,t,r)=>{const s=o.includes(a.companyId);t==="expense"&&s?window.open(`/${a.primaryEmailDomain}/month_end_close_checks/review`):window.open(`/${a.primaryEmailDomain}/transactions/${r}-${t}`)},onReviewVendorTagClicked:a=>window.open(`/${a.primaryEmailDomain}/vendors/review`),onCompanyNameClicked:a=>window.open(`/${a.primaryEmailDomain}/dashboard`),onRetryBankAccountConnection:a=>{e(H.retryBankAccountConnection({companyId:a}))},onUncategorizedAccountsErrorClick:a=>{window.open(`/${a}/accounts/mapping`)},onClickAuditScore:a=>{if(a!=null){const t=`./report/${encodeURIComponent(a)}`;i(t)}},onClickWarningsCount:a=>{if(a!=null){const t=`./warnings/${encodeURIComponent(a)}`;i(t)}},onFilterTextChanged:(a,t)=>{e(H.updateReviewCompanyListUIState({filterText:t}))},onCockpitReloadData:a=>{a==="audit"&&e(H.fetchReviewCompanyView())},onScroll:a=>{}}}}function $v(e,n){return{headerData:{selectedTabOption:Ot("audit")},reviewPageData:{reviewView:n.reviewView,zeniUserFetchState:n.zeniUserFetchState,allUsers:n.reviewView.zeniUsers,isReviewVendorColumnVisible:n.isReviewVendorColumnVisible},analytics:Ze}}const Mv=We($v,Dv)(Hh);function To(){const e=Ye(),n=et(),o=Ao("/audit/report/*")!=null,i=Ao("/audit/warnings/*")!=null,{useFeatureGate:a}=Dt(),{isFeatureEnabled:t}=a(bl.isReviewTabVendorColumnEnabled),{useDynamicConfig:r}=Dt(),{configValue:s}=r(Pt.expenseAutomationEnablement),d=Ce(f=>H.getReviewCompanySelectorView(f)),l=Ce(f=>H.getAuditRuleGroupViewSelectorView(f)),u=Ce(f=>f.companyViewState.zeniUsers.fetchState);return we.useEffect(()=>{d.fetchState==="Completed"?n(H.fetchAllCockpitViews(!1)):(d.fetchState==="Not-Started"||d.fetchState==="Error")&&(n(H.fetchReviewCompanyView()),(u==="Not-Started"||u==="Error")&&n(H.fetchZeniUsers()))},[d.fetchState]),we.useEffect(()=>{d.fetchState==="Completed"&&l.fetchState==="Not-Started"&&n(H.fetchAuditRuleGroupView())},[d.fetchState]),Y.jsxs(Y.Fragment,{children:[Y.jsx(nr,{isOpen:o||i,drawerLeftMargin:o?new lt(0,0,0,0):i?new lt(0,0,300,650):new lt(0,0,300,650),onClose:()=>{o&&n(H.fetchReviewCompanyView()),e("../")},children:Y.jsx(Fv,{onClick:f=>f.stopPropagation(),children:o?Y.jsx(Cl,{}):i?Y.jsx(Nv,{}):null})}),Y.jsx(Mv,{reviewView:d,navigate:e,isReviewVendorColumnVisible:t,zeniUserFetchState:u,expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]})]})}const Fv=it(Ft)`
|
|
197
|
+
display: flex;
|
|
198
|
+
min-height: 100%;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
`;function Uv(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/report/:companyId",element:Y.jsx(De,{element:Y.jsx(To,{})})}),Y.jsx(je,{path:"/warnings/:companyId",element:Y.jsx(De,{element:Y.jsx(To,{})})}),Y.jsx(je,{path:"/*",element:Y.jsx(De,{element:Y.jsx(To,{})})})]})}function Bv(e,n){const o=H.getSubscriptionLocalStoreDataView(e,n.tenantId),i=o.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function Vv(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{addPlan:s,invoiceOption:d}=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:d.invoicingOption!=null};s.planStartDate!=null&&(h.startDate=H.zeniDate(s.planStartDate.toString())),e(H.saveSubscriptionLocalData({tenantId:o,subscriptionData:h}))},onEstimateSuccess:()=>{const r=xl(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(H.fetchSubscriptionCreateEstimate(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:()=>{e(H.initializeSubscriptionLocalData(o))}}}const Gv=We(Bv,Vv)(Zh),zv=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return Y.jsx(Gv,{tenantId:n,companyId:o,location:i,navigate:a})};function Hv(e,n){const{companyId:o,tenantId:i}=n,a=H.getSubscriptionsDetailView(e,o,i),t=a.fetchState!=="In-Progress";return{subscriptionDetailView:a,canUpdate:t}}function Zv(e,n){const{tenantId:o,location:i,navigate:a}=n;return{onUpdateOrAddPlanClick:t=>{e(H.initializeSubscriptionLocalData(o,t)),e(H.fetchSubscriptionPlans()),e(H.fetchSubscriptionAddOns()),e(H.fetchSubscriptionCoupons()),t!=null?a(`${i.pathname}/update`):a(`${i.pathname}/add`)},onCloseClick:()=>{a("../")}}}const Wv=We(Hv,Zv)(Wh),Yv=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e,t=et(),[r,s]=we.useState(!1),d=Ce(l=>l.subscriptionViewState.subscriptionDetailsByCompanyId[o]?.fetchStatus);return we.useEffect(()=>{!r&&(d==null||d?.fetchState==="Not-Started")&&(s(!0),t(H.fetchSubscriptionDetails(o)))},[r,d,o,t]),we.useEffect(()=>{r&&d!=null&&d?.fetchState==="Error"&&a("../subscription")},[r,d]),Y.jsx(Wv,{tenantId:n,companyId:o,location:i,navigate:a})};function Kv(e,n){return{subscriptionEstimateData:H.getSubscriptionEstimationData(e,n.tenantId)}}function Jv(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n,r=()=>{const s=Rd(a.state?.pathnameStackToGoBack),d=s.poppedPathname??Od(1);t(d,{state:{pathnameStackToGoBack:s.newStack}})};return{onBackClick:()=>{r()},onCancelClick:()=>{r()},onConfirmClick:()=>{e(H.saveSubscriptionUpdates(o))},onConfirmSuccess:()=>{t(`../tenants/${o}/companies/${i}`)}}}const Xv=We(Kv,Jv)(Yh),Qv=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return Y.jsx(Xv,{companyId:o,tenantId:n,location:i,navigate:a})};function ey(e,n){const o=H.getSubscriptionLocalStoreDataView(e,n.tenantId),i=o.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function ty(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{updatePlan:s,applyChanges:d}=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:d.changeType==="applyEndOfTerm",shouldProrate:d.shouldProrate};e(H.saveSubscriptionLocalData({tenantId:o,subscriptionData:h}))},onEstimateSuccess:()=>{const r=xl(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(H.fetchSubscriptionUpdateEstimate(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:r=>{e(H.initializeSubscriptionLocalData(o,r.subscription.subscription.subscriptionId))}}}const ry=We(ey,ty)(Kh),ny=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return Y.jsx(ry,{tenantId:n,companyId:o,location:i,navigate:a})},Ch=["add","update","summary"],iy=e=>H.stringToUnion(e,Ch),ay=e=>H.stringToUnionStrict(e,Ch),oy=()=>{const[e,n]=we.useState(!0),{tenantId:o,companyId:i,updatePageType:a}=ht(),t=Ye(),r=Ce(d=>o!=null?d.subscriptionViewState.subscriptionUpdateViewDataByTenantId[o]:null);if(Qe.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return we.useEffect(()=>{(r==null&&a!=null||ay(a??"")==null)&&t(`../tenants/${o}/companies/${i}`)},[r]),Y.jsx(nr,{isOpen:e,onClose:()=>{n(!1),t("../subscription")},children:Y.jsx(uy,{children:Y.jsx(sy,{tenantId:o,companyId:i,updatePageType:a!=null?iy(a):void 0})})})},sy=({tenantId:e,companyId:n,updatePageType:o})=>{const i=Ye(),a=Po(),t={tenantId:e,companyId:n,navigate:i,location:a};if(o==null)return Y.jsx(Yv,{...t});switch(o){case"update":return Y.jsx(ny,{...t});case"add":return Y.jsx(zv,{...t});case"summary":return Y.jsx(Qv,{...t});default:return console.error("Subscription Update Page - Invalid Url"),Y.jsx(Jt,{to:"/",replace:!0})}},uy=it(Ft)`
|
|
201
|
+
display: flex;
|
|
202
|
+
min-height: 100%;
|
|
203
|
+
`;function cy(e,n){return{headerActions:{onTabChange:o=>{const i=kt(o),a=Mt(o);Ze.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(H.updateCompanySubscriptionUIState({filterText:i}))},onFiltersChange:(o,i)=>{e(H.updateCompanySubscriptionUIState({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(o,i)=>{e(H.updateCompanySubscriptionUIState({sortKey:o,sortOrder:i}))},onCollapseToggled:(o,i)=>{e(H.updateCompanySubscriptionUIState({isRowCollapseToggled:{companyId:o,isCollapsed:i}}))},onScroll:o=>{e(H.updateCompanySubscriptionUIState({scrollYOffset:o}))},changeHandlers:(o,i)=>{const a=hy(i);Object.keys(a).length>0&&e(H.companyManagementSaveUpdates(o,a))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(o,i)=>{e(H.clearSubscriptionUpdateViewDataByTenantId({tenantId:i})),n.navigate(`../tenants/${i}/companies/${o}`)},onFiltersChange:(o,i)=>{e(H.updateCompanySubscriptionUIState({filters:i}))},onCockpitReloadData:o=>{o==="subscription"&&e(H.fetchSubscriptionList())}}}}function fy(e,n){return{headerData:{selectedTabOption:Ot("subscription")},subscriptionPageData:{loggedInUser:n.signedInUser,subscriptionView:n.subscriptionView}}}const ly=We(fy,cy)(Jh);function xo({isDrawerOpen:e}){const n=Ye(),o=et(),i=Ce(r=>H.getCompanySubscriptionView(r)),a=Ce(r=>r.companyViewState.zeniUsers.fetchState);we.useEffect(()=>{i.fetchState==="Completed"?o(H.fetchAllCockpitViews(!1)):(i.fetchState==="Not-Started"||i.fetchState==="Error")&&(o(H.fetchSubscriptionList()),(a==="Not-Started"||a==="Error")&&o(H.fetchZeniUsers()))},[i.fetchState]);const t=Qe.getSignedInUser();return Y.jsxs(Y.Fragment,{children:[e===!0?Y.jsx(oy,{}):null,Y.jsx(ly,{signedInUser:t,subscriptionView:i,navigate:n})]})}const hy=e=>{const{users:n}=e;return n?{users:n}:{}};function dy(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/tenants/:tenantId/companies/:companyId",element:Y.jsx(De,{element:Y.jsx(xo,{isDrawerOpen:!0})})}),Y.jsx(je,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:Y.jsx(De,{element:Y.jsx(xo,{isDrawerOpen:!0})})}),Y.jsx(je,{path:"/*",element:Y.jsx(De,{element:Y.jsx(xo,{})})})]})}function py(e,n){const{navigate:o}=n;return{headerActions:{onTabChange:i=>{const a=kt(i);o(`../../${a}`,{replace:!0})}},taskManagerPageActions:{onRowClick:(i,a)=>{window.open(`/${i}/tasks/${a}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(H.fetchCompanyTaskManagerView(null,"dueDate","descending",!1))},onFetchTaskManagerView:(i,a,t,r,s)=>{e(H.fetchCompanyTaskManagerView(i,a,t,r,s))}}}}function my(e,n){return{headerData:{selectedTabOption:Ot("taskManager")},taskManagerPageData:{companyTaskManagerView:n.companyTaskManagerView}}}const gy=We(my,py)(Xh);function yl(){const e=Ye(),n=et(),o=Ce(r=>H.getCompanyTaskManagerView(r)),i=Ce(r=>H.getReviewCompanyListCount(r)),a=Ce(r=>r.companyViewState.zeniUsers.fetchState);if(we.useEffect(()=>{o.fetchState==="Completed"?n(H.fetchAllCockpitViews(!1)):(o.fetchState==="Not-Started"||o.fetchState==="Error")&&(n(H.fetchCompanyTaskManagerView(null,"dueDate","descending",!1)),(a==="Not-Started"||a==="Error")&&n(H.fetchZeniUsers()))},[o.fetchState]),Qe.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");return Y.jsx(gy,{navigate:e,reviewCount:i,companyTaskManagerView:o})}function vy(){return Y.jsxs(wt,{children:[Y.jsx(je,{path:"/",element:Y.jsx(De,{element:Y.jsx(yl,{})})}),Y.jsx(je,{path:"/*",element:Y.jsx(De,{element:Y.jsx(yl,{})})})]})}let _l=!1;const yy=Qh(()=>ed(()=>Promise.resolve().then(()=>Hd),void 0));function Py(){const e=Qe.getSignedInUser(),n=$t().mode;return we.useEffect(()=>{Qe.isSignedIn()&&!_l&&e!=null&&(nd(e,n),_l=!0)},[e]),Y.jsxs(wt,{children:[Y.jsx(je,{path:"/management/*",element:Y.jsx(Qd,{})}),Y.jsx(je,{path:"/subscription/*",element:Y.jsx(dy,{})}),Y.jsx(je,{path:"/onboarding/*",element:Y.jsx(vv,{})}),Y.jsx(je,{path:"/portfolio/*",element:Y.jsx(wv,{})}),Y.jsx(je,{path:"/audit/*",element:Y.jsx(Uv,{})}),Y.jsx(je,{path:"/reconciliation/*",element:Y.jsx(Pv,{})}),Y.jsx(je,{path:"/health-monitor/*",element:Y.jsx(Td,{})}),Y.jsx(je,{path:"/task-manager/*",element:Y.jsx(vy,{})}),Y.jsx(je,{path:"/*",element:Y.jsx(yy,{})})]})}export{Py as default};
|