hs-admin-ui 3.0.2 → 3.0.3
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/401-B4MfIjWJ.js +1 -0
- package/dist/401-B4MfIjWJ.js.gz +0 -0
- package/dist/401-q1K7jJ9U.mjs +47 -0
- package/dist/401-q1K7jJ9U.mjs.gz +0 -0
- package/dist/404-CR6PFnP0.js +1 -0
- package/dist/404-CR6PFnP0.js.gz +0 -0
- package/dist/404-yDfdGmGJ.mjs +47 -0
- package/dist/404-yDfdGmGJ.mjs.gz +0 -0
- package/dist/account-BaLu2BXK.js +1 -0
- package/dist/account-BaLu2BXK.js.gz +0 -0
- package/dist/account-DRBNAj-L.mjs +306 -0
- package/dist/account-DRBNAj-L.mjs.gz +0 -0
- package/dist/aside-KlFMjsc9.js +1 -0
- package/dist/aside-KlFMjsc9.js.gz +0 -0
- package/dist/aside-hrCHvcqI.mjs +105 -0
- package/dist/aside-hrCHvcqI.mjs.gz +0 -0
- package/dist/btnIndex-D14Gnz8R.mjs +247 -0
- package/dist/btnIndex-D14Gnz8R.mjs.gz +0 -0
- package/dist/btnIndex-DJCb28Jz.js +1 -0
- package/dist/btnIndex-DJCb28Jz.js.gz +0 -0
- package/dist/classic-Be7YRrak.mjs +61 -0
- package/dist/classic-Be7YRrak.mjs.gz +0 -0
- package/dist/classic-CkS8WUw6.js +1 -0
- package/dist/classic-CkS8WUw6.js.gz +0 -0
- package/dist/cloneConfigDialog-4URlT5wH.mjs +177 -0
- package/dist/cloneConfigDialog-4URlT5wH.mjs.gz +0 -0
- package/dist/cloneConfigDialog-CATA_-dP.js +1 -0
- package/dist/cloneConfigDialog-CATA_-dP.js.gz +0 -0
- package/dist/columns-Ob0wEk6P.js +1 -0
- package/dist/columns-Ob0wEk6P.js.gz +0 -0
- package/dist/columns-gLMUYfhU.mjs +67 -0
- package/dist/columns-gLMUYfhU.mjs.gz +0 -0
- package/dist/columnsAside-DPFRTzBn.mjs +157 -0
- package/dist/columnsAside-DPFRTzBn.mjs.gz +0 -0
- package/dist/columnsAside-p6begl7p.js +1 -0
- package/dist/columnsAside-p6begl7p.js.gz +0 -0
- package/dist/contextmenu-5HqVxmG5.js +1 -0
- package/dist/contextmenu-5HqVxmG5.js.gz +0 -0
- package/dist/contextmenu-B_CXKtZ6.mjs +97 -0
- package/dist/contextmenu-B_CXKtZ6.mjs.gz +0 -0
- package/dist/contextmenu-BkuTCkeF.js +1 -0
- package/dist/contextmenu-BkuTCkeF.js.gz +0 -0
- package/dist/contextmenu-BrlsIg3X.js +1 -0
- package/dist/contextmenu-BrlsIg3X.js.gz +0 -0
- package/dist/contextmenu-C0SLASCK.mjs +99 -0
- package/dist/contextmenu-C0SLASCK.mjs.gz +0 -0
- package/dist/contextmenu-DbqYqfsW.mjs +97 -0
- package/dist/contextmenu-DbqYqfsW.mjs.gz +0 -0
- package/dist/defaults-B3zBdRpe.js +1 -0
- package/dist/defaults-B3zBdRpe.js.gz +0 -0
- package/dist/defaults-DXhKBtZr.mjs +66 -0
- package/dist/defaults-DXhKBtZr.mjs.gz +0 -0
- package/dist/dialog-BYA_pxJP.mjs +4 -0
- package/dist/dialog-C3fpcCSt.js +1 -0
- package/dist/dialog-CPOkeqe-.js +1 -0
- package/dist/dialog-DRq8NFEJ.mjs +10 -0
- package/dist/dialog-DU59u78X.mjs +4 -0
- package/dist/dialog-DlejQQ-e.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BDnrcIWh.mjs +179 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BDnrcIWh.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BQnR-hBB.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BQnR-hBB.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dn48ExB_.mjs +552 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dn48ExB_.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-_huHrQKZ.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-_huHrQKZ.js.gz +0 -0
- package/dist/dictDialog-DkV8ZcZv.mjs +4 -0
- package/dist/dictDialog-FaR4qNnF.js +1 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C6eACfvM.js +1 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C6eACfvM.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DPfBGLRK.mjs +122 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DPfBGLRK.mjs.gz +0 -0
- package/dist/dictItemDialog-BVq1RZVC.mjs +4 -0
- package/dist/dictItemDialog-qAn_mY0v.js +1 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-3m8nw3o7.js +1 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-3m8nw3o7.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-Bh2sBEpP.mjs +199 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-Bh2sBEpP.mjs.gz +0 -0
- package/dist/editDialog-CWPG67uT.js +1 -0
- package/dist/editDialog-CWPG67uT.js.gz +0 -0
- package/dist/editDialog-D-hZFMG1.mjs +96 -0
- package/dist/editDialog-D-hZFMG1.mjs.gz +0 -0
- package/dist/formConfig-BPk9VVqY.js +1 -0
- package/dist/formConfig-BPk9VVqY.js.gz +0 -0
- package/dist/formConfig-JKx57Am-.mjs +334 -0
- package/dist/formConfig-JKx57Am-.mjs.gz +0 -0
- package/dist/header-DCpdmmXv.js +1 -0
- package/dist/header-sn_3iKAo.mjs +24 -0
- package/dist/horizontal-D7pWgg45.js +1 -0
- package/dist/horizontal-D7pWgg45.js.gz +0 -0
- package/dist/horizontal-DCpBFFRU.mjs +109 -0
- package/dist/horizontal-DCpBFFRU.mjs.gz +0 -0
- package/dist/hsAttrBtn-CXRHIago.js +1 -0
- package/dist/hsAttrBtn-jcW7ifom.mjs +4 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-YmpZQ49l.mjs +103 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-YmpZQ49l.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-_rlVte1G.js +1 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-_rlVte1G.js.gz +0 -0
- package/dist/hsAttrForm-DJBJHFAf.mjs +4 -0
- package/dist/hsAttrForm-pWagSyAo.js +1 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CgahBdLv.js +1 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CgahBdLv.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-dppTl9ql.mjs +211 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-dppTl9ql.mjs.gz +0 -0
- package/dist/hsBtnConfigList-D3TQiAit.mjs +87 -0
- package/dist/hsBtnConfigList-D3TQiAit.mjs.gz +0 -0
- package/dist/hsBtnConfigList-DFxQO4V3.js +1 -0
- package/dist/hsBtnConfigList-DFxQO4V3.js.gz +0 -0
- package/dist/hsBtnItemConfig-BDxUAbhh.mjs +4 -0
- package/dist/hsBtnItemConfig-Bq3vy_MG.js +1 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BbhjwEHO.mjs +84 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BbhjwEHO.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CdWB2b_N.js +1 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CdWB2b_N.js.gz +0 -0
- package/dist/hsBtnPanel-GpY9alkI.js +1 -0
- package/dist/hsBtnPanel-Tmb0T4yH.mjs +4 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BAaor7cV.mjs +60 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BAaor7cV.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C7Y6Cc5L.js +1 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C7Y6Cc5L.js.gz +0 -0
- package/dist/hsExpand-DMuxPl66.mjs +4 -0
- package/dist/hsExpand-TWYdJJza.js +1 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-C49RNNNs.mjs +185 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-C49RNNNs.mjs.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CJI2FQLn.js +1 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CJI2FQLn.js.gz +0 -0
- package/dist/hsFormConfig-CAqqqFk1.js +1 -0
- package/dist/hsFormConfig-CAqqqFk1.js.gz +0 -0
- package/dist/hsFormConfig-D0ytMP-d.mjs +177 -0
- package/dist/hsFormConfig-D0ytMP-d.mjs.gz +0 -0
- package/dist/hsFormConfigList-DIpWgHck.mjs +232 -0
- package/dist/hsFormConfigList-DIpWgHck.mjs.gz +0 -0
- package/dist/hsFormConfigList-qNMRBpIx.js +1 -0
- package/dist/hsFormConfigList-qNMRBpIx.js.gz +0 -0
- package/dist/hsFormPanel-BzwUZUwU.mjs +4 -0
- package/dist/hsFormPanel-tzWHjaaS.js +1 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-By-3YNLU.js +1 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-By-3YNLU.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DnsjDDkS.mjs +185 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DnsjDDkS.mjs.gz +0 -0
- package/dist/hsFormParse-BhvPzM47.js +1 -0
- package/dist/hsFormParse-D0YK3y5p.mjs +4 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CqHl77pg.js +1 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CqHl77pg.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-GiJiLiyk.mjs +99 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-GiJiLiyk.mjs.gz +0 -0
- package/dist/hsPanelItem-B7JwKusp.mjs +4 -0
- package/dist/hsPanelItem-DJaWdcNa.js +1 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-1yQJcVVL.js +1 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-1yQJcVVL.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Gmf0YT_m.mjs +76 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Gmf0YT_m.mjs.gz +0 -0
- package/dist/iframes-BL9CvZWR.js +1 -0
- package/dist/iframes-BL9CvZWR.js.gz +0 -0
- package/dist/iframes-xLULTvxD.mjs +102 -0
- package/dist/iframes-xLULTvxD.mjs.gz +0 -0
- package/dist/index-26zw5AVn.js +1 -0
- package/dist/index-26zw5AVn.js.gz +0 -0
- package/dist/index-6XzGqKzG.mjs +10 -0
- package/dist/index-B-vg1cAK.js +1 -0
- package/dist/index-B-vg1cAK.js.gz +0 -0
- package/dist/index-B0VGjz7h.mjs +18 -0
- package/dist/index-B9lRIJG6.js +1 -0
- package/dist/index-BJ0INT0V.mjs +20 -0
- package/dist/index-BNbZD-MA.mjs +140 -0
- package/dist/index-BNbZD-MA.mjs.gz +0 -0
- package/dist/index-BO-mx2Jh.js +1 -0
- package/dist/index-BQL_3_TC.mjs +220 -0
- package/dist/index-BQL_3_TC.mjs.gz +0 -0
- package/dist/index-BRkGjOjB.mjs +231 -0
- package/dist/index-BRkGjOjB.mjs.gz +0 -0
- package/dist/index-BUTRrxfq.js +1 -0
- package/dist/index-BUTRrxfq.js.gz +0 -0
- package/dist/index-BX4GdhWF.mjs +59 -0
- package/dist/index-BX4GdhWF.mjs.gz +0 -0
- package/dist/index-Bb6qH_VA.mjs +110 -0
- package/dist/index-Bb6qH_VA.mjs.gz +0 -0
- package/dist/index-BpIZEegl.mjs +14144 -0
- package/dist/index-BpIZEegl.mjs.gz +0 -0
- package/dist/index-BrVgKPNl.js +209 -0
- package/dist/index-BrVgKPNl.js.gz +0 -0
- package/dist/index-C0GqXRRG.mjs +4 -0
- package/dist/index-C3p8qLXS.js +9 -0
- package/dist/index-C3p8qLXS.js.gz +0 -0
- package/dist/index-C4kCmE4A.js +1 -0
- package/dist/index-C9iIWRXj.js +1 -0
- package/dist/index-C9iIWRXj.js.gz +0 -0
- package/dist/index-CNStUP6L.js +1 -0
- package/dist/index-CNStUP6L.js.gz +0 -0
- package/dist/index-CSr1w5n8.mjs +95398 -0
- package/dist/index-CSr1w5n8.mjs.gz +0 -0
- package/dist/index-CTjf8lhR.js +1 -0
- package/dist/index-CUvgVpNh.js +1 -0
- package/dist/index-CUvgVpNh.js.gz +0 -0
- package/dist/index-C_OCMtqT.mjs +314 -0
- package/dist/index-C_OCMtqT.mjs.gz +0 -0
- package/dist/index-CaT80nV5.mjs +845 -0
- package/dist/index-CaT80nV5.mjs.gz +0 -0
- package/dist/index-Cb6pPdYq.js +1 -0
- package/dist/index-CeQCXswY.js +1 -0
- package/dist/index-CeQCXswY.js.gz +0 -0
- package/dist/index-Cgj-_C1T.js +1 -0
- package/dist/index-Cgj-_C1T.js.gz +0 -0
- package/dist/index-CnYKe3i7.js +1 -0
- package/dist/index-CnYKe3i7.js.gz +0 -0
- package/dist/index-CpqpTptB.js +1 -0
- package/dist/index-CsPm81KE.mjs +4 -0
- package/dist/index-CxlXYEje.mjs +29 -0
- package/dist/index-D2MTWUL6.mjs +10 -0
- package/dist/index-D4FHHBHI.mjs +55 -0
- package/dist/index-D4FHHBHI.mjs.gz +0 -0
- package/dist/index-D900QaIA.js +1 -0
- package/dist/index-DBoY2fZb.mjs +4 -0
- package/dist/index-DEaDbgGx.js +1 -0
- package/dist/index-DFBztj2L.js +1 -0
- package/dist/index-DIMzRERb.js +1 -0
- package/dist/index-DIMzRERb.js.gz +0 -0
- package/dist/index-DIkrIfaN.mjs +10974 -0
- package/dist/index-DIkrIfaN.mjs.gz +0 -0
- package/dist/index-DLW86SaJ.mjs +149 -0
- package/dist/index-DLW86SaJ.mjs.gz +0 -0
- package/dist/index-DL_sVftl.mjs +229 -0
- package/dist/index-DL_sVftl.mjs.gz +0 -0
- package/dist/index-DOLW-McN.mjs +4 -0
- package/dist/index-DOaDdjiX.js +1 -0
- package/dist/index-DOaDdjiX.js.gz +0 -0
- package/dist/index-DTkygzwY.js +102 -0
- package/dist/index-DTkygzwY.js.gz +0 -0
- package/dist/index-DYKb7RS2.mjs +220 -0
- package/dist/index-DYKb7RS2.mjs.gz +0 -0
- package/dist/index-D_bgQt9R.js +1 -0
- package/dist/index-D_bgQt9R.js.gz +0 -0
- package/dist/index-Dam8YsTP.js +1 -0
- package/dist/index-DcSA8lLr.js +1 -0
- package/dist/index-DcSA8lLr.js.gz +0 -0
- package/dist/index-Dcld4WDT.mjs +62 -0
- package/dist/index-Dcld4WDT.mjs.gz +0 -0
- package/dist/index-DcsA9v2j.mjs +34 -0
- package/dist/index-DcsA9v2j.mjs.gz +0 -0
- package/dist/index-DkHtHA5g.js +1 -0
- package/dist/index-DpwGT4RD.js +1 -0
- package/dist/index-Eymv6xTH.js +1 -0
- package/dist/index-Eymv6xTH.js.gz +0 -0
- package/dist/index-RXfxRHlP.mjs +4 -0
- package/dist/index-W-mlOnh3.mjs +87 -0
- package/dist/index-W-mlOnh3.mjs.gz +0 -0
- package/dist/index-aVoEMoBS.js +1 -0
- package/dist/index-aVoEMoBS.js.gz +0 -0
- package/dist/index-c2b_67-h.js +1 -0
- package/dist/index-c2b_67-h.js.gz +0 -0
- package/dist/index-l-HmXM6Q.mjs +67 -0
- package/dist/index-l-HmXM6Q.mjs.gz +0 -0
- package/dist/index-m9rgnIuG.mjs +29 -0
- package/dist/index-pqtYsbkX.mjs +10 -0
- package/dist/index-rMtDS_GM.js +1 -0
- package/dist/index-rMtDS_GM.js.gz +0 -0
- package/dist/index-uFW_DzrL.mjs +41 -0
- package/dist/index-uFW_DzrL.mjs.gz +0 -0
- package/dist/index-wo_CVWLm.mjs +65 -0
- package/dist/index-wo_CVWLm.mjs.gz +0 -0
- package/dist/index-zHNdIuWw.mjs +88 -0
- package/dist/index-zHNdIuWw.mjs.gz +0 -0
- package/dist/index-zY4z7Ab5.js +1 -0
- package/dist/index-zY4z7Ab5.js.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-9uJDGGeV.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-9uJDGGeV.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BI7pMJvQ.mjs +79 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BI7pMJvQ.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CzcrlpoK.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CzcrlpoK.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-D1gjjt6u.mjs +150 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-D1gjjt6u.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DCDroNiL.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DCDroNiL.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Pa3yQ9EW.mjs +198 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Pa3yQ9EW.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-B7CCrhXu.mjs +115 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-B7CCrhXu.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CurLrtlq.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CurLrtlq.js.gz +0 -0
- package/dist/link-C1M1x2Dz.js +1 -0
- package/dist/link-C1M1x2Dz.js.gz +0 -0
- package/dist/link-CUBNlnYq.mjs +50 -0
- package/dist/link-CUBNlnYq.mjs.gz +0 -0
- package/dist/list-aQZkgVzl.mjs +74 -0
- package/dist/list-aQZkgVzl.mjs.gz +0 -0
- package/dist/list-yMssb4yP.js +1 -0
- package/dist/list-yMssb4yP.js.gz +0 -0
- package/dist/main-CXv26O7L.js +1 -0
- package/dist/main-CXv26O7L.js.gz +0 -0
- package/dist/main-fL1xJxhl.mjs +47 -0
- package/dist/main-fL1xJxhl.mjs.gz +0 -0
- package/dist/mobile-BF27_Zzh.js +1 -0
- package/dist/mobile-BF27_Zzh.js.gz +0 -0
- package/dist/mobile-tWF1UecT.mjs +104 -0
- package/dist/mobile-tWF1UecT.mjs.gz +0 -0
- package/dist/parent-DeMBfjuV.js +1 -0
- package/dist/parent-DeMBfjuV.js.gz +0 -0
- package/dist/parent-vHILyDKy.mjs +95 -0
- package/dist/parent-vHILyDKy.mjs.gz +0 -0
- package/dist/roleItem-BfsT-XvD.mjs +83 -0
- package/dist/roleItem-BfsT-XvD.mjs.gz +0 -0
- package/dist/roleItem-D6JC9rbK.js +1 -0
- package/dist/roleItem-D6JC9rbK.js.gz +0 -0
- package/dist/saveForm-CkrAGzQ1.mjs +4 -0
- package/dist/saveForm-DsXo39D9.js +1 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DWBB3xPs.mjs +314 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DWBB3xPs.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-Dfo4X2Lk.js +1 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-Dfo4X2Lk.js.gz +0 -0
- package/dist/scan-CBI4gjfq.js +1 -0
- package/dist/scan-CBI4gjfq.js.gz +0 -0
- package/dist/scan-DxP7I0kW.mjs +544 -0
- package/dist/scan-DxP7I0kW.mjs.gz +0 -0
- package/dist/search-D4n6UOS9.mjs +85 -0
- package/dist/search-D4n6UOS9.mjs.gz +0 -0
- package/dist/search-mDFRYCiO.js +1 -0
- package/dist/search-mDFRYCiO.js.gz +0 -0
- package/dist/selectConfig-CiHEOT-h.mjs +536 -0
- package/dist/selectConfig-CiHEOT-h.mjs.gz +0 -0
- package/dist/selectConfig-DENdpZJ4.js +1 -0
- package/dist/selectConfig-DENdpZJ4.js.gz +0 -0
- package/dist/subItem-CODbeMxp.mjs +66 -0
- package/dist/subItem-CODbeMxp.mjs.gz +0 -0
- package/dist/subItem-D6CwVad0.js +1 -0
- package/dist/subItem-D6CwVad0.js.gz +0 -0
- package/dist/tagsView-BUXbxMgz.mjs +1568 -0
- package/dist/tagsView-BUXbxMgz.mjs.gz +0 -0
- package/dist/tagsView-x9V_x6U-.js +6 -0
- package/dist/tagsView-x9V_x6U-.js.gz +0 -0
- package/dist/transverse-CemDQA8I.mjs +51 -0
- package/dist/transverse-CemDQA8I.mjs.gz +0 -0
- package/dist/transverse-Yj5NK2M4.js +1 -0
- package/dist/transverse-Yj5NK2M4.js.gz +0 -0
- package/dist/trtcUI-D3yYfh1E.js +3 -0
- package/dist/trtcUI-D3yYfh1E.js.gz +0 -0
- package/dist/trtcUI-_vxxJCbP.mjs +101 -0
- package/dist/trtcUI-_vxxJCbP.mjs.gz +0 -0
- package/dist/types/components/business/bcBox/bcBox.vue.d.ts +12 -1
- package/dist/uploadAvatar-BSUkYJeO.mjs +1267 -0
- package/dist/uploadAvatar-BSUkYJeO.mjs.gz +0 -0
- package/dist/uploadAvatar-DVwRqvdf.js +7 -0
- package/dist/uploadAvatar-DVwRqvdf.js.gz +0 -0
- package/dist/user-BKnzLpOJ.mjs +291 -0
- package/dist/user-BKnzLpOJ.mjs.gz +0 -0
- package/dist/user-Vp2D39sa.js +1 -0
- package/dist/user-Vp2D39sa.js.gz +0 -0
- package/dist/userNews-F5OwFXqy.js +1 -0
- package/dist/userNews-F5OwFXqy.js.gz +0 -0
- package/dist/userNews-cjIWaKBx.mjs +61 -0
- package/dist/userNews-cjIWaKBx.mjs.gz +0 -0
- package/dist/userSelect-BWOG6NFl.mjs +4 -0
- package/dist/userSelect-BmygWnXh.js +1 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-Dn1bt3X4.js +1 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-Dn1bt3X4.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DtKgYjA7.mjs +80 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DtKgYjA7.mjs.gz +0 -0
- package/dist/vertical-Bo_BQYje.mjs +101 -0
- package/dist/vertical-Bo_BQYje.mjs.gz +0 -0
- package/dist/vertical-W6w1iaoW.js +1 -0
- package/dist/vertical-W6w1iaoW.js.gz +0 -0
- package/package.json +1 -1
- package/dist/401-Dr6owA00.js +0 -1
- package/dist/401-Dr6owA00.js.gz +0 -0
- package/dist/401-jzvrofUj.mjs +0 -47
- package/dist/401-jzvrofUj.mjs.gz +0 -0
- package/dist/404-CaySuhGz.mjs +0 -47
- package/dist/404-CaySuhGz.mjs.gz +0 -0
- package/dist/404-Cy3quZFB.js +0 -1
- package/dist/404-Cy3quZFB.js.gz +0 -0
- package/dist/account--nbm9Fw8.js +0 -1
- package/dist/account--nbm9Fw8.js.gz +0 -0
- package/dist/account-byv9hPhE.mjs +0 -306
- package/dist/account-byv9hPhE.mjs.gz +0 -0
- package/dist/aside-BSw5G3xN.mjs +0 -105
- package/dist/aside-BSw5G3xN.mjs.gz +0 -0
- package/dist/aside-CfWJws7w.js +0 -1
- package/dist/aside-CfWJws7w.js.gz +0 -0
- package/dist/btnIndex-C265dB4n.js +0 -1
- package/dist/btnIndex-C265dB4n.js.gz +0 -0
- package/dist/btnIndex-Z-8iTaJ_.mjs +0 -247
- package/dist/btnIndex-Z-8iTaJ_.mjs.gz +0 -0
- package/dist/classic-3H1L6nft.mjs +0 -61
- package/dist/classic-3H1L6nft.mjs.gz +0 -0
- package/dist/classic-DwxrEB8S.js +0 -1
- package/dist/classic-DwxrEB8S.js.gz +0 -0
- package/dist/cloneConfigDialog-6PrBNJue.mjs +0 -177
- package/dist/cloneConfigDialog-6PrBNJue.mjs.gz +0 -0
- package/dist/cloneConfigDialog-CkOZ263O.js +0 -1
- package/dist/cloneConfigDialog-CkOZ263O.js.gz +0 -0
- package/dist/columns-29m1vp2n.js +0 -1
- package/dist/columns-29m1vp2n.js.gz +0 -0
- package/dist/columns-CZ1P6qsd.mjs +0 -67
- package/dist/columns-CZ1P6qsd.mjs.gz +0 -0
- package/dist/columnsAside-CylkfCQ-.js +0 -1
- package/dist/columnsAside-CylkfCQ-.js.gz +0 -0
- package/dist/columnsAside-ioFfbq4k.mjs +0 -157
- package/dist/columnsAside-ioFfbq4k.mjs.gz +0 -0
- package/dist/contextmenu-BVlkORBx.js +0 -1
- package/dist/contextmenu-BVlkORBx.js.gz +0 -0
- package/dist/contextmenu-BX_O1sWr.mjs +0 -99
- package/dist/contextmenu-BX_O1sWr.mjs.gz +0 -0
- package/dist/contextmenu-BYWt35Rx.js +0 -1
- package/dist/contextmenu-BYWt35Rx.js.gz +0 -0
- package/dist/contextmenu-CyCvFf7p.mjs +0 -97
- package/dist/contextmenu-CyCvFf7p.mjs.gz +0 -0
- package/dist/contextmenu-D3KMmct5.mjs +0 -97
- package/dist/contextmenu-D3KMmct5.mjs.gz +0 -0
- package/dist/contextmenu-DDEPk6K-.js +0 -1
- package/dist/contextmenu-DDEPk6K-.js.gz +0 -0
- package/dist/defaults-BFZ_xNH1.js +0 -1
- package/dist/defaults-BFZ_xNH1.js.gz +0 -0
- package/dist/defaults-FlYm5XJh.mjs +0 -66
- package/dist/defaults-FlYm5XJh.mjs.gz +0 -0
- package/dist/dialog-BK8zRgfo.js +0 -1
- package/dist/dialog-C3AiM3x0.mjs +0 -4
- package/dist/dialog-COEyFsJ3.mjs +0 -10
- package/dist/dialog-DsmRHQPD.js +0 -1
- package/dist/dialog-W0cJShcQ.mjs +0 -4
- package/dist/dialog-oId_jiWz.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BvXVwaXA.mjs +0 -179
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BvXVwaXA.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dw7m-izb.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dw7m-izb.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dyir8itm.mjs +0 -552
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dyir8itm.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-YJ7e2ukm.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-YJ7e2ukm.js.gz +0 -0
- package/dist/dictDialog-BjM_2s02.js +0 -1
- package/dist/dictDialog-CNfNU5p9.mjs +0 -4
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B5TCk4PF.js +0 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B5TCk4PF.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DXJuiZ8f.mjs +0 -122
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DXJuiZ8f.mjs.gz +0 -0
- package/dist/dictItemDialog-BfvUqiTl.mjs +0 -4
- package/dist/dictItemDialog-BybMwhQc.js +0 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-CwoxIttL.js +0 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-CwoxIttL.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-s_XonK7o.mjs +0 -199
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-s_XonK7o.mjs.gz +0 -0
- package/dist/editDialog-NF26T7ze.mjs +0 -96
- package/dist/editDialog-NF26T7ze.mjs.gz +0 -0
- package/dist/editDialog-n9N3cmdI.js +0 -1
- package/dist/editDialog-n9N3cmdI.js.gz +0 -0
- package/dist/formConfig-B3YPKB9a.js +0 -1
- package/dist/formConfig-B3YPKB9a.js.gz +0 -0
- package/dist/formConfig-CbGWVBfO.mjs +0 -334
- package/dist/formConfig-CbGWVBfO.mjs.gz +0 -0
- package/dist/header-D2ostlCp.mjs +0 -24
- package/dist/header-z8HRefWW.js +0 -1
- package/dist/horizontal-C4uSFpLk.js +0 -1
- package/dist/horizontal-C4uSFpLk.js.gz +0 -0
- package/dist/horizontal-DcgY6VgU.mjs +0 -109
- package/dist/horizontal-DcgY6VgU.mjs.gz +0 -0
- package/dist/hsAttrBtn-Dhz72DWF.mjs +0 -4
- package/dist/hsAttrBtn-iIW093kh.js +0 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BEwSy0MA.mjs +0 -103
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BEwSy0MA.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-DgYH2v9W.js +0 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-DgYH2v9W.js.gz +0 -0
- package/dist/hsAttrForm-Br7FUIj9.js +0 -1
- package/dist/hsAttrForm-DvZZ5ci0.mjs +0 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BZJvVfPK.mjs +0 -211
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BZJvVfPK.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BezLIZWf.js +0 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BezLIZWf.js.gz +0 -0
- package/dist/hsBtnConfigList-B30O44wZ.mjs +0 -87
- package/dist/hsBtnConfigList-B30O44wZ.mjs.gz +0 -0
- package/dist/hsBtnConfigList-efdThjCA.js +0 -1
- package/dist/hsBtnConfigList-efdThjCA.js.gz +0 -0
- package/dist/hsBtnItemConfig-BXIq7DeC.js +0 -1
- package/dist/hsBtnItemConfig-DGKtWZTp.mjs +0 -4
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CU-5N59a.mjs +0 -84
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CU-5N59a.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DPE_0T1h.js +0 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DPE_0T1h.js.gz +0 -0
- package/dist/hsBtnPanel-Cklr1pNJ.js +0 -1
- package/dist/hsBtnPanel-CkwL2G_S.mjs +0 -4
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BVW4ZW9E.mjs +0 -60
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BVW4ZW9E.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_PXxoN_.js +0 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_PXxoN_.js.gz +0 -0
- package/dist/hsExpand-CIK2DHtT.mjs +0 -4
- package/dist/hsExpand-MhAyOAu5.js +0 -1
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BYpImY8M.js +0 -1
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BYpImY8M.js.gz +0 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CnFeU5mP.mjs +0 -185
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CnFeU5mP.mjs.gz +0 -0
- package/dist/hsFormConfig-BjXoEgwi.js +0 -1
- package/dist/hsFormConfig-BjXoEgwi.js.gz +0 -0
- package/dist/hsFormConfig-Bv0-ukLZ.mjs +0 -177
- package/dist/hsFormConfig-Bv0-ukLZ.mjs.gz +0 -0
- package/dist/hsFormConfigList-COEGstBM.mjs +0 -232
- package/dist/hsFormConfigList-COEGstBM.mjs.gz +0 -0
- package/dist/hsFormConfigList-DBOr8eR_.js +0 -1
- package/dist/hsFormConfigList-DBOr8eR_.js.gz +0 -0
- package/dist/hsFormPanel-DMV7dQEN.js +0 -1
- package/dist/hsFormPanel-nupwWyLP.mjs +0 -4
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_KTzC9w.js +0 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_KTzC9w.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DdVV7pRf.mjs +0 -185
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DdVV7pRf.mjs.gz +0 -0
- package/dist/hsFormParse-BCe8O5B8.js +0 -1
- package/dist/hsFormParse-D-swx3-y.mjs +0 -4
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BjzLrmUK.mjs +0 -99
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BjzLrmUK.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BrtOdqKK.js +0 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BrtOdqKK.js.gz +0 -0
- package/dist/hsPanelItem-CXqWjDLY.js +0 -1
- package/dist/hsPanelItem-CmI8AKwj.mjs +0 -4
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BWAek_JK.js +0 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BWAek_JK.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CGWuFVrQ.mjs +0 -76
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CGWuFVrQ.mjs.gz +0 -0
- package/dist/iframes-CN5LK9Wb.js +0 -1
- package/dist/iframes-CN5LK9Wb.js.gz +0 -0
- package/dist/iframes-CfgJZyqf.mjs +0 -102
- package/dist/iframes-CfgJZyqf.mjs.gz +0 -0
- package/dist/index-13wZ__6I.js +0 -1
- package/dist/index-13wZ__6I.js.gz +0 -0
- package/dist/index-6SjJnXN_.mjs +0 -140
- package/dist/index-6SjJnXN_.mjs.gz +0 -0
- package/dist/index-B-3jd85z.js +0 -1
- package/dist/index-B-3jd85z.js.gz +0 -0
- package/dist/index-B0ewx23g.js +0 -1
- package/dist/index-B3hsXIJn.mjs +0 -29
- package/dist/index-B4BOzZGN.js +0 -1
- package/dist/index-B6stsDBW.mjs +0 -220
- package/dist/index-B6stsDBW.mjs.gz +0 -0
- package/dist/index-B7417p9-.js +0 -1
- package/dist/index-B7417p9-.js.gz +0 -0
- package/dist/index-B7YjyO7j.js +0 -1
- package/dist/index-B7YjyO7j.js.gz +0 -0
- package/dist/index-BA_zKBP7.js +0 -1
- package/dist/index-BJd3HVVH.mjs +0 -65
- package/dist/index-BJd3HVVH.mjs.gz +0 -0
- package/dist/index-BPA0jXC2.mjs +0 -10
- package/dist/index-BPGuGGJP.js +0 -1
- package/dist/index-BPGuGGJP.js.gz +0 -0
- package/dist/index-BT_RYIVa.mjs +0 -10
- package/dist/index-BWRC40t_.mjs +0 -18
- package/dist/index-BZS9_Zdg.js +0 -1
- package/dist/index-BZS9_Zdg.js.gz +0 -0
- package/dist/index-Bc467_UD.js +0 -1
- package/dist/index-Bc467_UD.js.gz +0 -0
- package/dist/index-Ber1G6Gr.mjs +0 -110
- package/dist/index-Ber1G6Gr.mjs.gz +0 -0
- package/dist/index-Bhi1Bp_e.js +0 -1
- package/dist/index-Bhi1Bp_e.js.gz +0 -0
- package/dist/index-BlR-l5na.mjs +0 -55
- package/dist/index-BlR-l5na.mjs.gz +0 -0
- package/dist/index-BmZluzTL.mjs +0 -62
- package/dist/index-BmZluzTL.mjs.gz +0 -0
- package/dist/index-Bp92OHVg.js +0 -1
- package/dist/index-BwrNCCmq.mjs +0 -29
- package/dist/index-BxLVrXrP.js +0 -1
- package/dist/index-BxLVrXrP.js.gz +0 -0
- package/dist/index-C59kNlwM.mjs +0 -14144
- package/dist/index-C59kNlwM.mjs.gz +0 -0
- package/dist/index-C7GICc6b.js +0 -9
- package/dist/index-C7GICc6b.js.gz +0 -0
- package/dist/index-C9b7rxTf.mjs +0 -20
- package/dist/index-CBUO2asR.js +0 -1
- package/dist/index-CBUO2asR.js.gz +0 -0
- package/dist/index-CCK_-pAq.js +0 -1
- package/dist/index-CCK_-pAq.js.gz +0 -0
- package/dist/index-CIyt-xRD.js +0 -1
- package/dist/index-CNqB8RKc.mjs +0 -88
- package/dist/index-CNqB8RKc.mjs.gz +0 -0
- package/dist/index-CbvERWh3.mjs +0 -41
- package/dist/index-CbvERWh3.mjs.gz +0 -0
- package/dist/index-CeS3RkRs.js +0 -1
- package/dist/index-CeS3RkRs.js.gz +0 -0
- package/dist/index-CsBM-Taa.mjs +0 -59
- package/dist/index-CsBM-Taa.mjs.gz +0 -0
- package/dist/index-D2-oPskO.js +0 -1
- package/dist/index-D3M4PFG-.mjs +0 -4
- package/dist/index-DFdiZQIF.js +0 -1
- package/dist/index-DFdiZQIF.js.gz +0 -0
- package/dist/index-DHDrLc-u.mjs +0 -845
- package/dist/index-DHDrLc-u.mjs.gz +0 -0
- package/dist/index-DNdDqTYz.js +0 -1
- package/dist/index-DPi-wq9f.mjs +0 -4
- package/dist/index-DTxMUs5r.js +0 -209
- package/dist/index-DTxMUs5r.js.gz +0 -0
- package/dist/index-DU9LmSW_.mjs +0 -95402
- package/dist/index-DU9LmSW_.mjs.gz +0 -0
- package/dist/index-DarP1XYK.mjs +0 -231
- package/dist/index-DarP1XYK.mjs.gz +0 -0
- package/dist/index-DbxaEwbU.mjs +0 -314
- package/dist/index-DbxaEwbU.mjs.gz +0 -0
- package/dist/index-Ddngzo4s.js +0 -102
- package/dist/index-Ddngzo4s.js.gz +0 -0
- package/dist/index-DelfoyOJ.mjs +0 -229
- package/dist/index-DelfoyOJ.mjs.gz +0 -0
- package/dist/index-DnyPZgvg.mjs +0 -67
- package/dist/index-DnyPZgvg.mjs.gz +0 -0
- package/dist/index-Dog4X1RO.js +0 -1
- package/dist/index-DpBvsH0s.js +0 -1
- package/dist/index-Dsz9PP4t.js +0 -1
- package/dist/index-Dsz9PP4t.js.gz +0 -0
- package/dist/index-DzwGeUZu.mjs +0 -10974
- package/dist/index-DzwGeUZu.mjs.gz +0 -0
- package/dist/index-G_SOYPNl.js +0 -1
- package/dist/index-G_SOYPNl.js.gz +0 -0
- package/dist/index-JFtc5L-V.mjs +0 -4
- package/dist/index-R8IzYWaR.js +0 -1
- package/dist/index-R8IzYWaR.js.gz +0 -0
- package/dist/index-Vt3xXROV.mjs +0 -4
- package/dist/index-XUHKV3di.js +0 -1
- package/dist/index-XUHKV3di.js.gz +0 -0
- package/dist/index-ajmFVKd7.mjs +0 -149
- package/dist/index-ajmFVKd7.mjs.gz +0 -0
- package/dist/index-b8RnhFIP.js +0 -1
- package/dist/index-b8RnhFIP.js.gz +0 -0
- package/dist/index-djIBdJa_.js +0 -1
- package/dist/index-fUUZcxHU.mjs +0 -34
- package/dist/index-fUUZcxHU.mjs.gz +0 -0
- package/dist/index-iln_jwhi.js +0 -1
- package/dist/index-jFEq05y4.js +0 -1
- package/dist/index-lMbIvWKk.mjs +0 -87
- package/dist/index-lMbIvWKk.mjs.gz +0 -0
- package/dist/index-nnm5ClTH.mjs +0 -4
- package/dist/index-oUOA5G25.mjs +0 -10
- package/dist/index-vssO3rfQ.mjs +0 -220
- package/dist/index-vssO3rfQ.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-9TEwRq_9.mjs +0 -79
- package/dist/index.vue_vue_type_script_setup_true_lang-9TEwRq_9.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-B4JLmd62.mjs +0 -150
- package/dist/index.vue_vue_type_script_setup_true_lang-B4JLmd62.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BWuW6yAy.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-BWuW6yAy.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Dwpv1YiY.mjs +0 -198
- package/dist/index.vue_vue_type_script_setup_true_lang-Dwpv1YiY.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-qDLu3wGq.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-qDLu3wGq.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-vCGNGwd2.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-vCGNGwd2.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DB41n6uH.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DB41n6uH.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DXqOdodP.mjs +0 -115
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DXqOdodP.mjs.gz +0 -0
- package/dist/link-4rxwQKNc.js +0 -1
- package/dist/link-4rxwQKNc.js.gz +0 -0
- package/dist/link-CWZHQk0H.mjs +0 -50
- package/dist/link-CWZHQk0H.mjs.gz +0 -0
- package/dist/list-D7rc6TM8.mjs +0 -74
- package/dist/list-D7rc6TM8.mjs.gz +0 -0
- package/dist/list-D__IzGYb.js +0 -1
- package/dist/list-D__IzGYb.js.gz +0 -0
- package/dist/main-DijPnNdr.js +0 -1
- package/dist/main-DijPnNdr.js.gz +0 -0
- package/dist/main-Dk4UBC_d.mjs +0 -47
- package/dist/main-Dk4UBC_d.mjs.gz +0 -0
- package/dist/mobile-BkS49L5F.mjs +0 -104
- package/dist/mobile-BkS49L5F.mjs.gz +0 -0
- package/dist/mobile-ByUHCn9m.js +0 -1
- package/dist/mobile-ByUHCn9m.js.gz +0 -0
- package/dist/parent-BeXPjWwc.mjs +0 -95
- package/dist/parent-BeXPjWwc.mjs.gz +0 -0
- package/dist/parent-v0-q8qvD.js +0 -1
- package/dist/parent-v0-q8qvD.js.gz +0 -0
- package/dist/roleItem-CX53z8I-.js +0 -1
- package/dist/roleItem-CX53z8I-.js.gz +0 -0
- package/dist/roleItem-Cb1D4_q4.mjs +0 -83
- package/dist/roleItem-Cb1D4_q4.mjs.gz +0 -0
- package/dist/saveForm--V1urnNV.mjs +0 -4
- package/dist/saveForm-Be6SR6v7.js +0 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DKlUpwKi.js +0 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DKlUpwKi.js.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DtJo9uuL.mjs +0 -314
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DtJo9uuL.mjs.gz +0 -0
- package/dist/scan-BQyz14fg.mjs +0 -544
- package/dist/scan-BQyz14fg.mjs.gz +0 -0
- package/dist/scan-wjVJ3US1.js +0 -1
- package/dist/scan-wjVJ3US1.js.gz +0 -0
- package/dist/search-BsJPGTc6.mjs +0 -85
- package/dist/search-BsJPGTc6.mjs.gz +0 -0
- package/dist/search-Dd-SM8n-.js +0 -1
- package/dist/search-Dd-SM8n-.js.gz +0 -0
- package/dist/selectConfig-B-IsBEI9.js +0 -1
- package/dist/selectConfig-B-IsBEI9.js.gz +0 -0
- package/dist/selectConfig-DXiqxrq7.mjs +0 -536
- package/dist/selectConfig-DXiqxrq7.mjs.gz +0 -0
- package/dist/subItem-BPtYAXA_.mjs +0 -66
- package/dist/subItem-BPtYAXA_.mjs.gz +0 -0
- package/dist/subItem-CmCqvmml.js +0 -1
- package/dist/subItem-CmCqvmml.js.gz +0 -0
- package/dist/tagsView-Be1sOuWt.js +0 -6
- package/dist/tagsView-Be1sOuWt.js.gz +0 -0
- package/dist/tagsView-sKCtZM47.mjs +0 -1568
- package/dist/tagsView-sKCtZM47.mjs.gz +0 -0
- package/dist/transverse-BBpJbnA-.js +0 -1
- package/dist/transverse-BBpJbnA-.js.gz +0 -0
- package/dist/transverse-DJPzBKko.mjs +0 -51
- package/dist/transverse-DJPzBKko.mjs.gz +0 -0
- package/dist/trtcUI-Bb3v7PlV.js +0 -3
- package/dist/trtcUI-Bb3v7PlV.js.gz +0 -0
- package/dist/trtcUI-k53ICtTl.mjs +0 -101
- package/dist/trtcUI-k53ICtTl.mjs.gz +0 -0
- package/dist/types/api/bizApiController/index.d.ts +0 -5
- package/dist/types/api/bizApiController/type.d.ts +0 -19
- package/dist/types/api/btnConfigController/index.d.ts +0 -8
- package/dist/types/api/btnConfigController/type.d.ts +0 -76
- package/dist/types/api/businessController/index.d.ts +0 -4
- package/dist/types/api/businessController/type.d.ts +0 -24
- package/dist/types/api/dataPermissionController/index.d.ts +0 -6
- package/dist/types/api/dataPermissionController/type.d.ts +0 -33
- package/dist/types/api/dictController/index.d.ts +0 -12
- package/dist/types/api/dictController/type.d.ts +0 -96
- package/dist/types/api/fieldConfigController/index.d.ts +0 -17
- package/dist/types/api/fieldConfigController/type.d.ts +0 -271
- package/dist/types/api/fileController/index.d.ts +0 -19
- package/dist/types/api/fileController/type.d.ts +0 -49
- package/dist/types/api/getApiController/index.d.ts +0 -4
- package/dist/types/api/index.d.ts +0 -22
- package/dist/types/api/loginController/index.d.ts +0 -6
- package/dist/types/api/loginController/type.d.ts +0 -2
- package/dist/types/api/menuController/index.d.ts +0 -11
- package/dist/types/api/menuController/type.d.ts +0 -57
- package/dist/types/api/systemController/index.d.ts +0 -3
- package/dist/types/api/systemController/type.d.ts +0 -19
- package/dist/types/api/userController/index.d.ts +0 -3
- package/dist/types/api/userController/type.d.ts +0 -18
- package/dist/types/components/base/hsAffix/src/hsAffix.vue.d.ts +0 -10
- package/dist/types/components/base/hsAlert/src/hsAlert.vue.d.ts +0 -10
- package/dist/types/components/base/hsAutocomplete/src/hsAutocomplete.vue.d.ts +0 -10
- package/dist/types/components/base/hsBadge/src/hsBadge.vue.d.ts +0 -10
- package/dist/types/components/base/hsButton/src/hsButton.vue.d.ts +0 -14
- package/dist/types/components/base/hsButton/src/hsButtonGroup.vue.d.ts +0 -8
- package/dist/types/components/base/hsButton/useButtonEvents.d.ts +0 -9
- package/dist/types/components/base/hsCalendar/src/hsCalendar.vue.d.ts +0 -10
- package/dist/types/components/base/hsCarousel/src/hsCarousel.vue.d.ts +0 -10
- package/dist/types/components/base/hsCarousel/src/hsCarouselItem.vue.d.ts +0 -10
- package/dist/types/components/base/hsCascader/src/hsCascader.vue.d.ts +0 -10
- package/dist/types/components/base/hsCascader/src/hsCascaderPanel.vue.d.ts +0 -10
- package/dist/types/components/base/hsCheckbox/src/hsCheckbox.vue.d.ts +0 -10
- package/dist/types/components/base/hsCheckbox/src/hsCheckboxButton.vue.d.ts +0 -10
- package/dist/types/components/base/hsCheckbox/src/hsCheckboxGroup.vue.d.ts +0 -10
- package/dist/types/components/base/hsCol/src/hsCol.vue.d.ts +0 -10
- package/dist/types/components/base/hsCollapse/src/hsCollapse.vue.d.ts +0 -10
- package/dist/types/components/base/hsCollapse/src/hsCollapseItem.vue.d.ts +0 -10
- package/dist/types/components/base/hsColorPicker/src/hsColorPicker.vue.d.ts +0 -5
- package/dist/types/components/base/hsDatePicker/src/hsDatePicker.vue.d.ts +0 -10
- package/dist/types/components/base/hsDialog/src/hsDialog.vue.d.ts +0 -10
- package/dist/types/components/base/hsDrawer/src/hsDrawer.vue.d.ts +0 -10
- package/dist/types/components/base/hsDropdown/src/hsDropdown.vue.d.ts +0 -10
- package/dist/types/components/base/hsDropdown/src/hsDropdownItem.vue.d.ts +0 -10
- package/dist/types/components/base/hsDropdown/src/hsDropdownMenu.vue.d.ts +0 -10
- package/dist/types/components/base/hsEmpty/src/hsEmpty.vue.d.ts +0 -12
- package/dist/types/components/base/hsForm/src/hsForm.vue.d.ts +0 -10
- package/dist/types/components/base/hsForm/src/hsFormItem.vue.d.ts +0 -10
- package/dist/types/components/base/hsGetApi/src/hsGetApis.vue.d.ts +0 -3
- package/dist/types/components/base/hsGetApi/useGetApis.d.ts +0 -126
- package/dist/types/components/base/hsImage/src/hsImage.vue.d.ts +0 -12
- package/dist/types/components/base/hsImageViewer/src/hsImageViewer.vue.d.ts +0 -10
- package/dist/types/components/base/hsInput/src/hsInput.vue.d.ts +0 -11
- package/dist/types/components/base/hsInput/useInputEvents.d.ts +0 -13
- package/dist/types/components/base/hsInputNumber/src/hsInputNumber.vue.d.ts +0 -5
- package/dist/types/components/base/hsPopconfirm/src/hsPopconfirm.vue.d.ts +0 -10
- package/dist/types/components/base/hsPopover/src/hsPopover.vue.d.ts +0 -10
- package/dist/types/components/base/hsProgress/src/hsProgress.vue.d.ts +0 -10
- package/dist/types/components/base/hsRadio/src/hsRadio.vue.d.ts +0 -10
- package/dist/types/components/base/hsRadio/src/hsRadioButton.vue.d.ts +0 -10
- package/dist/types/components/base/hsRadio/src/hsRadioGroup.vue.d.ts +0 -10
- package/dist/types/components/base/hsRate/src/hsRate.vue.d.ts +0 -5
- package/dist/types/components/base/hsResult/src/hsResult.vue.d.ts +0 -10
- package/dist/types/components/base/hsRow/src/hsRow.vue.d.ts +0 -10
- package/dist/types/components/base/hsScrollbar/src/hsScrollbar.vue.d.ts +0 -11
- package/dist/types/components/base/hsSelect/src/hsOption.vue.d.ts +0 -8
- package/dist/types/components/base/hsSelect/src/hsOptionGroup.vue.d.ts +0 -8
- package/dist/types/components/base/hsSelect/src/hsSelect.vue.d.ts +0 -24
- package/dist/types/components/base/hsSelect/useSelectEvents.d.ts +0 -15
- package/dist/types/components/base/hsSlider/src/hsSlider.vue.d.ts +0 -5
- package/dist/types/components/base/hsSteps/src/hsStep.vue.d.ts +0 -10
- package/dist/types/components/base/hsSteps/src/hsSteps.vue.d.ts +0 -10
- package/dist/types/components/base/hsSwitch/src/hsSwitch.vue.d.ts +0 -10
- package/dist/types/components/base/hsTabs/src/hsTabPane.vue.d.ts +0 -10
- package/dist/types/components/base/hsTabs/src/hsTabs.vue.d.ts +0 -10
- package/dist/types/components/base/hsTag/src/hsCheckTag.vue.d.ts +0 -10
- package/dist/types/components/base/hsTag/src/hsTag.vue.d.ts +0 -10
- package/dist/types/components/base/hsTooltip/src/hsTooltip.vue.d.ts +0 -10
- package/dist/types/components/base/hsTour/src/hsTour.vue.d.ts +0 -10
- package/dist/types/components/base/hsTour/src/hsTourStep.vue.d.ts +0 -10
- package/dist/types/components/base/hsTransfer/src/hsTransfer.vue.d.ts +0 -10
- package/dist/types/components/base/hsTree/src/hsTree.vue.d.ts +0 -6
- package/dist/types/components/base/hsTreeSelect/src/hsTreeSelect.vue.d.ts +0 -22
- package/dist/types/components/base/hsUpload/src/hsUpload.vue.d.ts +0 -26
- package/dist/types/components/base/hsWatermark/src/hsWatermark.vue.d.ts +0 -10
- package/dist/types/components/business/bcAutoComplete/bcAutoComplete.vue.d.ts +0 -57
- package/dist/types/components/business/bcAutoComplete/defaultData.d.ts +0 -9
- package/dist/types/components/business/bcAutoComplete/useAutoComplete.d.ts +0 -7
- package/dist/types/components/business/bcBtn/bcBtn.vue.d.ts +0 -21
- package/dist/types/components/business/bcCheckbox/bcCheckbox.vue.d.ts +0 -25
- package/dist/types/components/business/bcForm/baseForm.vue.d.ts +0 -39
- package/dist/types/components/business/bcForm/bcForm.vue.d.ts +0 -37
- package/dist/types/components/business/bcForm/type.d.ts +0 -16
- package/dist/types/components/business/bcFormTable/bcFormTable.vue.d.ts +0 -101
- package/dist/types/components/business/bcFormTable/bcTable.vue.d.ts +0 -32
- package/dist/types/components/business/bcFormTable/components/contextBody/contextBody.vue.d.ts +0 -45
- package/dist/types/components/business/bcFormTable/components/contextBody/useContextMenu.d.ts +0 -20
- package/dist/types/components/business/bcFormTable/components/form/components/sortForm/index.d.ts +0 -2
- package/dist/types/components/business/bcFormTable/components/form/components/sortForm/sortForm.vue.d.ts +0 -19
- package/dist/types/components/business/bcFormTable/components/form/formSearchBtn.vue.d.ts +0 -76
- package/dist/types/components/business/bcFormTable/components/index.d.ts +0 -6
- package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/index.d.ts +0 -2
- package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/sortColumn.vue.d.ts +0 -21
- package/dist/types/components/business/bcFormTable/components/table/table.vue.d.ts +0 -59
- package/dist/types/components/business/bcFormTable/components/table/useTable.d.ts +0 -16
- package/dist/types/components/business/bcFormTable/components/table/useTableHeight.d.ts +0 -11
- package/dist/types/components/business/bcFormTable/components/tabs/tabs.vue.d.ts +0 -25
- package/dist/types/components/business/bcFormTable/methods/cellDetailMethod.d.ts +0 -3
- package/dist/types/components/business/bcFormTable/methods/filterAgeMethod.d.ts +0 -3
- package/dist/types/components/business/bcFormTable/methods/footerMethod.d.ts +0 -4
- package/dist/types/components/business/bcFormTable/methods/formBtnMethod.d.ts +0 -8
- package/dist/types/components/business/bcFormTable/methods/index.d.ts +0 -2
- package/dist/types/components/business/bcFormTable/utils/exportSelected.d.ts +0 -11
- package/dist/types/components/business/bcFormTable/utils/onFormKey.d.ts +0 -17
- package/dist/types/components/business/bcFormTable/utils/onTableKey.d.ts +0 -17
- package/dist/types/components/business/bcFormTable/utils/parseTable.d.ts +0 -108
- package/dist/types/components/business/bcFormTable/utils/store.d.ts +0 -2937
- package/dist/types/components/business/bcFormTable/utils/useButon.d.ts +0 -13
- package/dist/types/components/business/bcFormTable/utils/useTableHeight.d.ts +0 -14
- package/dist/types/components/business/bcGroupComponent/date.vue.d.ts +0 -36
- package/dist/types/components/business/bcIcon/bcIcon.vue.d.ts +0 -27
- package/dist/types/components/business/bcPageConfig/bcPageConfig.vue.d.ts +0 -11
- package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue.d.ts +0 -52
- package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue.d.ts +0 -23
- package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue.d.ts +0 -21
- package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue.d.ts +0 -19
- package/dist/types/components/business/bcPageConfig/components/hsBtn/useAttrBtn.d.ts +0 -15
- package/dist/types/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.d.ts +0 -9
- package/dist/types/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.d.ts +0 -32
- package/dist/types/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue.d.ts +0 -34
- package/dist/types/components/business/bcPageConfig/components/hsExpand/useExpand.d.ts +0 -3
- package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue.d.ts +0 -26
- package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue.d.ts +0 -23
- package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue.d.ts +0 -9
- package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue.d.ts +0 -9
- package/dist/types/components/business/bcPageConfig/components/hsForm/useAttrForm.d.ts +0 -39
- package/dist/types/components/business/bcPageConfig/components/hsForm/useFormListConfig.d.ts +0 -9
- package/dist/types/components/business/bcPageConfig/components/hsForm/useFormParse.d.ts +0 -7
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.d.ts +0 -70
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/src/cloneConfigDialog.vue.d.ts +0 -5
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue.d.ts +0 -53
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useCloneConfigDialog.d.ts +0 -7043
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.d.ts +0 -28
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/contextmenu.vue.d.ts +0 -36
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue.d.ts +0 -52
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue.d.ts +0 -45
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue.d.ts +0 -31
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue.d.ts +0 -27
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableDynamicConfigList.vue.d.ts +0 -23
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue.d.ts +0 -11
- package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue.d.ts +0 -9
- package/dist/types/components/business/bcPageConfig/components/hsTables/useAttrTable.d.ts +0 -49
- package/dist/types/components/business/bcPageConfig/components/hsTables/useContextMenu.d.ts +0 -599
- package/dist/types/components/business/bcPageConfig/components/hsTables/useTableConfigList.d.ts +0 -12
- package/dist/types/components/business/bcPageConfig/components/hsTables/useTableDynamicConfigList.d.ts +0 -12
- package/dist/types/components/business/bcPageConfig/components/hsTables/useTableParse.d.ts +0 -7
- package/dist/types/components/business/bcPageConfig/default/baseBtnConfig.d.ts +0 -151
- package/dist/types/components/business/bcPageConfig/default/baseFormConfig.d.ts +0 -731
- package/dist/types/components/business/bcPageConfig/usePageConfig.d.ts +0 -20
- package/dist/types/components/business/bcPageTree/bcPageTree.vue.d.ts +0 -65
- package/dist/types/components/business/bcPageTree/usePageTree.d.ts +0 -39
- package/dist/types/components/business/bcPageTreeBySystem/bcPageTreeBySystem.vue.d.ts +0 -12
- package/dist/types/components/business/bcPageTreeBySystem/usePageTreeBySystem.d.ts +0 -36
- package/dist/types/components/business/bcRadio/bcRadio.vue.d.ts +0 -20
- package/dist/types/components/business/bcSelect/bcSelect.vue.d.ts +0 -35
- package/dist/types/components/business/bcSwitchSystems/bcSwitchSystems.vue.d.ts +0 -28
- package/dist/types/components/business/bcSwitchSystems/useSwitchSystems.d.ts +0 -10
- package/dist/types/components/business/bcTreeSelect/bcTreeSelect.vue.d.ts +0 -33
- package/dist/types/components/business/bcUpload/bcUpload.vue.d.ts +0 -178
- package/dist/types/components/business/bcUpload/component/highSpeedCamera.vue.d.ts +0 -17
- package/dist/types/components/business/bcUpload/component/type.d.ts +0 -44
- package/dist/types/components/business/bcUpload/type.d.ts +0 -29
- package/dist/types/components/business/bcUpload/useUpload.d.ts +0 -26
- package/dist/types/components/business/cardID/type.d.ts +0 -0
- package/dist/types/components/business/cardID/useCardID.d.ts +0 -0
- package/dist/types/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/autocompleteAttrConfig/config.d.ts +0 -44
- package/dist/types/components/config/baseForm.vue.d.ts +0 -117
- package/dist/types/components/config/buttonAttrConfig/buttonAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/buttonAttrConfig/config.d.ts +0 -87
- package/dist/types/components/config/cascaderAttrConfig/cascaderAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/cascaderAttrConfig/config.d.ts +0 -99
- package/dist/types/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/cascaderPanelAttrConfig/config.d.ts +0 -71
- package/dist/types/components/config/checkboxAttrConfig/checkboxAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/checkboxAttrConfig/config.d.ts +0 -86
- package/dist/types/components/config/datePickerAttrConfig/config.d.ts +0 -72
- package/dist/types/components/config/datePickerAttrConfig/datePickerAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/inputAttrConfig/config.d.ts +0 -95
- package/dist/types/components/config/inputAttrConfig/inputAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/inputAttrConfig/inputEventConfig.vue.d.ts +0 -15
- package/dist/types/components/config/inputNumberAttrConfig/config.d.ts +0 -65
- package/dist/types/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/radioAttrConfig/config.d.ts +0 -82
- package/dist/types/components/config/radioAttrConfig/radioAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/selectAttrConfig/config.d.ts +0 -110
- package/dist/types/components/config/selectAttrConfig/selectAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/switchAttrConfig/config.d.ts +0 -63
- package/dist/types/components/config/switchAttrConfig/switchAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/treeSelectAttrConfig/config.d.ts +0 -97
- package/dist/types/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/config/type/formType.d.ts +0 -20
- package/dist/types/components/config/uploadAttrConfig/config.d.ts +0 -64
- package/dist/types/components/config/uploadAttrConfig/uploadAttrConfig.vue.d.ts +0 -24
- package/dist/types/components/iconSelector/index.vue.d.ts +0 -89
- package/dist/types/components/iconSelector/list.vue.d.ts +0 -37
- package/dist/types/components/svgIcon/index.vue.d.ts +0 -27
- package/dist/types/directive/authDirective.d.ts +0 -9
- package/dist/types/directive/customDirective.d.ts +0 -16
- package/dist/types/directive/index.d.ts +0 -9
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/useCrypto.d.ts +0 -6
- package/dist/types/hooks/useExpose.d.ts +0 -24
- package/dist/types/layout/component/aside.vue.d.ts +0 -3
- package/dist/types/layout/component/columnsAside.vue.d.ts +0 -3
- package/dist/types/layout/component/header.vue.d.ts +0 -3
- package/dist/types/layout/component/main.vue.d.ts +0 -5
- package/dist/types/layout/footer/index.vue.d.ts +0 -3
- package/dist/types/layout/index.vue.d.ts +0 -3
- package/dist/types/layout/logo/index.vue.d.ts +0 -3
- package/dist/types/layout/main/classic.vue.d.ts +0 -3
- package/dist/types/layout/main/columns.vue.d.ts +0 -3
- package/dist/types/layout/main/defaults.vue.d.ts +0 -3
- package/dist/types/layout/main/transverse.vue.d.ts +0 -3
- package/dist/types/layout/navBars/index.vue.d.ts +0 -3
- package/dist/types/layout/navBars/tagsView/contextmenu.vue.d.ts +0 -27
- package/dist/types/layout/navBars/tagsView/tagsView.vue.d.ts +0 -3
- package/dist/types/layout/navBars/topBar/index.vue.d.ts +0 -3
- package/dist/types/layout/navBars/topBar/search.vue.d.ts +0 -5
- package/dist/types/layout/navBars/topBar/user.vue.d.ts +0 -3
- package/dist/types/layout/navBars/topBar/userNews.vue.d.ts +0 -3
- package/dist/types/layout/navMenu/horizontal.vue.d.ts +0 -43
- package/dist/types/layout/navMenu/subItem.vue.d.ts +0 -43
- package/dist/types/layout/navMenu/vertical.vue.d.ts +0 -43
- package/dist/types/layout/routerView/iframes.vue.d.ts +0 -33
- package/dist/types/layout/routerView/link.vue.d.ts +0 -3
- package/dist/types/layout/routerView/parent.vue.d.ts +0 -3
- package/dist/types/main.d.ts +0 -1
- package/dist/types/router/backEnd.d.ts +0 -58
- package/dist/types/router/frontEnd.d.ts +0 -61
- package/dist/types/router/index.d.ts +0 -23
- package/dist/types/router/route.d.ts +0 -57
- package/dist/types/stores/index.d.ts +0 -3
- package/dist/types/stores/keepAliveNames.d.ts +0 -16
- package/dist/types/stores/requestOldRoutes.d.ts +0 -8
- package/dist/types/stores/routesList.d.ts +0 -12
- package/dist/types/stores/tagsViewRoutes.d.ts +0 -10
- package/dist/types/stores/themeConfig.d.ts +0 -10
- package/dist/types/stores/userInfo.d.ts +0 -20
- package/dist/types/utils/arrayOperation.d.ts +0 -21
- package/dist/types/utils/authFunction.d.ts +0 -18
- package/dist/types/utils/build.d.ts +0 -12
- package/dist/types/utils/common.d.ts +0 -9
- package/dist/types/utils/commonFunction.d.ts +0 -18
- package/dist/types/utils/device_info.d.ts +0 -14
- package/dist/types/utils/download.d.ts +0 -6
- package/dist/types/utils/formatTime.d.ts +0 -37
- package/dist/types/utils/getDataType.d.ts +0 -9
- package/dist/types/utils/getStyleSheets.d.ts +0 -11
- package/dist/types/utils/index.d.ts +0 -21
- package/dist/types/utils/loading.d.ts +0 -10
- package/dist/types/utils/mitt.d.ts +0 -3
- package/dist/types/utils/other.d.ts +0 -75
- package/dist/types/utils/request/index.d.ts +0 -2
- package/dist/types/utils/request/interceptors/request/authorization.interceptor.d.ts +0 -4
- package/dist/types/utils/request/interceptors/request/index.d.ts +0 -2
- package/dist/types/utils/request/interceptors/request/result.type.interceptor.d.ts +0 -4
- package/dist/types/utils/request/interceptors/request/undefined-params-handler.interceptor.d.ts +0 -13
- package/dist/types/utils/request/interceptors/response/error-handler.interceptor.d.ts +0 -4
- package/dist/types/utils/request/interceptors/response/index.d.ts +0 -2
- package/dist/types/utils/request/request.d.ts +0 -6
- package/dist/types/utils/request2.d.ts +0 -3
- package/dist/types/utils/setIconfont.d.ts +0 -11
- package/dist/types/utils/showMessage.d.ts +0 -6
- package/dist/types/utils/showMessageBox.d.ts +0 -6
- package/dist/types/utils/showNotification.d.ts +0 -6
- package/dist/types/utils/showPopup/index.d.ts +0 -35
- package/dist/types/utils/showPopup/showPopup.vue.d.ts +0 -44
- package/dist/types/utils/storage.d.ts +0 -84
- package/dist/types/utils/theme.d.ts +0 -13
- package/dist/types/utils/toolsValidate.d.ts +0 -149
- package/dist/types/utils/watermark.d.ts +0 -9
- package/dist/types/views/config/buttonManagement/btnIndex.vue.d.ts +0 -3
- package/dist/types/views/config/buttonManagement/dialog.vue.d.ts +0 -3
- package/dist/types/views/config/buttonManagement/index.vue.d.ts +0 -3
- package/dist/types/views/config/dataAuth/dialog.vue.d.ts +0 -32
- package/dist/types/views/config/dataAuth/index.vue.d.ts +0 -3
- package/dist/types/views/config/dataAuth/useDataAuth.d.ts +0 -12
- package/dist/types/views/config/dataDict/components/dict/dictDialog.vue.d.ts +0 -9
- package/dist/types/views/config/dataDict/components/dictItem/dictItemDialog.vue.d.ts +0 -76
- package/dist/types/views/config/dataDict/index.vue.d.ts +0 -3
- package/dist/types/views/config/dataDict/useDataDict.d.ts +0 -156
- package/dist/types/views/config/fieldPool/components/dialog/index.vue.d.ts +0 -21
- package/dist/types/views/config/fieldPool/components/dialog/useDialog.d.ts +0 -46
- package/dist/types/views/config/fieldPool/components/formAttr/index.vue.d.ts +0 -3
- package/dist/types/views/config/fieldPool/components/formAttr/useFormAttr.d.ts +0 -1
- package/dist/types/views/config/fieldPool/components/searchFormAttr/index.vue.d.ts +0 -13
- package/dist/types/views/config/fieldPool/components/tableAttr/index.vue.d.ts +0 -13
- package/dist/types/views/config/fieldPool/index.vue.d.ts +0 -3
- package/dist/types/views/config/fieldPool/useFieldPool.d.ts +0 -10
- package/dist/types/views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue.d.ts +0 -52
- package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue.d.ts +0 -23
- package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue.d.ts +0 -19
- package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue.d.ts +0 -9
- package/dist/types/views/config/formSetting/components/hsBtn/useAttrBtn.d.ts +0 -15
- package/dist/types/views/config/formSetting/components/hsBtn/useBtnConfigList.d.ts +0 -9
- package/dist/types/views/config/formSetting/components/hsBtn/useBtnItemConfig.d.ts +0 -32
- package/dist/types/views/config/formSetting/components/hsExpand/src/hsExpand.vue.d.ts +0 -56
- package/dist/types/views/config/formSetting/components/hsExpand/type.d.ts +0 -6
- package/dist/types/views/config/formSetting/components/hsExpand/useExpand.d.ts +0 -3
- package/dist/types/views/config/formSetting/components/hsForm/src/contextmenu.vue.d.ts +0 -36
- package/dist/types/views/config/formSetting/components/hsForm/src/hsAttrForm.vue.d.ts +0 -24
- package/dist/types/views/config/formSetting/components/hsForm/src/hsFormConfig.vue.d.ts +0 -97
- package/dist/types/views/config/formSetting/components/hsForm/src/hsFormConfigList.vue.d.ts +0 -34
- package/dist/types/views/config/formSetting/components/hsForm/src/hsFormPanel.vue.d.ts +0 -34
- package/dist/types/views/config/formSetting/components/hsForm/src/hsFormParse.vue.d.ts +0 -9
- package/dist/types/views/config/formSetting/components/hsForm/useAttrForm.d.ts +0 -35
- package/dist/types/views/config/formSetting/components/hsForm/useFormListConfig.d.ts +0 -30
- package/dist/types/views/config/formSetting/components/hsForm/useFormParse.d.ts +0 -7
- package/dist/types/views/config/formSetting/components/hsSaveForm/saveFormConfig.d.ts +0 -100
- package/dist/types/views/config/formSetting/components/hsSaveForm/src/cloneConfigDialog.vue.d.ts +0 -5
- package/dist/types/views/config/formSetting/components/hsSaveForm/src/saveForm.vue.d.ts +0 -53
- package/dist/types/views/config/formSetting/components/hsSaveForm/useCloneConfigDialog.d.ts +0 -1311
- package/dist/types/views/config/formSetting/components/hsSaveForm/useSaveForm.d.ts +0 -27
- package/dist/types/views/config/formSetting/components/selectConfig/config.d.ts +0 -80
- package/dist/types/views/config/formSetting/components/selectConfig/selectConfig.vue.d.ts +0 -24
- package/dist/types/views/config/formSetting/default/baseBtnConfig.d.ts +0 -150
- package/dist/types/views/config/formSetting/default/baseFormConfig.d.ts +0 -441
- package/dist/types/views/config/formSetting/formConfig.vue.d.ts +0 -24
- package/dist/types/views/config/formSetting/index.vue.d.ts +0 -3
- package/dist/types/views/config/formSetting/useForm.d.ts +0 -18
- package/dist/types/views/config/formSetting/useFormConfig.d.ts +0 -10
- package/dist/types/views/config/index.vue.d.ts +0 -3
- package/dist/types/views/config/pageElement/components/hsPanelItem/hsPanelItem.vue.d.ts +0 -36
- package/dist/types/views/config/pageElement/components/hsPanelItem/usePanelItem.d.ts +0 -7
- package/dist/types/views/config/pageElement/index.vue.d.ts +0 -3
- package/dist/types/views/config/pageElement/usePageElement.d.ts +0 -108
- package/dist/types/views/config/parseAPI/index.vue.d.ts +0 -3
- package/dist/types/views/config/table/index.vue.d.ts +0 -3
- package/dist/types/views/config/table/usePage.d.ts +0 -15
- package/dist/types/views/error/401.vue.d.ts +0 -3
- package/dist/types/views/error/404.vue.d.ts +0 -3
- package/dist/types/views/home/index.vue.d.ts +0 -3
- package/dist/types/views/login/component/account.vue.d.ts +0 -3
- package/dist/types/views/login/component/mobile.vue.d.ts +0 -3
- package/dist/types/views/login/component/scan.vue.d.ts +0 -3
- package/dist/types/views/login/index.vue.d.ts +0 -3
- package/dist/types/views/system/dept/dialog.vue.d.ts +0 -9
- package/dist/types/views/system/dept/index.vue.d.ts +0 -3
- package/dist/types/views/system/dic/dialog.vue.d.ts +0 -9
- package/dist/types/views/system/dic/index.vue.d.ts +0 -3
- package/dist/types/views/system/menu/dialog.vue.d.ts +0 -28
- package/dist/types/views/system/menu/index.vue.d.ts +0 -3
- package/dist/types/views/system/role/component/roleItem.vue.d.ts +0 -3
- package/dist/types/views/system/role/component/userSelect.vue.d.ts +0 -9
- package/dist/types/views/system/role/index.vue.d.ts +0 -3
- package/dist/types/views/system/user/dialog.vue.d.ts +0 -9
- package/dist/types/views/system/user/index.vue.d.ts +0 -3
- package/dist/types/views/test/form/index.vue.d.ts +0 -3
- package/dist/types/views/test/rtc/components/trtcUI.vue.d.ts +0 -3
- package/dist/types/views/test/rtc/hooks/useHsOperate.d.ts +0 -25
- package/dist/types/views/test/rtc/hooks/useHsRoom.d.ts +0 -6
- package/dist/types/views/test/rtc/hooks/useRoomEvent.d.ts +0 -14
- package/dist/types/views/test/rtc/index.vue.d.ts +0 -3
- package/dist/types/views/test/rtc/util/generateTestUserSig.d.ts +0 -11
- package/dist/types/views/test/rtc/util/utils.d.ts +0 -4
- package/dist/types/views/test/table/components/editDialog/editDialog.vue.d.ts +0 -32
- package/dist/types/views/test/table/components/editDialog/index.d.ts +0 -4
- package/dist/types/views/test/table/index.vue.d.ts +0 -9
- package/dist/types/views/test/test/KeyboardDirective.d.ts +0 -4
- package/dist/types/views/test/test/MqttService.d.ts +0 -38
- package/dist/types/views/test/test/MqttServiceInstance.d.ts +0 -4
- package/dist/types/views/test/test/WebSocketService.d.ts +0 -65
- package/dist/types/views/test/test/index.vue.d.ts +0 -3
- package/dist/types/views/test/test/uploadAvatar.vue.d.ts +0 -37
- package/dist/types/views/test/test/useUpload.d.ts +0 -3
- package/dist/uploadAvatar-DD-043dD.mjs +0 -1267
- package/dist/uploadAvatar-DD-043dD.mjs.gz +0 -0
- package/dist/uploadAvatar-DMRdwfIB.js +0 -7
- package/dist/uploadAvatar-DMRdwfIB.js.gz +0 -0
- package/dist/user-Bckm-qGv.mjs +0 -291
- package/dist/user-Bckm-qGv.mjs.gz +0 -0
- package/dist/user-C3t1kSUD.js +0 -1
- package/dist/user-C3t1kSUD.js.gz +0 -0
- package/dist/userNews-CrYB6Mro.js +0 -1
- package/dist/userNews-CrYB6Mro.js.gz +0 -0
- package/dist/userNews-Dt8i9TwD.mjs +0 -61
- package/dist/userNews-Dt8i9TwD.mjs.gz +0 -0
- package/dist/userSelect-IeoOL1Kt.js +0 -1
- package/dist/userSelect-sQz51344.mjs +0 -4
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-B6FfwVDb.mjs +0 -80
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-B6FfwVDb.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DzfEm-gD.js +0 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DzfEm-gD.js.gz +0 -0
- package/dist/vertical-B0uX5sR9.mjs +0 -101
- package/dist/vertical-B0uX5sR9.mjs.gz +0 -0
- package/dist/vertical-ZDoTBraY.js +0 -1
- package/dist/vertical-ZDoTBraY.js.gz +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";var Aa=Object.defineProperty;var Ia=(e,i,t)=>i in e?Aa(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var Le=(e,i,t)=>(Ia(e,typeof i!="symbol"?i+"":i,t),t),zr=(e,i,t)=>{if(!i.has(e))throw TypeError("Cannot "+t)};var B=(e,i,t)=>(zr(e,i,"read from private field"),t?t.call(e):i.get(e)),Ce=(e,i,t)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,t)},Te=(e,i,t,l)=>(zr(e,i,"write to private field"),l?l.call(e,t):i.set(e,t),t);var _r=(e,i,t,l)=>({set _(h){Te(e,i,h,t)},get _(){return B(e,i,l)}}),Ie=(e,i,t)=>(zr(e,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Me=require("vue"),Mo=require("./index-BrVgKPNl.js");require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-1q5Jq5S0.js");var Pn=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,ka=Object.getOwnPropertyNames,Oa=Object.prototype.hasOwnProperty,Je=(e,i)=>()=>(e&&(i=e(e=0)),i),me=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports),tr=(e,i)=>{for(var t in i)Pn(e,t,{get:i[t],enumerable:!0})},Ca=(e,i,t,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of ka(i))!Oa.call(e,h)&&h!==t&&Pn(e,h,{get:()=>i[h],enumerable:!(l=Ta(i,h))||l.enumerable});return e},Ue=e=>Ca(Pn({},"__esModule",{value:!0}),e),lt,oe=Je(()=>{lt={deviceMemory:8,hardwareConcurrency:8,language:"en-US"}}),Ke={};tr(Ke,{_debugEnd:()=>Di,_debugProcess:()=>ji,_events:()=>en,_eventsCount:()=>tn,_exiting:()=>Ai,_fatalExceptions:()=>Ui,_getActiveHandles:()=>Wo,_getActiveRequests:()=>Fo,_kill:()=>ki,_linkedBinding:()=>jo,_maxListeners:()=>Zi,_preload_modules:()=>Ji,_rawDebug:()=>_i,_startProfilerIdleNotifier:()=>Fi,_stopProfilerIdleNotifier:()=>Wi,_tickCallback:()=>Ni,abort:()=>Hi,addListener:()=>rn,allowedNodeEnvironmentFlags:()=>xi,arch:()=>li,argv:()=>ci,argv0:()=>Gi,assert:()=>$o,binding:()=>bi,chdir:()=>wi,config:()=>Ii,cpuUsage:()=>gr,cwd:()=>yi,debugPort:()=>Qi,default:()=>xn,dlopen:()=>Do,domain:()=>Si,emit:()=>ln,emitWarning:()=>gi,env:()=>hi,execArgv:()=>fi,execPath:()=>Yi,exit:()=>Pi,features:()=>Mi,hasUncaughtExceptionCaptureCallback:()=>qo,hrtime:()=>kr,kill:()=>Ri,listeners:()=>Ho,memoryUsage:()=>Ci,moduleLoadList:()=>Ei,nextTick:()=>Lo,off:()=>on,on:()=>_t,once:()=>nn,openStdin:()=>Bi,pid:()=>zi,platform:()=>ui,ppid:()=>Ki,prependListener:()=>un,prependOnceListener:()=>hn,reallyExit:()=>Ti,release:()=>vi,removeAllListeners:()=>an,removeListener:()=>sn,resourceUsage:()=>Oi,setSourceMapsEnabled:()=>Xi,setUncaughtExceptionCaptureCallback:()=>Li,stderr:()=>qi,stdin:()=>Vi,stdout:()=>$i,title:()=>ai,umask:()=>mi,uptime:()=>Vo,version:()=>di,versions:()=>pi});function Bn(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Ra(){!Xt||!Gt||(Xt=!1,Gt.length?yt=Gt.concat(yt):yr=-1,yt.length&&Uo())}function Uo(){if(!Xt){var e=setTimeout(Ra,0);Xt=!0;for(var i=yt.length;i;){for(Gt=yt,yt=[];++yr<i;)Gt&&Gt[yr].run();yr=-1,i=yt.length}Gt=null,Xt=!1,clearTimeout(e)}}function Lo(e){var i=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)i[t-1]=arguments[t];yt.push(new No(e,i)),yt.length===1&&!Xt&&setTimeout(Uo,0)}function No(e,i){this.fun=e,this.array=i}function Ze(){}function jo(e){Bn("_linkedBinding")}function Do(e){Bn("dlopen")}function Fo(){return[]}function Wo(){return[]}function $o(e,i){if(!e)throw new Error(i||"assertion error")}function qo(){return!1}function Vo(){return It.now()/1e3}function kr(e){var i=Math.floor((Date.now()-It.now())*.001),t=It.now()*.001,l=Math.floor(t)+i,h=Math.floor(t%1*1e9);return e&&(l=l-e[0],h=h-e[1],h<0&&(l--,h+=Or)),[l,h]}function _t(){return xn}function Ho(e){return[]}var yt,Xt,Gt,yr,ai,li,ui,hi,ci,fi,di,pi,gi,bi,mi,yi,wi,vi,_i,Ei,Si,Ai,Ii,Ti,ki,gr,Oi,Ci,Ri,Pi,Bi,xi,Mi,Ui,Li,Ni,ji,Di,Fi,Wi,$i,qi,Vi,Hi,zi,Ki,Yi,Qi,Gi,Ji,Xi,It,Kr,Or,Zi,en,tn,rn,nn,on,sn,an,ln,un,hn,xn,Pa=Je(()=>{ae(),se(),oe(),yt=[],Xt=!1,yr=-1,No.prototype.run=function(){this.fun.apply(null,this.array)},ai="browser",li="x64",ui="browser",hi={PATH:"/usr/bin",LANG:lt.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},ci=["/usr/bin/node"],fi=[],di="v16.8.0",pi={},gi=function(e,i){console.warn((i?i+": ":"")+e)},bi=function(e){Bn("binding")},mi=function(e){return 0},yi=function(){return"/"},wi=function(e){},vi={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},_i=Ze,Ei=[],Si={},Ai=!1,Ii={},Ti=Ze,ki=Ze,gr=function(){return{}},Oi=gr,Ci=gr,Ri=Ze,Pi=Ze,Bi=Ze,xi={},Mi={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Ui=Ze,Li=Ze,Ni=Ze,ji=Ze,Di=Ze,Fi=Ze,Wi=Ze,$i=void 0,qi=void 0,Vi=void 0,Hi=Ze,zi=2,Ki=1,Yi="/bin/usr/node",Qi=9229,Gi="node",Ji=[],Xi=Ze,It={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},It.now===void 0&&(Kr=Date.now(),It.timing&&It.timing.navigationStart&&(Kr=It.timing.navigationStart),It.now=()=>Date.now()-Kr),Or=1e9,kr.bigint=function(e){var i=kr(e);return typeof BigInt>"u"?i[0]*Or+i[1]:BigInt(i[0]*Or)+BigInt(i[1])},Zi=10,en={},tn=0,rn=_t,nn=_t,on=_t,sn=_t,an=_t,ln=Ze,un=_t,hn=_t,xn={version:di,versions:pi,arch:li,platform:ui,release:vi,_rawDebug:_i,moduleLoadList:Ei,binding:bi,_linkedBinding:jo,_events:en,_eventsCount:tn,_maxListeners:Zi,on:_t,addListener:rn,once:nn,off:on,removeListener:sn,removeAllListeners:an,emit:ln,prependListener:un,prependOnceListener:hn,listeners:Ho,domain:Si,_exiting:Ai,config:Ii,dlopen:Do,uptime:Vo,_getActiveRequests:Fo,_getActiveHandles:Wo,reallyExit:Ti,_kill:ki,cpuUsage:gr,resourceUsage:Oi,memoryUsage:Ci,kill:Ri,exit:Pi,openStdin:Bi,allowedNodeEnvironmentFlags:xi,assert:$o,features:Mi,_fatalExceptions:Ui,setUncaughtExceptionCaptureCallback:Li,hasUncaughtExceptionCaptureCallback:qo,emitWarning:gi,nextTick:Lo,_tickCallback:Ni,_debugProcess:ji,_debugEnd:Di,_startProfilerIdleNotifier:Fi,_stopProfilerIdleNotifier:Wi,stdout:$i,stdin:Vi,stderr:qi,abort:Hi,umask:mi,chdir:wi,cwd:yi,env:hi,title:ai,argv:ci,execArgv:fi,pid:zi,ppid:Ki,execPath:Yi,debugPort:Qi,hrtime:kr,argv0:Gi,_preload_modules:Ji,setSourceMapsEnabled:Xi}}),se=Je(()=>{Pa()}),et={};tr(et,{Buffer:()=>lr,INSPECT_MAX_BYTES:()=>zo,default:()=>Et,kMaxLength:()=>Ko});function Ba(){if(cn)return sr;cn=!0,sr.byteLength=s,sr.toByteArray=a,sr.fromByteArray=g;for(var e=[],i=[],t=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,o=l.length;h<o;++h)e[h]=l[h],i[l.charCodeAt(h)]=h;i[45]=62,i[95]=63;function r(b){var m=b.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=b.indexOf("=");y===-1&&(y=m);var I=y===m?0:4-y%4;return[y,I]}function s(b){var m=r(b),y=m[0],I=m[1];return(y+I)*3/4-I}function n(b,m,y){return(m+y)*3/4-y}function a(b){var m,y=r(b),I=y[0],U=y[1],k=new t(n(b,I,U)),T=0,D=U>0?I-4:I,F;for(F=0;F<D;F+=4)m=i[b.charCodeAt(F)]<<18|i[b.charCodeAt(F+1)]<<12|i[b.charCodeAt(F+2)]<<6|i[b.charCodeAt(F+3)],k[T++]=m>>16&255,k[T++]=m>>8&255,k[T++]=m&255;return U===2&&(m=i[b.charCodeAt(F)]<<2|i[b.charCodeAt(F+1)]>>4,k[T++]=m&255),U===1&&(m=i[b.charCodeAt(F)]<<10|i[b.charCodeAt(F+1)]<<4|i[b.charCodeAt(F+2)]>>2,k[T++]=m>>8&255,k[T++]=m&255),k}function c(b){return e[b>>18&63]+e[b>>12&63]+e[b>>6&63]+e[b&63]}function d(b,m,y){for(var I,U=[],k=m;k<y;k+=3)I=(b[k]<<16&16711680)+(b[k+1]<<8&65280)+(b[k+2]&255),U.push(c(I));return U.join("")}function g(b){for(var m,y=b.length,I=y%3,U=[],k=16383,T=0,D=y-I;T<D;T+=k)U.push(d(b,T,T+k>D?D:T+k));return I===1?(m=b[y-1],U.push(e[m>>2]+e[m<<4&63]+"==")):I===2&&(m=(b[y-2]<<8)+b[y-1],U.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),U.join("")}return sr}function xa(){return fn?br:(fn=!0,br.read=function(e,i,t,l,h){var o,r,s=h*8-l-1,n=(1<<s)-1,a=n>>1,c=-7,d=t?h-1:0,g=t?-1:1,b=e[i+d];for(d+=g,o=b&(1<<-c)-1,b>>=-c,c+=s;c>0;o=o*256+e[i+d],d+=g,c-=8);for(r=o&(1<<-c)-1,o>>=-c,c+=l;c>0;r=r*256+e[i+d],d+=g,c-=8);if(o===0)o=1-a;else{if(o===n)return r?NaN:(b?-1:1)*(1/0);r=r+Math.pow(2,l),o=o-a}return(b?-1:1)*r*Math.pow(2,o-l)},br.write=function(e,i,t,l,h,o){var r,s,n,a=o*8-h-1,c=(1<<a)-1,d=c>>1,g=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=l?0:o-1,m=l?1:-1,y=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(s=isNaN(i)?1:0,r=c):(r=Math.floor(Math.log(i)/Math.LN2),i*(n=Math.pow(2,-r))<1&&(r--,n*=2),r+d>=1?i+=g/n:i+=g*Math.pow(2,1-d),i*n>=2&&(r++,n/=2),r+d>=c?(s=0,r=c):r+d>=1?(s=(i*n-1)*Math.pow(2,h),r=r+d):(s=i*Math.pow(2,d-1)*Math.pow(2,h),r=0));h>=8;e[t+b]=s&255,b+=m,s/=256,h-=8);for(r=r<<h|s,a+=h;a>0;e[t+b]=r&255,b+=m,r/=256,a-=8);e[t+b-m]|=y*128},br)}function Ma(){if(dn)return Ut;dn=!0;let e=Ba(),i=xa(),t=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ut.Buffer=r,Ut.SlowBuffer=U,Ut.INSPECT_MAX_BYTES=50;let l=2147483647;Ut.kMaxLength=l,r.TYPED_ARRAY_SUPPORT=h(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{let f=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(f,u),f.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function o(f){if(f>l)throw new RangeError('The value "'+f+'" is invalid for option "size"');let u=new Uint8Array(f);return Object.setPrototypeOf(u,r.prototype),u}function r(f,u,p){if(typeof f=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(f)}return s(f,u,p)}r.poolSize=8192;function s(f,u,p){if(typeof f=="string")return d(f,u);if(ArrayBuffer.isView(f))return b(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(H(f,ArrayBuffer)||f&&H(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(H(f,SharedArrayBuffer)||f&&H(f.buffer,SharedArrayBuffer)))return m(f,u,p);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=f.valueOf&&f.valueOf();if(v!=null&&v!==f)return r.from(v,u,p);let A=y(f);if(A)return A;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return r.from(f[Symbol.toPrimitive]("string"),u,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}r.from=function(f,u,p){return s(f,u,p)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function n(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function a(f,u,p){return n(f),f<=0?o(f):u!==void 0?typeof p=="string"?o(f).fill(u,p):o(f).fill(u):o(f)}r.alloc=function(f,u,p){return a(f,u,p)};function c(f){return n(f),o(f<0?0:I(f)|0)}r.allocUnsafe=function(f){return c(f)},r.allocUnsafeSlow=function(f){return c(f)};function d(f,u){if((typeof u!="string"||u==="")&&(u="utf8"),!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let p=k(f,u)|0,v=o(p),A=v.write(f,u);return A!==p&&(v=v.slice(0,A)),v}function g(f){let u=f.length<0?0:I(f.length)|0,p=o(u);for(let v=0;v<u;v+=1)p[v]=f[v]&255;return p}function b(f){if(H(f,Uint8Array)){let u=new Uint8Array(f);return m(u.buffer,u.byteOffset,u.byteLength)}return g(f)}function m(f,u,p){if(u<0||f.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<u+(p||0))throw new RangeError('"length" is outside of buffer bounds');let v;return u===void 0&&p===void 0?v=new Uint8Array(f):p===void 0?v=new Uint8Array(f,u):v=new Uint8Array(f,u,p),Object.setPrototypeOf(v,r.prototype),v}function y(f){if(r.isBuffer(f)){let u=I(f.length)|0,p=o(u);return p.length===0||f.copy(p,0,0,u),p}if(f.length!==void 0)return typeof f.length!="number"||we(f.length)?o(0):g(f);if(f.type==="Buffer"&&Array.isArray(f.data))return g(f.data)}function I(f){if(f>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return f|0}function U(f){return+f!=f&&(f=0),r.alloc(+f)}r.isBuffer=function(f){return f!=null&&f._isBuffer===!0&&f!==r.prototype},r.compare=function(f,u){if(H(f,Uint8Array)&&(f=r.from(f,f.offset,f.byteLength)),H(u,Uint8Array)&&(u=r.from(u,u.offset,u.byteLength)),!r.isBuffer(f)||!r.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===u)return 0;let p=f.length,v=u.length;for(let A=0,w=Math.min(p,v);A<w;++A)if(f[A]!==u[A]){p=f[A],v=u[A];break}return p<v?-1:v<p?1:0},r.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(f,u){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(f.length===0)return r.alloc(0);let p;if(u===void 0)for(u=0,p=0;p<f.length;++p)u+=f[p].length;let v=r.allocUnsafe(u),A=0;for(p=0;p<f.length;++p){let w=f[p];if(H(w,Uint8Array))A+w.length>v.length?(r.isBuffer(w)||(w=r.from(w)),w.copy(v,A)):Uint8Array.prototype.set.call(v,w,A);else if(r.isBuffer(w))w.copy(v,A);else throw new TypeError('"list" argument must be an Array of Buffers');A+=w.length}return v};function k(f,u){if(r.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||H(f,ArrayBuffer))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);let p=f.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&p===0)return 0;let A=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return j(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Q(f).length;default:if(A)return v?-1:j(f).length;u=(""+u).toLowerCase(),A=!0}}r.byteLength=k;function T(f,u,p){let v=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,u>>>=0,p<=u))return"";for(f||(f="utf8");;)switch(f){case"hex":return $(this,u,p);case"utf8":case"utf-8":return q(this,u,p);case"ascii":return ge(this,u,p);case"latin1":case"binary":return ne(this,u,p);case"base64":return E(this,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,u,p);default:if(v)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),v=!0}}r.prototype._isBuffer=!0;function D(f,u,p){let v=f[u];f[u]=f[p],f[p]=v}r.prototype.swap16=function(){let f=this.length;if(f%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<f;u+=2)D(this,u,u+1);return this},r.prototype.swap32=function(){let f=this.length;if(f%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<f;u+=4)D(this,u,u+3),D(this,u+1,u+2);return this},r.prototype.swap64=function(){let f=this.length;if(f%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<f;u+=8)D(this,u,u+7),D(this,u+1,u+6),D(this,u+2,u+5),D(this,u+3,u+4);return this},r.prototype.toString=function(){let f=this.length;return f===0?"":arguments.length===0?q(this,0,f):T.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(f){if(!r.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:r.compare(this,f)===0},r.prototype.inspect=function(){let f="",u=Ut.INSPECT_MAX_BYTES;return f=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(f+=" ... "),"<Buffer "+f+">"},t&&(r.prototype[t]=r.prototype.inspect),r.prototype.compare=function(f,u,p,v,A){if(H(f,Uint8Array)&&(f=r.from(f,f.offset,f.byteLength)),!r.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(u===void 0&&(u=0),p===void 0&&(p=f?f.length:0),v===void 0&&(v=0),A===void 0&&(A=this.length),u<0||p>f.length||v<0||A>this.length)throw new RangeError("out of range index");if(v>=A&&u>=p)return 0;if(v>=A)return-1;if(u>=p)return 1;if(u>>>=0,p>>>=0,v>>>=0,A>>>=0,this===f)return 0;let w=A-v,P=p-u,V=Math.min(w,P),fe=this.slice(v,A),ie=f.slice(u,p);for(let ye=0;ye<V;++ye)if(fe[ye]!==ie[ye]){w=fe[ye],P=ie[ye];break}return w<P?-1:P<w?1:0};function F(f,u,p,v,A){if(f.length===0)return-1;if(typeof p=="string"?(v=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,we(p)&&(p=A?0:f.length-1),p<0&&(p=f.length+p),p>=f.length){if(A)return-1;p=f.length-1}else if(p<0)if(A)p=0;else return-1;if(typeof u=="string"&&(u=r.from(u,v)),r.isBuffer(u))return u.length===0?-1:R(f,u,p,v,A);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?A?Uint8Array.prototype.indexOf.call(f,u,p):Uint8Array.prototype.lastIndexOf.call(f,u,p):R(f,[u],p,v,A);throw new TypeError("val must be string, number or Buffer")}function R(f,u,p,v,A){let w=1,P=f.length,V=u.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(f.length<2||u.length<2)return-1;w=2,P/=2,V/=2,p/=2}function fe(ye,Se){return w===1?ye[Se]:ye.readUInt16BE(Se*w)}let ie;if(A){let ye=-1;for(ie=p;ie<P;ie++)if(fe(f,ie)===fe(u,ye===-1?0:ie-ye)){if(ye===-1&&(ye=ie),ie-ye+1===V)return ye*w}else ye!==-1&&(ie-=ie-ye),ye=-1}else for(p+V>P&&(p=P-V),ie=p;ie>=0;ie--){let ye=!0;for(let Se=0;Se<V;Se++)if(fe(f,ie+Se)!==fe(u,Se)){ye=!1;break}if(ye)return ie}return-1}r.prototype.includes=function(f,u,p){return this.indexOf(f,u,p)!==-1},r.prototype.indexOf=function(f,u,p){return F(this,f,u,p,!0)},r.prototype.lastIndexOf=function(f,u,p){return F(this,f,u,p,!1)};function O(f,u,p,v){p=Number(p)||0;let A=f.length-p;v?(v=Number(v),v>A&&(v=A)):v=A;let w=u.length;v>w/2&&(v=w/2);let P;for(P=0;P<v;++P){let V=parseInt(u.substr(P*2,2),16);if(we(V))return P;f[p+P]=V}return P}function M(f,u,p,v){return L(j(u,f.length-p),f,p,v)}function W(f,u,p,v){return L(N(u),f,p,v)}function G(f,u,p,v){return L(Q(u),f,p,v)}function ee(f,u,p,v){return L(te(u,f.length-p),f,p,v)}r.prototype.write=function(f,u,p,v){if(u===void 0)v="utf8",p=this.length,u=0;else if(p===void 0&&typeof u=="string")v=u,p=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(p)?(p=p>>>0,v===void 0&&(v="utf8")):(v=p,p=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let A=this.length-u;if((p===void 0||p>A)&&(p=A),f.length>0&&(p<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let w=!1;for(;;)switch(v){case"hex":return O(this,f,u,p);case"utf8":case"utf-8":return M(this,f,u,p);case"ascii":case"latin1":case"binary":return W(this,f,u,p);case"base64":return G(this,f,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,f,u,p);default:if(w)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),w=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(f,u,p){return u===0&&p===f.length?e.fromByteArray(f):e.fromByteArray(f.slice(u,p))}function q(f,u,p){p=Math.min(f.length,p);let v=[],A=u;for(;A<p;){let w=f[A],P=null,V=w>239?4:w>223?3:w>191?2:1;if(A+V<=p){let fe,ie,ye,Se;switch(V){case 1:w<128&&(P=w);break;case 2:fe=f[A+1],(fe&192)===128&&(Se=(w&31)<<6|fe&63,Se>127&&(P=Se));break;case 3:fe=f[A+1],ie=f[A+2],(fe&192)===128&&(ie&192)===128&&(Se=(w&15)<<12|(fe&63)<<6|ie&63,Se>2047&&(Se<55296||Se>57343)&&(P=Se));break;case 4:fe=f[A+1],ie=f[A+2],ye=f[A+3],(fe&192)===128&&(ie&192)===128&&(ye&192)===128&&(Se=(w&15)<<18|(fe&63)<<12|(ie&63)<<6|ye&63,Se>65535&&Se<1114112&&(P=Se))}}P===null?(P=65533,V=1):P>65535&&(P-=65536,v.push(P>>>10&1023|55296),P=56320|P&1023),v.push(P),A+=V}return K(v)}let Z=4096;function K(f){let u=f.length;if(u<=Z)return String.fromCharCode.apply(String,f);let p="",v=0;for(;v<u;)p+=String.fromCharCode.apply(String,f.slice(v,v+=Z));return p}function ge(f,u,p){let v="";p=Math.min(f.length,p);for(let A=u;A<p;++A)v+=String.fromCharCode(f[A]&127);return v}function ne(f,u,p){let v="";p=Math.min(f.length,p);for(let A=u;A<p;++A)v+=String.fromCharCode(f[A]);return v}function $(f,u,p){let v=f.length;(!u||u<0)&&(u=0),(!p||p<0||p>v)&&(p=v);let A="";for(let w=u;w<p;++w)A+=_e[f[w]];return A}function be(f,u,p){let v=f.slice(u,p),A="";for(let w=0;w<v.length-1;w+=2)A+=String.fromCharCode(v[w]+v[w+1]*256);return A}r.prototype.slice=function(f,u){let p=this.length;f=~~f,u=u===void 0?p:~~u,f<0?(f+=p,f<0&&(f=0)):f>p&&(f=p),u<0?(u+=p,u<0&&(u=0)):u>p&&(u=p),u<f&&(u=f);let v=this.subarray(f,u);return Object.setPrototypeOf(v,r.prototype),v};function re(f,u,p){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+u>p)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(f,u,p){f=f>>>0,u=u>>>0,p||re(f,u,this.length);let v=this[f],A=1,w=0;for(;++w<u&&(A*=256);)v+=this[f+w]*A;return v},r.prototype.readUintBE=r.prototype.readUIntBE=function(f,u,p){f=f>>>0,u=u>>>0,p||re(f,u,this.length);let v=this[f+--u],A=1;for(;u>0&&(A*=256);)v+=this[f+--u]*A;return v},r.prototype.readUint8=r.prototype.readUInt8=function(f,u){return f=f>>>0,u||re(f,1,this.length),this[f]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(f,u){return f=f>>>0,u||re(f,2,this.length),this[f]|this[f+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(f,u){return f=f>>>0,u||re(f,2,this.length),this[f]<<8|this[f+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(f,u){return f=f>>>0,u||re(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+this[f+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(f,u){return f=f>>>0,u||re(f,4,this.length),this[f]*16777216+(this[f+1]<<16|this[f+2]<<8|this[f+3])},r.prototype.readBigUInt64LE=Ae(function(f){f=f>>>0,J(f,"offset");let u=this[f],p=this[f+7];(u===void 0||p===void 0)&&he(f,this.length-8);let v=u+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24,A=this[++f]+this[++f]*2**8+this[++f]*2**16+p*2**24;return BigInt(v)+(BigInt(A)<<BigInt(32))}),r.prototype.readBigUInt64BE=Ae(function(f){f=f>>>0,J(f,"offset");let u=this[f],p=this[f+7];(u===void 0||p===void 0)&&he(f,this.length-8);let v=u*2**24+this[++f]*2**16+this[++f]*2**8+this[++f],A=this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+p;return(BigInt(v)<<BigInt(32))+BigInt(A)}),r.prototype.readIntLE=function(f,u,p){f=f>>>0,u=u>>>0,p||re(f,u,this.length);let v=this[f],A=1,w=0;for(;++w<u&&(A*=256);)v+=this[f+w]*A;return A*=128,v>=A&&(v-=Math.pow(2,8*u)),v},r.prototype.readIntBE=function(f,u,p){f=f>>>0,u=u>>>0,p||re(f,u,this.length);let v=u,A=1,w=this[f+--v];for(;v>0&&(A*=256);)w+=this[f+--v]*A;return A*=128,w>=A&&(w-=Math.pow(2,8*u)),w},r.prototype.readInt8=function(f,u){return f=f>>>0,u||re(f,1,this.length),this[f]&128?(255-this[f]+1)*-1:this[f]},r.prototype.readInt16LE=function(f,u){f=f>>>0,u||re(f,2,this.length);let p=this[f]|this[f+1]<<8;return p&32768?p|4294901760:p},r.prototype.readInt16BE=function(f,u){f=f>>>0,u||re(f,2,this.length);let p=this[f+1]|this[f]<<8;return p&32768?p|4294901760:p},r.prototype.readInt32LE=function(f,u){return f=f>>>0,u||re(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},r.prototype.readInt32BE=function(f,u){return f=f>>>0,u||re(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},r.prototype.readBigInt64LE=Ae(function(f){f=f>>>0,J(f,"offset");let u=this[f],p=this[f+7];(u===void 0||p===void 0)&&he(f,this.length-8);let v=this[f+4]+this[f+5]*2**8+this[f+6]*2**16+(p<<24);return(BigInt(v)<<BigInt(32))+BigInt(u+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24)}),r.prototype.readBigInt64BE=Ae(function(f){f=f>>>0,J(f,"offset");let u=this[f],p=this[f+7];(u===void 0||p===void 0)&&he(f,this.length-8);let v=(u<<24)+this[++f]*2**16+this[++f]*2**8+this[++f];return(BigInt(v)<<BigInt(32))+BigInt(this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+p)}),r.prototype.readFloatLE=function(f,u){return f=f>>>0,u||re(f,4,this.length),i.read(this,f,!0,23,4)},r.prototype.readFloatBE=function(f,u){return f=f>>>0,u||re(f,4,this.length),i.read(this,f,!1,23,4)},r.prototype.readDoubleLE=function(f,u){return f=f>>>0,u||re(f,8,this.length),i.read(this,f,!0,52,8)},r.prototype.readDoubleBE=function(f,u){return f=f>>>0,u||re(f,8,this.length),i.read(this,f,!1,52,8)};function ve(f,u,p,v,A,w){if(!r.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>A||u<w)throw new RangeError('"value" argument is out of bounds');if(p+v>f.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(f,u,p,v){if(f=+f,u=u>>>0,p=p>>>0,!v){let P=Math.pow(2,8*p)-1;ve(this,f,u,p,P,0)}let A=1,w=0;for(this[u]=f&255;++w<p&&(A*=256);)this[u+w]=f/A&255;return u+p},r.prototype.writeUintBE=r.prototype.writeUIntBE=function(f,u,p,v){if(f=+f,u=u>>>0,p=p>>>0,!v){let P=Math.pow(2,8*p)-1;ve(this,f,u,p,P,0)}let A=p-1,w=1;for(this[u+A]=f&255;--A>=0&&(w*=256);)this[u+A]=f/w&255;return u+p},r.prototype.writeUint8=r.prototype.writeUInt8=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,1,255,0),this[u]=f&255,u+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,2,65535,0),this[u]=f&255,this[u+1]=f>>>8,u+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,2,65535,0),this[u]=f>>>8,this[u+1]=f&255,u+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,4,4294967295,0),this[u+3]=f>>>24,this[u+2]=f>>>16,this[u+1]=f>>>8,this[u]=f&255,u+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,4,4294967295,0),this[u]=f>>>24,this[u+1]=f>>>16,this[u+2]=f>>>8,this[u+3]=f&255,u+4};function S(f,u,p,v,A){X(u,v,A,f,p,7);let w=Number(u&BigInt(4294967295));f[p++]=w,w=w>>8,f[p++]=w,w=w>>8,f[p++]=w,w=w>>8,f[p++]=w;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[p++]=P,P=P>>8,f[p++]=P,P=P>>8,f[p++]=P,P=P>>8,f[p++]=P,p}function Y(f,u,p,v,A){X(u,v,A,f,p,7);let w=Number(u&BigInt(4294967295));f[p+7]=w,w=w>>8,f[p+6]=w,w=w>>8,f[p+5]=w,w=w>>8,f[p+4]=w;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[p+3]=P,P=P>>8,f[p+2]=P,P=P>>8,f[p+1]=P,P=P>>8,f[p]=P,p+8}r.prototype.writeBigUInt64LE=Ae(function(f,u=0){return S(this,f,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeBigUInt64BE=Ae(function(f,u=0){return Y(this,f,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeIntLE=function(f,u,p,v){if(f=+f,u=u>>>0,!v){let V=Math.pow(2,8*p-1);ve(this,f,u,p,V-1,-V)}let A=0,w=1,P=0;for(this[u]=f&255;++A<p&&(w*=256);)f<0&&P===0&&this[u+A-1]!==0&&(P=1),this[u+A]=(f/w>>0)-P&255;return u+p},r.prototype.writeIntBE=function(f,u,p,v){if(f=+f,u=u>>>0,!v){let V=Math.pow(2,8*p-1);ve(this,f,u,p,V-1,-V)}let A=p-1,w=1,P=0;for(this[u+A]=f&255;--A>=0&&(w*=256);)f<0&&P===0&&this[u+A+1]!==0&&(P=1),this[u+A]=(f/w>>0)-P&255;return u+p},r.prototype.writeInt8=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,1,127,-128),f<0&&(f=255+f+1),this[u]=f&255,u+1},r.prototype.writeInt16LE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,2,32767,-32768),this[u]=f&255,this[u+1]=f>>>8,u+2},r.prototype.writeInt16BE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,2,32767,-32768),this[u]=f>>>8,this[u+1]=f&255,u+2},r.prototype.writeInt32LE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,4,2147483647,-2147483648),this[u]=f&255,this[u+1]=f>>>8,this[u+2]=f>>>16,this[u+3]=f>>>24,u+4},r.prototype.writeInt32BE=function(f,u,p){return f=+f,u=u>>>0,p||ve(this,f,u,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[u]=f>>>24,this[u+1]=f>>>16,this[u+2]=f>>>8,this[u+3]=f&255,u+4},r.prototype.writeBigInt64LE=Ae(function(f,u=0){return S(this,f,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),r.prototype.writeBigInt64BE=Ae(function(f,u=0){return Y(this,f,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(f,u,p,v,A,w){if(p+v>f.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Ee(f,u,p,v,A){return u=+u,p=p>>>0,A||ce(f,u,p,4),i.write(f,u,p,v,23,4),p+4}r.prototype.writeFloatLE=function(f,u,p){return Ee(this,f,u,!0,p)},r.prototype.writeFloatBE=function(f,u,p){return Ee(this,f,u,!1,p)};function ue(f,u,p,v,A){return u=+u,p=p>>>0,A||ce(f,u,p,8),i.write(f,u,p,v,52,8),p+8}r.prototype.writeDoubleLE=function(f,u,p){return ue(this,f,u,!0,p)},r.prototype.writeDoubleBE=function(f,u,p){return ue(this,f,u,!1,p)},r.prototype.copy=function(f,u,p,v){if(!r.isBuffer(f))throw new TypeError("argument should be a Buffer");if(p||(p=0),!v&&v!==0&&(v=this.length),u>=f.length&&(u=f.length),u||(u=0),v>0&&v<p&&(v=p),v===p||f.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(p<0||p>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),f.length-u<v-p&&(v=f.length-u+p);let A=v-p;return this===f&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,p,v):Uint8Array.prototype.set.call(f,this.subarray(p,v),u),A},r.prototype.fill=function(f,u,p,v){if(typeof f=="string"){if(typeof u=="string"?(v=u,u=0,p=this.length):typeof p=="string"&&(v=p,p=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!r.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(f.length===1){let w=f.charCodeAt(0);(v==="utf8"&&w<128||v==="latin1")&&(f=w)}}else typeof f=="number"?f=f&255:typeof f=="boolean"&&(f=Number(f));if(u<0||this.length<u||this.length<p)throw new RangeError("Out of range index");if(p<=u)return this;u=u>>>0,p=p===void 0?this.length:p>>>0,f||(f=0);let A;if(typeof f=="number")for(A=u;A<p;++A)this[A]=f;else{let w=r.isBuffer(f)?f:r.from(f,v),P=w.length;if(P===0)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(A=0;A<p-u;++A)this[A+u]=w[A%P]}return this};let x={};function _(f,u,p){x[f]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(v){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:v,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}_("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_("ERR_INVALID_ARG_TYPE",function(f,u){return`The "${f}" argument must be of type number. Received type ${typeof u}`},TypeError),_("ERR_OUT_OF_RANGE",function(f,u,p){let v=`The value of "${f}" is out of range.`,A=p;return Number.isInteger(p)&&Math.abs(p)>2**32?A=z(String(p)):typeof p=="bigint"&&(A=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(A=z(A)),A+="n"),v+=` It must be ${u}. Received ${A}`,v},RangeError);function z(f){let u="",p=f.length,v=f[0]==="-"?1:0;for(;p>=v+4;p-=3)u=`_${f.slice(p-3,p)}${u}`;return`${f.slice(0,p)}${u}`}function le(f,u,p){J(u,"offset"),(f[u]===void 0||f[u+p]===void 0)&&he(u,f.length-(p+1))}function X(f,u,p,v,A,w){if(f>p||f<u){let P=typeof u=="bigint"?"n":"",V;throw w>3?u===0||u===BigInt(0)?V=`>= 0${P} and < 2${P} ** ${(w+1)*8}${P}`:V=`>= -(2${P} ** ${(w+1)*8-1}${P}) and < 2 ** ${(w+1)*8-1}${P}`:V=`>= ${u}${P} and <= ${p}${P}`,new x.ERR_OUT_OF_RANGE("value",V,f)}le(v,A,w)}function J(f,u){if(typeof f!="number")throw new x.ERR_INVALID_ARG_TYPE(u,"number",f)}function he(f,u,p){throw Math.floor(f)!==f?(J(f,p),new x.ERR_OUT_OF_RANGE(p||"offset","an integer",f)):u<0?new x.ERR_BUFFER_OUT_OF_BOUNDS:new x.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${u}`,f)}let de=/[^+/0-9A-Za-z-_]/g;function C(f){if(f=f.split("=")[0],f=f.trim().replace(de,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function j(f,u){u=u||1/0;let p,v=f.length,A=null,w=[];for(let P=0;P<v;++P){if(p=f.charCodeAt(P),p>55295&&p<57344){if(!A){if(p>56319){(u-=3)>-1&&w.push(239,191,189);continue}else if(P+1===v){(u-=3)>-1&&w.push(239,191,189);continue}A=p;continue}if(p<56320){(u-=3)>-1&&w.push(239,191,189),A=p;continue}p=(A-55296<<10|p-56320)+65536}else A&&(u-=3)>-1&&w.push(239,191,189);if(A=null,p<128){if((u-=1)<0)break;w.push(p)}else if(p<2048){if((u-=2)<0)break;w.push(p>>6|192,p&63|128)}else if(p<65536){if((u-=3)<0)break;w.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((u-=4)<0)break;w.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return w}function N(f){let u=[];for(let p=0;p<f.length;++p)u.push(f.charCodeAt(p)&255);return u}function te(f,u){let p,v,A,w=[];for(let P=0;P<f.length&&!((u-=2)<0);++P)p=f.charCodeAt(P),v=p>>8,A=p%256,w.push(A),w.push(v);return w}function Q(f){return e.toByteArray(C(f))}function L(f,u,p,v){let A;for(A=0;A<v&&!(A+p>=u.length||A>=f.length);++A)u[A+p]=f[A];return A}function H(f,u){return f instanceof u||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===u.name}function we(f){return f!==f}let _e=function(){let f="0123456789abcdef",u=new Array(256);for(let p=0;p<16;++p){let v=p*16;for(let A=0;A<16;++A)u[v+A]=f[p]+f[A]}return u}();function Ae(f){return typeof BigInt>"u"?Re:f}function Re(){throw new Error("BigInt not supported")}return Ut}var sr,cn,br,fn,Ut,dn,Et,lr,zo,Ko,tt=Je(()=>{ae(),se(),oe(),sr={},cn=!1,br={},fn=!1,Ut={},dn=!1,Et=Ma(),Et.Buffer,Et.SlowBuffer,Et.INSPECT_MAX_BYTES,Et.kMaxLength,lr=Et.Buffer,zo=Et.INSPECT_MAX_BYTES,Ko=Et.kMaxLength}),ae=Je(()=>{tt()}),Ua=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=class{constructor(t){this.aliasToTopic={},this.max=t}put(t,l){return l===0||l>this.max?!1:(this.aliasToTopic[l]=t,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(t){return this.aliasToTopic[t]}clear(){this.aliasToTopic={}}};e.default=i}),Ye=me((e,i)=>{ae(),se(),oe(),i.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,l){return t.includes(l)},ArrayPrototypeIndexOf(t,l){return t.indexOf(l)},ArrayPrototypeJoin(t,l){return t.join(l)},ArrayPrototypeMap(t,l){return t.map(l)},ArrayPrototypePop(t,l){return t.pop(l)},ArrayPrototypePush(t,l){return t.push(l)},ArrayPrototypeSlice(t,l,h){return t.slice(l,h)},Error,FunctionPrototypeCall(t,l,...h){return t.call(l,...h)},FunctionPrototypeSymbolHasInstance(t,l){return Function.prototype[Symbol.hasInstance].call(t,l)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,l){return Object.defineProperties(t,l)},ObjectDefineProperty(t,l,h){return Object.defineProperty(t,l,h)},ObjectGetOwnPropertyDescriptor(t,l){return Object.getOwnPropertyDescriptor(t,l)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,l){return Object.setPrototypeOf(t,l)},Promise,PromisePrototypeCatch(t,l){return t.catch(l)},PromisePrototypeThen(t,l,h){return t.then(l,h)},PromiseReject(t){return Promise.reject(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,l){return t.test(l)},SafeSet:Set,String,StringPrototypeSlice(t,l,h){return t.slice(l,h)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(t,l,h){return t.set(l,h)},Uint8Array}}),Ot=me((e,i)=>{ae(),se(),oe();var t=(tt(),Ue(et)),l=Object.getPrototypeOf(async function(){}).constructor,h=globalThis.Blob||t.Blob,o=typeof h<"u"?function(s){return s instanceof h}:function(s){return!1},r=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let n="";for(let a=0;a<s.length;a++)n+=` ${s[a].stack}
|
|
2
|
+
`;super(n),this.name="AggregateError",this.errors=s}};i.exports={AggregateError:r,kEmptyObject:Object.freeze({}),once(s){let n=!1;return function(...a){n||(n=!0,s.apply(this,a))}},createDeferredPromise:function(){let s,n;return{promise:new Promise((a,c)=>{s=a,n=c}),resolve:s,reject:n}},promisify(s){return new Promise((n,a)=>{s((c,...d)=>c?a(c):n(...d))})},debuglog(){return function(){}},format(s,...n){return s.replace(/%([sdifj])/g,function(...[a,c]){let d=n.shift();return c==="f"?d.toFixed(6):c==="j"?JSON.stringify(d):c==="s"&&typeof d=="object"?`${d.constructor!==Object?d.constructor.name:""} {}`.trim():d.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof l},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:o},i.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Mn=me((e,i)=>{ae(),se(),oe();var{AbortController:t,AbortSignal:l}=typeof self<"u"?self:typeof window<"u"?window:void 0;i.exports=t,i.exports.AbortSignal=l,i.exports.default=t}),st=me((e,i)=>{ae(),se(),oe();var{format:t,inspect:l,AggregateError:h}=Ot(),o=globalThis.AggregateError||h,r=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],n=/^([A-Z][a-z0-9]*)+$/,a="__node_internal_",c={};function d(k,T){if(!k)throw new c.ERR_INTERNAL_ASSERTION(T)}function g(k){let T="",D=k.length,F=k[0]==="-"?1:0;for(;D>=F+4;D-=3)T=`_${k.slice(D-3,D)}${T}`;return`${k.slice(0,D)}${T}`}function b(k,T,D){if(typeof T=="function")return d(T.length<=D.length,`Code: ${k}; The provided arguments length (${D.length}) does not match the required ones (${T.length}).`),T(...D);let F=(T.match(/%[dfijoOs]/g)||[]).length;return d(F===D.length,`Code: ${k}; The provided arguments length (${D.length}) does not match the required ones (${F}).`),D.length===0?T:t(T,...D)}function m(k,T,D){D||(D=Error);class F extends D{constructor(...O){super(b(k,T,O))}toString(){return`${this.name} [${k}]: ${this.message}`}}Object.defineProperties(F.prototype,{name:{value:D.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${k}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),F.prototype.code=k,F.prototype[r]=!0,c[k]=F}function y(k){let T=a+k.name;return Object.defineProperty(k,"name",{value:T}),k}function I(k,T){if(k&&T&&k!==T){if(Array.isArray(T.errors))return T.errors.push(k),T;let D=new o([T,k],T.message);return D.code=T.code,D}return k||T}var U=class extends Error{constructor(k="The operation was aborted",T=void 0){if(T!==void 0&&typeof T!="object")throw new c.ERR_INVALID_ARG_TYPE("options","Object",T);super(k,T),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(k,T,D)=>{d(typeof k=="string","'name' must be a string"),Array.isArray(T)||(T=[T]);let F="The ";k.endsWith(" argument")?F+=`${k} `:F+=`"${k}" ${k.includes(".")?"property":"argument"} `,F+="must be ";let R=[],O=[],M=[];for(let G of T)d(typeof G=="string","All expected entries have to be of type string"),s.includes(G)?R.push(G.toLowerCase()):n.test(G)?O.push(G):(d(G!=="object",'The value "object" should be written as "Object"'),M.push(G));if(O.length>0){let G=R.indexOf("object");G!==-1&&(R.splice(R,G,1),O.push("Object"))}if(R.length>0){switch(R.length){case 1:F+=`of type ${R[0]}`;break;case 2:F+=`one of type ${R[0]} or ${R[1]}`;break;default:{let G=R.pop();F+=`one of type ${R.join(", ")}, or ${G}`}}(O.length>0||M.length>0)&&(F+=" or ")}if(O.length>0){switch(O.length){case 1:F+=`an instance of ${O[0]}`;break;case 2:F+=`an instance of ${O[0]} or ${O[1]}`;break;default:{let G=O.pop();F+=`an instance of ${O.join(", ")}, or ${G}`}}M.length>0&&(F+=" or ")}switch(M.length){case 0:break;case 1:M[0].toLowerCase()!==M[0]&&(F+="an "),F+=`${M[0]}`;break;case 2:F+=`one of ${M[0]} or ${M[1]}`;break;default:{let G=M.pop();F+=`one of ${M.join(", ")}, or ${G}`}}if(D==null)F+=`. Received ${D}`;else if(typeof D=="function"&&D.name)F+=`. Received function ${D.name}`;else if(typeof D=="object"){var W;if((W=D.constructor)!==null&&W!==void 0&&W.name)F+=`. Received an instance of ${D.constructor.name}`;else{let G=l(D,{depth:-1});F+=`. Received ${G}`}}else{let G=l(D,{colors:!1});G.length>25&&(G=`${G.slice(0,25)}...`),F+=`. Received type ${typeof D} (${G})`}return F},TypeError),m("ERR_INVALID_ARG_VALUE",(k,T,D="is invalid")=>{let F=l(T);return F.length>128&&(F=F.slice(0,128)+"..."),`The ${k.includes(".")?"property":"argument"} '${k}' ${D}. Received ${F}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(k,T,D)=>{var F;let R=D!=null&&(F=D.constructor)!==null&&F!==void 0&&F.name?`instance of ${D.constructor.name}`:`type ${typeof D}`;return`Expected ${k} to be returned from the "${T}" function but got ${R}.`},TypeError),m("ERR_MISSING_ARGS",(...k)=>{d(k.length>0,"At least one arg needs to be specified");let T,D=k.length;switch(k=(Array.isArray(k)?k:[k]).map(F=>`"${F}"`).join(" or "),D){case 1:T+=`The ${k[0]} argument`;break;case 2:T+=`The ${k[0]} and ${k[1]} arguments`;break;default:{let F=k.pop();T+=`The ${k.join(", ")}, and ${F} arguments`}break}return`${T} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(k,T,D)=>{d(T,'Missing "range" argument');let F;return Number.isInteger(D)&&Math.abs(D)>2**32?F=g(String(D)):typeof D=="bigint"?(F=String(D),(D>2n**32n||D<-(2n**32n))&&(F=g(F)),F+="n"):F=l(D),`The value of "${k}" is out of range. It must be ${T}. Received ${F}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),i.exports={AbortError:U,aggregateTwoErrors:y(I),hideStackFrames:y,codes:c}}),Fr=me((e,i)=>{ae(),se(),oe();var{ArrayIsArray:t,ArrayPrototypeIncludes:l,ArrayPrototypeJoin:h,ArrayPrototypeMap:o,NumberIsInteger:r,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:n,NumberMIN_SAFE_INTEGER:a,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:g,String:b,StringPrototypeToUpperCase:m,StringPrototypeTrim:y}=Ye(),{hideStackFrames:I,codes:{ERR_SOCKET_BAD_PORT:U,ERR_INVALID_ARG_TYPE:k,ERR_INVALID_ARG_VALUE:T,ERR_OUT_OF_RANGE:D,ERR_UNKNOWN_SIGNAL:F}}=st(),{normalizeEncoding:R}=Ot(),{isAsyncFunction:O,isArrayBufferView:M}=Ot().types,W={};function G(L){return L===(L|0)}function ee(L){return L===L>>>0}var E=/^[0-7]+$/,q="must be a 32-bit unsigned integer or an octal string";function Z(L,H,we){if(typeof L>"u"&&(L=we),typeof L=="string"){if(g(E,L)===null)throw new T(H,L,q);L=c(L,8)}return ne(L,H),L}var K=I((L,H,we=a,_e=n)=>{if(typeof L!="number")throw new k(H,"number",L);if(!r(L))throw new D(H,"an integer",L);if(L<we||L>_e)throw new D(H,`>= ${we} && <= ${_e}`,L)}),ge=I((L,H,we=-2147483648,_e=2147483647)=>{if(typeof L!="number")throw new k(H,"number",L);if(!r(L))throw new D(H,"an integer",L);if(L<we||L>_e)throw new D(H,`>= ${we} && <= ${_e}`,L)}),ne=I((L,H,we=!1)=>{if(typeof L!="number")throw new k(H,"number",L);if(!r(L))throw new D(H,"an integer",L);let _e=we?1:0,Ae=4294967295;if(L<_e||L>Ae)throw new D(H,`>= ${_e} && <= ${Ae}`,L)});function $(L,H){if(typeof L!="string")throw new k(H,"string",L)}function be(L,H,we=void 0,_e){if(typeof L!="number")throw new k(H,"number",L);if(we!=null&&L<we||_e!=null&&L>_e||(we!=null||_e!=null)&&s(L))throw new D(H,`${we!=null?`>= ${we}`:""}${we!=null&&_e!=null?" && ":""}${_e!=null?`<= ${_e}`:""}`,L)}var re=I((L,H,we)=>{if(!l(we,L)){let _e="must be one of: "+h(o(we,Ae=>typeof Ae=="string"?`'${Ae}'`:b(Ae)),", ");throw new T(H,L,_e)}});function ve(L,H){if(typeof L!="boolean")throw new k(H,"boolean",L)}function S(L,H,we){return L==null||!d(L,H)?we:L[H]}var Y=I((L,H,we=null)=>{let _e=S(we,"allowArray",!1),Ae=S(we,"allowFunction",!1);if(!S(we,"nullable",!1)&&L===null||!_e&&t(L)||typeof L!="object"&&(!Ae||typeof L!="function"))throw new k(H,"Object",L)}),ce=I((L,H)=>{if(L!=null&&typeof L!="object"&&typeof L!="function")throw new k(H,"a dictionary",L)}),Ee=I((L,H,we=0)=>{if(!t(L))throw new k(H,"Array",L);if(L.length<we){let _e=`must be longer than ${we}`;throw new T(H,L,_e)}});function ue(L,H){Ee(L,H);for(let we=0;we<L.length;we++)$(L[we],`${H}[${we}]`)}function x(L,H){Ee(L,H);for(let we=0;we<L.length;we++)ve(L[we],`${H}[${we}]`)}function _(L,H="signal"){if($(L,H),W[L]===void 0)throw W[m(L)]!==void 0?new F(L+" (signals must use all capital letters)"):new F(L)}var z=I((L,H="buffer")=>{if(!M(L))throw new k(H,["Buffer","TypedArray","DataView"],L)});function le(L,H){let we=R(H),_e=L.length;if(we==="hex"&&_e%2!==0)throw new T("encoding",H,`is invalid for data of length ${_e}`)}function X(L,H="Port",we=!0){if(typeof L!="number"&&typeof L!="string"||typeof L=="string"&&y(L).length===0||+L!==+L>>>0||L>65535||L===0&&!we)throw new U(H,L,we);return L|0}var J=I((L,H)=>{if(L!==void 0&&(L===null||typeof L!="object"||!("aborted"in L)))throw new k(H,"AbortSignal",L)}),he=I((L,H)=>{if(typeof L!="function")throw new k(H,"Function",L)}),de=I((L,H)=>{if(typeof L!="function"||O(L))throw new k(H,"Function",L)}),C=I((L,H)=>{if(L!==void 0)throw new k(H,"undefined",L)});function j(L,H,we){if(!l(we,L))throw new k(H,`('${h(we,"|")}')`,L)}var N=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function te(L,H){if(typeof L>"u"||!g(N,L))throw new T(H,L,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Q(L){if(typeof L=="string")return te(L,"hints"),L;if(t(L)){let H=L.length,we="";if(H===0)return we;for(let _e=0;_e<H;_e++){let Ae=L[_e];te(Ae,"hints"),we+=Ae,_e!==H-1&&(we+=", ")}return we}throw new T("hints",L,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}i.exports={isInt32:G,isUint32:ee,parseFileMode:Z,validateArray:Ee,validateStringArray:ue,validateBooleanArray:x,validateBoolean:ve,validateBuffer:z,validateDictionary:ce,validateEncoding:le,validateFunction:he,validateInt32:ge,validateInteger:K,validateNumber:be,validateObject:Y,validateOneOf:re,validatePlainFunction:de,validatePort:X,validateSignalName:_,validateString:$,validateUint32:ne,validateUndefined:C,validateUnion:j,validateAbortSignal:J,validateLinkHeaderValue:Q}}),rr=me((e,i)=>{ae(),se(),oe();var t=i.exports={},l,h;function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?l=setTimeout:l=o}catch{l=o}try{typeof clearTimeout=="function"?h=clearTimeout:h=r}catch{h=r}})();function s(U){if(l===setTimeout)return setTimeout(U,0);if((l===o||!l)&&setTimeout)return l=setTimeout,setTimeout(U,0);try{return l(U,0)}catch{try{return l.call(null,U,0)}catch{return l.call(this,U,0)}}}function n(U){if(h===clearTimeout)return clearTimeout(U);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(U);try{return h(U)}catch{try{return h.call(null,U)}catch{return h.call(this,U)}}}var a=[],c=!1,d,g=-1;function b(){!c||!d||(c=!1,d.length?a=d.concat(a):g=-1,a.length&&m())}function m(){if(!c){var U=s(b);c=!0;for(var k=a.length;k;){for(d=a,a=[];++g<k;)d&&d[g].run();g=-1,k=a.length}d=null,c=!1,n(U)}}t.nextTick=function(U){var k=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)k[T-1]=arguments[T];a.push(new y(U,k)),a.length===1&&!c&&s(m)};function y(U,k){this.fun=U,this.array=k}y.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function I(){}t.on=I,t.addListener=I,t.once=I,t.off=I,t.removeListener=I,t.removeAllListeners=I,t.emit=I,t.prependListener=I,t.prependOnceListener=I,t.listeners=function(U){return[]},t.binding=function(U){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(U){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}}),Pt=me((e,i)=>{ae(),se(),oe();var{Symbol:t,SymbolAsyncIterator:l,SymbolIterator:h,SymbolFor:o}=Ye(),r=t("kDestroyed"),s=t("kIsErrored"),n=t("kIsReadable"),a=t("kIsDisturbed"),c=o("nodejs.webstream.isClosedPromise"),d=o("nodejs.webstream.controllerErrorFunction");function g(S,Y=!1){var ce;return!!(S&&typeof S.pipe=="function"&&typeof S.on=="function"&&(!Y||typeof S.pause=="function"&&typeof S.resume=="function")&&(!S._writableState||((ce=S._readableState)===null||ce===void 0?void 0:ce.readable)!==!1)&&(!S._writableState||S._readableState))}function b(S){var Y;return!!(S&&typeof S.write=="function"&&typeof S.on=="function"&&(!S._readableState||((Y=S._writableState)===null||Y===void 0?void 0:Y.writable)!==!1))}function m(S){return!!(S&&typeof S.pipe=="function"&&S._readableState&&typeof S.on=="function"&&typeof S.write=="function")}function y(S){return S&&(S._readableState||S._writableState||typeof S.write=="function"&&typeof S.on=="function"||typeof S.pipe=="function"&&typeof S.on=="function")}function I(S){return!!(S&&!y(S)&&typeof S.pipeThrough=="function"&&typeof S.getReader=="function"&&typeof S.cancel=="function")}function U(S){return!!(S&&!y(S)&&typeof S.getWriter=="function"&&typeof S.abort=="function")}function k(S){return!!(S&&!y(S)&&typeof S.readable=="object"&&typeof S.writable=="object")}function T(S){return I(S)||U(S)||k(S)}function D(S,Y){return S==null?!1:Y===!0?typeof S[l]=="function":Y===!1?typeof S[h]=="function":typeof S[l]=="function"||typeof S[h]=="function"}function F(S){if(!y(S))return null;let Y=S._writableState,ce=S._readableState,Ee=Y||ce;return!!(S.destroyed||S[r]||Ee!=null&&Ee.destroyed)}function R(S){if(!b(S))return null;if(S.writableEnded===!0)return!0;let Y=S._writableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.ended)!="boolean"?null:Y.ended}function O(S,Y){if(!b(S))return null;if(S.writableFinished===!0)return!0;let ce=S._writableState;return ce!=null&&ce.errored?!1:typeof(ce==null?void 0:ce.finished)!="boolean"?null:!!(ce.finished||Y===!1&&ce.ended===!0&&ce.length===0)}function M(S){if(!g(S))return null;if(S.readableEnded===!0)return!0;let Y=S._readableState;return!Y||Y.errored?!1:typeof(Y==null?void 0:Y.ended)!="boolean"?null:Y.ended}function W(S,Y){if(!g(S))return null;let ce=S._readableState;return ce!=null&&ce.errored?!1:typeof(ce==null?void 0:ce.endEmitted)!="boolean"?null:!!(ce.endEmitted||Y===!1&&ce.ended===!0&&ce.length===0)}function G(S){return S&&S[n]!=null?S[n]:typeof(S==null?void 0:S.readable)!="boolean"?null:F(S)?!1:g(S)&&S.readable&&!W(S)}function ee(S){return typeof(S==null?void 0:S.writable)!="boolean"?null:F(S)?!1:b(S)&&S.writable&&!R(S)}function E(S,Y){return y(S)?F(S)?!0:!((Y==null?void 0:Y.readable)!==!1&&G(S)||(Y==null?void 0:Y.writable)!==!1&&ee(S)):null}function q(S){var Y,ce;return y(S)?S.writableErrored?S.writableErrored:(Y=(ce=S._writableState)===null||ce===void 0?void 0:ce.errored)!==null&&Y!==void 0?Y:null:null}function Z(S){var Y,ce;return y(S)?S.readableErrored?S.readableErrored:(Y=(ce=S._readableState)===null||ce===void 0?void 0:ce.errored)!==null&&Y!==void 0?Y:null:null}function K(S){if(!y(S))return null;if(typeof S.closed=="boolean")return S.closed;let Y=S._writableState,ce=S._readableState;return typeof(Y==null?void 0:Y.closed)=="boolean"||typeof(ce==null?void 0:ce.closed)=="boolean"?(Y==null?void 0:Y.closed)||(ce==null?void 0:ce.closed):typeof S._closed=="boolean"&&ge(S)?S._closed:null}function ge(S){return typeof S._closed=="boolean"&&typeof S._defaultKeepAlive=="boolean"&&typeof S._removedConnection=="boolean"&&typeof S._removedContLen=="boolean"}function ne(S){return typeof S._sent100=="boolean"&&ge(S)}function $(S){var Y;return typeof S._consuming=="boolean"&&typeof S._dumped=="boolean"&&((Y=S.req)===null||Y===void 0?void 0:Y.upgradeOrConnect)===void 0}function be(S){if(!y(S))return null;let Y=S._writableState,ce=S._readableState,Ee=Y||ce;return!Ee&&ne(S)||!!(Ee&&Ee.autoDestroy&&Ee.emitClose&&Ee.closed===!1)}function re(S){var Y;return!!(S&&((Y=S[a])!==null&&Y!==void 0?Y:S.readableDidRead||S.readableAborted))}function ve(S){var Y,ce,Ee,ue,x,_,z,le,X,J;return!!(S&&((Y=(ce=(Ee=(ue=(x=(_=S[s])!==null&&_!==void 0?_:S.readableErrored)!==null&&x!==void 0?x:S.writableErrored)!==null&&ue!==void 0?ue:(z=S._readableState)===null||z===void 0?void 0:z.errorEmitted)!==null&&Ee!==void 0?Ee:(le=S._writableState)===null||le===void 0?void 0:le.errorEmitted)!==null&&ce!==void 0?ce:(X=S._readableState)===null||X===void 0?void 0:X.errored)!==null&&Y!==void 0?Y:!((J=S._writableState)===null||J===void 0)&&J.errored))}i.exports={kDestroyed:r,isDisturbed:re,kIsDisturbed:a,isErrored:ve,kIsErrored:s,isReadable:G,kIsReadable:n,kIsClosedPromise:c,kControllerErrorFunction:d,isClosed:K,isDestroyed:F,isDuplexNodeStream:m,isFinished:E,isIterable:D,isReadableNodeStream:g,isReadableStream:I,isReadableEnded:M,isReadableFinished:W,isReadableErrored:Z,isNodeStream:y,isWebStream:T,isWritable:ee,isWritableNodeStream:b,isWritableStream:U,isWritableEnded:R,isWritableFinished:O,isWritableErrored:q,isServerRequest:$,isServerResponse:ne,willEmitClose:be,isTransformStream:k}}),Dt=me((e,i)=>{ae(),se(),oe();var t=rr(),{AbortError:l,codes:h}=st(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:r}=h,{kEmptyObject:s,once:n}=Ot(),{validateAbortSignal:a,validateFunction:c,validateObject:d,validateBoolean:g}=Fr(),{Promise:b,PromisePrototypeThen:m}=Ye(),{isClosed:y,isReadable:I,isReadableNodeStream:U,isReadableStream:k,isReadableFinished:T,isReadableErrored:D,isWritable:F,isWritableNodeStream:R,isWritableStream:O,isWritableFinished:M,isWritableErrored:W,isNodeStream:G,willEmitClose:ee,kIsClosedPromise:E}=Pt();function q($){return $.setHeader&&typeof $.abort=="function"}var Z=()=>{};function K($,be,re){var ve,S;if(arguments.length===2?(re=be,be=s):be==null?be=s:d(be,"options"),c(re,"callback"),a(be.signal,"options.signal"),re=n(re),k($)||O($))return ge($,be,re);if(!G($))throw new o("stream",["ReadableStream","WritableStream","Stream"],$);let Y=(ve=be.readable)!==null&&ve!==void 0?ve:U($),ce=(S=be.writable)!==null&&S!==void 0?S:R($),Ee=$._writableState,ue=$._readableState,x=()=>{$.writable||le()},_=ee($)&&U($)===Y&&R($)===ce,z=M($,!1),le=()=>{z=!0,$.destroyed&&(_=!1),!(_&&(!$.readable||Y))&&(!Y||X)&&re.call($)},X=T($,!1),J=()=>{X=!0,$.destroyed&&(_=!1),!(_&&(!$.writable||ce))&&(!ce||z)&&re.call($)},he=Q=>{re.call($,Q)},de=y($),C=()=>{de=!0;let Q=W($)||D($);if(Q&&typeof Q!="boolean")return re.call($,Q);if(Y&&!X&&U($,!0)&&!T($,!1))return re.call($,new r);if(ce&&!z&&!M($,!1))return re.call($,new r);re.call($)},j=()=>{de=!0;let Q=W($)||D($);if(Q&&typeof Q!="boolean")return re.call($,Q);re.call($)},N=()=>{$.req.on("finish",le)};q($)?($.on("complete",le),_||$.on("abort",C),$.req?N():$.on("request",N)):ce&&!Ee&&($.on("end",x),$.on("close",x)),!_&&typeof $.aborted=="boolean"&&$.on("aborted",C),$.on("end",J),$.on("finish",le),be.error!==!1&&$.on("error",he),$.on("close",C),de?t.nextTick(C):Ee!=null&&Ee.errorEmitted||ue!=null&&ue.errorEmitted?_||t.nextTick(j):(!Y&&(!_||I($))&&(z||F($)===!1)||!ce&&(!_||F($))&&(X||I($)===!1)||ue&&$.req&&$.aborted)&&t.nextTick(j);let te=()=>{re=Z,$.removeListener("aborted",C),$.removeListener("complete",le),$.removeListener("abort",C),$.removeListener("request",N),$.req&&$.req.removeListener("finish",le),$.removeListener("end",x),$.removeListener("close",x),$.removeListener("finish",le),$.removeListener("end",J),$.removeListener("error",he),$.removeListener("close",C)};if(be.signal&&!de){let Q=()=>{let L=re;te(),L.call($,new l(void 0,{cause:be.signal.reason}))};if(be.signal.aborted)t.nextTick(Q);else{let L=re;re=n((...H)=>{be.signal.removeEventListener("abort",Q),L.apply($,H)}),be.signal.addEventListener("abort",Q)}}return te}function ge($,be,re){let ve=!1,S=Z;if(be.signal)if(S=()=>{ve=!0,re.call($,new l(void 0,{cause:be.signal.reason}))},be.signal.aborted)t.nextTick(S);else{let ce=re;re=n((...Ee)=>{be.signal.removeEventListener("abort",S),ce.apply($,Ee)}),be.signal.addEventListener("abort",S)}let Y=(...ce)=>{ve||t.nextTick(()=>re.apply($,ce))};return m($[E].promise,Y,Y),Z}function ne($,be){var re;let ve=!1;return be===null&&(be=s),(re=be)!==null&&re!==void 0&&re.cleanup&&(g(be.cleanup,"cleanup"),ve=be.cleanup),new b((S,Y)=>{let ce=K($,be,Ee=>{ve&&ce(),Ee?Y(Ee):S()})})}i.exports=K,i.exports.finished=ne}),ur=me((e,i)=>{ae(),se(),oe();var t=rr(),{aggregateTwoErrors:l,codes:{ERR_MULTIPLE_CALLBACK:h},AbortError:o}=st(),{Symbol:r}=Ye(),{kDestroyed:s,isDestroyed:n,isFinished:a,isServerRequest:c}=Pt(),d=r("kDestroy"),g=r("kConstruct");function b(E,q,Z){E&&(E.stack,q&&!q.errored&&(q.errored=E),Z&&!Z.errored&&(Z.errored=E))}function m(E,q){let Z=this._readableState,K=this._writableState,ge=K||Z;return K!=null&&K.destroyed||Z!=null&&Z.destroyed?(typeof q=="function"&&q(),this):(b(E,K,Z),K&&(K.destroyed=!0),Z&&(Z.destroyed=!0),ge.constructed?y(this,E,q):this.once(d,function(ne){y(this,l(ne,E),q)}),this)}function y(E,q,Z){let K=!1;function ge(ne){if(K)return;K=!0;let $=E._readableState,be=E._writableState;b(ne,be,$),be&&(be.closed=!0),$&&($.closed=!0),typeof Z=="function"&&Z(ne),ne?t.nextTick(I,E,ne):t.nextTick(U,E)}try{E._destroy(q||null,ge)}catch(ne){ge(ne)}}function I(E,q){k(E,q),U(E)}function U(E){let q=E._readableState,Z=E._writableState;Z&&(Z.closeEmitted=!0),q&&(q.closeEmitted=!0),(Z!=null&&Z.emitClose||q!=null&&q.emitClose)&&E.emit("close")}function k(E,q){let Z=E._readableState,K=E._writableState;K!=null&&K.errorEmitted||Z!=null&&Z.errorEmitted||(K&&(K.errorEmitted=!0),Z&&(Z.errorEmitted=!0),E.emit("error",q))}function T(){let E=this._readableState,q=this._writableState;E&&(E.constructed=!0,E.closed=!1,E.closeEmitted=!1,E.destroyed=!1,E.errored=null,E.errorEmitted=!1,E.reading=!1,E.ended=E.readable===!1,E.endEmitted=E.readable===!1),q&&(q.constructed=!0,q.destroyed=!1,q.closed=!1,q.closeEmitted=!1,q.errored=null,q.errorEmitted=!1,q.finalCalled=!1,q.prefinished=!1,q.ended=q.writable===!1,q.ending=q.writable===!1,q.finished=q.writable===!1)}function D(E,q,Z){let K=E._readableState,ge=E._writableState;if(ge!=null&&ge.destroyed||K!=null&&K.destroyed)return this;K!=null&&K.autoDestroy||ge!=null&&ge.autoDestroy?E.destroy(q):q&&(q.stack,ge&&!ge.errored&&(ge.errored=q),K&&!K.errored&&(K.errored=q),Z?t.nextTick(k,E,q):k(E,q))}function F(E,q){if(typeof E._construct!="function")return;let Z=E._readableState,K=E._writableState;Z&&(Z.constructed=!1),K&&(K.constructed=!1),E.once(g,q),!(E.listenerCount(g)>1)&&t.nextTick(R,E)}function R(E){let q=!1;function Z(K){if(q){D(E,K??new h);return}q=!0;let ge=E._readableState,ne=E._writableState,$=ne||ge;ge&&(ge.constructed=!0),ne&&(ne.constructed=!0),$.destroyed?E.emit(d,K):K?D(E,K,!0):t.nextTick(O,E)}try{E._construct(K=>{t.nextTick(Z,K)})}catch(K){t.nextTick(Z,K)}}function O(E){E.emit(g)}function M(E){return(E==null?void 0:E.setHeader)&&typeof E.abort=="function"}function W(E){E.emit("close")}function G(E,q){E.emit("error",q),t.nextTick(W,E)}function ee(E,q){!E||n(E)||(!q&&!a(E)&&(q=new o),c(E)?(E.socket=null,E.destroy(q)):M(E)?E.abort():M(E.req)?E.req.abort():typeof E.destroy=="function"?E.destroy(q):typeof E.close=="function"?E.close():q?t.nextTick(G,E,q):t.nextTick(W,E),E.destroyed||(E[s]=!0))}i.exports={construct:F,destroyer:ee,destroy:m,undestroy:T,errorOrDestroy:D}});function Be(){Be.init.call(this)}function Cr(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Yo(e){return e._maxListeners===void 0?Be.defaultMaxListeners:e._maxListeners}function Hn(e,i,t,l){var h,o,r,s;if(Cr(t),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",i,t.listener?t.listener:t),o=e._events),r=o[i]),r===void 0)r=o[i]=t,++e._eventsCount;else if(typeof r=="function"?r=o[i]=l?[t,r]:[r,t]:l?r.unshift(t):r.push(t),(h=Yo(e))>0&&r.length>h&&!r.warned){r.warned=!0;var n=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");n.name="MaxListenersExceededWarning",n.emitter=e,n.type=i,n.count=r.length,s=n,console&&console.warn&&console.warn(s)}return e}function La(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function zn(e,i,t){var l={fired:!1,wrapFn:void 0,target:e,type:i,listener:t},h=La.bind(l);return h.listener=t,l.wrapFn=h,h}function Kn(e,i,t){var l=e._events;if(l===void 0)return[];var h=l[i];return h===void 0?[]:typeof h=="function"?t?[h.listener||h]:[h]:t?function(o){for(var r=new Array(o.length),s=0;s<r.length;++s)r[s]=o[s].listener||o[s];return r}(h):Qo(h,h.length)}function Yn(e){var i=this._events;if(i!==void 0){var t=i[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}function Qo(e,i){for(var t=new Array(i),l=0;l<i;++l)t[l]=e[l];return t}var Qn,Gn,Wt,Yr,Qr,Gr,ut,Jn=Je(()=>{ae(),se(),oe(),Wt=typeof Reflect=="object"?Reflect:null,Yr=Wt&&typeof Wt.apply=="function"?Wt.apply:function(e,i,t){return Function.prototype.apply.call(e,i,t)},Gn=Wt&&typeof Wt.ownKeys=="function"?Wt.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},Qr=Number.isNaN||function(e){return e!=e},Qn=Be,Be.EventEmitter=Be,Be.prototype._events=void 0,Be.prototype._eventsCount=0,Be.prototype._maxListeners=void 0,Gr=10,Object.defineProperty(Be,"defaultMaxListeners",{enumerable:!0,get:function(){return Gr},set:function(e){if(typeof e!="number"||e<0||Qr(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Gr=e}}),Be.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Be.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Qr(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Be.prototype.getMaxListeners=function(){return Yo(this)},Be.prototype.emit=function(e){for(var i=[],t=1;t<arguments.length;t++)i.push(arguments[t]);var l=e==="error",h=this._events;if(h!==void 0)l=l&&h.error===void 0;else if(!l)return!1;if(l){var o;if(i.length>0&&(o=i[0]),o instanceof Error)throw o;var r=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw r.context=o,r}var s=h[e];if(s===void 0)return!1;if(typeof s=="function")Yr(s,this,i);else{var n=s.length,a=Qo(s,n);for(t=0;t<n;++t)Yr(a[t],this,i)}return!0},Be.prototype.addListener=function(e,i){return Hn(this,e,i,!1)},Be.prototype.on=Be.prototype.addListener,Be.prototype.prependListener=function(e,i){return Hn(this,e,i,!0)},Be.prototype.once=function(e,i){return Cr(i),this.on(e,zn(this,e,i)),this},Be.prototype.prependOnceListener=function(e,i){return Cr(i),this.prependListener(e,zn(this,e,i)),this},Be.prototype.removeListener=function(e,i){var t,l,h,o,r;if(Cr(i),(l=this._events)===void 0)return this;if((t=l[e])===void 0)return this;if(t===i||t.listener===i)--this._eventsCount==0?this._events=Object.create(null):(delete l[e],l.removeListener&&this.emit("removeListener",e,t.listener||i));else if(typeof t!="function"){for(h=-1,o=t.length-1;o>=0;o--)if(t[o]===i||t[o].listener===i){r=t[o].listener,h=o;break}if(h<0)return this;h===0?t.shift():function(s,n){for(;n+1<s.length;n++)s[n]=s[n+1];s.pop()}(t,h),t.length===1&&(l[e]=t[0]),l.removeListener!==void 0&&this.emit("removeListener",e,r||i)}return this},Be.prototype.off=Be.prototype.removeListener,Be.prototype.removeAllListeners=function(e){var i,t,l;if((t=this._events)===void 0)return this;if(t.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):t[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete t[e]),this;if(arguments.length===0){var h,o=Object.keys(t);for(l=0;l<o.length;++l)(h=o[l])!=="removeListener"&&this.removeAllListeners(h);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(i=t[e])=="function")this.removeListener(e,i);else if(i!==void 0)for(l=i.length-1;l>=0;l--)this.removeListener(e,i[l]);return this},Be.prototype.listeners=function(e){return Kn(this,e,!0)},Be.prototype.rawListeners=function(e){return Kn(this,e,!1)},Be.listenerCount=function(e,i){return typeof e.listenerCount=="function"?e.listenerCount(i):Yn.call(e,i)},Be.prototype.listenerCount=Yn,Be.prototype.eventNames=function(){return this._eventsCount>0?Gn(this._events):[]},ut=Qn,ut.EventEmitter,ut.defaultMaxListeners,ut.init,ut.listenerCount,ut.EventEmitter,ut.defaultMaxListeners,ut.init,ut.listenerCount}),ir={};tr(ir,{EventEmitter:()=>Go,default:()=>ut,defaultMaxListeners:()=>Jo,init:()=>Xo,listenerCount:()=>Zo,on:()=>es,once:()=>ts});var Go,Jo,Xo,Zo,es,ts,hr=Je(()=>{ae(),se(),oe(),Jn(),Jn(),ut.once=function(e,i){return new Promise((t,l)=>{function h(...r){o!==void 0&&e.removeListener("error",o),t(r)}let o;i!=="error"&&(o=r=>{e.removeListener(name,h),l(r)},e.once("error",o)),e.once(i,h)})},ut.on=function(e,i){let t=[],l=[],h=null,o=!1,r={async next(){let a=t.shift();if(a)return createIterResult(a,!1);if(h){let c=Promise.reject(h);return h=null,c}return o?createIterResult(void 0,!0):new Promise((c,d)=>l.push({resolve:c,reject:d}))},async return(){e.removeListener(i,s),e.removeListener("error",n),o=!0;for(let a of l)a.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(a){h=a,e.removeListener(i,s),e.removeListener("error",n)},[Symbol.asyncIterator](){return this}};return e.on(i,s),e.on("error",n),r;function s(...a){let c=l.shift();c?c.resolve(createIterResult(a,!1)):t.push(a)}function n(a){o=!0;let c=l.shift();c?c.reject(a):h=a,r.return()}},{EventEmitter:Go,defaultMaxListeners:Jo,init:Xo,listenerCount:Zo,on:es,once:ts}=ut}),Un=me((e,i)=>{ae(),se(),oe();var{ArrayIsArray:t,ObjectSetPrototypeOf:l}=Ye(),{EventEmitter:h}=(hr(),Ue(ir));function o(s){h.call(this,s)}l(o.prototype,h.prototype),l(o,h),o.prototype.pipe=function(s,n){let a=this;function c(U){s.writable&&s.write(U)===!1&&a.pause&&a.pause()}a.on("data",c);function d(){a.readable&&a.resume&&a.resume()}s.on("drain",d),!s._isStdio&&(!n||n.end!==!1)&&(a.on("end",b),a.on("close",m));let g=!1;function b(){g||(g=!0,s.end())}function m(){g||(g=!0,typeof s.destroy=="function"&&s.destroy())}function y(U){I(),h.listenerCount(this,"error")===0&&this.emit("error",U)}r(a,"error",y),r(s,"error",y);function I(){a.removeListener("data",c),s.removeListener("drain",d),a.removeListener("end",b),a.removeListener("close",m),a.removeListener("error",y),s.removeListener("error",y),a.removeListener("end",I),a.removeListener("close",I),s.removeListener("close",I)}return a.on("end",I),a.on("close",I),s.on("close",I),s.emit("pipe",a),s};function r(s,n,a){if(typeof s.prependListener=="function")return s.prependListener(n,a);!s._events||!s._events[n]?s.on(n,a):t(s._events[n])?s._events[n].unshift(a):s._events[n]=[a,s._events[n]]}i.exports={Stream:o,prependListener:r}}),Wr=me((e,i)=>{ae(),se(),oe();var{AbortError:t,codes:l}=st(),{isNodeStream:h,isWebStream:o,kControllerErrorFunction:r}=Pt(),s=Dt(),{ERR_INVALID_ARG_TYPE:n}=l,a=(c,d)=>{if(typeof c!="object"||!("aborted"in c))throw new n(d,"AbortSignal",c)};i.exports.addAbortSignal=function(c,d){if(a(c,"signal"),!h(d)&&!o(d))throw new n("stream",["ReadableStream","WritableStream","Stream"],d);return i.exports.addAbortSignalNoValidate(c,d)},i.exports.addAbortSignalNoValidate=function(c,d){if(typeof c!="object"||!("aborted"in c))return d;let g=h(d)?()=>{d.destroy(new t(void 0,{cause:c.reason}))}:()=>{d[r](new t(void 0,{cause:c.reason}))};return c.aborted?g():(c.addEventListener("abort",g),s(d,()=>c.removeEventListener("abort",g))),d}}),Na=me((e,i)=>{ae(),se(),oe();var{StringPrototypeSlice:t,SymbolIterator:l,TypedArrayPrototypeSet:h,Uint8Array:o}=Ye(),{Buffer:r}=(tt(),Ue(et)),{inspect:s}=Ot();i.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(n){let a={data:n,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}unshift(n){let a={data:n,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}shift(){if(this.length===0)return;let n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}clear(){this.head=this.tail=null,this.length=0}join(n){if(this.length===0)return"";let a=this.head,c=""+a.data;for(;(a=a.next)!==null;)c+=n+a.data;return c}concat(n){if(this.length===0)return r.alloc(0);let a=r.allocUnsafe(n>>>0),c=this.head,d=0;for(;c;)h(a,c.data,d),d+=c.data.length,c=c.next;return a}consume(n,a){let c=this.head.data;if(n<c.length){let d=c.slice(0,n);return this.head.data=c.slice(n),d}return n===c.length?this.shift():a?this._getString(n):this._getBuffer(n)}first(){return this.head.data}*[l](){for(let n=this.head;n;n=n.next)yield n.data}_getString(n){let a="",c=this.head,d=0;do{let g=c.data;if(n>g.length)a+=g,n-=g.length;else{n===g.length?(a+=g,++d,c.next?this.head=c.next:this.head=this.tail=null):(a+=t(g,0,n),this.head=c,c.data=t(g,n));break}++d}while((c=c.next)!==null);return this.length-=d,a}_getBuffer(n){let a=r.allocUnsafe(n),c=n,d=this.head,g=0;do{let b=d.data;if(n>b.length)h(a,b,c-n),n-=b.length;else{n===b.length?(h(a,b,c-n),++g,d.next?this.head=d.next:this.head=this.tail=null):(h(a,new o(b.buffer,b.byteOffset,n),c-n),this.head=d,d.data=b.slice(n));break}++g}while((d=d.next)!==null);return this.length-=g,a}[Symbol.for("nodejs.util.inspect.custom")](n,a){return s(this,{...a,depth:0,customInspect:!1})}}}),Ln=me((e,i)=>{ae(),se(),oe();var{MathFloor:t,NumberIsInteger:l}=Ye(),{ERR_INVALID_ARG_VALUE:h}=st().codes;function o(n,a,c){return n.highWaterMark!=null?n.highWaterMark:a?n[c]:null}function r(n){return n?16:16*1024}function s(n,a,c,d){let g=o(a,d,c);if(g!=null){if(!l(g)||g<0){let b=d?`options.${c}`:"options.highWaterMark";throw new h(b,g)}return t(g)}return r(n.objectMode)}i.exports={getHighWaterMark:s,getDefaultHighWaterMark:r}});function Xn(e){var i=e.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return t===-1&&(t=i),[t,t===i?0:4-t%4]}function ja(e,i,t){for(var l,h,o=[],r=i;r<t;r+=3)l=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),o.push(gt[(h=l)>>18&63]+gt[h>>12&63]+gt[h>>6&63]+gt[63&h]);return o.join("")}function Tt(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=new Uint8Array(e);return Object.setPrototypeOf(i,pe.prototype),i}function pe(e,i,t){if(typeof e=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return pn(e)}return rs(e,i,t)}function rs(e,i,t){if(typeof e=="string")return function(o,r){if(typeof r=="string"&&r!==""||(r="utf8"),!pe.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var s=0|ns(o,r),n=Tt(s),a=n.write(o,r);return a!==s&&(n=n.slice(0,a)),n}(e,i);if(ArrayBuffer.isView(e))return Jr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(kt(e,ArrayBuffer)||e&&kt(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(kt(e,SharedArrayBuffer)||e&&kt(e.buffer,SharedArrayBuffer)))return Da(e,i,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var l=e.valueOf&&e.valueOf();if(l!=null&&l!==e)return pe.from(l,i,t);var h=function(o){if(pe.isBuffer(o)){var r=0|Nn(o.length),s=Tt(r);return s.length===0||o.copy(s,0,0,r),s}if(o.length!==void 0)return typeof o.length!="number"||jn(o.length)?Tt(0):Jr(o);if(o.type==="Buffer"&&Array.isArray(o.data))return Jr(o.data)}(e);if(h)return h;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return pe.from(e[Symbol.toPrimitive]("string"),i,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function is(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function pn(e){return is(e),Tt(e<0?0:0|Nn(e))}function Jr(e){for(var i=e.length<0?0:0|Nn(e.length),t=Tt(i),l=0;l<i;l+=1)t[l]=255&e[l];return t}function Da(e,i,t){if(i<0||e.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<i+(t||0))throw new RangeError('"length" is outside of buffer bounds');var l;return l=i===void 0&&t===void 0?new Uint8Array(e):t===void 0?new Uint8Array(e,i):new Uint8Array(e,i,t),Object.setPrototypeOf(l,pe.prototype),l}function Nn(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function ns(e,i){if(pe.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||kt(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&t===0)return 0;for(var h=!1;;)switch(i){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return gn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return ls(e).length;default:if(h)return l?-1:gn(e).length;i=(""+i).toLowerCase(),h=!0}}function Fa(e,i,t){var l=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0)<=(i>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Qa(this,i,t);case"utf8":case"utf-8":return ss(this,i,t);case"ascii":return Ka(this,i,t);case"latin1":case"binary":return Ya(this,i,t);case"base64":return za(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ga(this,i,t);default:if(l)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function $t(e,i,t){var l=e[i];e[i]=e[t],e[t]=l}function Zn(e,i,t,l,h){if(e.length===0)return-1;if(typeof t=="string"?(l=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),jn(t=+t)&&(t=h?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(h)return-1;t=e.length-1}else if(t<0){if(!h)return-1;t=0}if(typeof i=="string"&&(i=pe.from(i,l)),pe.isBuffer(i))return i.length===0?-1:eo(e,i,t,l,h);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?h?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):eo(e,[i],t,l,h);throw new TypeError("val must be string, number or Buffer")}function eo(e,i,t,l,h){var o,r=1,s=e.length,n=i.length;if(l!==void 0&&((l=String(l).toLowerCase())==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(e.length<2||i.length<2)return-1;r=2,s/=2,n/=2,t/=2}function a(b,m){return r===1?b[m]:b.readUInt16BE(m*r)}if(h){var c=-1;for(o=t;o<s;o++)if(a(e,o)===a(i,c===-1?0:o-c)){if(c===-1&&(c=o),o-c+1===n)return c*r}else c!==-1&&(o-=o-c),c=-1}else for(t+n>s&&(t=s-n),o=t;o>=0;o--){for(var d=!0,g=0;g<n;g++)if(a(e,o+g)!==a(i,g)){d=!1;break}if(d)return o}return-1}function Wa(e,i,t,l){t=Number(t)||0;var h=e.length-t;l?(l=Number(l))>h&&(l=h):l=h;var o=i.length;l>o/2&&(l=o/2);for(var r=0;r<l;++r){var s=parseInt(i.substr(2*r,2),16);if(jn(s))return r;e[t+r]=s}return r}function $a(e,i,t,l){return $r(gn(i,e.length-t),e,t,l)}function os(e,i,t,l){return $r(function(h){for(var o=[],r=0;r<h.length;++r)o.push(255&h.charCodeAt(r));return o}(i),e,t,l)}function qa(e,i,t,l){return os(e,i,t,l)}function Va(e,i,t,l){return $r(ls(i),e,t,l)}function Ha(e,i,t,l){return $r(function(h,o){for(var r,s,n,a=[],c=0;c<h.length&&!((o-=2)<0);++c)r=h.charCodeAt(c),s=r>>8,n=r%256,a.push(n),a.push(s);return a}(i,e.length-t),e,t,l)}function za(e,i,t){return i===0&&t===e.length?Lr.fromByteArray(e):Lr.fromByteArray(e.slice(i,t))}function ss(e,i,t){t=Math.min(e.length,t);for(var l=[],h=i;h<t;){var o,r,s,n,a=e[h],c=null,d=a>239?4:a>223?3:a>191?2:1;if(h+d<=t)switch(d){case 1:a<128&&(c=a);break;case 2:(192&(o=e[h+1]))==128&&(n=(31&a)<<6|63&o)>127&&(c=n);break;case 3:o=e[h+1],r=e[h+2],(192&o)==128&&(192&r)==128&&(n=(15&a)<<12|(63&o)<<6|63&r)>2047&&(n<55296||n>57343)&&(c=n);break;case 4:o=e[h+1],r=e[h+2],s=e[h+3],(192&o)==128&&(192&r)==128&&(192&s)==128&&(n=(15&a)<<18|(63&o)<<12|(63&r)<<6|63&s)>65535&&n<1114112&&(c=n)}c===null?(c=65533,d=1):c>65535&&(c-=65536,l.push(c>>>10&1023|55296),c=56320|1023&c),l.push(c),h+=d}return function(g){var b=g.length;if(b<=4096)return String.fromCharCode.apply(String,g);for(var m="",y=0;y<b;)m+=String.fromCharCode.apply(String,g.slice(y,y+=4096));return m}(l)}function Ka(e,i,t){var l="";t=Math.min(e.length,t);for(var h=i;h<t;++h)l+=String.fromCharCode(127&e[h]);return l}function Ya(e,i,t){var l="";t=Math.min(e.length,t);for(var h=i;h<t;++h)l+=String.fromCharCode(e[h]);return l}function Qa(e,i,t){var l=e.length;(!i||i<0)&&(i=0),(!t||t<0||t>l)&&(t=l);for(var h="",o=i;o<t;++o)h+=hs[e[o]];return h}function Ga(e,i,t){for(var l=e.slice(i,t),h="",o=0;o<l.length;o+=2)h+=String.fromCharCode(l[o]+256*l[o+1]);return h}function Qe(e,i,t){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+i>t)throw new RangeError("Trying to access beyond buffer length")}function ot(e,i,t,l,h,o){if(!pe.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>h||i<o)throw new RangeError('"value" argument is out of bounds');if(t+l>e.length)throw new RangeError("Index out of range")}function as(e,i,t,l,h,o){if(t+l>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function to(e,i,t,l,h){return i=+i,t>>>=0,h||as(e,0,t,4),Yt.write(e,i,t,l,23,4),t+4}function ro(e,i,t,l,h){return i=+i,t>>>=0,h||as(e,0,t,8),Yt.write(e,i,t,l,52,8),t+8}function gn(e,i){var t;i=i||1/0;for(var l=e.length,h=null,o=[],r=0;r<l;++r){if((t=e.charCodeAt(r))>55295&&t<57344){if(!h){if(t>56319){(i-=3)>-1&&o.push(239,191,189);continue}if(r+1===l){(i-=3)>-1&&o.push(239,191,189);continue}h=t;continue}if(t<56320){(i-=3)>-1&&o.push(239,191,189),h=t;continue}t=65536+(h-55296<<10|t-56320)}else h&&(i-=3)>-1&&o.push(239,191,189);if(h=null,t<128){if((i-=1)<0)break;o.push(t)}else if(t<2048){if((i-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((i-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function ls(e){return Lr.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(us,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(e))}function $r(e,i,t,l){for(var h=0;h<l&&!(h+t>=i.length||h>=e.length);++h)i[h+t]=e[h];return h}function kt(e,i){return e instanceof i||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===i.name}function jn(e){return e!=e}function io(e,i){for(var t in e)i[t]=e[t]}function qt(e,i,t){return dt(e,i,t)}function cr(e){var i;switch(this.encoding=function(t){var l=function(h){if(!h)return"utf8";for(var o;;)switch(h){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return h;default:if(o)return;h=(""+h).toLowerCase(),o=!0}}(t);if(typeof l!="string"&&(Nr.isEncoding===bn||!bn(t)))throw new Error("Unknown encoding: "+t);return l||t}(e),this.encoding){case"utf16le":this.text=Xa,this.end=Za,i=4;break;case"utf8":this.fillLast=Ja,i=4;break;case"base64":this.text=el,this.end=tl,i=3;break;default:return this.write=rl,this.end=il,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Nr.allocUnsafe(i)}function Xr(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function Ja(e){var i=this.lastTotal-this.lastNeed,t=function(l,h,o){if((192&h[0])!=128)return l.lastNeed=0,"�";if(l.lastNeed>1&&h.length>1){if((192&h[1])!=128)return l.lastNeed=1,"�";if(l.lastNeed>2&&h.length>2&&(192&h[2])!=128)return l.lastNeed=2,"�"}}(this,e);return t!==void 0?t:this.lastNeed<=e.length?(e.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,i,0,e.length),this.lastNeed-=e.length,void 0)}function Xa(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var l=t.charCodeAt(t.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function Za(e){var i=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,t)}return i}function el(e,i){var t=(e.length-i)%3;return t===0?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function tl(e){var i=e&&e.length?this.write(e):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function rl(e){return e.toString(this.encoding)}function il(e){return e&&e.length?this.write(e):""}var no,gt,at,oo,Er,Vt,so,ao,bt,Lr,Yt,Zr,us,hs,fr,dr,dt,lo,ar,Nr,bn,uo=Je(()=>{for(ae(),se(),oe(),no={byteLength:function(e){var i=Xn(e),t=i[0],l=i[1];return 3*(t+l)/4-l},toByteArray:function(e){var i,t,l=Xn(e),h=l[0],o=l[1],r=new oo(function(a,c,d){return 3*(c+d)/4-d}(0,h,o)),s=0,n=o>0?h-4:h;for(t=0;t<n;t+=4)i=at[e.charCodeAt(t)]<<18|at[e.charCodeAt(t+1)]<<12|at[e.charCodeAt(t+2)]<<6|at[e.charCodeAt(t+3)],r[s++]=i>>16&255,r[s++]=i>>8&255,r[s++]=255&i;return o===2&&(i=at[e.charCodeAt(t)]<<2|at[e.charCodeAt(t+1)]>>4,r[s++]=255&i),o===1&&(i=at[e.charCodeAt(t)]<<10|at[e.charCodeAt(t+1)]<<4|at[e.charCodeAt(t+2)]>>2,r[s++]=i>>8&255,r[s++]=255&i),r},fromByteArray:function(e){for(var i,t=e.length,l=t%3,h=[],o=0,r=t-l;o<r;o+=16383)h.push(ja(e,o,o+16383>r?r:o+16383));return l===1?(i=e[t-1],h.push(gt[i>>2]+gt[i<<4&63]+"==")):l===2&&(i=(e[t-2]<<8)+e[t-1],h.push(gt[i>>10]+gt[i>>4&63]+gt[i<<2&63]+"=")),h.join("")}},gt=[],at=[],oo=typeof Uint8Array<"u"?Uint8Array:Array,Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vt=0,so=Er.length;Vt<so;++Vt)gt[Vt]=Er[Vt],at[Er.charCodeAt(Vt)]=Vt;at[45]=62,at[95]=63,ao={read:function(e,i,t,l,h){var o,r,s=8*h-l-1,n=(1<<s)-1,a=n>>1,c=-7,d=t?h-1:0,g=t?-1:1,b=e[i+d];for(d+=g,o=b&(1<<-c)-1,b>>=-c,c+=s;c>0;o=256*o+e[i+d],d+=g,c-=8);for(r=o&(1<<-c)-1,o>>=-c,c+=l;c>0;r=256*r+e[i+d],d+=g,c-=8);if(o===0)o=1-a;else{if(o===n)return r?NaN:1/0*(b?-1:1);r+=Math.pow(2,l),o-=a}return(b?-1:1)*r*Math.pow(2,o-l)},write:function(e,i,t,l,h,o){var r,s,n,a=8*o-h-1,c=(1<<a)-1,d=c>>1,g=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=l?0:o-1,m=l?1:-1,y=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(s=isNaN(i)?1:0,r=c):(r=Math.floor(Math.log(i)/Math.LN2),i*(n=Math.pow(2,-r))<1&&(r--,n*=2),(i+=r+d>=1?g/n:g*Math.pow(2,1-d))*n>=2&&(r++,n/=2),r+d>=c?(s=0,r=c):r+d>=1?(s=(i*n-1)*Math.pow(2,h),r+=d):(s=i*Math.pow(2,d-1)*Math.pow(2,h),r=0));h>=8;e[t+b]=255&s,b+=m,s/=256,h-=8);for(r=r<<h|s,a+=h;a>0;e[t+b]=255&r,b+=m,r/=256,a-=8);e[t+b-m]|=128*y}},bt={},Lr=no,Yt=ao,Zr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,bt.Buffer=pe,bt.SlowBuffer=function(e){return+e!=e&&(e=0),pe.alloc(+e)},bt.INSPECT_MAX_BYTES=50,bt.kMaxLength=2147483647,pe.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(e,i),e.foo()===42}catch{return!1}}(),pe.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(pe.prototype,"parent",{enumerable:!0,get:function(){if(pe.isBuffer(this))return this.buffer}}),Object.defineProperty(pe.prototype,"offset",{enumerable:!0,get:function(){if(pe.isBuffer(this))return this.byteOffset}}),pe.poolSize=8192,pe.from=function(e,i,t){return rs(e,i,t)},Object.setPrototypeOf(pe.prototype,Uint8Array.prototype),Object.setPrototypeOf(pe,Uint8Array),pe.alloc=function(e,i,t){return function(l,h,o){return is(l),l<=0?Tt(l):h!==void 0?typeof o=="string"?Tt(l).fill(h,o):Tt(l).fill(h):Tt(l)}(e,i,t)},pe.allocUnsafe=function(e){return pn(e)},pe.allocUnsafeSlow=function(e){return pn(e)},pe.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==pe.prototype},pe.compare=function(e,i){if(kt(e,Uint8Array)&&(e=pe.from(e,e.offset,e.byteLength)),kt(i,Uint8Array)&&(i=pe.from(i,i.offset,i.byteLength)),!pe.isBuffer(e)||!pe.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===i)return 0;for(var t=e.length,l=i.length,h=0,o=Math.min(t,l);h<o;++h)if(e[h]!==i[h]){t=e[h],l=i[h];break}return t<l?-1:l<t?1:0},pe.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},pe.concat=function(e,i){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return pe.alloc(0);var t;if(i===void 0)for(i=0,t=0;t<e.length;++t)i+=e[t].length;var l=pe.allocUnsafe(i),h=0;for(t=0;t<e.length;++t){var o=e[t];if(kt(o,Uint8Array)&&(o=pe.from(o)),!pe.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(l,h),h+=o.length}return l},pe.byteLength=ns,pe.prototype._isBuffer=!0,pe.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<e;i+=2)$t(this,i,i+1);return this},pe.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<e;i+=4)$t(this,i,i+3),$t(this,i+1,i+2);return this},pe.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<e;i+=8)$t(this,i,i+7),$t(this,i+1,i+6),$t(this,i+2,i+5),$t(this,i+3,i+4);return this},pe.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ss(this,0,e):Fa.apply(this,arguments)},pe.prototype.toLocaleString=pe.prototype.toString,pe.prototype.equals=function(e){if(!pe.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||pe.compare(this,e)===0},pe.prototype.inspect=function(){var e="",i=bt.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},Zr&&(pe.prototype[Zr]=pe.prototype.inspect),pe.prototype.compare=function(e,i,t,l,h){if(kt(e,Uint8Array)&&(e=pe.from(e,e.offset,e.byteLength)),!pe.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(i===void 0&&(i=0),t===void 0&&(t=e?e.length:0),l===void 0&&(l=0),h===void 0&&(h=this.length),i<0||t>e.length||l<0||h>this.length)throw new RangeError("out of range index");if(l>=h&&i>=t)return 0;if(l>=h)return-1;if(i>=t)return 1;if(this===e)return 0;for(var o=(h>>>=0)-(l>>>=0),r=(t>>>=0)-(i>>>=0),s=Math.min(o,r),n=this.slice(l,h),a=e.slice(i,t),c=0;c<s;++c)if(n[c]!==a[c]){o=n[c],r=a[c];break}return o<r?-1:r<o?1:0},pe.prototype.includes=function(e,i,t){return this.indexOf(e,i,t)!==-1},pe.prototype.indexOf=function(e,i,t){return Zn(this,e,i,t,!0)},pe.prototype.lastIndexOf=function(e,i,t){return Zn(this,e,i,t,!1)},pe.prototype.write=function(e,i,t,l){if(i===void 0)l="utf8",t=this.length,i=0;else if(t===void 0&&typeof i=="string")l=i,t=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(t)?(t>>>=0,l===void 0&&(l="utf8")):(l=t,t=void 0)}var h=this.length-i;if((t===void 0||t>h)&&(t=h),e.length>0&&(t<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");for(var o=!1;;)switch(l){case"hex":return Wa(this,e,i,t);case"utf8":case"utf-8":return $a(this,e,i,t);case"ascii":return os(this,e,i,t);case"latin1":case"binary":return qa(this,e,i,t);case"base64":return Va(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ha(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),o=!0}},pe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},pe.prototype.slice=function(e,i){var t=this.length;(e=~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),(i=i===void 0?t:~~i)<0?(i+=t)<0&&(i=0):i>t&&(i=t),i<e&&(i=e);var l=this.subarray(e,i);return Object.setPrototypeOf(l,pe.prototype),l},pe.prototype.readUIntLE=function(e,i,t){e>>>=0,i>>>=0,t||Qe(e,i,this.length);for(var l=this[e],h=1,o=0;++o<i&&(h*=256);)l+=this[e+o]*h;return l},pe.prototype.readUIntBE=function(e,i,t){e>>>=0,i>>>=0,t||Qe(e,i,this.length);for(var l=this[e+--i],h=1;i>0&&(h*=256);)l+=this[e+--i]*h;return l},pe.prototype.readUInt8=function(e,i){return e>>>=0,i||Qe(e,1,this.length),this[e]},pe.prototype.readUInt16LE=function(e,i){return e>>>=0,i||Qe(e,2,this.length),this[e]|this[e+1]<<8},pe.prototype.readUInt16BE=function(e,i){return e>>>=0,i||Qe(e,2,this.length),this[e]<<8|this[e+1]},pe.prototype.readUInt32LE=function(e,i){return e>>>=0,i||Qe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},pe.prototype.readUInt32BE=function(e,i){return e>>>=0,i||Qe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},pe.prototype.readIntLE=function(e,i,t){e>>>=0,i>>>=0,t||Qe(e,i,this.length);for(var l=this[e],h=1,o=0;++o<i&&(h*=256);)l+=this[e+o]*h;return l>=(h*=128)&&(l-=Math.pow(2,8*i)),l},pe.prototype.readIntBE=function(e,i,t){e>>>=0,i>>>=0,t||Qe(e,i,this.length);for(var l=i,h=1,o=this[e+--l];l>0&&(h*=256);)o+=this[e+--l]*h;return o>=(h*=128)&&(o-=Math.pow(2,8*i)),o},pe.prototype.readInt8=function(e,i){return e>>>=0,i||Qe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},pe.prototype.readInt16LE=function(e,i){e>>>=0,i||Qe(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},pe.prototype.readInt16BE=function(e,i){e>>>=0,i||Qe(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},pe.prototype.readInt32LE=function(e,i){return e>>>=0,i||Qe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},pe.prototype.readInt32BE=function(e,i){return e>>>=0,i||Qe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},pe.prototype.readFloatLE=function(e,i){return e>>>=0,i||Qe(e,4,this.length),Yt.read(this,e,!0,23,4)},pe.prototype.readFloatBE=function(e,i){return e>>>=0,i||Qe(e,4,this.length),Yt.read(this,e,!1,23,4)},pe.prototype.readDoubleLE=function(e,i){return e>>>=0,i||Qe(e,8,this.length),Yt.read(this,e,!0,52,8)},pe.prototype.readDoubleBE=function(e,i){return e>>>=0,i||Qe(e,8,this.length),Yt.read(this,e,!1,52,8)},pe.prototype.writeUIntLE=function(e,i,t,l){e=+e,i>>>=0,t>>>=0,l||ot(this,e,i,t,Math.pow(2,8*t)-1,0);var h=1,o=0;for(this[i]=255&e;++o<t&&(h*=256);)this[i+o]=e/h&255;return i+t},pe.prototype.writeUIntBE=function(e,i,t,l){e=+e,i>>>=0,t>>>=0,l||ot(this,e,i,t,Math.pow(2,8*t)-1,0);var h=t-1,o=1;for(this[i+h]=255&e;--h>=0&&(o*=256);)this[i+h]=e/o&255;return i+t},pe.prototype.writeUInt8=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,1,255,0),this[i]=255&e,i+1},pe.prototype.writeUInt16LE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,2,65535,0),this[i]=255&e,this[i+1]=e>>>8,i+2},pe.prototype.writeUInt16BE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,2,65535,0),this[i]=e>>>8,this[i+1]=255&e,i+2},pe.prototype.writeUInt32LE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,4,4294967295,0),this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e,i+4},pe.prototype.writeUInt32BE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,4,4294967295,0),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},pe.prototype.writeIntLE=function(e,i,t,l){if(e=+e,i>>>=0,!l){var h=Math.pow(2,8*t-1);ot(this,e,i,t,h-1,-h)}var o=0,r=1,s=0;for(this[i]=255&e;++o<t&&(r*=256);)e<0&&s===0&&this[i+o-1]!==0&&(s=1),this[i+o]=(e/r>>0)-s&255;return i+t},pe.prototype.writeIntBE=function(e,i,t,l){if(e=+e,i>>>=0,!l){var h=Math.pow(2,8*t-1);ot(this,e,i,t,h-1,-h)}var o=t-1,r=1,s=0;for(this[i+o]=255&e;--o>=0&&(r*=256);)e<0&&s===0&&this[i+o+1]!==0&&(s=1),this[i+o]=(e/r>>0)-s&255;return i+t},pe.prototype.writeInt8=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,1,127,-128),e<0&&(e=255+e+1),this[i]=255&e,i+1},pe.prototype.writeInt16LE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,2,32767,-32768),this[i]=255&e,this[i+1]=e>>>8,i+2},pe.prototype.writeInt16BE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,2,32767,-32768),this[i]=e>>>8,this[i+1]=255&e,i+2},pe.prototype.writeInt32LE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,4,2147483647,-2147483648),this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24,i+4},pe.prototype.writeInt32BE=function(e,i,t){return e=+e,i>>>=0,t||ot(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},pe.prototype.writeFloatLE=function(e,i,t){return to(this,e,i,!0,t)},pe.prototype.writeFloatBE=function(e,i,t){return to(this,e,i,!1,t)},pe.prototype.writeDoubleLE=function(e,i,t){return ro(this,e,i,!0,t)},pe.prototype.writeDoubleBE=function(e,i,t){return ro(this,e,i,!1,t)},pe.prototype.copy=function(e,i,t,l){if(!pe.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),l||l===0||(l=this.length),i>=e.length&&(i=e.length),i||(i=0),l>0&&l<t&&(l=t),l===t||e.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),e.length-i<l-t&&(l=e.length-i+t);var h=l-t;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(i,t,l);else if(this===e&&t<i&&i<l)for(var o=h-1;o>=0;--o)e[o+i]=this[o+t];else Uint8Array.prototype.set.call(e,this.subarray(t,l),i);return h},pe.prototype.fill=function(e,i,t,l){if(typeof e=="string"){if(typeof i=="string"?(l=i,i=0,t=this.length):typeof t=="string"&&(l=t,t=this.length),l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!pe.isEncoding(l))throw new TypeError("Unknown encoding: "+l);if(e.length===1){var h=e.charCodeAt(0);(l==="utf8"&&h<128||l==="latin1")&&(e=h)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(i<0||this.length<i||this.length<t)throw new RangeError("Out of range index");if(t<=i)return this;var o;if(i>>>=0,t=t===void 0?this.length:t>>>0,e||(e=0),typeof e=="number")for(o=i;o<t;++o)this[o]=e;else{var r=pe.isBuffer(e)?e:pe.from(e,l),s=r.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<t-i;++o)this[o+i]=r[o%s]}return this},us=/[^+/0-9A-Za-z-_]/g,hs=function(){for(var e=new Array(256),i=0;i<16;++i)for(var t=16*i,l=0;l<16;++l)e[t+l]="0123456789abcdef"[i]+"0123456789abcdef"[l];return e}(),bt.Buffer,bt.INSPECT_MAX_BYTES,bt.kMaxLength,fr={},dr=bt,dt=dr.Buffer,dt.from&&dt.alloc&&dt.allocUnsafe&&dt.allocUnsafeSlow?fr=dr:(io(dr,fr),fr.Buffer=qt),qt.prototype=Object.create(dt.prototype),io(dt,qt),qt.from=function(e,i,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return dt(e,i,t)},qt.alloc=function(e,i,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var l=dt(e);return i!==void 0?typeof t=="string"?l.fill(i,t):l.fill(i):l.fill(0),l},qt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return dt(e)},qt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return dr.SlowBuffer(e)},lo=fr,ar={},Nr=lo.Buffer,bn=Nr.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},ar.StringDecoder=cr,cr.prototype.write=function(e){if(e.length===0)return"";var i,t;if(this.lastNeed){if((i=this.fillLast(e))===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?i?i+this.text(e,t):this.text(e,t):i||""},cr.prototype.end=function(e){var i=e&&e.length?this.write(e):"";return this.lastNeed?i+"�":i},cr.prototype.text=function(e,i){var t=function(h,o,r){var s=o.length-1;if(s<r)return 0;var n=Xr(o[s]);return n>=0?(n>0&&(h.lastNeed=n-1),n):--s<r||n===-2?0:(n=Xr(o[s]))>=0?(n>0&&(h.lastNeed=n-2),n):--s<r||n===-2?0:(n=Xr(o[s]))>=0?(n>0&&(n===2?n=0:h.lastNeed=n-3),n):0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var l=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,l),e.toString("utf8",i,l)},cr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},ar.StringDecoder,ar.StringDecoder}),cs={};tr(cs,{StringDecoder:()=>fs,default:()=>ar});var fs,nl=Je(()=>{ae(),se(),oe(),uo(),uo(),fs=ar.StringDecoder}),ds=me((e,i)=>{ae(),se(),oe();var t=rr(),{PromisePrototypeThen:l,SymbolAsyncIterator:h,SymbolIterator:o}=Ye(),{Buffer:r}=(tt(),Ue(et)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:n}=st().codes;function a(c,d,g){let b;if(typeof d=="string"||d instanceof r)return new c({objectMode:!0,...g,read(){this.push(d),this.push(null)}});let m;if(d&&d[h])m=!0,b=d[h]();else if(d&&d[o])m=!1,b=d[o]();else throw new s("iterable",["Iterable"],d);let y=new c({objectMode:!0,highWaterMark:1,...g}),I=!1;y._read=function(){I||(I=!0,k())},y._destroy=function(T,D){l(U(T),()=>t.nextTick(D,T),F=>t.nextTick(D,F||T))};async function U(T){let D=T!=null,F=typeof b.throw=="function";if(D&&F){let{value:R,done:O}=await b.throw(T);if(await R,O)return}if(typeof b.return=="function"){let{value:R}=await b.return();await R}}async function k(){for(;;){try{let{value:T,done:D}=m?await b.next():b.next();if(D)y.push(null);else{let F=T&&typeof T.then=="function"?await T:T;if(F===null)throw I=!1,new n;if(y.push(F))continue;I=!1}}catch(T){y.destroy(T)}break}}return y}i.exports=a}),qr=me((e,i)=>{ae(),se(),oe();var t=rr(),{ArrayPrototypeIndexOf:l,NumberIsInteger:h,NumberIsNaN:o,NumberParseInt:r,ObjectDefineProperties:s,ObjectKeys:n,ObjectSetPrototypeOf:a,Promise:c,SafeSet:d,SymbolAsyncIterator:g,Symbol:b}=Ye();i.exports=S,S.ReadableState=ve;var{EventEmitter:m}=(hr(),Ue(ir)),{Stream:y,prependListener:I}=Un(),{Buffer:U}=(tt(),Ue(et)),{addAbortSignal:k}=Wr(),T=Dt(),D=Ot().debuglog("stream",u=>{D=u}),F=Na(),R=ur(),{getHighWaterMark:O,getDefaultHighWaterMark:M}=Ln(),{aggregateTwoErrors:W,codes:{ERR_INVALID_ARG_TYPE:G,ERR_METHOD_NOT_IMPLEMENTED:ee,ERR_OUT_OF_RANGE:E,ERR_STREAM_PUSH_AFTER_EOF:q,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Z}}=st(),{validateObject:K}=Fr(),ge=b("kPaused"),{StringDecoder:ne}=(nl(),Ue(cs)),$=ds();a(S.prototype,y.prototype),a(S,y);var be=()=>{},{errorOrDestroy:re}=R;function ve(u,p,v){typeof v!="boolean"&&(v=p instanceof Ct()),this.objectMode=!!(u&&u.objectMode),v&&(this.objectMode=this.objectMode||!!(u&&u.readableObjectMode)),this.highWaterMark=u?O(this,u,"readableHighWaterMark",v):M(!1),this.buffer=new F,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[ge]=null,this.errorEmitted=!1,this.emitClose=!u||u.emitClose!==!1,this.autoDestroy=!u||u.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=u&&u.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,u&&u.encoding&&(this.decoder=new ne(u.encoding),this.encoding=u.encoding)}function S(u){if(!(this instanceof S))return new S(u);let p=this instanceof Ct();this._readableState=new ve(u,this,p),u&&(typeof u.read=="function"&&(this._read=u.read),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.construct=="function"&&(this._construct=u.construct),u.signal&&!p&&k(u.signal,this)),y.call(this,u),R.construct(this,()=>{this._readableState.needReadable&&X(this,this._readableState)})}S.prototype.destroy=R.destroy,S.prototype._undestroy=R.undestroy,S.prototype._destroy=function(u,p){p(u)},S.prototype[m.captureRejectionSymbol]=function(u){this.destroy(u)},S.prototype.push=function(u,p){return Y(this,u,p,!1)},S.prototype.unshift=function(u,p){return Y(this,u,p,!0)};function Y(u,p,v,A){D("readableAddChunk",p);let w=u._readableState,P;if(w.objectMode||(typeof p=="string"?(v=v||w.defaultEncoding,w.encoding!==v&&(A&&w.encoding?p=U.from(p,v).toString(w.encoding):(p=U.from(p,v),v=""))):p instanceof U?v="":y._isUint8Array(p)?(p=y._uint8ArrayToBuffer(p),v=""):p!=null&&(P=new G("chunk",["string","Buffer","Uint8Array"],p))),P)re(u,P);else if(p===null)w.reading=!1,_(u,w);else if(w.objectMode||p&&p.length>0)if(A)if(w.endEmitted)re(u,new Z);else{if(w.destroyed||w.errored)return!1;ce(u,w,p,!0)}else if(w.ended)re(u,new q);else{if(w.destroyed||w.errored)return!1;w.reading=!1,w.decoder&&!v?(p=w.decoder.write(p),w.objectMode||p.length!==0?ce(u,w,p,!1):X(u,w)):ce(u,w,p,!1)}else A||(w.reading=!1,X(u,w));return!w.ended&&(w.length<w.highWaterMark||w.length===0)}function ce(u,p,v,A){p.flowing&&p.length===0&&!p.sync&&u.listenerCount("data")>0?(p.multiAwaitDrain?p.awaitDrainWriters.clear():p.awaitDrainWriters=null,p.dataEmitted=!0,u.emit("data",v)):(p.length+=p.objectMode?1:v.length,A?p.buffer.unshift(v):p.buffer.push(v),p.needReadable&&z(u)),X(u,p)}S.prototype.isPaused=function(){let u=this._readableState;return u[ge]===!0||u.flowing===!1},S.prototype.setEncoding=function(u){let p=new ne(u);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;let v=this._readableState.buffer,A="";for(let w of v)A+=p.write(w);return v.clear(),A!==""&&v.push(A),this._readableState.length=A.length,this};var Ee=1073741824;function ue(u){if(u>Ee)throw new E("size","<= 1GiB",u);return u--,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u++,u}function x(u,p){return u<=0||p.length===0&&p.ended?0:p.objectMode?1:o(u)?p.flowing&&p.length?p.buffer.first().length:p.length:u<=p.length?u:p.ended?p.length:0}S.prototype.read=function(u){D("read",u),u===void 0?u=NaN:h(u)||(u=r(u,10));let p=this._readableState,v=u;if(u>p.highWaterMark&&(p.highWaterMark=ue(u)),u!==0&&(p.emittedReadable=!1),u===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return D("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?we(this):z(this),null;if(u=x(u,p),u===0&&p.ended)return p.length===0&&we(this),null;let A=p.needReadable;if(D("need readable",A),(p.length===0||p.length-u<p.highWaterMark)&&(A=!0,D("length less than watermark",A)),p.ended||p.reading||p.destroyed||p.errored||!p.constructed)A=!1,D("reading, ended or constructing",A);else if(A){D("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0);try{this._read(p.highWaterMark)}catch(P){re(this,P)}p.sync=!1,p.reading||(u=x(v,p))}let w;return u>0?w=H(u,p):w=null,w===null?(p.needReadable=p.length<=p.highWaterMark,u=0):(p.length-=u,p.multiAwaitDrain?p.awaitDrainWriters.clear():p.awaitDrainWriters=null),p.length===0&&(p.ended||(p.needReadable=!0),v!==u&&p.ended&&we(this)),w!==null&&!p.errorEmitted&&!p.closeEmitted&&(p.dataEmitted=!0,this.emit("data",w)),w};function _(u,p){if(D("onEofChunk"),!p.ended){if(p.decoder){let v=p.decoder.end();v&&v.length&&(p.buffer.push(v),p.length+=p.objectMode?1:v.length)}p.ended=!0,p.sync?z(u):(p.needReadable=!1,p.emittedReadable=!0,le(u))}}function z(u){let p=u._readableState;D("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(D("emitReadable",p.flowing),p.emittedReadable=!0,t.nextTick(le,u))}function le(u){let p=u._readableState;D("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&!p.errored&&(p.length||p.ended)&&(u.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,te(u)}function X(u,p){!p.readingMore&&p.constructed&&(p.readingMore=!0,t.nextTick(J,u,p))}function J(u,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){let v=p.length;if(D("maybeReadMore read 0"),u.read(0),v===p.length)break}p.readingMore=!1}S.prototype._read=function(u){throw new ee("_read()")},S.prototype.pipe=function(u,p){let v=this,A=this._readableState;A.pipes.length===1&&(A.multiAwaitDrain||(A.multiAwaitDrain=!0,A.awaitDrainWriters=new d(A.awaitDrainWriters?[A.awaitDrainWriters]:[]))),A.pipes.push(u),D("pipe count=%d opts=%j",A.pipes.length,p);let w=(!p||p.end!==!1)&&u!==t.stdout&&u!==t.stderr?V:it;A.endEmitted?t.nextTick(w):v.once("end",w),u.on("unpipe",P);function P(He,ze){D("onunpipe"),He===v&&ze&&ze.hasUnpiped===!1&&(ze.hasUnpiped=!0,ye())}function V(){D("onend"),u.end()}let fe,ie=!1;function ye(){D("cleanup"),u.removeListener("close",rt),u.removeListener("finish",xe),fe&&u.removeListener("drain",fe),u.removeListener("error",qe),u.removeListener("unpipe",P),v.removeListener("end",V),v.removeListener("end",it),v.removeListener("data",ke),ie=!0,fe&&A.awaitDrainWriters&&(!u._writableState||u._writableState.needDrain)&&fe()}function Se(){ie||(A.pipes.length===1&&A.pipes[0]===u?(D("false write response, pause",0),A.awaitDrainWriters=u,A.multiAwaitDrain=!1):A.pipes.length>1&&A.pipes.includes(u)&&(D("false write response, pause",A.awaitDrainWriters.size),A.awaitDrainWriters.add(u)),v.pause()),fe||(fe=he(v,u),u.on("drain",fe))}v.on("data",ke);function ke(He){D("ondata");let ze=u.write(He);D("dest.write",ze),ze===!1&&Se()}function qe(He){if(D("onerror",He),it(),u.removeListener("error",qe),u.listenerCount("error")===0){let ze=u._writableState||u._readableState;ze&&!ze.errorEmitted?re(u,He):u.emit("error",He)}}I(u,"error",qe);function rt(){u.removeListener("finish",xe),it()}u.once("close",rt);function xe(){D("onfinish"),u.removeListener("close",rt),it()}u.once("finish",xe);function it(){D("unpipe"),v.unpipe(u)}return u.emit("pipe",v),u.writableNeedDrain===!0?A.flowing&&Se():A.flowing||(D("pipe resume"),v.resume()),u};function he(u,p){return function(){let v=u._readableState;v.awaitDrainWriters===p?(D("pipeOnDrain",1),v.awaitDrainWriters=null):v.multiAwaitDrain&&(D("pipeOnDrain",v.awaitDrainWriters.size),v.awaitDrainWriters.delete(p)),(!v.awaitDrainWriters||v.awaitDrainWriters.size===0)&&u.listenerCount("data")&&u.resume()}}S.prototype.unpipe=function(u){let p=this._readableState,v={hasUnpiped:!1};if(p.pipes.length===0)return this;if(!u){let w=p.pipes;p.pipes=[],this.pause();for(let P=0;P<w.length;P++)w[P].emit("unpipe",this,{hasUnpiped:!1});return this}let A=l(p.pipes,u);return A===-1?this:(p.pipes.splice(A,1),p.pipes.length===0&&this.pause(),u.emit("unpipe",this,v),this)},S.prototype.on=function(u,p){let v=y.prototype.on.call(this,u,p),A=this._readableState;return u==="data"?(A.readableListening=this.listenerCount("readable")>0,A.flowing!==!1&&this.resume()):u==="readable"&&!A.endEmitted&&!A.readableListening&&(A.readableListening=A.needReadable=!0,A.flowing=!1,A.emittedReadable=!1,D("on readable",A.length,A.reading),A.length?z(this):A.reading||t.nextTick(C,this)),v},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(u,p){let v=y.prototype.removeListener.call(this,u,p);return u==="readable"&&t.nextTick(de,this),v},S.prototype.off=S.prototype.removeListener,S.prototype.removeAllListeners=function(u){let p=y.prototype.removeAllListeners.apply(this,arguments);return(u==="readable"||u===void 0)&&t.nextTick(de,this),p};function de(u){let p=u._readableState;p.readableListening=u.listenerCount("readable")>0,p.resumeScheduled&&p[ge]===!1?p.flowing=!0:u.listenerCount("data")>0?u.resume():p.readableListening||(p.flowing=null)}function C(u){D("readable nexttick read 0"),u.read(0)}S.prototype.resume=function(){let u=this._readableState;return u.flowing||(D("resume"),u.flowing=!u.readableListening,j(this,u)),u[ge]=!1,this};function j(u,p){p.resumeScheduled||(p.resumeScheduled=!0,t.nextTick(N,u,p))}function N(u,p){D("resume",p.reading),p.reading||u.read(0),p.resumeScheduled=!1,u.emit("resume"),te(u),p.flowing&&!p.reading&&u.read(0)}S.prototype.pause=function(){return D("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(D("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ge]=!0,this};function te(u){let p=u._readableState;for(D("flow",p.flowing);p.flowing&&u.read()!==null;);}S.prototype.wrap=function(u){let p=!1;u.on("data",A=>{!this.push(A)&&u.pause&&(p=!0,u.pause())}),u.on("end",()=>{this.push(null)}),u.on("error",A=>{re(this,A)}),u.on("close",()=>{this.destroy()}),u.on("destroy",()=>{this.destroy()}),this._read=()=>{p&&u.resume&&(p=!1,u.resume())};let v=n(u);for(let A=1;A<v.length;A++){let w=v[A];this[w]===void 0&&typeof u[w]=="function"&&(this[w]=u[w].bind(u))}return this},S.prototype[g]=function(){return Q(this)},S.prototype.iterator=function(u){return u!==void 0&&K(u,"options"),Q(this,u)};function Q(u,p){typeof u.read!="function"&&(u=S.wrap(u,{objectMode:!0}));let v=L(u,p);return v.stream=u,v}async function*L(u,p){let v=be;function A(V){this===u?(v(),v=be):v=V}u.on("readable",A);let w,P=T(u,{writable:!1},V=>{w=V?W(w,V):null,v(),v=be});try{for(;;){let V=u.destroyed?null:u.read();if(V!==null)yield V;else{if(w)throw w;if(w===null)return;await new c(A)}}}catch(V){throw w=W(w,V),w}finally{(w||(p==null?void 0:p.destroyOnReturn)!==!1)&&(w===void 0||u._readableState.autoDestroy)?R.destroyer(u,null):(u.off("readable",A),P())}}s(S.prototype,{readable:{__proto__:null,get(){let u=this._readableState;return!!u&&u.readable!==!1&&!u.destroyed&&!u.errorEmitted&&!u.endEmitted},set(u){this._readableState&&(this._readableState.readable=!!u)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(u){this._readableState&&(this._readableState.flowing=u)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(u){this._readableState&&(this._readableState.destroyed=u)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(ve.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ge]!==!1},set(u){this[ge]=!!u}}}),S._fromList=H;function H(u,p){if(p.length===0)return null;let v;return p.objectMode?v=p.buffer.shift():!u||u>=p.length?(p.decoder?v=p.buffer.join(""):p.buffer.length===1?v=p.buffer.first():v=p.buffer.concat(p.length),p.buffer.clear()):v=p.buffer.consume(u,p.decoder),v}function we(u){let p=u._readableState;D("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,t.nextTick(_e,p,u))}function _e(u,p){if(D("endReadableNT",u.endEmitted,u.length),!u.errored&&!u.closeEmitted&&!u.endEmitted&&u.length===0){if(u.endEmitted=!0,p.emit("end"),p.writable&&p.allowHalfOpen===!1)t.nextTick(Ae,p);else if(u.autoDestroy){let v=p._writableState;(!v||v.autoDestroy&&(v.finished||v.writable===!1))&&p.destroy()}}}function Ae(u){u.writable&&!u.writableEnded&&!u.destroyed&&u.end()}S.from=function(u,p){return $(S,u,p)};var Re;function f(){return Re===void 0&&(Re={}),Re}S.fromWeb=function(u,p){return f().newStreamReadableFromReadableStream(u,p)},S.toWeb=function(u,p){return f().newReadableStreamFromStreamReadable(u,p)},S.wrap=function(u,p){var v,A;return new S({objectMode:(v=(A=u.readableObjectMode)!==null&&A!==void 0?A:u.objectMode)!==null&&v!==void 0?v:!0,...p,destroy(w,P){R.destroyer(u,w),P(w)}}).wrap(u)}}),ps=me((e,i)=>{ae(),se(),oe();var t=rr(),{ArrayPrototypeSlice:l,Error:h,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:r,ObjectDefineProperties:s,ObjectSetPrototypeOf:n,StringPrototypeToLowerCase:a,Symbol:c,SymbolHasInstance:d}=Ye();i.exports=ne,ne.WritableState=K;var{EventEmitter:g}=(hr(),Ue(ir)),b=Un().Stream,{Buffer:m}=(tt(),Ue(et)),y=ur(),{addAbortSignal:I}=Wr(),{getHighWaterMark:U,getDefaultHighWaterMark:k}=Ln(),{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_MULTIPLE_CALLBACK:F,ERR_STREAM_CANNOT_PIPE:R,ERR_STREAM_DESTROYED:O,ERR_STREAM_ALREADY_FINISHED:M,ERR_STREAM_NULL_VALUES:W,ERR_STREAM_WRITE_AFTER_END:G,ERR_UNKNOWN_ENCODING:ee}=st().codes,{errorOrDestroy:E}=y;n(ne.prototype,b.prototype),n(ne,b);function q(){}var Z=c("kOnFinished");function K(C,j,N){typeof N!="boolean"&&(N=j instanceof Ct()),this.objectMode=!!(C&&C.objectMode),N&&(this.objectMode=this.objectMode||!!(C&&C.writableObjectMode)),this.highWaterMark=C?U(this,C,"writableHighWaterMark",N):k(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let te=!!(C&&C.decodeStrings===!1);this.decodeStrings=!te,this.defaultEncoding=C&&C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=S.bind(void 0,j),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,ge(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!C||C.emitClose!==!1,this.autoDestroy=!C||C.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Z]=[]}function ge(C){C.buffered=[],C.bufferedIndex=0,C.allBuffers=!0,C.allNoop=!0}K.prototype.getBuffer=function(){return l(this.buffered,this.bufferedIndex)},r(K.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ne(C){let j=this instanceof Ct();if(!j&&!o(ne,this))return new ne(C);this._writableState=new K(C,this,j),C&&(typeof C.write=="function"&&(this._write=C.write),typeof C.writev=="function"&&(this._writev=C.writev),typeof C.destroy=="function"&&(this._destroy=C.destroy),typeof C.final=="function"&&(this._final=C.final),typeof C.construct=="function"&&(this._construct=C.construct),C.signal&&I(C.signal,this)),b.call(this,C),y.construct(this,()=>{let N=this._writableState;N.writing||ue(this,N),le(this,N)})}r(ne,d,{__proto__:null,value:function(C){return o(this,C)?!0:this!==ne?!1:C&&C._writableState instanceof K}}),ne.prototype.pipe=function(){E(this,new R)};function $(C,j,N,te){let Q=C._writableState;if(typeof N=="function")te=N,N=Q.defaultEncoding;else{if(!N)N=Q.defaultEncoding;else if(N!=="buffer"&&!m.isEncoding(N))throw new ee(N);typeof te!="function"&&(te=q)}if(j===null)throw new W;if(!Q.objectMode)if(typeof j=="string")Q.decodeStrings!==!1&&(j=m.from(j,N),N="buffer");else if(j instanceof m)N="buffer";else if(b._isUint8Array(j))j=b._uint8ArrayToBuffer(j),N="buffer";else throw new T("chunk",["string","Buffer","Uint8Array"],j);let L;return Q.ending?L=new G:Q.destroyed&&(L=new O("write")),L?(t.nextTick(te,L),E(C,L,!0),L):(Q.pendingcb++,be(C,Q,j,N,te))}ne.prototype.write=function(C,j,N){return $(this,C,j,N)===!0},ne.prototype.cork=function(){this._writableState.corked++},ne.prototype.uncork=function(){let C=this._writableState;C.corked&&(C.corked--,C.writing||ue(this,C))},ne.prototype.setDefaultEncoding=function(C){if(typeof C=="string"&&(C=a(C)),!m.isEncoding(C))throw new ee(C);return this._writableState.defaultEncoding=C,this};function be(C,j,N,te,Q){let L=j.objectMode?1:N.length;j.length+=L;let H=j.length<j.highWaterMark;return H||(j.needDrain=!0),j.writing||j.corked||j.errored||!j.constructed?(j.buffered.push({chunk:N,encoding:te,callback:Q}),j.allBuffers&&te!=="buffer"&&(j.allBuffers=!1),j.allNoop&&Q!==q&&(j.allNoop=!1)):(j.writelen=L,j.writecb=Q,j.writing=!0,j.sync=!0,C._write(N,te,j.onwrite),j.sync=!1),H&&!j.errored&&!j.destroyed}function re(C,j,N,te,Q,L,H){j.writelen=te,j.writecb=H,j.writing=!0,j.sync=!0,j.destroyed?j.onwrite(new O("write")):N?C._writev(Q,j.onwrite):C._write(Q,L,j.onwrite),j.sync=!1}function ve(C,j,N,te){--j.pendingcb,te(N),Ee(j),E(C,N)}function S(C,j){let N=C._writableState,te=N.sync,Q=N.writecb;if(typeof Q!="function"){E(C,new F);return}N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0,j?(j.stack,N.errored||(N.errored=j),C._readableState&&!C._readableState.errored&&(C._readableState.errored=j),te?t.nextTick(ve,C,N,j,Q):ve(C,N,j,Q)):(N.buffered.length>N.bufferedIndex&&ue(C,N),te?N.afterWriteTickInfo!==null&&N.afterWriteTickInfo.cb===Q?N.afterWriteTickInfo.count++:(N.afterWriteTickInfo={count:1,cb:Q,stream:C,state:N},t.nextTick(Y,N.afterWriteTickInfo)):ce(C,N,1,Q))}function Y({stream:C,state:j,count:N,cb:te}){return j.afterWriteTickInfo=null,ce(C,j,N,te)}function ce(C,j,N,te){for(!j.ending&&!C.destroyed&&j.length===0&&j.needDrain&&(j.needDrain=!1,C.emit("drain"));N-- >0;)j.pendingcb--,te();j.destroyed&&Ee(j),le(C,j)}function Ee(C){if(C.writing)return;for(let Q=C.bufferedIndex;Q<C.buffered.length;++Q){var j;let{chunk:L,callback:H}=C.buffered[Q],we=C.objectMode?1:L.length;C.length-=we,H((j=C.errored)!==null&&j!==void 0?j:new O("write"))}let N=C[Z].splice(0);for(let Q=0;Q<N.length;Q++){var te;N[Q]((te=C.errored)!==null&&te!==void 0?te:new O("end"))}ge(C)}function ue(C,j){if(j.corked||j.bufferProcessing||j.destroyed||!j.constructed)return;let{buffered:N,bufferedIndex:te,objectMode:Q}=j,L=N.length-te;if(!L)return;let H=te;if(j.bufferProcessing=!0,L>1&&C._writev){j.pendingcb-=L-1;let we=j.allNoop?q:Ae=>{for(let Re=H;Re<N.length;++Re)N[Re].callback(Ae)},_e=j.allNoop&&H===0?N:l(N,H);_e.allBuffers=j.allBuffers,re(C,j,!0,j.length,_e,"",we),ge(j)}else{do{let{chunk:we,encoding:_e,callback:Ae}=N[H];N[H++]=null;let Re=Q?1:we.length;re(C,j,!1,Re,we,_e,Ae)}while(H<N.length&&!j.writing);H===N.length?ge(j):H>256?(N.splice(0,H),j.bufferedIndex=0):j.bufferedIndex=H}j.bufferProcessing=!1}ne.prototype._write=function(C,j,N){if(this._writev)this._writev([{chunk:C,encoding:j}],N);else throw new D("_write()")},ne.prototype._writev=null,ne.prototype.end=function(C,j,N){let te=this._writableState;typeof C=="function"?(N=C,C=null,j=null):typeof j=="function"&&(N=j,j=null);let Q;if(C!=null){let L=$(this,C,j);L instanceof h&&(Q=L)}return te.corked&&(te.corked=1,this.uncork()),Q||(!te.errored&&!te.ending?(te.ending=!0,le(this,te,!0),te.ended=!0):te.finished?Q=new M("end"):te.destroyed&&(Q=new O("end"))),typeof N=="function"&&(Q||te.finished?t.nextTick(N,Q):te[Z].push(N)),this};function x(C){return C.ending&&!C.destroyed&&C.constructed&&C.length===0&&!C.errored&&C.buffered.length===0&&!C.finished&&!C.writing&&!C.errorEmitted&&!C.closeEmitted}function _(C,j){let N=!1;function te(Q){if(N){E(C,Q??F());return}if(N=!0,j.pendingcb--,Q){let L=j[Z].splice(0);for(let H=0;H<L.length;H++)L[H](Q);E(C,Q,j.sync)}else x(j)&&(j.prefinished=!0,C.emit("prefinish"),j.pendingcb++,t.nextTick(X,C,j))}j.sync=!0,j.pendingcb++;try{C._final(te)}catch(Q){te(Q)}j.sync=!1}function z(C,j){!j.prefinished&&!j.finalCalled&&(typeof C._final=="function"&&!j.destroyed?(j.finalCalled=!0,_(C,j)):(j.prefinished=!0,C.emit("prefinish")))}function le(C,j,N){x(j)&&(z(C,j),j.pendingcb===0&&(N?(j.pendingcb++,t.nextTick((te,Q)=>{x(Q)?X(te,Q):Q.pendingcb--},C,j)):x(j)&&(j.pendingcb++,X(C,j))))}function X(C,j){j.pendingcb--,j.finished=!0;let N=j[Z].splice(0);for(let te=0;te<N.length;te++)N[te]();if(C.emit("finish"),j.autoDestroy){let te=C._readableState;(!te||te.autoDestroy&&(te.endEmitted||te.readable===!1))&&C.destroy()}}s(ne.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(C){this._writableState&&(this._writableState.destroyed=C)}},writable:{__proto__:null,get(){let C=this._writableState;return!!C&&C.writable!==!1&&!C.destroyed&&!C.errored&&!C.ending&&!C.ended},set(C){this._writableState&&(this._writableState.writable=!!C)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let C=this._writableState;return C?!C.destroyed&&!C.ending&&C.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var J=y.destroy;ne.prototype.destroy=function(C,j){let N=this._writableState;return!N.destroyed&&(N.bufferedIndex<N.buffered.length||N[Z].length)&&t.nextTick(Ee,N),J.call(this,C,j),this},ne.prototype._undestroy=y.undestroy,ne.prototype._destroy=function(C,j){j(C)},ne.prototype[g.captureRejectionSymbol]=function(C){this.destroy(C)};var he;function de(){return he===void 0&&(he={}),he}ne.fromWeb=function(C,j){return de().newStreamWritableFromWritableStream(C,j)},ne.toWeb=function(C){return de().newWritableStreamFromStreamWritable(C)}}),ol=me((e,i)=>{ae(),se(),oe();var t=rr(),l=(tt(),Ue(et)),{isReadable:h,isWritable:o,isIterable:r,isNodeStream:s,isReadableNodeStream:n,isWritableNodeStream:a,isDuplexNodeStream:c}=Pt(),d=Dt(),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=st(),{destroyer:y}=ur(),I=Ct(),U=qr(),{createDeferredPromise:k}=Ot(),T=ds(),D=globalThis.Blob||l.Blob,F=typeof D<"u"?function(ee){return ee instanceof D}:function(ee){return!1},R=globalThis.AbortController||Mn().AbortController,{FunctionPrototypeCall:O}=Ye(),M=class extends I{constructor(ee){super(ee),(ee==null?void 0:ee.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(ee==null?void 0:ee.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};i.exports=function ee(E,q){if(c(E))return E;if(n(E))return G({readable:E});if(a(E))return G({writable:E});if(s(E))return G({writable:!1,readable:!1});if(typeof E=="function"){let{value:K,write:ge,final:ne,destroy:$}=W(E);if(r(K))return T(M,K,{objectMode:!0,write:ge,final:ne,destroy:$});let be=K==null?void 0:K.then;if(typeof be=="function"){let re,ve=O(be,K,S=>{if(S!=null)throw new m("nully","body",S)},S=>{y(re,S)});return re=new M({objectMode:!0,readable:!1,write:ge,final(S){ne(async()=>{try{await ve,t.nextTick(S,null)}catch(Y){t.nextTick(S,Y)}})},destroy:$})}throw new m("Iterable, AsyncIterable or AsyncFunction",q,K)}if(F(E))return ee(E.arrayBuffer());if(r(E))return T(M,E,{objectMode:!0,writable:!1});if(typeof(E==null?void 0:E.writable)=="object"||typeof(E==null?void 0:E.readable)=="object"){let K=E!=null&&E.readable?n(E==null?void 0:E.readable)?E==null?void 0:E.readable:ee(E.readable):void 0,ge=E!=null&&E.writable?a(E==null?void 0:E.writable)?E==null?void 0:E.writable:ee(E.writable):void 0;return G({readable:K,writable:ge})}let Z=E==null?void 0:E.then;if(typeof Z=="function"){let K;return O(Z,E,ge=>{ge!=null&&K.push(ge),K.push(null)},ge=>{y(K,ge)}),K=new M({objectMode:!0,writable:!1,read(){}})}throw new b(q,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],E)};function W(ee){let{promise:E,resolve:q}=k(),Z=new R,K=Z.signal;return{value:ee(async function*(){for(;;){let ge=E;E=null;let{chunk:ne,done:$,cb:be}=await ge;if(t.nextTick(be),$)return;if(K.aborted)throw new g(void 0,{cause:K.reason});({promise:E,resolve:q}=k()),yield ne}}(),{signal:K}),write(ge,ne,$){let be=q;q=null,be({chunk:ge,done:!1,cb:$})},final(ge){let ne=q;q=null,ne({done:!0,cb:ge})},destroy(ge,ne){Z.abort(),ne(ge)}}}function G(ee){let E=ee.readable&&typeof ee.readable.read!="function"?U.wrap(ee.readable):ee.readable,q=ee.writable,Z=!!h(E),K=!!o(q),ge,ne,$,be,re;function ve(S){let Y=be;be=null,Y?Y(S):S&&re.destroy(S)}return re=new M({readableObjectMode:!!(E!=null&&E.readableObjectMode),writableObjectMode:!!(q!=null&&q.writableObjectMode),readable:Z,writable:K}),K&&(d(q,S=>{K=!1,S&&y(E,S),ve(S)}),re._write=function(S,Y,ce){q.write(S,Y)?ce():ge=ce},re._final=function(S){q.end(),ne=S},q.on("drain",function(){if(ge){let S=ge;ge=null,S()}}),q.on("finish",function(){if(ne){let S=ne;ne=null,S()}})),Z&&(d(E,S=>{Z=!1,S&&y(E,S),ve(S)}),E.on("readable",function(){if($){let S=$;$=null,S()}}),E.on("end",function(){re.push(null)}),re._read=function(){for(;;){let S=E.read();if(S===null){$=re._read;return}if(!re.push(S))return}}),re._destroy=function(S,Y){!S&&be!==null&&(S=new g),$=null,ge=null,ne=null,be===null?Y(S):(be=Y,y(q,S),y(E,S))},re}}),Ct=me((e,i)=>{ae(),se(),oe();var{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:l,ObjectKeys:h,ObjectSetPrototypeOf:o}=Ye();i.exports=n;var r=qr(),s=ps();o(n.prototype,r.prototype),o(n,r);{let g=h(s.prototype);for(let b=0;b<g.length;b++){let m=g[b];n.prototype[m]||(n.prototype[m]=s.prototype[m])}}function n(g){if(!(this instanceof n))return new n(g);r.call(this,g),s.call(this,g),g?(this.allowHalfOpen=g.allowHalfOpen!==!1,g.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),g.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}t(n.prototype,{writable:{__proto__:null,...l(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...l(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...l(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...l(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...l(s.prototype,"writableLength")},writableFinished:{__proto__:null,...l(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...l(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...l(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...l(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(g){this._readableState&&this._writableState&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}});var a;function c(){return a===void 0&&(a={}),a}n.fromWeb=function(g,b){return c().newStreamDuplexFromReadableWritablePair(g,b)},n.toWeb=function(g){return c().newReadableWritablePairFromDuplex(g)};var d;n.from=function(g){return d||(d=ol()),d(g,"body")}}),gs=me((e,i)=>{ae(),se(),oe();var{ObjectSetPrototypeOf:t,Symbol:l}=Ye();i.exports=n;var{ERR_METHOD_NOT_IMPLEMENTED:h}=st().codes,o=Ct(),{getHighWaterMark:r}=Ln();t(n.prototype,o.prototype),t(n,o);var s=l("kCallback");function n(d){if(!(this instanceof n))return new n(d);let g=d?r(this,d,"readableHighWaterMark",!0):null;g===0&&(d={...d,highWaterMark:null,readableHighWaterMark:g,writableHighWaterMark:d.writableHighWaterMark||0}),o.call(this,d),this._readableState.sync=!1,this[s]=null,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function a(d){typeof this._flush=="function"&&!this.destroyed?this._flush((g,b)=>{if(g){d?d(g):this.destroy(g);return}b!=null&&this.push(b),this.push(null),d&&d()}):(this.push(null),d&&d())}function c(){this._final!==a&&a.call(this)}n.prototype._final=a,n.prototype._transform=function(d,g,b){throw new h("_transform()")},n.prototype._write=function(d,g,b){let m=this._readableState,y=this._writableState,I=m.length;this._transform(d,g,(U,k)=>{if(U){b(U);return}k!=null&&this.push(k),y.ended||I===m.length||m.length<m.highWaterMark?b():this[s]=b})},n.prototype._read=function(){if(this[s]){let d=this[s];this[s]=null,d()}}}),bs=me((e,i)=>{ae(),se(),oe();var{ObjectSetPrototypeOf:t}=Ye();i.exports=h;var l=gs();t(h.prototype,l.prototype),t(h,l);function h(o){if(!(this instanceof h))return new h(o);l.call(this,o)}h.prototype._transform=function(o,r,s){s(null,o)}}),Dn=me((e,i)=>{ae(),se(),oe();var t=rr(),{ArrayIsArray:l,Promise:h,SymbolAsyncIterator:o}=Ye(),r=Dt(),{once:s}=Ot(),n=ur(),a=Ct(),{aggregateTwoErrors:c,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:g,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:y},AbortError:I}=st(),{validateFunction:U,validateAbortSignal:k}=Fr(),{isIterable:T,isReadable:D,isReadableNodeStream:F,isNodeStream:R,isTransformStream:O,isWebStream:M,isReadableStream:W,isReadableEnded:G}=Pt(),ee=globalThis.AbortController||Mn().AbortController,E,q;function Z(Y,ce,Ee){let ue=!1;Y.on("close",()=>{ue=!0});let x=r(Y,{readable:ce,writable:Ee},_=>{ue=!_});return{destroy:_=>{ue||(ue=!0,n.destroyer(Y,_||new m("pipe")))},cleanup:x}}function K(Y){return U(Y[Y.length-1],"streams[stream.length - 1]"),Y.pop()}function ge(Y){if(T(Y))return Y;if(F(Y))return ne(Y);throw new d("val",["Readable","Iterable","AsyncIterable"],Y)}async function*ne(Y){q||(q=qr()),yield*q.prototype[o].call(Y)}async function $(Y,ce,Ee,{end:ue}){let x,_=null,z=J=>{if(J&&(x=J),_){let he=_;_=null,he()}},le=()=>new h((J,he)=>{x?he(x):_=()=>{x?he(x):J()}});ce.on("drain",z);let X=r(ce,{readable:!1},z);try{ce.writableNeedDrain&&await le();for await(let J of Y)ce.write(J)||await le();ue&&ce.end(),await le(),Ee()}catch(J){Ee(x!==J?c(x,J):J)}finally{X(),ce.off("drain",z)}}async function be(Y,ce,Ee,{end:ue}){O(ce)&&(ce=ce.writable);let x=ce.getWriter();try{for await(let _ of Y)await x.ready,x.write(_).catch(()=>{});await x.ready,ue&&await x.close(),Ee()}catch(_){try{await x.abort(_),Ee(_)}catch(z){Ee(z)}}}function re(...Y){return ve(Y,s(K(Y)))}function ve(Y,ce,Ee){if(Y.length===1&&l(Y[0])&&(Y=Y[0]),Y.length<2)throw new b("streams");let ue=new ee,x=ue.signal,_=Ee==null?void 0:Ee.signal,z=[];k(_,"options.signal");function le(){j(new I)}_==null||_.addEventListener("abort",le);let X,J,he=[],de=0;function C(L){j(L,--de===0)}function j(L,H){if(L&&(!X||X.code==="ERR_STREAM_PREMATURE_CLOSE")&&(X=L),!(!X&&!H)){for(;he.length;)he.shift()(X);_==null||_.removeEventListener("abort",le),ue.abort(),H&&(X||z.forEach(we=>we()),t.nextTick(ce,X,J))}}let N;for(let L=0;L<Y.length;L++){let H=Y[L],we=L<Y.length-1,_e=L>0,Ae=we||(Ee==null?void 0:Ee.end)!==!1,Re=L===Y.length-1;if(R(H)){let f=function(u){u&&u.name!=="AbortError"&&u.code!=="ERR_STREAM_PREMATURE_CLOSE"&&C(u)};if(Ae){let{destroy:u,cleanup:p}=Z(H,we,_e);he.push(u),D(H)&&Re&&z.push(p)}H.on("error",f),D(H)&&Re&&z.push(()=>{H.removeListener("error",f)})}if(L===0)if(typeof H=="function"){if(N=H({signal:x}),!T(N))throw new g("Iterable, AsyncIterable or Stream","source",N)}else T(H)||F(H)||O(H)?N=H:N=a.from(H);else if(typeof H=="function"){if(O(N)){var te;N=ge((te=N)===null||te===void 0?void 0:te.readable)}else N=ge(N);if(N=H(N,{signal:x}),we){if(!T(N,!0))throw new g("AsyncIterable",`transform[${L-1}]`,N)}else{var Q;E||(E=bs());let f=new E({objectMode:!0}),u=(Q=N)===null||Q===void 0?void 0:Q.then;if(typeof u=="function")de++,u.call(N,A=>{J=A,A!=null&&f.write(A),Ae&&f.end(),t.nextTick(C)},A=>{f.destroy(A),t.nextTick(C,A)});else if(T(N,!0))de++,$(N,f,C,{end:Ae});else if(W(N)||O(N)){let A=N.readable||N;de++,$(A,f,C,{end:Ae})}else throw new g("AsyncIterable or Promise","destination",N);N=f;let{destroy:p,cleanup:v}=Z(N,!1,!0);he.push(p),Re&&z.push(v)}}else if(R(H)){if(F(N)){de+=2;let f=S(N,H,C,{end:Ae});D(H)&&Re&&z.push(f)}else if(O(N)||W(N)){let f=N.readable||N;de++,$(f,H,C,{end:Ae})}else if(T(N))de++,$(N,H,C,{end:Ae});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N);N=H}else if(M(H)){if(F(N))de++,be(ge(N),H,C,{end:Ae});else if(W(N)||T(N))de++,be(N,H,C,{end:Ae});else if(O(N))de++,be(N.readable,H,C,{end:Ae});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N);N=H}else N=a.from(H)}return(x!=null&&x.aborted||_!=null&&_.aborted)&&t.nextTick(le),N}function S(Y,ce,Ee,{end:ue}){let x=!1;if(ce.on("close",()=>{x||Ee(new y)}),Y.pipe(ce,{end:!1}),ue){let _=function(){x=!0,ce.end()};G(Y)?t.nextTick(_):Y.once("end",_)}else Ee();return r(Y,{readable:!0,writable:!1},_=>{let z=Y._readableState;_&&_.code==="ERR_STREAM_PREMATURE_CLOSE"&&z&&z.ended&&!z.errored&&!z.errorEmitted?Y.once("end",Ee).once("error",Ee):Ee(_)}),r(ce,{readable:!1,writable:!0},Ee)}i.exports={pipelineImpl:ve,pipeline:re}}),ms=me((e,i)=>{ae(),se(),oe();var{pipeline:t}=Dn(),l=Ct(),{destroyer:h}=ur(),{isNodeStream:o,isReadable:r,isWritable:s,isWebStream:n,isTransformStream:a,isWritableStream:c,isReadableStream:d}=Pt(),{AbortError:g,codes:{ERR_INVALID_ARG_VALUE:b,ERR_MISSING_ARGS:m}}=st(),y=Dt();i.exports=function(...I){if(I.length===0)throw new m("streams");if(I.length===1)return l.from(I[0]);let U=[...I];if(typeof I[0]=="function"&&(I[0]=l.from(I[0])),typeof I[I.length-1]=="function"){let E=I.length-1;I[E]=l.from(I[E])}for(let E=0;E<I.length;++E)if(!(!o(I[E])&&!n(I[E]))){if(E<I.length-1&&!(r(I[E])||d(I[E])||a(I[E])))throw new b(`streams[${E}]`,U[E],"must be readable");if(E>0&&!(s(I[E])||c(I[E])||a(I[E])))throw new b(`streams[${E}]`,U[E],"must be writable")}let k,T,D,F,R;function O(E){let q=F;F=null,q?q(E):E?R.destroy(E):!ee&&!G&&R.destroy()}let M=I[0],W=t(I,O),G=!!(s(M)||c(M)||a(M)),ee=!!(r(W)||d(W)||a(W));if(R=new l({writableObjectMode:!!(M!=null&&M.writableObjectMode),readableObjectMode:!!(W!=null&&W.writableObjectMode),writable:G,readable:ee}),G){if(o(M))R._write=function(q,Z,K){M.write(q,Z)?K():k=K},R._final=function(q){M.end(),T=q},M.on("drain",function(){if(k){let q=k;k=null,q()}});else if(n(M)){let q=(a(M)?M.writable:M).getWriter();R._write=async function(Z,K,ge){try{await q.ready,q.write(Z).catch(()=>{}),ge()}catch(ne){ge(ne)}},R._final=async function(Z){try{await q.ready,q.close().catch(()=>{}),T=Z}catch(K){Z(K)}}}let E=a(W)?W.readable:W;y(E,()=>{if(T){let q=T;T=null,q()}})}if(ee){if(o(W))W.on("readable",function(){if(D){let E=D;D=null,E()}}),W.on("end",function(){R.push(null)}),R._read=function(){for(;;){let E=W.read();if(E===null){D=R._read;return}if(!R.push(E))return}};else if(n(W)){let E=(a(W)?W.readable:W).getReader();R._read=async function(){for(;;)try{let{value:q,done:Z}=await E.read();if(!R.push(q))return;if(Z){R.push(null);return}}catch{return}}}}return R._destroy=function(E,q){!E&&F!==null&&(E=new g),D=null,k=null,T=null,F===null?q(E):(F=q,o(W)&&h(W,E))},R}}),sl=me((e,i)=>{ae(),se(),oe();var t=globalThis.AbortController||Mn().AbortController,{codes:{ERR_INVALID_ARG_VALUE:l,ERR_INVALID_ARG_TYPE:h,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:r},AbortError:s}=st(),{validateAbortSignal:n,validateInteger:a,validateObject:c}=Fr(),d=Ye().Symbol("kWeak"),{finished:g}=Dt(),b=ms(),{addAbortSignalNoValidate:m}=Wr(),{isWritable:y,isNodeStream:I}=Pt(),{ArrayPrototypePush:U,MathFloor:k,Number:T,NumberIsNaN:D,Promise:F,PromiseReject:R,PromisePrototypeThen:O,Symbol:M}=Ye(),W=M("kEmpty"),G=M("kEof");function ee(ue,x){if(x!=null&&c(x,"options"),(x==null?void 0:x.signal)!=null&&n(x.signal,"options.signal"),I(ue)&&!y(ue))throw new l("stream",ue,"must be writable");let _=b(this,ue);return x!=null&&x.signal&&m(x.signal,_),_}function E(ue,x){if(typeof ue!="function")throw new h("fn",["Function","AsyncFunction"],ue);x!=null&&c(x,"options"),(x==null?void 0:x.signal)!=null&&n(x.signal,"options.signal");let _=1;return(x==null?void 0:x.concurrency)!=null&&(_=k(x.concurrency)),a(_,"concurrency",1),(async function*(){var z,le;let X=new t,J=this,he=[],de=X.signal,C={signal:de},j=()=>X.abort();x!=null&&(z=x.signal)!==null&&z!==void 0&&z.aborted&&j(),x==null||(le=x.signal)===null||le===void 0||le.addEventListener("abort",j);let N,te,Q=!1;function L(){Q=!0}async function H(){try{for await(let Ae of J){var we;if(Q)return;if(de.aborted)throw new s;try{Ae=ue(Ae,C)}catch(Re){Ae=R(Re)}Ae!==W&&(typeof((we=Ae)===null||we===void 0?void 0:we.catch)=="function"&&Ae.catch(L),he.push(Ae),N&&(N(),N=null),!Q&&he.length&&he.length>=_&&await new F(Re=>{te=Re}))}he.push(G)}catch(Ae){let Re=R(Ae);O(Re,void 0,L),he.push(Re)}finally{var _e;Q=!0,N&&(N(),N=null),x==null||(_e=x.signal)===null||_e===void 0||_e.removeEventListener("abort",j)}}H();try{for(;;){for(;he.length>0;){let we=await he[0];if(we===G)return;if(de.aborted)throw new s;we!==W&&(yield we),he.shift(),te&&(te(),te=null)}await new F(we=>{N=we})}}finally{X.abort(),Q=!0,te&&(te(),te=null)}}).call(this)}function q(ue=void 0){return ue!=null&&c(ue,"options"),(ue==null?void 0:ue.signal)!=null&&n(ue.signal,"options.signal"),(async function*(){let x=0;for await(let z of this){var _;if(ue!=null&&(_=ue.signal)!==null&&_!==void 0&&_.aborted)throw new s({cause:ue.signal.reason});yield[x++,z]}}).call(this)}async function Z(ue,x=void 0){for await(let _ of $.call(this,ue,x))return!0;return!1}async function K(ue,x=void 0){if(typeof ue!="function")throw new h("fn",["Function","AsyncFunction"],ue);return!await Z.call(this,async(..._)=>!await ue(..._),x)}async function ge(ue,x){for await(let _ of $.call(this,ue,x))return _}async function ne(ue,x){if(typeof ue!="function")throw new h("fn",["Function","AsyncFunction"],ue);async function _(z,le){return await ue(z,le),W}for await(let z of E.call(this,_,x));}function $(ue,x){if(typeof ue!="function")throw new h("fn",["Function","AsyncFunction"],ue);async function _(z,le){return await ue(z,le)?z:W}return E.call(this,_,x)}var be=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function re(ue,x,_){var z;if(typeof ue!="function")throw new h("reducer",["Function","AsyncFunction"],ue);_!=null&&c(_,"options"),(_==null?void 0:_.signal)!=null&&n(_.signal,"options.signal");let le=arguments.length>1;if(_!=null&&(z=_.signal)!==null&&z!==void 0&&z.aborted){let C=new s(void 0,{cause:_.signal.reason});throw this.once("error",()=>{}),await g(this.destroy(C)),C}let X=new t,J=X.signal;if(_!=null&&_.signal){let C={once:!0,[d]:this};_.signal.addEventListener("abort",()=>X.abort(),C)}let he=!1;try{for await(let C of this){var de;if(he=!0,_!=null&&(de=_.signal)!==null&&de!==void 0&&de.aborted)throw new s;le?x=await ue(x,C,{signal:J}):(x=C,le=!0)}if(!he&&!le)throw new be}finally{X.abort()}return x}async function ve(ue){ue!=null&&c(ue,"options"),(ue==null?void 0:ue.signal)!=null&&n(ue.signal,"options.signal");let x=[];for await(let z of this){var _;if(ue!=null&&(_=ue.signal)!==null&&_!==void 0&&_.aborted)throw new s(void 0,{cause:ue.signal.reason});U(x,z)}return x}function S(ue,x){let _=E.call(this,ue,x);return(async function*(){for await(let z of _)yield*z}).call(this)}function Y(ue){if(ue=T(ue),D(ue))return 0;if(ue<0)throw new r("number",">= 0",ue);return ue}function ce(ue,x=void 0){return x!=null&&c(x,"options"),(x==null?void 0:x.signal)!=null&&n(x.signal,"options.signal"),ue=Y(ue),(async function*(){var _;if(x!=null&&(_=x.signal)!==null&&_!==void 0&&_.aborted)throw new s;for await(let le of this){var z;if(x!=null&&(z=x.signal)!==null&&z!==void 0&&z.aborted)throw new s;ue--<=0&&(yield le)}}).call(this)}function Ee(ue,x=void 0){return x!=null&&c(x,"options"),(x==null?void 0:x.signal)!=null&&n(x.signal,"options.signal"),ue=Y(ue),(async function*(){var _;if(x!=null&&(_=x.signal)!==null&&_!==void 0&&_.aborted)throw new s;for await(let le of this){var z;if(x!=null&&(z=x.signal)!==null&&z!==void 0&&z.aborted)throw new s;if(ue-- >0)yield le;else return}}).call(this)}i.exports.streamReturningOperators={asIndexedPairs:q,drop:ce,filter:$,flatMap:S,map:E,take:Ee,compose:ee},i.exports.promiseReturningOperators={every:K,forEach:ne,reduce:re,toArray:ve,some:Z,find:ge}}),ys=me((e,i)=>{ae(),se(),oe();var{ArrayPrototypePop:t,Promise:l}=Ye(),{isIterable:h,isNodeStream:o,isWebStream:r}=Pt(),{pipelineImpl:s}=Dn(),{finished:n}=Dt();ws();function a(...c){return new l((d,g)=>{let b,m,y=c[c.length-1];if(y&&typeof y=="object"&&!o(y)&&!h(y)&&!r(y)){let I=t(c);b=I.signal,m=I.end}s(c,(I,U)=>{I?g(I):d(U)},{signal:b,end:m})})}i.exports={finished:n,pipeline:a}}),ws=me((e,i)=>{ae(),se(),oe();var{Buffer:t}=(tt(),Ue(et)),{ObjectDefineProperty:l,ObjectKeys:h,ReflectApply:o}=Ye(),{promisify:{custom:r}}=Ot(),{streamReturningOperators:s,promiseReturningOperators:n}=sl(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:a}}=st(),c=ms(),{pipeline:d}=Dn(),{destroyer:g}=ur(),b=Dt(),m=ys(),y=Pt(),I=i.exports=Un().Stream;I.isDisturbed=y.isDisturbed,I.isErrored=y.isErrored,I.isReadable=y.isReadable,I.Readable=qr();for(let k of h(s)){let T=function(...F){if(new.target)throw a();return I.Readable.from(o(D,this,F))},D=s[k];l(T,"name",{__proto__:null,value:D.name}),l(T,"length",{__proto__:null,value:D.length}),l(I.Readable.prototype,k,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}for(let k of h(n)){let T=function(...F){if(new.target)throw a();return o(D,this,F)},D=n[k];l(T,"name",{__proto__:null,value:D.name}),l(T,"length",{__proto__:null,value:D.length}),l(I.Readable.prototype,k,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}I.Writable=ps(),I.Duplex=Ct(),I.Transform=gs(),I.PassThrough=bs(),I.pipeline=d;var{addAbortSignal:U}=Wr();I.addAbortSignal=U,I.finished=b,I.destroy=g,I.compose=c,l(I,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),l(d,r,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),l(b,r,{__proto__:null,enumerable:!0,get(){return m.finished}}),I.Stream=I,I._isUint8Array=function(k){return k instanceof Uint8Array},I._uint8ArrayToBuffer=function(k){return t.from(k.buffer,k.byteOffset,k.byteLength)}}),nr=me((e,i)=>{ae(),se(),oe();var t=ws(),l=ys(),h=t.Readable.destroy;i.exports=t.Readable,i.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,i.exports._isUint8Array=t._isUint8Array,i.exports.isDisturbed=t.isDisturbed,i.exports.isErrored=t.isErrored,i.exports.isReadable=t.isReadable,i.exports.Readable=t.Readable,i.exports.Writable=t.Writable,i.exports.Duplex=t.Duplex,i.exports.Transform=t.Transform,i.exports.PassThrough=t.PassThrough,i.exports.addAbortSignal=t.addAbortSignal,i.exports.finished=t.finished,i.exports.destroy=t.destroy,i.exports.destroy=h,i.exports.pipeline=t.pipeline,i.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return l}}),i.exports.Stream=t.Stream,i.exports.default=i.exports}),al=me((e,i)=>{ae(),se(),oe(),typeof Object.create=="function"?i.exports=function(t,l){l&&(t.super_=l,t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(t,l){if(l){t.super_=l;var h=function(){};h.prototype=l.prototype,t.prototype=new h,t.prototype.constructor=t}}}),ll=me((e,i)=>{ae(),se(),oe();var{Buffer:t}=(tt(),Ue(et)),l=Symbol.for("BufferList");function h(o){if(!(this instanceof h))return new h(o);h._init.call(this,o)}h._init=function(o){Object.defineProperty(this,l,{value:!0}),this._bufs=[],this.length=0,o&&this.append(o)},h.prototype._new=function(o){return new h(o)},h.prototype._offset=function(o){if(o===0)return[0,0];let r=0;for(let s=0;s<this._bufs.length;s++){let n=r+this._bufs[s].length;if(o<n||s===this._bufs.length-1)return[s,o-r];r=n}},h.prototype._reverseOffset=function(o){let r=o[0],s=o[1];for(let n=0;n<r;n++)s+=this._bufs[n].length;return s},h.prototype.get=function(o){if(o>this.length||o<0)return;let r=this._offset(o);return this._bufs[r[0]][r[1]]},h.prototype.slice=function(o,r){return typeof o=="number"&&o<0&&(o+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,o,r)},h.prototype.copy=function(o,r,s,n){if((typeof s!="number"||s<0)&&(s=0),(typeof n!="number"||n>this.length)&&(n=this.length),s>=this.length||n<=0)return o||t.alloc(0);let a=!!o,c=this._offset(s),d=n-s,g=d,b=a&&r||0,m=c[1];if(s===0&&n===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:t.concat(this._bufs,this.length);for(let y=0;y<this._bufs.length;y++)this._bufs[y].copy(o,b),b+=this._bufs[y].length;return o}if(g<=this._bufs[c[0]].length-m)return a?this._bufs[c[0]].copy(o,r,m,m+g):this._bufs[c[0]].slice(m,m+g);a||(o=t.allocUnsafe(d));for(let y=c[0];y<this._bufs.length;y++){let I=this._bufs[y].length-m;if(g>I)this._bufs[y].copy(o,b,m),b+=I;else{this._bufs[y].copy(o,b,m,m+g),b+=I;break}g-=I,m&&(m=0)}return o.length>b?o.slice(0,b):o},h.prototype.shallowSlice=function(o,r){if(o=o||0,r=typeof r!="number"?this.length:r,o<0&&(o+=this.length),r<0&&(r+=this.length),o===r)return this._new();let s=this._offset(o),n=this._offset(r),a=this._bufs.slice(s[0],n[0]+1);return n[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,n[1]),s[1]!==0&&(a[0]=a[0].slice(s[1])),this._new(a)},h.prototype.toString=function(o,r,s){return this.slice(r,s).toString(o)},h.prototype.consume=function(o){if(o=Math.trunc(o),Number.isNaN(o)||o<=0)return this;for(;this._bufs.length;)if(o>=this._bufs[0].length)o-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(o),this.length-=o;break}return this},h.prototype.duplicate=function(){let o=this._new();for(let r=0;r<this._bufs.length;r++)o.append(this._bufs[r]);return o},h.prototype.append=function(o){if(o==null)return this;if(o.buffer)this._appendBuffer(t.from(o.buffer,o.byteOffset,o.byteLength));else if(Array.isArray(o))for(let r=0;r<o.length;r++)this.append(o[r]);else if(this._isBufferList(o))for(let r=0;r<o._bufs.length;r++)this.append(o._bufs[r]);else typeof o=="number"&&(o=o.toString()),this._appendBuffer(t.from(o));return this},h.prototype._appendBuffer=function(o){this._bufs.push(o),this.length+=o.length},h.prototype.indexOf=function(o,r,s){if(s===void 0&&typeof r=="string"&&(s=r,r=void 0),typeof o=="function"||Array.isArray(o))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof o=="number"?o=t.from([o]):typeof o=="string"?o=t.from(o,s):this._isBufferList(o)?o=o.slice():Array.isArray(o.buffer)?o=t.from(o.buffer,o.byteOffset,o.byteLength):t.isBuffer(o)||(o=t.from(o)),r=Number(r||0),isNaN(r)&&(r=0),r<0&&(r=this.length+r),r<0&&(r=0),o.length===0)return r>this.length?this.length:r;let n=this._offset(r),a=n[0],c=n[1];for(;a<this._bufs.length;a++){let d=this._bufs[a];for(;c<d.length;)if(d.length-c>=o.length){let g=d.indexOf(o,c);if(g!==-1)return this._reverseOffset([a,g]);c=d.length-o.length+1}else{let g=this._reverseOffset([a,c]);if(this._match(g,o))return g;c++}c=0}return-1},h.prototype._match=function(o,r){if(this.length-o<r.length)return!1;for(let s=0;s<r.length;s++)if(this.get(o+s)!==r[s])return!1;return!0},function(){let o={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readBigInt64BE:8,readBigInt64LE:8,readBigUInt64BE:8,readBigUInt64LE:8,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let r in o)(function(s){o[s]===null?h.prototype[s]=function(n,a){return this.slice(n,n+a)[s](0,a)}:h.prototype[s]=function(n=0){return this.slice(n,n+o[s])[s](0)}})(r)}(),h.prototype._isBufferList=function(o){return o instanceof h||h.isBufferList(o)},h.isBufferList=function(o){return o!=null&&o[l]},i.exports=h}),ul=me((e,i)=>{ae(),se(),oe();var t=nr().Duplex,l=al(),h=ll();function o(r){if(!(this instanceof o))return new o(r);if(typeof r=="function"){this._callback=r;let s=(function(n){this._callback&&(this._callback(n),this._callback=null)}).bind(this);this.on("pipe",function(n){n.on("error",s)}),this.on("unpipe",function(n){n.removeListener("error",s)}),r=null}h._init.call(this,r),t.call(this)}l(o,t),Object.assign(o.prototype,h.prototype),o.prototype._new=function(r){return new o(r)},o.prototype._write=function(r,s,n){this._appendBuffer(r),typeof n=="function"&&n()},o.prototype._read=function(r){if(!this.length)return this.push(null);r=Math.min(r,this.length),this.push(this.slice(0,r)),this.consume(r)},o.prototype.end=function(r){t.prototype.end.call(this,r),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(r,s){this._bufs.length=0,this.length=0,s(r)},o.prototype._isBufferList=function(r){return r instanceof o||r instanceof h||o.isBufferList(r)},o.isBufferList=h.isBufferList,i.exports=o,i.exports.BufferListStream=o,i.exports.BufferList=h}),hl=me((e,i)=>{ae(),se(),oe();var t=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};i.exports=t}),vs=me((e,i)=>{ae(),se(),oe();var t=i.exports,{Buffer:l}=(tt(),Ue(et));t.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},t.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},t.requiredHeaderFlagsErrors={};for(let o in t.requiredHeaderFlags){let r=t.requiredHeaderFlags[o];t.requiredHeaderFlagsErrors[o]="Invalid header flag bits, must be 0x"+r.toString(16)+" for "+t.types[o]+" packet"}t.codes={};for(let o in t.types){let r=t.types[o];t.codes[r]=o}t.CMD_SHIFT=4,t.CMD_MASK=240,t.DUP_MASK=8,t.QOS_MASK=3,t.QOS_SHIFT=1,t.RETAIN_MASK=1,t.VARBYTEINT_MASK=127,t.VARBYTEINT_FIN_MASK=128,t.VARBYTEINT_MAX=268435455,t.SESSIONPRESENT_MASK=1,t.SESSIONPRESENT_HEADER=l.from([t.SESSIONPRESENT_MASK]),t.CONNACK_HEADER=l.from([t.codes.connack<<t.CMD_SHIFT]),t.USERNAME_MASK=128,t.PASSWORD_MASK=64,t.WILL_RETAIN_MASK=32,t.WILL_QOS_MASK=24,t.WILL_QOS_SHIFT=3,t.WILL_FLAG_MASK=4,t.CLEAN_SESSION_MASK=2,t.CONNECT_HEADER=l.from([t.codes.connect<<t.CMD_SHIFT]),t.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},t.propertiesCodes={};for(let o in t.properties){let r=t.properties[o];t.propertiesCodes[r]=o}t.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function h(o){return[0,1,2].map(r=>[0,1].map(s=>[0,1].map(n=>{let a=l.alloc(1);return a.writeUInt8(t.codes[o]<<t.CMD_SHIFT|(s?t.DUP_MASK:0)|r<<t.QOS_SHIFT|n,0,!0),a})))}t.PUBLISH_HEADER=h("publish"),t.SUBSCRIBE_HEADER=h("subscribe"),t.SUBSCRIBE_OPTIONS_QOS_MASK=3,t.SUBSCRIBE_OPTIONS_NL_MASK=1,t.SUBSCRIBE_OPTIONS_NL_SHIFT=2,t.SUBSCRIBE_OPTIONS_RAP_MASK=1,t.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,t.SUBSCRIBE_OPTIONS_RH_MASK=3,t.SUBSCRIBE_OPTIONS_RH_SHIFT=4,t.SUBSCRIBE_OPTIONS_RH=[0,16,32],t.SUBSCRIBE_OPTIONS_NL=4,t.SUBSCRIBE_OPTIONS_RAP=8,t.SUBSCRIBE_OPTIONS_QOS=[0,1,2],t.UNSUBSCRIBE_HEADER=h("unsubscribe"),t.ACKS={unsuback:h("unsuback"),puback:h("puback"),pubcomp:h("pubcomp"),pubrel:h("pubrel"),pubrec:h("pubrec")},t.SUBACK_HEADER=l.from([t.codes.suback<<t.CMD_SHIFT]),t.VERSION3=l.from([3]),t.VERSION4=l.from([4]),t.VERSION5=l.from([5]),t.VERSION131=l.from([131]),t.VERSION132=l.from([132]),t.QOS=[0,1,2].map(o=>l.from([o])),t.EMPTY={pingreq:l.from([t.codes.pingreq<<4,0]),pingresp:l.from([t.codes.pingresp<<4,0]),disconnect:l.from([t.codes.disconnect<<4,0])},t.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},t.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},t.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},t.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},t.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},t.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),cl=me((e,i)=>{ae(),se(),oe();var t=1e3,l=t*60,h=l*60,o=h*24,r=o*7,s=o*365.25;i.exports=function(g,b){b=b||{};var m=typeof g;if(m==="string"&&g.length>0)return n(g);if(m==="number"&&isFinite(g))return b.long?c(g):a(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function n(g){if(g=String(g),!(g.length>100)){var b=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(b){var m=parseFloat(b[1]),y=(b[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*r;case"days":case"day":case"d":return m*o;case"hours":case"hour":case"hrs":case"hr":case"h":return m*h;case"minutes":case"minute":case"mins":case"min":case"m":return m*l;case"seconds":case"second":case"secs":case"sec":case"s":return m*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function a(g){var b=Math.abs(g);return b>=o?Math.round(g/o)+"d":b>=h?Math.round(g/h)+"h":b>=l?Math.round(g/l)+"m":b>=t?Math.round(g/t)+"s":g+"ms"}function c(g){var b=Math.abs(g);return b>=o?d(g,b,o,"day"):b>=h?d(g,b,h,"hour"):b>=l?d(g,b,l,"minute"):b>=t?d(g,b,t,"second"):g+" ms"}function d(g,b,m,y){var I=b>=m*1.5;return Math.round(g/m)+" "+y+(I?"s":"")}}),fl=me((e,i)=>{ae(),se(),oe();function t(l){o.debug=o,o.default=o,o.coerce=d,o.disable=n,o.enable=s,o.enabled=a,o.humanize=cl(),o.destroy=g,Object.keys(l).forEach(b=>{o[b]=l[b]}),o.names=[],o.skips=[],o.formatters={};function h(b){let m=0;for(let y=0;y<b.length;y++)m=(m<<5)-m+b.charCodeAt(y),m|=0;return o.colors[Math.abs(m)%o.colors.length]}o.selectColor=h;function o(b){let m,y=null,I,U;function k(...T){if(!k.enabled)return;let D=k,F=Number(new Date),R=F-(m||F);D.diff=R,D.prev=m,D.curr=F,m=F,T[0]=o.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let O=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(M,W)=>{if(M==="%%")return"%";O++;let G=o.formatters[W];if(typeof G=="function"){let ee=T[O];M=G.call(D,ee),T.splice(O,1),O--}return M}),o.formatArgs.call(D,T),(D.log||o.log).apply(D,T)}return k.namespace=b,k.useColors=o.useColors(),k.color=o.selectColor(b),k.extend=r,k.destroy=o.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(I!==o.namespaces&&(I=o.namespaces,U=o.enabled(b)),U),set:T=>{y=T}}),typeof o.init=="function"&&o.init(k),k}function r(b,m){let y=o(this.namespace+(typeof m>"u"?":":m)+b);return y.log=this.log,y}function s(b){o.save(b),o.namespaces=b,o.names=[],o.skips=[];let m,y=(typeof b=="string"?b:"").split(/[\s,]+/),I=y.length;for(m=0;m<I;m++)y[m]&&(b=y[m].replace(/\*/g,".*?"),b[0]==="-"?o.skips.push(new RegExp("^"+b.slice(1)+"$")):o.names.push(new RegExp("^"+b+"$")))}function n(){let b=[...o.names.map(c),...o.skips.map(c).map(m=>"-"+m)].join(",");return o.enable(""),b}function a(b){if(b[b.length-1]==="*")return!0;let m,y;for(m=0,y=o.skips.length;m<y;m++)if(o.skips[m].test(b))return!1;for(m=0,y=o.names.length;m<y;m++)if(o.names[m].test(b))return!0;return!1}function c(b){return b.toString().substring(2,b.toString().length-2).replace(/\.\*\?$/,"*")}function d(b){return b instanceof Error?b.stack||b.message:b}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}i.exports=t}),Rt=me((e,i)=>{ae(),se(),oe(),e.formatArgs=l,e.save=h,e.load=o,e.useColors=t,e.storage=r(),e.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof lt<"u"&<.userAgent&<.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof lt<"u"&<.userAgent&<.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof lt<"u"&<.userAgent&<.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+i.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;n.splice(1,0,a,"color: inherit");let c=0,d=0;n[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(c++,g==="%c"&&(d=c))}),n.splice(d,0,a)}e.log=console.debug||console.log||(()=>{});function h(n){try{n?e.storage.setItem("debug",n):e.storage.removeItem("debug")}catch{}}function o(){let n;try{n=e.storage.getItem("debug")}catch{}return!n&&typeof Ke<"u"&&"env"in Ke&&(n=Ke.env.DEBUG),n}function r(){try{return localStorage}catch{}}i.exports=fl()(e);var{formatters:s}=i.exports;s.j=function(n){try{return JSON.stringify(n)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}),dl=me((e,i)=>{ae(),se(),oe();var t=ul(),{EventEmitter:l}=(hr(),Ue(ir)),h=hl(),o=vs(),r=Rt()("mqtt-packet:parser"),s=class mn extends l{constructor(){super(),this.parser=this.constructor.parser}static parser(a){return this instanceof mn?(this.settings=a||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new mn().parser(a)}_resetState(){r("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new h,this.error=null,this._list=t(),this._stateCounter=0}parse(a){for(this.error&&this._resetState(),this._list.append(a),r("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,r("parse: state complete. _stateCounter is now: %d",this._stateCounter),r("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return r("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let a=this._list.readUInt8(0),c=a>>o.CMD_SHIFT;this.packet.cmd=o.types[c];let d=a&15,g=o.requiredHeaderFlags[c];return g!=null&&d!==g?this._emitError(new Error(o.requiredHeaderFlagsErrors[c])):(this.packet.retain=(a&o.RETAIN_MASK)!==0,this.packet.qos=a>>o.QOS_SHIFT&o.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(a&o.DUP_MASK)!==0,r("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let a=this._parseVarByteNum(!0);return a&&(this.packet.length=a.value,this._list.consume(a.bytes)),r("_parseLength %d",a.value),!!a}_parsePayload(){r("_parsePayload: payload %O",this._list);let a=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}a=!0}return r("_parsePayload complete result: %s",a),a}_parseConnect(){r("_parseConnect");let a,c,d,g,b={},m=this.packet,y=this._parseString();if(y===null)return this._emitError(new Error("Cannot parse protocolId"));if(y!=="MQTT"&&y!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=y,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));b.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,b.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,b.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let I=!!(this._list.readUInt8(this._pos)&o.WILL_RETAIN_MASK),U=(this._list.readUInt8(this._pos)&o.WILL_QOS_MASK)>>o.WILL_QOS_SHIFT;if(b.will)m.will={},m.will.retain=I,m.will.qos=U;else{if(I)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(U)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&o.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let T=this._parseProperties();Object.getOwnPropertyNames(T).length&&(m.properties=T)}let k=this._parseString();if(k===null)return this._emitError(new Error("Packet too short"));if(m.clientId=k,r("_parseConnect: packet.clientId: %s",m.clientId),b.will){if(m.protocolVersion===5){let T=this._parseProperties();Object.getOwnPropertyNames(T).length&&(m.will.properties=T)}if(a=this._parseString(),a===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=a,r("_parseConnect: packet.will.topic: %s",m.will.topic),c=this._parseBuffer(),c===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=c,r("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(b.username){if(g=this._parseString(),g===null)return this._emitError(new Error("Cannot parse username"));m.username=g,r("_parseConnect: packet.username: %s",m.username)}if(b.password){if(d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse password"));m.password=d}return this.settings=m,r("_parseConnect: complete"),m}_parseConnack(){r("_parseConnack");let a=this.packet;if(this._list.length<1)return null;let c=this._list.readUInt8(this._pos++);if(c>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(a.sessionPresent=!!(c&o.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?a.reasonCode=this._list.readUInt8(this._pos++):a.reasonCode=0;else{if(this._list.length<2)return null;a.returnCode=this._list.readUInt8(this._pos++)}if(a.returnCode===-1||a.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(a.properties=d)}r("_parseConnack: complete")}_parsePublish(){r("_parsePublish");let a=this.packet;if(a.topic=this._parseString(),a.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(a.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(a.properties=c)}a.payload=this._list.slice(this._pos,a.length),r("_parsePublish: payload from buffer list: %o",a.payload)}}_parseSubscribe(){r("_parseSubscribe");let a=this.packet,c,d,g,b,m,y,I;if(a.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let U=this._parseProperties();Object.getOwnPropertyNames(U).length&&(a.properties=U)}if(a.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<a.length;){if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=a.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(d=this._parseByte(),this.settings.protocolVersion===5){if(d&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(d&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(g=d&o.SUBSCRIBE_OPTIONS_QOS_MASK,g>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(y=(d>>o.SUBSCRIBE_OPTIONS_NL_SHIFT&o.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(d>>o.SUBSCRIBE_OPTIONS_RAP_SHIFT&o.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,b=d>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,b>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));I={topic:c,qos:g},this.settings.protocolVersion===5?(I.nl=y,I.rap=m,I.rh=b):this.settings.bridgeMode&&(I.rh=0,I.rap=!0,I.nl=!0),r("_parseSubscribe: push subscription `%s` to subscription",I),a.subscriptions.push(I)}}}_parseSuback(){r("_parseSuback");let a=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(a.properties=c)}if(a.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos<this.packet.length;){let c=this._list.readUInt8(this._pos++);if(this.settings.protocolVersion===5){if(!o.MQTT5_SUBACK_CODES[c])return this._emitError(new Error("Invalid suback code"))}else if(c>2&&c!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(c)}}}_parseUnsubscribe(){r("_parseUnsubscribe");let a=this.packet;if(a.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(a.properties=c)}if(a.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<a.length;){let c=this._parseString();if(c===null)return this._emitError(new Error("Cannot parse topic"));r("_parseUnsubscribe: push topic `%s` to unsubscriptions",c),a.unsubscriptions.push(c)}}}_parseUnsuback(){r("_parseUnsuback");let a=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&a.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if(a.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let c=this._parseProperties();for(Object.getOwnPropertyNames(c).length&&(a.properties=c),a.granted=[];this._pos<this.packet.length;){let d=this._list.readUInt8(this._pos++);if(!o.MQTT5_UNSUBACK_CODES[d])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(d)}}}_parseConfirmation(){r("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);let a=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5){if(a.length>2){switch(a.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!o.MQTT5_PUBACK_PUBREC_CODES[a.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!o.MQTT5_PUBREL_PUBCOMP_CODES[a.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}r("_parseConfirmation: packet.reasonCode `%d`",a.reasonCode)}else a.reasonCode=0;if(a.length>3){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(a.properties=c)}}return!0}_parseDisconnect(){let a=this.packet;if(r("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(a.reasonCode=this._parseByte(),o.MQTT5_DISCONNECT_CODES[a.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):a.reasonCode=0;let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(a.properties=c)}return r("_parseDisconnect result: true"),!0}_parseAuth(){r("_parseAuth");let a=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(a.reasonCode=this._parseByte(),!o.MQTT5_AUTH_CODES[a.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let c=this._parseProperties();return Object.getOwnPropertyNames(c).length&&(a.properties=c),r("_parseAuth: result: true"),!0}_parseMessageId(){let a=this.packet;return a.messageId=this._parseNum(),a.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(r("_parseMessageId: packet.messageId %d",a.messageId),!0)}_parseString(a){let c=this._parseNum(),d=c+this._pos;if(c===-1||d>this._list.length||d>this.packet.length)return null;let g=this._list.toString("utf8",this._pos,d);return this._pos+=c,r("_parseString: result: %s",g),g}_parseStringPair(){return r("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let a=this._parseNum(),c=a+this._pos;if(a===-1||c>this._list.length||c>this.packet.length)return null;let d=this._list.slice(this._pos,c);return this._pos+=a,r("_parseBuffer: result: %o",d),d}_parseNum(){if(this._list.length-this._pos<2)return-1;let a=this._list.readUInt16BE(this._pos);return this._pos+=2,r("_parseNum: result: %s",a),a}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let a=this._list.readUInt32BE(this._pos);return this._pos+=4,r("_parse4ByteNum: result: %s",a),a}_parseVarByteNum(a){r("_parseVarByteNum");let c=4,d=0,g=1,b=0,m=!1,y,I=this._pos?this._pos:0;for(;d<c&&I+d<this._list.length;){if(y=this._list.readUInt8(I+d++),b+=g*(y&o.VARBYTEINT_MASK),g*=128,!(y&o.VARBYTEINT_FIN_MASK)){m=!0;break}if(this._list.length<=d)break}return!m&&d===c&&this._list.length>=d&&this._emitError(new Error("Invalid variable byte integer")),I&&(this._pos+=d),m?a?m={bytes:d,value:b}:m=b:m=!1,r("_parseVarByteNum: result: %o",m),m}_parseByte(){let a;return this._pos<this._list.length&&(a=this._list.readUInt8(this._pos),this._pos++),r("_parseByte: result: %o",a),a}_parseByType(a){switch(r("_parseByType: type: %s",a),a){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){r("_parseProperties");let a=this._parseVarByteNum(),c=this._pos+a,d={};for(;this._pos<c;){let g=this._parseByte();if(!g)return this._emitError(new Error("Cannot parse property code type")),!1;let b=o.propertiesCodes[g];if(!b)return this._emitError(new Error("Unknown property")),!1;if(b==="userProperties"){d[b]||(d[b]=Object.create(null));let m=this._parseByType(o.propertiesTypes[b]);if(d[b][m.name])if(Array.isArray(d[b][m.name]))d[b][m.name].push(m.value);else{let y=d[b][m.name];d[b][m.name]=[y],d[b][m.name].push(m.value)}else d[b][m.name]=m.value;continue}d[b]?Array.isArray(d[b])?d[b].push(this._parseByType(o.propertiesTypes[b])):(d[b]=[d[b]],d[b].push(this._parseByType(o.propertiesTypes[b]))):d[b]=this._parseByType(o.propertiesTypes[b])}return d}_newPacket(){return r("_newPacket"),this.packet&&(this._list.consume(this.packet.length),r("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),r("_newPacket: new packet"),this.packet=new h,this._pos=0,!0}_emitError(a){r("_emitError",a),this.error=a,this.emit("error",a)}};i.exports=s}),pl=me((e,i)=>{ae(),se(),oe();var{Buffer:t}=(tt(),Ue(et)),l=65536,h={},o=t.isBuffer(t.from([1,2]).subarray(0,1));function r(c){let d=t.allocUnsafe(2);return d.writeUInt8(c>>8,0),d.writeUInt8(c&255,1),d}function s(){for(let c=0;c<l;c++)h[c]=r(c)}function n(c){let d=0,g=0,b=t.allocUnsafe(4);do d=c%128|0,c=c/128|0,c>0&&(d=d|128),b.writeUInt8(d,g++);while(c>0&&g<4);return c>0&&(g=0),o?b.subarray(0,g):b.slice(0,g)}function a(c){let d=t.allocUnsafe(4);return d.writeUInt32BE(c,0),d}i.exports={cache:h,generateCache:s,generateNumber:r,genBufVariableByteInt:n,generate4ByteBuffer:a}}),gl=me((e,i)=>{ae(),se(),oe(),typeof Ke>"u"||!Ke.version||Ke.version.indexOf("v0.")===0||Ke.version.indexOf("v1.")===0&&Ke.version.indexOf("v1.8.")!==0?i.exports={nextTick:t}:i.exports=Ke;function t(l,h,o,r){if(typeof l!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,n,a;switch(s){case 0:case 1:return Ke.nextTick(l);case 2:return Ke.nextTick(function(){l.call(null,h)});case 3:return Ke.nextTick(function(){l.call(null,h,o)});case 4:return Ke.nextTick(function(){l.call(null,h,o,r)});default:for(n=new Array(s-1),a=0;a<n.length;)n[a++]=arguments[a];return Ke.nextTick(function(){l.apply(null,n)})}}}),_s=me((e,i)=>{ae(),se(),oe();var t=vs(),{Buffer:l}=(tt(),Ue(et)),h=l.allocUnsafe(0),o=l.from([0]),r=pl(),s=gl().nextTick,n=Rt()("mqtt-packet:writeToStream"),a=r.cache,c=r.generateNumber,d=r.generateCache,g=r.genBufVariableByteInt,b=r.generate4ByteBuffer,m=ne,y=!0;function I(x,_,z){switch(n("generate called"),_.cork&&(_.cork(),s(U,_)),y&&(y=!1,d()),n("generate: packet.cmd: %s",x.cmd),x.cmd){case"connect":return k(x,_);case"connack":return T(x,_,z);case"publish":return D(x,_,z);case"puback":case"pubrec":case"pubrel":case"pubcomp":return F(x,_,z);case"subscribe":return R(x,_,z);case"suback":return O(x,_,z);case"unsubscribe":return M(x,_,z);case"unsuback":return W(x,_,z);case"pingreq":case"pingresp":return G(x,_);case"disconnect":return ee(x,_,z);case"auth":return E(x,_,z);default:return _.destroy(new Error("Unknown command")),!1}}Object.defineProperty(I,"cacheNumbers",{get(){return m===ne},set(x){x?((!a||Object.keys(a).length===0)&&(y=!0),m=ne):(y=!1,m=$)}});function U(x){x.uncork()}function k(x,_,z){let le=x||{},X=le.protocolId||"MQTT",J=le.protocolVersion||4,he=le.will,de=le.clean,C=le.keepalive||0,j=le.clientId||"",N=le.username,te=le.password,Q=le.properties;de===void 0&&(de=!0);let L=0;if(!X||typeof X!="string"&&!l.isBuffer(X))return _.destroy(new Error("Invalid protocolId")),!1;if(L+=X.length+2,J!==3&&J!==4&&J!==5)return _.destroy(new Error("Invalid protocol version")),!1;if(L+=1,(typeof j=="string"||l.isBuffer(j))&&(j||J>=4)&&(j||de))L+=l.byteLength(j)+2;else{if(J<4)return _.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(de*1===0)return _.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof C!="number"||C<0||C>65535||C%1!==0)return _.destroy(new Error("Invalid keepalive")),!1;L+=2,L+=1;let H,we;if(J===5){if(H=ve(_,Q),!H)return!1;L+=H.length}if(he){if(typeof he!="object")return _.destroy(new Error("Invalid will")),!1;if(!he.topic||typeof he.topic!="string")return _.destroy(new Error("Invalid will topic")),!1;if(L+=l.byteLength(he.topic)+2,L+=2,he.payload)if(he.payload.length>=0)typeof he.payload=="string"?L+=l.byteLength(he.payload):L+=he.payload.length;else return _.destroy(new Error("Invalid will payload")),!1;if(we={},J===5){if(we=ve(_,he.properties),!we)return!1;L+=we.length}}let _e=!1;if(N!=null)if(ue(N))_e=!0,L+=l.byteLength(N)+2;else return _.destroy(new Error("Invalid username")),!1;if(te!=null){if(!_e)return _.destroy(new Error("Username is required to use password")),!1;if(ue(te))L+=Ee(te)+2;else return _.destroy(new Error("Invalid password")),!1}_.write(t.CONNECT_HEADER),Z(_,L),re(_,X),le.bridgeMode&&(J+=128),_.write(J===131?t.VERSION131:J===132?t.VERSION132:J===4?t.VERSION4:J===5?t.VERSION5:t.VERSION3);let Ae=0;return Ae|=N!=null?t.USERNAME_MASK:0,Ae|=te!=null?t.PASSWORD_MASK:0,Ae|=he&&he.retain?t.WILL_RETAIN_MASK:0,Ae|=he&&he.qos?he.qos<<t.WILL_QOS_SHIFT:0,Ae|=he?t.WILL_FLAG_MASK:0,Ae|=de?t.CLEAN_SESSION_MASK:0,_.write(l.from([Ae])),m(_,C),J===5&&H.write(),re(_,j),he&&(J===5&&we.write(),K(_,he.topic),re(_,he.payload)),N!=null&&re(_,N),te!=null&&re(_,te),!0}function T(x,_,z){let le=z?z.protocolVersion:4,X=x||{},J=le===5?X.reasonCode:X.returnCode,he=X.properties,de=2;if(typeof J!="number")return _.destroy(new Error("Invalid return code")),!1;let C=null;if(le===5){if(C=ve(_,he),!C)return!1;de+=C.length}return _.write(t.CONNACK_HEADER),Z(_,de),_.write(X.sessionPresent?t.SESSIONPRESENT_HEADER:o),_.write(l.from([J])),C==null||C.write(),!0}function D(x,_,z){n("publish: packet: %o",x);let le=z?z.protocolVersion:4,X=x||{},J=X.qos||0,he=X.retain?t.RETAIN_MASK:0,de=X.topic,C=X.payload||h,j=X.messageId,N=X.properties,te=0;if(typeof de=="string")te+=l.byteLength(de)+2;else if(l.isBuffer(de))te+=de.length+2;else return _.destroy(new Error("Invalid topic")),!1;if(l.isBuffer(C)?te+=C.length:te+=l.byteLength(C),J&&typeof j!="number")return _.destroy(new Error("Invalid messageId")),!1;J&&(te+=2);let Q=null;if(le===5){if(Q=ve(_,N),!Q)return!1;te+=Q.length}return _.write(t.PUBLISH_HEADER[J][X.dup?1:0][he?1:0]),Z(_,te),m(_,Ee(de)),_.write(de),J>0&&m(_,j),Q==null||Q.write(),n("publish: payload: %o",C),_.write(C)}function F(x,_,z){let le=z?z.protocolVersion:4,X=x||{},J=X.cmd||"puback",he=X.messageId,de=X.dup&&J==="pubrel"?t.DUP_MASK:0,C=0,j=X.reasonCode,N=X.properties,te=le===5?3:2;if(J==="pubrel"&&(C=1),typeof he!="number")return _.destroy(new Error("Invalid messageId")),!1;let Q=null;if(le===5&&typeof N=="object"){if(Q=S(_,N,z,te),!Q)return!1;te+=Q.length}return _.write(t.ACKS[J][C][de][0]),te===3&&(te+=j!==0?1:-1),Z(_,te),m(_,he),le===5&&te!==2&&_.write(l.from([j])),Q!==null?Q.write():te===4&&_.write(l.from([0])),!0}function R(x,_,z){n("subscribe: packet: ");let le=z?z.protocolVersion:4,X=x||{},J=X.dup?t.DUP_MASK:0,he=X.messageId,de=X.subscriptions,C=X.properties,j=0;if(typeof he!="number")return _.destroy(new Error("Invalid messageId")),!1;j+=2;let N=null;if(le===5){if(N=ve(_,C),!N)return!1;j+=N.length}if(typeof de=="object"&&de.length)for(let Q=0;Q<de.length;Q+=1){let L=de[Q].topic,H=de[Q].qos;if(typeof L!="string")return _.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof H!="number")return _.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(le===5){if(typeof(de[Q].nl||!1)!="boolean")return _.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(de[Q].rap||!1)!="boolean")return _.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let we=de[Q].rh||0;if(typeof we!="number"||we>2)return _.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}j+=l.byteLength(L)+2+1}else return _.destroy(new Error("Invalid subscriptions")),!1;n("subscribe: writing to stream: %o",t.SUBSCRIBE_HEADER),_.write(t.SUBSCRIBE_HEADER[1][J?1:0][0]),Z(_,j),m(_,he),N!==null&&N.write();let te=!0;for(let Q of de){let L=Q.topic,H=Q.qos,we=+Q.nl,_e=+Q.rap,Ae=Q.rh,Re;K(_,L),Re=t.SUBSCRIBE_OPTIONS_QOS[H],le===5&&(Re|=we?t.SUBSCRIBE_OPTIONS_NL:0,Re|=_e?t.SUBSCRIBE_OPTIONS_RAP:0,Re|=Ae?t.SUBSCRIBE_OPTIONS_RH[Ae]:0),te=_.write(l.from([Re]))}return te}function O(x,_,z){let le=z?z.protocolVersion:4,X=x||{},J=X.messageId,he=X.granted,de=X.properties,C=0;if(typeof J!="number")return _.destroy(new Error("Invalid messageId")),!1;if(C+=2,typeof he=="object"&&he.length)for(let N=0;N<he.length;N+=1){if(typeof he[N]!="number")return _.destroy(new Error("Invalid qos vector")),!1;C+=1}else return _.destroy(new Error("Invalid qos vector")),!1;let j=null;if(le===5){if(j=S(_,de,z,C),!j)return!1;C+=j.length}return _.write(t.SUBACK_HEADER),Z(_,C),m(_,J),j!==null&&j.write(),_.write(l.from(he))}function M(x,_,z){let le=z?z.protocolVersion:4,X=x||{},J=X.messageId,he=X.dup?t.DUP_MASK:0,de=X.unsubscriptions,C=X.properties,j=0;if(typeof J!="number")return _.destroy(new Error("Invalid messageId")),!1;if(j+=2,typeof de=="object"&&de.length)for(let Q=0;Q<de.length;Q+=1){if(typeof de[Q]!="string")return _.destroy(new Error("Invalid unsubscriptions")),!1;j+=l.byteLength(de[Q])+2}else return _.destroy(new Error("Invalid unsubscriptions")),!1;let N=null;if(le===5){if(N=ve(_,C),!N)return!1;j+=N.length}_.write(t.UNSUBSCRIBE_HEADER[1][he?1:0][0]),Z(_,j),m(_,J),N!==null&&N.write();let te=!0;for(let Q=0;Q<de.length;Q++)te=K(_,de[Q]);return te}function W(x,_,z){let le=z?z.protocolVersion:4,X=x||{},J=X.messageId,he=X.dup?t.DUP_MASK:0,de=X.granted,C=X.properties,j=X.cmd,N=0,te=2;if(typeof J!="number")return _.destroy(new Error("Invalid messageId")),!1;if(le===5)if(typeof de=="object"&&de.length)for(let L=0;L<de.length;L+=1){if(typeof de[L]!="number")return _.destroy(new Error("Invalid qos vector")),!1;te+=1}else return _.destroy(new Error("Invalid qos vector")),!1;let Q=null;if(le===5){if(Q=S(_,C,z,te),!Q)return!1;te+=Q.length}return _.write(t.ACKS[j][N][he][0]),Z(_,te),m(_,J),Q!==null&&Q.write(),le===5&&_.write(l.from(de)),!0}function G(x,_,z){return _.write(t.EMPTY[x.cmd])}function ee(x,_,z){let le=z?z.protocolVersion:4,X=x||{},J=X.reasonCode,he=X.properties,de=le===5?1:0,C=null;if(le===5){if(C=S(_,he,z,de),!C)return!1;de+=C.length}return _.write(l.from([t.codes.disconnect<<4])),Z(_,de),le===5&&_.write(l.from([J])),C!==null&&C.write(),!0}function E(x,_,z){let le=z?z.protocolVersion:4,X=x||{},J=X.reasonCode,he=X.properties,de=le===5?1:0;le!==5&&_.destroy(new Error("Invalid mqtt version for auth packet"));let C=S(_,he,z,de);return C?(de+=C.length,_.write(l.from([t.codes.auth<<4])),Z(_,de),_.write(l.from([J])),C!==null&&C.write(),!0):!1}var q={};function Z(x,_){if(_>t.VARBYTEINT_MAX)return x.destroy(new Error(`Invalid variable byte integer: ${_}`)),!1;let z=q[_];return z||(z=g(_),_<16384&&(q[_]=z)),n("writeVarByteInt: writing to stream: %o",z),x.write(z)}function K(x,_){let z=l.byteLength(_);return m(x,z),n("writeString: %s",_),x.write(_,"utf8")}function ge(x,_,z){K(x,_),K(x,z)}function ne(x,_){return n("writeNumberCached: number: %d",_),n("writeNumberCached: %o",a[_]),x.write(a[_])}function $(x,_){let z=c(_);return n("writeNumberGenerated: %o",z),x.write(z)}function be(x,_){let z=b(_);return n("write4ByteNumber: %o",z),x.write(z)}function re(x,_){typeof _=="string"?K(x,_):_?(m(x,_.length),x.write(_)):m(x,0)}function ve(x,_){if(typeof _!="object"||_.length!=null)return{length:1,write(){ce(x,{},0)}};let z=0;function le(X,J){let he=t.propertiesTypes[X],de=0;switch(he){case"byte":{if(typeof J!="boolean")return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=2;break}case"int8":{if(typeof J!="number"||J<0||J>255)return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=2;break}case"binary":{if(J&&J===null)return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=1+l.byteLength(J)+2;break}case"int16":{if(typeof J!="number"||J<0||J>65535)return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=3;break}case"int32":{if(typeof J!="number"||J<0||J>4294967295)return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=5;break}case"var":{if(typeof J!="number"||J<0||J>268435455)return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=1+l.byteLength(g(J));break}case"string":{if(typeof J!="string")return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=3+l.byteLength(J.toString());break}case"pair":{if(typeof J!="object")return x.destroy(new Error(`Invalid ${X}: ${J}`)),!1;de+=Object.getOwnPropertyNames(J).reduce((C,j)=>{let N=J[j];return Array.isArray(N)?C+=N.reduce((te,Q)=>(te+=3+l.byteLength(j.toString())+2+l.byteLength(Q.toString()),te),0):C+=3+l.byteLength(j.toString())+2+l.byteLength(J[j].toString()),C},0);break}default:return x.destroy(new Error(`Invalid property ${X}: ${J}`)),!1}return de}if(_)for(let X in _){let J=0,he=0,de=_[X];if(Array.isArray(de))for(let C=0;C<de.length;C++){if(he=le(X,de[C]),!he)return!1;J+=he}else{if(he=le(X,de),!he)return!1;J=he}if(!J)return!1;z+=J}return{length:l.byteLength(g(z))+z,write(){ce(x,_,z)}}}function S(x,_,z,le){let X=["reasonString","userProperties"],J=z&&z.properties&&z.properties.maximumPacketSize?z.properties.maximumPacketSize:0,he=ve(x,_);if(J)for(;le+he.length>J;){let de=X.shift();if(de&&_[de])delete _[de],he=ve(x,_);else return!1}return he}function Y(x,_,z){switch(t.propertiesTypes[_]){case"byte":{x.write(l.from([t.properties[_]])),x.write(l.from([+z]));break}case"int8":{x.write(l.from([t.properties[_]])),x.write(l.from([z]));break}case"binary":{x.write(l.from([t.properties[_]])),re(x,z);break}case"int16":{x.write(l.from([t.properties[_]])),m(x,z);break}case"int32":{x.write(l.from([t.properties[_]])),be(x,z);break}case"var":{x.write(l.from([t.properties[_]])),Z(x,z);break}case"string":{x.write(l.from([t.properties[_]])),K(x,z);break}case"pair":{Object.getOwnPropertyNames(z).forEach(le=>{let X=z[le];Array.isArray(X)?X.forEach(J=>{x.write(l.from([t.properties[_]])),ge(x,le.toString(),J.toString())}):(x.write(l.from([t.properties[_]])),ge(x,le.toString(),X.toString()))});break}default:return x.destroy(new Error(`Invalid property ${_} value: ${z}`)),!1}}function ce(x,_,z){Z(x,z);for(let le in _)if(Object.prototype.hasOwnProperty.call(_,le)&&_[le]!==null){let X=_[le];if(Array.isArray(X))for(let J=0;J<X.length;J++)Y(x,le,X[J]);else Y(x,le,X)}}function Ee(x){return x?x instanceof l?x.length:l.byteLength(x):0}function ue(x){return typeof x=="string"||x instanceof l}i.exports=I}),bl=me((e,i)=>{ae(),se(),oe();var t=_s(),{EventEmitter:l}=(hr(),Ue(ir)),{Buffer:h}=(tt(),Ue(et));function o(s,n){let a=new r;return t(s,a,n),a.concat()}var r=class extends l{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,n=new Array(this._array.length),a=this._array,c=0,d;for(d=0;d<a.length&&a[d]!==void 0;d++)typeof a[d]!="string"?n[d]=a[d].length:n[d]=h.byteLength(a[d]),s+=n[d];let g=h.allocUnsafe(s);for(d=0;d<a.length&&a[d]!==void 0;d++)typeof a[d]!="string"?(a[d].copy(g,c),c+=n[d]):(g.write(a[d],c),c+=n[d]);return g}destroy(s){s&&this.emit("error",s)}};i.exports=o}),ml=me(e=>{ae(),se(),oe(),e.parser=dl().parser,e.generate=bl(),e.writeToStream=_s()}),Es=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let t=this.nextId++;return this.nextId===65536&&(this.nextId=1),t}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(t){return!0}deallocate(t){}clear(){}};e.default=i}),yl=me((e,i)=>{ae(),se(),oe(),i.exports=l;function t(o){return o instanceof lr?lr.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function l(o){if(o=o||{},o.circles)return h(o);return o.proto?n:s;function r(a,c){for(var d=Object.keys(a),g=new Array(d.length),b=0;b<d.length;b++){var m=d[b],y=a[m];typeof y!="object"||y===null?g[m]=y:y instanceof Date?g[m]=new Date(y):ArrayBuffer.isView(y)?g[m]=t(y):g[m]=c(y)}return g}function s(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return r(a,s);if(a instanceof Map)return new Map(r(Array.from(a),s));if(a instanceof Set)return new Set(r(Array.from(a),s));var c={};for(var d in a)if(Object.hasOwnProperty.call(a,d)!==!1){var g=a[d];typeof g!="object"||g===null?c[d]=g:g instanceof Date?c[d]=new Date(g):g instanceof Map?c[d]=new Map(r(Array.from(g),s)):g instanceof Set?c[d]=new Set(r(Array.from(g),s)):ArrayBuffer.isView(g)?c[d]=t(g):c[d]=s(g)}return c}function n(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return r(a,n);if(a instanceof Map)return new Map(r(Array.from(a),n));if(a instanceof Set)return new Set(r(Array.from(a),n));var c={};for(var d in a){var g=a[d];typeof g!="object"||g===null?c[d]=g:g instanceof Date?c[d]=new Date(g):g instanceof Map?c[d]=new Map(r(Array.from(g),n)):g instanceof Set?c[d]=new Set(r(Array.from(g),n)):ArrayBuffer.isView(g)?c[d]=t(g):c[d]=n(g)}return c}}function h(o){var r=[],s=[];return o.proto?c:a;function n(d,g){for(var b=Object.keys(d),m=new Array(b.length),y=0;y<b.length;y++){var I=b[y],U=d[I];if(typeof U!="object"||U===null)m[I]=U;else if(U instanceof Date)m[I]=new Date(U);else if(ArrayBuffer.isView(U))m[I]=t(U);else{var k=r.indexOf(U);k!==-1?m[I]=s[k]:m[I]=g(U)}}return m}function a(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return n(d,a);if(d instanceof Map)return new Map(n(Array.from(d),a));if(d instanceof Set)return new Set(n(Array.from(d),a));var g={};r.push(d),s.push(g);for(var b in d)if(Object.hasOwnProperty.call(d,b)!==!1){var m=d[b];if(typeof m!="object"||m===null)g[b]=m;else if(m instanceof Date)g[b]=new Date(m);else if(m instanceof Map)g[b]=new Map(n(Array.from(m),a));else if(m instanceof Set)g[b]=new Set(n(Array.from(m),a));else if(ArrayBuffer.isView(m))g[b]=t(m);else{var y=r.indexOf(m);y!==-1?g[b]=s[y]:g[b]=a(m)}}return r.pop(),s.pop(),g}function c(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return n(d,c);if(d instanceof Map)return new Map(n(Array.from(d),c));if(d instanceof Set)return new Set(n(Array.from(d),c));var g={};r.push(d),s.push(g);for(var b in d){var m=d[b];if(typeof m!="object"||m===null)g[b]=m;else if(m instanceof Date)g[b]=new Date(m);else if(m instanceof Map)g[b]=new Map(n(Array.from(m),c));else if(m instanceof Set)g[b]=new Set(n(Array.from(m),c));else if(ArrayBuffer.isView(m))g[b]=t(m);else{var y=r.indexOf(m);y!==-1?g[b]=s[y]:g[b]=c(m)}}return r.pop(),s.pop(),g}}}),wl=me((e,i)=>{ae(),se(),oe(),i.exports=yl()()}),vl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function i(l){let h=l.split("/");for(let o=0;o<h.length;o++)if(h[o]!=="+"){if(h[o]==="#")return o===h.length-1;if(h[o].indexOf("+")!==-1||h[o].indexOf("#")!==-1)return!1}return!0}e.validateTopic=i;function t(l){if(l.length===0)return"empty_topic_list";for(let h=0;h<l.length;h++)if(!i(l[h]))return l[h];return null}e.validateTopics=t}),Ss=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=nr(),t={objectMode:!0},l={clean:!0},h=class{constructor(o){this.options=o||{},this.options=Object.assign(Object.assign({},l),o),this._inflights=new Map}put(o,r){return this._inflights.set(o.messageId,o),r&&r(),this}createStream(){let o=new i.Readable(t),r=[],s=!1,n=0;return this._inflights.forEach((a,c)=>{r.push(a)}),o._read=()=>{!s&&n<r.length?o.push(r[n++]):o.push(null)},o.destroy=a=>{if(!s)return s=!0,setTimeout(()=>{o.emit("close")},0),o},o}del(o,r){let s=this._inflights.get(o.messageId);return s?(this._inflights.delete(o.messageId),r(null,s)):r&&r(new Error("missing packet")),this}get(o,r){let s=this._inflights.get(o.messageId);return s?r(null,s):r&&r(new Error("missing packet")),this}close(o){this.options.clean&&(this._inflights=null),o&&o()}};e.default=h}),_l=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=[0,16,128,131,135,144,145,151,153],t=(l,h,o)=>{l.log("handlePublish: packet %o",h),o=typeof o<"u"?o:l.noop;let r=h.topic.toString(),s=h.payload,{qos:n}=h,{messageId:a}=h,{options:c}=l;if(l.options.protocolVersion===5){let d;if(h.properties&&(d=h.properties.topicAlias),typeof d<"u")if(r.length===0)if(d>0&&d<=65535){let g=l.topicAliasRecv.getTopicByAlias(d);if(g)r=g,l.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",r,d);else{l.log("handlePublish :: unregistered topic alias. alias: %d",d),l.emit("error",new Error("Received unregistered Topic Alias"));return}}else{l.log("handlePublish :: topic alias out of range. alias: %d",d),l.emit("error",new Error("Received Topic Alias is out of range"));return}else if(l.topicAliasRecv.put(r,d))l.log("handlePublish :: registered topic: %s - alias: %d",r,d);else{l.log("handlePublish :: topic alias out of range. alias: %d",d),l.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(l.log("handlePublish: qos %d",n),n){case 2:{c.customHandleAcks(r,s,h,(d,g)=>{if(typeof d=="number"&&(g=d,d=null),d)return l.emit("error",d);if(i.indexOf(g)===-1)return l.emit("error",new Error("Wrong reason code for pubrec"));g?l._sendPacket({cmd:"pubrec",messageId:a,reasonCode:g},o):l.incomingStore.put(h,()=>{l._sendPacket({cmd:"pubrec",messageId:a},o)})});break}case 1:{c.customHandleAcks(r,s,h,(d,g)=>{if(typeof d=="number"&&(g=d,d=null),d)return l.emit("error",d);if(i.indexOf(g)===-1)return l.emit("error",new Error("Wrong reason code for puback"));g||l.emit("message",r,s,h),l.handleMessage(h,b=>{if(b)return o&&o(b);l._sendPacket({cmd:"puback",messageId:a,reasonCode:g},o)})});break}case 0:l.emit("message",r,s,h),l.handleMessage(h,o);break;default:l.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=t}),vr=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var i=class As extends Error{constructor(h,o){super(h),this.code=o,Object.setPrototypeOf(this,As.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=i;function t(l,h,o=!1){var r;let s=[h];for(;;){let n=s[0],a=Object.getPrototypeOf(n);if(a!=null&&a.prototype)s.unshift(a);else break}for(let n of s)for(let a of Object.getOwnPropertyNames(n.prototype))(o||a!=="constructor")&&Object.defineProperty(l.prototype,a,(r=Object.getOwnPropertyDescriptor(n.prototype,a))!==null&&r!==void 0?r:Object.create(null))}e.applyMixin=t,e.nextTick=Ke?Ke.nextTick:l=>{setTimeout(l,0)}}),Vr=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0,e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var i=(t,l)=>{let{messageId:h}=l,o=l.cmd,r=null,s=t.outgoing[h]?t.outgoing[h].cb:null,n;if(!s){t.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(t.log("_handleAck :: packet type",o),o){case"pubcomp":case"puback":{let a=l.reasonCode;a&&a>0&&a!==16?(n=new Error(`Publish error: ${e.ReasonCodes[a]}`),n.code=a,t._removeOutgoingAndStoreMessage(h,()=>{s(n,l)})):t._removeOutgoingAndStoreMessage(h,s);break}case"pubrec":{r={cmd:"pubrel",qos:2,messageId:h};let a=l.reasonCode;a&&a>0&&a!==16?(n=new Error(`Publish error: ${e.ReasonCodes[a]}`),n.code=a,t._removeOutgoingAndStoreMessage(h,()=>{s(n,l)})):t._sendPacket(r);break}case"suback":{delete t.outgoing[h],t.messageIdProvider.deallocate(h);let a=l.granted;for(let c=0;c<a.length;c++)if(a[c]&128){let d=t.messageIdToTopic[h];d&&d.forEach(g=>{delete t._resubscribeTopics[g]})}delete t.messageIdToTopic[h],t._invokeStoreProcessingQueue(),s(null,l);break}case"unsuback":{delete t.outgoing[h],t.messageIdProvider.deallocate(h),t._invokeStoreProcessingQueue(),s(null);break}default:t.emit("error",new Error("unrecognized packet type"))}t.disconnecting&&Object.keys(t.outgoing).length===0&&t.emit("outgoingEmpty")};e.default=i}),El=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=vr(),t=Vr(),l=(h,o)=>{let{options:r}=h,s=r.protocolVersion,n=s===5?o.reasonCode:o.returnCode;if(s!==5){let a=new i.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,n);h.emit("error",a);return}h.handleAuth(o,(a,c)=>{if(a){h.emit("error",a);return}if(n===24)h.reconnecting=!1,h._sendPacket(c);else{let d=new i.ErrorWithReasonCode(`Connection refused: ${t.ReasonCodes[n]}`,n);h.emit("error",d)}})};e.default=l}),Sl=me(e=>{var b,m,y,I,U,k,T,D,F,R,O,M,W,G,ee,E,q,Z,K,ge,ne,$,be,re,ve,S,yn,ce,Ee,ue,x,_,Is,le,X,J,he,Lt,C,Nt,N,wn,Q,Rr,H,Pr,_e,Ne,Re,vn,u,mr,v;ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var i=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,t=new Set,l=typeof Ke=="object"&&Ke?Ke:{},h=(A,w,P,V)=>{typeof l.emitWarning=="function"?l.emitWarning(A,w,P,V):console.error(`[${P}] ${w}: ${A}`)},o=globalThis.AbortController,r=globalThis.AbortSignal;if(typeof o>"u"){r=class{constructor(){Le(this,"onabort");Le(this,"_onabort",[]);Le(this,"reason");Le(this,"aborted",!1)}addEventListener(P,V){this._onabort.push(V)}},o=class{constructor(){Le(this,"signal",new r);w()}abort(P){var V,fe;if(!this.signal.aborted){this.signal.reason=P,this.signal.aborted=!0;for(let ie of this.signal._onabort)ie(P);(fe=(V=this.signal).onabort)==null||fe.call(V,P)}}};let A=((b=l.env)==null?void 0:b.LRU_CACHE_IGNORE_AC_WARNING)!=="1",w=()=>{A&&(A=!1,h("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",w))}}var s=A=>!t.has(A),n=A=>A&&A===Math.floor(A)&&A>0&&isFinite(A),a=A=>n(A)?A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(A){super(A),this.fill(0)}},d=(m=class{constructor(w,P){Le(this,"heap");Le(this,"length");if(!B(m,y))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new P(w),this.length=0}static create(w){let P=a(w);if(!P)return[];Te(m,y,!0);let V=new m(w,P);return Te(m,y,!1),V}push(w){this.heap[this.length++]=w}pop(){return this.heap[--this.length]}},y=new WeakMap,Ce(m,y,!1),m),g=(v=class{constructor(w){Ce(this,S);Ce(this,_);Ce(this,he);Ce(this,C);Ce(this,N);Ce(this,Q);Ce(this,H);Ce(this,_e);Ce(this,Re);Ce(this,u);Ce(this,I,void 0);Ce(this,U,void 0);Ce(this,k,void 0);Ce(this,T,void 0);Ce(this,D,void 0);Le(this,"ttl");Le(this,"ttlResolution");Le(this,"ttlAutopurge");Le(this,"updateAgeOnGet");Le(this,"updateAgeOnHas");Le(this,"allowStale");Le(this,"noDisposeOnSet");Le(this,"noUpdateTTL");Le(this,"maxEntrySize");Le(this,"sizeCalculation");Le(this,"noDeleteOnFetchRejection");Le(this,"noDeleteOnStaleGet");Le(this,"allowStaleOnFetchAbort");Le(this,"allowStaleOnFetchRejection");Le(this,"ignoreFetchAbort");Ce(this,F,void 0);Ce(this,R,void 0);Ce(this,O,void 0);Ce(this,M,void 0);Ce(this,W,void 0);Ce(this,G,void 0);Ce(this,ee,void 0);Ce(this,E,void 0);Ce(this,q,void 0);Ce(this,Z,void 0);Ce(this,K,void 0);Ce(this,ge,void 0);Ce(this,ne,void 0);Ce(this,$,void 0);Ce(this,be,void 0);Ce(this,re,void 0);Ce(this,ve,void 0);Ce(this,ce,()=>{});Ce(this,Ee,()=>{});Ce(this,ue,()=>{});Ce(this,x,()=>!1);Ce(this,le,w=>{});Ce(this,X,(w,P,V)=>{});Ce(this,J,(w,P,V,fe)=>{if(V||fe)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:P=0,ttl:V,ttlResolution:fe=1,ttlAutopurge:ie,updateAgeOnGet:ye,updateAgeOnHas:Se,allowStale:ke,dispose:qe,disposeAfter:rt,noDisposeOnSet:xe,noUpdateTTL:it,maxSize:He=0,maxEntrySize:ze=0,sizeCalculation:Ve,fetchMethod:Xe,noDeleteOnFetchRejection:Oe,noDeleteOnStaleGet:We,allowStaleOnFetchRejection:nt,allowStaleOnFetchAbort:Ge,ignoreFetchAbort:ct}=w;if(P!==0&&!n(P))throw new TypeError("max option must be a nonnegative integer");let Ft=P?a(P):Array;if(!Ft)throw new Error("invalid max value: "+P);if(Te(this,I,P),Te(this,U,He),this.maxEntrySize=ze||B(this,U),this.sizeCalculation=Ve,this.sizeCalculation){if(!B(this,U)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Xe!==void 0&&typeof Xe!="function")throw new TypeError("fetchMethod must be a function if specified");if(Te(this,D,Xe),Te(this,re,!!Xe),Te(this,O,new Map),Te(this,M,new Array(P).fill(void 0)),Te(this,W,new Array(P).fill(void 0)),Te(this,G,new Ft(P)),Te(this,ee,new Ft(P)),Te(this,E,0),Te(this,q,0),Te(this,Z,d.create(P)),Te(this,F,0),Te(this,R,0),typeof qe=="function"&&Te(this,k,qe),typeof rt=="function"?(Te(this,T,rt),Te(this,K,[])):(Te(this,T,void 0),Te(this,K,void 0)),Te(this,be,!!B(this,k)),Te(this,ve,!!B(this,T)),this.noDisposeOnSet=!!xe,this.noUpdateTTL=!!it,this.noDeleteOnFetchRejection=!!Oe,this.allowStaleOnFetchRejection=!!nt,this.allowStaleOnFetchAbort=!!Ge,this.ignoreFetchAbort=!!ct,this.maxEntrySize!==0){if(B(this,U)!==0&&!n(B(this,U)))throw new TypeError("maxSize must be a positive integer if specified");if(!n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Ie(this,_,Is).call(this)}if(this.allowStale=!!ke,this.noDeleteOnStaleGet=!!We,this.updateAgeOnGet=!!ye,this.updateAgeOnHas=!!Se,this.ttlResolution=n(fe)||fe===0?fe:1,this.ttlAutopurge=!!ie,this.ttl=V||0,this.ttl){if(!n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Ie(this,S,yn).call(this)}if(B(this,I)===0&&this.ttl===0&&B(this,U)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!B(this,I)&&!B(this,U)){let Mt="LRU_CACHE_UNBOUNDED";s(Mt)&&(t.add(Mt),h("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Mt,v))}}static unsafeExposeInternals(w){return{starts:B(w,ne),ttls:B(w,$),sizes:B(w,ge),keyMap:B(w,O),keyList:B(w,M),valList:B(w,W),next:B(w,G),prev:B(w,ee),get head(){return B(w,E)},get tail(){return B(w,q)},free:B(w,Z),isBackgroundFetch:P=>{var V;return Ie(V=w,_e,Ne).call(V,P)},backgroundFetch:(P,V,fe,ie)=>{var ye;return Ie(ye=w,H,Pr).call(ye,P,V,fe,ie)},moveToTail:P=>{var V;return Ie(V=w,u,mr).call(V,P)},indexes:P=>{var V;return Ie(V=w,he,Lt).call(V,P)},rindexes:P=>{var V;return Ie(V=w,C,Nt).call(V,P)},isStale:P=>{var V;return B(V=w,x).call(V,P)}}}get max(){return B(this,I)}get maxSize(){return B(this,U)}get calculatedSize(){return B(this,R)}get size(){return B(this,F)}get fetchMethod(){return B(this,D)}get dispose(){return B(this,k)}get disposeAfter(){return B(this,T)}getRemainingTTL(w){return B(this,O).has(w)?1/0:0}*entries(){for(let w of Ie(this,he,Lt).call(this))B(this,W)[w]!==void 0&&B(this,M)[w]!==void 0&&!Ie(this,_e,Ne).call(this,B(this,W)[w])&&(yield[B(this,M)[w],B(this,W)[w]])}*rentries(){for(let w of Ie(this,C,Nt).call(this))B(this,W)[w]!==void 0&&B(this,M)[w]!==void 0&&!Ie(this,_e,Ne).call(this,B(this,W)[w])&&(yield[B(this,M)[w],B(this,W)[w]])}*keys(){for(let w of Ie(this,he,Lt).call(this)){let P=B(this,M)[w];P!==void 0&&!Ie(this,_e,Ne).call(this,B(this,W)[w])&&(yield P)}}*rkeys(){for(let w of Ie(this,C,Nt).call(this)){let P=B(this,M)[w];P!==void 0&&!Ie(this,_e,Ne).call(this,B(this,W)[w])&&(yield P)}}*values(){for(let w of Ie(this,he,Lt).call(this))B(this,W)[w]!==void 0&&!Ie(this,_e,Ne).call(this,B(this,W)[w])&&(yield B(this,W)[w])}*rvalues(){for(let w of Ie(this,C,Nt).call(this))B(this,W)[w]!==void 0&&!Ie(this,_e,Ne).call(this,B(this,W)[w])&&(yield B(this,W)[w])}[Symbol.iterator](){return this.entries()}find(w,P={}){for(let V of Ie(this,he,Lt).call(this)){let fe=B(this,W)[V],ie=Ie(this,_e,Ne).call(this,fe)?fe.__staleWhileFetching:fe;if(ie!==void 0&&w(ie,B(this,M)[V],this))return this.get(B(this,M)[V],P)}}forEach(w,P=this){for(let V of Ie(this,he,Lt).call(this)){let fe=B(this,W)[V],ie=Ie(this,_e,Ne).call(this,fe)?fe.__staleWhileFetching:fe;ie!==void 0&&w.call(P,ie,B(this,M)[V],this)}}rforEach(w,P=this){for(let V of Ie(this,C,Nt).call(this)){let fe=B(this,W)[V],ie=Ie(this,_e,Ne).call(this,fe)?fe.__staleWhileFetching:fe;ie!==void 0&&w.call(P,ie,B(this,M)[V],this)}}purgeStale(){let w=!1;for(let P of Ie(this,C,Nt).call(this,{allowStale:!0}))B(this,x).call(this,P)&&(this.delete(B(this,M)[P]),w=!0);return w}dump(){let w=[];for(let P of Ie(this,he,Lt).call(this,{allowStale:!0})){let V=B(this,M)[P],fe=B(this,W)[P],ie=Ie(this,_e,Ne).call(this,fe)?fe.__staleWhileFetching:fe;if(ie===void 0||V===void 0)continue;let ye={value:ie};if(B(this,$)&&B(this,ne)){ye.ttl=B(this,$)[P];let Se=i.now()-B(this,ne)[P];ye.start=Math.floor(Date.now()-Se)}B(this,ge)&&(ye.size=B(this,ge)[P]),w.unshift([V,ye])}return w}load(w){this.clear();for(let[P,V]of w){if(V.start){let fe=Date.now()-V.start;V.start=i.now()-fe}this.set(P,V.value,V)}}set(w,P,V={}){var it,He,ze,Ve,Xe;if(P===void 0)return this.delete(w),this;let{ttl:fe=this.ttl,start:ie,noDisposeOnSet:ye=this.noDisposeOnSet,sizeCalculation:Se=this.sizeCalculation,status:ke}=V,{noUpdateTTL:qe=this.noUpdateTTL}=V,rt=B(this,J).call(this,w,P,V.size||0,Se);if(this.maxEntrySize&&rt>this.maxEntrySize)return ke&&(ke.set="miss",ke.maxEntrySizeExceeded=!0),this.delete(w),this;let xe=B(this,F)===0?void 0:B(this,O).get(w);if(xe===void 0)xe=B(this,F)===0?B(this,q):B(this,Z).length!==0?B(this,Z).pop():B(this,F)===B(this,I)?Ie(this,Q,Rr).call(this,!1):B(this,F),B(this,M)[xe]=w,B(this,W)[xe]=P,B(this,O).set(w,xe),B(this,G)[B(this,q)]=xe,B(this,ee)[xe]=B(this,q),Te(this,q,xe),_r(this,F)._++,B(this,X).call(this,xe,rt,ke),ke&&(ke.set="add"),qe=!1;else{Ie(this,u,mr).call(this,xe);let Oe=B(this,W)[xe];if(P!==Oe){if(B(this,re)&&Ie(this,_e,Ne).call(this,Oe)){Oe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:We}=Oe;We!==void 0&&!ye&&(B(this,be)&&((it=B(this,k))==null||it.call(this,We,w,"set")),B(this,ve)&&((He=B(this,K))==null||He.push([We,w,"set"])))}else ye||(B(this,be)&&((ze=B(this,k))==null||ze.call(this,Oe,w,"set")),B(this,ve)&&((Ve=B(this,K))==null||Ve.push([Oe,w,"set"])));if(B(this,le).call(this,xe),B(this,X).call(this,xe,rt,ke),B(this,W)[xe]=P,ke){ke.set="replace";let We=Oe&&Ie(this,_e,Ne).call(this,Oe)?Oe.__staleWhileFetching:Oe;We!==void 0&&(ke.oldValue=We)}}else ke&&(ke.set="update")}if(fe!==0&&!B(this,$)&&Ie(this,S,yn).call(this),B(this,$)&&(qe||B(this,ue).call(this,xe,fe,ie),ke&&B(this,Ee).call(this,ke,xe)),!ye&&B(this,ve)&&B(this,K)){let Oe=B(this,K),We;for(;We=Oe==null?void 0:Oe.shift();)(Xe=B(this,T))==null||Xe.call(this,...We)}return this}pop(){var w;try{for(;B(this,F);){let P=B(this,W)[B(this,E)];if(Ie(this,Q,Rr).call(this,!0),Ie(this,_e,Ne).call(this,P)){if(P.__staleWhileFetching)return P.__staleWhileFetching}else if(P!==void 0)return P}}finally{if(B(this,ve)&&B(this,K)){let P=B(this,K),V;for(;V=P==null?void 0:P.shift();)(w=B(this,T))==null||w.call(this,...V)}}}has(w,P={}){let{updateAgeOnHas:V=this.updateAgeOnHas,status:fe}=P,ie=B(this,O).get(w);if(ie!==void 0){let ye=B(this,W)[ie];if(Ie(this,_e,Ne).call(this,ye)&&ye.__staleWhileFetching===void 0)return!1;if(B(this,x).call(this,ie))fe&&(fe.has="stale",B(this,Ee).call(this,fe,ie));else return V&&B(this,ce).call(this,ie),fe&&(fe.has="hit",B(this,Ee).call(this,fe,ie)),!0}else fe&&(fe.has="miss");return!1}peek(w,P={}){let{allowStale:V=this.allowStale}=P,fe=B(this,O).get(w);if(fe!==void 0&&(V||!B(this,x).call(this,fe))){let ie=B(this,W)[fe];return Ie(this,_e,Ne).call(this,ie)?ie.__staleWhileFetching:ie}}async fetch(w,P={}){let{allowStale:V=this.allowStale,updateAgeOnGet:fe=this.updateAgeOnGet,noDeleteOnStaleGet:ie=this.noDeleteOnStaleGet,ttl:ye=this.ttl,noDisposeOnSet:Se=this.noDisposeOnSet,size:ke=0,sizeCalculation:qe=this.sizeCalculation,noUpdateTTL:rt=this.noUpdateTTL,noDeleteOnFetchRejection:xe=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:it=this.allowStaleOnFetchRejection,ignoreFetchAbort:He=this.ignoreFetchAbort,allowStaleOnFetchAbort:ze=this.allowStaleOnFetchAbort,context:Ve,forceRefresh:Xe=!1,status:Oe,signal:We}=P;if(!B(this,re))return Oe&&(Oe.fetch="get"),this.get(w,{allowStale:V,updateAgeOnGet:fe,noDeleteOnStaleGet:ie,status:Oe});let nt={allowStale:V,updateAgeOnGet:fe,noDeleteOnStaleGet:ie,ttl:ye,noDisposeOnSet:Se,size:ke,sizeCalculation:qe,noUpdateTTL:rt,noDeleteOnFetchRejection:xe,allowStaleOnFetchRejection:it,allowStaleOnFetchAbort:ze,ignoreFetchAbort:He,status:Oe,signal:We},Ge=B(this,O).get(w);if(Ge===void 0){Oe&&(Oe.fetch="miss");let ct=Ie(this,H,Pr).call(this,w,Ge,nt,Ve);return ct.__returned=ct}else{let ct=B(this,W)[Ge];if(Ie(this,_e,Ne).call(this,ct)){let Vn=V&&ct.__staleWhileFetching!==void 0;return Oe&&(Oe.fetch="inflight",Vn&&(Oe.returnedStale=!0)),Vn?ct.__staleWhileFetching:ct.__returned=ct}let Ft=B(this,x).call(this,Ge);if(!Xe&&!Ft)return Oe&&(Oe.fetch="hit"),Ie(this,u,mr).call(this,Ge),fe&&B(this,ce).call(this,Ge),Oe&&B(this,Ee).call(this,Oe,Ge),ct;let Mt=Ie(this,H,Pr).call(this,w,Ge,nt,Ve),qn=Mt.__staleWhileFetching!==void 0&&V;return Oe&&(Oe.fetch=Ft?"stale":"refresh",qn&&Ft&&(Oe.returnedStale=!0)),qn?Mt.__staleWhileFetching:Mt.__returned=Mt}}get(w,P={}){let{allowStale:V=this.allowStale,updateAgeOnGet:fe=this.updateAgeOnGet,noDeleteOnStaleGet:ie=this.noDeleteOnStaleGet,status:ye}=P,Se=B(this,O).get(w);if(Se!==void 0){let ke=B(this,W)[Se],qe=Ie(this,_e,Ne).call(this,ke);return ye&&B(this,Ee).call(this,ye,Se),B(this,x).call(this,Se)?(ye&&(ye.get="stale"),qe?(ye&&V&&ke.__staleWhileFetching!==void 0&&(ye.returnedStale=!0),V?ke.__staleWhileFetching:void 0):(ie||this.delete(w),ye&&V&&(ye.returnedStale=!0),V?ke:void 0)):(ye&&(ye.get="hit"),qe?ke.__staleWhileFetching:(Ie(this,u,mr).call(this,Se),fe&&B(this,ce).call(this,Se),ke))}else ye&&(ye.get="miss")}delete(w){var V,fe,ie,ye;let P=!1;if(B(this,F)!==0){let Se=B(this,O).get(w);if(Se!==void 0)if(P=!0,B(this,F)===1)this.clear();else{B(this,le).call(this,Se);let ke=B(this,W)[Se];Ie(this,_e,Ne).call(this,ke)?ke.__abortController.abort(new Error("deleted")):(B(this,be)||B(this,ve))&&(B(this,be)&&((V=B(this,k))==null||V.call(this,ke,w,"delete")),B(this,ve)&&((fe=B(this,K))==null||fe.push([ke,w,"delete"]))),B(this,O).delete(w),B(this,M)[Se]=void 0,B(this,W)[Se]=void 0,Se===B(this,q)?Te(this,q,B(this,ee)[Se]):Se===B(this,E)?Te(this,E,B(this,G)[Se]):(B(this,G)[B(this,ee)[Se]]=B(this,G)[Se],B(this,ee)[B(this,G)[Se]]=B(this,ee)[Se]),_r(this,F)._--,B(this,Z).push(Se)}}if(B(this,ve)&&((ie=B(this,K))!=null&&ie.length)){let Se=B(this,K),ke;for(;ke=Se==null?void 0:Se.shift();)(ye=B(this,T))==null||ye.call(this,...ke)}return P}clear(){var w,P,V;for(let fe of Ie(this,C,Nt).call(this,{allowStale:!0})){let ie=B(this,W)[fe];if(Ie(this,_e,Ne).call(this,ie))ie.__abortController.abort(new Error("deleted"));else{let ye=B(this,M)[fe];B(this,be)&&((w=B(this,k))==null||w.call(this,ie,ye,"delete")),B(this,ve)&&((P=B(this,K))==null||P.push([ie,ye,"delete"]))}}if(B(this,O).clear(),B(this,W).fill(void 0),B(this,M).fill(void 0),B(this,$)&&B(this,ne)&&(B(this,$).fill(0),B(this,ne).fill(0)),B(this,ge)&&B(this,ge).fill(0),Te(this,E,0),Te(this,q,0),B(this,Z).length=0,Te(this,R,0),Te(this,F,0),B(this,ve)&&B(this,K)){let fe=B(this,K),ie;for(;ie=fe==null?void 0:fe.shift();)(V=B(this,T))==null||V.call(this,...ie)}}},I=new WeakMap,U=new WeakMap,k=new WeakMap,T=new WeakMap,D=new WeakMap,F=new WeakMap,R=new WeakMap,O=new WeakMap,M=new WeakMap,W=new WeakMap,G=new WeakMap,ee=new WeakMap,E=new WeakMap,q=new WeakMap,Z=new WeakMap,K=new WeakMap,ge=new WeakMap,ne=new WeakMap,$=new WeakMap,be=new WeakMap,re=new WeakMap,ve=new WeakMap,S=new WeakSet,yn=function(){let w=new c(B(this,I)),P=new c(B(this,I));Te(this,$,w),Te(this,ne,P),Te(this,ue,(ie,ye,Se=i.now())=>{if(P[ie]=ye!==0?Se:0,w[ie]=ye,ye!==0&&this.ttlAutopurge){let ke=setTimeout(()=>{B(this,x).call(this,ie)&&this.delete(B(this,M)[ie])},ye+1);ke.unref&&ke.unref()}}),Te(this,ce,ie=>{P[ie]=w[ie]!==0?i.now():0}),Te(this,Ee,(ie,ye)=>{if(w[ye]){let Se=w[ye],ke=P[ye];ie.ttl=Se,ie.start=ke,ie.now=V||fe();let qe=ie.now-ke;ie.remainingTTL=Se-qe}});let V=0,fe=()=>{let ie=i.now();if(this.ttlResolution>0){V=ie;let ye=setTimeout(()=>V=0,this.ttlResolution);ye.unref&&ye.unref()}return ie};this.getRemainingTTL=ie=>{let ye=B(this,O).get(ie);if(ye===void 0)return 0;let Se=w[ye],ke=P[ye];if(Se===0||ke===0)return 1/0;let qe=(V||fe())-ke;return Se-qe},Te(this,x,ie=>w[ie]!==0&&P[ie]!==0&&(V||fe())-P[ie]>w[ie])},ce=new WeakMap,Ee=new WeakMap,ue=new WeakMap,x=new WeakMap,_=new WeakSet,Is=function(){let w=new c(B(this,I));Te(this,R,0),Te(this,ge,w),Te(this,le,P=>{Te(this,R,B(this,R)-w[P]),w[P]=0}),Te(this,J,(P,V,fe,ie)=>{if(Ie(this,_e,Ne).call(this,V))return 0;if(!n(fe))if(ie){if(typeof ie!="function")throw new TypeError("sizeCalculation must be a function");if(fe=ie(V,P),!n(fe))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return fe}),Te(this,X,(P,V,fe)=>{if(w[P]=V,B(this,U)){let ie=B(this,U)-w[P];for(;B(this,R)>ie;)Ie(this,Q,Rr).call(this,!0)}Te(this,R,B(this,R)+w[P]),fe&&(fe.entrySize=V,fe.totalCalculatedSize=B(this,R))})},le=new WeakMap,X=new WeakMap,J=new WeakMap,he=new WeakSet,Lt=function*({allowStale:w=this.allowStale}={}){if(B(this,F))for(let P=B(this,q);!(!Ie(this,N,wn).call(this,P)||((w||!B(this,x).call(this,P))&&(yield P),P===B(this,E)));)P=B(this,ee)[P]},C=new WeakSet,Nt=function*({allowStale:w=this.allowStale}={}){if(B(this,F))for(let P=B(this,E);!(!Ie(this,N,wn).call(this,P)||((w||!B(this,x).call(this,P))&&(yield P),P===B(this,q)));)P=B(this,G)[P]},N=new WeakSet,wn=function(w){return w!==void 0&&B(this,O).get(B(this,M)[w])===w},Q=new WeakSet,Rr=function(w){var ie,ye;let P=B(this,E),V=B(this,M)[P],fe=B(this,W)[P];return B(this,re)&&Ie(this,_e,Ne).call(this,fe)?fe.__abortController.abort(new Error("evicted")):(B(this,be)||B(this,ve))&&(B(this,be)&&((ie=B(this,k))==null||ie.call(this,fe,V,"evict")),B(this,ve)&&((ye=B(this,K))==null||ye.push([fe,V,"evict"]))),B(this,le).call(this,P),w&&(B(this,M)[P]=void 0,B(this,W)[P]=void 0,B(this,Z).push(P)),B(this,F)===1?(Te(this,E,Te(this,q,0)),B(this,Z).length=0):Te(this,E,B(this,G)[P]),B(this,O).delete(V),_r(this,F)._--,P},H=new WeakSet,Pr=function(w,P,V,fe){let ie=P===void 0?void 0:B(this,W)[P];if(Ie(this,_e,Ne).call(this,ie))return ie;let ye=new o,{signal:Se}=V;Se==null||Se.addEventListener("abort",()=>ye.abort(Se.reason),{signal:ye.signal});let ke={signal:ye.signal,options:V,context:fe},qe=(Ve,Xe=!1)=>{let{aborted:Oe}=ye.signal,We=V.ignoreFetchAbort&&Ve!==void 0;if(V.status&&(Oe&&!Xe?(V.status.fetchAborted=!0,V.status.fetchError=ye.signal.reason,We&&(V.status.fetchAbortIgnored=!0)):V.status.fetchResolved=!0),Oe&&!We&&!Xe)return xe(ye.signal.reason);let nt=He;return B(this,W)[P]===He&&(Ve===void 0?nt.__staleWhileFetching?B(this,W)[P]=nt.__staleWhileFetching:this.delete(w):(V.status&&(V.status.fetchUpdated=!0),this.set(w,Ve,ke.options))),Ve},rt=Ve=>(V.status&&(V.status.fetchRejected=!0,V.status.fetchError=Ve),xe(Ve)),xe=Ve=>{let{aborted:Xe}=ye.signal,Oe=Xe&&V.allowStaleOnFetchAbort,We=Oe||V.allowStaleOnFetchRejection,nt=We||V.noDeleteOnFetchRejection,Ge=He;if(B(this,W)[P]===He&&(!nt||Ge.__staleWhileFetching===void 0?this.delete(w):Oe||(B(this,W)[P]=Ge.__staleWhileFetching)),We)return V.status&&Ge.__staleWhileFetching!==void 0&&(V.status.returnedStale=!0),Ge.__staleWhileFetching;if(Ge.__returned===Ge)throw Ve},it=(Ve,Xe)=>{var We;let Oe=(We=B(this,D))==null?void 0:We.call(this,w,ie,ke);Oe&&Oe instanceof Promise&&Oe.then(nt=>Ve(nt===void 0?void 0:nt),Xe),ye.signal.addEventListener("abort",()=>{(!V.ignoreFetchAbort||V.allowStaleOnFetchAbort)&&(Ve(void 0),V.allowStaleOnFetchAbort&&(Ve=nt=>qe(nt,!0)))})};V.status&&(V.status.fetchDispatched=!0);let He=new Promise(it).then(qe,rt),ze=Object.assign(He,{__abortController:ye,__staleWhileFetching:ie,__returned:void 0});return P===void 0?(this.set(w,ze,{...ke.options,status:void 0}),P=B(this,O).get(w)):B(this,W)[P]=ze,ze},_e=new WeakSet,Ne=function(w){if(!B(this,re))return!1;let P=w;return!!P&&P instanceof Promise&&P.hasOwnProperty("__staleWhileFetching")&&P.__abortController instanceof o},Re=new WeakSet,vn=function(w,P){B(this,ee)[P]=w,B(this,G)[w]=P},u=new WeakSet,mr=function(w){w!==B(this,q)&&(w===B(this,E)?Te(this,E,B(this,G)[w]):Ie(this,Re,vn).call(this,B(this,ee)[w],B(this,G)[w]),Ie(this,Re,vn).call(this,B(this,q),w),Te(this,q,w))},v);e.LRUCache=g}),Bt=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var i=class{constructor(h=0){this.iteratorType=h}equals(h){return this.o===h.o}};e.ContainerIterator=i;var t=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=t;var l=class extends t{};e.Container=l}),Al=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Bt(),t=class extends i.Base{constructor(h=[]){super(),this.S=[];let o=this;h.forEach(function(r){o.push(r)})}clear(){this.i=0,this.S=[]}push(h){return this.S.push(h),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},l=t;e.default=l}),Il=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Bt(),t=class extends i.Base{constructor(h=[]){super(),this.j=0,this.q=[];let o=this;h.forEach(function(r){o.push(r)})}clear(){this.q=[],this.i=this.j=0}push(h){let o=this.q.length;if(this.j/o>.5&&this.j+this.i>=o&&o>4096){let r=this.i;for(let s=0;s<r;++s)this.q[s]=this.q[this.j+s];this.j=0,this.q[this.i]=h}else this.q[this.j+this.i]=h;return++this.i}pop(){if(this.i===0)return;let h=this.q[this.j++];return this.i-=1,h}front(){if(this.i!==0)return this.q[this.j]}},l=t;e.default=l}),Tl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Bt(),t=class extends i.Base{constructor(h=[],o=function(s,n){return s>n?-1:s<n?1:0},r=!0){if(super(),this.v=o,Array.isArray(h))this.C=r?[...h]:h;else{this.C=[];let n=this;h.forEach(function(a){n.C.push(a)})}this.i=this.C.length;let s=this.i>>1;for(let n=this.i-1>>1;n>=0;--n)this.k(n,s)}m(h){let o=this.C[h];for(;h>0;){let r=h-1>>1,s=this.C[r];if(this.v(s,o)<=0)break;this.C[h]=s,h=r}this.C[h]=o}k(h,o){let r=this.C[h];for(;h<o;){let s=h<<1|1,n=s+1,a=this.C[s];if(n<this.i&&this.v(a,this.C[n])>0&&(s=n,a=this.C[n]),this.v(a,r)>=0)break;this.C[h]=a,h=s}this.C[h]=r}clear(){this.i=0,this.C.length=0}push(h){this.C.push(h),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let h=this.C[0],o=this.C.pop();return this.i-=1,this.i&&(this.C[0]=o,this.k(0,this.i>>1)),h}top(){return this.C[0]}find(h){return this.C.indexOf(h)>=0}remove(h){let o=this.C.indexOf(h);return o<0?!1:(o===0?this.pop():o===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(o,1,this.C.pop()),this.i-=1,this.m(o),this.k(o,this.i>>1)),!0)}updateItem(h){let o=this.C.indexOf(h);return o<0?!1:(this.m(o),this.k(o,this.i>>1),!0)}toArray(){return[...this.C]}},l=t;e.default=l}),Fn=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Bt(),t=class extends i.Container{},l=t;e.default=l}),xt=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=i;function i(){throw new RangeError("Iterator access denied!")}}),Ts=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var i=Bt(),t=xt(),l=class extends i.ContainerIterator{constructor(h,o){super(o),this.o=h,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,t.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,t.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,t.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,t.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(h){this.container.setElementByPos(this.o,h)}};e.RandomIterator=l}),kl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=l(Fn()),t=Ts();function l(s){return s&&s.t?s:{default:s}}var h=class ks extends t.RandomIterator{constructor(n,a,c){super(n,c),this.container=a}copy(){return new ks(this.o,this.container,this.iteratorType)}},o=class extends i.default{constructor(s=[],n=!0){if(super(),Array.isArray(s))this.J=n?[...s]:s,this.i=s.length;else{this.J=[];let a=this;s.forEach(function(c){a.pushBack(c)})}}clear(){this.i=0,this.J.length=0}begin(){return new h(0,this)}end(){return new h(this.i,this)}rBegin(){return new h(this.i-1,this,1)}rEnd(){return new h(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let n=0;for(let a=0;a<this.i;++a)this.J[a]!==s&&(this.J[n++]=this.J[a]);return this.i=this.J.length=n,this.i}eraseElementByIterator(s){let n=s.o;return s=s.next(),this.eraseElementByPos(n),s}pushBack(s){return this.J.push(s),this.i+=1,this.i}popBack(){if(this.i!==0)return this.i-=1,this.J.pop()}setElementByPos(s,n){if(s<0||s>this.i-1)throw new RangeError;this.J[s]=n}insert(s,n,a=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(a).fill(n)),this.i+=a,this.i}find(s){for(let n=0;n<this.i;++n)if(this.J[n]===s)return new h(n,this);return this.end()}reverse(){this.J.reverse()}unique(){let s=1;for(let n=1;n<this.i;++n)this.J[n]!==this.J[n-1]&&(this.J[s++]=this.J[n]);return this.i=this.J.length=s,this.i}sort(s){this.J.sort(s)}forEach(s){for(let n=0;n<this.i;++n)s(this.J[n],n,this)}[Symbol.iterator](){return(function*(){yield*this.J}).bind(this)()}},r=o;e.default=r}),Ol=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Fn()),t=Bt(),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class Os extends t.ContainerIterator{constructor(a,c,d,g){super(g),this.o=a,this.h=c,this.container=d,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.l}set pointer(a){this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.l=a}copy(){return new Os(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.default{constructor(n=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let a=this;n.forEach(function(c){a.pushBack(c)})}V(n){let{L:a,B:c}=n;a.B=c,c.L=a,n===this.p&&(this.p=c),n===this._&&(this._=a),this.i-=1}G(n,a){let c=a.B,d={l:n,L:a,B:c};a.B=d,c.L=d,a===this.h&&(this.p=d),c===this.h&&(this._=d),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(n){if(n<0||n>this.i-1)throw new RangeError;let a=this.p;for(;n--;)a=a.B;return a.l}eraseElementByPos(n){if(n<0||n>this.i-1)throw new RangeError;let a=this.p;for(;n--;)a=a.B;return this.V(a),this.i}eraseElementByValue(n){let a=this.p;for(;a!==this.h;)a.l===n&&this.V(a),a=a.B;return this.i}eraseElementByIterator(n){let a=n.o;return a===this.h&&(0,l.throwIteratorAccessError)(),n=n.next(),this.V(a),n}pushBack(n){return this.G(n,this._),this.i}popBack(){if(this.i===0)return;let n=this._.l;return this.V(this._),n}pushFront(n){return this.G(n,this.h),this.i}popFront(){if(this.i===0)return;let n=this.p.l;return this.V(this.p),n}setElementByPos(n,a){if(n<0||n>this.i-1)throw new RangeError;let c=this.p;for(;n--;)c=c.B;c.l=a}insert(n,a,c=1){if(n<0||n>this.i)throw new RangeError;if(c<=0)return this.i;if(n===0)for(;c--;)this.pushFront(a);else if(n===this.i)for(;c--;)this.pushBack(a);else{let d=this.p;for(let b=1;b<n;++b)d=d.B;let g=d.B;for(this.i+=c;c--;)d.B={l:a,L:d},d.B.L=d,d=d.B;d.B=g,g.L=d}return this.i}find(n){let a=this.p;for(;a!==this.h;){if(a.l===n)return new o(a,this.h,this);a=a.B}return this.end()}reverse(){if(this.i<=1)return;let n=this.p,a=this._,c=0;for(;c<<1<this.i;){let d=n.l;n.l=a.l,a.l=d,n=n.B,a=a.L,c+=1}}unique(){if(this.i<=1)return this.i;let n=this.p;for(;n!==this.h;){let a=n;for(;a.B!==this.h&&a.l===a.B.l;)a=a.B,this.i-=1;n.B=a.B,n.B.L=n,n=n.B}return this.i}sort(n){if(this.i<=1)return;let a=[];this.forEach(function(d){a.push(d)}),a.sort(n);let c=this.p;a.forEach(function(d){c.l=d,c=c.B})}merge(n){let a=this;if(this.i===0)n.forEach(function(c){a.pushBack(c)});else{let c=this.p;n.forEach(function(d){for(;c!==a.h&&c.l<=d;)c=c.B;a.G(d,c.L)})}return this.i}forEach(n){let a=this.p,c=0;for(;a!==this.h;)n(a.l,c++,this),a=a.B}[Symbol.iterator](){return(function*(){if(this.i===0)return;let n=this.p;for(;n!==this.h;)yield n.l,n=n.B}).bind(this)()}},s=r;e.default=s}),Cl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=l(Fn()),t=Ts();function l(s){return s&&s.t?s:{default:s}}var h=class Cs extends t.RandomIterator{constructor(n,a,c){super(n,c),this.container=a}copy(){return new Cs(this.o,this.container,this.iteratorType)}},o=class extends i.default{constructor(s=[],n=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let a=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=n,this.P=Math.max(Math.ceil(a/this.F),1);for(let g=0;g<this.P;++g)this.A.push(new Array(this.F));let c=Math.ceil(a/this.F);this.j=this.R=(this.P>>1)-(c>>1),this.D=this.N=this.F-a%this.F>>1;let d=this;s.forEach(function(g){d.pushBack(g)})}T(){let s=[],n=Math.max(this.P>>1,1);for(let a=0;a<n;++a)s[a]=new Array(this.F);for(let a=this.j;a<this.P;++a)s[s.length]=this.A[a];for(let a=0;a<this.R;++a)s[s.length]=this.A[a];s[s.length]=[...this.A[this.R]],this.j=n,this.R=s.length-1;for(let a=0;a<n;++a)s[s.length]=new Array(this.F);this.A=s,this.P=s.length}O(s){let n=this.D+s+1,a=n%this.F,c=a-1,d=this.j+(n-a)/this.F;return a===0&&(d-=1),d%=this.P,c<0&&(c+=this.F),{curNodeBucketIndex:d,curNodePointerIndex:c}}clear(){this.A=[new Array(this.F)],this.P=1,this.j=this.R=this.i=0,this.D=this.N=this.F>>1}begin(){return new h(0,this)}end(){return new h(this.i,this)}rBegin(){return new h(this.i-1,this,1)}rEnd(){return new h(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N<this.F-1?this.N+=1:this.R<this.P-1?(this.R+=1,this.N=0):(this.R=0,this.N=0),this.R===this.j&&this.N===this.D&&this.T()),this.i+=1,this.A[this.R][this.N]=s,this.i}popBack(){if(this.i===0)return;let s=this.A[this.R][this.N];return this.i!==1&&(this.N>0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.D<this.F-1?this.D+=1:this.j<this.P-1?(this.j+=1,this.D=0):(this.j=0,this.D=0)),this.i-=1,s}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:n,curNodePointerIndex:a}=this.O(s);return this.A[n][a]}setElementByPos(s,n){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:a,curNodePointerIndex:c}=this.O(s);this.A[a][c]=n}insert(s,n,a=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;a--;)this.pushFront(n);else if(s===this.i)for(;a--;)this.pushBack(n);else{let c=[];for(let d=s;d<this.i;++d)c.push(this.getElementByPos(d));this.cut(s-1);for(let d=0;d<a;++d)this.pushBack(n);for(let d=0;d<c.length;++d)this.pushBack(c[d])}return this.i}cut(s){if(s<0)return this.clear(),0;let{curNodeBucketIndex:n,curNodePointerIndex:a}=this.O(s);return this.R=n,this.N=a,this.i=s+1,this.i}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let n=[];for(let c=s+1;c<this.i;++c)n.push(this.getElementByPos(c));this.cut(s),this.popBack();let a=this;n.forEach(function(c){a.pushBack(c)})}return this.i}eraseElementByValue(s){if(this.i===0)return 0;let n=[];for(let c=0;c<this.i;++c){let d=this.getElementByPos(c);d!==s&&n.push(d)}let a=n.length;for(let c=0;c<a;++c)this.setElementByPos(c,n[c]);return this.cut(a-1)}eraseElementByIterator(s){let n=s.o;return this.eraseElementByPos(n),s=s.next(),s}find(s){for(let n=0;n<this.i;++n)if(this.getElementByPos(n)===s)return new h(n,this);return this.end()}reverse(){let s=0,n=this.i-1;for(;s<n;){let a=this.getElementByPos(s);this.setElementByPos(s,this.getElementByPos(n)),this.setElementByPos(n,a),s+=1,n-=1}}unique(){if(this.i<=1)return this.i;let s=1,n=this.getElementByPos(0);for(let a=1;a<this.i;++a){let c=this.getElementByPos(a);c!==n&&(n=c,this.setElementByPos(s++,c))}for(;this.i>s;)this.popBack();return this.i}sort(s){let n=[];for(let a=0;a<this.i;++a)n.push(this.getElementByPos(a));n.sort(s);for(let a=0;a<this.i;++a)this.setElementByPos(a,n[a])}shrinkToFit(){if(this.i===0)return;let s=[];this.forEach(function(n){s.push(n)}),this.P=Math.max(Math.ceil(this.i/this.F),1),this.i=this.j=this.R=this.D=this.N=0,this.A=[];for(let n=0;n<this.P;++n)this.A.push(new Array(this.F));for(let n=0;n<s.length;++n)this.pushBack(s[n])}forEach(s){for(let n=0;n<this.i;++n)s(this.getElementByPos(n),n,this)}[Symbol.iterator](){return(function*(){for(let s=0;s<this.i;++s)yield this.getElementByPos(s)}).bind(this)()}},r=o;e.default=r}),Rl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var i=class{constructor(l,h){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=l,this.l=h}L(){let l=this;if(l.ee===1&&l.tt.tt===l)l=l.W;else if(l.U)for(l=l.U;l.W;)l=l.W;else{let h=l.tt;for(;h.U===l;)l=h,h=l.tt;l=h}return l}B(){let l=this;if(l.W){for(l=l.W;l.U;)l=l.U;return l}else{let h=l.tt;for(;h.W===l;)l=h,h=l.tt;return l.W!==h?h:l}}te(){let l=this.tt,h=this.W,o=h.U;return l.tt===this?l.tt=h:l.U===this?l.U=h:l.W=h,h.tt=l,h.U=this,this.tt=h,this.W=o,o&&(o.tt=this),h}se(){let l=this.tt,h=this.U,o=h.W;return l.tt===this?l.tt=h:l.U===this?l.U=h:l.W=h,h.tt=l,h.W=this,this.tt=h,this.U=o,o&&(o.tt=this),h}};e.TreeNode=i;var t=class extends i{constructor(){super(...arguments),this.rt=1}te(){let l=super.te();return this.ie(),l.ie(),l}se(){let l=super.se();return this.ie(),l.ie(),l}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=t}),Rs=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Rl(),t=Bt(),l=xt(),h=class extends t.Container{constructor(r=function(n,a){return n<a?-1:n>a?1:0},s=!1){super(),this.Y=void 0,this.v=r,s?(this.re=i.TreeNodeEnableIndex,this.M=function(n,a,c){let d=this.ne(n,a,c);if(d){let g=d.tt;for(;g!==this.h;)g.rt+=1,g=g.tt;let b=this.he(d);if(b){let{parentNode:m,grandParent:y,curNode:I}=b;m.ie(),y.ie(),I.ie()}}return this.i},this.V=function(n){let a=this.fe(n);for(;a!==this.h;)a.rt-=1,a=a.tt}):(this.re=i.TreeNode,this.M=function(n,a,c){let d=this.ne(n,a,c);return d&&this.he(d),this.i},this.V=this.fe),this.h=new this.re}X(r,s){let n=this.h;for(;r;){let a=this.v(r.u,s);if(a<0)r=r.W;else if(a>0)n=r,r=r.U;else return r}return n}Z(r,s){let n=this.h;for(;r;)this.v(r.u,s)<=0?r=r.W:(n=r,r=r.U);return n}$(r,s){let n=this.h;for(;r;){let a=this.v(r.u,s);if(a<0)n=r,r=r.W;else if(a>0)r=r.U;else return r}return n}rr(r,s){let n=this.h;for(;r;)this.v(r.u,s)<0?(n=r,r=r.W):r=r.U;return n}ue(r){for(;;){let s=r.tt;if(s===this.h)return;if(r.ee===1){r.ee=0;return}if(r===s.U){let n=s.W;if(n.ee===1)n.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(n.W&&n.W.ee===1){n.ee=s.ee,s.ee=0,n.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else n.U&&n.U.ee===1?(n.ee=1,n.U.ee=0,n.se()):(n.ee=1,r=s)}else{let n=s.U;if(n.ee===1)n.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(n.U&&n.U.ee===1){n.ee=s.ee,s.ee=0,n.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else n.W&&n.W.ee===1?(n.ee=1,n.W.ee=0,n.te()):(n.ee=1,r=s)}}}fe(r){if(this.i===1)return this.clear(),this.h;let s=r;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[r.u,s.u]=[s.u,r.u],[r.l,s.l]=[s.l,r.l],r=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let n=s.tt;return s===n.U?n.U=void 0:n.W=void 0,this.i-=1,this.Y.ee=0,n}oe(r,s){return r===void 0?!1:this.oe(r.U,s)||s(r)?!0:this.oe(r.W,s)}he(r){for(;;){let s=r.tt;if(s.ee===0)return;let n=s.tt;if(s===n.U){let a=n.W;if(a&&a.ee===1){if(a.ee=s.ee=0,n===this.Y)return;n.ee=1,r=n;continue}else if(r===s.W){if(r.ee=0,r.U&&(r.U.tt=s),r.W&&(r.W.tt=n),s.W=r.U,n.U=r.W,r.U=s,r.W=n,n===this.Y)this.Y=r,this.h.tt=r;else{let c=n.tt;c.U===n?c.U=r:c.W=r}return r.tt=n.tt,s.tt=r,n.tt=r,n.ee=1,{parentNode:s,grandParent:n,curNode:r}}else s.ee=0,n===this.Y?this.Y=n.se():n.se(),n.ee=1}else{let a=n.U;if(a&&a.ee===1){if(a.ee=s.ee=0,n===this.Y)return;n.ee=1,r=n;continue}else if(r===s.U){if(r.ee=0,r.U&&(r.U.tt=n),r.W&&(r.W.tt=s),n.W=r.U,s.U=r.W,r.U=n,r.W=s,n===this.Y)this.Y=r,this.h.tt=r;else{let c=n.tt;c.U===n?c.U=r:c.W=r}return r.tt=n.tt,s.tt=r,n.tt=r,n.ee=1,{parentNode:s,grandParent:n,curNode:r}}else s.ee=0,n===this.Y?this.Y=n.te():n.te(),n.ee=1}return}}ne(r,s,n){if(this.Y===void 0){this.i+=1,this.Y=new this.re(r,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let a,c=this.h.U,d=this.v(c.u,r);if(d===0){c.l=s;return}else if(d>0)c.U=new this.re(r,s),c.U.tt=c,a=c.U,this.h.U=a;else{let g=this.h.W,b=this.v(g.u,r);if(b===0){g.l=s;return}else if(b<0)g.W=new this.re(r,s),g.W.tt=g,a=g.W,this.h.W=a;else{if(n!==void 0){let m=n.o;if(m!==this.h){let y=this.v(m.u,r);if(y===0){m.l=s;return}else if(y>0){let I=m.L(),U=this.v(I.u,r);if(U===0){I.l=s;return}else U<0&&(a=new this.re(r,s),I.W===void 0?(I.W=a,a.tt=I):(m.U=a,a.tt=m))}}}if(a===void 0)for(a=this.Y;;){let m=this.v(a.u,r);if(m>0){if(a.U===void 0){a.U=new this.re(r,s),a.U.tt=a,a=a.U;break}a=a.U}else if(m<0){if(a.W===void 0){a.W=new this.re(r,s),a.W.tt=a,a=a.W;break}a=a.W}else{a.l=s;return}}}}return this.i+=1,a}I(r,s){for(;r;){let n=this.v(r.u,s);if(n<0)r=r.W;else if(n>0)r=r.U;else return r}return r||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(r,s){let n=r.o;if(n===this.h&&(0,l.throwIteratorAccessError)(),this.i===1)return n.u=s,!0;if(n===this.h.U)return this.v(n.B().u,s)>0?(n.u=s,!0):!1;if(n===this.h.W)return this.v(n.L().u,s)<0?(n.u=s,!0):!1;let a=n.L().u;if(this.v(a,s)>=0)return!1;let c=n.B().u;return this.v(c,s)<=0?!1:(n.u=s,!0)}eraseElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let s=0,n=this;return this.oe(this.Y,function(a){return r===s?(n.V(a),!0):(s+=1,!1)}),this.i}eraseElementByKey(r){if(this.i===0)return!1;let s=this.I(this.Y,r);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(r){let s=r.o;s===this.h&&(0,l.throwIteratorAccessError)();let n=s.W===void 0;return r.iteratorType===0?n&&r.next():(!n||s.U===void 0)&&r.next(),this.V(s),r}forEach(r){let s=0;for(let n of this)r(n,s++,this)}getElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let s,n=0;for(let a of this){if(n===r){s=a;break}n+=1}return s}getHeight(){if(this.i===0)return 0;let r=function(s){return s?Math.max(r(s.U),r(s.W))+1:0};return r(this.Y)}},o=h;e.default=o}),Ps=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Bt(),t=xt(),l=class extends i.ContainerIterator{constructor(o,r,s){super(s),this.o=o,this.h=r,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,t.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,t.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,t.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,t.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let o=this.o,r=this.h.tt;if(o===this.h)return r?r.rt-1:0;let s=0;for(o.U&&(s+=o.U.rt);o!==r;){let n=o.tt;o===n.W&&(s+=1,n.U&&(s+=n.U.rt)),o=n}return s}},h=l;e.default=h}),Pl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Rs()),t=h(Ps()),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class Bs extends t.default{constructor(a,c,d,g){super(a,c,g),this.container=d}get pointer(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.u}copy(){return new Bs(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.default{constructor(n=[],a,c){super(a,c);let d=this;n.forEach(function(g){d.insert(g)})}*K(n){n!==void 0&&(yield*this.K(n.U),yield n.u,yield*this.K(n.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(n,a){return this.M(n,void 0,a)}find(n){let a=this.I(this.Y,n);return new o(a,this.h,this)}lowerBound(n){let a=this.X(this.Y,n);return new o(a,this.h,this)}upperBound(n){let a=this.Z(this.Y,n);return new o(a,this.h,this)}reverseLowerBound(n){let a=this.$(this.Y,n);return new o(a,this.h,this)}reverseUpperBound(n){let a=this.rr(this.Y,n);return new o(a,this.h,this)}union(n){let a=this;return n.forEach(function(c){a.insert(c)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=r;e.default=s}),Bl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Rs()),t=h(Ps()),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class xs extends t.default{constructor(a,c,d,g){super(a,c,g),this.container=d}get pointer(){this.o===this.h&&(0,l.throwIteratorAccessError)();let a=this;return new Proxy([],{get(c,d){if(d==="0")return a.o.u;if(d==="1")return a.o.l},set(c,d,g){if(d!=="1")throw new TypeError("props must be 1");return a.o.l=g,!0}})}copy(){return new xs(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.default{constructor(n=[],a,c){super(a,c);let d=this;n.forEach(function(g){d.setElement(g[0],g[1])})}*K(n){n!==void 0&&(yield*this.K(n.U),yield[n.u,n.l],yield*this.K(n.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i===0)return;let n=this.h.U;return[n.u,n.l]}back(){if(this.i===0)return;let n=this.h.W;return[n.u,n.l]}lowerBound(n){let a=this.X(this.Y,n);return new o(a,this.h,this)}upperBound(n){let a=this.Z(this.Y,n);return new o(a,this.h,this)}reverseLowerBound(n){let a=this.$(this.Y,n);return new o(a,this.h,this)}reverseUpperBound(n){let a=this.rr(this.Y,n);return new o(a,this.h,this)}setElement(n,a,c){return this.M(n,a,c)}find(n){let a=this.I(this.Y,n);return new o(a,this.h,this)}getElementByKey(n){return this.I(this.Y,n).l}union(n){let a=this;return n.forEach(function(c){a.setElement(c[0],c[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=r;e.default=s}),Ms=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=i;function i(t){let l=typeof t;return l==="object"&&t!==null||l==="function"}}),Us=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var i=Bt(),t=h(Ms()),l=xt();function h(s){return s&&s.t?s:{default:s}}var o=class extends i.ContainerIterator{constructor(s,n,a){super(a),this.o=s,this.h=n,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=o;var r=class extends i.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:n,B:a}=s;n.B=a,a.L=n,s===this.p&&(this.p=a),s===this._&&(this._=n),this.i-=1}M(s,n,a){a===void 0&&(a=(0,t.default)(s));let c;if(a){let d=s[this.HASH_TAG];if(d!==void 0)return this.H[d].l=n,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),c={u:s,l:n,L:this._,B:this.h},this.H.push(c)}else{let d=this.g[s];if(d)return d.l=n,this.i;c={u:s,l:n,L:this._,B:this.h},this.g[s]=c}return this.i===0?(this.p=c,this.h.B=c):this._.B=c,this._=c,this.h.L=c,++this.i}I(s,n){if(n===void 0&&(n=(0,t.default)(s)),n){let a=s[this.HASH_TAG];return a===void 0?this.h:this.H[a]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(n){delete n.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,n){let a;if(n===void 0&&(n=(0,t.default)(s)),n){let c=s[this.HASH_TAG];if(c===void 0)return!1;delete s[this.HASH_TAG],a=this.H[c],delete this.H[c]}else{if(a=this.g[s],a===void 0)return!1;delete this.g[s]}return this.V(a),!0}eraseElementByIterator(s){let n=s.o;return n===this.h&&(0,l.throwIteratorAccessError)(),this.V(n),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let n=this.p;for(;s--;)n=n.B;return this.V(n),this.i}};e.HashContainer=r}),xl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Us(),t=xt(),l=class Ls extends i.HashContainerIterator{constructor(s,n,a,c){super(s,n,c),this.container=a}get pointer(){return this.o===this.h&&(0,t.throwIteratorAccessError)(),this.o.u}copy(){return new Ls(this.o,this.h,this.container,this.iteratorType)}},h=class extends i.HashContainer{constructor(r=[]){super();let s=this;r.forEach(function(n){s.insert(n)})}begin(){return new l(this.p,this.h,this)}end(){return new l(this.h,this.h,this)}rBegin(){return new l(this._,this.h,this,1)}rEnd(){return new l(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(r,s){return this.M(r,void 0,s)}getElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let s=this.p;for(;r--;)s=s.B;return s.u}find(r,s){let n=this.I(r,s);return new l(n,this.h,this)}forEach(r){let s=0,n=this.p;for(;n!==this.h;)r(n.u,s++,this),n=n.B}[Symbol.iterator](){return(function*(){let r=this.p;for(;r!==this.h;)yield r.u,r=r.B}).bind(this)()}},o=h;e.default=o}),Ml=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Us(),t=h(Ms()),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class Ns extends i.HashContainerIterator{constructor(a,c,d,g){super(a,c,g),this.container=d}get pointer(){this.o===this.h&&(0,l.throwIteratorAccessError)();let a=this;return new Proxy([],{get(c,d){if(d==="0")return a.o.u;if(d==="1")return a.o.l},set(c,d,g){if(d!=="1")throw new TypeError("props must be 1");return a.o.l=g,!0}})}copy(){return new Ns(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.HashContainer{constructor(n=[]){super();let a=this;n.forEach(function(c){a.setElement(c[0],c[1])})}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(n,a,c){return this.M(n,a,c)}getElementByKey(n,a){if(a===void 0&&(a=(0,t.default)(n)),a){let d=n[this.HASH_TAG];return d!==void 0?this.H[d].l:void 0}let c=this.g[n];return c?c.l:void 0}getElementByPos(n){if(n<0||n>this.i-1)throw new RangeError;let a=this.p;for(;n--;)a=a.B;return[a.u,a.l]}find(n,a){let c=this.I(n,a);return new o(c,this.h,this)}forEach(n){let a=0,c=this.p;for(;c!==this.h;)n([c.u,c.l],a++,this),c=c.B}[Symbol.iterator](){return(function*(){let n=this.p;for(;n!==this.h;)yield[n.u,n.l],n=n.B}).bind(this)()}},s=r;e.default=s}),Ul=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return h.default}});var i=d(Al()),t=d(Il()),l=d(Tl()),h=d(kl()),o=d(Ol()),r=d(Cl()),s=d(Pl()),n=d(Bl()),a=d(xl()),c=d(Ml());function d(g){return g&&g.t?g:{default:g}}}),Ll=me((e,i)=>{ae(),se(),oe();var t=Ul().OrderedSet,l=Rt()("number-allocator:trace"),h=Rt()("number-allocator:error");function o(s,n){this.low=s,this.high=n}o.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},o.prototype.compare=function(s){return this.low<s.low&&this.high<s.low?-1:s.low<this.low&&s.high<this.low?1:0};function r(s,n){if(!(this instanceof r))return new r(s,n);this.min=s,this.max=n,this.ss=new t([],(a,c)=>a.compare(c)),l("Create"),this.clear()}r.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},r.prototype.alloc=function(){if(this.ss.size()===0)return l("alloc():empty"),null;let s=this.ss.begin(),n=s.pointer.low,a=s.pointer.high,c=n;return c+1<=a?this.ss.updateKeyByIterator(s,new o(n+1,a)):this.ss.eraseElementByPos(0),l("alloc():"+c),c},r.prototype.use=function(s){let n=new o(s,s),a=this.ss.lowerBound(n);if(!a.equals(this.ss.end())){let c=a.pointer.low,d=a.pointer.high;return a.pointer.equals(n)?(this.ss.eraseElementByIterator(a),l("use():"+s),!0):c>s?!1:c===s?(this.ss.updateKeyByIterator(a,new o(c+1,d)),l("use():"+s),!0):d===s?(this.ss.updateKeyByIterator(a,new o(c,d-1)),l("use():"+s),!0):(this.ss.updateKeyByIterator(a,new o(s+1,d)),this.ss.insert(new o(c,s-1)),l("use():"+s),!0)}return l("use():failed"),!1},r.prototype.free=function(s){if(s<this.min||s>this.max){h("free():"+s+" is out of range");return}let n=new o(s,s),a=this.ss.upperBound(n);if(a.equals(this.ss.end())){if(a.equals(this.ss.begin())){this.ss.insert(n);return}a.pre();let c=a.pointer.high;a.pointer.high+1===s?this.ss.updateKeyByIterator(a,new o(c,s)):this.ss.insert(n)}else if(a.equals(this.ss.begin()))if(s+1===a.pointer.low){let c=a.pointer.high;this.ss.updateKeyByIterator(a,new o(s,c))}else this.ss.insert(n);else{let c=a.pointer.low,d=a.pointer.high;a.pre();let g=a.pointer.low;a.pointer.high+1===s?s+1===c?(this.ss.eraseElementByIterator(a),this.ss.updateKeyByIterator(a,new o(g,d))):this.ss.updateKeyByIterator(a,new o(g,s)):s+1===c?(this.ss.eraseElementByIterator(a.next()),this.ss.insert(new o(s,d))):this.ss.insert(n)}l("free():"+s)},r.prototype.clear=function(){l("clear()"),this.ss.clear(),this.ss.insert(new o(this.min,this.max))},r.prototype.intervalCount=function(){return this.ss.size()},r.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},i.exports=r}),js=me((e,i)=>{ae(),se(),oe();var t=Ll();i.exports.NumberAllocator=t}),Nl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=Sl(),t=js(),l=class{constructor(h){h>0&&(this.aliasToTopic=new i.LRUCache({max:h}),this.topicToAlias={},this.numberAllocator=new t.NumberAllocator(1,h),this.max=h,this.length=0)}put(h,o){if(o===0||o>this.max)return!1;let r=this.aliasToTopic.get(o);return r&&delete this.topicToAlias[r],this.aliasToTopic.set(o,h),this.topicToAlias[h]=o,this.numberAllocator.use(o),this.length=this.aliasToTopic.size,!0}getTopicByAlias(h){return this.aliasToTopic.get(h)}getAliasByTopic(h){let o=this.topicToAlias[h];return typeof o<"u"&&this.aliasToTopic.get(o),o}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=l}),jl=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0});var t=Vr(),l=i(Nl()),h=vr(),o=(r,s)=>{r.log("_handleConnack");let{options:n}=r,a=n.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(r.connackTimer),delete r.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){r.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(r.topicAliasSend=new l.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&n.keepalive&&(n.keepalive=s.properties.serverKeepAlive,r._shiftPingInterval()),s.properties.maximumPacketSize&&(n.properties||(n.properties={}),n.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(a===0)r.reconnecting=!1,r._onConnect(s);else if(a>0){let c=new h.ErrorWithReasonCode(`Connection refused: ${t.ReasonCodes[a]}`,a);r.emit("error",c)}};e.default=o}),Dl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=(t,l,h)=>{t.log("handling pubrel packet");let o=typeof h<"u"?h:t.noop,{messageId:r}=l,s={cmd:"pubcomp",messageId:r};t.incomingStore.get(l,(n,a)=>{n?t._sendPacket(s,o):(t.emit("message",a.topic,a.payload,a),t.handleMessage(a,c=>{if(c)return o(c);t.incomingStore.del(a,t.noop),t._sendPacket(s,o)}))})};e.default=i}),Fl=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0});var t=i(_l()),l=i(El()),h=i(jl()),o=i(Vr()),r=i(Dl()),s=(n,a,c)=>{let{options:d}=n;if(d.protocolVersion===5&&d.properties&&d.properties.maximumPacketSize&&d.properties.maximumPacketSize<a.length)return n.emit("error",new Error(`exceeding packets size ${a.cmd}`)),n.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),n;switch(n.log("_handlePacket :: emitting packetreceive"),n.emit("packetreceive",a),a.cmd){case"publish":(0,t.default)(n,a,c);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":(0,o.default)(n,a),c();break;case"pubrel":(0,r.default)(n,a,c);break;case"connack":(0,h.default)(n,a),c();break;case"auth":(0,l.default)(n,a),c();break;case"pingresp":n.pingResp=!0,c();break;case"disconnect":n.emit("disconnect",a),c();break;default:n.log("_handlePacket :: unknown command"),c();break}};e.default=s}),Wl=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var t=i((hr(),Ue(ir))),l=vr(),h=class{};e.TypedEventEmitter=h,(0,l.applyMixin)(h,t.default)}),Hr=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0}),e.isWebWorker=void 0;var i=()=>typeof window<"u"&&typeof window.document<"u",t=()=>{var o,r;return!!(typeof self=="object"&&!((r=(o=self==null?void 0:self.constructor)===null||o===void 0?void 0:o.name)===null||r===void 0)&&r.includes("WorkerGlobalScope"))},l=()=>typeof lt<"u"&<.product==="ReactNative",h=i()||t()||l();e.isWebWorker=t(),e.default=h}),$l=me((e,i)=>{ae(),se(),oe(),function(t,l){typeof e=="object"&&typeof i<"u"?l(e):typeof define=="function"&&define.amd?define(["exports"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.fastUniqueNumbers={}))}(e,function(t){var l=function(b){return function(m){var y=b(m);return m.add(y),y}},h=function(b){return function(m,y){return b.set(m,y),y}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,s=r*2,n=function(b,m){return function(y){var I=m.get(y),U=I===void 0?y.size:I<s?I+1:0;if(!y.has(U))return b(y,U);if(y.size<r){for(;y.has(U);)U=Math.floor(Math.random()*s);return b(y,U)}if(y.size>o)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;y.has(U);)U=Math.floor(Math.random()*o);return b(y,U)}},a=new WeakMap,c=h(a),d=n(c,a),g=l(d);t.addUniqueNumber=g,t.generateUniqueNumber=d})}),ql=me((e,i)=>{ae(),se(),oe(),function(t,l){typeof e=="object"&&typeof i<"u"?l(e,$l()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.workerTimersBroker={},t.fastUniqueNumbers))}(e,function(t,l){var h=function(s){return s.method!==void 0&&s.method==="call"},o=function(s){return s.error===null&&typeof s.id=="number"},r=function(s){var n=new Map([[0,function(){}]]),a=new Map([[0,function(){}]]),c=new Map,d=new Worker(s);d.addEventListener("message",function(I){var U=I.data;if(h(U)){var k=U.params,T=k.timerId,D=k.timerType;if(D==="interval"){var F=n.get(T);if(typeof F=="number"){var R=c.get(F);if(R===void 0||R.timerId!==T||R.timerType!==D)throw new Error("The timer is in an undefined state.")}else if(typeof F<"u")F();else throw new Error("The timer is in an undefined state.")}else if(D==="timeout"){var O=a.get(T);if(typeof O=="number"){var M=c.get(O);if(M===void 0||M.timerId!==T||M.timerType!==D)throw new Error("The timer is in an undefined state.")}else if(typeof O<"u")O(),a.delete(T);else throw new Error("The timer is in an undefined state.")}}else if(o(U)){var W=U.id,G=c.get(W);if(G===void 0)throw new Error("The timer is in an undefined state.");var ee=G.timerId,E=G.timerType;c.delete(W),E==="interval"?n.delete(ee):a.delete(ee)}else{var q=U.error.message;throw new Error(q)}});var g=function(I){var U=l.generateUniqueNumber(c);c.set(U,{timerId:I,timerType:"interval"}),n.set(I,U),d.postMessage({id:U,method:"clear",params:{timerId:I,timerType:"interval"}})},b=function(I){var U=l.generateUniqueNumber(c);c.set(U,{timerId:I,timerType:"timeout"}),a.set(I,U),d.postMessage({id:U,method:"clear",params:{timerId:I,timerType:"timeout"}})},m=function(I){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=l.generateUniqueNumber(n);return n.set(k,function(){I(),typeof n.get(k)=="function"&&d.postMessage({id:null,method:"set",params:{delay:U,now:performance.now(),timerId:k,timerType:"interval"}})}),d.postMessage({id:null,method:"set",params:{delay:U,now:performance.now(),timerId:k,timerType:"interval"}}),k},y=function(I){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=l.generateUniqueNumber(a);return a.set(k,I),d.postMessage({id:null,method:"set",params:{delay:U,now:performance.now(),timerId:k,timerType:"timeout"}}),k};return{clearInterval:g,clearTimeout:b,setInterval:m,setTimeout:y}};t.load=r})}),Vl=me((e,i)=>{ae(),se(),oe(),function(t,l){typeof e=="object"&&typeof i<"u"?l(e,ql()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.workerTimers={},t.workerTimersBroker))}(e,function(t,l){var h=function(d,g){var b=null;return function(){if(b!==null)return b;var m=new Blob([g],{type:"application/javascript; charset=utf-8"}),y=URL.createObjectURL(m);return b=d(y),setTimeout(function(){return URL.revokeObjectURL(y)}),b}},o=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,r=h(l.load,o),s=function(d){return r().clearInterval(d)},n=function(d){return r().clearTimeout(d)},a=function(){var d;return(d=r()).setInterval.apply(d,arguments)},c=function(){var d;return(d=r()).setTimeout.apply(d,arguments)};t.clearInterval=s,t.clearTimeout=n,t.setInterval=a,t.setTimeout=c})}),Hl=me(e=>{ae(),se(),oe();var i=e&&e.__createBinding||(Object.create?function(a,c,d,g){g===void 0&&(g=d);var b=Object.getOwnPropertyDescriptor(c,d);(!b||("get"in b?!c.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(a,g,b)}:function(a,c,d,g){g===void 0&&(g=d),a[g]=c[d]}),t=e&&e.__setModuleDefault||(Object.create?function(a,c){Object.defineProperty(a,"default",{enumerable:!0,value:c})}:function(a,c){a.default=c}),l=e&&e.__importStar||function(a){if(a&&a.__esModule)return a;var c={};if(a!=null)for(var d in a)d!=="default"&&Object.prototype.hasOwnProperty.call(a,d)&&i(c,a,d);return t(c,a),c};Object.defineProperty(e,"__esModule",{value:!0});var h=l(Hr()),o=Vl(),r={set:o.setTimeout,clear:o.clearTimeout},s={set:(a,c)=>setTimeout(a,c),clear:a=>clearTimeout(a)},n=a=>{switch(a){case"native":return s;case"worker":return r;case"auto":default:return h.default&&!h.isWebWorker?r:s}};e.default=n}),Ds=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0});var t=i(Hl()),l=class{constructor(h,o,r){this.keepalive=h*1e3,this.checkPing=o,this.timer=(0,t.default)(r),this.reschedule()}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}reschedule(){this.clear(),this.timerId=this.timer.set(()=>{this.checkPing(),this.timerId&&this.reschedule()},this.keepalive)}};e.default=l}),_n=me(e=>{ae(),se(),oe();var i=e&&e.__createBinding||(Object.create?function(F,R,O,M){M===void 0&&(M=O);var W=Object.getOwnPropertyDescriptor(R,O);(!W||("get"in W?!R.__esModule:W.writable||W.configurable))&&(W={enumerable:!0,get:function(){return R[O]}}),Object.defineProperty(F,M,W)}:function(F,R,O,M){M===void 0&&(M=O),F[M]=R[O]}),t=e&&e.__setModuleDefault||(Object.create?function(F,R){Object.defineProperty(F,"default",{enumerable:!0,value:R})}:function(F,R){F.default=R}),l=e&&e.__importStar||function(F){if(F&&F.__esModule)return F;var R={};if(F!=null)for(var O in F)O!=="default"&&Object.prototype.hasOwnProperty.call(F,O)&&i(R,F,O);return t(R,F),R},h=e&&e.__importDefault||function(F){return F&&F.__esModule?F:{default:F}};Object.defineProperty(e,"__esModule",{value:!0});var o=h(Ua()),r=h(ml()),s=h(Es()),n=nr(),a=h(wl()),c=l(vl()),d=h(Rt()),g=h(Ss()),b=h(Fl()),m=vr(),y=Wl(),I=h(Ds()),U=l(Hr()),k=globalThis.setImmediate||((...F)=>{let R=F.shift();(0,m.nextTick)(()=>{R(...F)})}),T={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},D=class En extends y.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(R,O){super(),this.options=O||{};for(let M in T)typeof this.options[M]>"u"?this.options[M]=T[M]:this.options[M]=O[M];this.log=this.options.log||(0,d.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",En.VERSION),U.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",U.default?"browser":"node"),this.log("MqttClient :: options.protocol",O.protocol),this.log("MqttClient :: options.protocolVersion",O.protocolVersion),this.log("MqttClient :: options.username",O.username),this.log("MqttClient :: options.keepalive",O.keepalive),this.log("MqttClient :: options.reconnectPeriod",O.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",O.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",O.properties?O.properties.topicAliasMaximum:void 0),this.options.clientId=typeof O.clientId=="string"?O.clientId:En.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=O.protocolVersion===5&&O.customHandleAcks?O.customHandleAcks:(...M)=>{M[3](null,0)},this.options.writeCache||(r.default.writeToStream.cacheNumbers=!1),this.streamBuilder=R,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=O.outgoingStore||new g.default,this.incomingStore=O.incomingStore||new g.default,this.queueQoSZero=O.queueQoSZero===void 0?!0:O.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,O.properties&&O.properties.topicAliasMaximum>0&&(O.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new o.default(O.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:M}=this,W=()=>{let G=M.shift();this.log("deliver :: entry %o",G);let ee=null;if(!G){this._resubscribe();return}ee=G.packet,this.log("deliver :: call _sendPacket for %o",ee);let E=!0;ee.messageId&&ee.messageId!==0&&(this.messageIdProvider.register(ee.messageId)||(E=!1)),E?this._sendPacket(ee,q=>{G.cb&&G.cb(q),W()}):(this.log("messageId: %d has already used. The message is skipped and removed.",ee.messageId),W())};this.log("connect :: sending queued packets"),W()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this.log("close :: clearing ping timer"),this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(R,O){O()}handleMessage(R,O){O()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var R;let O=new n.Writable,M=r.default.parser(this.options),W=null,G=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),M.on("packet",K=>{this.log("parser :: on packet push to packets array."),G.push(K)});let ee=()=>{this.log("work :: getting next packet in queue");let K=G.shift();if(K)this.log("work :: packet pulled from queue"),(0,b.default)(this,K,E);else{this.log("work :: no packets in queue");let ge=W;W=null,this.log("work :: done flag is %s",!!ge),ge&&ge()}},E=()=>{if(G.length)(0,m.nextTick)(ee);else{let K=W;W=null,K()}};O._write=(K,ge,ne)=>{W=ne,this.log("writable stream :: parsing buffer"),M.parse(K),ee()};let q=K=>{this.log("streamErrorHandler :: error",K.message),K.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",K)):this.noop(K)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(O),this.stream.on("error",q),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let Z={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(Z.will=Object.assign(Object.assign({},this.options.will),{payload:(R=this.options.will)===null||R===void 0?void 0:R.payload})),this.topicAliasRecv&&(Z.properties||(Z.properties={}),this.topicAliasRecv&&(Z.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(Z),M.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let K=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(K)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(R,O,M,W){this.log("publish :: message `%s` to topic `%s`",O,R);let{options:G}=this;typeof M=="function"&&(W=M,M=null),M=M||{},M=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),M);let{qos:ee,retain:E,dup:q,properties:Z,cbStorePut:K}=M;if(this._checkDisconnecting(W))return this;let ge=()=>{let ne=0;if((ee===1||ee===2)&&(ne=this._nextId(),ne===null))return this.log("No messageId left"),!1;let $={cmd:"publish",topic:R,payload:O,qos:ee,retain:E,messageId:ne,dup:q};switch(G.protocolVersion===5&&($.properties=Z),this.log("publish :: qos",ee),ee){case 1:case 2:this.outgoing[$.messageId]={volatile:!1,cb:W||this.noop},this.log("MqttClient:publish: packet cmd: %s",$.cmd),this._sendPacket($,void 0,K);break;default:this.log("MqttClient:publish: packet cmd: %s",$.cmd),this._sendPacket($,W,K);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!ge())&&this._storeProcessingQueue.push({invoke:ge,cbStorePut:M.cbStorePut,callback:W}),this}publishAsync(R,O,M){return new Promise((W,G)=>{this.publish(R,O,M,(ee,E)=>{ee?G(ee):W(E)})})}subscribe(R,O,M){let W=this.options.protocolVersion;typeof O=="function"&&(M=O),M=M||this.noop;let G=!1,ee=[];typeof R=="string"?(R=[R],ee=R):Array.isArray(R)?ee=R:typeof R=="object"&&(G=R.resubscribe,delete R.resubscribe,ee=Object.keys(R));let E=c.validateTopics(ee);if(E!==null)return k(M,new Error(`Invalid topic ${E}`)),this;if(this._checkDisconnecting(M))return this.log("subscribe: discconecting true"),this;let q={qos:0};W===5&&(q.nl=!1,q.rap=!1,q.rh=0),O=Object.assign(Object.assign({},q),O);let Z=O.properties,K=[],ge=($,be)=>{if(be=be||O,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,$)||this._resubscribeTopics[$].qos<be.qos||G){let re={topic:$,qos:be.qos};W===5&&(re.nl=be.nl,re.rap=be.rap,re.rh=be.rh,re.properties=Z),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",re.topic,re.qos),K.push(re)}};if(Array.isArray(R)?R.forEach($=>{this.log("subscribe: array topic %s",$),ge($)}):Object.keys(R).forEach($=>{this.log("subscribe: object topic %s, %o",$,R[$]),ge($,R[$])}),!K.length)return M(null,[]),this;let ne=()=>{let $=this._nextId();if($===null)return this.log("No messageId left"),!1;let be={cmd:"subscribe",subscriptions:K,messageId:$};if(Z&&(be.properties=Z),this.options.resubscribe){this.log("subscribe :: resubscribe true");let re=[];K.forEach(ve=>{if(this.options.reconnectPeriod>0){let S={qos:ve.qos};W===5&&(S.nl=ve.nl||!1,S.rap=ve.rap||!1,S.rh=ve.rh||0,S.properties=ve.properties),this._resubscribeTopics[ve.topic]=S,re.push(ve.topic)}}),this.messageIdToTopic[be.messageId]=re}return this.outgoing[be.messageId]={volatile:!0,cb(re,ve){if(!re){let{granted:S}=ve;for(let Y=0;Y<S.length;Y+=1)K[Y].qos=S[Y]}M(re,K)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(be),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!ne())&&this._storeProcessingQueue.push({invoke:ne,callback:M}),this}subscribeAsync(R,O){return new Promise((M,W)=>{this.subscribe(R,O,(G,ee)=>{G?W(G):M(ee)})})}unsubscribe(R,O,M){typeof R=="string"&&(R=[R]),typeof O=="function"&&(M=O),M=M||this.noop;let W=c.validateTopics(R);if(W!==null)return k(M,new Error(`Invalid topic ${W}`)),this;if(this._checkDisconnecting(M))return this;let G=()=>{let ee=this._nextId();if(ee===null)return this.log("No messageId left"),!1;let E={cmd:"unsubscribe",messageId:ee,unsubscriptions:[]};return typeof R=="string"?E.unsubscriptions=[R]:Array.isArray(R)&&(E.unsubscriptions=R),this.options.resubscribe&&E.unsubscriptions.forEach(q=>{delete this._resubscribeTopics[q]}),typeof O=="object"&&O.properties&&(E.properties=O.properties),this.outgoing[E.messageId]={volatile:!0,cb:M},this.log("unsubscribe: call _sendPacket"),this._sendPacket(E),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!G())&&this._storeProcessingQueue.push({invoke:G,callback:M}),this}unsubscribeAsync(R,O){return new Promise((M,W)=>{this.unsubscribe(R,O,(G,ee)=>{G?W(G):M(ee)})})}end(R,O,M){this.log("end :: (%s)",this.options.clientId),(R==null||typeof R!="boolean")&&(M=M||O,O=R,R=!1),typeof O!="object"&&(M=M||O,O=null),this.log("end :: cb? %s",!!M),(!M||typeof M!="function")&&(M=this.noop);let W=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(ee=>{this.outgoingStore.close(E=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),M){let q=ee||E;this.log("end :: closeStores: invoking callback with args"),M(q)}})}),this._deferredReconnect&&this._deferredReconnect()},G=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,R),this._cleanUp(R,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(W)},O)};return this.disconnecting?(M(),this):(this._clearReconnect(),this.disconnecting=!0,!R&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,G,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),G()),this)}endAsync(R,O){return new Promise((M,W)=>{this.end(R,O,G=>{G?W(G):M()})})}removeOutgoingMessage(R){if(this.outgoing[R]){let{cb:O}=this.outgoing[R];this._removeOutgoingAndStoreMessage(R,()=>{O(new Error("Message removed"))})}return this}reconnect(R){this.log("client reconnect");let O=()=>{R?(this.options.incomingStore=R.incomingStore,this.options.outgoingStore=R.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new g.default,this.outgoingStore=this.options.outgoingStore||new g.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=O:O(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(R=>{this.outgoing[R].volatile&&typeof this.outgoing[R].cb=="function"&&(this.outgoing[R].cb(new Error("Connection closed")),delete this.outgoing[R])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(R=>{typeof this.outgoing[R].cb=="function"&&(this.outgoing[R].cb(new Error("Connection closed")),delete this.outgoing[R])}))}_removeTopicAliasAndRecoverTopicName(R){let O;R.properties&&(O=R.properties.topicAlias);let M=R.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",O,M),M.length===0){if(typeof O>"u")return new Error("Unregistered Topic Alias");if(M=this.topicAliasSend.getTopicByAlias(O),typeof M>"u")return new Error("Unregistered Topic Alias");R.topic=M}O&&delete R.properties.topicAlias}_checkDisconnecting(R){return this.disconnecting&&(R&&R!==this.noop?R(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(R,O,M={}){if(O&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",O)),this.log("_cleanUp :: forced? %s",R),R)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let W=Object.assign({cmd:"disconnect"},M);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(W,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),k(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer&&(this.log("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),O&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",O),O())}_storeAndSend(R,O,M){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",R.cmd);let W=R,G;if(W.cmd==="publish"&&(W=(0,a.default)(R),G=this._removeTopicAliasAndRecoverTopicName(W),G))return O&&O(G);this.outgoingStore.put(W,ee=>{if(ee)return O&&O(ee);M(),this._writePacket(R,O)})}_applyTopicAlias(R){if(this.options.protocolVersion===5&&R.cmd==="publish"){let O;R.properties&&(O=R.properties.topicAlias);let M=R.topic.toString();if(this.topicAliasSend)if(O){if(M.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",M,O),!this.topicAliasSend.put(M,O)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",M,O),new Error("Sending Topic Alias out of range")}else M.length!==0&&(this.options.autoAssignTopicAlias?(O=this.topicAliasSend.getAliasByTopic(M),O?(R.topic="",R.properties=Object.assign(Object.assign({},R.properties),{topicAlias:O}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",M,O)):(O=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(M,O),R.properties=Object.assign(Object.assign({},R.properties),{topicAlias:O}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",M,O))):this.options.autoUseTopicAlias&&(O=this.topicAliasSend.getAliasByTopic(M),O&&(R.topic="",R.properties=Object.assign(Object.assign({},R.properties),{topicAlias:O}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",M,O))));else if(O)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",M,O),new Error("Sending Topic Alias out of range")}}_noop(R){this.log("noop ::",R)}_writePacket(R,O){this.log("_writePacket :: packet: %O",R),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",R),this._shiftPingInterval(),this.log("_writePacket :: writing to stream");let M=r.default.writeToStream(R,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",M),!M&&O&&O!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",O)):O&&(this.log("_writePacket :: invoking cb"),O())}_sendPacket(R,O,M,W){this.log("_sendPacket :: (%s) :: start",this.options.clientId),M=M||this.noop,O=O||this.noop;let G=this._applyTopicAlias(R);if(G){O(G);return}if(!this.connected){if(R.cmd==="auth"){this._writePacket(R,O);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(R,O,M);return}if(W){this._writePacket(R,O);return}switch(R.cmd){case"publish":break;case"pubrel":this._storeAndSend(R,O,M);return;default:this._writePacket(R,O);return}switch(R.qos){case 2:case 1:this._storeAndSend(R,O,M);break;case 0:default:this._writePacket(R,O);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(R,O,M){this.log("_storePacket :: packet: %o",R),this.log("_storePacket :: cb? %s",!!O),M=M||this.noop;let W=R;if(W.cmd==="publish"){W=(0,a.default)(R);let ee=this._removeTopicAliasAndRecoverTopicName(W);if(ee)return O&&O(ee)}let G=W.qos||0;G===0&&this.queueQoSZero||W.cmd!=="publish"?this.queue.push({packet:W,cb:O}):G>0?(O=this.outgoing[W.messageId]?this.outgoing[W.messageId].cb:null,this.outgoingStore.put(W,ee=>{if(ee)return O&&O(ee);M()})):O&&O(new Error("No connection to broker"))}_setupPingTimer(){this.log("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive),!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=new I.default(this.options.keepalive,()=>{this._checkPing()},this.options.timerVariant))}_shiftPingInterval(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule()}_checkPing(){this.log("_checkPing :: checking ping..."),this.pingResp?(this.log("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(this.emit("error",new Error("Keepalive timeout")),this.log("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))}_resubscribe(){this.log("_resubscribe");let R=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&R.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let O=0;O<R.length;O++){let M={};M[R[O]]=this._resubscribeTopics[R[O]],M.resubscribe=!0,this.subscribe(M,{properties:M[R[O]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(R){if(this.disconnected){this.emit("connect",R);return}this.connackPacket=R,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0;let O=()=>{let M=this.outgoingStore.createStream(),W=()=>{M.destroy(),M=null,this._flushStoreProcessingQueue(),G()},G=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",W),M.on("error",E=>{G(),this._flushStoreProcessingQueue(),this.removeListener("close",W),this.emit("error",E)});let ee=()=>{if(!M)return;let E=M.read(1),q;if(!E){M.once("readable",ee);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[E.messageId]){ee();return}!this.disconnecting&&!this.reconnectTimer?(q=this.outgoing[E.messageId]?this.outgoing[E.messageId].cb:null,this.outgoing[E.messageId]={volatile:!1,cb(Z,K){q&&q(Z,K),ee()}},this._packetIdsDuringStoreProcessing[E.messageId]=!0,this.messageIdProvider.register(E.messageId)?this._sendPacket(E,void 0,void 0,!0):this.log("messageId: %d has already used.",E.messageId)):M.destroy&&M.destroy()};M.on("end",()=>{let E=!0;for(let q in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[q]){E=!1;break}this.removeListener("close",W),E?(G(),this._invokeAllStoreProcessingQueue(),this.emit("connect",R)):O()}),ee()};O()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let R=this._storeProcessingQueue[0];if(R&&R.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let R of this._storeProcessingQueue)R.cbStorePut&&R.cbStorePut(new Error("Connection closed")),R.callback&&R.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(R,O){delete this.outgoing[R],this.outgoingStore.del({messageId:R},(M,W)=>{O(M,W),this.messageIdProvider.deallocate(R),this._invokeStoreProcessingQueue()})}};D.VERSION="5.5.1",e.default=D}),zl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=js(),t=class{constructor(){this.numberAllocator=new i.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(l){return this.numberAllocator.use(l)}deallocate(l){this.numberAllocator.free(l)}clear(){this.numberAllocator.clear()}};e.default=t});function Ht(e){throw new RangeError(Ws[e])}function ho(e,i){let t=e.split("@"),l="";t.length>1&&(l=t[0]+"@",e=t[1]);let h=function(o,r){let s=[],n=o.length;for(;n--;)s[n]=r(o[n]);return s}((e=e.replace(Fs,".")).split("."),i).join(".");return l+h}function co(e){let i=[],t=0,l=e.length;for(;t<l;){let h=e.charCodeAt(t++);if(h>=55296&&h<=56319&&t<l){let o=e.charCodeAt(t++);(64512&o)==56320?i.push(((1023&h)<<10)+(1023&o)+65536):(i.push(h),t--)}else i.push(h)}return i}var fo,po,Fs,Ws,ft,Sr,ei,ti,ri,ii,jt,Kl=Je(()=>{ae(),se(),oe(),fo=/^xn--/,po=/[^\0-\x7E]/,Fs=/[\x2E\u3002\uFF0E\uFF61]/g,Ws={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ft=Math.floor,Sr=String.fromCharCode,ei=function(e,i){return e+22+75*(e<26)-((i!=0)<<5)},ti=function(e,i,t){let l=0;for(e=t?ft(e/700):e>>1,e+=ft(e/i);e>455;l+=36)e=ft(e/35);return ft(l+36*e/(e+38))},ri=function(e){let i=[],t=e.length,l=0,h=128,o=72,r=e.lastIndexOf("-");r<0&&(r=0);for(let n=0;n<r;++n)e.charCodeAt(n)>=128&&Ht("not-basic"),i.push(e.charCodeAt(n));for(let n=r>0?r+1:0;n<t;){let a=l;for(let d=1,g=36;;g+=36){n>=t&&Ht("invalid-input");let b=(s=e.charCodeAt(n++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(b>=36||b>ft((2147483647-l)/d))&&Ht("overflow"),l+=b*d;let m=g<=o?1:g>=o+26?26:g-o;if(b<m)break;let y=36-m;d>ft(2147483647/y)&&Ht("overflow"),d*=y}let c=i.length+1;o=ti(l-a,c,a==0),ft(l/c)>2147483647-h&&Ht("overflow"),h+=ft(l/c),l%=c,i.splice(l++,0,h)}var s;return String.fromCodePoint(...i)},ii=function(e){let i=[],t=(e=co(e)).length,l=128,h=0,o=72;for(let n of e)n<128&&i.push(Sr(n));let r=i.length,s=r;for(r&&i.push("-");s<t;){let n=2147483647;for(let c of e)c>=l&&c<n&&(n=c);let a=s+1;n-l>ft((2147483647-h)/a)&&Ht("overflow"),h+=(n-l)*a,l=n;for(let c of e)if(c<l&&++h>2147483647&&Ht("overflow"),c==l){let d=h;for(let g=36;;g+=36){let b=g<=o?1:g>=o+26?26:g-o;if(d<b)break;let m=d-b,y=36-b;i.push(Sr(ei(b+m%y,0))),d=ft(m/y)}i.push(Sr(ei(d,0))),o=ti(h,a,s==r),h=0,++s}++h,++l}return i.join("")},jt={version:"2.1.0",ucs2:{decode:co,encode:e=>String.fromCodePoint(...e)},decode:ri,encode:ii,toASCII:function(e){return ho(e,function(i){return po.test(i)?"xn--"+ii(i):i})},toUnicode:function(e){return ho(e,function(i){return fo.test(i)?ri(i.slice(4).toLowerCase()):i})}},jt.decode,jt.encode,jt.toASCII,jt.toUnicode,jt.ucs2,jt.version});function Yl(e,i){return Object.prototype.hasOwnProperty.call(e,i)}var go,or,bo,mt,Ql=Je(()=>{ae(),se(),oe(),go=function(e,i,t,l){i=i||"&",t=t||"=";var h={};if(typeof e!="string"||e.length===0)return h;var o=/\+/g;e=e.split(i);var r=1e3;l&&typeof l.maxKeys=="number"&&(r=l.maxKeys);var s=e.length;r>0&&s>r&&(s=r);for(var n=0;n<s;++n){var a,c,d,g,b=e[n].replace(o,"%20"),m=b.indexOf(t);m>=0?(a=b.substr(0,m),c=b.substr(m+1)):(a=b,c=""),d=decodeURIComponent(a),g=decodeURIComponent(c),Yl(h,d)?Array.isArray(h[d])?h[d].push(g):h[d]=[h[d],g]:h[d]=g}return h},or=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},bo=function(e,i,t,l){return i=i||"&",t=t||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(h){var o=encodeURIComponent(or(h))+t;return Array.isArray(e[h])?e[h].map(function(r){return o+encodeURIComponent(or(r))}).join(i):o+encodeURIComponent(or(e[h]))}).join(i):l?encodeURIComponent(or(l))+t+encodeURIComponent(or(e)):""},mt={},mt.decode=mt.parse=go,mt.encode=mt.stringify=bo,mt.decode,mt.encode,mt.parse,mt.stringify});function Sn(){throw new Error("setTimeout has not been defined")}function An(){throw new Error("clearTimeout has not been defined")}function $s(e){if(St===setTimeout)return setTimeout(e,0);if((St===Sn||!St)&&setTimeout)return St=setTimeout,setTimeout(e,0);try{return St(e,0)}catch{try{return St.call(null,e,0)}catch{return St.call(this||Zt,e,0)}}}function Gl(){er&&Jt&&(er=!1,Jt.length?wt=Jt.concat(wt):wr=-1,wt.length&&qs())}function qs(){if(!er){var e=$s(Gl);er=!0;for(var i=wt.length;i;){for(Jt=wt,wt=[];++wr<i;)Jt&&Jt[wr].run();wr=-1,i=wt.length}Jt=null,er=!1,function(t){if(At===clearTimeout)return clearTimeout(t);if((At===An||!At)&&clearTimeout)return At=clearTimeout,clearTimeout(t);try{At(t)}catch{try{return At.call(null,t)}catch{return At.call(this||Zt,t)}}}(e)}}function mo(e,i){(this||Zt).fun=e,(this||Zt).array=i}function vt(){}var yo,St,At,Zt,$e,Jt,wt,er,wr,Fe,Jl=Je(()=>{ae(),se(),oe(),Zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,$e=yo={},function(){try{St=typeof setTimeout=="function"?setTimeout:Sn}catch{St=Sn}try{At=typeof clearTimeout=="function"?clearTimeout:An}catch{At=An}}(),wt=[],er=!1,wr=-1,$e.nextTick=function(e){var i=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)i[t-1]=arguments[t];wt.push(new mo(e,i)),wt.length!==1||er||$s(qs)},mo.prototype.run=function(){(this||Zt).fun.apply(null,(this||Zt).array)},$e.title="browser",$e.browser=!0,$e.env={},$e.argv=[],$e.version="",$e.versions={},$e.on=vt,$e.addListener=vt,$e.once=vt,$e.off=vt,$e.removeListener=vt,$e.removeAllListeners=vt,$e.emit=vt,$e.prependListener=vt,$e.prependOnceListener=vt,$e.listeners=function(e){return[]},$e.binding=function(e){throw new Error("process.binding is not supported")},$e.cwd=function(){return"/"},$e.chdir=function(e){throw new Error("process.chdir is not supported")},$e.umask=function(){return 0},Fe=yo,Fe.addListener,Fe.argv,Fe.binding,Fe.browser,Fe.chdir,Fe.cwd,Fe.emit,Fe.env,Fe.listeners,Fe.nextTick,Fe.off,Fe.on,Fe.once,Fe.prependListener,Fe.prependOnceListener,Fe.removeAllListeners,Fe.removeListener,Fe.title,Fe.umask,Fe.version,Fe.versions});function Xl(){if(In)return Br;In=!0;var e=Br={},i,t;function l(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?i=setTimeout:i=l}catch{i=l}try{typeof clearTimeout=="function"?t=clearTimeout:t=h}catch{t=h}})();function o(y){if(i===setTimeout)return setTimeout(y,0);if((i===l||!i)&&setTimeout)return i=setTimeout,setTimeout(y,0);try{return i(y,0)}catch{try{return i.call(null,y,0)}catch{return i.call(this||Kt,y,0)}}}function r(y){if(t===clearTimeout)return clearTimeout(y);if((t===h||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(y);try{return t(y)}catch{try{return t.call(null,y)}catch{return t.call(this||Kt,y)}}}var s=[],n=!1,a,c=-1;function d(){!n||!a||(n=!1,a.length?s=a.concat(s):c=-1,s.length&&g())}function g(){if(!n){var y=o(d);n=!0;for(var I=s.length;I;){for(a=s,s=[];++c<I;)a&&a[c].run();c=-1,I=s.length}a=null,n=!1,r(y)}}e.nextTick=function(y){var I=new Array(arguments.length-1);if(arguments.length>1)for(var U=1;U<arguments.length;U++)I[U-1]=arguments[U];s.push(new b(y,I)),s.length===1&&!n&&o(g)};function b(y,I){(this||Kt).fun=y,(this||Kt).array=I}b.prototype.run=function(){(this||Kt).fun.apply(null,(this||Kt).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function m(){}return e.on=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,e.listeners=function(y){return[]},e.binding=function(y){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(y){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Br}var Br,In,Kt,je,Vs=Je(()=>{ae(),se(),oe(),Br={},In=!1,Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,je=Xl(),je.platform="browser",je.addListener,je.argv,je.binding,je.browser,je.chdir,je.cwd,je.emit,je.env,je.listeners,je.nextTick,je.off,je.on,je.once,je.prependListener,je.prependOnceListener,je.removeAllListeners,je.removeListener,je.title,je.umask,je.version,je.versions});function Zl(){if(Tn)return xr;Tn=!0;var e=je;function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,r){for(var s="",n=0,a=-1,c=0,d,g=0;g<=o.length;++g){if(g<o.length)d=o.charCodeAt(g);else{if(d===47)break;d=47}if(d===47){if(!(a===g-1||c===1))if(a!==g-1&&c===2){if(s.length<2||n!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var b=s.lastIndexOf("/");if(b!==s.length-1){b===-1?(s="",n=0):(s=s.slice(0,b),n=s.length-1-s.lastIndexOf("/")),a=g,c=0;continue}}else if(s.length===2||s.length===1){s="",n=0,a=g,c=0;continue}}r&&(s.length>0?s+="/..":s="..",n=2)}else s.length>0?s+="/"+o.slice(a+1,g):s=o.slice(a+1,g),n=g-a-1;a=g,c=0}else d===46&&c!==-1?++c:c=-1}return s}function l(o,r){var s=r.dir||r.root,n=r.base||(r.name||"")+(r.ext||"");return s?s===r.root?s+n:s+o+n:n}var h={resolve:function(){for(var o="",r=!1,s,n=arguments.length-1;n>=-1&&!r;n--){var a;n>=0?a=arguments[n]:(s===void 0&&(s=e.cwd()),a=s),i(a),a.length!==0&&(o=a+"/"+o,r=a.charCodeAt(0)===47)}return o=t(o,!r),r?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(i(o),o.length===0)return".";var r=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=t(o,!r),o.length===0&&!r&&(o="."),o.length>0&&s&&(o+="/"),r?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,r=0;r<arguments.length;++r){var s=arguments[r];i(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":h.normalize(o)},relative:function(o,r){if(i(o),i(r),o===r||(o=h.resolve(o),r=h.resolve(r),o===r))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var n=o.length,a=n-s,c=1;c<r.length&&r.charCodeAt(c)===47;++c);for(var d=r.length,g=d-c,b=a<g?a:g,m=-1,y=0;y<=b;++y){if(y===b){if(g>b){if(r.charCodeAt(c+y)===47)return r.slice(c+y+1);if(y===0)return r.slice(c+y)}else a>b&&(o.charCodeAt(s+y)===47?m=y:y===0&&(m=0));break}var I=o.charCodeAt(s+y),U=r.charCodeAt(c+y);if(I!==U)break;I===47&&(m=y)}var k="";for(y=s+m+1;y<=n;++y)(y===n||o.charCodeAt(y)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+r.slice(c+m):(c+=m,r.charCodeAt(c)===47&&++c,r.slice(c))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var r=o.charCodeAt(0),s=r===47,n=-1,a=!0,c=o.length-1;c>=1;--c)if(r=o.charCodeAt(c),r===47){if(!a){n=c;break}}else a=!1;return n===-1?s?"/":".":s&&n===1?"//":o.slice(0,n)},basename:function(o,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(o);var s=0,n=-1,a=!0,c;if(r!==void 0&&r.length>0&&r.length<=o.length){if(r.length===o.length&&r===o)return"";var d=r.length-1,g=-1;for(c=o.length-1;c>=0;--c){var b=o.charCodeAt(c);if(b===47){if(!a){s=c+1;break}}else g===-1&&(a=!1,g=c+1),d>=0&&(b===r.charCodeAt(d)?--d===-1&&(n=c):(d=-1,n=g))}return s===n?n=g:n===-1&&(n=o.length),o.slice(s,n)}else{for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!a){s=c+1;break}}else n===-1&&(a=!1,n=c+1);return n===-1?"":o.slice(s,n)}},extname:function(o){i(o);for(var r=-1,s=0,n=-1,a=!0,c=0,d=o.length-1;d>=0;--d){var g=o.charCodeAt(d);if(g===47){if(!a){s=d+1;break}continue}n===-1&&(a=!1,n=d+1),g===46?r===-1?r=d:c!==1&&(c=1):r!==-1&&(c=-1)}return r===-1||n===-1||c===0||c===1&&r===n-1&&r===s+1?"":o.slice(r,n)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return l("/",o)},parse:function(o){i(o);var r={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return r;var s=o.charCodeAt(0),n=s===47,a;n?(r.root="/",a=1):a=0;for(var c=-1,d=0,g=-1,b=!0,m=o.length-1,y=0;m>=a;--m){if(s=o.charCodeAt(m),s===47){if(!b){d=m+1;break}continue}g===-1&&(b=!1,g=m+1),s===46?c===-1?c=m:y!==1&&(y=1):c!==-1&&(y=-1)}return c===-1||g===-1||y===0||y===1&&c===g-1&&c===d+1?g!==-1&&(d===0&&n?r.base=r.name=o.slice(1,g):r.base=r.name=o.slice(d,g)):(d===0&&n?(r.name=o.slice(1,c),r.base=o.slice(1,g)):(r.name=o.slice(d,c),r.base=o.slice(d,g)),r.ext=o.slice(c,g)),d>0?r.dir=o.slice(0,d-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return h.posix=h,xr=h,xr}var xr,Tn,kn,eu=Je(()=>{ae(),se(),oe(),Vs(),xr={},Tn=!1,kn=Zl()}),Hs={};tr(Hs,{URL:()=>ua,Url:()=>na,default:()=>Pe,fileURLToPath:()=>zs,format:()=>oa,parse:()=>la,pathToFileURL:()=>Ks,resolve:()=>sa,resolveObject:()=>aa});function ht(){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}function pr(e,i,t){if(e&&pt.isObject(e)&&e instanceof ht)return e;var l=new ht;return l.parse(e,i,t),l}function tu(){if(On)return Mr;On=!0;var e=Fe;function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,r){for(var s="",n=0,a=-1,c=0,d,g=0;g<=o.length;++g){if(g<o.length)d=o.charCodeAt(g);else{if(d===47)break;d=47}if(d===47){if(!(a===g-1||c===1))if(a!==g-1&&c===2){if(s.length<2||n!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var b=s.lastIndexOf("/");if(b!==s.length-1){b===-1?(s="",n=0):(s=s.slice(0,b),n=s.length-1-s.lastIndexOf("/")),a=g,c=0;continue}}else if(s.length===2||s.length===1){s="",n=0,a=g,c=0;continue}}r&&(s.length>0?s+="/..":s="..",n=2)}else s.length>0?s+="/"+o.slice(a+1,g):s=o.slice(a+1,g),n=g-a-1;a=g,c=0}else d===46&&c!==-1?++c:c=-1}return s}function l(o,r){var s=r.dir||r.root,n=r.base||(r.name||"")+(r.ext||"");return s?s===r.root?s+n:s+o+n:n}var h={resolve:function(){for(var o="",r=!1,s,n=arguments.length-1;n>=-1&&!r;n--){var a;n>=0?a=arguments[n]:(s===void 0&&(s=e.cwd()),a=s),i(a),a.length!==0&&(o=a+"/"+o,r=a.charCodeAt(0)===47)}return o=t(o,!r),r?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(i(o),o.length===0)return".";var r=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=t(o,!r),o.length===0&&!r&&(o="."),o.length>0&&s&&(o+="/"),r?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,r=0;r<arguments.length;++r){var s=arguments[r];i(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":h.normalize(o)},relative:function(o,r){if(i(o),i(r),o===r||(o=h.resolve(o),r=h.resolve(r),o===r))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var n=o.length,a=n-s,c=1;c<r.length&&r.charCodeAt(c)===47;++c);for(var d=r.length,g=d-c,b=a<g?a:g,m=-1,y=0;y<=b;++y){if(y===b){if(g>b){if(r.charCodeAt(c+y)===47)return r.slice(c+y+1);if(y===0)return r.slice(c+y)}else a>b&&(o.charCodeAt(s+y)===47?m=y:y===0&&(m=0));break}var I=o.charCodeAt(s+y),U=r.charCodeAt(c+y);if(I!==U)break;I===47&&(m=y)}var k="";for(y=s+m+1;y<=n;++y)(y===n||o.charCodeAt(y)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+r.slice(c+m):(c+=m,r.charCodeAt(c)===47&&++c,r.slice(c))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var r=o.charCodeAt(0),s=r===47,n=-1,a=!0,c=o.length-1;c>=1;--c)if(r=o.charCodeAt(c),r===47){if(!a){n=c;break}}else a=!1;return n===-1?s?"/":".":s&&n===1?"//":o.slice(0,n)},basename:function(o,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');i(o);var s=0,n=-1,a=!0,c;if(r!==void 0&&r.length>0&&r.length<=o.length){if(r.length===o.length&&r===o)return"";var d=r.length-1,g=-1;for(c=o.length-1;c>=0;--c){var b=o.charCodeAt(c);if(b===47){if(!a){s=c+1;break}}else g===-1&&(a=!1,g=c+1),d>=0&&(b===r.charCodeAt(d)?--d===-1&&(n=c):(d=-1,n=g))}return s===n?n=g:n===-1&&(n=o.length),o.slice(s,n)}else{for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!a){s=c+1;break}}else n===-1&&(a=!1,n=c+1);return n===-1?"":o.slice(s,n)}},extname:function(o){i(o);for(var r=-1,s=0,n=-1,a=!0,c=0,d=o.length-1;d>=0;--d){var g=o.charCodeAt(d);if(g===47){if(!a){s=d+1;break}continue}n===-1&&(a=!1,n=d+1),g===46?r===-1?r=d:c!==1&&(c=1):r!==-1&&(c=-1)}return r===-1||n===-1||c===0||c===1&&r===n-1&&r===s+1?"":o.slice(r,n)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return l("/",o)},parse:function(o){i(o);var r={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return r;var s=o.charCodeAt(0),n=s===47,a;n?(r.root="/",a=1):a=0;for(var c=-1,d=0,g=-1,b=!0,m=o.length-1,y=0;m>=a;--m){if(s=o.charCodeAt(m),s===47){if(!b){d=m+1;break}continue}g===-1&&(b=!1,g=m+1),s===46?c===-1?c=m:y!==1&&(y=1):c!==-1&&(y=-1)}return c===-1||g===-1||y===0||y===1&&c===g-1&&c===d+1?g!==-1&&(d===0&&n?r.base=r.name=o.slice(1,g):r.base=r.name=o.slice(d,g)):(d===0&&n?(r.name=o.slice(1,c),r.base=o.slice(1,g)):(r.name=o.slice(d,c),r.base=o.slice(d,g)),r.ext=o.slice(c,g)),d>0?r.dir=o.slice(0,d-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return h.posix=h,Mr=h,Mr}function ru(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return jr?iu(e):nu(e)}function iu(e){let i=e.hostname,t=e.pathname;for(let l=0;l<t.length;l++)if(t[l]==="%"){let h=t.codePointAt(l+2)||32;if(t[l+1]==="2"&&h===102||t[l+1]==="5"&&h===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(t=t.replace(Xs,"\\"),t=decodeURIComponent(t),i!=="")return`\\\\${i}${t}`;{let l=t.codePointAt(1)|32,h=t[2];if(l<Gs||l>Js||h!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function nu(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=e.pathname;for(let t=0;t<i.length;t++)if(i[t]==="%"){let l=i.codePointAt(t+2)||32;if(i[t+1]==="2"&&l===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}function ou(e){let i=Cn.resolve(e),t=e.charCodeAt(e.length-1);(t===Qs||jr&&t===Ys)&&i[i.length-1]!==Cn.sep&&(i+="/");let l=new URL("file://");return i.includes("%")&&(i=i.replace(Zs,"%25")),!jr&&i.includes("\\")&&(i=i.replace(ea,"%5C")),i.includes(`
|
|
3
|
+
`)&&(i=i.replace(ta,"%0A")),i.includes("\r")&&(i=i.replace(ra,"%0D")),i.includes(" ")&&(i=i.replace(ia,"%09")),l.pathname=i,l}function zs(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Dr?su(e):au(e)}function su(e){let i=e.hostname,t=e.pathname;for(let l=0;l<t.length;l++)if(t[l]==="%"){let h=t.codePointAt(l+2)||32;if(t[l+1]==="2"&&h===102||t[l+1]==="5"&&h===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(t=t.replace(pa,"\\"),t=decodeURIComponent(t),i!=="")return`\\\\${i}${t}`;{let l=t.codePointAt(1)|32,h=t[2];if(l<fa||l>da||h!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function au(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let i=e.pathname;for(let t=0;t<i.length;t++)if(i[t]==="%"){let l=i.codePointAt(t+2)||32;if(i[t+1]==="2"&&l===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(i)}function Ks(e){let i=kn.resolve(e),t=e.charCodeAt(e.length-1);(t===ca||Dr&&t===ha)&&i[i.length-1]!==kn.sep&&(i+="/");let l=new URL("file://");return i.includes("%")&&(i=i.replace(ga,"%25")),!Dr&&i.includes("\\")&&(i=i.replace(ba,"%5C")),i.includes(`
|
|
4
|
+
`)&&(i=i.replace(ma,"%0A")),i.includes("\r")&&(i=i.replace(ya,"%0D")),i.includes(" ")&&(i=i.replace(wa,"%09")),l.pathname=i,l}var Pe,wo,pt,vo,_o,Eo,So,Ar,ni,oi,si,Ao,Io,Ir,zt,Tr,Mr,On,Cn,To,Ys,Qs,Gs,Js,jr,Xs,Zs,ea,ta,ra,ia,ko,na,oa,sa,aa,la,ua,ha,ca,fa,da,Dr,pa,ga,ba,ma,ya,wa,lu=Je(()=>{ae(),se(),oe(),Kl(),Ql(),Jl(),eu(),Vs(),Pe={},wo=jt,pt={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},Pe.parse=pr,Pe.resolve=function(e,i){return pr(e,!1,!0).resolve(i)},Pe.resolveObject=function(e,i){return e?pr(e,!1,!0).resolveObject(i):i},Pe.format=function(e){return pt.isString(e)&&(e=pr(e)),e instanceof ht?e.format():ht.prototype.format.call(e)},Pe.Url=ht,vo=/^([a-z0-9.+-]+:)/i,_o=/:[0-9]*$/,Eo=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,So=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
5
|
+
`," "]),Ar=["'"].concat(So),ni=["%","/","?",";","#"].concat(Ar),oi=["/","?","#"],si=/^[+a-z0-9A-Z_-]{0,63}$/,Ao=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Io={javascript:!0,"javascript:":!0},Ir={javascript:!0,"javascript:":!0},zt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Tr=mt,ht.prototype.parse=function(e,i,t){if(!pt.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var l=e.indexOf("?"),h=l!==-1&&l<e.indexOf("#")?"?":"#",o=e.split(h);o[0]=o[0].replace(/\\/g,"/");var r=e=o.join(h);if(r=r.trim(),!t&&e.split("#").length===1){var s=Eo.exec(r);if(s)return this.path=r,this.href=r,this.pathname=s[1],s[2]?(this.search=s[2],this.query=i?Tr.parse(this.search.substr(1)):this.search.substr(1)):i&&(this.search="",this.query={}),this}var n=vo.exec(r);if(n){var a=(n=n[0]).toLowerCase();this.protocol=a,r=r.substr(n.length)}if(t||n||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var c=r.substr(0,2)==="//";!c||n&&Ir[n]||(r=r.substr(2),this.slashes=!0)}if(!Ir[n]&&(c||n&&!zt[n])){for(var d,g,b=-1,m=0;m<oi.length;m++)(y=r.indexOf(oi[m]))!==-1&&(b===-1||y<b)&&(b=y);for((g=b===-1?r.lastIndexOf("@"):r.lastIndexOf("@",b))!==-1&&(d=r.slice(0,g),r=r.slice(g+1),this.auth=decodeURIComponent(d)),b=-1,m=0;m<ni.length;m++){var y;(y=r.indexOf(ni[m]))!==-1&&(b===-1||y<b)&&(b=y)}b===-1&&(b=r.length),this.host=r.slice(0,b),r=r.slice(b),this.parseHost(),this.hostname=this.hostname||"";var I=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!I)for(var U=this.hostname.split(/\./),k=(m=0,U.length);m<k;m++){var T=U[m];if(T&&!T.match(si)){for(var D="",F=0,R=T.length;F<R;F++)T.charCodeAt(F)>127?D+="x":D+=T[F];if(!D.match(si)){var O=U.slice(0,m),M=U.slice(m+1),W=T.match(Ao);W&&(O.push(W[1]),M.unshift(W[2])),M.length&&(r="/"+M.join(".")+r),this.hostname=O.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=wo.toASCII(this.hostname));var G=this.port?":"+this.port:"",ee=this.hostname||"";this.host=ee+G,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),r[0]!=="/"&&(r="/"+r))}if(!Io[a])for(m=0,k=Ar.length;m<k;m++){var E=Ar[m];if(r.indexOf(E)!==-1){var q=encodeURIComponent(E);q===E&&(q=escape(E)),r=r.split(E).join(q)}}var Z=r.indexOf("#");Z!==-1&&(this.hash=r.substr(Z),r=r.slice(0,Z));var K=r.indexOf("?");if(K!==-1?(this.search=r.substr(K),this.query=r.substr(K+1),i&&(this.query=Tr.parse(this.query)),r=r.slice(0,K)):i&&(this.search="",this.query={}),r&&(this.pathname=r),zt[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){G=this.pathname||"";var ge=this.search||"";this.path=G+ge}return this.href=this.format(),this},ht.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var i=this.protocol||"",t=this.pathname||"",l=this.hash||"",h=!1,o="";this.host?h=e+this.host:this.hostname&&(h=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(h+=":"+this.port)),this.query&&pt.isObject(this.query)&&Object.keys(this.query).length&&(o=Tr.stringify(this.query));var r=this.search||o&&"?"+o||"";return i&&i.substr(-1)!==":"&&(i+=":"),this.slashes||(!i||zt[i])&&h!==!1?(h="//"+(h||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):h||(h=""),l&&l.charAt(0)!=="#"&&(l="#"+l),r&&r.charAt(0)!=="?"&&(r="?"+r),i+h+(t=t.replace(/[?#]/g,function(s){return encodeURIComponent(s)}))+(r=r.replace("#","%23"))+l},ht.prototype.resolve=function(e){return this.resolveObject(pr(e,!1,!0)).format()},ht.prototype.resolveObject=function(e){if(pt.isString(e)){var i=new ht;i.parse(e,!1,!0),e=i}for(var t=new ht,l=Object.keys(this),h=0;h<l.length;h++){var o=l[h];t[o]=this[o]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var r=Object.keys(e),s=0;s<r.length;s++){var n=r[s];n!=="protocol"&&(t[n]=e[n])}return zt[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!zt[e.protocol]){for(var a=Object.keys(e),c=0;c<a.length;c++){var d=a[c];t[d]=e[d]}return t.href=t.format(),t}if(t.protocol=e.protocol,e.host||Ir[e.protocol])t.pathname=e.pathname;else{for(var g=(e.pathname||"").split("/");g.length&&!(e.host=g.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),g[0]!==""&&g.unshift(""),g.length<2&&g.unshift(""),t.pathname=g.join("/")}if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var b=t.pathname||"",m=t.search||"";t.path=b+m}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var y=t.pathname&&t.pathname.charAt(0)==="/",I=e.host||e.pathname&&e.pathname.charAt(0)==="/",U=I||y||t.host&&e.pathname,k=U,T=t.pathname&&t.pathname.split("/")||[],D=(g=e.pathname&&e.pathname.split("/")||[],t.protocol&&!zt[t.protocol]);if(D&&(t.hostname="",t.port=null,t.host&&(T[0]===""?T[0]=t.host:T.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(g[0]===""?g[0]=e.host:g.unshift(e.host)),e.host=null),U=U&&(g[0]===""||T[0]==="")),I)t.host=e.host||e.host===""?e.host:t.host,t.hostname=e.hostname||e.hostname===""?e.hostname:t.hostname,t.search=e.search,t.query=e.query,T=g;else if(g.length)T||(T=[]),T.pop(),T=T.concat(g),t.search=e.search,t.query=e.query;else if(!pt.isNullOrUndefined(e.search))return D&&(t.hostname=t.host=T.shift(),(W=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=W.shift(),t.host=t.hostname=W.shift())),t.search=e.search,t.query=e.query,pt.isNull(t.pathname)&&pt.isNull(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t;if(!T.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var F=T.slice(-1)[0],R=(t.host||e.host||T.length>1)&&(F==="."||F==="..")||F==="",O=0,M=T.length;M>=0;M--)(F=T[M])==="."?T.splice(M,1):F===".."?(T.splice(M,1),O++):O&&(T.splice(M,1),O--);if(!U&&!k)for(;O--;O)T.unshift("..");!U||T[0]===""||T[0]&&T[0].charAt(0)==="/"||T.unshift(""),R&&T.join("/").substr(-1)!=="/"&&T.push("");var W,G=T[0]===""||T[0]&&T[0].charAt(0)==="/";return D&&(t.hostname=t.host=G?"":T.length?T.shift():"",(W=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=W.shift(),t.host=t.hostname=W.shift())),(U=U||t.host&&T.length)&&!G&&T.unshift(""),T.length?t.pathname=T.join("/"):(t.pathname=null,t.path=null),pt.isNull(t.pathname)&&pt.isNull(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},ht.prototype.parseHost=function(){var e=this.host,i=_o.exec(e);i&&((i=i[0])!==":"&&(this.port=i.substr(1)),e=e.substr(0,e.length-i.length)),e&&(this.hostname=e)},Pe.Url,Pe.format,Pe.resolve,Pe.resolveObject,Mr={},On=!1,Cn=tu(),To=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Pe.URL=typeof URL<"u"?URL:null,Pe.pathToFileURL=ou,Pe.fileURLToPath=ru,Pe.Url,Pe.format,Pe.resolve,Pe.resolveObject,Pe.URL,Ys=92,Qs=47,Gs=97,Js=122,jr=To==="win32",Xs=/\//g,Zs=/%/g,ea=/\\/g,ta=/\n/g,ra=/\r/g,ia=/\t/g,ko=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Pe.URL=typeof URL<"u"?URL:null,Pe.pathToFileURL=Ks,Pe.fileURLToPath=zs,na=Pe.Url,oa=Pe.format,sa=Pe.resolve,aa=Pe.resolveObject,la=Pe.parse,ua=Pe.URL,ha=92,ca=47,fa=97,da=122,Dr=ko==="win32",pa=/\//g,ga=/%/g,ba=/\\/g,ma=/\n/g,ya=/\r/g,wa=/\t/g}),Wn={};tr(Wn,{Server:()=>De,Socket:()=>De,Stream:()=>De,_createServerHandle:()=>De,_normalizeArgs:()=>De,_setSimultaneousAccepts:()=>De,connect:()=>De,createConnection:()=>De,createServer:()=>De,default:()=>va,isIP:()=>De,isIPv4:()=>De,isIPv6:()=>De});function De(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var va,_a=Je(()=>{ae(),se(),oe(),va={_createServerHandle:De,_normalizeArgs:De,_setSimultaneousAccepts:De,connect:De,createConnection:De,createServer:De,isIP:De,isIPv4:De,isIPv6:De,Server:De,Socket:De,Stream:De}}),Oo=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0});var t=i((_a(),Ue(Wn))),l=i(Rt()),h=(0,l.default)("mqttjs:tcp"),o=(r,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:n}=s,a=s.hostname;return h("port %d and host %s",n,a),t.default.createConnection(n,a)};e.default=o}),Ea={};tr(Ea,{default:()=>Sa});var Sa,uu=Je(()=>{ae(),se(),oe(),Sa={}}),Co=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var t=i((uu(),Ue(Ea))),l=i((_a(),Ue(Wn))),h=i(Rt()),o=(0,h.default)("mqttjs:tls"),r=(s,n)=>{n.port=n.port||8883,n.host=n.hostname||n.host||"localhost",l.default.isIP(n.host)===0&&(n.servername=n.host),n.rejectUnauthorized=n.rejectUnauthorized!==!1,delete n.path,o("port %d host %s rejectUnauthorized %b",n.port,n.host,n.rejectUnauthorized);let a=t.default.connect(n);a.on("secureConnect",()=>{n.rejectUnauthorized&&!a.authorized?a.emit("error",new Error("TLS not authorized")):a.removeListener("error",c)});function c(d){n.rejectUnauthorized&&s.emit("error",d),a.end()}return a.on("error",c),a};e.default=r}),$n=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var i=nr();function t(h,o){let r=new Array(h.length);for(let s=0;s<h.length;s++)typeof h[s].chunk=="string"?r[s]=lr.from(h[s].chunk,"utf8"):r[s]=h[s].chunk;this._write(lr.concat(r),"binary",o)}e.writev=t;var l=class extends i.Duplex{constructor(h,o,r){super({objectMode:!0}),this.proxy=o,this.socket=r,this.writeQueue=[],h.objectMode||(this._writev=t.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",s=>{this.push(s)})}_read(h){this.proxy.read(h)}_write(h,o,r){this.isSocketOpen?this.writeToProxy(h,o,r):this.writeQueue.push({chunk:h,encoding:o,cb:r})}_final(h){this.writeQueue=[],this.proxy.end(h)}_destroy(h,o){this.writeQueue=[],this.proxy.destroy(),o(h)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(h,o,r){this.proxy.write(h,o)===!1?this.proxy.once("drain",r):r()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:h,encoding:o,cb:r}=this.writeQueue.shift();this.writeToProxy(h,o,r)}}};e.BufferedDuplex=l}),Ro=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=(tt(),Ue(et)),t=nr(),l=$n(),h,o,r;function s(){let g=new t.Transform;return g._write=(b,m,y)=>{h.send({data:b.buffer,success(){y()},fail(I){y(new Error(I))}})},g._flush=b=>{h.close({success(){b()}})},g}function n(g){g.hostname||(g.hostname="localhost"),g.path||(g.path="/"),g.wsOptions||(g.wsOptions={})}function a(g,b){let m=g.protocol==="wxs"?"wss":"ws",y=`${m}://${g.hostname}${g.path}`;return g.port&&g.port!==80&&g.port!==443&&(y=`${m}://${g.hostname}:${g.port}${g.path}`),typeof g.transformWsUrl=="function"&&(y=g.transformWsUrl(y,g,b)),y}function c(){h.onOpen(()=>{r.socketReady()}),h.onMessage(g=>{let{data:b}=g;b instanceof ArrayBuffer?b=i.Buffer.from(b):b=i.Buffer.from(b,"utf8"),o.push(b)}),h.onClose(()=>{r.emit("close"),r.end(),r.destroy()}),h.onError(g=>{let b=new Error(g.errMsg);r.destroy(b)})}var d=(g,b)=>{if(b.hostname=b.hostname||b.host,!b.hostname)throw new Error("Could not determine host. Specify host manually.");let m=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt";n(b);let y=a(b,g);h=wx.connectSocket({url:y,protocols:[m]}),o=s(),r=new l.BufferedDuplex(b,o,h),r._destroy=(U,k)=>{h.close({success(){k&&k(U)}})};let I=r.destroy;return r.destroy=(U,k)=>(r.destroy=I,setTimeout(()=>{h.close({fail(){r._destroy(U,k)}})},0),r),c(),r};e.default=d}),Po=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=(tt(),Ue(et)),t=nr(),l=$n(),h,o,r,s=!1;function n(){let b=new t.Transform;return b._write=(m,y,I)=>{h.sendSocketMessage({data:m.buffer,success(){I()},fail(){I(new Error)}})},b._flush=m=>{h.closeSocket({success(){m()}})},b}function a(b){b.hostname||(b.hostname="localhost"),b.path||(b.path="/"),b.wsOptions||(b.wsOptions={})}function c(b,m){let y=b.protocol==="alis"?"wss":"ws",I=`${y}://${b.hostname}${b.path}`;return b.port&&b.port!==80&&b.port!==443&&(I=`${y}://${b.hostname}:${b.port}${b.path}`),typeof b.transformWsUrl=="function"&&(I=b.transformWsUrl(I,b,m)),I}function d(){s||(s=!0,h.onSocketOpen(()=>{r.socketReady()}),h.onSocketMessage(b=>{if(typeof b.data=="string"){let m=i.Buffer.from(b.data,"base64");o.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let y=m.result;y instanceof ArrayBuffer?y=i.Buffer.from(y):y=i.Buffer.from(y,"utf8"),o.push(y)}),m.readAsArrayBuffer(b.data)}}),h.onSocketClose(()=>{r.end(),r.destroy()}),h.onSocketError(b=>{r.destroy(b)}))}var g=(b,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let y=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";a(m);let I=c(m,b);return h=m.my,h.connectSocket({url:I,protocols:y}),o=n(),r=new l.BufferedDuplex(m,o,h),d(),r};e.default=g}),hu=me((e,i)=>{ae(),se(),oe(),i.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),Bo=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(e,"__esModule",{value:!0});var t=(tt(),Ue(et)),l=i(hu()),h=i(Rt()),o=nr(),r=i(Hr()),s=$n(),n=(0,h.default)("mqttjs:ws"),a=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function c(U,k){let T=`${U.protocol}://${U.hostname}:${U.port}${U.path}`;return typeof U.transformWsUrl=="function"&&(T=U.transformWsUrl(T,U,k)),T}function d(U){let k=U;return U.hostname||(k.hostname="localhost"),U.port||(U.protocol==="wss"?k.port=443:k.port=80),U.path||(k.path="/"),U.wsOptions||(k.wsOptions={}),!r.default&&U.protocol==="wss"&&a.forEach(T=>{Object.prototype.hasOwnProperty.call(U,T)&&!Object.prototype.hasOwnProperty.call(U.wsOptions,T)&&(k.wsOptions[T]=U[T])}),k}function g(U){let k=d(U);if(k.hostname||(k.hostname=k.host),!k.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let T=new URL(document.URL);k.hostname=T.hostname,k.port||(k.port=Number(T.port))}return k.objectMode===void 0&&(k.objectMode=!(k.binary===!0||k.binary===void 0)),k}function b(U,k,T){n("createWebSocket"),n(`protocol: ${T.protocolId} ${T.protocolVersion}`);let D=T.protocolId==="MQIsdp"&&T.protocolVersion===3?"mqttv3.1":"mqtt";n(`creating new Websocket for url: ${k} and protocol: ${D}`);let F;return T.createWebsocket?F=T.createWebsocket(k,[D],T):F=new l.default(k,[D],T.wsOptions),F}function m(U,k){let T=k.protocolId==="MQIsdp"&&k.protocolVersion===3?"mqttv3.1":"mqtt",D=c(k,U),F;return k.createWebsocket?F=k.createWebsocket(D,[T],k):F=new WebSocket(D,[T]),F.binaryType="arraybuffer",F}var y=(U,k)=>{n("streamBuilder");let T=d(k),D=c(T,U),F=b(U,D,T),R=l.default.createWebSocketStream(F,T.wsOptions);return R.url=D,F.on("close",()=>{R.destroy()}),R},I=(U,k)=>{n("browserStreamBuilder");let T,D=g(k).browserBufferSize||1024*512,F=k.browserBufferTimeout||1e3,R=!k.objectMode,O=m(U,k),M=G(k,K,ge);k.objectMode||(M._writev=s.writev.bind(M)),M.on("close",()=>{O.close()});let W=typeof O.addEventListener<"u";O.readyState===O.OPEN?(T=M,T.socket=O):(T=new s.BufferedDuplex(k,M,O),W?O.addEventListener("open",ee):O.onopen=ee),W?(O.addEventListener("close",E),O.addEventListener("error",q),O.addEventListener("message",Z)):(O.onclose=E,O.onerror=q,O.onmessage=Z);function G(ne,$,be){let re=new o.Transform({objectMode:ne.objectMode});return re._write=$,re._flush=be,re}function ee(){n("WebSocket onOpen"),T instanceof s.BufferedDuplex&&T.socketReady()}function E(ne){n("WebSocket onClose",ne),T.end(),T.destroy()}function q(ne){n("WebSocket onError",ne);let $=new Error("WebSocket error");$.event=ne,T.destroy($)}function Z(ne){let{data:$}=ne;$ instanceof ArrayBuffer?$=t.Buffer.from($):$=t.Buffer.from($,"utf8"),M.push($)}function K(ne,$,be){if(O.bufferedAmount>D){setTimeout(K,F,ne,$,be);return}R&&typeof ne=="string"&&(ne=t.Buffer.from(ne,"utf8"));try{O.send(ne)}catch(re){return be(re)}be()}function ge(ne){O.close(),ne()}return T};e.default=r.default?I:y}),cu=me(e=>{ae(),se(),oe();var i=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var t=i(Rt()),l=i((lu(),Ue(Hs))),h=i(_n()),o=i(Hr()),r=(0,t.default)("mqttjs"),s={};o.default?(s.wx=Ro().default,s.wxs=Ro().default,s.ali=Po().default,s.alis=Po().default):(s.mqtt=Oo().default,s.tcp=Oo().default,s.ssl=Co().default,s.tls=s.ssl,s.mqtts=Co().default),s.ws=Bo().default,s.wss=Bo().default;function n(d){let g;d.auth&&(g=d.auth.match(/^(.+):(.+)$/),g?(d.username=g[1],d.password=g[2]):d.username=d.auth)}function a(d,g){if(r("connecting to an MQTT broker..."),typeof d=="object"&&!g&&(g=d,d=""),g=g||{},d&&typeof d=="string"){let y=l.default.parse(d,!0);if(y.port!=null&&(y.port=Number(y.port)),g=Object.assign(Object.assign({},y),g),g.protocol===null)throw new Error("Missing protocol");g.protocol=g.protocol.replace(/:$/,"")}if(n(g),g.query&&typeof g.query.clientId=="string"&&(g.clientId=g.query.clientId),g.cert&&g.key)if(g.protocol){if(["mqtts","wss","wxs","alis"].indexOf(g.protocol)===-1)switch(g.protocol){case"mqtt":g.protocol="mqtts";break;case"ws":g.protocol="wss";break;case"wx":g.protocol="wxs";break;case"ali":g.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${g.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(!s[g.protocol]){let y=["mqtts","wss"].indexOf(g.protocol)!==-1;g.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((I,U)=>y&&U%2===0?!1:typeof s[I]=="function")[0]}if(g.clean===!1&&!g.clientId)throw new Error("Missing clientId for unclean clients");g.protocol&&(g.defaultProtocol=g.protocol);function b(y){return g.servers&&((!y._reconnectCount||y._reconnectCount===g.servers.length)&&(y._reconnectCount=0),g.host=g.servers[y._reconnectCount].host,g.port=g.servers[y._reconnectCount].port,g.protocol=g.servers[y._reconnectCount].protocol?g.servers[y._reconnectCount].protocol:g.defaultProtocol,g.hostname=g.host,y._reconnectCount++),r("calling streambuilder for",g.protocol),s[g.protocol](y,g)}let m=new h.default(b,g);return m.on("error",()=>{}),m}function c(d,g,b=!0){return new Promise((m,y)=>{let I=a(d,g),U={connect:T=>{k(),m(I)},end:()=>{k(),m(I)},error:T=>{k(),I.end(),y(T)}};b===!1&&(U.close=()=>{U.error(new Error("Couldn't connect to server"))});function k(){Object.keys(U).forEach(T=>{I.off(T,U[T])})}Object.keys(U).forEach(T=>{I.on(T,U[T])})})}e.connectAsync=c,e.default=a}),xo=me(e=>{ae(),se(),oe();var i=e&&e.__createBinding||(Object.create?function(b,m,y,I){I===void 0&&(I=y);var U=Object.getOwnPropertyDescriptor(m,y);(!U||("get"in U?!m.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return m[y]}}),Object.defineProperty(b,I,U)}:function(b,m,y,I){I===void 0&&(I=y),b[I]=m[y]}),t=e&&e.__setModuleDefault||(Object.create?function(b,m){Object.defineProperty(b,"default",{enumerable:!0,value:m})}:function(b,m){b.default=m}),l=e&&e.__importStar||function(b){if(b&&b.__esModule)return b;var m={};if(b!=null)for(var y in b)y!=="default"&&Object.prototype.hasOwnProperty.call(b,y)&&i(m,b,y);return t(m,b),m},h=e&&e.__exportStar||function(b,m){for(var y in b)y!=="default"&&!Object.prototype.hasOwnProperty.call(m,y)&&i(m,b,y)},o=e&&e.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.PingTimer=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var r=o(_n());e.MqttClient=r.default;var s=o(Es());e.DefaultMessageIdProvider=s.default;var n=o(zl());e.UniqueMessageIdProvider=n.default;var a=o(Ss());e.Store=a.default;var c=l(cu());e.connect=c.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return c.connectAsync}});var d=o(Ds());e.PingTimer=d.default,e.Client=r.default,h(_n(),e),h(vr(),e);var g=Vr();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return g.ReasonCodes}})}),fu=me(e=>{ae(),se(),oe();var i=e&&e.__createBinding||(Object.create?function(r,s,n,a){a===void 0&&(a=n);var c=Object.getOwnPropertyDescriptor(s,n);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[n]}}),Object.defineProperty(r,a,c)}:function(r,s,n,a){a===void 0&&(a=n),r[a]=s[n]}),t=e&&e.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:!0,value:s})}:function(r,s){r.default=s}),l=e&&e.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var n in r)n!=="default"&&Object.prototype.hasOwnProperty.call(r,n)&&i(s,r,n);return t(s,r),s},h=e&&e.__exportStar||function(r,s){for(var n in r)n!=="default"&&!Object.prototype.hasOwnProperty.call(s,n)&&i(s,r,n)};Object.defineProperty(e,"__esModule",{value:!0});var o=l(xo());e.default=o,h(xo(),e)});const du=fu();/*! Bundled license information:
|
|
6
|
+
|
|
7
|
+
@jspm/core/nodelibs/browser/buffer.js:
|
|
8
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
9
|
+
*/const Qt=class Qt{constructor(i){Le(this,"client",null);this.options=i,console.log("options",i),this.options=i}static getInstance(i){return Qt.instance||(Qt.instance=new Qt(i)),Qt.instance}connect(){this.client||(console.log("options",this.options),this.client=du.connect(this.options),this.client.on("connect",()=>{console.log("Connected to MQTT broker")}),this.client.on("error",i=>{console.error("MQTT error:",i)}))}disconnect(){this.client&&(this.client.end(),this.client=null,console.log("Disconnected from MQTT broker"))}subscribe(i,t){this.client&&(this.client.subscribe(i,t),console.log("Subscribed to topic:",i))}publish(i,t,l){this.client&&(this.client.publish(i,t,l),console.log("Published message to topic:",i))}onMessage(i){this.client&&this.client.on("message",i)}};Le(Qt,"instance",null);let Rn=Qt;const pu=Mo.useUserInfo(),{userInfos:gu}=Mo.storeToRefs(pu),bu=()=>({protocol:"mqtt",host:"127.0.0.1",port:8083,path:"/mqtt",wsOptions:{},protocolVersion:4,keepalive:60,clean:!1,clientId:"mqttjs_"+gu.value.id,username:"MQTT1",password:"123456",queueQoSZero:!0,reconnectPeriod:1e4,connectTimeout:100*1e3,resubscribe:!0});let mu="topic1",yu=1;const Ur=Rn.getInstance({...bu()});Ur.subscribe(mu,{qos:yu});const wu={beforeMount(e,i){console.log("beforeMount",e.focus,i);const t=l=>{l.key===i.arg&&i.arg&&i.value(l)};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}},vu=wu,_u={class:"h-full"},Eu=Me.defineComponent({name:"operationlog"}),Su=Me.defineComponent({...Eu,setup(e){Me.ref([]);const i=Me.ref("");let t=Me.ref([]);const l=()=>{Ur.connect(),Ur.onMessage((o,r)=>{console.log("res",o,JSON.parse(r.toString())),t.value.push(JSON.parse(r.toString()))})},h=()=>{Ur.publish("topic1",JSON.stringify(i.value)),i.value=""};return(o,r)=>{const s=Me.resolveComponent("hs-button"),n=Me.resolveComponent("hs-input"),a=Me.resolveComponent("hs-scrollbar");return Me.openBlock(),Me.createElementBlock("div",_u,[Me.createVNode(s,{onClick:l},{default:Me.withCtx(()=>[Me.createTextVNode("初始化MQ")]),_:1}),Me.withDirectives(Me.createVNode(n,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=c=>i.value=c)},null,8,["modelValue"]),[[Me.unref(vu),h,"Enter"]]),Me.createVNode(a,{style:{height:"500px",width:"600px"}},{default:Me.withCtx(()=>[(Me.openBlock(!0),Me.createElementBlock(Me.Fragment,null,Me.renderList(Me.unref(t),(c,d)=>(Me.openBlock(),Me.createElementBlock("div",{key:d},[Me.createElementVNode("pre",null,Me.toDisplayString(c),1)]))),128))]),_:1})])}}});exports.default=Su;
|