hs-admin-ui 5.2.2 → 5.2.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.
Files changed (545) hide show
  1. package/dist/{401-BqE1YOzy.mjs → 401-Bgl9Hsd1.mjs} +1 -1
  2. package/dist/401-Bgl9Hsd1.mjs.gz +0 -0
  3. package/dist/{401-DanmPSo3.js → 401-XKsLTfnD.js} +1 -1
  4. package/dist/401-XKsLTfnD.js.gz +0 -0
  5. package/dist/{404-D3N1ows1.js → 404-DMBvQp4G.js} +1 -1
  6. package/dist/404-DMBvQp4G.js.gz +0 -0
  7. package/dist/{404-B7Pr9sbH.mjs → 404-ggAtQQTz.mjs} +1 -1
  8. package/dist/404-ggAtQQTz.mjs.gz +0 -0
  9. package/dist/{account-BQGAlAmO.js → account-7-dW808a.js} +1 -1
  10. package/dist/account-7-dW808a.js.gz +0 -0
  11. package/dist/{account-DRgRwrh6.mjs → account-B5g5HGxj.mjs} +2 -2
  12. package/dist/account-B5g5HGxj.mjs.gz +0 -0
  13. package/dist/{aside-DIKlpxhk.mjs → aside-CRJ_4kWc.mjs} +2 -2
  14. package/dist/aside-CRJ_4kWc.mjs.gz +0 -0
  15. package/dist/{aside-n5YmpJzL.js → aside-E1RfQwVb.js} +1 -1
  16. package/dist/aside-E1RfQwVb.js.gz +0 -0
  17. package/dist/{bianjiqi-BXAzgga8.mjs → bianjiqi-BY4Dg1lS.mjs} +1 -1
  18. package/dist/bianjiqi-BY4Dg1lS.mjs.gz +0 -0
  19. package/dist/{bianjiqi-BJEZ_4JT.js → bianjiqi-pVDvGunr.js} +1 -1
  20. package/dist/bianjiqi-pVDvGunr.js.gz +0 -0
  21. package/dist/{btnIndex-oV9wlNkl.mjs → btnIndex-CNHQB57x.mjs} +2 -2
  22. package/dist/btnIndex-CNHQB57x.mjs.gz +0 -0
  23. package/dist/{btnIndex-7CYD9JZj.js → btnIndex-xs_InKSE.js} +1 -1
  24. package/dist/btnIndex-xs_InKSE.js.gz +0 -0
  25. package/dist/{classic-CwwcvuQ9.mjs → classic-9r3z2134.mjs} +2 -2
  26. package/dist/classic-9r3z2134.mjs.gz +0 -0
  27. package/dist/{classic-BN2ZNa7I.js → classic-BBM8uCLB.js} +1 -1
  28. package/dist/classic-BBM8uCLB.js.gz +0 -0
  29. package/dist/{cloneConfigDialog-CuyvEuti.mjs → cloneConfigDialog-CwvWgALj.mjs} +1 -1
  30. package/dist/cloneConfigDialog-CwvWgALj.mjs.gz +0 -0
  31. package/dist/{cloneConfigDialog-BN8T86o4.js → cloneConfigDialog-DolBwSRh.js} +1 -1
  32. package/dist/cloneConfigDialog-DolBwSRh.js.gz +0 -0
  33. package/dist/{columns-2h-W_aY8.mjs → columns-CAiMfaIT.mjs} +2 -2
  34. package/dist/columns-CAiMfaIT.mjs.gz +0 -0
  35. package/dist/{columns-ZNAfTyXx.js → columns-DuZvjUgK.js} +1 -1
  36. package/dist/columns-DuZvjUgK.js.gz +0 -0
  37. package/dist/{columnsAside-CPvmdePY.mjs → columnsAside-CfDFMEpP.mjs} +1 -1
  38. package/dist/columnsAside-CfDFMEpP.mjs.gz +0 -0
  39. package/dist/{columnsAside-nzDmSb94.js → columnsAside-DdQ55m8w.js} +1 -1
  40. package/dist/columnsAside-DdQ55m8w.js.gz +0 -0
  41. package/dist/{contextmenu-CSOqRY88.mjs → contextmenu-B89AvVcP.mjs} +1 -1
  42. package/dist/contextmenu-B89AvVcP.mjs.gz +0 -0
  43. package/dist/{contextmenu-Cpj7XoNT.mjs → contextmenu-Bgi4ERnL.mjs} +1 -1
  44. package/dist/contextmenu-Bgi4ERnL.mjs.gz +0 -0
  45. package/dist/{contextmenu-gfyoPG5f.js → contextmenu-CQ8SohMx.js} +1 -1
  46. package/dist/contextmenu-CQ8SohMx.js.gz +0 -0
  47. package/dist/{contextmenu-QeUUN2cI.js → contextmenu-CghV7uwr.js} +1 -1
  48. package/dist/contextmenu-CghV7uwr.js.gz +0 -0
  49. package/dist/{contextmenu-CJnkl7sM.mjs → contextmenu-_1VsEfF0.mjs} +1 -1
  50. package/dist/contextmenu-_1VsEfF0.mjs.gz +0 -0
  51. package/dist/{contextmenu-RRZiZtYO.js → contextmenu-_LAVaTU3.js} +1 -1
  52. package/dist/contextmenu-_LAVaTU3.js.gz +0 -0
  53. package/dist/{defaults-_BEEZ-FB.mjs → defaults-B4Hvo8uR.mjs} +2 -2
  54. package/dist/defaults-B4Hvo8uR.mjs.gz +0 -0
  55. package/dist/{defaults-Dd0smIzI.js → defaults-Ckq_3nbB.js} +1 -1
  56. package/dist/defaults-Ckq_3nbB.js.gz +0 -0
  57. package/dist/{dialog-BeRqcOc6.mjs → dialog-C4yr7S-o.mjs} +1 -1
  58. package/dist/{dialog-D4-HItB2.js → dialog-CnBiiyel.js} +1 -1
  59. package/dist/{dialog-FBoYtMsu.mjs → dialog-Cn_QUx63.mjs} +1 -1
  60. package/dist/{dialog-C89DSEPM.js → dialog-CvmG2UXh.js} +1 -1
  61. package/dist/{dialog-Cj-XYaH7.js → dialog-DRuQ_prO.js} +1 -1
  62. package/dist/{dialog-EQnMZ3mD.mjs → dialog-l3LA66sU.mjs} +1 -1
  63. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CYGVBU4z.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-3zt0fEz_.mjs} +2 -2
  64. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-3zt0fEz_.mjs.gz +0 -0
  65. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C8y1-dG2.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BHIi7IDL.js} +1 -1
  66. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BHIi7IDL.js.gz +0 -0
  67. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DebxaRim.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D54LEZ81.js} +1 -1
  68. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D54LEZ81.js.gz +0 -0
  69. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BlQQXEz-.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DHn3hTcN.mjs} +2 -2
  70. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DHn3hTcN.mjs.gz +0 -0
  71. package/dist/{dictDialog-CMXNnZlv.js → dictDialog-DSZuvdK8.js} +1 -1
  72. package/dist/{dictDialog-CGKHo7xy.mjs → dictDialog-l719nz9y.mjs} +1 -1
  73. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Dbg3vj5Y.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B-PevQJQ.js} +1 -1
  74. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B-PevQJQ.js.gz +0 -0
  75. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BUIb0dCb.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CQ1RBqcK.mjs} +2 -2
  76. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CQ1RBqcK.mjs.gz +0 -0
  77. package/dist/{dictItemDialog-Dgw2aSeS.js → dictItemDialog-CglhB4CE.js} +1 -1
  78. package/dist/{dictItemDialog-rALVryR0.mjs → dictItemDialog-DXFQsMa6.mjs} +1 -1
  79. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-C7RPIR8H.js → dictItemDialog.vue_vue_type_script_setup_true_lang-50Fht9RA.js} +1 -1
  80. package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-50Fht9RA.js.gz +0 -0
  81. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-CZY-MYlB.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-CMdald_v.mjs} +2 -2
  82. package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-CMdald_v.mjs.gz +0 -0
  83. package/dist/{editDialog-Drez3I4A.mjs → editDialog-D_wd_aWR.mjs} +1 -1
  84. package/dist/editDialog-D_wd_aWR.mjs.gz +0 -0
  85. package/dist/{editDialog-D2BvSSUX.js → editDialog-XPR8cGdK.js} +1 -1
  86. package/dist/editDialog-XPR8cGdK.js.gz +0 -0
  87. package/dist/{formConfig-DLxfRbHa.js → formConfig-C1rpJnhm.js} +1 -1
  88. package/dist/formConfig-C1rpJnhm.js.gz +0 -0
  89. package/dist/{formConfig-BPe5PGkp.mjs → formConfig-e1NbIf0E.mjs} +4 -4
  90. package/dist/formConfig-e1NbIf0E.mjs.gz +0 -0
  91. package/dist/{header-CNLHkCWJ.mjs → header-Cdxiszth.mjs} +2 -2
  92. package/dist/{header-DPxYPsDS.js → header-DDvb3DZe.js} +1 -1
  93. package/dist/{horizontal-Pe36f-A5.js → horizontal-DOGKK3wZ.js} +1 -1
  94. package/dist/horizontal-DOGKK3wZ.js.gz +0 -0
  95. package/dist/{horizontal-_UpIWZcU.mjs → horizontal-Dt2hu0K9.mjs} +2 -2
  96. package/dist/horizontal-Dt2hu0K9.mjs.gz +0 -0
  97. package/dist/{hsAttrBtn-CILdb4x-.mjs → hsAttrBtn-BUg-Cvwm.mjs} +1 -1
  98. package/dist/{hsAttrBtn-BjrMYLBi.js → hsAttrBtn-h5ctWT_J.js} +1 -1
  99. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BJSgjhPL.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-DzLEUyTI.mjs} +3 -3
  100. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-DzLEUyTI.mjs.gz +0 -0
  101. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BhAR9cip.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-gGxUxf-4.js} +1 -1
  102. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-gGxUxf-4.js.gz +0 -0
  103. package/dist/{hsAttrForm-DbULKUh7.mjs → hsAttrForm-D4Gzu3Wl.mjs} +1 -1
  104. package/dist/{hsAttrForm-dAR5cpLQ.js → hsAttrForm-MHBOo9a9.js} +1 -1
  105. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-CjDpvpFd.js → hsAttrForm.vue_vue_type_script_setup_true_lang-DZ4bFJ9A.js} +1 -1
  106. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DZ4bFJ9A.js.gz +0 -0
  107. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DsbPlOB4.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-Ezf79k9L.mjs} +2 -2
  108. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Ezf79k9L.mjs.gz +0 -0
  109. package/dist/{hsBtnConfigList-CNtbu9XZ.js → hsBtnConfigList-C7f_CTRC.js} +1 -1
  110. package/dist/hsBtnConfigList-C7f_CTRC.js.gz +0 -0
  111. package/dist/{hsBtnConfigList-RkR-DthG.mjs → hsBtnConfigList-DIvZunw9.mjs} +1 -1
  112. package/dist/hsBtnConfigList-DIvZunw9.mjs.gz +0 -0
  113. package/dist/{hsBtnItemConfig-BAEMkrXB.js → hsBtnItemConfig-1IWX7Q_r.js} +1 -1
  114. package/dist/{hsBtnItemConfig-BrgPJCoD.mjs → hsBtnItemConfig-9-328yQx.mjs} +1 -1
  115. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-D7q2W52k.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-n0EO9DKf.mjs} +1 -1
  116. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-n0EO9DKf.mjs.gz +0 -0
  117. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DDiqQEPe.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-rdw6Lles.js} +1 -1
  118. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-rdw6Lles.js.gz +0 -0
  119. package/dist/{hsBtnPanel-lOta6MCQ.mjs → hsBtnPanel-DMgNxz_h.mjs} +1 -1
  120. package/dist/{hsBtnPanel-BB3e1KK1.js → hsBtnPanel-JQpqJtre.js} +1 -1
  121. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-13lrd_zB.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmJ2-77J.js} +1 -1
  122. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmJ2-77J.js.gz +0 -0
  123. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D_2bzb0P.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-TIyJE-U4.mjs} +4 -4
  124. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-TIyJE-U4.mjs.gz +0 -0
  125. package/dist/{hsExpand-BH3cilUb.mjs → hsExpand-BVvjhAQH.mjs} +1 -1
  126. package/dist/{hsExpand-CO4IRGdu.js → hsExpand-t-apSZog.js} +1 -1
  127. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-BqNexgmU.mjs → hsExpand.vue_vue_type_script_setup_true_lang-DQ7BRCPB.mjs} +1 -1
  128. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-DQ7BRCPB.mjs.gz +0 -0
  129. package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-BffrUYo1.js → hsExpand.vue_vue_type_script_setup_true_lang-DZcw3y28.js} +1 -1
  130. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-DZcw3y28.js.gz +0 -0
  131. package/dist/{hsFormConfig-022gbiJe.mjs → hsFormConfig-BQntcl83.mjs} +1 -1
  132. package/dist/hsFormConfig-BQntcl83.mjs.gz +0 -0
  133. package/dist/{hsFormConfig-Nf8tPcea.js → hsFormConfig-CHZLazWz.js} +1 -1
  134. package/dist/hsFormConfig-CHZLazWz.js.gz +0 -0
  135. package/dist/{hsFormConfigList-DpXuhONS.mjs → hsFormConfigList--iAWreoW.mjs} +2 -2
  136. package/dist/hsFormConfigList--iAWreoW.mjs.gz +0 -0
  137. package/dist/{hsFormConfigList-C-_JBlvl.js → hsFormConfigList-Dap5E7cZ.js} +1 -1
  138. package/dist/hsFormConfigList-Dap5E7cZ.js.gz +0 -0
  139. package/dist/{hsFormPanel-C6gAz1b4.js → hsFormPanel-CUnuZb4W.js} +1 -1
  140. package/dist/{hsFormPanel-CNLVI4xZ.mjs → hsFormPanel-dZDr-Jpo.mjs} +1 -1
  141. package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D7dH2qdu.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DYZnQNuu.mjs} +5 -5
  142. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DYZnQNuu.mjs.gz +0 -0
  143. package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D_2gQBzg.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DZfomknt.js} +1 -1
  144. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DZfomknt.js.gz +0 -0
  145. package/dist/{hsFormParse-DD9ZnQTs.js → hsFormParse-C3Hl-1nH.js} +1 -1
  146. package/dist/{hsFormParse-CQtEixaR.mjs → hsFormParse-DFYiCV5E.mjs} +1 -1
  147. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CKmbwKXi.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-KGGejDd1.mjs} +1 -1
  148. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-KGGejDd1.mjs.gz +0 -0
  149. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-beMeVFkO.js → hsFormParse.vue_vue_type_script_setup_true_lang-_x-i0XAb.js} +1 -1
  150. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-_x-i0XAb.js.gz +0 -0
  151. package/dist/{hsPanelItem-sFZfbkyL.mjs → hsPanelItem-CYoYHXqT.mjs} +1 -1
  152. package/dist/{hsPanelItem-BEsCwGSk.js → hsPanelItem-D_sFg0AC.js} +1 -1
  153. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CAkHO1T2.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CH0Sg5qZ.mjs} +1 -1
  154. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CH0Sg5qZ.mjs.gz +0 -0
  155. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CLTLbAFl.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CbUbqHXw.js} +1 -1
  156. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CbUbqHXw.js.gz +0 -0
  157. package/dist/{iframes-BHPgW113.js → iframes-CF9TKuJ-.js} +1 -1
  158. package/dist/iframes-CF9TKuJ-.js.gz +0 -0
  159. package/dist/{iframes-bQrrj1zj.mjs → iframes-DbWG1UIX.mjs} +1 -1
  160. package/dist/iframes-DbWG1UIX.mjs.gz +0 -0
  161. package/dist/{index-Cncge4P_.js → index-0FjgT8-u.js} +1 -1
  162. package/dist/{index-CtsoCllR.mjs → index-2A8CDI0b.mjs} +2 -2
  163. package/dist/index-2A8CDI0b.mjs.gz +0 -0
  164. package/dist/{index-C46LD8hC.js → index-2FxEFbxj.js} +1 -1
  165. package/dist/{index-Cwc3wofV.mjs → index-6tPU2ScB.mjs} +4 -4
  166. package/dist/index-6tPU2ScB.mjs.gz +0 -0
  167. package/dist/{index-DXP3M3Zh.js → index-9_tkrQOd.js} +1 -1
  168. package/dist/{index-Bfru8tVy.js → index-AKPGDM3S.js} +1 -1
  169. package/dist/index-AKPGDM3S.js.gz +0 -0
  170. package/dist/{index-DeWqbGfG.mjs → index-B-DzfzGr.mjs} +2 -2
  171. package/dist/index-B-DzfzGr.mjs.gz +0 -0
  172. package/dist/{index-DDafRxk9.js → index-B04feXu0.js} +1 -1
  173. package/dist/{index-BD-scGKb.mjs → index-B1E5dYR_.mjs} +4 -4
  174. package/dist/index-B1E5dYR_.mjs.gz +0 -0
  175. package/dist/{index-BF4NK6DU.mjs → index-B3IRM-b0.mjs} +1 -1
  176. package/dist/index-B3IRM-b0.mjs.gz +0 -0
  177. package/dist/{index-BEKDwdtn.mjs → index-BG9FjLHa.mjs} +1 -1
  178. package/dist/index-BG9FjLHa.mjs.gz +0 -0
  179. package/dist/{index-BjKI-o_L.mjs → index-BNtX7UJh.mjs} +1 -1
  180. package/dist/index-BNtX7UJh.mjs.gz +0 -0
  181. package/dist/{index-CKpO83uh.mjs → index-BOJGpQtB.mjs} +1 -1
  182. package/dist/{index-BjNCv-_F.js → index-BT8_otUZ.js} +1 -1
  183. package/dist/index-BT8_otUZ.js.gz +0 -0
  184. package/dist/{index-C9JKmkU8.js → index-BVAv63o0.js} +1 -1
  185. package/dist/index-BVAv63o0.js.gz +0 -0
  186. package/dist/{index-mq-Rfwdc.js → index-BVBDCVvR.js} +1 -1
  187. package/dist/{index-CMt03TpT.mjs → index-B_-RQmDt.mjs} +1 -1
  188. package/dist/{index-Dctt5HGn.mjs → index-BrJXe4Cx.mjs} +1 -1
  189. package/dist/{index-BVfHJA8h.mjs → index-BsHmq7LP.mjs} +1 -1
  190. package/dist/index-BsHmq7LP.mjs.gz +0 -0
  191. package/dist/{index-CRyXqDE1.js → index-BsIN8Pl2.js} +1 -1
  192. package/dist/{index-C_nWDI3u.mjs → index-BuLpWNik.mjs} +1 -1
  193. package/dist/{index-Yo_F9f5y.mjs → index-BuOnqVnX.mjs} +1 -1
  194. package/dist/{index-C68lbCQr.mjs → index-BxJvOC-6.mjs} +1 -1
  195. package/dist/index-BxJvOC-6.mjs.gz +0 -0
  196. package/dist/{index-CRpL62LT.js → index-C3i2Jwrt.js} +1 -1
  197. package/dist/index-C3i2Jwrt.js.gz +0 -0
  198. package/dist/{index-DW5IXR1p.js → index-C49LBMY8.js} +1 -1
  199. package/dist/index-C49LBMY8.js.gz +0 -0
  200. package/dist/{index-DjJOSH40.js → index-C7PBb8Xo.js} +1 -1
  201. package/dist/index-C8AfcBqh.mjs +4 -0
  202. package/dist/{index-C1eu1MC4.js → index-C9QRilzP.js} +1 -1
  203. package/dist/index-C9QRilzP.js.gz +0 -0
  204. package/dist/{index-DpBeLmc-.mjs → index-C9RrBED4.mjs} +3 -3
  205. package/dist/index-C9RrBED4.mjs.gz +0 -0
  206. package/dist/{index-B5SM4D_7.mjs → index-C9bub2RG.mjs} +2 -2
  207. package/dist/{index-BWlJ-TlP.mjs → index-CHqFTKsz.mjs} +1 -1
  208. package/dist/index-CHqFTKsz.mjs.gz +0 -0
  209. package/dist/{index-hoYTETxr.js → index-CHuRvEQ6.js} +1 -1
  210. package/dist/index-CHuRvEQ6.js.gz +0 -0
  211. package/dist/{index-CFReLKVA.mjs → index-CN3Rbhbd.mjs} +1 -1
  212. package/dist/{index-BYMH6n37.js → index-CWkUGaa4.js} +1 -1
  213. package/dist/index-CWkUGaa4.js.gz +0 -0
  214. package/dist/{index-Dxu5Bg4g.js → index-CZCC8evu.js} +1 -1
  215. package/dist/index-CZCC8evu.js.gz +0 -0
  216. package/dist/{index-D-dpJqTq.mjs → index-CZmjTD39.mjs} +1 -1
  217. package/dist/index-CZmjTD39.mjs.gz +0 -0
  218. package/dist/{index-CcvkcXAf.mjs → index-C_DhF31-.mjs} +5 -5
  219. package/dist/index-C_DhF31-.mjs.gz +0 -0
  220. package/dist/{index-BvSpZqYs.mjs → index-Cbhku8kE.mjs} +2 -2
  221. package/dist/index-Cbhku8kE.mjs.gz +0 -0
  222. package/dist/{index-CU8DosPl.js → index-CcCJGf9l.js} +1 -1
  223. package/dist/{index-B-bS49NH.js → index-ChZ5nJ2F.js} +1 -1
  224. package/dist/index-ChZ5nJ2F.js.gz +0 -0
  225. package/dist/{index-CEQs_NNp.mjs → index-CoidLGbO.mjs} +1 -1
  226. package/dist/{index-D4ZLyZtK.js → index-CsDGhX_e.js} +1 -1
  227. package/dist/index-CsDGhX_e.js.gz +0 -0
  228. package/dist/{index-BfDCHyAU.mjs → index-CzZDA7UH.mjs} +3 -3
  229. package/dist/index-CzZDA7UH.mjs.gz +0 -0
  230. package/dist/{index-D9-d8l_Z.mjs → index-DCXLtDZ7.mjs} +2 -2
  231. package/dist/index-DCXLtDZ7.mjs.gz +0 -0
  232. package/dist/{index-S3kFjXnd.js → index-DQzR21D2.js} +1 -1
  233. package/dist/index-DQzR21D2.js.gz +0 -0
  234. package/dist/{index-BbpyWm2v.js → index-DW0oeV1C.js} +1 -1
  235. package/dist/index-DW0oeV1C.js.gz +0 -0
  236. package/dist/{index-YTBTdAau.mjs → index-DYpgvI59.mjs} +2 -2
  237. package/dist/index-DYpgvI59.mjs.gz +0 -0
  238. package/dist/{index-CH1fmrdz.js → index-DZL679lc.js} +1 -1
  239. package/dist/index-DZL679lc.js.gz +0 -0
  240. package/dist/{index-B6enRhSp.js → index-DbIYQlzO.js} +1 -1
  241. package/dist/index-DbIYQlzO.js.gz +0 -0
  242. package/dist/{index-BNrnTpwL.js → index-Dgo-KY_2.js} +1 -1
  243. package/dist/index-Dgo-KY_2.js.gz +0 -0
  244. package/dist/{index-_2WA2Ak8.js → index-DgojvGae.js} +1 -1
  245. package/dist/{index-C3rBesZY.mjs → index-DiaQVdgE.mjs} +1 -1
  246. package/dist/index-DiaQVdgE.mjs.gz +0 -0
  247. package/dist/{index--LMVtlap.mjs → index-DngQR0HU.mjs} +9 -9
  248. package/dist/{index--LMVtlap.mjs.gz → index-DngQR0HU.mjs.gz} +0 -0
  249. package/dist/{index-DO3h-Hkl.js → index-DrBYPS-D.js} +1 -1
  250. package/dist/index-DrBYPS-D.js.gz +0 -0
  251. package/dist/{index-e0IXiYGc.mjs → index-DvlQtfXG.mjs} +2 -2
  252. package/dist/index-DvlQtfXG.mjs.gz +0 -0
  253. package/dist/{index-CzQy3Tjw.js → index-E874v-_8.js} +1 -1
  254. package/dist/index-E874v-_8.js.gz +0 -0
  255. package/dist/{index-CNVOIj3m.js → index-FWdm_XYf.js} +1 -1
  256. package/dist/index-FWdm_XYf.js.gz +0 -0
  257. package/dist/{index-BfjtUSDM.js → index-GzTuun9a.js} +1 -1
  258. package/dist/{index-CxkY0y4P.js → index-H7ynJRD_.js} +1 -1
  259. package/dist/index-H7ynJRD_.js.gz +0 -0
  260. package/dist/{index-lZglLkmG.mjs → index-XNF4o-1N.mjs} +1 -1
  261. package/dist/{index-B6USeuwK.mjs → index-_QChAWKr.mjs} +2 -2
  262. package/dist/index-_QChAWKr.mjs.gz +0 -0
  263. package/dist/{index-qbSLx3ev.mjs → index-aaGzNaDm.mjs} +1 -1
  264. package/dist/index-aaGzNaDm.mjs.gz +0 -0
  265. package/dist/{index-CU0OIHLD.mjs → index-dJpwq9mx.mjs} +1 -1
  266. package/dist/index-dJpwq9mx.mjs.gz +0 -0
  267. package/dist/{index-B1z2Szhg.js → index-idpuTdGt.js} +1 -1
  268. package/dist/index-idpuTdGt.js.gz +0 -0
  269. package/dist/{index-BB7DTBz5.js → index-ksoVkLK8.js} +3 -3
  270. package/dist/{index-BB7DTBz5.js.gz → index-ksoVkLK8.js.gz} +0 -0
  271. package/dist/{index-oe1_u4vQ.js → index-mH3d_y4j.js} +1 -1
  272. package/dist/{index-BVJYYVZ-.js → index-rKUl7BHf.js} +1 -1
  273. package/dist/index-rKUl7BHf.js.gz +0 -0
  274. package/dist/{index-Dw1Gs-iy.mjs → index-rNPmR0go.mjs} +1 -1
  275. package/dist/index.js +1 -1
  276. package/dist/index.mjs +1 -1
  277. package/dist/{index.vue_vue_type_script_setup_true_lang-CBVQUcc3.mjs → index.vue_vue_type_script_setup_true_lang-BJXPmNS4.mjs} +1 -1
  278. package/dist/index.vue_vue_type_script_setup_true_lang-BJXPmNS4.mjs.gz +0 -0
  279. package/dist/{index.vue_vue_type_script_setup_true_lang-pBMlM_Qo.js → index.vue_vue_type_script_setup_true_lang-Bx5R10X7.js} +1 -1
  280. package/dist/{index.vue_vue_type_script_setup_true_lang-D_BxqW8g.mjs → index.vue_vue_type_script_setup_true_lang-C8wsE_4S.mjs} +1 -1
  281. package/dist/index.vue_vue_type_script_setup_true_lang-C8wsE_4S.mjs.gz +0 -0
  282. package/dist/{index.vue_vue_type_script_setup_true_lang-D6X6LQGP.js → index.vue_vue_type_script_setup_true_lang-DLMglf2g.js} +1 -1
  283. package/dist/index.vue_vue_type_script_setup_true_lang-DLMglf2g.js.gz +0 -0
  284. package/dist/{index.vue_vue_type_script_setup_true_lang-Cs2m2u2n.js → index.vue_vue_type_script_setup_true_lang-DRdRW9pG.js} +1 -1
  285. package/dist/index.vue_vue_type_script_setup_true_lang-DRdRW9pG.js.gz +0 -0
  286. package/dist/{index.vue_vue_type_script_setup_true_lang-m5x0IkVb.mjs → index.vue_vue_type_script_setup_true_lang-DrTKwjL4.mjs} +1 -1
  287. package/dist/index.vue_vue_type_script_setup_true_lang-DrTKwjL4.mjs.gz +0 -0
  288. package/dist/{index.vue_vue_type_script_setup_true_lang-B3yuMHq8.mjs → index.vue_vue_type_script_setup_true_lang-DsczaZjJ.mjs} +4 -4
  289. package/dist/index.vue_vue_type_script_setup_true_lang-DsczaZjJ.mjs.gz +0 -0
  290. package/dist/{index.vue_vue_type_script_setup_true_lang-CARedGcs.js → index.vue_vue_type_script_setup_true_lang-VJlqAtWe.js} +1 -1
  291. package/dist/index.vue_vue_type_script_setup_true_lang-VJlqAtWe.js.gz +0 -0
  292. package/dist/{link-Dy3S2EFK.js → link-CApA1lEZ.js} +1 -1
  293. package/dist/link-CApA1lEZ.js.gz +0 -0
  294. package/dist/{link-DuDg_SgS.mjs → link-CSQmTIVh.mjs} +1 -1
  295. package/dist/link-CSQmTIVh.mjs.gz +0 -0
  296. package/dist/{list-b1t-mOFm.js → list-BtzEVEAH.js} +1 -1
  297. package/dist/list-BtzEVEAH.js.gz +0 -0
  298. package/dist/{list-CWnOfz70.mjs → list-DZSeCcUE.mjs} +1 -1
  299. package/dist/list-DZSeCcUE.mjs.gz +0 -0
  300. package/dist/{main-DSsyckeS.mjs → main-A4pkoAFI.mjs} +2 -2
  301. package/dist/main-A4pkoAFI.mjs.gz +0 -0
  302. package/dist/{main-VwObYHp4.js → main-EASQoQgD.js} +1 -1
  303. package/dist/main-EASQoQgD.js.gz +0 -0
  304. package/dist/{mobile-CMxrq7JU.js → mobile-BpZwjv4l.js} +1 -1
  305. package/dist/mobile-BpZwjv4l.js.gz +0 -0
  306. package/dist/{mobile-B0aSBT9T.mjs → mobile-CoPSAQrh.mjs} +1 -1
  307. package/dist/mobile-CoPSAQrh.mjs.gz +0 -0
  308. package/dist/{parent-BM3WPXKs.js → parent-C1EN4P0w.js} +1 -1
  309. package/dist/parent-C1EN4P0w.js.gz +0 -0
  310. package/dist/{parent-PqabQQWk.mjs → parent-CQlSi6H2.mjs} +2 -2
  311. package/dist/parent-CQlSi6H2.mjs.gz +0 -0
  312. package/dist/{replaceRules-DCDfhacW.js → replaceRules-Cm58rEAt.js} +1 -1
  313. package/dist/replaceRules-Cm58rEAt.js.gz +0 -0
  314. package/dist/{replaceRules-CTvh1fvr.mjs → replaceRules-YFj-pURC.mjs} +1 -1
  315. package/dist/replaceRules-YFj-pURC.mjs.gz +0 -0
  316. package/dist/{roleItem-BO5d5NTY.mjs → roleItem-C23qaHa7.mjs} +1 -1
  317. package/dist/roleItem-C23qaHa7.mjs.gz +0 -0
  318. package/dist/{roleItem-BIN1xg3u.js → roleItem-CcCctqtW.js} +1 -1
  319. package/dist/roleItem-CcCctqtW.js.gz +0 -0
  320. package/dist/{saveForm-BWjved-S.mjs → saveForm-BAYZ4KNc.mjs} +1 -1
  321. package/dist/{saveForm-C3yZFeYU.js → saveForm-BcpLsh3X.js} +1 -1
  322. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-tGraSly6.js → saveForm.vue_vue_type_script_setup_true_lang-BZILhWmD.js} +1 -1
  323. package/dist/saveForm.vue_vue_type_script_setup_true_lang-BZILhWmD.js.gz +0 -0
  324. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-BgeqF3_t.mjs → saveForm.vue_vue_type_script_setup_true_lang-yY-oHurA.mjs} +2 -2
  325. package/dist/saveForm.vue_vue_type_script_setup_true_lang-yY-oHurA.mjs.gz +0 -0
  326. package/dist/{scan-DeGC9bD0.mjs → scan-BPW2OLIV.mjs} +1 -1
  327. package/dist/scan-BPW2OLIV.mjs.gz +0 -0
  328. package/dist/{scan-DBfGuMxb.js → scan-BzoTMDVr.js} +1 -1
  329. package/dist/scan-BzoTMDVr.js.gz +0 -0
  330. package/dist/{search-Cp9Bu1Gm.mjs → search-CFfJb2Ph.mjs} +1 -1
  331. package/dist/search-CFfJb2Ph.mjs.gz +0 -0
  332. package/dist/{search-YjXLgnjZ.js → search-DP56yLBu.js} +1 -1
  333. package/dist/search-DP56yLBu.js.gz +0 -0
  334. package/dist/{selectConfig-Cy35x5dr.js → selectConfig-3DQfoswr.js} +1 -1
  335. package/dist/selectConfig-3DQfoswr.js.gz +0 -0
  336. package/dist/{selectConfig-CG5UJV_q.mjs → selectConfig-BzewPuHz.mjs} +1 -1
  337. package/dist/selectConfig-BzewPuHz.mjs.gz +0 -0
  338. package/dist/{subItem-ByRQQoO-.mjs → subItem-D0xIVUmT.mjs} +1 -1
  339. package/dist/subItem-D0xIVUmT.mjs.gz +0 -0
  340. package/dist/{subItem-DEk9eOWm.js → subItem-DYQ1xpHk.js} +1 -1
  341. package/dist/subItem-DYQ1xpHk.js.gz +0 -0
  342. package/dist/{tagsView-6kib5Dts.js → tagsView-BHxzyuf8.js} +2 -2
  343. package/dist/tagsView-BHxzyuf8.js.gz +0 -0
  344. package/dist/{tagsView-CgroGApk.mjs → tagsView-DozTg6zg.mjs} +2 -2
  345. package/dist/tagsView-DozTg6zg.mjs.gz +0 -0
  346. package/dist/{transverse-Yxwzmsgi.js → transverse-Cb-sV9zE.js} +1 -1
  347. package/dist/transverse-Cb-sV9zE.js.gz +0 -0
  348. package/dist/{transverse-9OxjNaDJ.mjs → transverse-CuxOGDVq.mjs} +2 -2
  349. package/dist/transverse-CuxOGDVq.mjs.gz +0 -0
  350. package/dist/{trtcUI-BoBSukd_.mjs → trtcUI-BqlGMAM5.mjs} +1 -1
  351. package/dist/{trtcUI-BoBSukd_.mjs.gz → trtcUI-BqlGMAM5.mjs.gz} +0 -0
  352. package/dist/{trtcUI-C1gYC2Zy.js → trtcUI-lI5h3I50.js} +1 -1
  353. package/dist/trtcUI-lI5h3I50.js.gz +0 -0
  354. package/dist/{uploadAvatar-Cx1hhA3Y.js → uploadAvatar-1alHcQrt.js} +1 -1
  355. package/dist/uploadAvatar-1alHcQrt.js.gz +0 -0
  356. package/dist/{uploadAvatar--OVS-MUU.mjs → uploadAvatar-DZVO82cs.mjs} +1 -1
  357. package/dist/uploadAvatar-DZVO82cs.mjs.gz +0 -0
  358. package/dist/{user-IXoxzcqo.js → user-CTs21P9e.js} +1 -1
  359. package/dist/user-CTs21P9e.js.gz +0 -0
  360. package/dist/{user-DQAN2zVy.mjs → user-ZXkJS-if.mjs} +3 -3
  361. package/dist/user-ZXkJS-if.mjs.gz +0 -0
  362. package/dist/{userNews-D1y70Ghv.js → userNews-CPEyax-0.js} +1 -1
  363. package/dist/userNews-CPEyax-0.js.gz +0 -0
  364. package/dist/{userNews-BqTzWx0B.mjs → userNews-D3Ot9LQS.mjs} +1 -1
  365. package/dist/userNews-D3Ot9LQS.mjs.gz +0 -0
  366. package/dist/{userSelect-CqFEuRWf.mjs → userSelect-7u6hYvt2.mjs} +1 -1
  367. package/dist/{userSelect-wTnRpsW3.js → userSelect-C6Zwe4WK.js} +1 -1
  368. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Bls5y0uT.mjs → userSelect.vue_vue_type_script_setup_true_lang-BLScp5Wr.mjs} +1 -1
  369. package/dist/userSelect.vue_vue_type_script_setup_true_lang-BLScp5Wr.mjs.gz +0 -0
  370. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DDy6WHGX.js → userSelect.vue_vue_type_script_setup_true_lang-DwG8oB03.js} +1 -1
  371. package/dist/userSelect.vue_vue_type_script_setup_true_lang-DwG8oB03.js.gz +0 -0
  372. package/dist/{vertical-DYZFhY9s.js → vertical-0qzktGSC.js} +1 -1
  373. package/dist/vertical-0qzktGSC.js.gz +0 -0
  374. package/dist/{vertical-B_ZrRVYP.mjs → vertical-C0mso_yI.mjs} +2 -2
  375. package/dist/vertical-C0mso_yI.mjs.gz +0 -0
  376. package/dist/{xml-jiazai-D_i3JPdt.js → xml-jiazai-BVIoKncp.js} +1 -1
  377. package/dist/xml-jiazai-BVIoKncp.js.gz +0 -0
  378. package/dist/{xml-jiazai-BEmVvaqS.mjs → xml-jiazai-x6rYSONC.mjs} +1 -1
  379. package/dist/xml-jiazai-x6rYSONC.mjs.gz +0 -0
  380. package/dist/{xml-tanchuang-BspcPXnk.js → xml-tanchuang-DIPFxmdX.js} +1 -1
  381. package/dist/xml-tanchuang-DIPFxmdX.js.gz +0 -0
  382. package/dist/{xml-tanchuang-BMA_549A.mjs → xml-tanchuang-f8YWYq8J.mjs} +1 -1
  383. package/dist/xml-tanchuang-f8YWYq8J.mjs.gz +0 -0
  384. package/package.json +1 -1
  385. package/dist/401-BqE1YOzy.mjs.gz +0 -0
  386. package/dist/401-DanmPSo3.js.gz +0 -0
  387. package/dist/404-B7Pr9sbH.mjs.gz +0 -0
  388. package/dist/404-D3N1ows1.js.gz +0 -0
  389. package/dist/account-BQGAlAmO.js.gz +0 -0
  390. package/dist/account-DRgRwrh6.mjs.gz +0 -0
  391. package/dist/aside-DIKlpxhk.mjs.gz +0 -0
  392. package/dist/aside-n5YmpJzL.js.gz +0 -0
  393. package/dist/bianjiqi-BJEZ_4JT.js.gz +0 -0
  394. package/dist/bianjiqi-BXAzgga8.mjs.gz +0 -0
  395. package/dist/btnIndex-7CYD9JZj.js.gz +0 -0
  396. package/dist/btnIndex-oV9wlNkl.mjs.gz +0 -0
  397. package/dist/classic-BN2ZNa7I.js.gz +0 -0
  398. package/dist/classic-CwwcvuQ9.mjs.gz +0 -0
  399. package/dist/cloneConfigDialog-BN8T86o4.js.gz +0 -0
  400. package/dist/cloneConfigDialog-CuyvEuti.mjs.gz +0 -0
  401. package/dist/columns-2h-W_aY8.mjs.gz +0 -0
  402. package/dist/columns-ZNAfTyXx.js.gz +0 -0
  403. package/dist/columnsAside-CPvmdePY.mjs.gz +0 -0
  404. package/dist/columnsAside-nzDmSb94.js.gz +0 -0
  405. package/dist/contextmenu-CJnkl7sM.mjs.gz +0 -0
  406. package/dist/contextmenu-CSOqRY88.mjs.gz +0 -0
  407. package/dist/contextmenu-Cpj7XoNT.mjs.gz +0 -0
  408. package/dist/contextmenu-QeUUN2cI.js.gz +0 -0
  409. package/dist/contextmenu-RRZiZtYO.js.gz +0 -0
  410. package/dist/contextmenu-gfyoPG5f.js.gz +0 -0
  411. package/dist/defaults-Dd0smIzI.js.gz +0 -0
  412. package/dist/defaults-_BEEZ-FB.mjs.gz +0 -0
  413. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C8y1-dG2.js.gz +0 -0
  414. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CYGVBU4z.mjs.gz +0 -0
  415. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BlQQXEz-.mjs.gz +0 -0
  416. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DebxaRim.js.gz +0 -0
  417. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BUIb0dCb.mjs.gz +0 -0
  418. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Dbg3vj5Y.js.gz +0 -0
  419. package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-C7RPIR8H.js.gz +0 -0
  420. package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-CZY-MYlB.mjs.gz +0 -0
  421. package/dist/editDialog-D2BvSSUX.js.gz +0 -0
  422. package/dist/editDialog-Drez3I4A.mjs.gz +0 -0
  423. package/dist/formConfig-BPe5PGkp.mjs.gz +0 -0
  424. package/dist/formConfig-DLxfRbHa.js.gz +0 -0
  425. package/dist/horizontal-Pe36f-A5.js.gz +0 -0
  426. package/dist/horizontal-_UpIWZcU.mjs.gz +0 -0
  427. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BJSgjhPL.mjs.gz +0 -0
  428. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BhAR9cip.js.gz +0 -0
  429. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CjDpvpFd.js.gz +0 -0
  430. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DsbPlOB4.mjs.gz +0 -0
  431. package/dist/hsBtnConfigList-CNtbu9XZ.js.gz +0 -0
  432. package/dist/hsBtnConfigList-RkR-DthG.mjs.gz +0 -0
  433. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-D7q2W52k.mjs.gz +0 -0
  434. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DDiqQEPe.js.gz +0 -0
  435. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-13lrd_zB.js.gz +0 -0
  436. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D_2bzb0P.mjs.gz +0 -0
  437. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BffrUYo1.js.gz +0 -0
  438. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BqNexgmU.mjs.gz +0 -0
  439. package/dist/hsFormConfig-022gbiJe.mjs.gz +0 -0
  440. package/dist/hsFormConfig-Nf8tPcea.js.gz +0 -0
  441. package/dist/hsFormConfigList-C-_JBlvl.js.gz +0 -0
  442. package/dist/hsFormConfigList-DpXuhONS.mjs.gz +0 -0
  443. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D7dH2qdu.mjs.gz +0 -0
  444. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-D_2gQBzg.js.gz +0 -0
  445. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CKmbwKXi.mjs.gz +0 -0
  446. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-beMeVFkO.js.gz +0 -0
  447. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CAkHO1T2.mjs.gz +0 -0
  448. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CLTLbAFl.js.gz +0 -0
  449. package/dist/iframes-BHPgW113.js.gz +0 -0
  450. package/dist/iframes-bQrrj1zj.mjs.gz +0 -0
  451. package/dist/index-B-bS49NH.js.gz +0 -0
  452. package/dist/index-B1z2Szhg.js.gz +0 -0
  453. package/dist/index-B6USeuwK.mjs.gz +0 -0
  454. package/dist/index-B6enRhSp.js.gz +0 -0
  455. package/dist/index-BD-scGKb.mjs.gz +0 -0
  456. package/dist/index-BEKDwdtn.mjs.gz +0 -0
  457. package/dist/index-BF4NK6DU.mjs.gz +0 -0
  458. package/dist/index-BNrnTpwL.js.gz +0 -0
  459. package/dist/index-BVJYYVZ-.js.gz +0 -0
  460. package/dist/index-BVfHJA8h.mjs.gz +0 -0
  461. package/dist/index-BWlJ-TlP.mjs.gz +0 -0
  462. package/dist/index-BYMH6n37.js.gz +0 -0
  463. package/dist/index-BbpyWm2v.js.gz +0 -0
  464. package/dist/index-BfDCHyAU.mjs.gz +0 -0
  465. package/dist/index-Bfru8tVy.js.gz +0 -0
  466. package/dist/index-BjKI-o_L.mjs.gz +0 -0
  467. package/dist/index-BjNCv-_F.js.gz +0 -0
  468. package/dist/index-BvSpZqYs.mjs.gz +0 -0
  469. package/dist/index-C1eu1MC4.js.gz +0 -0
  470. package/dist/index-C3rBesZY.mjs.gz +0 -0
  471. package/dist/index-C68lbCQr.mjs.gz +0 -0
  472. package/dist/index-C9JKmkU8.js.gz +0 -0
  473. package/dist/index-CH1fmrdz.js.gz +0 -0
  474. package/dist/index-CNVOIj3m.js.gz +0 -0
  475. package/dist/index-CRpL62LT.js.gz +0 -0
  476. package/dist/index-CU0OIHLD.mjs.gz +0 -0
  477. package/dist/index-CcvkcXAf.mjs.gz +0 -0
  478. package/dist/index-CtsoCllR.mjs.gz +0 -0
  479. package/dist/index-Cwc3wofV.mjs.gz +0 -0
  480. package/dist/index-CxkY0y4P.js.gz +0 -0
  481. package/dist/index-CzQy3Tjw.js.gz +0 -0
  482. package/dist/index-D-dpJqTq.mjs.gz +0 -0
  483. package/dist/index-D4ZLyZtK.js.gz +0 -0
  484. package/dist/index-D9-d8l_Z.mjs.gz +0 -0
  485. package/dist/index-DO3h-Hkl.js.gz +0 -0
  486. package/dist/index-DPD9a2S6.mjs +0 -4
  487. package/dist/index-DW5IXR1p.js.gz +0 -0
  488. package/dist/index-DeWqbGfG.mjs.gz +0 -0
  489. package/dist/index-DpBeLmc-.mjs.gz +0 -0
  490. package/dist/index-Dxu5Bg4g.js.gz +0 -0
  491. package/dist/index-S3kFjXnd.js.gz +0 -0
  492. package/dist/index-YTBTdAau.mjs.gz +0 -0
  493. package/dist/index-e0IXiYGc.mjs.gz +0 -0
  494. package/dist/index-hoYTETxr.js.gz +0 -0
  495. package/dist/index-qbSLx3ev.mjs.gz +0 -0
  496. package/dist/index.vue_vue_type_script_setup_true_lang-B3yuMHq8.mjs.gz +0 -0
  497. package/dist/index.vue_vue_type_script_setup_true_lang-CARedGcs.js.gz +0 -0
  498. package/dist/index.vue_vue_type_script_setup_true_lang-CBVQUcc3.mjs.gz +0 -0
  499. package/dist/index.vue_vue_type_script_setup_true_lang-Cs2m2u2n.js.gz +0 -0
  500. package/dist/index.vue_vue_type_script_setup_true_lang-D6X6LQGP.js.gz +0 -0
  501. package/dist/index.vue_vue_type_script_setup_true_lang-D_BxqW8g.mjs.gz +0 -0
  502. package/dist/index.vue_vue_type_script_setup_true_lang-m5x0IkVb.mjs.gz +0 -0
  503. package/dist/link-DuDg_SgS.mjs.gz +0 -0
  504. package/dist/link-Dy3S2EFK.js.gz +0 -0
  505. package/dist/list-CWnOfz70.mjs.gz +0 -0
  506. package/dist/list-b1t-mOFm.js.gz +0 -0
  507. package/dist/main-DSsyckeS.mjs.gz +0 -0
  508. package/dist/main-VwObYHp4.js.gz +0 -0
  509. package/dist/mobile-B0aSBT9T.mjs.gz +0 -0
  510. package/dist/mobile-CMxrq7JU.js.gz +0 -0
  511. package/dist/parent-BM3WPXKs.js.gz +0 -0
  512. package/dist/parent-PqabQQWk.mjs.gz +0 -0
  513. package/dist/replaceRules-CTvh1fvr.mjs.gz +0 -0
  514. package/dist/replaceRules-DCDfhacW.js.gz +0 -0
  515. package/dist/roleItem-BIN1xg3u.js.gz +0 -0
  516. package/dist/roleItem-BO5d5NTY.mjs.gz +0 -0
  517. package/dist/saveForm.vue_vue_type_script_setup_true_lang-BgeqF3_t.mjs.gz +0 -0
  518. package/dist/saveForm.vue_vue_type_script_setup_true_lang-tGraSly6.js.gz +0 -0
  519. package/dist/scan-DBfGuMxb.js.gz +0 -0
  520. package/dist/scan-DeGC9bD0.mjs.gz +0 -0
  521. package/dist/search-Cp9Bu1Gm.mjs.gz +0 -0
  522. package/dist/search-YjXLgnjZ.js.gz +0 -0
  523. package/dist/selectConfig-CG5UJV_q.mjs.gz +0 -0
  524. package/dist/selectConfig-Cy35x5dr.js.gz +0 -0
  525. package/dist/subItem-ByRQQoO-.mjs.gz +0 -0
  526. package/dist/subItem-DEk9eOWm.js.gz +0 -0
  527. package/dist/tagsView-6kib5Dts.js.gz +0 -0
  528. package/dist/tagsView-CgroGApk.mjs.gz +0 -0
  529. package/dist/transverse-9OxjNaDJ.mjs.gz +0 -0
  530. package/dist/transverse-Yxwzmsgi.js.gz +0 -0
  531. package/dist/trtcUI-C1gYC2Zy.js.gz +0 -0
  532. package/dist/uploadAvatar--OVS-MUU.mjs.gz +0 -0
  533. package/dist/uploadAvatar-Cx1hhA3Y.js.gz +0 -0
  534. package/dist/user-DQAN2zVy.mjs.gz +0 -0
  535. package/dist/user-IXoxzcqo.js.gz +0 -0
  536. package/dist/userNews-BqTzWx0B.mjs.gz +0 -0
  537. package/dist/userNews-D1y70Ghv.js.gz +0 -0
  538. package/dist/userSelect.vue_vue_type_script_setup_true_lang-Bls5y0uT.mjs.gz +0 -0
  539. package/dist/userSelect.vue_vue_type_script_setup_true_lang-DDy6WHGX.js.gz +0 -0
  540. package/dist/vertical-B_ZrRVYP.mjs.gz +0 -0
  541. package/dist/vertical-DYZFhY9s.js.gz +0 -0
  542. package/dist/xml-jiazai-BEmVvaqS.mjs.gz +0 -0
  543. package/dist/xml-jiazai-D_i3JPdt.js.gz +0 -0
  544. package/dist/xml-tanchuang-BMA_549A.mjs.gz +0 -0
  545. package/dist/xml-tanchuang-BspcPXnk.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";var Sa=Object.defineProperty;var Aa=(e,i,t)=>i in e?Sa(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var Ue=(e,i,t)=>(Aa(e,typeof i!="symbol"?i+"":i,t),t),Hr=(e,i,t)=>{if(!i.has(e))throw TypeError("Cannot "+t)};var B=(e,i,t)=>(Hr(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)=>(Hr(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)=>(Hr(e,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("vue"),xo=require("./index-BB7DTBz5.js");require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-1q5Jq5S0.js");var Rn=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Ta=Object.getOwnPropertyNames,ka=Object.prototype.hasOwnProperty,Ge=(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)Rn(e,t,{get:i[t],enumerable:!0})},Oa=(e,i,t,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of Ta(i))!ka.call(e,h)&&h!==t&&Rn(e,h,{get:()=>i[h],enumerable:!(l=Ia(i,h))||l.enumerable});return e},Me=e=>Oa(Rn({},"__esModule",{value:!0}),e),at,oe=Ge(()=>{at={deviceMemory:8,hardwareConcurrency:8,language:"en-US"}}),ze={};tr(ze,{_debugEnd:()=>ji,_debugProcess:()=>Ni,_events:()=>Zi,_eventsCount:()=>en,_exiting:()=>Si,_fatalExceptions:()=>Mi,_getActiveHandles:()=>Fo,_getActiveRequests:()=>Do,_kill:()=>Ti,_linkedBinding:()=>No,_maxListeners:()=>Xi,_preload_modules:()=>Gi,_rawDebug:()=>vi,_startProfilerIdleNotifier:()=>Di,_stopProfilerIdleNotifier:()=>Fi,_tickCallback:()=>Li,abort:()=>Vi,addListener:()=>tn,allowedNodeEnvironmentFlags:()=>Bi,arch:()=>ai,argv:()=>hi,argv0:()=>Qi,assert:()=>Wo,binding:()=>gi,chdir:()=>yi,config:()=>Ai,cpuUsage:()=>gr,cwd:()=>mi,debugPort:()=>Yi,default:()=>Bn,dlopen:()=>jo,domain:()=>Ei,emit:()=>an,emitWarning:()=>pi,env:()=>ui,execArgv:()=>ci,execPath:()=>Ki,exit:()=>Ri,features:()=>xi,hasUncaughtExceptionCaptureCallback:()=>qo,hrtime:()=>kr,kill:()=>Ci,listeners:()=>Vo,memoryUsage:()=>Oi,moduleLoadList:()=>_i,nextTick:()=>Uo,off:()=>nn,on:()=>_t,once:()=>rn,openStdin:()=>Pi,pid:()=>Hi,platform:()=>li,ppid:()=>zi,prependListener:()=>ln,prependOnceListener:()=>un,reallyExit:()=>Ii,release:()=>wi,removeAllListeners:()=>sn,removeListener:()=>on,resourceUsage:()=>ki,setSourceMapsEnabled:()=>Ji,setUncaughtExceptionCaptureCallback:()=>Ui,stderr:()=>qi,stdin:()=>$i,stdout:()=>Wi,title:()=>si,umask:()=>bi,uptime:()=>$o,version:()=>fi,versions:()=>di});function Pn(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Ca(){!Xt||!Gt||(Xt=!1,Gt.length?yt=Gt.concat(yt):yr=-1,yt.length&&Mo())}function Mo(){if(!Xt){var e=setTimeout(Ca,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 Uo(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 Lo(e,i)),yt.length===1&&!Xt&&setTimeout(Mo,0)}function Lo(e,i){this.fun=e,this.array=i}function Xe(){}function No(e){Pn("_linkedBinding")}function jo(e){Pn("dlopen")}function Do(){return[]}function Fo(){return[]}function Wo(e,i){if(!e)throw new Error(i||"assertion error")}function qo(){return!1}function $o(){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 Bn}function Vo(e){return[]}var yt,Xt,Gt,yr,si,ai,li,ui,hi,ci,fi,di,pi,gi,bi,mi,yi,wi,vi,_i,Ei,Si,Ai,Ii,Ti,gr,ki,Oi,Ci,Ri,Pi,Bi,xi,Mi,Ui,Li,Ni,ji,Di,Fi,Wi,qi,$i,Vi,Hi,zi,Ki,Yi,Qi,Gi,Ji,It,zr,Or,Xi,Zi,en,tn,rn,nn,on,sn,an,ln,un,Bn,Ra=Ge(()=>{ae(),se(),oe(),yt=[],Xt=!1,yr=-1,Lo.prototype.run=function(){this.fun.apply(null,this.array)},si="browser",ai="x64",li="browser",ui={PATH:"/usr/bin",LANG:at.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},hi=["/usr/bin/node"],ci=[],fi="v16.8.0",di={},pi=function(e,i){console.warn((i?i+": ":"")+e)},gi=function(e){Pn("binding")},bi=function(e){return 0},mi=function(){return"/"},yi=function(e){},wi={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},vi=Xe,_i=[],Ei={},Si=!1,Ai={},Ii=Xe,Ti=Xe,gr=function(){return{}},ki=gr,Oi=gr,Ci=Xe,Ri=Xe,Pi=Xe,Bi={},xi={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Mi=Xe,Ui=Xe,Li=Xe,Ni=Xe,ji=Xe,Di=Xe,Fi=Xe,Wi=void 0,qi=void 0,$i=void 0,Vi=Xe,Hi=2,zi=1,Ki="/bin/usr/node",Yi=9229,Qi="node",Gi=[],Ji=Xe,It={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},It.now===void 0&&(zr=Date.now(),It.timing&&It.timing.navigationStart&&(zr=It.timing.navigationStart),It.now=()=>Date.now()-zr),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])},Xi=10,Zi={},en=0,tn=_t,rn=_t,nn=_t,on=_t,sn=_t,an=Xe,ln=_t,un=_t,Bn={version:fi,versions:di,arch:ai,platform:li,release:wi,_rawDebug:vi,moduleLoadList:_i,binding:gi,_linkedBinding:No,_events:Zi,_eventsCount:en,_maxListeners:Xi,on:_t,addListener:tn,once:rn,off:nn,removeListener:on,removeAllListeners:sn,emit:an,prependListener:ln,prependOnceListener:un,listeners:Vo,domain:Ei,_exiting:Si,config:Ai,dlopen:jo,uptime:$o,_getActiveRequests:Do,_getActiveHandles:Fo,reallyExit:Ii,_kill:Ti,cpuUsage:gr,resourceUsage:ki,memoryUsage:Oi,kill:Ci,exit:Ri,openStdin:Pi,allowedNodeEnvironmentFlags:Bi,assert:Wo,features:xi,_fatalExceptions:Mi,setUncaughtExceptionCaptureCallback:Ui,hasUncaughtExceptionCaptureCallback:qo,emitWarning:pi,nextTick:Uo,_tickCallback:Li,_debugProcess:Ni,_debugEnd:ji,_startProfilerIdleNotifier:Di,_stopProfilerIdleNotifier:Fi,stdout:Wi,stdin:$i,stderr:qi,abort:Vi,umask:bi,chdir:yi,cwd:mi,env:ui,title:si,argv:hi,execArgv:ci,pid:Hi,ppid:zi,execPath:Ki,debugPort:Yi,hrtime:kr,argv0:Qi,_preload_modules:Gi,setSourceMapsEnabled:Ji}}),se=Ge(()=>{Ra()}),Ze={};tr(Ze,{Buffer:()=>lr,INSPECT_MAX_BYTES:()=>Ho,default:()=>Et,kMaxLength:()=>zo});function Pa(){if(hn)return sr;hn=!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 p(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(p(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 Ba(){return cn?br:(cn=!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,p=t?h-1:0,g=t?-1:1,b=e[i+p];for(p+=g,o=b&(1<<-c)-1,b>>=-c,c+=s;c>0;o=o*256+e[i+p],p+=g,c-=8);for(r=o&(1<<-c)-1,o>>=-c,c+=l;c>0;r=r*256+e[i+p],p+=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,p=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+p>=1?i+=g/n:i+=g*Math.pow(2,1-p),i*n>=2&&(r++,n/=2),r+p>=c?(s=0,r=c):r+p>=1?(s=(i*n-1)*Math.pow(2,h),r=r+p):(s=i*Math.pow(2,p-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 xa(){if(fn)return Ut;fn=!0;let e=Pa(),i=Ba(),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,d){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,d)}r.poolSize=8192;function s(f,u,d){if(typeof f=="string")return p(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,d);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,d);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,d);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,d){return s(f,u,d)},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,d){return n(f),f<=0?o(f):u!==void 0?typeof d=="string"?o(f).fill(u,d):o(f).fill(u):o(f)}r.alloc=function(f,u,d){return a(f,u,d)};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 p(f,u){if((typeof u!="string"||u==="")&&(u="utf8"),!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let d=k(f,u)|0,v=o(d),A=v.write(f,u);return A!==d&&(v=v.slice(0,A)),v}function g(f){let u=f.length<0?0:I(f.length)|0,d=o(u);for(let v=0;v<u;v+=1)d[v]=f[v]&255;return d}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,d){if(u<0||f.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');let v;return u===void 0&&d===void 0?v=new Uint8Array(f):d===void 0?v=new Uint8Array(f,u):v=new Uint8Array(f,u,d),Object.setPrototypeOf(v,r.prototype),v}function y(f){if(r.isBuffer(f)){let u=I(f.length)|0,d=o(u);return d.length===0||f.copy(d,0,0,u),d}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 d=f.length,v=u.length;for(let A=0,w=Math.min(d,v);A<w;++A)if(f[A]!==u[A]){d=f[A],v=u[A];break}return d<v?-1:v<d?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 d;if(u===void 0)for(u=0,d=0;d<f.length;++d)u+=f[d].length;let v=r.allocUnsafe(u),A=0;for(d=0;d<f.length;++d){let w=f[d];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 d=f.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&d===0)return 0;let A=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return j(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>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,d){let v=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(f||(f="utf8");;)switch(f){case"hex":return q(this,u,d);case"utf8":case"utf-8":return $(this,u,d);case"ascii":return ge(this,u,d);case"latin1":case"binary":return ne(this,u,d);case"base64":return E(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,u,d);default:if(v)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),v=!0}}r.prototype._isBuffer=!0;function D(f,u,d){let v=f[u];f[u]=f[d],f[d]=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?$(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,d,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),d===void 0&&(d=f?f.length:0),v===void 0&&(v=0),A===void 0&&(A=this.length),u<0||d>f.length||v<0||A>this.length)throw new RangeError("out of range index");if(v>=A&&u>=d)return 0;if(v>=A)return-1;if(u>=d)return 1;if(u>>>=0,d>>>=0,v>>>=0,A>>>=0,this===f)return 0;let w=A-v,P=d-u,V=Math.min(w,P),fe=this.slice(v,A),ie=f.slice(u,d);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,d,v,A){if(f.length===0)return-1;if(typeof d=="string"?(v=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,we(d)&&(d=A?0:f.length-1),d<0&&(d=f.length+d),d>=f.length){if(A)return-1;d=f.length-1}else if(d<0)if(A)d=0;else return-1;if(typeof u=="string"&&(u=r.from(u,v)),r.isBuffer(u))return u.length===0?-1:R(f,u,d,v,A);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?A?Uint8Array.prototype.indexOf.call(f,u,d):Uint8Array.prototype.lastIndexOf.call(f,u,d):R(f,[u],d,v,A);throw new TypeError("val must be string, number or Buffer")}function R(f,u,d,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,d/=2}function fe(ye,Se){return w===1?ye[Se]:ye.readUInt16BE(Se*w)}let ie;if(A){let ye=-1;for(ie=d;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(d+V>P&&(d=P-V),ie=d;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,d){return this.indexOf(f,u,d)!==-1},r.prototype.indexOf=function(f,u,d){return F(this,f,u,d,!0)},r.prototype.lastIndexOf=function(f,u,d){return F(this,f,u,d,!1)};function O(f,u,d,v){d=Number(d)||0;let A=f.length-d;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[d+P]=V}return P}function M(f,u,d,v){return L(j(u,f.length-d),f,d,v)}function W(f,u,d,v){return L(N(u),f,d,v)}function G(f,u,d,v){return L(Q(u),f,d,v)}function ee(f,u,d,v){return L(te(u,f.length-d),f,d,v)}r.prototype.write=function(f,u,d,v){if(u===void 0)v="utf8",d=this.length,u=0;else if(d===void 0&&typeof u=="string")v=u,d=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(d)?(d=d>>>0,v===void 0&&(v="utf8")):(v=d,d=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let A=this.length-u;if((d===void 0||d>A)&&(d=A),f.length>0&&(d<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,d);case"utf8":case"utf-8":return M(this,f,u,d);case"ascii":case"latin1":case"binary":return W(this,f,u,d);case"base64":return G(this,f,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,f,u,d);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,d){return u===0&&d===f.length?e.fromByteArray(f):e.fromByteArray(f.slice(u,d))}function $(f,u,d){d=Math.min(f.length,d);let v=[],A=u;for(;A<d;){let w=f[A],P=null,V=w>239?4:w>223?3:w>191?2:1;if(A+V<=d){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 d="",v=0;for(;v<u;)d+=String.fromCharCode.apply(String,f.slice(v,v+=Z));return d}function ge(f,u,d){let v="";d=Math.min(f.length,d);for(let A=u;A<d;++A)v+=String.fromCharCode(f[A]&127);return v}function ne(f,u,d){let v="";d=Math.min(f.length,d);for(let A=u;A<d;++A)v+=String.fromCharCode(f[A]);return v}function q(f,u,d){let v=f.length;(!u||u<0)&&(u=0),(!d||d<0||d>v)&&(d=v);let A="";for(let w=u;w<d;++w)A+=_e[f[w]];return A}function be(f,u,d){let v=f.slice(u,d),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 d=this.length;f=~~f,u=u===void 0?d:~~u,f<0?(f+=d,f<0&&(f=0)):f>d&&(f=d),u<0?(u+=d,u<0&&(u=0)):u>d&&(u=d),u<f&&(u=f);let v=this.subarray(f,u);return Object.setPrototypeOf(v,r.prototype),v};function re(f,u,d){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+u>d)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(f,u,d){f=f>>>0,u=u>>>0,d||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,d){f=f>>>0,u=u>>>0,d||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],d=this[f+7];(u===void 0||d===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+d*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],d=this[f+7];(u===void 0||d===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+d;return(BigInt(v)<<BigInt(32))+BigInt(A)}),r.prototype.readIntLE=function(f,u,d){f=f>>>0,u=u>>>0,d||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,d){f=f>>>0,u=u>>>0,d||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 d=this[f]|this[f+1]<<8;return d&32768?d|4294901760:d},r.prototype.readInt16BE=function(f,u){f=f>>>0,u||re(f,2,this.length);let d=this[f+1]|this[f]<<8;return d&32768?d|4294901760:d},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],d=this[f+7];(u===void 0||d===void 0)&&he(f,this.length-8);let v=this[f+4]+this[f+5]*2**8+this[f+6]*2**16+(d<<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],d=this[f+7];(u===void 0||d===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+d)}),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,d,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(d+v>f.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(f,u,d,v){if(f=+f,u=u>>>0,d=d>>>0,!v){let P=Math.pow(2,8*d)-1;ve(this,f,u,d,P,0)}let A=1,w=0;for(this[u]=f&255;++w<d&&(A*=256);)this[u+w]=f/A&255;return u+d},r.prototype.writeUintBE=r.prototype.writeUIntBE=function(f,u,d,v){if(f=+f,u=u>>>0,d=d>>>0,!v){let P=Math.pow(2,8*d)-1;ve(this,f,u,d,P,0)}let A=d-1,w=1;for(this[u+A]=f&255;--A>=0&&(w*=256);)this[u+A]=f/w&255;return u+d},r.prototype.writeUint8=r.prototype.writeUInt8=function(f,u,d){return f=+f,u=u>>>0,d||ve(this,f,u,1,255,0),this[u]=f&255,u+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(f,u,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d,v,A){X(u,v,A,f,d,7);let w=Number(u&BigInt(4294967295));f[d++]=w,w=w>>8,f[d++]=w,w=w>>8,f[d++]=w,w=w>>8,f[d++]=w;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[d++]=P,P=P>>8,f[d++]=P,P=P>>8,f[d++]=P,P=P>>8,f[d++]=P,d}function Y(f,u,d,v,A){X(u,v,A,f,d,7);let w=Number(u&BigInt(4294967295));f[d+7]=w,w=w>>8,f[d+6]=w,w=w>>8,f[d+5]=w,w=w>>8,f[d+4]=w;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[d+3]=P,P=P>>8,f[d+2]=P,P=P>>8,f[d+1]=P,P=P>>8,f[d]=P,d+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,d,v){if(f=+f,u=u>>>0,!v){let V=Math.pow(2,8*d-1);ve(this,f,u,d,V-1,-V)}let A=0,w=1,P=0;for(this[u]=f&255;++A<d&&(w*=256);)f<0&&P===0&&this[u+A-1]!==0&&(P=1),this[u+A]=(f/w>>0)-P&255;return u+d},r.prototype.writeIntBE=function(f,u,d,v){if(f=+f,u=u>>>0,!v){let V=Math.pow(2,8*d-1);ve(this,f,u,d,V-1,-V)}let A=d-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+d},r.prototype.writeInt8=function(f,u,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||ve(this,f,u,2,32767,-32768),this[u]=f&255,this[u+1]=f>>>8,u+2},r.prototype.writeInt16BE=function(f,u,d){return f=+f,u=u>>>0,d||ve(this,f,u,2,32767,-32768),this[u]=f>>>8,this[u+1]=f&255,u+2},r.prototype.writeInt32LE=function(f,u,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d,v,A,w){if(d+v>f.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function Ee(f,u,d,v,A){return u=+u,d=d>>>0,A||ce(f,u,d,4),i.write(f,u,d,v,23,4),d+4}r.prototype.writeFloatLE=function(f,u,d){return Ee(this,f,u,!0,d)},r.prototype.writeFloatBE=function(f,u,d){return Ee(this,f,u,!1,d)};function ue(f,u,d,v,A){return u=+u,d=d>>>0,A||ce(f,u,d,8),i.write(f,u,d,v,52,8),d+8}r.prototype.writeDoubleLE=function(f,u,d){return ue(this,f,u,!0,d)},r.prototype.writeDoubleBE=function(f,u,d){return ue(this,f,u,!1,d)},r.prototype.copy=function(f,u,d,v){if(!r.isBuffer(f))throw new TypeError("argument should be a Buffer");if(d||(d=0),!v&&v!==0&&(v=this.length),u>=f.length&&(u=f.length),u||(u=0),v>0&&v<d&&(v=d),v===d||f.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(d<0||d>=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-d&&(v=f.length-u+d);let A=v-d;return this===f&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,d,v):Uint8Array.prototype.set.call(f,this.subarray(d,v),u),A},r.prototype.fill=function(f,u,d,v){if(typeof f=="string"){if(typeof u=="string"?(v=u,u=0,d=this.length):typeof d=="string"&&(v=d,d=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<d)throw new RangeError("Out of range index");if(d<=u)return this;u=u>>>0,d=d===void 0?this.length:d>>>0,f||(f=0);let A;if(typeof f=="number")for(A=u;A<d;++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<d-u;++A)this[A+u]=w[A%P]}return this};let x={};function _(f,u,d){x[f]=class extends d{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,d){let v=`The value of "${f}" is out of range.`,A=d;return Number.isInteger(d)&&Math.abs(d)>2**32?A=z(String(d)):typeof d=="bigint"&&(A=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(A=z(A)),A+="n"),v+=` It must be ${u}. Received ${A}`,v},RangeError);function z(f){let u="",d=f.length,v=f[0]==="-"?1:0;for(;d>=v+4;d-=3)u=`_${f.slice(d-3,d)}${u}`;return`${f.slice(0,d)}${u}`}function le(f,u,d){J(u,"offset"),(f[u]===void 0||f[u+d]===void 0)&&he(u,f.length-(d+1))}function X(f,u,d,v,A,w){if(f>d||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 <= ${d}${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,d){throw Math.floor(f)!==f?(J(f,d),new x.ERR_OUT_OF_RANGE(d||"offset","an integer",f)):u<0?new x.ERR_BUFFER_OUT_OF_BOUNDS:new x.ERR_OUT_OF_RANGE(d||"offset",`>= ${d?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 d,v=f.length,A=null,w=[];for(let P=0;P<v;++P){if(d=f.charCodeAt(P),d>55295&&d<57344){if(!A){if(d>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=d;continue}if(d<56320){(u-=3)>-1&&w.push(239,191,189),A=d;continue}d=(A-55296<<10|d-56320)+65536}else A&&(u-=3)>-1&&w.push(239,191,189);if(A=null,d<128){if((u-=1)<0)break;w.push(d)}else if(d<2048){if((u-=2)<0)break;w.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;w.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;w.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return w}function N(f){let u=[];for(let d=0;d<f.length;++d)u.push(f.charCodeAt(d)&255);return u}function te(f,u){let d,v,A,w=[];for(let P=0;P<f.length&&!((u-=2)<0);++P)d=f.charCodeAt(P),v=d>>8,A=d%256,w.push(A),w.push(v);return w}function Q(f){return e.toByteArray(C(f))}function L(f,u,d,v){let A;for(A=0;A<v&&!(A+d>=u.length||A>=f.length);++A)u[A+d]=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 d=0;d<16;++d){let v=d*16;for(let A=0;A<16;++A)u[v+A]=f[d]+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,hn,br,cn,Ut,fn,Et,lr,Ho,zo,et=Ge(()=>{ae(),se(),oe(),sr={},hn=!1,br={},cn=!1,Ut={},fn=!1,Et=xa(),Et.Buffer,Et.SlowBuffer,Et.INSPECT_MAX_BYTES,Et.kMaxLength,lr=Et.Buffer,Ho=Et.INSPECT_MAX_BYTES,zo=Et.kMaxLength}),ae=Ge(()=>{et()}),Ma=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}),Ke=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=(et(),Me(Ze)),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}
1
+ "use strict";var Sa=Object.defineProperty;var Aa=(e,i,t)=>i in e?Sa(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var Ue=(e,i,t)=>(Aa(e,typeof i!="symbol"?i+"":i,t),t),Hr=(e,i,t)=>{if(!i.has(e))throw TypeError("Cannot "+t)};var B=(e,i,t)=>(Hr(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)=>(Hr(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)=>(Hr(e,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("vue"),xo=require("./index-ksoVkLK8.js");require("./uploadAvatar.vue_vue_type_style_index_0_scoped_99513ec9_lang-1q5Jq5S0.js");var Rn=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Ta=Object.getOwnPropertyNames,ka=Object.prototype.hasOwnProperty,Ge=(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)Rn(e,t,{get:i[t],enumerable:!0})},Oa=(e,i,t,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of Ta(i))!ka.call(e,h)&&h!==t&&Rn(e,h,{get:()=>i[h],enumerable:!(l=Ia(i,h))||l.enumerable});return e},Me=e=>Oa(Rn({},"__esModule",{value:!0}),e),at,oe=Ge(()=>{at={deviceMemory:8,hardwareConcurrency:8,language:"en-US"}}),ze={};tr(ze,{_debugEnd:()=>ji,_debugProcess:()=>Ni,_events:()=>Zi,_eventsCount:()=>en,_exiting:()=>Si,_fatalExceptions:()=>Mi,_getActiveHandles:()=>Fo,_getActiveRequests:()=>Do,_kill:()=>Ti,_linkedBinding:()=>No,_maxListeners:()=>Xi,_preload_modules:()=>Gi,_rawDebug:()=>vi,_startProfilerIdleNotifier:()=>Di,_stopProfilerIdleNotifier:()=>Fi,_tickCallback:()=>Li,abort:()=>Vi,addListener:()=>tn,allowedNodeEnvironmentFlags:()=>Bi,arch:()=>ai,argv:()=>hi,argv0:()=>Qi,assert:()=>Wo,binding:()=>gi,chdir:()=>yi,config:()=>Ai,cpuUsage:()=>gr,cwd:()=>mi,debugPort:()=>Yi,default:()=>Bn,dlopen:()=>jo,domain:()=>Ei,emit:()=>an,emitWarning:()=>pi,env:()=>ui,execArgv:()=>ci,execPath:()=>Ki,exit:()=>Ri,features:()=>xi,hasUncaughtExceptionCaptureCallback:()=>qo,hrtime:()=>kr,kill:()=>Ci,listeners:()=>Vo,memoryUsage:()=>Oi,moduleLoadList:()=>_i,nextTick:()=>Uo,off:()=>nn,on:()=>_t,once:()=>rn,openStdin:()=>Pi,pid:()=>Hi,platform:()=>li,ppid:()=>zi,prependListener:()=>ln,prependOnceListener:()=>un,reallyExit:()=>Ii,release:()=>wi,removeAllListeners:()=>sn,removeListener:()=>on,resourceUsage:()=>ki,setSourceMapsEnabled:()=>Ji,setUncaughtExceptionCaptureCallback:()=>Ui,stderr:()=>qi,stdin:()=>$i,stdout:()=>Wi,title:()=>si,umask:()=>bi,uptime:()=>$o,version:()=>fi,versions:()=>di});function Pn(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Ca(){!Xt||!Gt||(Xt=!1,Gt.length?yt=Gt.concat(yt):yr=-1,yt.length&&Mo())}function Mo(){if(!Xt){var e=setTimeout(Ca,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 Uo(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 Lo(e,i)),yt.length===1&&!Xt&&setTimeout(Mo,0)}function Lo(e,i){this.fun=e,this.array=i}function Xe(){}function No(e){Pn("_linkedBinding")}function jo(e){Pn("dlopen")}function Do(){return[]}function Fo(){return[]}function Wo(e,i){if(!e)throw new Error(i||"assertion error")}function qo(){return!1}function $o(){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 Bn}function Vo(e){return[]}var yt,Xt,Gt,yr,si,ai,li,ui,hi,ci,fi,di,pi,gi,bi,mi,yi,wi,vi,_i,Ei,Si,Ai,Ii,Ti,gr,ki,Oi,Ci,Ri,Pi,Bi,xi,Mi,Ui,Li,Ni,ji,Di,Fi,Wi,qi,$i,Vi,Hi,zi,Ki,Yi,Qi,Gi,Ji,It,zr,Or,Xi,Zi,en,tn,rn,nn,on,sn,an,ln,un,Bn,Ra=Ge(()=>{ae(),se(),oe(),yt=[],Xt=!1,yr=-1,Lo.prototype.run=function(){this.fun.apply(null,this.array)},si="browser",ai="x64",li="browser",ui={PATH:"/usr/bin",LANG:at.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},hi=["/usr/bin/node"],ci=[],fi="v16.8.0",di={},pi=function(e,i){console.warn((i?i+": ":"")+e)},gi=function(e){Pn("binding")},bi=function(e){return 0},mi=function(){return"/"},yi=function(e){},wi={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},vi=Xe,_i=[],Ei={},Si=!1,Ai={},Ii=Xe,Ti=Xe,gr=function(){return{}},ki=gr,Oi=gr,Ci=Xe,Ri=Xe,Pi=Xe,Bi={},xi={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Mi=Xe,Ui=Xe,Li=Xe,Ni=Xe,ji=Xe,Di=Xe,Fi=Xe,Wi=void 0,qi=void 0,$i=void 0,Vi=Xe,Hi=2,zi=1,Ki="/bin/usr/node",Yi=9229,Qi="node",Gi=[],Ji=Xe,It={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},It.now===void 0&&(zr=Date.now(),It.timing&&It.timing.navigationStart&&(zr=It.timing.navigationStart),It.now=()=>Date.now()-zr),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])},Xi=10,Zi={},en=0,tn=_t,rn=_t,nn=_t,on=_t,sn=_t,an=Xe,ln=_t,un=_t,Bn={version:fi,versions:di,arch:ai,platform:li,release:wi,_rawDebug:vi,moduleLoadList:_i,binding:gi,_linkedBinding:No,_events:Zi,_eventsCount:en,_maxListeners:Xi,on:_t,addListener:tn,once:rn,off:nn,removeListener:on,removeAllListeners:sn,emit:an,prependListener:ln,prependOnceListener:un,listeners:Vo,domain:Ei,_exiting:Si,config:Ai,dlopen:jo,uptime:$o,_getActiveRequests:Do,_getActiveHandles:Fo,reallyExit:Ii,_kill:Ti,cpuUsage:gr,resourceUsage:ki,memoryUsage:Oi,kill:Ci,exit:Ri,openStdin:Pi,allowedNodeEnvironmentFlags:Bi,assert:Wo,features:xi,_fatalExceptions:Mi,setUncaughtExceptionCaptureCallback:Ui,hasUncaughtExceptionCaptureCallback:qo,emitWarning:pi,nextTick:Uo,_tickCallback:Li,_debugProcess:Ni,_debugEnd:ji,_startProfilerIdleNotifier:Di,_stopProfilerIdleNotifier:Fi,stdout:Wi,stdin:$i,stderr:qi,abort:Vi,umask:bi,chdir:yi,cwd:mi,env:ui,title:si,argv:hi,execArgv:ci,pid:Hi,ppid:zi,execPath:Ki,debugPort:Yi,hrtime:kr,argv0:Qi,_preload_modules:Gi,setSourceMapsEnabled:Ji}}),se=Ge(()=>{Ra()}),Ze={};tr(Ze,{Buffer:()=>lr,INSPECT_MAX_BYTES:()=>Ho,default:()=>Et,kMaxLength:()=>zo});function Pa(){if(hn)return sr;hn=!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 p(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(p(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 Ba(){return cn?br:(cn=!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,p=t?h-1:0,g=t?-1:1,b=e[i+p];for(p+=g,o=b&(1<<-c)-1,b>>=-c,c+=s;c>0;o=o*256+e[i+p],p+=g,c-=8);for(r=o&(1<<-c)-1,o>>=-c,c+=l;c>0;r=r*256+e[i+p],p+=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,p=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+p>=1?i+=g/n:i+=g*Math.pow(2,1-p),i*n>=2&&(r++,n/=2),r+p>=c?(s=0,r=c):r+p>=1?(s=(i*n-1)*Math.pow(2,h),r=r+p):(s=i*Math.pow(2,p-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 xa(){if(fn)return Ut;fn=!0;let e=Pa(),i=Ba(),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,d){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,d)}r.poolSize=8192;function s(f,u,d){if(typeof f=="string")return p(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,d);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,d);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,d);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,d){return s(f,u,d)},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,d){return n(f),f<=0?o(f):u!==void 0?typeof d=="string"?o(f).fill(u,d):o(f).fill(u):o(f)}r.alloc=function(f,u,d){return a(f,u,d)};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 p(f,u){if((typeof u!="string"||u==="")&&(u="utf8"),!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let d=k(f,u)|0,v=o(d),A=v.write(f,u);return A!==d&&(v=v.slice(0,A)),v}function g(f){let u=f.length<0?0:I(f.length)|0,d=o(u);for(let v=0;v<u;v+=1)d[v]=f[v]&255;return d}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,d){if(u<0||f.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');let v;return u===void 0&&d===void 0?v=new Uint8Array(f):d===void 0?v=new Uint8Array(f,u):v=new Uint8Array(f,u,d),Object.setPrototypeOf(v,r.prototype),v}function y(f){if(r.isBuffer(f)){let u=I(f.length)|0,d=o(u);return d.length===0||f.copy(d,0,0,u),d}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 d=f.length,v=u.length;for(let A=0,w=Math.min(d,v);A<w;++A)if(f[A]!==u[A]){d=f[A],v=u[A];break}return d<v?-1:v<d?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 d;if(u===void 0)for(u=0,d=0;d<f.length;++d)u+=f[d].length;let v=r.allocUnsafe(u),A=0;for(d=0;d<f.length;++d){let w=f[d];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 d=f.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&d===0)return 0;let A=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return j(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>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,d){let v=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(f||(f="utf8");;)switch(f){case"hex":return q(this,u,d);case"utf8":case"utf-8":return $(this,u,d);case"ascii":return ge(this,u,d);case"latin1":case"binary":return ne(this,u,d);case"base64":return E(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,u,d);default:if(v)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),v=!0}}r.prototype._isBuffer=!0;function D(f,u,d){let v=f[u];f[u]=f[d],f[d]=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?$(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,d,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),d===void 0&&(d=f?f.length:0),v===void 0&&(v=0),A===void 0&&(A=this.length),u<0||d>f.length||v<0||A>this.length)throw new RangeError("out of range index");if(v>=A&&u>=d)return 0;if(v>=A)return-1;if(u>=d)return 1;if(u>>>=0,d>>>=0,v>>>=0,A>>>=0,this===f)return 0;let w=A-v,P=d-u,V=Math.min(w,P),fe=this.slice(v,A),ie=f.slice(u,d);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,d,v,A){if(f.length===0)return-1;if(typeof d=="string"?(v=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,we(d)&&(d=A?0:f.length-1),d<0&&(d=f.length+d),d>=f.length){if(A)return-1;d=f.length-1}else if(d<0)if(A)d=0;else return-1;if(typeof u=="string"&&(u=r.from(u,v)),r.isBuffer(u))return u.length===0?-1:R(f,u,d,v,A);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?A?Uint8Array.prototype.indexOf.call(f,u,d):Uint8Array.prototype.lastIndexOf.call(f,u,d):R(f,[u],d,v,A);throw new TypeError("val must be string, number or Buffer")}function R(f,u,d,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,d/=2}function fe(ye,Se){return w===1?ye[Se]:ye.readUInt16BE(Se*w)}let ie;if(A){let ye=-1;for(ie=d;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(d+V>P&&(d=P-V),ie=d;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,d){return this.indexOf(f,u,d)!==-1},r.prototype.indexOf=function(f,u,d){return F(this,f,u,d,!0)},r.prototype.lastIndexOf=function(f,u,d){return F(this,f,u,d,!1)};function O(f,u,d,v){d=Number(d)||0;let A=f.length-d;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[d+P]=V}return P}function M(f,u,d,v){return L(j(u,f.length-d),f,d,v)}function W(f,u,d,v){return L(N(u),f,d,v)}function G(f,u,d,v){return L(Q(u),f,d,v)}function ee(f,u,d,v){return L(te(u,f.length-d),f,d,v)}r.prototype.write=function(f,u,d,v){if(u===void 0)v="utf8",d=this.length,u=0;else if(d===void 0&&typeof u=="string")v=u,d=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(d)?(d=d>>>0,v===void 0&&(v="utf8")):(v=d,d=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let A=this.length-u;if((d===void 0||d>A)&&(d=A),f.length>0&&(d<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,d);case"utf8":case"utf-8":return M(this,f,u,d);case"ascii":case"latin1":case"binary":return W(this,f,u,d);case"base64":return G(this,f,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,f,u,d);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,d){return u===0&&d===f.length?e.fromByteArray(f):e.fromByteArray(f.slice(u,d))}function $(f,u,d){d=Math.min(f.length,d);let v=[],A=u;for(;A<d;){let w=f[A],P=null,V=w>239?4:w>223?3:w>191?2:1;if(A+V<=d){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 d="",v=0;for(;v<u;)d+=String.fromCharCode.apply(String,f.slice(v,v+=Z));return d}function ge(f,u,d){let v="";d=Math.min(f.length,d);for(let A=u;A<d;++A)v+=String.fromCharCode(f[A]&127);return v}function ne(f,u,d){let v="";d=Math.min(f.length,d);for(let A=u;A<d;++A)v+=String.fromCharCode(f[A]);return v}function q(f,u,d){let v=f.length;(!u||u<0)&&(u=0),(!d||d<0||d>v)&&(d=v);let A="";for(let w=u;w<d;++w)A+=_e[f[w]];return A}function be(f,u,d){let v=f.slice(u,d),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 d=this.length;f=~~f,u=u===void 0?d:~~u,f<0?(f+=d,f<0&&(f=0)):f>d&&(f=d),u<0?(u+=d,u<0&&(u=0)):u>d&&(u=d),u<f&&(u=f);let v=this.subarray(f,u);return Object.setPrototypeOf(v,r.prototype),v};function re(f,u,d){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+u>d)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(f,u,d){f=f>>>0,u=u>>>0,d||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,d){f=f>>>0,u=u>>>0,d||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],d=this[f+7];(u===void 0||d===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+d*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],d=this[f+7];(u===void 0||d===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+d;return(BigInt(v)<<BigInt(32))+BigInt(A)}),r.prototype.readIntLE=function(f,u,d){f=f>>>0,u=u>>>0,d||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,d){f=f>>>0,u=u>>>0,d||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 d=this[f]|this[f+1]<<8;return d&32768?d|4294901760:d},r.prototype.readInt16BE=function(f,u){f=f>>>0,u||re(f,2,this.length);let d=this[f+1]|this[f]<<8;return d&32768?d|4294901760:d},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],d=this[f+7];(u===void 0||d===void 0)&&he(f,this.length-8);let v=this[f+4]+this[f+5]*2**8+this[f+6]*2**16+(d<<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],d=this[f+7];(u===void 0||d===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+d)}),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,d,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(d+v>f.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(f,u,d,v){if(f=+f,u=u>>>0,d=d>>>0,!v){let P=Math.pow(2,8*d)-1;ve(this,f,u,d,P,0)}let A=1,w=0;for(this[u]=f&255;++w<d&&(A*=256);)this[u+w]=f/A&255;return u+d},r.prototype.writeUintBE=r.prototype.writeUIntBE=function(f,u,d,v){if(f=+f,u=u>>>0,d=d>>>0,!v){let P=Math.pow(2,8*d)-1;ve(this,f,u,d,P,0)}let A=d-1,w=1;for(this[u+A]=f&255;--A>=0&&(w*=256);)this[u+A]=f/w&255;return u+d},r.prototype.writeUint8=r.prototype.writeUInt8=function(f,u,d){return f=+f,u=u>>>0,d||ve(this,f,u,1,255,0),this[u]=f&255,u+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(f,u,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d,v,A){X(u,v,A,f,d,7);let w=Number(u&BigInt(4294967295));f[d++]=w,w=w>>8,f[d++]=w,w=w>>8,f[d++]=w,w=w>>8,f[d++]=w;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[d++]=P,P=P>>8,f[d++]=P,P=P>>8,f[d++]=P,P=P>>8,f[d++]=P,d}function Y(f,u,d,v,A){X(u,v,A,f,d,7);let w=Number(u&BigInt(4294967295));f[d+7]=w,w=w>>8,f[d+6]=w,w=w>>8,f[d+5]=w,w=w>>8,f[d+4]=w;let P=Number(u>>BigInt(32)&BigInt(4294967295));return f[d+3]=P,P=P>>8,f[d+2]=P,P=P>>8,f[d+1]=P,P=P>>8,f[d]=P,d+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,d,v){if(f=+f,u=u>>>0,!v){let V=Math.pow(2,8*d-1);ve(this,f,u,d,V-1,-V)}let A=0,w=1,P=0;for(this[u]=f&255;++A<d&&(w*=256);)f<0&&P===0&&this[u+A-1]!==0&&(P=1),this[u+A]=(f/w>>0)-P&255;return u+d},r.prototype.writeIntBE=function(f,u,d,v){if(f=+f,u=u>>>0,!v){let V=Math.pow(2,8*d-1);ve(this,f,u,d,V-1,-V)}let A=d-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+d},r.prototype.writeInt8=function(f,u,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||ve(this,f,u,2,32767,-32768),this[u]=f&255,this[u+1]=f>>>8,u+2},r.prototype.writeInt16BE=function(f,u,d){return f=+f,u=u>>>0,d||ve(this,f,u,2,32767,-32768),this[u]=f>>>8,this[u+1]=f&255,u+2},r.prototype.writeInt32LE=function(f,u,d){return f=+f,u=u>>>0,d||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,d){return f=+f,u=u>>>0,d||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,d,v,A,w){if(d+v>f.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function Ee(f,u,d,v,A){return u=+u,d=d>>>0,A||ce(f,u,d,4),i.write(f,u,d,v,23,4),d+4}r.prototype.writeFloatLE=function(f,u,d){return Ee(this,f,u,!0,d)},r.prototype.writeFloatBE=function(f,u,d){return Ee(this,f,u,!1,d)};function ue(f,u,d,v,A){return u=+u,d=d>>>0,A||ce(f,u,d,8),i.write(f,u,d,v,52,8),d+8}r.prototype.writeDoubleLE=function(f,u,d){return ue(this,f,u,!0,d)},r.prototype.writeDoubleBE=function(f,u,d){return ue(this,f,u,!1,d)},r.prototype.copy=function(f,u,d,v){if(!r.isBuffer(f))throw new TypeError("argument should be a Buffer");if(d||(d=0),!v&&v!==0&&(v=this.length),u>=f.length&&(u=f.length),u||(u=0),v>0&&v<d&&(v=d),v===d||f.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(d<0||d>=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-d&&(v=f.length-u+d);let A=v-d;return this===f&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,d,v):Uint8Array.prototype.set.call(f,this.subarray(d,v),u),A},r.prototype.fill=function(f,u,d,v){if(typeof f=="string"){if(typeof u=="string"?(v=u,u=0,d=this.length):typeof d=="string"&&(v=d,d=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<d)throw new RangeError("Out of range index");if(d<=u)return this;u=u>>>0,d=d===void 0?this.length:d>>>0,f||(f=0);let A;if(typeof f=="number")for(A=u;A<d;++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<d-u;++A)this[A+u]=w[A%P]}return this};let x={};function _(f,u,d){x[f]=class extends d{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,d){let v=`The value of "${f}" is out of range.`,A=d;return Number.isInteger(d)&&Math.abs(d)>2**32?A=z(String(d)):typeof d=="bigint"&&(A=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(A=z(A)),A+="n"),v+=` It must be ${u}. Received ${A}`,v},RangeError);function z(f){let u="",d=f.length,v=f[0]==="-"?1:0;for(;d>=v+4;d-=3)u=`_${f.slice(d-3,d)}${u}`;return`${f.slice(0,d)}${u}`}function le(f,u,d){J(u,"offset"),(f[u]===void 0||f[u+d]===void 0)&&he(u,f.length-(d+1))}function X(f,u,d,v,A,w){if(f>d||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 <= ${d}${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,d){throw Math.floor(f)!==f?(J(f,d),new x.ERR_OUT_OF_RANGE(d||"offset","an integer",f)):u<0?new x.ERR_BUFFER_OUT_OF_BOUNDS:new x.ERR_OUT_OF_RANGE(d||"offset",`>= ${d?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 d,v=f.length,A=null,w=[];for(let P=0;P<v;++P){if(d=f.charCodeAt(P),d>55295&&d<57344){if(!A){if(d>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=d;continue}if(d<56320){(u-=3)>-1&&w.push(239,191,189),A=d;continue}d=(A-55296<<10|d-56320)+65536}else A&&(u-=3)>-1&&w.push(239,191,189);if(A=null,d<128){if((u-=1)<0)break;w.push(d)}else if(d<2048){if((u-=2)<0)break;w.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;w.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;w.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return w}function N(f){let u=[];for(let d=0;d<f.length;++d)u.push(f.charCodeAt(d)&255);return u}function te(f,u){let d,v,A,w=[];for(let P=0;P<f.length&&!((u-=2)<0);++P)d=f.charCodeAt(P),v=d>>8,A=d%256,w.push(A),w.push(v);return w}function Q(f){return e.toByteArray(C(f))}function L(f,u,d,v){let A;for(A=0;A<v&&!(A+d>=u.length||A>=f.length);++A)u[A+d]=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 d=0;d<16;++d){let v=d*16;for(let A=0;A<16;++A)u[v+A]=f[d]+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,hn,br,cn,Ut,fn,Et,lr,Ho,zo,et=Ge(()=>{ae(),se(),oe(),sr={},hn=!1,br={},cn=!1,Ut={},fn=!1,Et=xa(),Et.Buffer,Et.SlowBuffer,Et.INSPECT_MAX_BYTES,Et.kMaxLength,lr=Et.Buffer,Ho=Et.INSPECT_MAX_BYTES,zo=Et.kMaxLength}),ae=Ge(()=>{et()}),Ma=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}),Ke=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=(et(),Me(Ze)),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
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,...p)=>c?a(c):n(...p))})},debuglog(){return function(){}},format(s,...n){return s.replace(/%([sdifj])/g,function(...[a,c]){let p=n.shift();return c==="f"?p.toFixed(6):c==="j"?JSON.stringify(p):c==="s"&&typeof p=="object"?`${p.constructor!==Object?p.constructor.name:""} {}`.trim():p.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")}),xn=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}),ot=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 p(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 p(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 p(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)=>{p(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)p(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):(p(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)=>{p(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)=>{p(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}}),Dr=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:p,RegExpPrototypeExec:g,String:b,StringPrototypeToUpperCase:m,StringPrototypeTrim:y}=Ke(),{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}}=ot(),{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]+$/,$="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,$);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 q(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||!p(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++)q(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(q(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:q,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,p,g=-1;function b(){!c||!p||(c=!1,p.length?a=p.concat(a):g=-1,a.length&&m())}function m(){if(!c){var U=s(b);c=!0;for(var k=a.length;k;){for(p=a,a=[];++g<k;)p&&p[g].run();g=-1,k=a.length}p=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}=Ke(),r=t("kDestroyed"),s=t("kIsErrored"),n=t("kIsReadable"),a=t("kIsDisturbed"),c=o("nodejs.webstream.isClosedPromise"),p=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 $(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 q(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:p,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:$,isServerRequest:q,isServerResponse:ne,willEmitClose:be,isTransformStream:k}}),Dt=me((e,i)=>{ae(),se(),oe();var t=rr(),{AbortError:l,codes:h}=ot(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:r}=h,{kEmptyObject:s,once:n}=Ot(),{validateAbortSignal:a,validateFunction:c,validateObject:p,validateBoolean:g}=Dr(),{Promise:b,PromisePrototypeThen:m}=Ke(),{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 q.setHeader&&typeof q.abort=="function"}var Z=()=>{};function K(q,be,re){var ve,S;if(arguments.length===2?(re=be,be=s):be==null?be=s:p(be,"options"),c(re,"callback"),a(be.signal,"options.signal"),re=n(re),k(q)||O(q))return ge(q,be,re);if(!G(q))throw new o("stream",["ReadableStream","WritableStream","Stream"],q);let Y=(ve=be.readable)!==null&&ve!==void 0?ve:U(q),ce=(S=be.writable)!==null&&S!==void 0?S:R(q),Ee=q._writableState,ue=q._readableState,x=()=>{q.writable||le()},_=ee(q)&&U(q)===Y&&R(q)===ce,z=M(q,!1),le=()=>{z=!0,q.destroyed&&(_=!1),!(_&&(!q.readable||Y))&&(!Y||X)&&re.call(q)},X=T(q,!1),J=()=>{X=!0,q.destroyed&&(_=!1),!(_&&(!q.writable||ce))&&(!ce||z)&&re.call(q)},he=Q=>{re.call(q,Q)},de=y(q),C=()=>{de=!0;let Q=W(q)||D(q);if(Q&&typeof Q!="boolean")return re.call(q,Q);if(Y&&!X&&U(q,!0)&&!T(q,!1))return re.call(q,new r);if(ce&&!z&&!M(q,!1))return re.call(q,new r);re.call(q)},j=()=>{de=!0;let Q=W(q)||D(q);if(Q&&typeof Q!="boolean")return re.call(q,Q);re.call(q)},N=()=>{q.req.on("finish",le)};$(q)?(q.on("complete",le),_||q.on("abort",C),q.req?N():q.on("request",N)):ce&&!Ee&&(q.on("end",x),q.on("close",x)),!_&&typeof q.aborted=="boolean"&&q.on("aborted",C),q.on("end",J),q.on("finish",le),be.error!==!1&&q.on("error",he),q.on("close",C),de?t.nextTick(C):Ee!=null&&Ee.errorEmitted||ue!=null&&ue.errorEmitted?_||t.nextTick(j):(!Y&&(!_||I(q))&&(z||F(q)===!1)||!ce&&(!_||F(q))&&(X||I(q)===!1)||ue&&q.req&&q.aborted)&&t.nextTick(j);let te=()=>{re=Z,q.removeListener("aborted",C),q.removeListener("complete",le),q.removeListener("abort",C),q.removeListener("request",N),q.req&&q.req.removeListener("finish",le),q.removeListener("end",x),q.removeListener("close",x),q.removeListener("finish",le),q.removeListener("end",J),q.removeListener("error",he),q.removeListener("close",C)};if(be.signal&&!de){let Q=()=>{let L=re;te(),L.call(q,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(q,H)}),be.signal.addEventListener("abort",Q)}}return te}function ge(q,be,re){let ve=!1,S=Z;if(be.signal)if(S=()=>{ve=!0,re.call(q,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(q,Ee)}),be.signal.addEventListener("abort",S)}let Y=(...ce)=>{ve||t.nextTick(()=>re.apply(q,ce))};return m(q[E].promise,Y,Y),Z}function ne(q,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(q,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}=ot(),{Symbol:r}=Ke(),{kDestroyed:s,isDestroyed:n,isFinished:a,isServerRequest:c}=Pt(),p=r("kDestroy"),g=r("kConstruct");function b(E,$,Z){E&&(E.stack,$&&!$.errored&&($.errored=E),Z&&!Z.errored&&(Z.errored=E))}function m(E,$){let Z=this._readableState,K=this._writableState,ge=K||Z;return K!=null&&K.destroyed||Z!=null&&Z.destroyed?(typeof $=="function"&&$(),this):(b(E,K,Z),K&&(K.destroyed=!0),Z&&(Z.destroyed=!0),ge.constructed?y(this,E,$):this.once(p,function(ne){y(this,l(ne,E),$)}),this)}function y(E,$,Z){let K=!1;function ge(ne){if(K)return;K=!0;let q=E._readableState,be=E._writableState;b(ne,be,q),be&&(be.closed=!0),q&&(q.closed=!0),typeof Z=="function"&&Z(ne),ne?t.nextTick(I,E,ne):t.nextTick(U,E)}try{E._destroy($||null,ge)}catch(ne){ge(ne)}}function I(E,$){k(E,$),U(E)}function U(E){let $=E._readableState,Z=E._writableState;Z&&(Z.closeEmitted=!0),$&&($.closeEmitted=!0),(Z!=null&&Z.emitClose||$!=null&&$.emitClose)&&E.emit("close")}function k(E,$){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",$))}function T(){let E=this._readableState,$=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),$&&($.constructed=!0,$.destroyed=!1,$.closed=!1,$.closeEmitted=!1,$.errored=null,$.errorEmitted=!1,$.finalCalled=!1,$.prefinished=!1,$.ended=$.writable===!1,$.ending=$.writable===!1,$.finished=$.writable===!1)}function D(E,$,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($):$&&($.stack,ge&&!ge.errored&&(ge.errored=$),K&&!K.errored&&(K.errored=$),Z?t.nextTick(k,E,$):k(E,$))}function F(E,$){if(typeof E._construct!="function")return;let Z=E._readableState,K=E._writableState;Z&&(Z.constructed=!1),K&&(K.constructed=!1),E.once(g,$),!(E.listenerCount(g)>1)&&t.nextTick(R,E)}function R(E){let $=!1;function Z(K){if($){D(E,K??new h);return}$=!0;let ge=E._readableState,ne=E._writableState,q=ne||ge;ge&&(ge.constructed=!0),ne&&(ne.constructed=!0),q.destroyed?E.emit(p,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,$){E.emit("error",$),t.nextTick(W,E)}function ee(E,$){!E||n(E)||(!$&&!a(E)&&($=new o),c(E)?(E.socket=null,E.destroy($)):M(E)?E.abort():M(E.req)?E.req.abort():typeof E.destroy=="function"?E.destroy($):typeof E.close=="function"?E.close():$?t.nextTick(G,E,$):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 Ko(e){return e._maxListeners===void 0?Be.defaultMaxListeners:e._maxListeners}function Vn(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=Ko(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 Ua(){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 Hn(e,i,t){var l={fired:!1,wrapFn:void 0,target:e,type:i,listener:t},h=Ua.bind(l);return h.listener=t,l.wrapFn=h,h}function zn(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):Yo(h,h.length)}function Kn(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 Yo(e,i){for(var t=new Array(i),l=0;l<i;++l)t[l]=e[l];return t}var Yn,Qn,Wt,Kr,Yr,Qr,lt,Gn=Ge(()=>{ae(),se(),oe(),Wt=typeof Reflect=="object"?Reflect:null,Kr=Wt&&typeof Wt.apply=="function"?Wt.apply:function(e,i,t){return Function.prototype.apply.call(e,i,t)},Qn=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)},Yr=Number.isNaN||function(e){return e!=e},Yn=Be,Be.EventEmitter=Be,Be.prototype._events=void 0,Be.prototype._eventsCount=0,Be.prototype._maxListeners=void 0,Qr=10,Object.defineProperty(Be,"defaultMaxListeners",{enumerable:!0,get:function(){return Qr},set:function(e){if(typeof e!="number"||e<0||Yr(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Qr=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||Yr(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 Ko(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")Kr(s,this,i);else{var n=s.length,a=Yo(s,n);for(t=0;t<n;++t)Kr(a[t],this,i)}return!0},Be.prototype.addListener=function(e,i){return Vn(this,e,i,!1)},Be.prototype.on=Be.prototype.addListener,Be.prototype.prependListener=function(e,i){return Vn(this,e,i,!0)},Be.prototype.once=function(e,i){return Cr(i),this.on(e,Hn(this,e,i)),this},Be.prototype.prependOnceListener=function(e,i){return Cr(i),this.prependListener(e,Hn(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 zn(this,e,!0)},Be.prototype.rawListeners=function(e){return zn(this,e,!1)},Be.listenerCount=function(e,i){return typeof e.listenerCount=="function"?e.listenerCount(i):Kn.call(e,i)},Be.prototype.listenerCount=Kn,Be.prototype.eventNames=function(){return this._eventsCount>0?Qn(this._events):[]},lt=Yn,lt.EventEmitter,lt.defaultMaxListeners,lt.init,lt.listenerCount,lt.EventEmitter,lt.defaultMaxListeners,lt.init,lt.listenerCount}),ir={};tr(ir,{EventEmitter:()=>Qo,default:()=>lt,defaultMaxListeners:()=>Go,init:()=>Jo,listenerCount:()=>Xo,on:()=>Zo,once:()=>es});var Qo,Go,Jo,Xo,Zo,es,hr=Ge(()=>{ae(),se(),oe(),Gn(),Gn(),lt.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)})},lt.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,p)=>l.push({resolve:c,reject:p}))},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:Qo,defaultMaxListeners:Go,init:Jo,listenerCount:Xo,on:Zo,once:es}=lt}),Mn=me((e,i)=>{ae(),se(),oe();var{ArrayIsArray:t,ObjectSetPrototypeOf:l}=Ke(),{EventEmitter:h}=(hr(),Me(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 p(){a.readable&&a.resume&&a.resume()}s.on("drain",p),!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",p),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}}),Fr=me((e,i)=>{ae(),se(),oe();var{AbortError:t,codes:l}=ot(),{isNodeStream:h,isWebStream:o,kControllerErrorFunction:r}=Pt(),s=Dt(),{ERR_INVALID_ARG_TYPE:n}=l,a=(c,p)=>{if(typeof c!="object"||!("aborted"in c))throw new n(p,"AbortSignal",c)};i.exports.addAbortSignal=function(c,p){if(a(c,"signal"),!h(p)&&!o(p))throw new n("stream",["ReadableStream","WritableStream","Stream"],p);return i.exports.addAbortSignalNoValidate(c,p)},i.exports.addAbortSignalNoValidate=function(c,p){if(typeof c!="object"||!("aborted"in c))return p;let g=h(p)?()=>{p.destroy(new t(void 0,{cause:c.reason}))}:()=>{p[r](new t(void 0,{cause:c.reason}))};return c.aborted?g():(c.addEventListener("abort",g),s(p,()=>c.removeEventListener("abort",g))),p}}),La=me((e,i)=>{ae(),se(),oe();var{StringPrototypeSlice:t,SymbolIterator:l,TypedArrayPrototypeSet:h,Uint8Array:o}=Ke(),{Buffer:r}=(et(),Me(Ze)),{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,p=0;for(;c;)h(a,c.data,p),p+=c.data.length,c=c.next;return a}consume(n,a){let c=this.head.data;if(n<c.length){let p=c.slice(0,n);return this.head.data=c.slice(n),p}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,p=0;do{let g=c.data;if(n>g.length)a+=g,n-=g.length;else{n===g.length?(a+=g,++p,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}++p}while((c=c.next)!==null);return this.length-=p,a}_getBuffer(n){let a=r.allocUnsafe(n),c=n,p=this.head,g=0;do{let b=p.data;if(n>b.length)h(a,b,c-n),n-=b.length;else{n===b.length?(h(a,b,c-n),++g,p.next?this.head=p.next:this.head=this.tail=null):(h(a,new o(b.buffer,b.byteOffset,n),c-n),this.head=p,p.data=b.slice(n));break}++g}while((p=p.next)!==null);return this.length-=g,a}[Symbol.for("nodejs.util.inspect.custom")](n,a){return s(this,{...a,depth:0,customInspect:!1})}}}),Un=me((e,i)=>{ae(),se(),oe();var{MathFloor:t,NumberIsInteger:l}=Ke(),{ERR_INVALID_ARG_VALUE:h}=ot().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,p){let g=o(a,p,c);if(g!=null){if(!l(g)||g<0){let b=p?`options.${c}`:"options.highWaterMark";throw new h(b,g)}return t(g)}return r(n.objectMode)}i.exports={getHighWaterMark:s,getDefaultHighWaterMark:r}});function Jn(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 Na(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 dn(e)}return ts(e,i,t)}function ts(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|is(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 Gr(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 ja(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|Ln(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"||Nn(o.length)?Tt(0):Gr(o);if(o.type==="Buffer"&&Array.isArray(o.data))return Gr(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 rs(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 dn(e){return rs(e),Tt(e<0?0:0|Ln(e))}function Gr(e){for(var i=e.length<0?0:0|Ln(e.length),t=Tt(i),l=0;l<i;l+=1)t[l]=255&e[l];return t}function ja(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 Ln(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function is(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 pn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return as(e).length;default:if(h)return l?-1:pn(e).length;i=(""+i).toLowerCase(),h=!0}}function Da(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 Ya(this,i,t);case"utf8":case"utf-8":return os(this,i,t);case"ascii":return za(this,i,t);case"latin1":case"binary":return Ka(this,i,t);case"base64":return Ha(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qa(this,i,t);default:if(l)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function qt(e,i,t){var l=e[i];e[i]=e[t],e[t]=l}function Xn(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),Nn(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:Zn(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):Zn(e,[i],t,l,h);throw new TypeError("val must be string, number or Buffer")}function Zn(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 p=!0,g=0;g<n;g++)if(a(e,o+g)!==a(i,g)){p=!1;break}if(p)return o}return-1}function Fa(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(Nn(s))return r;e[t+r]=s}return r}function Wa(e,i,t,l){return Wr(pn(i,e.length-t),e,t,l)}function ns(e,i,t,l){return Wr(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 ns(e,i,t,l)}function $a(e,i,t,l){return Wr(as(i),e,t,l)}function Va(e,i,t,l){return Wr(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 Ha(e,i,t){return i===0&&t===e.length?Ur.fromByteArray(e):Ur.fromByteArray(e.slice(i,t))}function os(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,p=a>239?4:a>223?3:a>191?2:1;if(h+p<=t)switch(p){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,p=1):c>65535&&(c-=65536,l.push(c>>>10&1023|55296),c=56320|1023&c),l.push(c),h+=p}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 za(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 Ka(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 Ya(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+=us[e[o]];return h}function Qa(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 Ye(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 nt(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 ss(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 eo(e,i,t,l,h){return i=+i,t>>>=0,h||ss(e,0,t,4),Yt.write(e,i,t,l,23,4),t+4}function to(e,i,t,l,h){return i=+i,t>>>=0,h||ss(e,0,t,8),Yt.write(e,i,t,l,52,8),t+8}function pn(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 as(e){return Ur.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(ls,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(e))}function Wr(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 Nn(e){return e!=e}function ro(e,i){for(var t in e)i[t]=e[t]}function $t(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"&&(Lr.isEncoding===gn||!gn(t)))throw new Error("Unknown encoding: "+t);return l||t}(e),this.encoding){case"utf16le":this.text=Ja,this.end=Xa,i=4;break;case"utf8":this.fillLast=Ga,i=4;break;case"base64":this.text=Za,this.end=el,i=3;break;default:return this.write=tl,this.end=rl,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Lr.allocUnsafe(i)}function Jr(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function Ga(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 Ja(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 Xa(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 Za(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 el(e){var i=e&&e.length?this.write(e):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function tl(e){return e.toString(this.encoding)}function rl(e){return e&&e.length?this.write(e):""}var io,gt,st,no,Er,Vt,oo,so,bt,Ur,Yt,Xr,ls,us,fr,dr,dt,ao,ar,Lr,gn,lo=Ge(()=>{for(ae(),se(),oe(),io={byteLength:function(e){var i=Jn(e),t=i[0],l=i[1];return 3*(t+l)/4-l},toByteArray:function(e){var i,t,l=Jn(e),h=l[0],o=l[1],r=new no(function(a,c,p){return 3*(c+p)/4-p}(0,h,o)),s=0,n=o>0?h-4:h;for(t=0;t<n;t+=4)i=st[e.charCodeAt(t)]<<18|st[e.charCodeAt(t+1)]<<12|st[e.charCodeAt(t+2)]<<6|st[e.charCodeAt(t+3)],r[s++]=i>>16&255,r[s++]=i>>8&255,r[s++]=255&i;return o===2&&(i=st[e.charCodeAt(t)]<<2|st[e.charCodeAt(t+1)]>>4,r[s++]=255&i),o===1&&(i=st[e.charCodeAt(t)]<<10|st[e.charCodeAt(t+1)]<<4|st[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(Na(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=[],st=[],no=typeof Uint8Array<"u"?Uint8Array:Array,Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vt=0,oo=Er.length;Vt<oo;++Vt)gt[Vt]=Er[Vt],st[Er.charCodeAt(Vt)]=Vt;st[45]=62,st[95]=63,so={read:function(e,i,t,l,h){var o,r,s=8*h-l-1,n=(1<<s)-1,a=n>>1,c=-7,p=t?h-1:0,g=t?-1:1,b=e[i+p];for(p+=g,o=b&(1<<-c)-1,b>>=-c,c+=s;c>0;o=256*o+e[i+p],p+=g,c-=8);for(r=o&(1<<-c)-1,o>>=-c,c+=l;c>0;r=256*r+e[i+p],p+=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,p=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+p>=1?g/n:g*Math.pow(2,1-p))*n>=2&&(r++,n/=2),r+p>=c?(s=0,r=c):r+p>=1?(s=(i*n-1)*Math.pow(2,h),r+=p):(s=i*Math.pow(2,p-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={},Ur=io,Yt=so,Xr=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 ts(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 rs(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 dn(e)},pe.allocUnsafeSlow=function(e){return dn(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=is,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)qt(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)qt(this,i,i+3),qt(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)qt(this,i,i+7),qt(this,i+1,i+6),qt(this,i+2,i+5),qt(this,i+3,i+4);return this},pe.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?os(this,0,e):Da.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+">"},Xr&&(pe.prototype[Xr]=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 Xn(this,e,i,t,!0)},pe.prototype.lastIndexOf=function(e,i,t){return Xn(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 Fa(this,e,i,t);case"utf8":case"utf-8":return Wa(this,e,i,t);case"ascii":return ns(this,e,i,t);case"latin1":case"binary":return qa(this,e,i,t);case"base64":return $a(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Va(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||Ye(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||Ye(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||Ye(e,1,this.length),this[e]},pe.prototype.readUInt16LE=function(e,i){return e>>>=0,i||Ye(e,2,this.length),this[e]|this[e+1]<<8},pe.prototype.readUInt16BE=function(e,i){return e>>>=0,i||Ye(e,2,this.length),this[e]<<8|this[e+1]},pe.prototype.readUInt32LE=function(e,i){return e>>>=0,i||Ye(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||Ye(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||Ye(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||Ye(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||Ye(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},pe.prototype.readInt16LE=function(e,i){e>>>=0,i||Ye(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||Ye(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||Ye(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||Ye(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||Ye(e,4,this.length),Yt.read(this,e,!0,23,4)},pe.prototype.readFloatBE=function(e,i){return e>>>=0,i||Ye(e,4,this.length),Yt.read(this,e,!1,23,4)},pe.prototype.readDoubleLE=function(e,i){return e>>>=0,i||Ye(e,8,this.length),Yt.read(this,e,!0,52,8)},pe.prototype.readDoubleBE=function(e,i){return e>>>=0,i||Ye(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||nt(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||nt(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||nt(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||nt(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||nt(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||nt(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||nt(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);nt(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);nt(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||nt(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||nt(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||nt(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||nt(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||nt(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 eo(this,e,i,!0,t)},pe.prototype.writeFloatBE=function(e,i,t){return eo(this,e,i,!1,t)},pe.prototype.writeDoubleLE=function(e,i,t){return to(this,e,i,!0,t)},pe.prototype.writeDoubleBE=function(e,i,t){return to(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},ls=/[^+/0-9A-Za-z-_]/g,us=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:(ro(dr,fr),fr.Buffer=$t),$t.prototype=Object.create(dt.prototype),ro(dt,$t),$t.from=function(e,i,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return dt(e,i,t)},$t.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},$t.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return dt(e)},$t.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return dr.SlowBuffer(e)},ao=fr,ar={},Lr=ao.Buffer,gn=Lr.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=Jr(o[s]);return n>=0?(n>0&&(h.lastNeed=n-1),n):--s<r||n===-2?0:(n=Jr(o[s]))>=0?(n>0&&(h.lastNeed=n-2),n):--s<r||n===-2?0:(n=Jr(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}),hs={};tr(hs,{StringDecoder:()=>cs,default:()=>ar});var cs,il=Ge(()=>{ae(),se(),oe(),lo(),lo(),cs=ar.StringDecoder}),fs=me((e,i)=>{ae(),se(),oe();var t=rr(),{PromisePrototypeThen:l,SymbolAsyncIterator:h,SymbolIterator:o}=Ke(),{Buffer:r}=(et(),Me(Ze)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:n}=ot().codes;function a(c,p,g){let b;if(typeof p=="string"||p instanceof r)return new c({objectMode:!0,...g,read(){this.push(p),this.push(null)}});let m;if(p&&p[h])m=!0,b=p[h]();else if(p&&p[o])m=!1,b=p[o]();else throw new s("iterable",["Iterable"],p);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:p,SymbolAsyncIterator:g,Symbol:b}=Ke();i.exports=S,S.ReadableState=ve;var{EventEmitter:m}=(hr(),Me(ir)),{Stream:y,prependListener:I}=Mn(),{Buffer:U}=(et(),Me(Ze)),{addAbortSignal:k}=Fr(),T=Dt(),D=Ot().debuglog("stream",u=>{D=u}),F=La(),R=ur(),{getHighWaterMark:O,getDefaultHighWaterMark:M}=Un(),{aggregateTwoErrors:W,codes:{ERR_INVALID_ARG_TYPE:G,ERR_METHOD_NOT_IMPLEMENTED:ee,ERR_OUT_OF_RANGE:E,ERR_STREAM_PUSH_AFTER_EOF:$,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Z}}=ot(),{validateObject:K}=Dr(),ge=b("kPaused"),{StringDecoder:ne}=(il(),Me(hs)),q=fs();a(S.prototype,y.prototype),a(S,y);var be=()=>{},{errorOrDestroy:re}=R;function ve(u,d,v){typeof v!="boolean"&&(v=d 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 d=this instanceof Ct();this._readableState=new ve(u,this,d),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&&!d&&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,d){d(u)},S.prototype[m.captureRejectionSymbol]=function(u){this.destroy(u)},S.prototype.push=function(u,d){return Y(this,u,d,!1)},S.prototype.unshift=function(u,d){return Y(this,u,d,!0)};function Y(u,d,v,A){D("readableAddChunk",d);let w=u._readableState,P;if(w.objectMode||(typeof d=="string"?(v=v||w.defaultEncoding,w.encoding!==v&&(A&&w.encoding?d=U.from(d,v).toString(w.encoding):(d=U.from(d,v),v=""))):d instanceof U?v="":y._isUint8Array(d)?(d=y._uint8ArrayToBuffer(d),v=""):d!=null&&(P=new G("chunk",["string","Buffer","Uint8Array"],d))),P)re(u,P);else if(d===null)w.reading=!1,_(u,w);else if(w.objectMode||d&&d.length>0)if(A)if(w.endEmitted)re(u,new Z);else{if(w.destroyed||w.errored)return!1;ce(u,w,d,!0)}else if(w.ended)re(u,new $);else{if(w.destroyed||w.errored)return!1;w.reading=!1,w.decoder&&!v?(d=w.decoder.write(d),w.objectMode||d.length!==0?ce(u,w,d,!1):X(u,w)):ce(u,w,d,!1)}else A||(w.reading=!1,X(u,w));return!w.ended&&(w.length<w.highWaterMark||w.length===0)}function ce(u,d,v,A){d.flowing&&d.length===0&&!d.sync&&u.listenerCount("data")>0?(d.multiAwaitDrain?d.awaitDrainWriters.clear():d.awaitDrainWriters=null,d.dataEmitted=!0,u.emit("data",v)):(d.length+=d.objectMode?1:v.length,A?d.buffer.unshift(v):d.buffer.push(v),d.needReadable&&z(u)),X(u,d)}S.prototype.isPaused=function(){let u=this._readableState;return u[ge]===!0||u.flowing===!1},S.prototype.setEncoding=function(u){let d=new ne(u);this._readableState.decoder=d,this._readableState.encoding=this._readableState.decoder.encoding;let v=this._readableState.buffer,A="";for(let w of v)A+=d.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,d){return u<=0||d.length===0&&d.ended?0:d.objectMode?1:o(u)?d.flowing&&d.length?d.buffer.first().length:d.length:u<=d.length?u:d.ended?d.length:0}S.prototype.read=function(u){D("read",u),u===void 0?u=NaN:h(u)||(u=r(u,10));let d=this._readableState,v=u;if(u>d.highWaterMark&&(d.highWaterMark=ue(u)),u!==0&&(d.emittedReadable=!1),u===0&&d.needReadable&&((d.highWaterMark!==0?d.length>=d.highWaterMark:d.length>0)||d.ended))return D("read: emitReadable",d.length,d.ended),d.length===0&&d.ended?we(this):z(this),null;if(u=x(u,d),u===0&&d.ended)return d.length===0&&we(this),null;let A=d.needReadable;if(D("need readable",A),(d.length===0||d.length-u<d.highWaterMark)&&(A=!0,D("length less than watermark",A)),d.ended||d.reading||d.destroyed||d.errored||!d.constructed)A=!1,D("reading, ended or constructing",A);else if(A){D("do read"),d.reading=!0,d.sync=!0,d.length===0&&(d.needReadable=!0);try{this._read(d.highWaterMark)}catch(P){re(this,P)}d.sync=!1,d.reading||(u=x(v,d))}let w;return u>0?w=H(u,d):w=null,w===null?(d.needReadable=d.length<=d.highWaterMark,u=0):(d.length-=u,d.multiAwaitDrain?d.awaitDrainWriters.clear():d.awaitDrainWriters=null),d.length===0&&(d.ended||(d.needReadable=!0),v!==u&&d.ended&&we(this)),w!==null&&!d.errorEmitted&&!d.closeEmitted&&(d.dataEmitted=!0,this.emit("data",w)),w};function _(u,d){if(D("onEofChunk"),!d.ended){if(d.decoder){let v=d.decoder.end();v&&v.length&&(d.buffer.push(v),d.length+=d.objectMode?1:v.length)}d.ended=!0,d.sync?z(u):(d.needReadable=!1,d.emittedReadable=!0,le(u))}}function z(u){let d=u._readableState;D("emitReadable",d.needReadable,d.emittedReadable),d.needReadable=!1,d.emittedReadable||(D("emitReadable",d.flowing),d.emittedReadable=!0,t.nextTick(le,u))}function le(u){let d=u._readableState;D("emitReadable_",d.destroyed,d.length,d.ended),!d.destroyed&&!d.errored&&(d.length||d.ended)&&(u.emit("readable"),d.emittedReadable=!1),d.needReadable=!d.flowing&&!d.ended&&d.length<=d.highWaterMark,te(u)}function X(u,d){!d.readingMore&&d.constructed&&(d.readingMore=!0,t.nextTick(J,u,d))}function J(u,d){for(;!d.reading&&!d.ended&&(d.length<d.highWaterMark||d.flowing&&d.length===0);){let v=d.length;if(D("maybeReadMore read 0"),u.read(0),v===d.length)break}d.readingMore=!1}S.prototype._read=function(u){throw new ee("_read()")},S.prototype.pipe=function(u,d){let v=this,A=this._readableState;A.pipes.length===1&&(A.multiAwaitDrain||(A.multiAwaitDrain=!0,A.awaitDrainWriters=new p(A.awaitDrainWriters?[A.awaitDrainWriters]:[]))),A.pipes.push(u),D("pipe count=%d opts=%j",A.pipes.length,d);let w=(!d||d.end!==!1)&&u!==t.stdout&&u!==t.stderr?V:rt;A.endEmitted?t.nextTick(w):v.once("end",w),u.on("unpipe",P);function P(Ve,He){D("onunpipe"),Ve===v&&He&&He.hasUnpiped===!1&&(He.hasUnpiped=!0,ye())}function V(){D("onend"),u.end()}let fe,ie=!1;function ye(){D("cleanup"),u.removeListener("close",tt),u.removeListener("finish",xe),fe&&u.removeListener("drain",fe),u.removeListener("error",qe),u.removeListener("unpipe",P),v.removeListener("end",V),v.removeListener("end",rt),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(Ve){D("ondata");let He=u.write(Ve);D("dest.write",He),He===!1&&Se()}function qe(Ve){if(D("onerror",Ve),rt(),u.removeListener("error",qe),u.listenerCount("error")===0){let He=u._writableState||u._readableState;He&&!He.errorEmitted?re(u,Ve):u.emit("error",Ve)}}I(u,"error",qe);function tt(){u.removeListener("finish",xe),rt()}u.once("close",tt);function xe(){D("onfinish"),u.removeListener("close",tt),rt()}u.once("finish",xe);function rt(){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,d){return function(){let v=u._readableState;v.awaitDrainWriters===d?(D("pipeOnDrain",1),v.awaitDrainWriters=null):v.multiAwaitDrain&&(D("pipeOnDrain",v.awaitDrainWriters.size),v.awaitDrainWriters.delete(d)),(!v.awaitDrainWriters||v.awaitDrainWriters.size===0)&&u.listenerCount("data")&&u.resume()}}S.prototype.unpipe=function(u){let d=this._readableState,v={hasUnpiped:!1};if(d.pipes.length===0)return this;if(!u){let w=d.pipes;d.pipes=[],this.pause();for(let P=0;P<w.length;P++)w[P].emit("unpipe",this,{hasUnpiped:!1});return this}let A=l(d.pipes,u);return A===-1?this:(d.pipes.splice(A,1),d.pipes.length===0&&this.pause(),u.emit("unpipe",this,v),this)},S.prototype.on=function(u,d){let v=y.prototype.on.call(this,u,d),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,d){let v=y.prototype.removeListener.call(this,u,d);return u==="readable"&&t.nextTick(de,this),v},S.prototype.off=S.prototype.removeListener,S.prototype.removeAllListeners=function(u){let d=y.prototype.removeAllListeners.apply(this,arguments);return(u==="readable"||u===void 0)&&t.nextTick(de,this),d};function de(u){let d=u._readableState;d.readableListening=u.listenerCount("readable")>0,d.resumeScheduled&&d[ge]===!1?d.flowing=!0:u.listenerCount("data")>0?u.resume():d.readableListening||(d.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,d){d.resumeScheduled||(d.resumeScheduled=!0,t.nextTick(N,u,d))}function N(u,d){D("resume",d.reading),d.reading||u.read(0),d.resumeScheduled=!1,u.emit("resume"),te(u),d.flowing&&!d.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 d=u._readableState;for(D("flow",d.flowing);d.flowing&&u.read()!==null;);}S.prototype.wrap=function(u){let d=!1;u.on("data",A=>{!this.push(A)&&u.pause&&(d=!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=()=>{d&&u.resume&&(d=!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,d){typeof u.read!="function"&&(u=S.wrap(u,{objectMode:!0}));let v=L(u,d);return v.stream=u,v}async function*L(u,d){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||(d==null?void 0:d.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,d){if(d.length===0)return null;let v;return d.objectMode?v=d.buffer.shift():!u||u>=d.length?(d.decoder?v=d.buffer.join(""):d.buffer.length===1?v=d.buffer.first():v=d.buffer.concat(d.length),d.buffer.clear()):v=d.buffer.consume(u,d.decoder),v}function we(u){let d=u._readableState;D("endReadable",d.endEmitted),d.endEmitted||(d.ended=!0,t.nextTick(_e,d,u))}function _e(u,d){if(D("endReadableNT",u.endEmitted,u.length),!u.errored&&!u.closeEmitted&&!u.endEmitted&&u.length===0){if(u.endEmitted=!0,d.emit("end"),d.writable&&d.allowHalfOpen===!1)t.nextTick(Ae,d);else if(u.autoDestroy){let v=d._writableState;(!v||v.autoDestroy&&(v.finished||v.writable===!1))&&d.destroy()}}}function Ae(u){u.writable&&!u.writableEnded&&!u.destroyed&&u.end()}S.from=function(u,d){return q(S,u,d)};var Re;function f(){return Re===void 0&&(Re={}),Re}S.fromWeb=function(u,d){return f().newStreamReadableFromReadableStream(u,d)},S.toWeb=function(u,d){return f().newReadableStreamFromStreamReadable(u,d)},S.wrap=function(u,d){var v,A;return new S({objectMode:(v=(A=u.readableObjectMode)!==null&&A!==void 0?A:u.objectMode)!==null&&v!==void 0?v:!0,...d,destroy(w,P){R.destroyer(u,w),P(w)}}).wrap(u)}}),ds=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:p}=Ke();i.exports=ne,ne.WritableState=K;var{EventEmitter:g}=(hr(),Me(ir)),b=Mn().Stream,{Buffer:m}=(et(),Me(Ze)),y=ur(),{addAbortSignal:I}=Fr(),{getHighWaterMark:U,getDefaultHighWaterMark:k}=Un(),{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}=ot().codes,{errorOrDestroy:E}=y;n(ne.prototype,b.prototype),n(ne,b);function $(){}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,p,{__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 q(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=$)}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 q(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!==$&&(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?$: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=q(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)}}),nl=me((e,i)=>{ae(),se(),oe();var t=rr(),l=(et(),Me(Ze)),{isReadable:h,isWritable:o,isIterable:r,isNodeStream:s,isReadableNodeStream:n,isWritableNodeStream:a,isDuplexNodeStream:c}=Pt(),p=Dt(),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=ot(),{destroyer:y}=ur(),I=Ct(),U=qr(),{createDeferredPromise:k}=Ot(),T=fs(),D=globalThis.Blob||l.Blob,F=typeof D<"u"?function(ee){return ee instanceof D}:function(ee){return!1},R=globalThis.AbortController||xn().AbortController,{FunctionPrototypeCall:O}=Ke(),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,$){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:q}=W(E);if(r(K))return T(M,K,{objectMode:!0,write:ge,final:ne,destroy:q});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:q})}throw new m("Iterable, AsyncIterable or AsyncFunction",$,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($,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],E)};function W(ee){let{promise:E,resolve:$}=k(),Z=new R,K=Z.signal;return{value:ee(async function*(){for(;;){let ge=E;E=null;let{chunk:ne,done:q,cb:be}=await ge;if(t.nextTick(be),q)return;if(K.aborted)throw new g(void 0,{cause:K.reason});({promise:E,resolve:$}=k()),yield ne}}(),{signal:K}),write(ge,ne,q){let be=$;$=null,be({chunk:ge,done:!1,cb:q})},final(ge){let ne=$;$=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,$=ee.writable,Z=!!h(E),K=!!o($),ge,ne,q,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:!!($!=null&&$.writableObjectMode),readable:Z,writable:K}),K&&(p($,S=>{K=!1,S&&y(E,S),ve(S)}),re._write=function(S,Y,ce){$.write(S,Y)?ce():ge=ce},re._final=function(S){$.end(),ne=S},$.on("drain",function(){if(ge){let S=ge;ge=null,S()}}),$.on("finish",function(){if(ne){let S=ne;ne=null,S()}})),Z&&(p(E,S=>{Z=!1,S&&y(E,S),ve(S)}),E.on("readable",function(){if(q){let S=q;q=null,S()}}),E.on("end",function(){re.push(null)}),re._read=function(){for(;;){let S=E.read();if(S===null){q=re._read;return}if(!re.push(S))return}}),re._destroy=function(S,Y){!S&&be!==null&&(S=new g),q=null,ge=null,ne=null,be===null?Y(S):(be=Y,y($,S),y(E,S))},re}}),Ct=me((e,i)=>{ae(),se(),oe();var{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:l,ObjectKeys:h,ObjectSetPrototypeOf:o}=Ke();i.exports=n;var r=qr(),s=ds();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 p;n.from=function(g){return p||(p=nl()),p(g,"body")}}),ps=me((e,i)=>{ae(),se(),oe();var{ObjectSetPrototypeOf:t,Symbol:l}=Ke();i.exports=n;var{ERR_METHOD_NOT_IMPLEMENTED:h}=ot().codes,o=Ct(),{getHighWaterMark:r}=Un();t(n.prototype,o.prototype),t(n,o);var s=l("kCallback");function n(p){if(!(this instanceof n))return new n(p);let g=p?r(this,p,"readableHighWaterMark",!0):null;g===0&&(p={...p,highWaterMark:null,readableHighWaterMark:g,writableHighWaterMark:p.writableHighWaterMark||0}),o.call(this,p),this._readableState.sync=!1,this[s]=null,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function a(p){typeof this._flush=="function"&&!this.destroyed?this._flush((g,b)=>{if(g){p?p(g):this.destroy(g);return}b!=null&&this.push(b),this.push(null),p&&p()}):(this.push(null),p&&p())}function c(){this._final!==a&&a.call(this)}n.prototype._final=a,n.prototype._transform=function(p,g,b){throw new h("_transform()")},n.prototype._write=function(p,g,b){let m=this._readableState,y=this._writableState,I=m.length;this._transform(p,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 p=this[s];this[s]=null,p()}}}),gs=me((e,i)=>{ae(),se(),oe();var{ObjectSetPrototypeOf:t}=Ke();i.exports=h;var l=ps();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)}}),jn=me((e,i)=>{ae(),se(),oe();var t=rr(),{ArrayIsArray:l,Promise:h,SymbolAsyncIterator:o}=Ke(),r=Dt(),{once:s}=Ot(),n=ur(),a=Ct(),{aggregateTwoErrors:c,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:g,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:y},AbortError:I}=ot(),{validateFunction:U,validateAbortSignal:k}=Dr(),{isIterable:T,isReadable:D,isReadableNodeStream:F,isNodeStream:R,isTransformStream:O,isWebStream:M,isReadableStream:W,isReadableEnded:G}=Pt(),ee=globalThis.AbortController||xn().AbortController,E,$;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 p("val",["Readable","Iterable","AsyncIterable"],Y)}async function*ne(Y){$||($=qr()),yield*$.prototype[o].call(Y)}async function q(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:d}=Z(H,we,_e);he.push(u),D(H)&&Re&&z.push(d)}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=gs());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++,q(N,f,C,{end:Ae});else if(W(N)||O(N)){let A=N.readable||N;de++,q(A,f,C,{end:Ae})}else throw new g("AsyncIterable or Promise","destination",N);N=f;let{destroy:d,cleanup:v}=Z(N,!1,!0);he.push(d),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++,q(f,H,C,{end:Ae})}else if(T(N))de++,q(N,H,C,{end:Ae});else throw new p("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 p("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}}),bs=me((e,i)=>{ae(),se(),oe();var{pipeline:t}=jn(),l=Ct(),{destroyer:h}=ur(),{isNodeStream:o,isReadable:r,isWritable:s,isWebStream:n,isTransformStream:a,isWritableStream:c,isReadableStream:p}=Pt(),{AbortError:g,codes:{ERR_INVALID_ARG_VALUE:b,ERR_MISSING_ARGS:m}}=ot(),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])||p(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 $=F;F=null,$?$(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)||p(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($,Z,K){M.write($,Z)?K():k=K},R._final=function($){M.end(),T=$},M.on("drain",function(){if(k){let $=k;k=null,$()}});else if(n(M)){let $=(a(M)?M.writable:M).getWriter();R._write=async function(Z,K,ge){try{await $.ready,$.write(Z).catch(()=>{}),ge()}catch(ne){ge(ne)}},R._final=async function(Z){try{await $.ready,$.close().catch(()=>{}),T=Z}catch(K){Z(K)}}}let E=a(W)?W.readable:W;y(E,()=>{if(T){let $=T;T=null,$()}})}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:$,done:Z}=await E.read();if(!R.push($))return;if(Z){R.push(null);return}}catch{return}}}}return R._destroy=function(E,$){!E&&F!==null&&(E=new g),D=null,k=null,T=null,F===null?$(E):(F=$,o(W)&&h(W,E))},R}}),ol=me((e,i)=>{ae(),se(),oe();var t=globalThis.AbortController||xn().AbortController,{codes:{ERR_INVALID_ARG_VALUE:l,ERR_INVALID_ARG_TYPE:h,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:r},AbortError:s}=ot(),{validateAbortSignal:n,validateInteger:a,validateObject:c}=Dr(),p=Ke().Symbol("kWeak"),{finished:g}=Dt(),b=bs(),{addAbortSignalNoValidate:m}=Fr(),{isWritable:y,isNodeStream:I}=Pt(),{ArrayPrototypePush:U,MathFloor:k,Number:T,NumberIsNaN:D,Promise:F,PromiseReject:R,PromisePrototypeThen:O,Symbol:M}=Ke(),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 $(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 q.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 q.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 q(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,[p]: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:$,drop:ce,filter:q,flatMap:S,map:E,take:Ee,compose:ee},i.exports.promiseReturningOperators={every:K,forEach:ne,reduce:re,toArray:ve,some:Z,find:ge}}),ms=me((e,i)=>{ae(),se(),oe();var{ArrayPrototypePop:t,Promise:l}=Ke(),{isIterable:h,isNodeStream:o,isWebStream:r}=Pt(),{pipelineImpl:s}=jn(),{finished:n}=Dt();ys();function a(...c){return new l((p,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):p(U)},{signal:b,end:m})})}i.exports={finished:n,pipeline:a}}),ys=me((e,i)=>{ae(),se(),oe();var{Buffer:t}=(et(),Me(Ze)),{ObjectDefineProperty:l,ObjectKeys:h,ReflectApply:o}=Ke(),{promisify:{custom:r}}=Ot(),{streamReturningOperators:s,promiseReturningOperators:n}=ol(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:a}}=ot(),c=bs(),{pipeline:p}=jn(),{destroyer:g}=ur(),b=Dt(),m=ms(),y=Pt(),I=i.exports=Mn().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=ds(),I.Duplex=Ct(),I.Transform=ps(),I.PassThrough=gs(),I.pipeline=p;var{addAbortSignal:U}=Fr();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(p,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=ys(),l=ms(),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}),sl=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}}}),al=me((e,i)=>{ae(),se(),oe();var{Buffer:t}=(et(),Me(Ze)),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),p=n-s,g=p,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(p));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 p=this._bufs[a];for(;c<p.length;)if(p.length-c>=o.length){let g=p.indexOf(o,c);if(g!==-1)return this._reverseOffset([a,g]);c=p.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}),ll=me((e,i)=>{ae(),se(),oe();var t=nr().Duplex,l=sl(),h=al();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}),ul=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}),ws=me((e,i)=>{ae(),se(),oe();var t=i.exports,{Buffer:l}=(et(),Me(Ze));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"}}),hl=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?p(g,b,o,"day"):b>=h?p(g,b,h,"hour"):b>=l?p(g,b,l,"minute"):b>=t?p(g,b,t,"second"):g+" ms"}function p(g,b,m,y){var I=b>=m*1.5;return Math.round(g/m)+" "+y+(I?"s":"")}}),cl=me((e,i)=>{ae(),se(),oe();function t(l){o.debug=o,o.default=o,o.coerce=p,o.disable=n,o.enable=s,o.enabled=a,o.humanize=hl(),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 p(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 at<"u"&&at.userAgent&&at.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 at<"u"&&at.userAgent&&at.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof at<"u"&&at.userAgent&&at.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,p=0;n[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(c++,g==="%c"&&(p=c))}),n.splice(p,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 ze<"u"&&"env"in ze&&(n=ze.env.DEBUG),n}function r(){try{return localStorage}catch{}}i.exports=cl()(e);var{formatters:s}=i.exports;s.j=function(n){try{return JSON.stringify(n)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}),fl=me((e,i)=>{ae(),se(),oe();var t=ll(),{EventEmitter:l}=(hr(),Me(ir)),h=ul(),o=ws(),r=Rt()("mqtt-packet:parser"),s=class bn extends l{constructor(){super(),this.parser=this.constructor.parser}static parser(a){return this instanceof bn?(this.settings=a||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new bn().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 p=a&15,g=o.requiredHeaderFlags[c];return g!=null&&p!==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,p,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(p=this._parseBuffer(),p===null)return this._emitError(new Error("Cannot parse password"));m.password=p}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 p=this._parseProperties();Object.getOwnPropertyNames(p).length&&(a.properties=p)}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,p,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(p=this._parseByte(),this.settings.protocolVersion===5){if(p&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(p&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(g=p&o.SUBSCRIBE_OPTIONS_QOS_MASK,g>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(y=(p>>o.SUBSCRIBE_OPTIONS_NL_SHIFT&o.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(p>>o.SUBSCRIBE_OPTIONS_RAP_SHIFT&o.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,b=p>>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 p=this._list.readUInt8(this._pos++);if(!o.MQTT5_UNSUBACK_CODES[p])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(p)}}}_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(),p=c+this._pos;if(c===-1||p>this._list.length||p>this.packet.length)return null;let g=this._list.toString("utf8",this._pos,p);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 p=this._list.slice(this._pos,c);return this._pos+=a,r("_parseBuffer: result: %o",p),p}_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,p=0,g=1,b=0,m=!1,y,I=this._pos?this._pos:0;for(;p<c&&I+p<this._list.length;){if(y=this._list.readUInt8(I+p++),b+=g*(y&o.VARBYTEINT_MASK),g*=128,!(y&o.VARBYTEINT_FIN_MASK)){m=!0;break}if(this._list.length<=p)break}return!m&&p===c&&this._list.length>=p&&this._emitError(new Error("Invalid variable byte integer")),I&&(this._pos+=p),m?a?m={bytes:p,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,p={};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"){p[b]||(p[b]=Object.create(null));let m=this._parseByType(o.propertiesTypes[b]);if(p[b][m.name])if(Array.isArray(p[b][m.name]))p[b][m.name].push(m.value);else{let y=p[b][m.name];p[b][m.name]=[y],p[b][m.name].push(m.value)}else p[b][m.name]=m.value;continue}p[b]?Array.isArray(p[b])?p[b].push(this._parseByType(o.propertiesTypes[b])):(p[b]=[p[b]],p[b].push(this._parseByType(o.propertiesTypes[b]))):p[b]=this._parseByType(o.propertiesTypes[b])}return p}_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}),dl=me((e,i)=>{ae(),se(),oe();var{Buffer:t}=(et(),Me(Ze)),l=65536,h={},o=t.isBuffer(t.from([1,2]).subarray(0,1));function r(c){let p=t.allocUnsafe(2);return p.writeUInt8(c>>8,0),p.writeUInt8(c&255,1),p}function s(){for(let c=0;c<l;c++)h[c]=r(c)}function n(c){let p=0,g=0,b=t.allocUnsafe(4);do p=c%128|0,c=c/128|0,c>0&&(p=p|128),b.writeUInt8(p,g++);while(c>0&&g<4);return c>0&&(g=0),o?b.subarray(0,g):b.slice(0,g)}function a(c){let p=t.allocUnsafe(4);return p.writeUInt32BE(c,0),p}i.exports={cache:h,generateCache:s,generateNumber:r,genBufVariableByteInt:n,generate4ByteBuffer:a}}),pl=me((e,i)=>{ae(),se(),oe(),typeof ze>"u"||!ze.version||ze.version.indexOf("v0.")===0||ze.version.indexOf("v1.")===0&&ze.version.indexOf("v1.8.")!==0?i.exports={nextTick:t}:i.exports=ze;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 ze.nextTick(l);case 2:return ze.nextTick(function(){l.call(null,h)});case 3:return ze.nextTick(function(){l.call(null,h,o)});case 4:return ze.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 ze.nextTick(function(){l.apply(null,n)})}}}),vs=me((e,i)=>{ae(),se(),oe();var t=ws(),{Buffer:l}=(et(),Me(Ze)),h=l.allocUnsafe(0),o=l.from([0]),r=dl(),s=pl().nextTick,n=Rt()("mqtt-packet:writeToStream"),a=r.cache,c=r.generateNumber,p=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,p()),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=q)}});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 $={};function Z(x,_){if(_>t.VARBYTEINT_MAX)return x.destroy(new Error(`Invalid variable byte integer: ${_}`)),!1;let z=$[_];return z||(z=g(_),_<16384&&($[_]=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 q(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}),gl=me((e,i)=>{ae(),se(),oe();var t=vs(),{EventEmitter:l}=(hr(),Me(ir)),{Buffer:h}=(et(),Me(Ze));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,p;for(p=0;p<a.length&&a[p]!==void 0;p++)typeof a[p]!="string"?n[p]=a[p].length:n[p]=h.byteLength(a[p]),s+=n[p];let g=h.allocUnsafe(s);for(p=0;p<a.length&&a[p]!==void 0;p++)typeof a[p]!="string"?(a[p].copy(g,c),c+=n[p]):(g.write(a[p],c),c+=n[p]);return g}destroy(s){s&&this.emit("error",s)}};i.exports=o}),bl=me(e=>{ae(),se(),oe(),e.parser=fl().parser,e.generate=gl(),e.writeToStream=vs()}),_s=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}),ml=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 p=Object.keys(a),g=new Array(p.length),b=0;b<p.length;b++){var m=p[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 p in a)if(Object.hasOwnProperty.call(a,p)!==!1){var g=a[p];typeof g!="object"||g===null?c[p]=g:g instanceof Date?c[p]=new Date(g):g instanceof Map?c[p]=new Map(r(Array.from(g),s)):g instanceof Set?c[p]=new Set(r(Array.from(g),s)):ArrayBuffer.isView(g)?c[p]=t(g):c[p]=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 p in a){var g=a[p];typeof g!="object"||g===null?c[p]=g:g instanceof Date?c[p]=new Date(g):g instanceof Map?c[p]=new Map(r(Array.from(g),n)):g instanceof Set?c[p]=new Set(r(Array.from(g),n)):ArrayBuffer.isView(g)?c[p]=t(g):c[p]=n(g)}return c}}function h(o){var r=[],s=[];return o.proto?c:a;function n(p,g){for(var b=Object.keys(p),m=new Array(b.length),y=0;y<b.length;y++){var I=b[y],U=p[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(p){if(typeof p!="object"||p===null)return p;if(p instanceof Date)return new Date(p);if(Array.isArray(p))return n(p,a);if(p instanceof Map)return new Map(n(Array.from(p),a));if(p instanceof Set)return new Set(n(Array.from(p),a));var g={};r.push(p),s.push(g);for(var b in p)if(Object.hasOwnProperty.call(p,b)!==!1){var m=p[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(p){if(typeof p!="object"||p===null)return p;if(p instanceof Date)return new Date(p);if(Array.isArray(p))return n(p,c);if(p instanceof Map)return new Map(n(Array.from(p),c));if(p instanceof Set)return new Set(n(Array.from(p),c));var g={};r.push(p),s.push(g);for(var b in p){var m=p[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}}}),yl=me((e,i)=>{ae(),se(),oe(),i.exports=ml()()}),wl=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}),Es=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}),vl=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 p;if(h.properties&&(p=h.properties.topicAlias),typeof p<"u")if(r.length===0)if(p>0&&p<=65535){let g=l.topicAliasRecv.getTopicByAlias(p);if(g)r=g,l.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",r,p);else{l.log("handlePublish :: unregistered topic alias. alias: %d",p),l.emit("error",new Error("Received unregistered Topic Alias"));return}}else{l.log("handlePublish :: topic alias out of range. alias: %d",p),l.emit("error",new Error("Received Topic Alias is out of range"));return}else if(l.topicAliasRecv.put(r,p))l.log("handlePublish :: registered topic: %s - alias: %d",r,p);else{l.log("handlePublish :: topic alias out of range. alias: %d",p),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,(p,g)=>{if(typeof p=="number"&&(g=p,p=null),p)return l.emit("error",p);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,(p,g)=>{if(typeof p=="number"&&(g=p,p=null),p)return l.emit("error",p);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 Ss extends Error{constructor(h,o){super(h),this.code=o,Object.setPrototypeOf(this,Ss.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=ze?ze.nextTick:l=>{setTimeout(l,0)}}),$r=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 p=t.messageIdToTopic[h];p&&p.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}),_l=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=vr(),t=$r(),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 p=new i.ErrorWithReasonCode(`Connection refused: ${t.ReasonCodes[n]}`,n);h.emit("error",p)}})};e.default=l}),El=me(e=>{var b,m,y,I,U,k,T,D,F,R,O,M,W,G,ee,E,$,Z,K,ge,ne,q,be,re,ve,S,mn,ce,Ee,ue,x,_,As,le,X,J,he,Lt,C,Nt,N,yn,Q,Rr,H,Pr,_e,Le,Re,wn,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 ze=="object"&&ze?ze:{},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(){Ue(this,"onabort");Ue(this,"_onabort",[]);Ue(this,"reason");Ue(this,"aborted",!1)}addEventListener(P,V){this._onabort.push(V)}},o=class{constructor(){Ue(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)}},p=(m=class{constructor(w,P){Ue(this,"heap");Ue(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);Ue(this,"ttl");Ue(this,"ttlResolution");Ue(this,"ttlAutopurge");Ue(this,"updateAgeOnGet");Ue(this,"updateAgeOnHas");Ue(this,"allowStale");Ue(this,"noDisposeOnSet");Ue(this,"noUpdateTTL");Ue(this,"maxEntrySize");Ue(this,"sizeCalculation");Ue(this,"noDeleteOnFetchRejection");Ue(this,"noDeleteOnStaleGet");Ue(this,"allowStaleOnFetchAbort");Ue(this,"allowStaleOnFetchRejection");Ue(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,$,void 0);Ce(this,Z,void 0);Ce(this,K,void 0);Ce(this,ge,void 0);Ce(this,ne,void 0);Ce(this,q,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:tt,noDisposeOnSet:xe,noUpdateTTL:rt,maxSize:Ve=0,maxEntrySize:He=0,sizeCalculation:$e,fetchMethod:Je,noDeleteOnFetchRejection:Oe,noDeleteOnStaleGet:Fe,allowStaleOnFetchRejection:it,allowStaleOnFetchAbort:Qe,ignoreFetchAbort:ht}=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,Ve),this.maxEntrySize=He||B(this,U),this.sizeCalculation=$e,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(Je!==void 0&&typeof Je!="function")throw new TypeError("fetchMethod must be a function if specified");if(Te(this,D,Je),Te(this,re,!!Je),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,$,0),Te(this,Z,p.create(P)),Te(this,F,0),Te(this,R,0),typeof qe=="function"&&Te(this,k,qe),typeof tt=="function"?(Te(this,T,tt),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=!!rt,this.noDeleteOnFetchRejection=!!Oe,this.allowStaleOnFetchRejection=!!it,this.allowStaleOnFetchAbort=!!Qe,this.ignoreFetchAbort=!!ht,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,_,As).call(this)}if(this.allowStale=!!ke,this.noDeleteOnStaleGet=!!Fe,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,mn).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,q),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,$)},free:B(w,Z),isBackgroundFetch:P=>{var V;return Ie(V=w,_e,Le).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,Le).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,Le).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,Le).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,Le).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,Le).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,Le).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,Le).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,Le).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,Le).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,Le).call(this,fe)?fe.__staleWhileFetching:fe;if(ie===void 0||V===void 0)continue;let ye={value:ie};if(B(this,q)&&B(this,ne)){ye.ttl=B(this,q)[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 rt,Ve,He,$e,Je;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,tt=B(this,J).call(this,w,P,V.size||0,Se);if(this.maxEntrySize&&tt>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,$):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,$)]=xe,B(this,ee)[xe]=B(this,$),Te(this,$,xe),_r(this,F)._++,B(this,X).call(this,xe,tt,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,Le).call(this,Oe)){Oe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Fe}=Oe;Fe!==void 0&&!ye&&(B(this,be)&&((rt=B(this,k))==null||rt.call(this,Fe,w,"set")),B(this,ve)&&((Ve=B(this,K))==null||Ve.push([Fe,w,"set"])))}else ye||(B(this,be)&&((He=B(this,k))==null||He.call(this,Oe,w,"set")),B(this,ve)&&(($e=B(this,K))==null||$e.push([Oe,w,"set"])));if(B(this,le).call(this,xe),B(this,X).call(this,xe,tt,ke),B(this,W)[xe]=P,ke){ke.set="replace";let Fe=Oe&&Ie(this,_e,Le).call(this,Oe)?Oe.__staleWhileFetching:Oe;Fe!==void 0&&(ke.oldValue=Fe)}}else ke&&(ke.set="update")}if(fe!==0&&!B(this,q)&&Ie(this,S,mn).call(this),B(this,q)&&(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),Fe;for(;Fe=Oe==null?void 0:Oe.shift();)(Je=B(this,T))==null||Je.call(this,...Fe)}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,Le).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,Le).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,Le).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:tt=this.noUpdateTTL,noDeleteOnFetchRejection:xe=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:rt=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ve=this.ignoreFetchAbort,allowStaleOnFetchAbort:He=this.allowStaleOnFetchAbort,context:$e,forceRefresh:Je=!1,status:Oe,signal:Fe}=P;if(!B(this,re))return Oe&&(Oe.fetch="get"),this.get(w,{allowStale:V,updateAgeOnGet:fe,noDeleteOnStaleGet:ie,status:Oe});let it={allowStale:V,updateAgeOnGet:fe,noDeleteOnStaleGet:ie,ttl:ye,noDisposeOnSet:Se,size:ke,sizeCalculation:qe,noUpdateTTL:tt,noDeleteOnFetchRejection:xe,allowStaleOnFetchRejection:rt,allowStaleOnFetchAbort:He,ignoreFetchAbort:Ve,status:Oe,signal:Fe},Qe=B(this,O).get(w);if(Qe===void 0){Oe&&(Oe.fetch="miss");let ht=Ie(this,H,Pr).call(this,w,Qe,it,$e);return ht.__returned=ht}else{let ht=B(this,W)[Qe];if(Ie(this,_e,Le).call(this,ht)){let $n=V&&ht.__staleWhileFetching!==void 0;return Oe&&(Oe.fetch="inflight",$n&&(Oe.returnedStale=!0)),$n?ht.__staleWhileFetching:ht.__returned=ht}let Ft=B(this,x).call(this,Qe);if(!Je&&!Ft)return Oe&&(Oe.fetch="hit"),Ie(this,u,mr).call(this,Qe),fe&&B(this,ce).call(this,Qe),Oe&&B(this,Ee).call(this,Oe,Qe),ht;let Mt=Ie(this,H,Pr).call(this,w,Qe,it,$e),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,Le).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,Le).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,$)?Te(this,$,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,Le).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,q)&&B(this,ne)&&(B(this,q).fill(0),B(this,ne).fill(0)),B(this,ge)&&B(this,ge).fill(0),Te(this,E,0),Te(this,$,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,$=new WeakMap,Z=new WeakMap,K=new WeakMap,ge=new WeakMap,ne=new WeakMap,q=new WeakMap,be=new WeakMap,re=new WeakMap,ve=new WeakMap,S=new WeakSet,mn=function(){let w=new c(B(this,I)),P=new c(B(this,I));Te(this,q,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,As=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,Le).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,$);!(!Ie(this,N,yn).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,yn).call(this,P)||((w||!B(this,x).call(this,P))&&(yield P),P===B(this,$)));)P=B(this,G)[P]},N=new WeakSet,yn=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,Le).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,$,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,Le).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=($e,Je=!1)=>{let{aborted:Oe}=ye.signal,Fe=V.ignoreFetchAbort&&$e!==void 0;if(V.status&&(Oe&&!Je?(V.status.fetchAborted=!0,V.status.fetchError=ye.signal.reason,Fe&&(V.status.fetchAbortIgnored=!0)):V.status.fetchResolved=!0),Oe&&!Fe&&!Je)return xe(ye.signal.reason);let it=Ve;return B(this,W)[P]===Ve&&($e===void 0?it.__staleWhileFetching?B(this,W)[P]=it.__staleWhileFetching:this.delete(w):(V.status&&(V.status.fetchUpdated=!0),this.set(w,$e,ke.options))),$e},tt=$e=>(V.status&&(V.status.fetchRejected=!0,V.status.fetchError=$e),xe($e)),xe=$e=>{let{aborted:Je}=ye.signal,Oe=Je&&V.allowStaleOnFetchAbort,Fe=Oe||V.allowStaleOnFetchRejection,it=Fe||V.noDeleteOnFetchRejection,Qe=Ve;if(B(this,W)[P]===Ve&&(!it||Qe.__staleWhileFetching===void 0?this.delete(w):Oe||(B(this,W)[P]=Qe.__staleWhileFetching)),Fe)return V.status&&Qe.__staleWhileFetching!==void 0&&(V.status.returnedStale=!0),Qe.__staleWhileFetching;if(Qe.__returned===Qe)throw $e},rt=($e,Je)=>{var Fe;let Oe=(Fe=B(this,D))==null?void 0:Fe.call(this,w,ie,ke);Oe&&Oe instanceof Promise&&Oe.then(it=>$e(it===void 0?void 0:it),Je),ye.signal.addEventListener("abort",()=>{(!V.ignoreFetchAbort||V.allowStaleOnFetchAbort)&&($e(void 0),V.allowStaleOnFetchAbort&&($e=it=>qe(it,!0)))})};V.status&&(V.status.fetchDispatched=!0);let Ve=new Promise(rt).then(qe,tt),He=Object.assign(Ve,{__abortController:ye,__staleWhileFetching:ie,__returned:void 0});return P===void 0?(this.set(w,He,{...ke.options,status:void 0}),P=B(this,O).get(w)):B(this,W)[P]=He,He},_e=new WeakSet,Le=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,wn=function(w,P){B(this,ee)[P]=w,B(this,G)[w]=P},u=new WeakSet,mr=function(w){w!==B(this,$)&&(w===B(this,E)?Te(this,E,B(this,G)[w]):Ie(this,Re,wn).call(this,B(this,ee)[w],B(this,G)[w]),Ie(this,Re,wn).call(this,B(this,$),w),Te(this,$,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}),Sl=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}),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.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}),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=[],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}),Dn=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!")}}),Is=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}),Tl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=l(Dn()),t=Is();function l(s){return s&&s.t?s:{default:s}}var h=class Ts extends t.RandomIterator{constructor(n,a,c){super(n,c),this.container=a}copy(){return new Ts(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}),kl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Dn()),t=Bt(),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class ks extends t.ContainerIterator{constructor(a,c,p,g){super(g),this.o=a,this.h=c,this.container=p,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 ks(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,p={l:n,L:a,B:c};a.B=p,c.L=p,a===this.h&&(this.p=p),c===this.h&&(this._=p),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 p=this.p;for(let b=1;b<n;++b)p=p.B;let g=p.B;for(this.i+=c;c--;)p.B={l:a,L:p},p.B.L=p,p=p.B;p.B=g,g.L=p}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 p=n.l;n.l=a.l,a.l=p,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(p){a.push(p)}),a.sort(n);let c=this.p;a.forEach(function(p){c.l=p,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(p){for(;c!==a.h&&c.l<=p;)c=c.B;a.G(p,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}),Ol=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=l(Dn()),t=Is();function l(s){return s&&s.t?s:{default:s}}var h=class Os extends t.RandomIterator{constructor(n,a,c){super(n,c),this.container=a}copy(){return new Os(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 p=this;s.forEach(function(g){p.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,p=this.j+(n-a)/this.F;return a===0&&(p-=1),p%=this.P,c<0&&(c+=this.F),{curNodeBucketIndex:p,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 p=s;p<this.i;++p)c.push(this.getElementByPos(p));this.cut(s-1);for(let p=0;p<a;++p)this.pushBack(n);for(let p=0;p<c.length;++p)this.pushBack(c[p])}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 p=this.getElementByPos(c);p!==s&&n.push(p)}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}),Cl=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}),Cs=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Cl(),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 p=this.ne(n,a,c);if(p){let g=p.tt;for(;g!==this.h;)g.rt+=1,g=g.tt;let b=this.he(p);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 p=this.ne(n,a,c);return p&&this.he(p),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,p=this.v(c.u,r);if(p===0){c.l=s;return}else if(p>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}),Rs=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}),Rl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Cs()),t=h(Rs()),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class Ps extends t.default{constructor(a,c,p,g){super(a,c,g),this.container=p}get pointer(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.u}copy(){return new Ps(this.o,this.h,this.container,this.iteratorType)}},r=class extends i.default{constructor(n=[],a,c){super(a,c);let p=this;n.forEach(function(g){p.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}),Pl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=h(Cs()),t=h(Rs()),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class Bs extends t.default{constructor(a,c,p,g){super(a,c,g),this.container=p}get pointer(){this.o===this.h&&(0,l.throwIteratorAccessError)();let a=this;return new Proxy([],{get(c,p){if(p==="0")return a.o.u;if(p==="1")return a.o.l},set(c,p,g){if(p!=="1")throw new TypeError("props must be 1");return a.o.l=g,!0}})}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 p=this;n.forEach(function(g){p.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}),xs=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"}}),Ms=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var i=Bt(),t=h(xs()),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 p=s[this.HASH_TAG];if(p!==void 0)return this.H[p].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 p=this.g[s];if(p)return p.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}),Bl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Ms(),t=xt(),l=class Us 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 Us(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}),xl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var i=Ms(),t=h(xs()),l=xt();function h(n){return n&&n.t?n:{default:n}}var o=class Ls extends i.HashContainerIterator{constructor(a,c,p,g){super(a,c,g),this.container=p}get pointer(){this.o===this.h&&(0,l.throwIteratorAccessError)();let a=this;return new Proxy([],{get(c,p){if(p==="0")return a.o.u;if(p==="1")return a.o.l},set(c,p,g){if(p!=="1")throw new TypeError("props must be 1");return a.o.l=g,!0}})}copy(){return new Ls(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 p=n[this.HASH_TAG];return p!==void 0?this.H[p].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}),Ml=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=p(Sl()),t=p(Al()),l=p(Il()),h=p(Tl()),o=p(kl()),r=p(Ol()),s=p(Rl()),n=p(Pl()),a=p(Bl()),c=p(xl());function p(g){return g&&g.t?g:{default:g}}}),Ul=me((e,i)=>{ae(),se(),oe();var t=Ml().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,p=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,p)),l("use():"+s),!0):p===s?(this.ss.updateKeyByIterator(a,new o(c,p-1)),l("use():"+s),!0):(this.ss.updateKeyByIterator(a,new o(s+1,p)),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,p=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,p))):this.ss.updateKeyByIterator(a,new o(g,s)):s+1===c?(this.ss.eraseElementByIterator(a.next()),this.ss.insert(new o(s,p))):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}),Ns=me((e,i)=>{ae(),se(),oe();var t=Ul();i.exports.NumberAllocator=t}),Ll=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=El(),t=Ns(),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}),Nl=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=$r(),l=i(Ll()),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}),jl=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}),Dl=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(vl()),l=i(_l()),h=i(Nl()),o=i($r()),r=i(jl()),s=(n,a,c)=>{let{options:p}=n;if(p.protocolVersion===5&&p.properties&&p.properties.maximumPacketSize&&p.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}),Fl=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(),Me(ir))),l=vr(),h=class{};e.TypedEventEmitter=h,(0,l.applyMixin)(h,t.default)}),Vr=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 at<"u"&&at.product==="ReactNative",h=i()||t()||l();e.isWebWorker=t(),e.default=h}),Wl=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),p=n(c,a),g=l(p);t.addUniqueNumber=g,t.generateUniqueNumber=p})}),ql=me((e,i)=>{ae(),se(),oe(),function(t,l){typeof e=="object"&&typeof i<"u"?l(e,Wl()):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,p=new Worker(s);p.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 $=U.error.message;throw new Error($)}});var g=function(I){var U=l.generateUniqueNumber(c);c.set(U,{timerId:I,timerType:"interval"}),n.set(I,U),p.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),p.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"&&p.postMessage({id:null,method:"set",params:{delay:U,now:performance.now(),timerId:k,timerType:"interval"}})}),p.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),p.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})}),$l=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(p,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=p(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(p){return r().clearInterval(p)},n=function(p){return r().clearTimeout(p)},a=function(){var p;return(p=r()).setInterval.apply(p,arguments)},c=function(){var p;return(p=r()).setTimeout.apply(p,arguments)};t.clearInterval=s,t.clearTimeout=n,t.setInterval=a,t.setTimeout=c})}),Vl=me(e=>{ae(),se(),oe();var i=e&&e.__createBinding||(Object.create?function(a,c,p,g){g===void 0&&(g=p);var b=Object.getOwnPropertyDescriptor(c,p);(!b||("get"in b?!c.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return c[p]}}),Object.defineProperty(a,g,b)}:function(a,c,p,g){g===void 0&&(g=p),a[g]=c[p]}),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 p in a)p!=="default"&&Object.prototype.hasOwnProperty.call(a,p)&&i(c,a,p);return t(c,a),c};Object.defineProperty(e,"__esModule",{value:!0});var h=l(Vr()),o=$l(),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}),js=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(Vl()),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}),vn=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(Ma()),r=h(bl()),s=h(_s()),n=nr(),a=h(yl()),c=l(wl()),p=h(Rt()),g=h(Es()),b=h(Dl()),m=vr(),y=Fl(),I=h(js()),U=l(Vr()),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 _n 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,p.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",_n.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:_n.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,$=>{G.cb&&G.cb($),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 $=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",$),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:$,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 q={cmd:"publish",topic:R,payload:O,qos:ee,retain:E,messageId:ne,dup:$};switch(G.protocolVersion===5&&(q.properties=Z),this.log("publish :: qos",ee),ee){case 1:case 2:this.outgoing[q.messageId]={volatile:!1,cb:W||this.noop},this.log("MqttClient:publish: packet cmd: %s",q.cmd),this._sendPacket(q,void 0,K);break;default:this.log("MqttClient:publish: packet cmd: %s",q.cmd),this._sendPacket(q,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 $={qos:0};W===5&&($.nl=!1,$.rap=!1,$.rh=0),O=Object.assign(Object.assign({},$),O);let Z=O.properties,K=[],ge=(q,be)=>{if(be=be||O,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,q)||this._resubscribeTopics[q].qos<be.qos||G){let re={topic:q,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(q=>{this.log("subscribe: array topic %s",q),ge(q)}):Object.keys(R).forEach(q=>{this.log("subscribe: object topic %s, %o",q,R[q]),ge(q,R[q])}),!K.length)return M(null,[]),this;let ne=()=>{let q=this._nextId();if(q===null)return this.log("No messageId left"),!1;let be={cmd:"subscribe",subscriptions:K,messageId:q};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($=>{delete this._resubscribeTopics[$]}),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 $=ee||E;this.log("end :: closeStores: invoking callback with args"),M($)}})}),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),$;if(!E){M.once("readable",ee);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[E.messageId]){ee();return}!this.disconnecting&&!this.reconnectTimer?($=this.outgoing[E.messageId]?this.outgoing[E.messageId].cb:null,this.outgoing[E.messageId]={volatile:!1,cb(Z,K){$&&$(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 $ in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[$]){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}),Hl=me(e=>{ae(),se(),oe(),Object.defineProperty(e,"__esModule",{value:!0});var i=Ns(),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(Fs[e])}function uo(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(Ds,".")).split("."),i).join(".");return l+h}function ho(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 co,fo,Ds,Fs,ct,Sr,Zr,ei,ti,ri,jt,zl=Ge(()=>{ae(),se(),oe(),co=/^xn--/,fo=/[^\0-\x7E]/,Ds=/[\x2E\u3002\uFF0E\uFF61]/g,Fs={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ct=Math.floor,Sr=String.fromCharCode,Zr=function(e,i){return e+22+75*(e<26)-((i!=0)<<5)},ei=function(e,i,t){let l=0;for(e=t?ct(e/700):e>>1,e+=ct(e/i);e>455;l+=36)e=ct(e/35);return ct(l+36*e/(e+38))},ti=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 p=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>ct((2147483647-l)/p))&&Ht("overflow"),l+=b*p;let m=g<=o?1:g>=o+26?26:g-o;if(b<m)break;let y=36-m;p>ct(2147483647/y)&&Ht("overflow"),p*=y}let c=i.length+1;o=ei(l-a,c,a==0),ct(l/c)>2147483647-h&&Ht("overflow"),h+=ct(l/c),l%=c,i.splice(l++,0,h)}var s;return String.fromCodePoint(...i)},ri=function(e){let i=[],t=(e=ho(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>ct((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 p=h;for(let g=36;;g+=36){let b=g<=o?1:g>=o+26?26:g-o;if(p<b)break;let m=p-b,y=36-b;i.push(Sr(Zr(b+m%y,0))),p=ct(m/y)}i.push(Sr(Zr(p,0))),o=ei(h,a,s==r),h=0,++s}++h,++l}return i.join("")},jt={version:"2.1.0",ucs2:{decode:ho,encode:e=>String.fromCodePoint(...e)},decode:ti,encode:ri,toASCII:function(e){return uo(e,function(i){return fo.test(i)?"xn--"+ri(i):i})},toUnicode:function(e){return uo(e,function(i){return co.test(i)?ti(i.slice(4).toLowerCase()):i})}},jt.decode,jt.encode,jt.toASCII,jt.toUnicode,jt.ucs2,jt.version});function Kl(e,i){return Object.prototype.hasOwnProperty.call(e,i)}var po,or,go,mt,Yl=Ge(()=>{ae(),se(),oe(),po=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,p,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=""),p=decodeURIComponent(a),g=decodeURIComponent(c),Kl(h,p)?Array.isArray(h[p])?h[p].push(g):h[p]=[h[p],g]:h[p]=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""}},go=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=po,mt.encode=mt.stringify=go,mt.decode,mt.encode,mt.parse,mt.stringify});function En(){throw new Error("setTimeout has not been defined")}function Sn(){throw new Error("clearTimeout has not been defined")}function Ws(e){if(St===setTimeout)return setTimeout(e,0);if((St===En||!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 Ql(){er&&Jt&&(er=!1,Jt.length?wt=Jt.concat(wt):wr=-1,wt.length&&qs())}function qs(){if(!er){var e=Ws(Ql);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===Sn||!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 bo(e,i){(this||Zt).fun=e,(this||Zt).array=i}function vt(){}var mo,St,At,Zt,We,Jt,wt,er,wr,De,Gl=Ge(()=>{ae(),se(),oe(),Zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,We=mo={},function(){try{St=typeof setTimeout=="function"?setTimeout:En}catch{St=En}try{At=typeof clearTimeout=="function"?clearTimeout:Sn}catch{At=Sn}}(),wt=[],er=!1,wr=-1,We.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 bo(e,i)),wt.length!==1||er||Ws(qs)},bo.prototype.run=function(){(this||Zt).fun.apply(null,(this||Zt).array)},We.title="browser",We.browser=!0,We.env={},We.argv=[],We.version="",We.versions={},We.on=vt,We.addListener=vt,We.once=vt,We.off=vt,We.removeListener=vt,We.removeAllListeners=vt,We.emit=vt,We.prependListener=vt,We.prependOnceListener=vt,We.listeners=function(e){return[]},We.binding=function(e){throw new Error("process.binding is not supported")},We.cwd=function(){return"/"},We.chdir=function(e){throw new Error("process.chdir is not supported")},We.umask=function(){return 0},De=mo,De.addListener,De.argv,De.binding,De.browser,De.chdir,De.cwd,De.emit,De.env,De.listeners,De.nextTick,De.off,De.on,De.once,De.prependListener,De.prependOnceListener,De.removeAllListeners,De.removeListener,De.title,De.umask,De.version,De.versions});function Jl(){if(An)return Br;An=!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 p(){!n||!a||(n=!1,a.length?s=a.concat(s):c=-1,s.length&&g())}function g(){if(!n){var y=o(p);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,An,Kt,Ne,$s=Ge(()=>{ae(),se(),oe(),Br={},An=!1,Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Ne=Jl(),Ne.platform="browser",Ne.addListener,Ne.argv,Ne.binding,Ne.browser,Ne.chdir,Ne.cwd,Ne.emit,Ne.env,Ne.listeners,Ne.nextTick,Ne.off,Ne.on,Ne.once,Ne.prependListener,Ne.prependOnceListener,Ne.removeAllListeners,Ne.removeListener,Ne.title,Ne.umask,Ne.version,Ne.versions});function Xl(){if(In)return xr;In=!0;var e=Ne;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,p,g=0;g<=o.length;++g){if(g<o.length)p=o.charCodeAt(g);else{if(p===47)break;p=47}if(p===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 p===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 p=r.length,g=p-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 p=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),p>=0&&(b===r.charCodeAt(p)?--p===-1&&(n=c):(p=-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,p=o.length-1;p>=0;--p){var g=o.charCodeAt(p);if(g===47){if(!a){s=p+1;break}continue}n===-1&&(a=!1,n=p+1),g===46?r===-1?r=p: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,p=0,g=-1,b=!0,m=o.length-1,y=0;m>=a;--m){if(s=o.charCodeAt(m),s===47){if(!b){p=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===p+1?g!==-1&&(p===0&&n?r.base=r.name=o.slice(1,g):r.base=r.name=o.slice(p,g)):(p===0&&n?(r.name=o.slice(1,c),r.base=o.slice(1,g)):(r.name=o.slice(p,c),r.base=o.slice(p,g)),r.ext=o.slice(c,g)),p>0?r.dir=o.slice(0,p-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return h.posix=h,xr=h,xr}var xr,In,Tn,Zl=Ge(()=>{ae(),se(),oe(),$s(),xr={},In=!1,Tn=Xl()}),Vs={};tr(Vs,{URL:()=>la,Url:()=>ia,default:()=>Pe,fileURLToPath:()=>Hs,format:()=>na,parse:()=>aa,pathToFileURL:()=>zs,resolve:()=>oa,resolveObject:()=>sa});function ut(){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 ut)return e;var l=new ut;return l.parse(e,i,t),l}function eu(){if(kn)return Mr;kn=!0;var e=De;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,p,g=0;g<=o.length;++g){if(g<o.length)p=o.charCodeAt(g);else{if(p===47)break;p=47}if(p===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 p===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 p=r.length,g=p-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 p=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),p>=0&&(b===r.charCodeAt(p)?--p===-1&&(n=c):(p=-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,p=o.length-1;p>=0;--p){var g=o.charCodeAt(p);if(g===47){if(!a){s=p+1;break}continue}n===-1&&(a=!1,n=p+1),g===46?r===-1?r=p: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,p=0,g=-1,b=!0,m=o.length-1,y=0;m>=a;--m){if(s=o.charCodeAt(m),s===47){if(!b){p=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===p+1?g!==-1&&(p===0&&n?r.base=r.name=o.slice(1,g):r.base=r.name=o.slice(p,g)):(p===0&&n?(r.name=o.slice(1,c),r.base=o.slice(1,g)):(r.name=o.slice(p,c),r.base=o.slice(p,g)),r.ext=o.slice(c,g)),p>0?r.dir=o.slice(0,p-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return h.posix=h,Mr=h,Mr}function tu(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 Nr?ru(e):iu(e)}function ru(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(Js,"\\"),t=decodeURIComponent(t),i!=="")return`\\\\${i}${t}`;{let l=t.codePointAt(1)|32,h=t[2];if(l<Qs||l>Gs||h!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function iu(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 nu(e){let i=On.resolve(e),t=e.charCodeAt(e.length-1);(t===Ys||Nr&&t===Ks)&&i[i.length-1]!==On.sep&&(i+="/");let l=new URL("file://");return i.includes("%")&&(i=i.replace(Xs,"%25")),!Nr&&i.includes("\\")&&(i=i.replace(Zs,"%5C")),i.includes(`
3
3
  `)&&(i=i.replace(ea,"%0A")),i.includes("\r")&&(i=i.replace(ta,"%0D")),i.includes(" ")&&(i=i.replace(ra,"%09")),l.pathname=i,l}function Hs(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?ou(e):su(e)}function ou(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(da,"\\"),t=decodeURIComponent(t),i!=="")return`\\\\${i}${t}`;{let l=t.codePointAt(1)|32,h=t[2];if(l<ca||l>fa||h!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function su(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 zs(e){let i=Tn.resolve(e),t=e.charCodeAt(e.length-1);(t===ha||jr&&t===ua)&&i[i.length-1]!==Tn.sep&&(i+="/");let l=new URL("file://");return i.includes("%")&&(i=i.replace(pa,"%25")),!jr&&i.includes("\\")&&(i=i.replace(ga,"%5C")),i.includes(`
4
4
  `)&&(i=i.replace(ba,"%0A")),i.includes("\r")&&(i=i.replace(ma,"%0D")),i.includes(" ")&&(i=i.replace(ya,"%09")),l.pathname=i,l}var Pe,yo,pt,wo,vo,_o,Eo,Ar,ii,ni,oi,So,Ao,Ir,zt,Tr,Mr,kn,On,Io,Ks,Ys,Qs,Gs,Nr,Js,Xs,Zs,ea,ta,ra,To,ia,na,oa,sa,aa,la,ua,ha,ca,fa,jr,da,pa,ga,ba,ma,ya,au=Ge(()=>{ae(),se(),oe(),zl(),Yl(),Gl(),Zl(),$s(),Pe={},yo=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 ut?e.format():ut.prototype.format.call(e)},Pe.Url=ut,wo=/^([a-z0-9.+-]+:)/i,vo=/:[0-9]*$/,_o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Eo=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`