just-bash 2.1.0 → 2.2.0

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 (264) hide show
  1. package/README.md +2 -2
  2. package/dist/AGENTS.md +2 -2
  3. package/dist/bin/chunks/{alias-ZAQAKC5X.js → alias-PCMLRCRW.js} +1 -1
  4. package/dist/bin/chunks/{awk2-A73ZNFXJ.js → awk2-D2US2LMM.js} +1 -1
  5. package/dist/bin/{shell/chunks/base64-JPITV4MD.js → chunks/base64-RJX7MYGG.js} +1 -1
  6. package/dist/bin/{shell/chunks/basename-IYEP3AMY.js → chunks/basename-SO5MVUEX.js} +1 -1
  7. package/dist/bin/chunks/{bash-WZYHIZP6.js → bash-UT3MT5UU.js} +1 -1
  8. package/dist/bin/{shell/chunks/cat-XILYL7NW.js → chunks/cat-7TVSOZLU.js} +1 -1
  9. package/dist/bin/{shell/chunks/chmod-EXWX4N7Y.js → chunks/chmod-3DIKREF7.js} +1 -1
  10. package/dist/bin/chunks/{chunk-WEONT2KP.js → chunk-ACRTDIBO.js} +1 -1
  11. package/dist/bin/chunks/chunk-KGOUQS5A.js +2 -0
  12. package/dist/bin/chunks/chunk-OQRRF62X.js +10 -0
  13. package/dist/bin/chunks/chunk-QSDVMMYI.js +21 -0
  14. package/dist/bin/chunks/{clear-2APRIRCF.js → clear-CI7A5IXQ.js} +1 -1
  15. package/dist/bin/chunks/column-TSFEMTG6.js +8 -0
  16. package/dist/bin/chunks/{comm-KY3COLF5.js → comm-CPIFQTKY.js} +1 -1
  17. package/dist/bin/{shell/chunks/cp-HES4UN7K.js → chunks/cp-XXWRVG2D.js} +1 -1
  18. package/dist/bin/chunks/{curl-BN5M3BUX.js → curl-LCMREE7R.js} +1 -1
  19. package/dist/bin/chunks/{cut-JSIPAKOX.js → cut-VCKWLT2T.js} +1 -1
  20. package/dist/bin/chunks/{date-CU4J7GHI.js → date-IQLPMFYI.js} +1 -1
  21. package/dist/bin/{shell/chunks/diff-W4JRNHXW.js → chunks/diff-GI3QVUGD.js} +1 -1
  22. package/dist/bin/chunks/{dirname-UTCUUILN.js → dirname-EES7TR26.js} +1 -1
  23. package/dist/bin/chunks/{du-2JU3PUTM.js → du-ZONJJZUK.js} +1 -1
  24. package/dist/bin/{shell/chunks/echo-HKLPYMNC.js → chunks/echo-WSKTON6U.js} +1 -1
  25. package/dist/bin/chunks/{env-2SBJNP7X.js → env-YLLSNZZN.js} +1 -1
  26. package/dist/bin/chunks/expand-77K5HH2M.js +11 -0
  27. package/dist/bin/chunks/{expr-M74QZQ6C.js → expr-RMGXYNQJ.js} +1 -1
  28. package/dist/bin/{shell/chunks/file-QPD3U2H7.js → chunks/file-XMPFXMUJ.js} +1 -1
  29. package/dist/bin/{shell/chunks/find-TRBVCSI6.js → chunks/find-P6UQXFKX.js} +1 -1
  30. package/dist/bin/chunks/fold-452R4I2C.js +12 -0
  31. package/dist/bin/{shell/chunks/grep-BEZRXAWL.js → chunks/grep-L5HBHEEQ.js} +1 -1
  32. package/dist/bin/chunks/{gzip-VLTXZB2V.js → gzip-MNCJB6OR.js} +1 -1
  33. package/dist/bin/chunks/{head-YGMY3DHE.js → head-DYK37Z24.js} +1 -1
  34. package/dist/bin/chunks/{help-UEF7LW7F.js → help-7C5JICNL.js} +1 -1
  35. package/dist/bin/{shell/chunks/history-OGBCIAR5.js → chunks/history-G5C2J2OY.js} +1 -1
  36. package/dist/bin/chunks/{hostname-CV7CGKRN.js → hostname-WXDKRL2Z.js} +1 -1
  37. package/dist/bin/chunks/{html-to-markdown-HTGML4TH.js → html-to-markdown-EPEXKI4B.js} +1 -1
  38. package/dist/bin/chunks/join-3IXMEGNA.js +14 -0
  39. package/dist/bin/chunks/{jq-DT3MD2GZ.js → jq-MTQKMJJI.js} +1 -1
  40. package/dist/bin/chunks/{ln-RUR4ALOJ.js → ln-EFFNQ3RY.js} +1 -1
  41. package/dist/bin/chunks/{ls-GU5227KE.js → ls-FSSC77F4.js} +1 -1
  42. package/dist/bin/chunks/{md5sum-C7WDEYN5.js → md5sum-VGXAOUBA.js} +1 -1
  43. package/dist/bin/chunks/{mkdir-4OYU22AA.js → mkdir-XJABRAUN.js} +1 -1
  44. package/dist/bin/chunks/{mv-H3S4FEWR.js → mv-3ATZ2ABL.js} +1 -1
  45. package/dist/bin/chunks/nl-DSM3NUGM.js +17 -0
  46. package/dist/bin/{shell/chunks/od-TXTSFFJY.js → chunks/od-SLM7SRWU.js} +1 -1
  47. package/dist/bin/chunks/{paste-HHCFASL4.js → paste-FT6WBQZG.js} +1 -1
  48. package/dist/bin/chunks/{printf-2JFCUFOA.js → printf-HWUQKYUM.js} +1 -1
  49. package/dist/bin/{shell/chunks/pwd-T5Q3JEBO.js → chunks/pwd-53KG2MCJ.js} +1 -1
  50. package/dist/bin/chunks/{readlink-M44TLMFS.js → readlink-VL3R4LAM.js} +1 -1
  51. package/dist/bin/chunks/rev-VP42N2JN.js +7 -0
  52. package/dist/bin/chunks/{rm-R4M647EC.js → rm-2PKAWTSQ.js} +1 -1
  53. package/dist/bin/{shell/chunks/sed-QLLAZYHH.js → chunks/sed-5LQMJYRJ.js} +1 -1
  54. package/dist/bin/chunks/{seq-GJMQM7SP.js → seq-AVK43XM2.js} +1 -1
  55. package/dist/bin/chunks/{sha1sum-WKCGV66X.js → sha1sum-BIUH233Z.js} +1 -1
  56. package/dist/bin/{shell/chunks/sha256sum-3ZDGP5WC.js → chunks/sha256sum-SUIK2MT2.js} +1 -1
  57. package/dist/bin/chunks/{sleep-OJPODQGM.js → sleep-O5BOTJGJ.js} +1 -1
  58. package/dist/bin/chunks/{sort-JL33INQB.js → sort-J5ARYV56.js} +1 -1
  59. package/dist/bin/chunks/split-JJFZRWRC.js +16 -0
  60. package/dist/bin/{shell/chunks/stat-CR2INBC2.js → chunks/stat-UEQ7KMY5.js} +1 -1
  61. package/dist/bin/chunks/strings-ZEKN6D4Q.js +14 -0
  62. package/dist/bin/chunks/{tac-F4GC3MAI.js → tac-KNRFDAY7.js} +1 -1
  63. package/dist/bin/chunks/{tail-BYPLMYMZ.js → tail-BES27CZT.js} +1 -1
  64. package/dist/bin/chunks/{tee-HOMRRC3X.js → tee-ZFIT2GTM.js} +1 -1
  65. package/dist/bin/{shell/chunks/timeout-MYKG34DQ.js → chunks/timeout-JED4EKFH.js} +1 -1
  66. package/dist/bin/{shell/chunks/touch-3ZANYAXI.js → chunks/touch-TSNAXMZ2.js} +1 -1
  67. package/dist/bin/{shell/chunks/tr-E66N7IS2.js → chunks/tr-MBLEXZBI.js} +1 -1
  68. package/dist/bin/chunks/{tree-EE2PYIMV.js → tree-ESVATRDW.js} +1 -1
  69. package/dist/bin/chunks/{true-OWPVS7U4.js → true-OVATH2SQ.js} +1 -1
  70. package/dist/bin/chunks/unexpand-BFVYAPOU.js +11 -0
  71. package/dist/bin/chunks/{uniq-F5NP3LLU.js → uniq-7JNZWE5D.js} +1 -1
  72. package/dist/bin/chunks/{wc-NBMNJDZL.js → wc-OFU3HUEZ.js} +1 -1
  73. package/dist/bin/chunks/{which-6MRG2UCF.js → which-73KOOLC6.js} +1 -1
  74. package/dist/bin/chunks/xan-ASGSTJP4.js +140 -0
  75. package/dist/bin/chunks/xan-view-YGORUYA2.js +2 -0
  76. package/dist/bin/chunks/{xargs-EMY5BOJ2.js → xargs-WIJC4RTG.js} +1 -1
  77. package/dist/bin/chunks/yq-MF2SNFGL.js +287 -0
  78. package/dist/bin/just-bash.js +27 -27
  79. package/dist/bin/shell/chunks/{alias-ZAQAKC5X.js → alias-PCMLRCRW.js} +1 -1
  80. package/dist/bin/shell/chunks/{awk2-A73ZNFXJ.js → awk2-D2US2LMM.js} +1 -1
  81. package/dist/bin/{chunks/base64-JPITV4MD.js → shell/chunks/base64-RJX7MYGG.js} +1 -1
  82. package/dist/bin/{chunks/basename-IYEP3AMY.js → shell/chunks/basename-SO5MVUEX.js} +1 -1
  83. package/dist/bin/shell/chunks/{bash-WZYHIZP6.js → bash-UT3MT5UU.js} +1 -1
  84. package/dist/bin/{chunks/cat-XILYL7NW.js → shell/chunks/cat-7TVSOZLU.js} +1 -1
  85. package/dist/bin/{chunks/chmod-EXWX4N7Y.js → shell/chunks/chmod-3DIKREF7.js} +1 -1
  86. package/dist/bin/shell/chunks/{chunk-WEONT2KP.js → chunk-ACRTDIBO.js} +1 -1
  87. package/dist/bin/shell/chunks/chunk-KGOUQS5A.js +2 -0
  88. package/dist/bin/shell/chunks/chunk-OQRRF62X.js +10 -0
  89. package/dist/bin/shell/chunks/chunk-QSDVMMYI.js +21 -0
  90. package/dist/bin/shell/chunks/{clear-2APRIRCF.js → clear-CI7A5IXQ.js} +1 -1
  91. package/dist/bin/shell/chunks/column-TSFEMTG6.js +8 -0
  92. package/dist/bin/shell/chunks/{comm-KY3COLF5.js → comm-CPIFQTKY.js} +1 -1
  93. package/dist/bin/{chunks/cp-HES4UN7K.js → shell/chunks/cp-XXWRVG2D.js} +1 -1
  94. package/dist/bin/shell/chunks/{curl-BN5M3BUX.js → curl-LCMREE7R.js} +1 -1
  95. package/dist/bin/shell/chunks/{cut-JSIPAKOX.js → cut-VCKWLT2T.js} +1 -1
  96. package/dist/bin/shell/chunks/{date-CU4J7GHI.js → date-IQLPMFYI.js} +1 -1
  97. package/dist/bin/{chunks/diff-W4JRNHXW.js → shell/chunks/diff-GI3QVUGD.js} +1 -1
  98. package/dist/bin/shell/chunks/{dirname-UTCUUILN.js → dirname-EES7TR26.js} +1 -1
  99. package/dist/bin/shell/chunks/{du-2JU3PUTM.js → du-ZONJJZUK.js} +1 -1
  100. package/dist/bin/{chunks/echo-HKLPYMNC.js → shell/chunks/echo-WSKTON6U.js} +1 -1
  101. package/dist/bin/shell/chunks/{env-2SBJNP7X.js → env-YLLSNZZN.js} +1 -1
  102. package/dist/bin/shell/chunks/expand-77K5HH2M.js +11 -0
  103. package/dist/bin/shell/chunks/{expr-M74QZQ6C.js → expr-RMGXYNQJ.js} +1 -1
  104. package/dist/bin/{chunks/file-QPD3U2H7.js → shell/chunks/file-XMPFXMUJ.js} +1 -1
  105. package/dist/bin/{chunks/find-TRBVCSI6.js → shell/chunks/find-P6UQXFKX.js} +1 -1
  106. package/dist/bin/shell/chunks/fold-452R4I2C.js +12 -0
  107. package/dist/bin/{chunks/grep-BEZRXAWL.js → shell/chunks/grep-L5HBHEEQ.js} +1 -1
  108. package/dist/bin/shell/chunks/{gzip-VLTXZB2V.js → gzip-MNCJB6OR.js} +1 -1
  109. package/dist/bin/shell/chunks/{head-YGMY3DHE.js → head-DYK37Z24.js} +1 -1
  110. package/dist/bin/shell/chunks/{help-UEF7LW7F.js → help-7C5JICNL.js} +1 -1
  111. package/dist/bin/{chunks/history-OGBCIAR5.js → shell/chunks/history-G5C2J2OY.js} +1 -1
  112. package/dist/bin/shell/chunks/{hostname-CV7CGKRN.js → hostname-WXDKRL2Z.js} +1 -1
  113. package/dist/bin/shell/chunks/{html-to-markdown-HTGML4TH.js → html-to-markdown-EPEXKI4B.js} +1 -1
  114. package/dist/bin/shell/chunks/join-3IXMEGNA.js +14 -0
  115. package/dist/bin/shell/chunks/{jq-DT3MD2GZ.js → jq-MTQKMJJI.js} +1 -1
  116. package/dist/bin/shell/chunks/{ln-RUR4ALOJ.js → ln-EFFNQ3RY.js} +1 -1
  117. package/dist/bin/shell/chunks/{ls-GU5227KE.js → ls-FSSC77F4.js} +1 -1
  118. package/dist/bin/shell/chunks/{md5sum-C7WDEYN5.js → md5sum-VGXAOUBA.js} +1 -1
  119. package/dist/bin/shell/chunks/{mkdir-4OYU22AA.js → mkdir-XJABRAUN.js} +1 -1
  120. package/dist/bin/shell/chunks/{mv-H3S4FEWR.js → mv-3ATZ2ABL.js} +1 -1
  121. package/dist/bin/shell/chunks/nl-DSM3NUGM.js +17 -0
  122. package/dist/bin/{chunks/od-TXTSFFJY.js → shell/chunks/od-SLM7SRWU.js} +1 -1
  123. package/dist/bin/shell/chunks/{paste-HHCFASL4.js → paste-FT6WBQZG.js} +1 -1
  124. package/dist/bin/shell/chunks/{printf-2JFCUFOA.js → printf-HWUQKYUM.js} +1 -1
  125. package/dist/bin/{chunks/pwd-T5Q3JEBO.js → shell/chunks/pwd-53KG2MCJ.js} +1 -1
  126. package/dist/bin/shell/chunks/{readlink-M44TLMFS.js → readlink-VL3R4LAM.js} +1 -1
  127. package/dist/bin/shell/chunks/rev-VP42N2JN.js +7 -0
  128. package/dist/bin/shell/chunks/{rm-R4M647EC.js → rm-2PKAWTSQ.js} +1 -1
  129. package/dist/bin/{chunks/sed-QLLAZYHH.js → shell/chunks/sed-5LQMJYRJ.js} +1 -1
  130. package/dist/bin/shell/chunks/{seq-GJMQM7SP.js → seq-AVK43XM2.js} +1 -1
  131. package/dist/bin/shell/chunks/{sha1sum-WKCGV66X.js → sha1sum-BIUH233Z.js} +1 -1
  132. package/dist/bin/{chunks/sha256sum-3ZDGP5WC.js → shell/chunks/sha256sum-SUIK2MT2.js} +1 -1
  133. package/dist/bin/shell/chunks/{sleep-OJPODQGM.js → sleep-O5BOTJGJ.js} +1 -1
  134. package/dist/bin/shell/chunks/{sort-JL33INQB.js → sort-J5ARYV56.js} +1 -1
  135. package/dist/bin/shell/chunks/split-JJFZRWRC.js +16 -0
  136. package/dist/bin/{chunks/stat-CR2INBC2.js → shell/chunks/stat-UEQ7KMY5.js} +1 -1
  137. package/dist/bin/shell/chunks/strings-ZEKN6D4Q.js +14 -0
  138. package/dist/bin/shell/chunks/{tac-F4GC3MAI.js → tac-KNRFDAY7.js} +1 -1
  139. package/dist/bin/shell/chunks/{tail-BYPLMYMZ.js → tail-BES27CZT.js} +1 -1
  140. package/dist/bin/shell/chunks/{tee-HOMRRC3X.js → tee-ZFIT2GTM.js} +1 -1
  141. package/dist/bin/{chunks/timeout-MYKG34DQ.js → shell/chunks/timeout-JED4EKFH.js} +1 -1
  142. package/dist/bin/{chunks/touch-3ZANYAXI.js → shell/chunks/touch-TSNAXMZ2.js} +1 -1
  143. package/dist/bin/{chunks/tr-E66N7IS2.js → shell/chunks/tr-MBLEXZBI.js} +1 -1
  144. package/dist/bin/shell/chunks/{tree-EE2PYIMV.js → tree-ESVATRDW.js} +1 -1
  145. package/dist/bin/shell/chunks/{true-OWPVS7U4.js → true-OVATH2SQ.js} +1 -1
  146. package/dist/bin/shell/chunks/unexpand-BFVYAPOU.js +11 -0
  147. package/dist/bin/shell/chunks/{uniq-F5NP3LLU.js → uniq-7JNZWE5D.js} +1 -1
  148. package/dist/bin/shell/chunks/{wc-NBMNJDZL.js → wc-OFU3HUEZ.js} +1 -1
  149. package/dist/bin/shell/chunks/{which-6MRG2UCF.js → which-73KOOLC6.js} +1 -1
  150. package/dist/bin/shell/chunks/xan-ASGSTJP4.js +140 -0
  151. package/dist/bin/shell/chunks/xan-view-YGORUYA2.js +2 -0
  152. package/dist/bin/shell/chunks/{xargs-EMY5BOJ2.js → xargs-WIJC4RTG.js} +1 -1
  153. package/dist/bin/shell/chunks/yq-MF2SNFGL.js +287 -0
  154. package/dist/bin/shell/shell.js +62 -62
  155. package/dist/bundle/browser.js +486 -394
  156. package/dist/bundle/chunks/{alias-JFIUWFGE.js → alias-4UGRF4DM.js} +1 -1
  157. package/dist/bundle/chunks/{awk2-QWBT4IFJ.js → awk2-46RTIZKB.js} +1 -1
  158. package/dist/bundle/chunks/{base64-TUA2XORD.js → base64-F5R4G5EG.js} +1 -1
  159. package/dist/bundle/chunks/{basename-5UVU5RXR.js → basename-CFA5ZIGT.js} +1 -1
  160. package/dist/bundle/chunks/{bash-BASUPKHJ.js → bash-ZILV3VHA.js} +1 -1
  161. package/dist/bundle/chunks/{cat-47EP4IAV.js → cat-CE7XIAD2.js} +1 -1
  162. package/dist/bundle/chunks/{chmod-XJXFAD4M.js → chmod-FBHLEIY6.js} +1 -1
  163. package/dist/bundle/chunks/{chunk-OQ2MSNPG.js → chunk-4JO5BKO4.js} +1 -1
  164. package/dist/bundle/chunks/chunk-DXB73IDG.js +1 -0
  165. package/dist/bundle/chunks/chunk-SYMJJMQ4.js +20 -0
  166. package/dist/bundle/chunks/chunk-U4UYWYTO.js +9 -0
  167. package/dist/bundle/chunks/{clear-XD3TJRVQ.js → clear-VT2LJIDX.js} +1 -1
  168. package/dist/bundle/chunks/column-XPDNNO5Y.js +7 -0
  169. package/dist/bundle/chunks/{comm-KSJ4BBRQ.js → comm-AXQM7FFF.js} +1 -1
  170. package/dist/bundle/chunks/{cp-37OVLNLD.js → cp-PBJT3GBF.js} +1 -1
  171. package/dist/bundle/chunks/{curl-C43O5WQS.js → curl-TVZH24MD.js} +1 -1
  172. package/dist/bundle/chunks/{cut-FIZRELKC.js → cut-MCCSW2TZ.js} +1 -1
  173. package/dist/bundle/chunks/{date-NN5C354M.js → date-PN3CMG7K.js} +1 -1
  174. package/dist/bundle/chunks/{diff-GLRVCAKJ.js → diff-ZLJYSBRK.js} +1 -1
  175. package/dist/bundle/chunks/{dirname-U2KVUSQY.js → dirname-YPJLCQYA.js} +1 -1
  176. package/dist/bundle/chunks/{du-KRAFOIQK.js → du-3NURMGXT.js} +1 -1
  177. package/dist/bundle/chunks/{echo-WUKBESC7.js → echo-VUHWYV6L.js} +1 -1
  178. package/dist/bundle/chunks/{env-MSPSPGCD.js → env-EG5SQSAQ.js} +1 -1
  179. package/dist/bundle/chunks/expand-VSTNOVF5.js +10 -0
  180. package/dist/bundle/chunks/{expr-HYOCSWK6.js → expr-DG4E7SIS.js} +1 -1
  181. package/dist/bundle/chunks/{file-LQXX6P4Y.js → file-AWZ3TUFP.js} +1 -1
  182. package/dist/bundle/chunks/{find-GM7FJ4D3.js → find-QJDJJ5KW.js} +1 -1
  183. package/dist/bundle/chunks/fold-6CFXIPYZ.js +11 -0
  184. package/dist/bundle/chunks/{grep-ZJVDG3FA.js → grep-4K5T3MYL.js} +1 -1
  185. package/dist/bundle/chunks/{gzip-UQS7KRTV.js → gzip-7QAS5P2Y.js} +1 -1
  186. package/dist/bundle/chunks/{head-6PAUYCDP.js → head-FZ6IQHYW.js} +1 -1
  187. package/dist/bundle/chunks/{help-5E6PYJWQ.js → help-75YOGKM4.js} +1 -1
  188. package/dist/bundle/chunks/{history-SG6VRATI.js → history-MQDK2OPD.js} +1 -1
  189. package/dist/bundle/chunks/{hostname-K4BA3P6X.js → hostname-NWR32CGF.js} +1 -1
  190. package/dist/bundle/chunks/{html-to-markdown-ZSZ34PAN.js → html-to-markdown-ZK6GQVSL.js} +1 -1
  191. package/dist/bundle/chunks/join-X3QYPZUA.js +13 -0
  192. package/dist/bundle/chunks/{jq-NZZAXGBX.js → jq-QAA4WF2O.js} +1 -1
  193. package/dist/bundle/chunks/{ln-XFYHBIFL.js → ln-Y7YB677N.js} +1 -1
  194. package/dist/bundle/chunks/{ls-JGYJQA2Y.js → ls-CS3TIKWR.js} +1 -1
  195. package/dist/bundle/chunks/{md5sum-PIH6F3O3.js → md5sum-LJHKXLVT.js} +1 -1
  196. package/dist/bundle/chunks/{mkdir-HA2FJX4O.js → mkdir-7UKY4B3B.js} +1 -1
  197. package/dist/bundle/chunks/{mv-7I62SB3I.js → mv-FXHEKRTB.js} +1 -1
  198. package/dist/bundle/chunks/nl-KWQGFZH5.js +16 -0
  199. package/dist/bundle/chunks/{od-SOCTFI2F.js → od-ECWXNUB4.js} +1 -1
  200. package/dist/bundle/chunks/{paste-QBGVCQFT.js → paste-QTGVEPH5.js} +1 -1
  201. package/dist/bundle/chunks/{printf-HBP44PXI.js → printf-VG2POOXB.js} +1 -1
  202. package/dist/bundle/chunks/{pwd-CEF235GL.js → pwd-AC4P3JKI.js} +1 -1
  203. package/dist/bundle/chunks/{readlink-MQIMKDSA.js → readlink-EM4O3U4P.js} +1 -1
  204. package/dist/bundle/chunks/rev-FKUV5GH5.js +6 -0
  205. package/dist/bundle/chunks/{rm-NF3FNLAY.js → rm-I2SRVF7H.js} +1 -1
  206. package/dist/bundle/chunks/{sed-H2RWPMTM.js → sed-ZKODWZ6F.js} +1 -1
  207. package/dist/bundle/chunks/{seq-VKYIUOPJ.js → seq-5VRIVQYP.js} +1 -1
  208. package/dist/bundle/chunks/{sha1sum-HVHNZSEC.js → sha1sum-NRUZZ4Q6.js} +1 -1
  209. package/dist/bundle/chunks/{sha256sum-REOOJORK.js → sha256sum-5ZGJ4NJL.js} +1 -1
  210. package/dist/bundle/chunks/{sleep-AFN3PHJW.js → sleep-AK4QE4WR.js} +1 -1
  211. package/dist/bundle/chunks/{sort-XODGFZC4.js → sort-PMLMEZ4E.js} +1 -1
  212. package/dist/bundle/chunks/split-YBTFW7MT.js +15 -0
  213. package/dist/bundle/chunks/{stat-FVFLDQGP.js → stat-IVQBBOKN.js} +1 -1
  214. package/dist/bundle/chunks/strings-LRU5XCFP.js +13 -0
  215. package/dist/bundle/chunks/{tac-VIFKNLII.js → tac-2X4JLF4W.js} +1 -1
  216. package/dist/bundle/chunks/{tail-QXKYHAML.js → tail-PD4RZR6J.js} +1 -1
  217. package/dist/bundle/chunks/{tee-W5HCCBPO.js → tee-2QU4NRSJ.js} +1 -1
  218. package/dist/bundle/chunks/{timeout-XAA3N7CF.js → timeout-X3X3N6IE.js} +1 -1
  219. package/dist/bundle/chunks/{touch-FOE745V2.js → touch-MVQSKQKT.js} +1 -1
  220. package/dist/bundle/chunks/{tr-LMLGE4IE.js → tr-EDGW5FG6.js} +1 -1
  221. package/dist/bundle/chunks/{tree-WBUGLVP5.js → tree-5TYW7S7K.js} +1 -1
  222. package/dist/bundle/chunks/{true-6LGCG4EY.js → true-CNJ54NE6.js} +1 -1
  223. package/dist/bundle/chunks/unexpand-I7A2VXFD.js +10 -0
  224. package/dist/bundle/chunks/{uniq-7PFWPNWK.js → uniq-ONGDGSEB.js} +1 -1
  225. package/dist/bundle/chunks/{wc-GV5WUREX.js → wc-Y5MNUNQQ.js} +1 -1
  226. package/dist/bundle/chunks/{which-KHFYPBWW.js → which-M5MQ6QXQ.js} +1 -1
  227. package/dist/bundle/chunks/xan-B3RI2BDO.js +139 -0
  228. package/dist/bundle/chunks/xan-view-33AU6NPN.js +1 -0
  229. package/dist/bundle/chunks/{xargs-NQBNFMCT.js → xargs-2IMBHM4N.js} +1 -1
  230. package/dist/bundle/chunks/yq-KANM4MD2.js +286 -0
  231. package/dist/bundle/index.js +21 -21
  232. package/dist/commands/column/column.d.ts +9 -0
  233. package/dist/commands/expand/expand.d.ts +10 -0
  234. package/dist/commands/expand/unexpand.d.ts +10 -0
  235. package/dist/commands/fold/fold.d.ts +10 -0
  236. package/dist/commands/join/join.d.ts +10 -0
  237. package/dist/commands/nl/nl.d.ts +10 -0
  238. package/dist/commands/registry.d.ts +1 -1
  239. package/dist/commands/rev/rev.d.ts +11 -0
  240. package/dist/commands/split/split.d.ts +10 -0
  241. package/dist/commands/strings/strings.d.ts +10 -0
  242. package/dist/commands/xan/aggregation.d.ts +20 -0
  243. package/dist/commands/xan/csv.d.ts +16 -0
  244. package/dist/commands/xan/moonblade-parser.d.ts +80 -0
  245. package/dist/commands/xan/moonblade-to-jq.d.ts +12 -0
  246. package/dist/commands/xan/subcommands.d.ts +15 -0
  247. package/dist/commands/xan/xan-agg.d.ts +8 -0
  248. package/dist/commands/xan/xan-columns.d.ts +8 -0
  249. package/dist/commands/xan/xan-core.d.ts +10 -0
  250. package/dist/commands/xan/xan-data.d.ts +52 -0
  251. package/dist/commands/xan/xan-filter.d.ts +8 -0
  252. package/dist/commands/xan/xan-map.d.ts +11 -0
  253. package/dist/commands/xan/xan-reshape.d.ts +40 -0
  254. package/dist/commands/xan/xan-simple.d.ts +40 -0
  255. package/dist/commands/xan/xan-utils.d.ts +19 -0
  256. package/dist/commands/xan/xan-view.d.ts +12 -0
  257. package/dist/commands/xan/xan.d.ts +8 -0
  258. package/package.json +1 -1
  259. package/dist/bin/chunks/chunk-SJXDWN5X.js +0 -2
  260. package/dist/bin/chunks/yq-XRJR6BNP.js +0 -304
  261. package/dist/bin/shell/chunks/chunk-SJXDWN5X.js +0 -2
  262. package/dist/bin/shell/chunks/yq-XRJR6BNP.js +0 -304
  263. package/dist/bundle/chunks/chunk-2RUN43TJ.js +0 -1
  264. package/dist/bundle/chunks/yq-63LJU3AR.js +0 -303
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import{a as d,b as f,c}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";var h={name:"expand",summary:"convert tabs to spaces",usage:"expand [OPTION]... [FILE]...",description:"Convert TABs in each FILE to spaces, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-i Only convert leading tabs on each line"],examples:["expand file.txt # Convert all tabs to 8 spaces","expand -t 4 file.txt # Use 4-space tabs","expand -t 4,8,12 file.txt # Custom tab stops"]};function p(n){let i=n.split(",").map(o=>o.trim()),t=[];for(let o of i){let e=parseInt(o,10);if(Number.isNaN(e)||e<1)return null;t.push(e)}for(let o=1;o<t.length;o++)if(t[o]<=t[o-1])return null;return t}function x(n,i){if(i.length===1){let t=i[0];return t-n%t}for(let t of i)if(t>n)return t-n;if(i.length>=2){let t=i[i.length-1]-i[i.length-2],o=i[i.length-1],e=Math.floor((n-o)/t)+1;return o+e*t-n}return 1}function b(n,i){let{tabStops:t,leadingOnly:o}=i,e="",r=0,s=!0;for(let a of n)if(a===" ")if(o&&!s)e+=a,r++;else{let l=x(r,t);e+=" ".repeat(l),r+=l}else a!==" "&&a!==" "&&(s=!1),e+=a,r++;return e}function u(n,i){if(n==="")return"";let t=n.split(`
3
+ `),o=n.endsWith(`
4
+ `)&&t[t.length-1]==="";return o&&t.pop(),t.map(r=>b(r,i)).join(`
5
+ `)+(o?`
6
+ `:"")}var m={name:"expand",execute:async(n,i)=>{if(f(n))return d(h);let t={tabStops:[8],leadingOnly:!1},o=[],e=0;for(;e<n.length;){let s=n[e];if(s==="-t"&&e+1<n.length){let a=p(n[e+1]);if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${n[e+1]}'
7
+ `};t.tabStops=a,e+=2}else if(s.startsWith("-t")&&s.length>2){let a=p(s.slice(2));if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${s.slice(2)}'
8
+ `};t.tabStops=a,e++}else if(s==="--tabs"&&e+1<n.length){let a=p(n[e+1]);if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${n[e+1]}'
9
+ `};t.tabStops=a,e+=2}else if(s.startsWith("--tabs=")){let a=p(s.slice(7));if(!a)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${s.slice(7)}'
10
+ `};t.tabStops=a,e++}else if(s==="-i"||s==="--initial")t.leadingOnly=!0,e++;else if(s==="--"){o.push(...n.slice(e+1));break}else{if(s.startsWith("-")&&s!=="-")return c("expand",s);o.push(s),e++}}let r="";if(o.length===0){let s=i.stdin??"";r=u(s,t)}else for(let s of o){let a=i.fs.resolvePath(i.cwd,s),l=await i.fs.readFile(a);if(l===null)return{exitCode:1,stdout:r,stderr:`expand: ${s}: No such file or directory
11
+ `};r+=u(l,t)}return{exitCode:0,stdout:r,stderr:""}}};export{m as expand};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./chunk-SJXDWN5X.js";var d={name:"expr",async execute(s,r){if(s.length===0)return{stdout:"",stderr:`expr: missing operand
2
+ import"./chunk-KGOUQS5A.js";var d={name:"expr",async execute(s,r){if(s.length===0)return{stdout:"",stderr:`expr: missing operand
3
3
  `,exitCode:2};try{let l=g(s),h=l==="0"||l===""?1:0;return{stdout:`${l}
4
4
  `,stderr:"",exitCode:h}}catch(l){return{stdout:"",stderr:`expr: ${l.message}
5
5
  `,exitCode:2}}}};function g(s){if(s.length===1)return s[0];let r=0;function l(){let e=h();for(;r<s.length&&s[r]==="|";){r++;let t=h();if(e!=="0"&&e!=="")return e;e=t}return e}function h(){let e=a();for(;r<s.length&&s[r]==="&";){r++;let t=a();(e==="0"||e===""||t==="0"||t==="")&&(e="0")}return e}function a(){let e=p();for(;r<s.length;){let t=s[r];if(["=","!=","<",">","<=",">="].includes(t)){r++;let o=p(),n=parseInt(e,10),i=parseInt(o,10),f=!Number.isNaN(n)&&!Number.isNaN(i),c;t==="="?c=f?n===i:e===o:t==="!="?c=f?n!==i:e!==o:t==="<"?c=f?n<i:e<o:t===">"?c=f?n>i:e>o:t==="<="?c=f?n<=i:e<=o:c=f?n>=i:e>=o,e=c?"1":"0"}else break}return e}function p(){let e=N();for(;r<s.length;){let t=s[r];if(t==="+"||t==="-"){r++;let o=N(),n=parseInt(e,10),i=parseInt(o,10);if(Number.isNaN(n)||Number.isNaN(i))throw new Error("non-integer argument");e=String(t==="+"?n+i:n-i)}else break}return e}function N(){let e=m();for(;r<s.length;){let t=s[r];if(t==="*"||t==="/"||t==="%"){r++;let o=m(),n=parseInt(e,10),i=parseInt(o,10);if(Number.isNaN(n)||Number.isNaN(i))throw new Error("non-integer argument");if((t==="/"||t==="%")&&i===0)throw new Error("division by zero");t==="*"?e=String(n*i):t==="/"?e=String(Math.trunc(n/i)):e=String(n%i)}else break}return e}function m(){let e=u();for(;r<s.length&&s[r]===":";){r++;let t=u(),o=new RegExp(`^${t}`),n=e.match(o);n?e=n[1]!==void 0?n[1]:String(n[0].length):e="0"}return e}function u(){if(r>=s.length)throw new Error("syntax error");let e=s[r];if(e==="match"){r++;let t=u(),o=u(),n=new RegExp(o),i=t.match(n);return i?i[1]!==void 0?i[1]:String(i[0].length):"0"}if(e==="substr"){r++;let t=u(),o=parseInt(u(),10),n=parseInt(u(),10);if(Number.isNaN(o)||Number.isNaN(n))throw new Error("non-integer argument");return t.substring(o-1,o-1+n)}if(e==="index"){r++;let t=u(),o=u();for(let n=0;n<t.length;n++)if(o.includes(t[n]))return String(n+1);return"0"}if(e==="length"){r++;let t=u();return String(t.length)}if(e==="("){r++;let t=l();if(r>=s.length||s[r]!==")")throw new Error("syntax error");return r++,t}return r++,e}return l()}export{d as exprCommand};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{a as ge,b as we,c as te}from"./chunk-GTNBSMZR.js";import{a as ee,b as O,c as he}from"./chunk-SJXDWN5X.js";var be=O(ne=>{ne.read=function(i,e,t,r,n){var o,s,p=n*8-r-1,a=(1<<p)-1,m=a>>1,c=-7,f=t?n-1:0,l=t?-1:1,x=i[e+f];for(f+=l,o=x&(1<<-c)-1,x>>=-c,c+=p;c>0;o=o*256+i[e+f],f+=l,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=s*256+i[e+f],f+=l,c-=8);if(o===0)o=1-m;else{if(o===a)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-m}return(x?-1:1)*s*Math.pow(2,o-r)};ne.write=function(i,e,t,r,n,o){var s,p,a,m=o*8-n-1,c=(1<<m)-1,f=c>>1,l=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=r?0:o-1,v=r?1:-1,w=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+f>=1?e+=l/a:e+=l*Math.pow(2,1-f),e*a>=2&&(s++,a/=2),s+f>=c?(p=0,s=c):s+f>=1?(p=(e*a-1)*Math.pow(2,n),s=s+f):(p=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));n>=8;i[t+x]=p&255,x+=v,p/=256,n-=8);for(s=s<<n|p,m+=n;m>0;i[t+x]=s&255,x+=v,s/=256,m-=8);i[t+x-v]|=w*128}});var Be=O((_i,Ee)=>{var M=1e3,L=M*60,j=L*60,I=j*24,ft=I*7,mt=I*365.25;Ee.exports=function(i,e){e=e||{};var t=typeof i;if(t==="string"&&i.length>0)return lt(i);if(t==="number"&&isFinite(i))return e.long?ut(i):xt(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function lt(i){if(i=String(i),!(i.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(e){var t=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return t*mt;case"weeks":case"week":case"w":return t*ft;case"days":case"day":case"d":return t*I;case"hours":case"hour":case"hrs":case"hr":case"h":return t*j;case"minutes":case"minute":case"mins":case"min":case"m":return t*L;case"seconds":case"second":case"secs":case"sec":case"s":return t*M;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function xt(i){var e=Math.abs(i);return e>=I?Math.round(i/I)+"d":e>=j?Math.round(i/j)+"h":e>=L?Math.round(i/L)+"m":e>=M?Math.round(i/M)+"s":i+"ms"}function ut(i){var e=Math.abs(i);return e>=I?J(i,e,I,"day"):e>=j?J(i,e,j,"hour"):e>=L?J(i,e,L,"minute"):e>=M?J(i,e,M,"second"):i+" ms"}function J(i,e,t,r){var n=e>=t*1.5;return Math.round(i/t)+" "+r+(n?"s":"")}});var se=O(($i,Ie)=>{function dt(i){t.debug=t,t.default=t,t.coerce=a,t.disable=s,t.enable=n,t.enabled=p,t.humanize=Be(),t.destroy=m,Object.keys(i).forEach(c=>{t[c]=i[c]}),t.names=[],t.skips=[],t.formatters={};function e(c){let f=0;for(let l=0;l<c.length;l++)f=(f<<5)-f+c.charCodeAt(l),f|=0;return t.colors[Math.abs(f)%t.colors.length]}t.selectColor=e;function t(c){let f,l=null,x,v;function w(...C){if(!w.enabled)return;let A=w,$=Number(new Date),Ge=$-(f||$);A.diff=Ge,A.prev=f,A.curr=$,f=$,C[0]=t.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let H=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(K,Je)=>{if(K==="%%")return"%";H++;let de=t.formatters[Je];if(typeof de=="function"){let Xe=C[H];K=de.call(A,Xe),C.splice(H,1),H--}return K}),t.formatArgs.call(A,C),(A.log||t.log).apply(A,C)}return w.namespace=c,w.useColors=t.useColors(),w.color=t.selectColor(c),w.extend=r,w.destroy=t.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(x!==t.namespaces&&(x=t.namespaces,v=t.enabled(c)),v),set:C=>{l=C}}),typeof t.init=="function"&&t.init(w),w}function r(c,f){let l=t(this.namespace+(typeof f>"u"?":":f)+c);return l.log=this.log,l}function n(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let f=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let l of f)l[0]==="-"?t.skips.push(l.slice(1)):t.names.push(l)}function o(c,f){let l=0,x=0,v=-1,w=0;for(;l<c.length;)if(x<f.length&&(f[x]===c[l]||f[x]==="*"))f[x]==="*"?(v=x,w=l,x++):(l++,x++);else if(v!==-1)x=v+1,w++,l=w;else return!1;for(;x<f.length&&f[x]==="*";)x++;return x===f.length}function s(){let c=[...t.names,...t.skips.map(f=>"-"+f)].join(",");return t.enable(""),c}function p(c){for(let f of t.skips)if(o(c,f))return!1;for(let f of t.names)if(o(c,f))return!0;return!1}function a(c){return c instanceof Error?c.stack||c.message:c}function m(){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 t.enable(t.load()),t}Ie.exports=dt});var De=O((b,X)=>{b.formatArgs=gt;b.save=wt;b.load=kt;b.useColors=ht;b.storage=yt();b.destroy=(()=>{let i=!1;return()=>{i||(i=!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`."))}})();b.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 ht(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return 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 navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function gt(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+X.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;i.splice(1,0,e,"color: inherit");let t=0,r=0;i[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(t++,n==="%c"&&(r=t))}),i.splice(r,0,e)}b.log=console.debug||console.log||(()=>{});function wt(i){try{i?b.storage.setItem("debug",i):b.storage.removeItem("debug")}catch{}}function kt(){let i;try{i=b.storage.getItem("debug")||b.storage.getItem("DEBUG")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function yt(){try{return localStorage}catch{}}X.exports=se()(b);var{formatters:bt}=X.exports;bt.j=function(i){try{return JSON.stringify(i)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ze=O((g,Q)=>{var Ct=ee("tty"),Z=ee("util");g.init=Bt;g.log=Tt;g.formatArgs=vt;g.save=At;g.load=Et;g.useColors=Ft;g.destroy=Z.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");g.colors=[6,2,3,4,5,1];try{let i=ee("supports-color");i&&(i.stderr||i).level>=2&&(g.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}g.inspectOpts=Object.keys(process.env).filter(i=>/^debug_/i.test(i)).reduce((i,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,o)=>o.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),i[t]=r,i},{});function Ft(){return"colors"in g.inspectOpts?!!g.inspectOpts.colors:Ct.isatty(process.stderr.fd)}function vt(i){let{namespace:e,useColors:t}=this;if(t){let r=this.color,n="\x1B[3"+(r<8?r:"8;5;"+r),o=` ${n};1m${e} \x1B[0m`;i[0]=o+i[0].split(`
2
+ import{a as ge,b as we,c as te}from"./chunk-GTNBSMZR.js";import{a as ee,c as O,e as he}from"./chunk-KGOUQS5A.js";var be=O(ne=>{ne.read=function(i,e,t,r,n){var o,s,p=n*8-r-1,a=(1<<p)-1,m=a>>1,c=-7,f=t?n-1:0,l=t?-1:1,x=i[e+f];for(f+=l,o=x&(1<<-c)-1,x>>=-c,c+=p;c>0;o=o*256+i[e+f],f+=l,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=s*256+i[e+f],f+=l,c-=8);if(o===0)o=1-m;else{if(o===a)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-m}return(x?-1:1)*s*Math.pow(2,o-r)};ne.write=function(i,e,t,r,n,o){var s,p,a,m=o*8-n-1,c=(1<<m)-1,f=c>>1,l=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=r?0:o-1,v=r?1:-1,w=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+f>=1?e+=l/a:e+=l*Math.pow(2,1-f),e*a>=2&&(s++,a/=2),s+f>=c?(p=0,s=c):s+f>=1?(p=(e*a-1)*Math.pow(2,n),s=s+f):(p=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));n>=8;i[t+x]=p&255,x+=v,p/=256,n-=8);for(s=s<<n|p,m+=n;m>0;i[t+x]=s&255,x+=v,s/=256,m-=8);i[t+x-v]|=w*128}});var Be=O((_i,Ee)=>{var M=1e3,L=M*60,j=L*60,I=j*24,ft=I*7,mt=I*365.25;Ee.exports=function(i,e){e=e||{};var t=typeof i;if(t==="string"&&i.length>0)return lt(i);if(t==="number"&&isFinite(i))return e.long?ut(i):xt(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function lt(i){if(i=String(i),!(i.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(e){var t=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return t*mt;case"weeks":case"week":case"w":return t*ft;case"days":case"day":case"d":return t*I;case"hours":case"hour":case"hrs":case"hr":case"h":return t*j;case"minutes":case"minute":case"mins":case"min":case"m":return t*L;case"seconds":case"second":case"secs":case"sec":case"s":return t*M;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function xt(i){var e=Math.abs(i);return e>=I?Math.round(i/I)+"d":e>=j?Math.round(i/j)+"h":e>=L?Math.round(i/L)+"m":e>=M?Math.round(i/M)+"s":i+"ms"}function ut(i){var e=Math.abs(i);return e>=I?J(i,e,I,"day"):e>=j?J(i,e,j,"hour"):e>=L?J(i,e,L,"minute"):e>=M?J(i,e,M,"second"):i+" ms"}function J(i,e,t,r){var n=e>=t*1.5;return Math.round(i/t)+" "+r+(n?"s":"")}});var se=O(($i,Ie)=>{function dt(i){t.debug=t,t.default=t,t.coerce=a,t.disable=s,t.enable=n,t.enabled=p,t.humanize=Be(),t.destroy=m,Object.keys(i).forEach(c=>{t[c]=i[c]}),t.names=[],t.skips=[],t.formatters={};function e(c){let f=0;for(let l=0;l<c.length;l++)f=(f<<5)-f+c.charCodeAt(l),f|=0;return t.colors[Math.abs(f)%t.colors.length]}t.selectColor=e;function t(c){let f,l=null,x,v;function w(...C){if(!w.enabled)return;let A=w,$=Number(new Date),Ge=$-(f||$);A.diff=Ge,A.prev=f,A.curr=$,f=$,C[0]=t.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let H=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(K,Je)=>{if(K==="%%")return"%";H++;let de=t.formatters[Je];if(typeof de=="function"){let Xe=C[H];K=de.call(A,Xe),C.splice(H,1),H--}return K}),t.formatArgs.call(A,C),(A.log||t.log).apply(A,C)}return w.namespace=c,w.useColors=t.useColors(),w.color=t.selectColor(c),w.extend=r,w.destroy=t.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(x!==t.namespaces&&(x=t.namespaces,v=t.enabled(c)),v),set:C=>{l=C}}),typeof t.init=="function"&&t.init(w),w}function r(c,f){let l=t(this.namespace+(typeof f>"u"?":":f)+c);return l.log=this.log,l}function n(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];let f=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let l of f)l[0]==="-"?t.skips.push(l.slice(1)):t.names.push(l)}function o(c,f){let l=0,x=0,v=-1,w=0;for(;l<c.length;)if(x<f.length&&(f[x]===c[l]||f[x]==="*"))f[x]==="*"?(v=x,w=l,x++):(l++,x++);else if(v!==-1)x=v+1,w++,l=w;else return!1;for(;x<f.length&&f[x]==="*";)x++;return x===f.length}function s(){let c=[...t.names,...t.skips.map(f=>"-"+f)].join(",");return t.enable(""),c}function p(c){for(let f of t.skips)if(o(c,f))return!1;for(let f of t.names)if(o(c,f))return!0;return!1}function a(c){return c instanceof Error?c.stack||c.message:c}function m(){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 t.enable(t.load()),t}Ie.exports=dt});var De=O((b,X)=>{b.formatArgs=gt;b.save=wt;b.load=kt;b.useColors=ht;b.storage=yt();b.destroy=(()=>{let i=!1;return()=>{i||(i=!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`."))}})();b.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 ht(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return 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 navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function gt(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+X.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;i.splice(1,0,e,"color: inherit");let t=0,r=0;i[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(t++,n==="%c"&&(r=t))}),i.splice(r,0,e)}b.log=console.debug||console.log||(()=>{});function wt(i){try{i?b.storage.setItem("debug",i):b.storage.removeItem("debug")}catch{}}function kt(){let i;try{i=b.storage.getItem("debug")||b.storage.getItem("DEBUG")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function yt(){try{return localStorage}catch{}}X.exports=se()(b);var{formatters:bt}=X.exports;bt.j=function(i){try{return JSON.stringify(i)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ze=O((g,Q)=>{var Ct=ee("tty"),Z=ee("util");g.init=Bt;g.log=Tt;g.formatArgs=vt;g.save=At;g.load=Et;g.useColors=Ft;g.destroy=Z.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");g.colors=[6,2,3,4,5,1];try{let i=ee("supports-color");i&&(i.stderr||i).level>=2&&(g.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}g.inspectOpts=Object.keys(process.env).filter(i=>/^debug_/i.test(i)).reduce((i,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,o)=>o.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),i[t]=r,i},{});function Ft(){return"colors"in g.inspectOpts?!!g.inspectOpts.colors:Ct.isatty(process.stderr.fd)}function vt(i){let{namespace:e,useColors:t}=this;if(t){let r=this.color,n="\x1B[3"+(r<8?r:"8;5;"+r),o=` ${n};1m${e} \x1B[0m`;i[0]=o+i[0].split(`
3
3
  `).join(`
4
4
  `+o),i.push(n+"m+"+Q.exports.humanize(this.diff)+"\x1B[0m")}else i[0]=St()+e+" "+i[0]}function St(){return g.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Tt(...i){return process.stderr.write(Z.formatWithOptions(g.inspectOpts,...i)+`
5
5
  `)}function At(i){i?process.env.DEBUG=i:delete process.env.DEBUG}function Et(){return process.env.DEBUG}function Bt(i){i.inspectOpts={};let e=Object.keys(g.inspectOpts);for(let t=0;t<e.length;t++)i.inspectOpts[e[t]]=g.inspectOpts[e[t]]}Q.exports=se()(g);var{formatters:Oe}=Q.exports;Oe.o=function(i){return this.inspectOpts.colors=this.useColors,Z.inspect(i,this.inspectOpts).split(`
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{a as N}from"./chunk-26Q3PZQ6.js";import{a as L,b as B,c as H}from"./chunk-PM2DS2YW.js";import{a as I,b as O}from"./chunk-GTNBSMZR.js";import"./chunk-SJXDWN5X.js";function w(e,s){switch(e.type){case"name":return{matches:N(s.name,e.pattern,e.ignoreCase),pruned:!1,printed:!1};case"path":return{matches:N(s.relativePath,e.pattern,e.ignoreCase),pruned:!1,printed:!1};case"regex":try{let n=e.ignoreCase?"i":"";return{matches:new RegExp(e.pattern,n).test(s.relativePath),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e.fileType==="f"?{matches:s.isFile,pruned:!1,printed:!1}:e.fileType==="d"?{matches:s.isDirectory,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"empty":return{matches:s.isEmpty,pruned:!1,printed:!1};case"mtime":{let i=(Date.now()-s.mtime)/(1e3*60*60*24),t;return e.comparison==="more"?t=i>e.days:e.comparison==="less"?t=i<e.days:t=Math.floor(i)===e.days,{matches:t,pruned:!1,printed:!1}}case"newer":{let n=s.newerRefTimes.get(e.refPath);return n===void 0?{matches:!1,pruned:!1,printed:!1}:{matches:s.mtime>n,pruned:!1,printed:!1}}case"size":{let n=e.value;switch(e.unit){case"c":n=e.value;break;case"k":n=e.value*1024;break;case"M":n=e.value*1024*1024;break;case"G":n=e.value*1024*1024*1024;break;case"b":n=e.value*512;break}let i;return e.comparison==="more"?i=s.size>n:e.comparison==="less"?i=s.size<n:e.unit==="b"?i=Math.ceil(s.size/512)===e.value:i=s.size===n,{matches:i,pruned:!1,printed:!1}}case"perm":{let n=s.mode&511,i=e.mode&511,t;return e.matchType==="exact"?t=n===i:e.matchType==="all"?t=(n&i)===i:t=(n&i)!==0,{matches:t,pruned:!1,printed:!1}}case"prune":return{matches:!0,pruned:!0,printed:!1};case"print":return{matches:!0,pruned:!1,printed:!0};case"not":{let n=w(e.expr,s);return{matches:!n.matches,pruned:n.pruned,printed:!1}}case"and":{let n=w(e.left,s);if(!n.matches)return{matches:!1,pruned:n.pruned,printed:!1};let i=w(e.right,s);return{matches:i.matches,pruned:n.pruned||i.pruned,printed:n.printed||i.printed}}case"or":{let n=w(e.left,s);if(n.matches)return n;let i=w(e.right,s);return{matches:i.matches,pruned:n.pruned||i.pruned,printed:i.printed}}}}function G(e){let s=[],n=i=>{i&&(i.type==="newer"?s.push(i.refPath):i.type==="not"?n(i.expr):(i.type==="and"||i.type==="or")&&(n(i.left),n(i.right)))};return n(e),s}function j(e,s){let n=[],i=[],t=s;for(;t<e.length;){let a=e[t];if(a==="("||a==="\\("){n.push({type:"lparen"}),t++;continue}if(a===")"||a==="\\)"){n.push({type:"rparen"}),t++;continue}if(a==="-name"&&t+1<e.length)n.push({type:"expr",expr:{type:"name",pattern:e[++t]}});else if(a==="-iname"&&t+1<e.length)n.push({type:"expr",expr:{type:"name",pattern:e[++t],ignoreCase:!0}});else if(a==="-path"&&t+1<e.length)n.push({type:"expr",expr:{type:"path",pattern:e[++t]}});else if(a==="-ipath"&&t+1<e.length)n.push({type:"expr",expr:{type:"path",pattern:e[++t],ignoreCase:!0}});else if(a==="-regex"&&t+1<e.length)n.push({type:"expr",expr:{type:"regex",pattern:e[++t]}});else if(a==="-iregex"&&t+1<e.length)n.push({type:"expr",expr:{type:"regex",pattern:e[++t],ignoreCase:!0}});else if(a==="-type"&&t+1<e.length){let r=e[++t];if(r==="f"||r==="d")n.push({type:"expr",expr:{type:"type",fileType:r}});else return{expr:null,pathIndex:t,error:`find: Unknown argument to -type: ${r}
2
+ import{a as N}from"./chunk-26Q3PZQ6.js";import{a as L,b as B,c as H}from"./chunk-PM2DS2YW.js";import{a as I,b as O}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";function w(e,s){switch(e.type){case"name":return{matches:N(s.name,e.pattern,e.ignoreCase),pruned:!1,printed:!1};case"path":return{matches:N(s.relativePath,e.pattern,e.ignoreCase),pruned:!1,printed:!1};case"regex":try{let n=e.ignoreCase?"i":"";return{matches:new RegExp(e.pattern,n).test(s.relativePath),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e.fileType==="f"?{matches:s.isFile,pruned:!1,printed:!1}:e.fileType==="d"?{matches:s.isDirectory,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"empty":return{matches:s.isEmpty,pruned:!1,printed:!1};case"mtime":{let i=(Date.now()-s.mtime)/(1e3*60*60*24),t;return e.comparison==="more"?t=i>e.days:e.comparison==="less"?t=i<e.days:t=Math.floor(i)===e.days,{matches:t,pruned:!1,printed:!1}}case"newer":{let n=s.newerRefTimes.get(e.refPath);return n===void 0?{matches:!1,pruned:!1,printed:!1}:{matches:s.mtime>n,pruned:!1,printed:!1}}case"size":{let n=e.value;switch(e.unit){case"c":n=e.value;break;case"k":n=e.value*1024;break;case"M":n=e.value*1024*1024;break;case"G":n=e.value*1024*1024*1024;break;case"b":n=e.value*512;break}let i;return e.comparison==="more"?i=s.size>n:e.comparison==="less"?i=s.size<n:e.unit==="b"?i=Math.ceil(s.size/512)===e.value:i=s.size===n,{matches:i,pruned:!1,printed:!1}}case"perm":{let n=s.mode&511,i=e.mode&511,t;return e.matchType==="exact"?t=n===i:e.matchType==="all"?t=(n&i)===i:t=(n&i)!==0,{matches:t,pruned:!1,printed:!1}}case"prune":return{matches:!0,pruned:!0,printed:!1};case"print":return{matches:!0,pruned:!1,printed:!0};case"not":{let n=w(e.expr,s);return{matches:!n.matches,pruned:n.pruned,printed:!1}}case"and":{let n=w(e.left,s);if(!n.matches)return{matches:!1,pruned:n.pruned,printed:!1};let i=w(e.right,s);return{matches:i.matches,pruned:n.pruned||i.pruned,printed:n.printed||i.printed}}case"or":{let n=w(e.left,s);if(n.matches)return n;let i=w(e.right,s);return{matches:i.matches,pruned:n.pruned||i.pruned,printed:i.printed}}}}function G(e){let s=[],n=i=>{i&&(i.type==="newer"?s.push(i.refPath):i.type==="not"?n(i.expr):(i.type==="and"||i.type==="or")&&(n(i.left),n(i.right)))};return n(e),s}function j(e,s){let n=[],i=[],t=s;for(;t<e.length;){let a=e[t];if(a==="("||a==="\\("){n.push({type:"lparen"}),t++;continue}if(a===")"||a==="\\)"){n.push({type:"rparen"}),t++;continue}if(a==="-name"&&t+1<e.length)n.push({type:"expr",expr:{type:"name",pattern:e[++t]}});else if(a==="-iname"&&t+1<e.length)n.push({type:"expr",expr:{type:"name",pattern:e[++t],ignoreCase:!0}});else if(a==="-path"&&t+1<e.length)n.push({type:"expr",expr:{type:"path",pattern:e[++t]}});else if(a==="-ipath"&&t+1<e.length)n.push({type:"expr",expr:{type:"path",pattern:e[++t],ignoreCase:!0}});else if(a==="-regex"&&t+1<e.length)n.push({type:"expr",expr:{type:"regex",pattern:e[++t]}});else if(a==="-iregex"&&t+1<e.length)n.push({type:"expr",expr:{type:"regex",pattern:e[++t],ignoreCase:!0}});else if(a==="-type"&&t+1<e.length){let r=e[++t];if(r==="f"||r==="d")n.push({type:"expr",expr:{type:"type",fileType:r}});else return{expr:null,pathIndex:t,error:`find: Unknown argument to -type: ${r}
3
3
  `,actions:[]}}else if(a==="-empty")n.push({type:"expr",expr:{type:"empty"}});else if(a==="-mtime"&&t+1<e.length){let r=e[++t],c="exact",o=r;r.startsWith("+")?(c="more",o=r.slice(1)):r.startsWith("-")&&(c="less",o=r.slice(1));let h=parseInt(o,10);Number.isNaN(h)||n.push({type:"expr",expr:{type:"mtime",days:h,comparison:c}})}else if(a==="-newer"&&t+1<e.length){let r=e[++t];n.push({type:"expr",expr:{type:"newer",refPath:r}})}else if(a==="-size"&&t+1<e.length){let r=e[++t],c="exact",o=r;r.startsWith("+")?(c="more",o=r.slice(1)):r.startsWith("-")&&(c="less",o=r.slice(1));let h=o.match(/^(\d+)([ckMGb])?$/);if(h){let b=parseInt(h[1],10),y=h[2]||"b";n.push({type:"expr",expr:{type:"size",value:b,unit:y,comparison:c}})}}else if(a==="-perm"&&t+1<e.length){let r=e[++t],c="exact",o=r;r.startsWith("-")?(c="all",o=r.slice(1)):r.startsWith("/")&&(c="any",o=r.slice(1));let h=parseInt(o,8);Number.isNaN(h)||n.push({type:"expr",expr:{type:"perm",mode:h,matchType:c}})}else if(a==="-prune")n.push({type:"expr",expr:{type:"prune"}});else if(a==="-not"||a==="!")n.push({type:"not"});else if(a==="-o"||a==="-or")n.push({type:"op",op:"or"});else if(a==="-a"||a==="-and")n.push({type:"op",op:"and"});else if(a==="-maxdepth"||a==="-mindepth")t++;else if(a!=="-depth")if(a==="-exec"){let r=[];for(t++;t<e.length&&e[t]!==";"&&e[t]!=="+";)r.push(e[t]),t++;if(t>=e.length)return{expr:null,pathIndex:t,error:"find: missing argument to `-exec'\n",actions:[]};let c=e[t]==="+";i.push({type:"exec",command:r,batchMode:c})}else if(a==="-print")n.push({type:"expr",expr:{type:"print"}}),i.push({type:"print"});else if(a==="-print0")i.push({type:"print0"});else if(a==="-printf"&&t+1<e.length){let r=e[++t];i.push({type:"printf",format:r})}else if(a==="-delete")i.push({type:"delete"});else{if(a.startsWith("-"))return{expr:null,pathIndex:t,error:`find: unknown predicate '${a}'
4
4
  `,actions:[]};if(n.length===0){t++;continue}break}t++}if(n.length===0)return{expr:null,pathIndex:t,actions:i};let m=_(n);return m.error?{expr:null,pathIndex:t,error:m.error,actions:i}:{expr:m.expr,pathIndex:t,actions:i}}function _(e){let s=0;function n(){let r=i();if(!r)return null;for(;s<e.length;){let c=e[s];if(c.type==="op"&&c.op==="or"){s++;let o=i();if(!o)return r;r={type:"or",left:r,right:o}}else break}return r}function i(){let r=t();if(!r)return null;for(;s<e.length;){let c=e[s];if(c.type==="op"&&c.op==="and"){s++;let o=t();if(!o)return r;r={type:"and",left:r,right:o}}else if(c.type==="expr"||c.type==="not"||c.type==="lparen"){let o=t();if(!o)return r;r={type:"and",left:r,right:o}}else break}return r}function t(){if(s<e.length&&e[s].type==="not"){s++;let r=t();return r?{type:"not",expr:r}:null}return m()}function m(){if(s>=e.length)return null;let r=e[s];if(r.type==="lparen"){s++;let c=n();return s<e.length&&e[s].type==="rparen"&&s++,c}return r.type==="expr"?(s++,r.expr):(r.type==="rparen",null)}return{expr:n()}}var K={name:"find",summary:"search for files in a directory hierarchy",usage:"find [path...] [expression]",options:["-name PATTERN file name matches shell pattern PATTERN","-iname PATTERN like -name but case insensitive","-path PATTERN file path matches shell pattern PATTERN","-ipath PATTERN like -path but case insensitive","-regex PATTERN file path matches regular expression PATTERN","-iregex PATTERN like -regex but case insensitive","-type TYPE file is of type: f (regular file), d (directory)","-empty file is empty or directory is empty","-mtime N file's data was modified N*24 hours ago","-newer FILE file was modified more recently than FILE","-size N[ckMGb] file uses N units of space (c=bytes, k=KB, M=MB, G=GB, b=512B blocks)","-perm MODE file's permission bits are exactly MODE (octal)","-perm -MODE all permission bits MODE are set","-perm /MODE any permission bits MODE are set","-maxdepth LEVELS descend at most LEVELS directories","-mindepth LEVELS do not apply tests at levels less than LEVELS","-depth process directory contents before directory itself","-prune do not descend into this directory","-not, ! negate the following expression","-a, -and logical AND (default)","-o, -or logical OR","-exec CMD {} ; execute CMD on each file ({} is replaced by filename)","-exec CMD {} + execute CMD with multiple files at once","-print print the full file name (default action)","-print0 print the full file name followed by a null character","-printf FORMAT print FORMAT with directives: %f %h %p %P %s %d %m %M %t","-delete delete found files/directories"," --help display this help and exit"]},U=new Set(["-name","-iname","-path","-ipath","-regex","-iregex","-type","-maxdepth","-mindepth","-mtime","-newer","-size","-perm"]),oe={name:"find",async execute(e,s){if(O(e))return I(K);let n=[],i=null,t=null,m=!1,a=!1;for(let l=0;l<e.length;l++){let p=e[l];if(p==="-maxdepth"&&l+1<e.length)a=!0,i=parseInt(e[++l],10);else if(p==="-mindepth"&&l+1<e.length)a=!0,t=parseInt(e[++l],10);else if(p==="-depth")a=!0,m=!0;else if(p==="-exec")for(a=!0,l++;l<e.length&&e[l]!==";"&&e[l]!=="+";)l++;else!p.startsWith("-")&&p!==";"&&p!=="+"&&p!=="("&&p!==")"&&p!=="\\("&&p!=="\\)"&&p!=="!"?a||n.push(p):U.has(p)?(a=!0,l++):(p.startsWith("-")||p==="("||p==="\\("||p==="!")&&(a=!0)}n.length===0&&n.push(".");let{expr:r,error:c,actions:o}=j(e,0);if(c)return{stdout:"",stderr:c,exitCode:1};let h=o.some(l=>l.type==="print"),b=o.length===0,y=[],Y=o.some(l=>l.type==="printf"),F=[],T="",D=0,V=G(r),k=new Map;for(let l of V){let p=s.fs.resolvePath(s.cwd,l);try{let g=await s.fs.stat(p);k.set(l,g.mtime?.getTime()??Date.now())}catch{}}for(let l of n){l.length>1&&l.endsWith("/")&&(l=l.slice(0,-1));let p=s.fs.resolvePath(s.cwd,l);try{await s.fs.stat(p)}catch{T+=`find: ${l}: No such file or directory
5
5
  `,D=1;continue}async function g(u,d){if(i!==null&&d>i)return;let f;try{f=await s.fs.stat(u)}catch{return}if(!f)return;let E;u===p?E=l.split("/").pop()||l:E=u.split("/").pop()||"";let $=u===p?l:l==="."?`./${u.slice(p==="/"?p.length:p.length+1)}`:l+u.slice(p.length),M=null;f.isDirectory&&(M=await s.fs.readdir(u));let R=f.isFile?f.size===0:M!==null&&M.length===0,C=()=>{let x=t===null||d>=t,v=!1;if(x&&r!==null){let J={name:E,relativePath:$,isFile:f.isFile,isDirectory:f.isDirectory,isEmpty:R,mtime:f.mtime?.getTime()??Date.now(),size:f.size??0,mode:f.mode??420,newerRefTimes:k},z=w(r,J);x=z.matches,h?v=z.printed:v=x}else x&&(v=!0);v&&(y.push($),Y&&F.push({path:$,name:E,size:f.size??0,mtime:f.mtime?.getTime()??Date.now(),mode:f.mode??420,isDirectory:f.isDirectory,depth:d,startingPoint:l}))},A=async()=>{if(M!==null)for(let P of M){let x=u==="/"?`/${P}`:`${u}/${P}`;await g(x,d+1)}},W=!1;if(!m&&r!==null){let P={name:E,relativePath:$,isFile:f.isFile,isDirectory:f.isDirectory,isEmpty:R,mtime:f.mtime?.getTime()??Date.now(),size:f.size??0,mode:f.mode??420,newerRefTimes:k};W=w(r,P).pruned}m?(await A(),C()):(C(),W||await A())}await g(p,0)}let S="";if(o.length>0)for(let l of o)switch(l.type){case"print":S+=y.length>0?`${y.join(`
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ import{a as h,b as p,c as w}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";var m={name:"fold",summary:"wrap each input line to fit in specified width",usage:"fold [OPTION]... [FILE]...",description:"Wrap input lines in each FILE, writing to standard output. If no FILE is specified, standard input is read.",options:["-w WIDTH Use WIDTH columns instead of 80","-s Break at spaces","-b Count bytes rather than columns"],examples:["fold -w 40 file.txt # Wrap at 40 columns","fold -sw 40 file.txt # Word wrap at 40 columns","echo 'long line' | fold -w 5 # Force wrap at 5"]};function N(s,l,n){return n?new TextEncoder().encode(s).length:s===" "?8-l%8:s==="\b"?-1:1}function g(s,l){if(s.length===0)return s;let{width:n,breakAtSpaces:u,countBytes:i}=l,r=[],e="",t=0,o=-1,f=0;for(let a=0;a<s.length;a++){let d=s[a],c=N(d,t,i);t+c>n&&e.length>0?u&&o>=0?(r.push(e.slice(0,o+1)),e=e.slice(o+1)+d,t=t-f-1+c,o=-1,f=0):(r.push(e),e=d,t=c,o=-1,f=0):(e+=d,t+=c,(d===" "||d===" ")&&(o=e.length-1,f=t-c))}return e.length>0&&r.push(e),r.join(`
3
+ `)}function b(s,l){if(s==="")return"";let n=s.split(`
4
+ `),u=s.endsWith(`
5
+ `)&&n[n.length-1]==="";return u&&n.pop(),n.map(r=>g(r,l)).join(`
6
+ `)+(u?`
7
+ `:"")}var I={name:"fold",execute:async(s,l)=>{if(p(s))return h(m);let n={width:80,breakAtSpaces:!1,countBytes:!1},u=[],i=0;for(;i<s.length;){let e=s[i];if(e==="-w"&&i+1<s.length){let t=parseInt(s[i+1],10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s[i+1]}'
8
+ `};n.width=t,i+=2}else if(e.startsWith("-w")&&e.length>2){let t=parseInt(e.slice(2),10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${e.slice(2)}'
9
+ `};n.width=t,i++}else if(e==="-s")n.breakAtSpaces=!0,i++;else if(e==="-b")n.countBytes=!0,i++;else if(e==="-bs"||e==="-sb")n.breakAtSpaces=!0,n.countBytes=!0,i++;else if(e.match(/^-[sb]+w\d+$/)){e.includes("s")&&(n.breakAtSpaces=!0),e.includes("b")&&(n.countBytes=!0);let t=e.replace(/^-[sb]+w/,""),o=parseInt(t,10);if(Number.isNaN(o)||o<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${t}'
10
+ `};n.width=o,i++}else if(e.match(/^-[sb]+w$/)&&i+1<s.length){e.includes("s")&&(n.breakAtSpaces=!0),e.includes("b")&&(n.countBytes=!0);let t=parseInt(s[i+1],10);if(Number.isNaN(t)||t<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s[i+1]}'
11
+ `};n.width=t,i+=2}else if(e==="--"){u.push(...s.slice(i+1));break}else if(e.startsWith("-")&&e!=="-"){let t=e.slice(1),o=!1;for(let f of t)if(f==="s")n.breakAtSpaces=!0;else if(f==="b")n.countBytes=!0;else{o=!0;break}if(o)return w("fold",e);i++}else u.push(e),i++}let r="";if(u.length===0){let e=l.stdin??"";r=b(e,n)}else for(let e of u){let t=l.fs.resolvePath(l.cwd,e),o=await l.fs.readFile(t);if(o===null)return{exitCode:1,stdout:r,stderr:`fold: ${e}: No such file or directory
12
+ `};r+=b(o,n)}return{exitCode:0,stdout:r,stderr:""}}};export{I as fold};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{a as M}from"./chunk-26Q3PZQ6.js";import{a as G,b as D,c as Q}from"./chunk-GTNBSMZR.js";import"./chunk-SJXDWN5X.js";var K={name:"grep",summary:"print lines that match patterns",usage:"grep [OPTION]... PATTERN [FILE]...",options:["-E, --extended-regexp PATTERN is an extended regular expression","-P, --perl-regexp PATTERN is a Perl regular expression","-F, --fixed-strings PATTERN is a set of newline-separated strings","-i, --ignore-case ignore case distinctions","-v, --invert-match select non-matching lines","-w, --word-regexp match only whole words","-x, --line-regexp match only whole lines","-c, --count print only a count of matching lines","-l, --files-with-matches print only names of files with matches","-L, --files-without-match print names of files with no matches","-m NUM, --max-count=NUM stop after NUM matches","-n, --line-number print line number with output lines","-h, --no-filename suppress the file name prefix on output","-o, --only-matching show only nonempty parts of lines that match","-q, --quiet, --silent suppress all normal output","-r, -R, --recursive search directories recursively","-A NUM print NUM lines of trailing context","-B NUM print NUM lines of leading context","-C NUM print NUM lines of context","-e PATTERN use PATTERN for matching"," --include=GLOB search only files matching GLOB"," --exclude=GLOB skip files matching GLOB"," --exclude-dir=DIR skip directories matching DIR"," --help display this help and exit"]},j={name:"grep",async execute(s,e){if(D(s))return G(K);let i=!1,r=!1,f=!1,c=!1,w=!1,d=!1,h=!1,m=!1,p=!1,g=!1,C=!1,I=!1,E=!1,N=!1,T=!1,a=0,y=0,o=0,n=[],x=[],W=[],$=null,F=[];for(let u=0;u<s.length;u++){let l=s[u];if(l.startsWith("-")&&l!=="-"){if(l==="-e"&&u+1<s.length){$=s[++u];continue}if(l.startsWith("--include=")){n.push(l.slice(10));continue}if(l.startsWith("--exclude=")){x.push(l.slice(10));continue}if(l.startsWith("--exclude-dir=")){W.push(l.slice(14));continue}if(l.startsWith("--max-count=")){a=parseInt(l.slice(12),10);continue}let P=l.match(/^-m(\d+)$/);if(P){a=parseInt(P[1],10);continue}if(l==="-m"&&u+1<s.length){a=parseInt(s[++u],10);continue}let v=l.match(/^-([ABC])(\d+)$/);if(v){let t=parseInt(v[2],10);v[1]==="A"?o=t:v[1]==="B"?y=t:v[1]==="C"&&(y=t,o=t);continue}if((l==="-A"||l==="-B"||l==="-C")&&u+1<s.length){let t=parseInt(s[++u],10);l==="-A"?o=t:l==="-B"?y=t:(y=t,o=t);continue}let U=l.startsWith("--")?[l]:l.slice(1).split("");for(let t of U)if(t==="i"||t==="--ignore-case")i=!0;else if(t==="n"||t==="--line-number")r=!0;else if(t==="v"||t==="--invert-match")f=!0;else if(t==="c"||t==="--count")c=!0;else if(t==="l"||t==="--files-with-matches")w=!0;else if(t==="L"||t==="--files-without-match")d=!0;else if(t==="r"||t==="R"||t==="--recursive")h=!0;else if(t==="w"||t==="--word-regexp")m=!0;else if(t==="x"||t==="--line-regexp")p=!0;else if(t==="E"||t==="--extended-regexp")g=!0;else if(t==="P"||t==="--perl-regexp")C=!0;else if(t==="F"||t==="--fixed-strings")I=!0;else if(t==="o"||t==="--only-matching")E=!0;else if(t==="h"||t==="--no-filename")N=!0;else if(t==="q"||t==="--quiet"||t==="--silent")T=!0;else{if(t.startsWith("--"))return Q("grep",t);if(t.length===1)return Q("grep",`-${t}`)}}else $===null?$=l:F.push(l)}if($===null)return{stdout:"",stderr:`grep: missing pattern
2
+ import{a as M}from"./chunk-26Q3PZQ6.js";import{a as G,b as D,c as Q}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";var K={name:"grep",summary:"print lines that match patterns",usage:"grep [OPTION]... PATTERN [FILE]...",options:["-E, --extended-regexp PATTERN is an extended regular expression","-P, --perl-regexp PATTERN is a Perl regular expression","-F, --fixed-strings PATTERN is a set of newline-separated strings","-i, --ignore-case ignore case distinctions","-v, --invert-match select non-matching lines","-w, --word-regexp match only whole words","-x, --line-regexp match only whole lines","-c, --count print only a count of matching lines","-l, --files-with-matches print only names of files with matches","-L, --files-without-match print names of files with no matches","-m NUM, --max-count=NUM stop after NUM matches","-n, --line-number print line number with output lines","-h, --no-filename suppress the file name prefix on output","-o, --only-matching show only nonempty parts of lines that match","-q, --quiet, --silent suppress all normal output","-r, -R, --recursive search directories recursively","-A NUM print NUM lines of trailing context","-B NUM print NUM lines of leading context","-C NUM print NUM lines of context","-e PATTERN use PATTERN for matching"," --include=GLOB search only files matching GLOB"," --exclude=GLOB skip files matching GLOB"," --exclude-dir=DIR skip directories matching DIR"," --help display this help and exit"]},j={name:"grep",async execute(s,e){if(D(s))return G(K);let i=!1,r=!1,f=!1,c=!1,w=!1,d=!1,h=!1,m=!1,p=!1,g=!1,C=!1,I=!1,E=!1,N=!1,T=!1,a=0,y=0,o=0,n=[],x=[],W=[],$=null,F=[];for(let u=0;u<s.length;u++){let l=s[u];if(l.startsWith("-")&&l!=="-"){if(l==="-e"&&u+1<s.length){$=s[++u];continue}if(l.startsWith("--include=")){n.push(l.slice(10));continue}if(l.startsWith("--exclude=")){x.push(l.slice(10));continue}if(l.startsWith("--exclude-dir=")){W.push(l.slice(14));continue}if(l.startsWith("--max-count=")){a=parseInt(l.slice(12),10);continue}let P=l.match(/^-m(\d+)$/);if(P){a=parseInt(P[1],10);continue}if(l==="-m"&&u+1<s.length){a=parseInt(s[++u],10);continue}let v=l.match(/^-([ABC])(\d+)$/);if(v){let t=parseInt(v[2],10);v[1]==="A"?o=t:v[1]==="B"?y=t:v[1]==="C"&&(y=t,o=t);continue}if((l==="-A"||l==="-B"||l==="-C")&&u+1<s.length){let t=parseInt(s[++u],10);l==="-A"?o=t:l==="-B"?y=t:(y=t,o=t);continue}let U=l.startsWith("--")?[l]:l.slice(1).split("");for(let t of U)if(t==="i"||t==="--ignore-case")i=!0;else if(t==="n"||t==="--line-number")r=!0;else if(t==="v"||t==="--invert-match")f=!0;else if(t==="c"||t==="--count")c=!0;else if(t==="l"||t==="--files-with-matches")w=!0;else if(t==="L"||t==="--files-without-match")d=!0;else if(t==="r"||t==="R"||t==="--recursive")h=!0;else if(t==="w"||t==="--word-regexp")m=!0;else if(t==="x"||t==="--line-regexp")p=!0;else if(t==="E"||t==="--extended-regexp")g=!0;else if(t==="P"||t==="--perl-regexp")C=!0;else if(t==="F"||t==="--fixed-strings")I=!0;else if(t==="o"||t==="--only-matching")E=!0;else if(t==="h"||t==="--no-filename")N=!0;else if(t==="q"||t==="--quiet"||t==="--silent")T=!0;else{if(t.startsWith("--"))return Q("grep",t);if(t.length===1)return Q("grep",`-${t}`)}}else $===null?$=l:F.push(l)}if($===null)return{stdout:"",stderr:`grep: missing pattern
3
3
  `,exitCode:2};let R;I?R=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):g||C?R=$:R=V($),m&&(R=`\\b${R}\\b`),p&&(R=`^${R}$`);let O;try{O=new RegExp(R,i?"gi":"g")}catch{return{stdout:"",stderr:`grep: invalid regular expression: ${$}
4
4
  `,exitCode:2}}if(F.length===0&&e.stdin){let u=H(e.stdin,O,f,r,c,"",E,y,o,a);return T?{stdout:"",stderr:"",exitCode:u.matched?0:1}:{stdout:u.output,stderr:"",exitCode:u.matched?0:1}}if(F.length===0)return{stdout:"",stderr:`grep: no input files
5
5
  `,exitCode:2};let A="",S="",k=!1,q=!1,L=[];for(let u of F)if(u.includes("*")||u.includes("?")||u.includes("[")){let l=await X(u,e);if(h)for(let P of l){let v=await b(P,e,n,x,W);L.push(...v)}else L.push(...l)}else if(h){let l=await b(u,e,n,x,W);L.push(...l)}else L.push(u);let J=(L.length>1||h)&&!N;for(let u of L){let l=u.split("/").pop()||u;if(!(x.length>0&&!h&&x.some(P=>M(l,P,{stripQuotes:!0})))&&!(n.length>0&&!h&&!n.some(P=>M(l,P,{stripQuotes:!0}))))try{let P=e.fs.resolvePath(e.cwd,u);if((await e.fs.stat(P)).isDirectory){h||(S+=`grep: ${u}: Is a directory
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{a as z}from"./chunk-TA7RUHGQ.js";import{a as w,b as $}from"./chunk-GTNBSMZR.js";import"./chunk-SJXDWN5X.js";import{constants as x,gunzipSync as C,gzipSync as b}from"node:zlib";var I={name:"gzip",summary:"compress or expand files",usage:"gzip [OPTION]... [FILE]...",description:`Compress FILEs (by default, in-place).
2
+ import{a as z}from"./chunk-TA7RUHGQ.js";import{a as w,b as $}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";import{constants as x,gunzipSync as C,gzipSync as b}from"node:zlib";var I={name:"gzip",summary:"compress or expand files",usage:"gzip [OPTION]... [FILE]...",description:`Compress FILEs (by default, in-place).
3
3
 
4
4
  When no FILE is given, or when FILE is -, read from standard input.
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as i,b as r,c as n}from"./chunk-J7BCMQDI.js";import{a as t,b as a}from"./chunk-GTNBSMZR.js";import"./chunk-SJXDWN5X.js";var h={name:"head",summary:"output the first part of files",usage:"head [OPTION]... [FILE]...",options:["-c, --bytes=NUM print the first NUM bytes","-n, --lines=NUM print the first NUM lines (default 10)","-q, --quiet never print headers giving file names","-v, --verbose always print headers giving file names"," --help display this help and exit"]},u={name:"head",async execute(s,o){if(a(s))return t(h);let e=i(s,"head");if(!e.ok)return e.error;let{lines:p,bytes:l}=e.options;return r(o,e.options,"head",d=>n(d,p,l))}};export{u as headCommand};
2
+ import{a as i,b as r,c as n}from"./chunk-J7BCMQDI.js";import{a as t,b as a}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";var h={name:"head",summary:"output the first part of files",usage:"head [OPTION]... [FILE]...",options:["-c, --bytes=NUM print the first NUM bytes","-n, --lines=NUM print the first NUM lines (default 10)","-q, --quiet never print headers giving file names","-v, --verbose always print headers giving file names"," --help display this help and exit"]},u={name:"head",async execute(s,o){if(a(s))return t(h);let e=i(s,"head");if(!e.ok)return e.error;let{lines:p,bytes:l}=e.options;return r(o,e.options,"head",d=>n(d,p,l))}};export{u as headCommand};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./chunk-SJXDWN5X.js";var r={"File operations":["ls","cat","head","tail","wc","touch","mkdir","rm","cp","mv","ln","chmod","stat","readlink"],"Text processing":["grep","sed","awk","sort","uniq","cut","tr","tee","diff"],Search:["find"],"Navigation & paths":["pwd","basename","dirname","tree","du"],"Environment & shell":["echo","printf","env","printenv","export","alias","unalias","history","clear","true","false","bash","sh"],"Data processing":["xargs","jq","base64","date"],Network:["curl","html-to-markdown"]};function l(t){let e=[],n=new Set(t);e.push(`Available commands:
2
+ import"./chunk-KGOUQS5A.js";var r={"File operations":["ls","cat","head","tail","wc","touch","mkdir","rm","cp","mv","ln","chmod","stat","readlink"],"Text processing":["grep","sed","awk","sort","uniq","cut","tr","tee","diff"],Search:["find"],"Navigation & paths":["pwd","basename","dirname","tree","du"],"Environment & shell":["echo","printf","env","printenv","export","alias","unalias","history","clear","true","false","bash","sh"],"Data processing":["xargs","jq","base64","date"],Network:["curl","html-to-markdown"]};function l(t){let e=[],n=new Set(t);e.push(`Available commands:
3
3
  `);let s=[];for(let[o,c]of Object.entries(r)){let a=c.filter(i=>n.has(i));if(a.length>0){e.push(` ${o}:`),e.push(` ${a.join(", ")}
4
4
  `);for(let i of a)n.delete(i)}}for(let o of n)s.push(o);return s.length>0&&(e.push(" Other:"),e.push(` ${s.sort().join(", ")}
5
5
  `)),e.push("Use '<command> --help' for details on a specific command."),`${e.join(`
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{a as i,b as h}from"./chunk-GTNBSMZR.js";import"./chunk-SJXDWN5X.js";var d={name:"history",summary:"display command history",usage:"history [n]",options:["-c clear the history list"," --help display this help and exit"]},l="BASH_HISTORY",m={name:"history",async execute(e,n){if(h(e))return i(d);let a=n.env[l]||"[]",t;try{t=JSON.parse(a)}catch{t=[]}if(e[0]==="-c")return n.env[l]="[]",{stdout:"",stderr:"",exitCode:0};let s=t.length;e[0]&&/^\d+$/.test(e[0])&&(s=Math.min(parseInt(e[0],10),t.length));let c=t.length-s,r="";for(let o=c;o<t.length;o++){let y=(o+1).toString().padStart(5," ");r+=`${y} ${t[o]}
2
+ import{a as i,b as h}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";var d={name:"history",summary:"display command history",usage:"history [n]",options:["-c clear the history list"," --help display this help and exit"]},l="BASH_HISTORY",m={name:"history",async execute(e,n){if(h(e))return i(d);let a=n.env[l]||"[]",t;try{t=JSON.parse(a)}catch{t=[]}if(e[0]==="-c")return n.env[l]="[]",{stdout:"",stderr:"",exitCode:0};let s=t.length;e[0]&&/^\d+$/.test(e[0])&&(s=Math.min(parseInt(e[0],10),t.length));let c=t.length-s,r="";for(let o=c;o<t.length;o++){let y=(o+1).toString().padStart(5," ");r+=`${y} ${t[o]}
3
3
  `}return{stdout:r,stderr:"",exitCode:0}}};export{m as historyCommand};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import"./chunk-SJXDWN5X.js";async function t(e,n){return{stdout:`localhost
2
+ import"./chunk-KGOUQS5A.js";async function t(e,n){return{stdout:`localhost
3
3
  `,stderr:"",exitCode:0}}var o={name:"hostname",execute:t};export{o as hostname};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{a as Fi,b as Bi,c as Xa}from"./chunk-GTNBSMZR.js";import{b as N,c as ul}from"./chunk-SJXDWN5X.js";var Mt=N((bf,Pi)=>{"use strict";Pi.exports=_t;_t.CAPTURING_PHASE=1;_t.AT_TARGET=2;_t.BUBBLING_PHASE=3;function _t(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=_t.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}_t.prototype=Object.create(Object.prototype,{constructor:{value:_t},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,a){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=a)}}})});var Ya=N((Ef,Vi)=>{"use strict";var Ui=Mt();Vi.exports=Ka;function Ka(){Ui.call(this),this.view=null,this.detail=0}Ka.prototype=Object.create(Ui.prototype,{constructor:{value:Ka},initUIEvent:{value:function(e,t,r,a,s){this.initEvent(e,t,r),this.view=a,this.detail=s}}})});var $a=N((_f,Gi)=>{"use strict";var ji=Ya();Gi.exports=Qa;function Qa(){ji.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Qa.prototype=Object.create(ji.prototype,{constructor:{value:Qa},initMouseEvent:{value:function(e,t,r,a,s,o,x,m,h,g,v,ne,se,u,be){switch(this.initEvent(e,t,r,a,s),this.screenX=o,this.screenY=x,this.clientX=m,this.clientY=h,this.ctrlKey=g,this.altKey=v,this.shiftKey=ne,this.metaKey=se,this.button=u,u){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=be}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var Xr=N((vf,zi)=>{"use strict";zi.exports=zr;var xl=1,fl=3,dl=4,hl=5,pl=7,ml=8,gl=9,bl=11,El=12,_l=13,vl=14,Tl=15,yl=17,Nl=18,wl=19,Sl=20,Al=21,Cl=22,Dl=23,kl=24,Ll=25,Ml=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],Rl=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],Wi={INDEX_SIZE_ERR:xl,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:fl,WRONG_DOCUMENT_ERR:dl,INVALID_CHARACTER_ERR:hl,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:pl,NOT_FOUND_ERR:ml,NOT_SUPPORTED_ERR:gl,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:bl,SYNTAX_ERR:El,INVALID_MODIFICATION_ERR:_l,NAMESPACE_ERR:vl,INVALID_ACCESS_ERR:Tl,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:yl,SECURITY_ERR:Nl,NETWORK_ERR:wl,ABORT_ERR:Sl,URL_MISMATCH_ERR:Al,QUOTA_EXCEEDED_ERR:Cl,TIMEOUT_ERR:Dl,INVALID_NODE_TYPE_ERR:kl,DATA_CLONE_ERR:Ll};function zr(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=Rl[e],this.name=Ml[e]}zr.prototype.__proto__=Error.prototype;for(Wr in Wi)Za={value:Wi[Wr]},Object.defineProperty(zr,Wr,Za),Object.defineProperty(zr.prototype,Wr,Za);var Za,Wr});var Kr=N(Xi=>{Xi.isApiWritable=!globalThis.__domino_frozen__});var ee=N(V=>{"use strict";var J=Xr(),ae=J,Il=Kr().isApiWritable;V.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};V.IndexSizeError=function(){throw new J(ae.INDEX_SIZE_ERR)};V.HierarchyRequestError=function(){throw new J(ae.HIERARCHY_REQUEST_ERR)};V.WrongDocumentError=function(){throw new J(ae.WRONG_DOCUMENT_ERR)};V.InvalidCharacterError=function(){throw new J(ae.INVALID_CHARACTER_ERR)};V.NoModificationAllowedError=function(){throw new J(ae.NO_MODIFICATION_ALLOWED_ERR)};V.NotFoundError=function(){throw new J(ae.NOT_FOUND_ERR)};V.NotSupportedError=function(){throw new J(ae.NOT_SUPPORTED_ERR)};V.InvalidStateError=function(){throw new J(ae.INVALID_STATE_ERR)};V.SyntaxError=function(){throw new J(ae.SYNTAX_ERR)};V.InvalidModificationError=function(){throw new J(ae.INVALID_MODIFICATION_ERR)};V.NamespaceError=function(){throw new J(ae.NAMESPACE_ERR)};V.InvalidAccessError=function(){throw new J(ae.INVALID_ACCESS_ERR)};V.TypeMismatchError=function(){throw new J(ae.TYPE_MISMATCH_ERR)};V.SecurityError=function(){throw new J(ae.SECURITY_ERR)};V.NetworkError=function(){throw new J(ae.NETWORK_ERR)};V.AbortError=function(){throw new J(ae.ABORT_ERR)};V.UrlMismatchError=function(){throw new J(ae.URL_MISMATCH_ERR)};V.QuotaExceededError=function(){throw new J(ae.QUOTA_EXCEEDED_ERR)};V.TimeoutError=function(){throw new J(ae.TIMEOUT_ERR)};V.InvalidNodeTypeError=function(){throw new J(ae.INVALID_NODE_TYPE_ERR)};V.DataCloneError=function(){throw new J(ae.DATA_CLONE_ERR)};V.nyi=function(){throw new Error("NotYetImplemented")};V.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};V.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
2
+ import{a as Fi,b as Bi,c as Xa}from"./chunk-GTNBSMZR.js";import{c as N,e as ul}from"./chunk-KGOUQS5A.js";var Mt=N((bf,Pi)=>{"use strict";Pi.exports=_t;_t.CAPTURING_PHASE=1;_t.AT_TARGET=2;_t.BUBBLING_PHASE=3;function _t(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=_t.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}_t.prototype=Object.create(Object.prototype,{constructor:{value:_t},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,a){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=a)}}})});var Ya=N((Ef,Vi)=>{"use strict";var Ui=Mt();Vi.exports=Ka;function Ka(){Ui.call(this),this.view=null,this.detail=0}Ka.prototype=Object.create(Ui.prototype,{constructor:{value:Ka},initUIEvent:{value:function(e,t,r,a,s){this.initEvent(e,t,r),this.view=a,this.detail=s}}})});var $a=N((_f,Gi)=>{"use strict";var ji=Ya();Gi.exports=Qa;function Qa(){ji.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Qa.prototype=Object.create(ji.prototype,{constructor:{value:Qa},initMouseEvent:{value:function(e,t,r,a,s,o,x,m,h,g,v,ne,se,u,be){switch(this.initEvent(e,t,r,a,s),this.screenX=o,this.screenY=x,this.clientX=m,this.clientY=h,this.ctrlKey=g,this.altKey=v,this.shiftKey=ne,this.metaKey=se,this.button=u,u){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=be}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var Xr=N((vf,zi)=>{"use strict";zi.exports=zr;var xl=1,fl=3,dl=4,hl=5,pl=7,ml=8,gl=9,bl=11,El=12,_l=13,vl=14,Tl=15,yl=17,Nl=18,wl=19,Sl=20,Al=21,Cl=22,Dl=23,kl=24,Ll=25,Ml=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],Rl=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],Wi={INDEX_SIZE_ERR:xl,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:fl,WRONG_DOCUMENT_ERR:dl,INVALID_CHARACTER_ERR:hl,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:pl,NOT_FOUND_ERR:ml,NOT_SUPPORTED_ERR:gl,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:bl,SYNTAX_ERR:El,INVALID_MODIFICATION_ERR:_l,NAMESPACE_ERR:vl,INVALID_ACCESS_ERR:Tl,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:yl,SECURITY_ERR:Nl,NETWORK_ERR:wl,ABORT_ERR:Sl,URL_MISMATCH_ERR:Al,QUOTA_EXCEEDED_ERR:Cl,TIMEOUT_ERR:Dl,INVALID_NODE_TYPE_ERR:kl,DATA_CLONE_ERR:Ll};function zr(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=Rl[e],this.name=Ml[e]}zr.prototype.__proto__=Error.prototype;for(Wr in Wi)Za={value:Wi[Wr]},Object.defineProperty(zr,Wr,Za),Object.defineProperty(zr.prototype,Wr,Za);var Za,Wr});var Kr=N(Xi=>{Xi.isApiWritable=!globalThis.__domino_frozen__});var ee=N(V=>{"use strict";var J=Xr(),ae=J,Il=Kr().isApiWritable;V.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};V.IndexSizeError=function(){throw new J(ae.INDEX_SIZE_ERR)};V.HierarchyRequestError=function(){throw new J(ae.HIERARCHY_REQUEST_ERR)};V.WrongDocumentError=function(){throw new J(ae.WRONG_DOCUMENT_ERR)};V.InvalidCharacterError=function(){throw new J(ae.INVALID_CHARACTER_ERR)};V.NoModificationAllowedError=function(){throw new J(ae.NO_MODIFICATION_ALLOWED_ERR)};V.NotFoundError=function(){throw new J(ae.NOT_FOUND_ERR)};V.NotSupportedError=function(){throw new J(ae.NOT_SUPPORTED_ERR)};V.InvalidStateError=function(){throw new J(ae.INVALID_STATE_ERR)};V.SyntaxError=function(){throw new J(ae.SYNTAX_ERR)};V.InvalidModificationError=function(){throw new J(ae.INVALID_MODIFICATION_ERR)};V.NamespaceError=function(){throw new J(ae.NAMESPACE_ERR)};V.InvalidAccessError=function(){throw new J(ae.INVALID_ACCESS_ERR)};V.TypeMismatchError=function(){throw new J(ae.TYPE_MISMATCH_ERR)};V.SecurityError=function(){throw new J(ae.SECURITY_ERR)};V.NetworkError=function(){throw new J(ae.NETWORK_ERR)};V.AbortError=function(){throw new J(ae.ABORT_ERR)};V.UrlMismatchError=function(){throw new J(ae.URL_MISMATCH_ERR)};V.QuotaExceededError=function(){throw new J(ae.QUOTA_EXCEEDED_ERR)};V.TimeoutError=function(){throw new J(ae.TIMEOUT_ERR)};V.InvalidNodeTypeError=function(){throw new J(ae.INVALID_NODE_TYPE_ERR)};V.DataCloneError=function(){throw new J(ae.DATA_CLONE_ERR)};V.nyi=function(){throw new Error("NotYetImplemented")};V.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};V.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
3
3
  `+new Error().stack)};V.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:Il})};V.merge=function(e,t){for(var r in t)e[r]=t[r]};V.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};V.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};V.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var Ja=N((Nf,Yi)=>{"use strict";var vt=Mt(),Ol=$a(),ql=ee();Yi.exports=Ki;function Ki(){}Ki.prototype={addEventListener:function(t,r,a){if(r){a===void 0&&(a=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var s=this._listeners[t],o=0,x=s.length;o<x;o++){var m=s[o];if(m.listener===r&&m.capture===a)return}var h={listener:r,capture:a};typeof r=="function"&&(h.f=r),s.push(h)}},removeEventListener:function(t,r,a){if(a===void 0&&(a=!1),this._listeners){var s=this._listeners[t];if(s)for(var o=0,x=s.length;o<x;o++){var m=s[o];if(m.listener===r&&m.capture===a){s.length===1?this._listeners[t]=void 0:s.splice(o,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function a(g,v){var ne=v.type,se=v.eventPhase;if(v.currentTarget=g,se!==vt.CAPTURING_PHASE&&g._handlers&&g._handlers[ne]){var u=g._handlers[ne],be;if(typeof u=="function")be=u.call(v.currentTarget,v);else{var X=u.handleEvent;if(typeof X!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");be=X.call(u,v)}v.type==="mouseover"?be===!0&&v.preventDefault():be===!1&&v.preventDefault()}var O=g._listeners&&g._listeners[ne];if(O){O=O.slice();for(var Ye=0,H=O.length;Ye<H;Ye++){if(v._immediatePropagationStopped)return;var ie=O[Ye];if(!(se===vt.CAPTURING_PHASE&&!ie.capture||se===vt.BUBBLING_PHASE&&ie.capture))if(ie.f)ie.f.call(v.currentTarget,v);else{var le=ie.listener.handleEvent;if(typeof le!="function")throw new TypeError("handleEvent property of event listener object is not a function.");le.call(ie.listener,v)}}}}(!t._initialized||t._dispatching)&&ql.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var s=[],o=this.parentNode;o;o=o.parentNode)s.push(o);t.eventPhase=vt.CAPTURING_PHASE;for(var x=s.length-1;x>=0&&(a(s[x],t),!t._propagationStopped);x--);if(t._propagationStopped||(t.eventPhase=vt.AT_TARGET,a(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=vt.BUBBLING_PHASE;for(var m=0,h=s.length;m<h&&(a(s[m],t),!t._propagationStopped);m++);}if(t._dispatching=!1,t.eventPhase=vt.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof Ol)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var a=this._dispatchEvent(r,!0);t&&(a?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var en=N((wf,Qi)=>{"use strict";var ze=ee(),Se=Qi.exports={valid:function(e){return ze.assert(e,"list falsy"),ze.assert(e._previousSibling,"previous falsy"),ze.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){ze.assert(Se.valid(e)&&Se.valid(t));var r=e,a=e._previousSibling,s=t,o=t._previousSibling;r._previousSibling=o,a._nextSibling=s,o._nextSibling=r,s._previousSibling=a,ze.assert(Se.valid(e)&&Se.valid(t))},replace:function(e,t){ze.assert(Se.valid(e)&&(t===null||Se.valid(t))),t!==null&&Se.insertBefore(t,e),Se.remove(e),ze.assert(Se.valid(e)&&(t===null||Se.valid(t)))},remove:function(e){ze.assert(Se.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,ze.assert(Se.valid(e))}}}});var tn=N((Sf,ns)=>{"use strict";ns.exports={serializeOne:jl,\u0275escapeMatchingClosingTag:ts,\u0275escapeClosingCommentTag:rs,\u0275escapeProcessingInstructionContent:as};var es=ee(),Tt=es.NAMESPACE,$i={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},Hl={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Fl={},Zi=/[&<>\u00A0]/g,Ji=/[&"<>\u00A0]/g;function Bl(e){return Zi.test(e)?e.replace(Zi,t=>{switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case"\xA0":return"&nbsp;"}}):e}function Pl(e){return Ji.test(e)?e.replace(Ji,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"\xA0":return"&nbsp;"}}):e}function Ul(e){var t=e.namespaceURI;return t?t===Tt.XML?"xml:"+e.localName:t===Tt.XLINK?"xlink:"+e.localName:t===Tt.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function ts(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let a=[...e],s=e.matchAll(new RegExp(r,"ig"));for(let o of s)a[o.index]="&lt;";return a.join("")}var Vl=/--!?>/;function rs(e){return Vl.test(e)?e.replace(/(--\!?)>/g,"$1&gt;"):e}function as(e){return e.includes(">")?e.replaceAll(">","&gt;"):e}function jl(e,t){var r="";switch(e.nodeType){case 1:var a=e.namespaceURI,s=a===Tt.HTML,o=s||a===Tt.SVG||a===Tt.MATHML?e.localName:e.tagName;r+="<"+o;for(var x=0,m=e._numattrs;x<m;x++){var h=e._attr(x);r+=" "+Ul(h),h.value!==void 0&&(r+='="'+Pl(h.value)+'"')}if(r+=">",!(s&&Hl[o])){var g=e.serialize();$i[o.toUpperCase()]&&(g=ts(g,o)),s&&Fl[o]&&g.charAt(0)===`
4
4
  `&&(r+=`
5
5
  `),r+=g,r+="</"+o+">"}break;case 3:case 4:var v;t.nodeType===1&&t.namespaceURI===Tt.HTML?v=t.tagName:v="",$i[v]||v==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=Bl(e.data);break;case 8:r+="<!--"+rs(e.data)+"-->";break;case 7:let ne=as(e.data);r+="<?"+e.target+" "+ne+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:es.InvalidStateError()}return r}});var xe=N((Af,us)=>{"use strict";us.exports=K;var ls=Ja(),Yr=en(),is=tn(),j=ee();function K(){ls.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var _e=K.ELEMENT_NODE=1,rn=K.ATTRIBUTE_NODE=2,Qr=K.TEXT_NODE=3,Gl=K.CDATA_SECTION_NODE=4,Wl=K.ENTITY_REFERENCE_NODE=5,an=K.ENTITY_NODE=6,ss=K.PROCESSING_INSTRUCTION_NODE=7,os=K.COMMENT_NODE=8,nr=K.DOCUMENT_NODE=9,Ae=K.DOCUMENT_TYPE_NODE=10,lt=K.DOCUMENT_FRAGMENT_NODE=11,nn=K.NOTATION_NODE=12,sn=K.DOCUMENT_POSITION_DISCONNECTED=1,on=K.DOCUMENT_POSITION_PRECEDING=2,cn=K.DOCUMENT_POSITION_FOLLOWING=4,cs=K.DOCUMENT_POSITION_CONTAINS=8,ln=K.DOCUMENT_POSITION_CONTAINED_BY=16,un=K.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;K.prototype=Object.create(ls.prototype,{baseURI:{get:j.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===_e?this.parentNode:null}},hasChildNodes:{value:j.shouldOverride},firstChild:{get:j.shouldOverride},lastChild:{get:j.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===K.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===K.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,a){var s=this,o,x;if(!t.nodeType)throw new TypeError("not a node");switch(s.nodeType){case nr:case lt:case _e:break;default:j.HierarchyRequestError()}switch(t.isAncestor(s)&&j.HierarchyRequestError(),(r!==null||!a)&&r.parentNode!==s&&j.NotFoundError(),t.nodeType){case lt:case Ae:case _e:case Qr:case ss:case os:break;default:j.HierarchyRequestError()}if(s.nodeType===nr)switch(t.nodeType){case Qr:j.HierarchyRequestError();break;case lt:switch(t._countChildrenOfType(Qr)>0&&j.HierarchyRequestError(),t._countChildrenOfType(_e)){case 0:break;case 1:if(r!==null)for(a&&r.nodeType===Ae&&j.HierarchyRequestError(),x=r.nextSibling;x!==null;x=x.nextSibling)x.nodeType===Ae&&j.HierarchyRequestError();o=s._countChildrenOfType(_e),a?o>0&&j.HierarchyRequestError():(o>1||o===1&&r.nodeType!==_e)&&j.HierarchyRequestError();break;default:j.HierarchyRequestError()}break;case _e:if(r!==null)for(a&&r.nodeType===Ae&&j.HierarchyRequestError(),x=r.nextSibling;x!==null;x=x.nextSibling)x.nodeType===Ae&&j.HierarchyRequestError();o=s._countChildrenOfType(_e),a?o>0&&j.HierarchyRequestError():(o>1||o===1&&r.nodeType!==_e)&&j.HierarchyRequestError();break;case Ae:if(r===null)s._countChildrenOfType(_e)&&j.HierarchyRequestError();else for(x=s.firstChild;x!==null&&x!==r;x=x.nextSibling)x.nodeType===_e&&j.HierarchyRequestError();o=s._countChildrenOfType(Ae),a?o>0&&j.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Ae)&&j.HierarchyRequestError();break}else t.nodeType===Ae&&j.HierarchyRequestError()}},insertBefore:{value:function(t,r){var a=this;a._ensureInsertValid(t,r,!0);var s=r;return s===t&&(s=t.nextSibling),a.doc.adoptNode(t),t._insertOrReplace(a,s,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&j.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var a=this;return a._ensureInsertValid(t,r,!1),t.doc!==a.doc&&a.doc.adoptNode(t),t._insertOrReplace(a,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&ln)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return sn+un;for(var r=[],a=[],s=this;s!==null;s=s.parentNode)r.push(s);for(s=t;s!==null;s=s.parentNode)a.push(s);if(r.reverse(),a.reverse(),r[0]!==a[0])return sn+un;s=Math.min(r.length,a.length);for(var o=1;o<s;o++)if(r[o]!==a[o])return r[o].index<a[o].index?cn:on;return r.length<a.length?cn+ln:on+cs}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,a=t.firstChild;r&&a;r=r.nextSibling,a=a.nextSibling)if(!r.isEqualNode(a))return!1;return r===null&&a===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case _e:return this._lookupNamespacePrefix(t,this);case nr:return r=this.documentElement,r?r.lookupPrefix(t):null;case an:case nn:case lt:case Ae:return null;case rn:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case _e:return j.shouldOverride();case nr:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case an:case nn:case Ae:case lt:return null;case rn:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;j.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&j.WrongDocumentError()}},removeChildren:{value:j.shouldOverride},_insertOrReplace:{value:function(t,r,a){var s=this,o,x;if(s.nodeType===lt&&s.rooted&&j.HierarchyRequestError(),t._childNodes&&(o=r===null?t._childNodes.length:r.index,s.parentNode===t)){var m=s.index;m<o&&o--}a&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var h=r;h===null&&(h=t.firstChild);var g=s.rooted&&t.rooted;if(s.nodeType===lt){for(var v=[0,a?1:0],ne,se=s.firstChild;se!==null;se=ne)ne=se.nextSibling,v.push(se),se.parentNode=t;var u=v.length;if(a?Yr.replace(h,u>2?v[2]:null):u>2&&h!==null&&Yr.insertBefore(v[2],h),t._childNodes)for(v[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,v),x=2;x<u;x++)v[x]._index=v[0]+(x-2);else t._firstChild===r&&(u>2?t._firstChild=v[2]:a&&(t._firstChild=null));if(s._childNodes?s._childNodes.length=0:s._firstChild=null,t.rooted)for(t.modify(),x=2;x<u;x++)t.doc.mutateInsert(v[x])}else{if(r===s)return;g?s._remove():s.parentNode&&s.remove(),s.parentNode=t,a?(Yr.replace(h,s),t._childNodes?(s._index=o,t._childNodes[o]=s):t._firstChild===r&&(t._firstChild=s)):(h!==null&&Yr.insertBefore(s,h),t._childNodes?(s._index=o,t._childNodes.splice(o,0,s)):t._firstChild===r&&(t._firstChild=s)),g?(t.modify(),t.doc.mutateMove(s)):t.rooted&&(t.modify(),t.doc.mutateInsert(s))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===K.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===K.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=is.serializeOne(t,this);return e}},outerHTML:{get:function(){return is.serializeOne(this,{nodeType:0})},set:j.nyi},ELEMENT_NODE:{value:_e},ATTRIBUTE_NODE:{value:rn},TEXT_NODE:{value:Qr},CDATA_SECTION_NODE:{value:Gl},ENTITY_REFERENCE_NODE:{value:Wl},ENTITY_NODE:{value:an},PROCESSING_INSTRUCTION_NODE:{value:ss},COMMENT_NODE:{value:os},DOCUMENT_NODE:{value:nr},DOCUMENT_TYPE_NODE:{value:Ae},DOCUMENT_FRAGMENT_NODE:{value:lt},NOTATION_NODE:{value:nn},DOCUMENT_POSITION_DISCONNECTED:{value:sn},DOCUMENT_POSITION_PRECEDING:{value:on},DOCUMENT_POSITION_FOLLOWING:{value:cn},DOCUMENT_POSITION_CONTAINS:{value:cs},DOCUMENT_POSITION_CONTAINED_BY:{value:ln},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:un}})});var fs=N((Df,xs)=>{"use strict";xs.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var hs=N((kf,ds)=>{"use strict";function zl(e){return this[e]||null}function Xl(e){return e||(e=[]),e.item=zl,e}ds.exports=Xl});var yt=N((Lf,ps)=>{"use strict";var xn;try{xn=fs()}catch{xn=hs()}ps.exports=xn});var $r=N((Mf,bs)=>{"use strict";bs.exports=gs;var ms=xe(),Kl=yt();function gs(){ms.call(this),this._firstChild=this._childNodes=null}gs.prototype=Object.create(ms.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new Kl;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,a;r!==null;)a=r,r=a.nextSibling,t&&t.mutateRemove(a),a.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var Zr=N(hn=>{"use strict";hn.isValidName=tu;hn.isValidQName=ru;var Yl=/^[_:A-Za-z][-.:\w]+$/,Ql=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,ir="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",sr="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Nt="["+ir+"]["+sr+"]*",fn=ir+":",dn=sr+":",$l=new RegExp("^["+fn+"]["+dn+"]*$"),Zl=new RegExp("^("+Nt+"|"+Nt+":"+Nt+")$"),Es=/[\uD800-\uDB7F\uDC00-\uDFFF]/,_s=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,vs=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;ir+="\uD800-\u{EFC00}-\uDFFF";sr+="\uD800-\u{EFC00}-\uDFFF";Nt="["+ir+"]["+sr+"]*";fn=ir+":";dn=sr+":";var Jl=new RegExp("^["+fn+"]["+dn+"]*$"),eu=new RegExp("^("+Nt+"|"+Nt+":"+Nt+")$");function tu(e){if(Yl.test(e)||$l.test(e))return!0;if(!Es.test(e)||!Jl.test(e))return!1;var t=e.match(_s),r=e.match(vs);return r!==null&&2*r.length===t.length}function ru(e){if(Ql.test(e)||Zl.test(e))return!0;if(!Es.test(e)||!eu.test(e))return!1;var t=e.match(_s),r=e.match(vs);return r!==null&&2*r.length===t.length}});var mn=N(pn=>{"use strict";var Ts=ee();pn.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(s){t[s.value||s]=s.alias||s});var r=e.missing;r===void 0&&(r=null);var a=e.invalid;return a===void 0&&(a=r),{get:function(){var s=this._getattr(e.name);return s===null?r:(s=t[s.toLowerCase()],s!==void 0?s:a!==null?a:s)},set:function(s){this._setattr(e.name,s)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(s){s?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return au(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(s){e.treatNullAsEmptyString&&s===null&&(s=""),this._setattr(e.name,s)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function au(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){Ts.assert(!1,typeof e.default)};var r=e.type==="unsigned long",a=e.type==="long",s=e.type==="limited unsigned long with fallback",o=e.min,x=e.max,m=e.setmin;return o===void 0&&(r&&(o=0),a&&(o=-2147483648),s&&(o=1)),x===void 0&&(r||a||s)&&(x=2147483647),{get:function(){var h=this._getattr(e.name),g=e.float?parseFloat(h):parseInt(h,10);if(h===null||!isFinite(g)||o!==void 0&&g<o||x!==void 0&&g>x)return t.call(this);if(r||a||s){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(h))return t.call(this);g=g|0}return g},set:function(h){e.float||(h=Math.floor(h)),m!==void 0&&h<m&&Ts.IndexSizeError(e.name+" set to "+h),r?h=h<0||h>2147483647?t.call(this):h|0:s?h=h<1||h>2147483647?t.call(this):h|0:a&&(h=h<-2147483648||h>2147483647?t.call(this):h|0),this._setattr(e.name,String(h))}}}pn.registerChangeHandler=function(e,t,r){var a=e.prototype;Object.prototype.hasOwnProperty.call(a,"_attributeChangeHandlers")||(a._attributeChangeHandlers=Object.create(a._attributeChangeHandlers||null)),a._attributeChangeHandlers[t]=r}});var ws=N((Of,Ns)=>{"use strict";Ns.exports=ys;var nu=xe();function ys(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}ys.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===nu.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var bn=N((qf,Cs)=>{"use strict";var gn=ee();Cs.exports=As;function As(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(As.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=Rt(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=Rt(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=Rt(this),t=0,r=arguments.length;t<r;t++){var a=or(arguments[t]);e.indexOf(a)<0&&e.push(a)}this._update(e)}},remove:{value:function(){for(var e=Rt(this),t=0,r=arguments.length;t<r;t++){var a=or(arguments[t]),s=e.indexOf(a);s>-1&&e.splice(s,1)}this._update(e)}},toggle:{value:function(t,r){return t=or(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&gn.SyntaxError(),t=or(t),r=or(r);var a=Rt(this),s=a.indexOf(t);if(s<0)return!1;var o=a.indexOf(r);return o<0?a[s]=r:s<o?(a[s]=r,a.splice(o,1)):a.splice(s,1),this._update(a),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(Ss(this,e),this._setString(e.join(" ").trim())):Ss(this,Rt(this)),this._lastStringValue=this._getString()}}});function Ss(e,t){var r=e._length,a;for(e._length=t.length,a=0;a<t.length;a++)e[a]=t[a];for(;a<r;a++)e[a]=void 0}function or(e){return e=String(e),e===""&&gn.SyntaxError(),/[ \t\r\n\f]/.test(e)&&gn.InvalidCharacterError(),e}function iu(e){for(var t=e._length,r=Array(t),a=0;a<t;a++)r[a]=e[a];return r}function Rt(e){var t=e._getString();if(t===e._lastStringValue)return iu(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var a=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(s){var o="$"+s;return a[o]?!1:(a[o]=!0,!0)})}});var ra=N((qt,Is)=>{"use strict";var Jr=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),su=function(e,t){return e.compareDocumentPosition(t)},ou=function(e,t){return su(e,t)&2?1:-1},ta=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},Ot=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},cu=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},lu=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},It=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},Ds=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(C.str_escape,function(r){var a=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!a)return r.slice(1);if(a[2])return"";var s=parseInt(a[1],16);return String.fromCodePoint?String.fromCodePoint(s):String.fromCharCode(s)})):C.ident.test(e)?ut(e):e},ut=function(e){return e.replace(C.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var a=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(a):String.fromCharCode(a)})},uu=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),Ls=function(e,t){var r=C.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},ve=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},ks=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},xu=function(e,t){var r=e.replace(/\s+/g,""),a;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),a=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:a[1]==="-"?-(a[2]||1):+(a[2]||1),offset:a[4]?a[3]==="-"?-a[4]:+a[4]:0}},En=function(e,t,r){var a=xu(e),s=a.group,o=a.offset,x=r?lu:cu,m=r?Ot:ta;return function(h){if(It(h))for(var g=x(h.parentNode),v=0;g;){if(t(g,h)&&v++,g===h)return v-=o,s&&v?v%s===0&&v<0==s<0:!v;g=m(g)}}},oe={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,a){return t=Ms[t],function(s){var o;switch(e){case"for":o=s.htmlFor;break;case"class":o=s.className,o===""&&s.getAttribute("class")==null&&(o=null);break;case"href":case"src":o=s.getAttribute(e,2);break;case"title":o=s.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(s.getAttribute){o=s.getAttribute(e);break}default:if(s.hasAttribute&&!s.hasAttribute(e))break;o=s[e]!=null?s[e]:s.getAttribute&&s.getAttribute(e);break}if(o!=null)return o=o+"",a&&(o=o.toLowerCase(),r=r.toLowerCase()),t(o,r)}},":first-child":function(e){return!Ot(e)&&It(e)},":last-child":function(e){return!ta(e)&&It(e)},":only-child":function(e){return!Ot(e)&&!ta(e)&&It(e)},":nth-child":function(e,t){return En(e,function(){return!0},t)},":nth-last-child":function(e){return oe[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=vn(e);return function(r){return!t(r)}},":first-of-type":function(e){if(It(e)){for(var t=e.nodeName;e=Ot(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(It(e)){for(var t=e.nodeName;e=ta(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return oe[":first-of-type"](e)&&oe[":last-of-type"](e)},":nth-of-type":function(e,t){return En(e,function(r,a){return r.nodeName===a.nodeName},t)},":nth-last-of-type":function(e){return oe[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!oe[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===Jr.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return vn(e)},":matches":function(e){return oe[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),a=r.shift(),s=vn(r.join(","));return En(a,s,t)},":nth-last-match":function(e){return oe[":nth-match"](e,!0)},":links-here":function(e){return e+""==Jr.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===Jr.location.host;var t=+e+1;return function(r){if(r.href){var a=Jr.location+"",s=r+"";return ks(a,t)===ks(s,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!oe[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!oe[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,a=e.nodeName.toLowerCase();return a=a!=="input"&&a!=="textarea",(a||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!oe[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return Rs(e,t).length>0}}},Ms={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,a,s,o;for(a=0;;a=r+1){if(r=e.indexOf(t,a),r===-1)return!1;if(s=e[r-1],o=e[r+t.length],(!s||s===" ")&&(!o||o===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),a;if(r===0)return a=e[r+t.length],a==="-"||!a},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},cr={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=Ot(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=Ot(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function a(s){for(var o=s.ownerDocument,x=o.getElementsByTagName("*"),m=x.length;m--;)if(r=x[m],a.test(s))return r=null,!0;r=null}return a.combinator=function(s){if(!(!r||!r.getAttribute)){var o=r.getAttribute(t)||"";if(o[0]==="#"&&(o=o.substring(1)),o===s.id&&e(r))return r}},a}},C={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};C.cssid=ve(C.cssid,"nonascii",C.nonascii);C.cssid=ve(C.cssid,"escape",C.escape);C.qname=ve(C.qname,"cssid",C.cssid);C.simple=ve(C.simple,"cssid",C.cssid);C.ref=ve(C.ref,"cssid",C.cssid);C.attr=ve(C.attr,"cssid",C.cssid);C.pseudo=ve(C.pseudo,"cssid",C.cssid);C.inside=ve(C.inside,`[^"'>]*`,C.inside);C.attr=ve(C.attr,"inside",Ls("\\[","\\]"));C.pseudo=ve(C.pseudo,"inside",Ls("\\(","\\)"));C.simple=ve(C.simple,"pseudo",C.pseudo);C.simple=ve(C.simple,"attr",C.attr);C.ident=ve(C.ident,"cssid",C.cssid);C.str_escape=ve(C.str_escape,"escape",C.escape);var lr=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,a=[],s=[],o,x,m,h,g;t;){if(m=C.qname.exec(t))t=t.substring(m[0].length),x=ut(m[1]),s.push(ea(x,!0));else if(m=C.simple.exec(t))t=t.substring(m[0].length),x="*",s.push(ea(x,!0)),s.push(ea(m));else throw new SyntaxError("Invalid selector.");for(;m=C.simple.exec(t);)t=t.substring(m[0].length),s.push(ea(m));if(t[0]==="!"&&(t=t.substring(1),o=du(),o.qname=x,s.push(o.simple)),m=C.ref.exec(t)){t=t.substring(m[0].length),g=cr.ref(_n(s),ut(m[1])),a.push(g.combinator),s=[];continue}if(m=C.combinator.exec(t)){if(t=t.substring(m[0].length),h=m[1]||m[2]||m[3],h===","){a.push(cr.noop(_n(s)));break}}else h="noop";if(!cr[h])throw new SyntaxError("Bad combinator.");a.push(cr[h](_n(s))),s=[]}return r=fu(a),r.qname=x,r.sel=t,o&&(o.lname=r.qname,o.test=r,o.qname=o.qname,o.sel=r.sel,r=o),g&&(g.test=r,g.qname=r.qname,g.sel=r.sel,r=g),r},ea=function(e,t){if(t)return e==="*"?oe["*"]:oe.type(e);if(e[1])return e[1][0]==="."?oe.attr("class","~=",ut(e[1].substring(1)),!1):oe.attr("id","=",ut(e[1].substring(1)),!1);if(e[2])return e[3]?oe[ut(e[2])](Ds(e[3])):oe[ut(e[2])];if(e[4]){var r=e[6],a=/["'\s]\s*I$/i.test(r);return a&&(r=r.replace(/\s*I$/i,"")),oe.attr(ut(e[4]),e[5]||"-",Ds(r),a)}throw new SyntaxError("Unknown Selector.")},_n=function(e){var t=e.length,r;return t<2?e[0]:function(a){if(a){for(r=0;r<t;r++)if(!e[r](a))return;return!0}}},fu=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},du=function(){var e;function t(r){for(var a=r.ownerDocument,s=a.getElementsByTagName(t.lname),o=s.length;o--;)if(t.test(s[o])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},vn=function(e){for(var t=lr(e),r=[t];t.sel;)t=lr(t.sel),r.push(t);return r.length<2?t:function(a){for(var s=r.length,o=0;o<s;o++)if(r[o](a))return!0}},Rs=function(e,t){for(var r=[],a=lr(e),s=t.getElementsByTagName(a.qname),o=0,x;x=s[o++];)a(x)&&r.push(x);if(a.sel){for(;a.sel;)for(a=lr(a.sel),s=t.getElementsByTagName(a.qname),o=0;x=s[o++];)a(x)&&uu.call(r,x)===-1&&r.push(x);r.sort(ou)}return r};Is.exports=qt=function(e,t){var r,a;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return a=t.doc.getElementById(r),a?[a]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return Rs(e,t)};qt.selectors=oe;qt.operators=Ms;qt.combinators=cr;qt.matches=function(e,t){var r={sel:t};do if(r=lr(r.sel),r(e))return!0;while(r.sel);return!1}});var aa=N((Hf,Os)=>{"use strict";var hu=xe(),pu=en(),Tn=function(e,t){for(var r=e.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a],o=s instanceof hu;r.appendChild(o?s:e.createTextNode(String(s)))}return r},mu={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,a=this.nextSibling;if(r!==null){for(;a&&t.some(function(o){return o===a});)a=a.nextSibling;var s=Tn(this.doc,t);r.insertBefore(s,a)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,a=this.previousSibling;if(r!==null){for(;a&&t.some(function(x){return x===a});)a=a.previousSibling;var s=Tn(this.doc,t),o=a?a.nextSibling:r.firstChild;r.insertBefore(s,o)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),pu.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,a=this.nextSibling;if(r!==null){for(;a&&t.some(function(o){return o===a});)a=a.nextSibling;var s=Tn(this.doc,t);this.parentNode===r?r.replaceChild(s,this):r.insertBefore(s,a)}}}};Os.exports=mu});var yn=N((Ff,Hs)=>{"use strict";var qs=xe(),gu={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===qs.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===qs.ELEMENT_NODE)return e}return null}}};Hs.exports=gu});var Nn=N((Bf,Bs)=>{"use strict";Bs.exports=Fs;var Ht=ee();function Fs(e){this.element=e}Object.defineProperties(Fs.prototype,{length:{get:Ht.shouldOverride},item:{value:Ht.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Ht.nyi},setNamedItemNS:{value:Ht.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Ht.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var a=this.element.getAttributeNodeNS(t,r);if(a)return this.element.removeAttributeNS(t,r),a;Ht.NotFoundError()}}})});var Bt=N((Pf,Gs)=>{"use strict";Gs.exports=xt;var wn=Zr(),Q=ee(),He=Q.NAMESPACE,ia=mn(),ke=xe(),Sn=yt(),bu=tn(),na=ws(),Ft=Xr(),Eu=bn(),An=ra(),Us=$r(),_u=aa(),vu=yn(),Vs=Nn(),Ps=Object.create(null);function xt(e,t,r,a){Us.call(this),this.nodeType=ke.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=a,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function Cn(e,t){if(e.nodeType===ke.TEXT_NODE)t.push(e._data);else for(var r=0,a=e.childNodes.length;r<a;r++)Cn(e.childNodes[r],t)}xt.prototype=Object.create(Us.prototype,{isHTML:{get:function(){return this.namespaceURI===He.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=Ps[t];r||(Ps[t]=r=Q.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return Cn(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return Cn(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:Q.nyi},outerHTML:{get:function(){return bu.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===ke.DOCUMENT_NODE&&Q.NoModificationAllowedError(),r.nodeType===ke.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var a=t.implementation.mozHTMLParser(t._address,r);a.parse(e===null?"":String(e),!0),this.replaceWith(a._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var a=!1;switch(t){case"beforebegin":a=!0;case"afterend":var s=this.parentNode;return s===null?null:s.insertBefore(r,a?this:this.nextSibling);case"afterbegin":a=!0;case"beforeend":return this.insertBefore(r,a?this.firstChild:null);default:return Q.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==ke.ELEMENT_NODE)throw new TypeError("not an element");return t=Q.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var a=this.ownerDocument.createTextNode(r);t=Q.toASCIILowerCase(String(t)),this._insertAdjacent(t,a)}},insertAdjacentHTML:{value:function(t,r){t=Q.toASCIILowerCase(String(t)),r=String(r);var a;switch(t){case"beforebegin":case"afterend":a=this.parentNode,(a===null||a.nodeType===ke.DOCUMENT_NODE)&&Q.NoModificationAllowedError();break;case"afterbegin":case"beforeend":a=this;break;default:Q.SyntaxError()}(!(a instanceof xt)||a.ownerDocument.isHTML&&a.localName==="html"&&a.namespaceURI===He.HTML)&&(a=a.ownerDocument.createElementNS(He.HTML,"body"));var s=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,a);s.parse(r,!0),this._insertAdjacent(t,s._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new js(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new kn(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===ke.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===ke.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=Tu(t):r=Dn(t),new na(this,r)):new Sn}},getElementsByTagNameNS:{value:function(t,r){var a;return t==="*"&&r==="*"?a=function(){return!0}:t==="*"?a=Dn(r):r==="*"?a=yu(t):a=Nu(t,r),new na(this,a)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new Sn;return r}return t=t.split(/[ \t\r\n\f]+/),new na(this,wu(t))}},getElementsByName:{value:function(t){return new na(this,Su(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==He.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,a=this._attrKeys.length;r<a;r++){var s=this._attrKeys[r],o=this._attrsByLName[s],x=o.cloneNode();x._setOwnerElement(t),t._attrsByLName[s]=x,t._addQName(x)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,a=this._numattrs;r<a;r++){var s=this._attr(r);if(!t.hasAttributeNS(s.namespaceURI,s.localName)||t.getAttributeNS(s.namespaceURI,s.localName)!==s.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var a=0,s=this._numattrs;a<s;a++){var o=this._attr(a);if(o.prefix==="xmlns"&&o.value===t&&r.lookupNamespaceURI(o.localName)===t)return o.localName}var x=this.parentElement;return x?x._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,a=this._numattrs;r<a;r++){var s=this._attr(r);if(s.namespaceURI===He.XMLNS&&(s.prefix==="xmlns"&&s.localName===t||t===null&&s.prefix===null&&s.localName==="xmlns"))return s.value||null}var o=this.parentElement;return o?o.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var a=this.getAttributeNodeNS(t,r);return a?a.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Q.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var a=this._attrsByLName[t+"|"+r];return a||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Q.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var a=t+"|"+r;return this._attrsByLName[a]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),wn.isValidName(t)||Q.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Q.toASCIILowerCase(t));var a=this._attrsByQName[t];return a===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var a=this._attrsByQName[t],s;a?Array.isArray(a)&&(a=a[0]):(a=this._newattr(t),s=!0),a.value=r,this._attributes&&(this._attributes[t]=a),s&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),wn.isValidName(t)||Q.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Q.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,a){var s=r.indexOf(":"),o,x;s<0?(o=null,x=r):(o=r.substring(0,s),x=r.substring(s+1)),(t===""||t===void 0)&&(t=null);var m=(t===null?"":t)+"|"+x,h=this._attrsByLName[m],g;h||(h=new ur(this,x,o,t),g=!0,this._attrsByLName[m]=h,this._attributes&&(this._attributes[this._attrKeys.length]=h),this._attrKeys.push(m),this._addQName(h)),h.value=a,g&&this._newattrhook&&this._newattrhook(r,a)}},setAttributeNS:{value:function(t,r,a){t=t==null||t===""?null:String(t),r=String(r),wn.isValidQName(r)||Q.InvalidCharacterError();var s=r.indexOf(":"),o=s<0?null:r.substring(0,s);(o!==null&&t===null||o==="xml"&&t!==He.XML||(r==="xmlns"||o==="xmlns")&&t!==He.XMLNS||t===He.XMLNS&&!(r==="xmlns"||o==="xmlns"))&&Q.NamespaceError(),this._setAttributeNS(t,r,String(a))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new Ft(Ft.INUSE_ATTRIBUTE_ERR);var r=null,a=this._attrsByQName[t.name];if(a){if(Array.isArray(a)||(a=[a]),a.some(function(s){return s===t}))return t;if(t.ownerElement!==null)throw new Ft(Ft.INUSE_ATTRIBUTE_ERR);a.forEach(function(s){this.removeAttributeNode(s)},this),r=a[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new Ft(Ft.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,a=(r===null?"":r)+"|"+t.localName,s=this._attrsByLName[a];return s&&this.removeAttributeNode(s),t._setOwnerElement(this),this._attrsByLName[a]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(a),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),s||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Q.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var a=r.namespaceURI,s=(a===null?"":a)+"|"+r.localName;this._attrsByLName[s]=void 0;var o=this._attrKeys.indexOf(s);this._attributes&&(Array.prototype.splice.call(this._attributes,o,1),this._attributes[t]=void 0),this._attrKeys.splice(o,1);var x=r.onchange;r._setOwnerElement(null),x&&x.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var a=t+"|"+r,s=this._attrsByLName[a];if(s){this._attrsByLName[a]=void 0;var o=this._attrKeys.indexOf(a);this._attributes&&Array.prototype.splice.call(this._attributes,o,1),this._attrKeys.splice(o,1),this._removeQName(s);var x=s.onchange;s._setOwnerElement(null),x&&x.call(s,this,s.localName,s.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(s)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,a=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[a]!==t&&Q.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var a=this._attrsByQName[t],s;a||(a=this._newattr(t),s=!0),a.value=String(r),this._attributes&&(this._attributes[t]=a),s&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new ur(this,t,null,null),a="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[a]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(a),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var a=r.indexOf(e);Q.assert(a!==-1),r.length===2?(this._attrsByQName[t]=r[1-a],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(a,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else Q.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:ia.property({name:"id"}),className:ia.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new Eu(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return An.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===ke.ELEMENT_NODE);return null}},querySelector:{value:function(e){return An(e,this)[0]}},querySelectorAll:{value:function(e){var t=An(e,this);return t.item?t:new Sn(t)}}});Object.defineProperties(xt.prototype,_u);Object.defineProperties(xt.prototype,vu);ia.registerChangeHandler(xt,"id",function(e,t,r,a){e.rooted&&(r&&e.ownerDocument.delId(r,e),a&&e.ownerDocument.addId(a,e))});ia.registerChangeHandler(xt,"class",function(e,t,r,a){e._classList&&e._classList._update()});function ur(e,t,r,a,s){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=a===null||a===""?null:""+a,this.data=s,this._setOwnerElement(e)}ur.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new ur(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return ke.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});xt._Attr=ur;function kn(e){Vs.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}kn.prototype=Object.create(Vs.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(kn.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function js(e){this.element=e,this.updateCache()}js.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,a=0;a<r;a++)this[a]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var s=this.element.firstChild;s!==null;s=s.nextSibling)if(s.nodeType===ke.ELEMENT_NODE){this[this.childrenByNumber.length]=s,this.childrenByNumber.push(s);var o=s.getAttribute("id");o&&!this.childrenByName[o]&&(this.childrenByName[o]=s);var x=s.getAttribute("name");x&&this.element.namespaceURI===He.HTML&&t.test(this.element.localName)&&!this.childrenByName[x]&&(this.childrenByName[o]=s)}}}}});function Dn(e){return function(t){return t.localName===e}}function Tu(e){var t=Q.toASCIILowerCase(e);return t===e?Dn(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function yu(e){return function(t){return t.namespaceURI===e}}function Nu(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function wu(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function Su(e){return function(t){return t.namespaceURI!==He.HTML?!1:t.getAttribute("name")===e}}});var Ln=N((Uf,Ys)=>{"use strict";Ys.exports=Ks;var zs=xe(),Au=yt(),Xs=ee(),Ws=Xs.HierarchyRequestError,Cu=Xs.NotFoundError;function Ks(){zs.call(this)}Ks.prototype=Object.create(zs.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Ws()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Ws()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");Cu()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new Au),this._childNodes}}})});var xr=N((Vf,Zs)=>{"use strict";Zs.exports=sa;var $s=Ln(),Qs=ee(),Du=aa(),ku=yn();function sa(){$s.call(this)}sa.prototype=Object.create($s.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&Qs.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,a){var s=this.data,o=s.length;t=t>>>0,r=r>>>0,a=String(a),(t>o||t<0)&&Qs.IndexSizeError(),t+r>o&&(r=o-t);var x=s.substring(0,t),m=s.substring(t+r);this.data=x+a+m}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(sa.prototype,Du);Object.defineProperties(sa.prototype,ku)});var Rn=N((jf,r0)=>{"use strict";r0.exports=Mn;var Js=ee(),e0=xe(),t0=xr();function Mn(e,t){t0.call(this),this.nodeType=e0.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var fr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};Mn.prototype=Object.create(t0.prototype,{nodeName:{value:"#text"},nodeValue:fr,textContent:fr,innerText:fr,data:{get:fr.get,set:function(e){fr.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&Js.IndexSizeError();var r=this._data.substring(t),a=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var s=this.parentNode;return s!==null&&s.insertBefore(a,this.nextSibling),a}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===e0.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:Js.nyi},clone:{value:function(){return new Mn(this.ownerDocument,this._data)}}})});var On=N((Gf,n0)=>{"use strict";n0.exports=In;var Lu=xe(),a0=xr();function In(e,t){a0.call(this),this.nodeType=Lu.COMMENT_NODE,this.ownerDocument=e,this._data=t}var dr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};In.prototype=Object.create(a0.prototype,{nodeName:{value:"#comment"},nodeValue:dr,textContent:dr,innerText:dr,data:{get:dr.get,set:function(e){dr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new In(this.ownerDocument,this._data)}}})});var Hn=N((Wf,o0)=>{"use strict";o0.exports=qn;var Mu=xe(),Ru=yt(),s0=$r(),oa=Bt(),Iu=ra(),i0=ee();function qn(e){s0.call(this),this.nodeType=Mu.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}qn.prototype=Object.create(s0.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(oa.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(oa.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=oa.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(oa.prototype,"firstElementChild").get;var r=Iu(e,t);return r.item?r:new Ru(r)}},clone:{value:function(){return new qn(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:i0.nyi},outerHTML:{get:function(){return this.serialize()},set:i0.nyi}})});var Bn=N((zf,l0)=>{"use strict";l0.exports=Fn;var Ou=xe(),c0=xr();function Fn(e,t,r){c0.call(this),this.nodeType=Ou.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var hr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Fn.prototype=Object.create(c0.prototype,{nodeName:{get:function(){return this.target}},nodeValue:hr,textContent:hr,innerText:hr,data:{get:hr.get,set:function(e){hr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Fn(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var pr=N((Xf,u0)=>{"use strict";var Pn={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};u0.exports=Pn.constructor=Pn.prototype=Pn});var Vn=N((Yf,f0)=>{"use strict";var Kf=f0.exports={nextSkippingChildren:qu,nextAncestorSibling:Un,next:Hu,previous:Fu,deepLastChild:x0};function qu(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:Un(e,t)}function Un(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function Hu(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:Un(e,t))}function x0(e){for(;e.lastChild;)e=e.lastChild;return e}function Fu(e,t){var r;return r=e.previousSibling,r!==null?x0(r):(r=e.parentNode,r===t?null:r)}});var E0=N((Qf,b0)=>{"use strict";b0.exports=g0;var Bu=xe(),fe=pr(),d0=Vn(),m0=ee(),jn={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},Gn={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function h0(e,t){var r,a,s,o,x;for(a=e._currentNode[jn[t]];a!==null;){if(o=e._internalFilter(a),o===fe.FILTER_ACCEPT)return e._currentNode=a,a;if(o===fe.FILTER_SKIP&&(r=a[jn[t]],r!==null)){a=r;continue}for(;a!==null;){if(x=a[Gn[t]],x!==null){a=x;break}if(s=a.parentNode,s===null||s===e.root||s===e._currentNode)return null;a=s}}return null}function p0(e,t){var r,a,s;if(r=e._currentNode,r===e.root)return null;for(;;){for(s=r[Gn[t]];s!==null;){if(r=s,a=e._internalFilter(r),a===fe.FILTER_ACCEPT)return e._currentNode=r,r;s=r[jn[t]],(a===fe.FILTER_REJECT||s===null)&&(s=r[Gn[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===fe.FILTER_ACCEPT)return null}}function g0(e,t,r){(!e||!e.nodeType)&&m0.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(g0.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof Bu))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,a;if(this._active&&m0.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return fe.FILTER_SKIP;if(a=this._filter,a===null)r=fe.FILTER_ACCEPT;else{this._active=!0;try{typeof a=="function"?r=a(t):r=a.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===fe.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return h0(this,"first")}},lastChild:{value:function(){return h0(this,"last")}},previousSibling:{value:function(){return p0(this,"previous")}},nextSibling:{value:function(){return p0(this,"next")}},previousNode:{value:function(){var t,r,a,s;for(t=this._currentNode;t!==this._root;){for(a=t.previousSibling;a;a=t.previousSibling)if(t=a,r=this._internalFilter(t),r!==fe.FILTER_REJECT){for(s=t.lastChild;s&&(t=s,r=this._internalFilter(t),r!==fe.FILTER_REJECT);s=t.lastChild);if(r===fe.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===fe.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,a,s;t=this._currentNode,r=fe.FILTER_ACCEPT;e:for(;;){for(a=t.firstChild;a;a=t.firstChild){if(t=a,r=this._internalFilter(t),r===fe.FILTER_ACCEPT)return this._currentNode=t,t;if(r===fe.FILTER_REJECT)break}for(s=d0.nextSkippingChildren(t,this.root);s;s=d0.nextSkippingChildren(t,this.root)){if(t=s,r=this._internalFilter(t),r===fe.FILTER_ACCEPT)return this._currentNode=t,t;if(r===fe.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var w0=N(($f,N0)=>{"use strict";N0.exports=y0;var Wn=pr(),zn=Vn(),T0=ee();function Pu(e,t,r){return r?zn.next(e,t):e===t?null:zn.previous(e,null)}function _0(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function v0(e,t){var r,a;for(r=e._referenceNode,a=e._pointerBeforeReferenceNode;;){if(a===t)a=!a;else if(r=Pu(r,e._root,t),r===null)return null;var s=e._internalFilter(r);if(s===Wn.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=a,r}function y0(e,t,r){(!e||!e.nodeType)&&T0.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(y0.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,a;if(this._active&&T0.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return Wn.FILTER_SKIP;if(a=this._filter,a===null)r=Wn.FILTER_ACCEPT;else{this._active=!0;try{typeof a=="function"?r=a(t):r=a.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!_0(t,this._root)&&_0(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=zn.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var a;for(a=this._referenceNode.lastChild;a;a=this._referenceNode.lastChild)this._referenceNode=a}}}},nextNode:{value:function(){return v0(this,!0)}},previousNode:{value:function(){return v0(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var ca=N((Zf,S0)=>{"use strict";S0.exports=de;function de(e){if(!e)return Object.create(de.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=de.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(de.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(de.portPattern)){var a=t[4].lastIndexOf(":");this.host=t[4].substring(0,a),this.port=t[4].substring(a+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}de.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;de.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;de.portPattern=/:\d+$/;de.authorityPattern=/^[^:\/?#]+:\/\//;de.hierarchyPattern=/^[^:\/?#]+:\//;de.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};de.prototype={constructor:de,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return de.authorityPattern.test(this.url)},isHierarchical:function(){return de.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new de(e),a=new de;return r.scheme!==void 0?(a.scheme=r.scheme,a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=o(r.path),a.query=r.query):(a.scheme=t.scheme,r.host!==void 0?(a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=o(r.path),a.query=r.query):(a.username=t.username,a.password=t.password,a.host=t.host,a.port=t.port,r.path?(r.path.charAt(0)==="/"?a.path=o(r.path):(a.path=s(t.path,r.path),a.path=o(a.path)),a.query=r.query):(a.path=t.path,r.query!==void 0?a.query=r.query:a.query=t.query))),a.fragment=r.fragment,a.toString();function s(x,m){if(t.host!==void 0&&!t.path)return"/"+m;var h=x.lastIndexOf("/");return h===-1?m:x.substring(0,h+1)+m}function o(x){if(!x)return x;for(var m="";x.length>0;){if(x==="."||x===".."){x="";break}var h=x.substring(0,2),g=x.substring(0,3),v=x.substring(0,4);if(g==="../")x=x.substring(3);else if(h==="./")x=x.substring(2);else if(g==="/./")x="/"+x.substring(3);else if(h==="/."&&x.length===2)x="/";else if(v==="/../"||g==="/.."&&x.length===3)x="/"+x.substring(4),m=m.replace(/\/?[^\/]*$/,"");else{var ne=x.match(/(\/?([^\/]*))/)[0];m+=ne,x=x.substring(ne.length)}}return m}}}});var D0=N((Jf,C0)=>{"use strict";C0.exports=Xn;var A0=Mt();function Xn(e,t){A0.call(this,e,t)}Xn.prototype=Object.create(A0.prototype,{constructor:{value:Xn}})});var Kn=N((ed,k0)=>{"use strict";k0.exports={Event:Mt(),UIEvent:Ya(),MouseEvent:$a(),CustomEvent:D0()}});var M0=N(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.hyphenate=Pt.parse=void 0;function Uu(e){let t=[],r=0,a=0,s=0,o=0,x=0,m=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:a++;break;case 41:a--;break;case 39:s===0?s=39:s===39&&e.charCodeAt(r-1)!==92&&(s=0);break;case 34:s===0?s=34:s===34&&e.charCodeAt(r-1)!==92&&(s=0);break;case 58:!m&&a===0&&s===0&&(m=L0(e.substring(x,r-1).trim()),o=r);break;case 59:if(m&&o>0&&a===0&&s===0){let g=e.substring(o,r-1).trim();t.push(m,g),x=r,o=0,m=null}break}if(m&&o){let h=e.slice(o).trim();t.push(m,h)}return t}Pt.parse=Uu;function L0(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Pt.hyphenate=L0});var la=N((rd,H0)=>{"use strict";var{parse:Vu}=M0();H0.exports=function(e){let t=new q0(e),r={get:function(a,s){return s in a?a[s]:a.getPropertyValue(R0(s))},has:function(a,s){return!0},set:function(a,s,o){return s in a?a[s]=o:a.setProperty(R0(s),o??void 0),!0}};return new Proxy(t,r)};function R0(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function q0(e){this._element=e}var I0="!important";function O0(e){let t={property:{},priority:{}};if(!e)return t;let r=Vu(e);if(r.length<2)return t;for(let a=0;a<r.length;a+=2){let s=r[a],o=r[a+1];o.endsWith(I0)&&(t.priority[s]="important",o=o.slice(0,-I0.length).trim()),t.property[s]=o}return t}var Ut={};q0.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=O0(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==Ut&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==Ut&&!/^important$/i.test(r))){var a=this._parsed;if(t===Ut){if(!a.property[e])return;r!==""?a.priority[e]="important":delete a.priority[e]}else{if(t.indexOf(";")!==-1)return;var s=O0(e+":"+t);if(Object.getOwnPropertyNames(s.property).length===0||Object.getOwnPropertyNames(s.priority).length!==0)return;for(var o in s.property)a.property[o]=s.property[o],r!==Ut&&(r!==""?a.priority[o]="important":a.priority[o]&&delete a.priority[o])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,Ut)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,Ut,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var Yn=N((ad,F0)=>{"use strict";var ce=ca();F0.exports=mr;function mr(){}mr.prototype=Object.create(Object.prototype,{_url:{get:function(){return new ce(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,ce.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,ce.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,ce.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,ce.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,ce.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new ce(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,ce.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,ce.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new ce(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,ce.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var a=[e.scheme,e.host,+e.port||r];return a[0]+"://"+a[1]+(a[2]===r?"":":"+a[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});mr._inherit=function(e){Object.getOwnPropertyNames(mr.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(mr.prototype,t);Object.defineProperty(e,t,r)}})}});var Qn=N((nd,U0)=>{"use strict";var B0=mn(),ju=Kr().isApiWritable;U0.exports=function(e,t,r,a){var s=e.ctor;if(s){var o=e.props||{};if(e.attributes)for(var x in e.attributes){var m=e.attributes[x];(typeof m!="object"||Array.isArray(m))&&(m={type:m}),m.name||(m.name=x.toLowerCase()),o[x]=B0.property(m)}o.constructor={value:s,writable:ju},s.prototype=Object.create((e.superclass||t).prototype,o),e.events&&Wu(s,e.events),r[e.name]=s}else s=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(h){a[h]=s}),s};function P0(e,t,r,a){this.body=e,this.document=t,this.form=r,this.element=a}P0.prototype.build=function(){return()=>{}};function Gu(e,t,r,a){var s=e.ownerDocument||Object.create(null),o=e.form||Object.create(null);e[t]=new P0(a,s,o,e).build()}function Wu(e,t){var r=e.prototype;t.forEach(function(a){Object.defineProperty(r,"on"+a,{get:function(){return this._getEventHandler(a)},set:function(s){this._setEventHandler(a,s)}}),B0.registerChangeHandler(e,"on"+a,Gu)})}});var fa=N(xa=>{"use strict";var $n=xe(),V0=Bt(),zu=la(),Te=ee(),j0=Yn(),Xu=Qn(),Xe=xa.elements={},gr=Object.create(null);xa.createElement=function(e,t,r){var a=gr[t]||Yu;return new a(e,t,r)};function _(e){return Xu(e,T,Xe,gr)}function te(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function ua(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var Vt={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},Ku={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Le=function(e,t,r){T.call(this,e,t,r),this._form=null},T=xa.HTMLElement=_({superclass:V0,name:"HTMLElement",ctor:function(t,r,a){V0.call(this,t,r,Te.NAMESPACE.HTML,a)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof gr.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new zu(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:Te.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in Ku||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),Yu=_({name:"HTMLUnknownElement",ctor:function(t,r,a){T.call(this,t,r,a)}}),Me={form:{get:function(){return this._form}}};_({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:te,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:Vt,coords:String,charset:String,name:String,rev:String,shape:String}});j0._inherit(gr.a.prototype);_({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:te,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:Vt,noHref:Boolean}});j0._inherit(gr.area.prototype);_({tag:"br",name:"HTMLBRElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{clear:String}});_({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{target:String}});_({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,a){T.call(this,t,r,a)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});_({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:te,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});_({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{compact:Boolean}});_({tag:"data",name:"HTMLDataElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{value:String}});_({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,a){T.call(this,t,r,a)}});_({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{open:Boolean}});_({tag:"div",name:"HTMLDivElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});_({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:te,type:String,width:String,height:String,align:String,name:String}});_({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me,attributes:{disabled:Boolean,name:String}});_({tag:"form",name:"HTMLFormElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});_({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});_({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,a){T.call(this,t,r,a)}});_({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});_({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{xmlns:te,version:String}});_({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:te,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:Vt,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:te,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});_({tag:"img",name:"HTMLImageElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{alt:String,src:te,srcset:String,crossOrigin:ua,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:Vt,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:te,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:te,border:{type:String,treatNullAsEmptyString:!0}}});_({tag:"input",name:"HTMLInputElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:{form:Me.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var a=t[r];a.checked=a===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:te,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});_({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});_({tag:"li",name:"HTMLLIElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{value:{type:"long",default:0},type:String}});_({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me,attributes:{htmlFor:{name:"for",type:String}}});_({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});_({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{href:te,rel:String,media:String,hreflang:String,type:String,crossOrigin:ua,nonce:String,integrity:String,referrerPolicy:Vt,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});_({tag:"map",name:"HTMLMapElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{name:String}});_({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});_({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});_({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me});_({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{cite:te,dateTime:String}});_({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===$n.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});_({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me,attributes:{data:te,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:te,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});_({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{disabled:Boolean,label:String}});_({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===$n.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});_({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me,attributes:{name:String}});_({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});_({tag:"param",name:"HTMLParamElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{name:String,value:String,type:String,valueType:String}});_({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{width:{type:"long",default:0}}});_({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:Me,attributes:{max:{type:Number,float:!0,default:1,min:0}}});_({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{cite:te}});_({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var a=this.childNodes[t];a.nodeType===$n.TEXT_NODE&&(e+=a._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:te,type:String,charset:String,referrerPolicy:Vt,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:ua,nonce:String,integrity:String}});_({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:{form:Me.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});_({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,a){T.call(this,t,r,a)}});_({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{media:String,type:String,scoped:Boolean}});_({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});_({name:"HTMLTableCellElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});_({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});_({tag:"table",name:"HTMLTableElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});_({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,a){T.call(this,t,r,a),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});_({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});_({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});_({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,a){Le.call(this,t,r,a)},props:{form:Me.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});_({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{dateTime:String,pubDate:Boolean}});_({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{text:{get:function(){return this.textContent}}}});_({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{type:String,compact:Boolean}});_({name:"HTMLMediaElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:te,crossOrigin:ua,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});_({name:"HTMLAudioElement",tag:"audio",superclass:Xe.HTMLMediaElement,ctor:function(t,r,a){Xe.HTMLMediaElement.call(this,t,r,a)}});_({name:"HTMLVideoElement",tag:"video",superclass:Xe.HTMLMediaElement,ctor:function(t,r,a){Xe.HTMLMediaElement.call(this,t,r,a)},attributes:{poster:te,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});_({tag:"td",name:"HTMLTableDataCellElement",superclass:Xe.HTMLTableCellElement,ctor:function(t,r,a){Xe.HTMLTableCellElement.call(this,t,r,a)}});_({tag:"th",name:"HTMLTableHeaderCellElement",superclass:Xe.HTMLTableCellElement,ctor:function(t,r,a){Xe.HTMLTableCellElement.call(this,t,r,a)}});_({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,a){T.call(this,t,r,a)}});_({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,a){T.call(this,t,r,a)}});_({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{getContext:{value:Te.nyi},probablySupportsContext:{value:Te.nyi},setContext:{value:Te.nyi},transferControlToProxy:{value:Te.nyi},toDataURL:{value:Te.nyi},toBlob:{value:Te.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});_({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{show:{value:Te.nyi},showModal:{value:Te.nyi},close:{value:Te.nyi}},attributes:{open:Boolean,returnValue:String}});_({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:te,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});_({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{srcset:String,sizes:String,media:String,src:te,type:String,width:String,height:String}});_({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:te,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:Te.nyi},track:{get:Te.nyi}}});_({tag:"font",name:"HTMLFontElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});_({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{compact:Boolean}});_({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var ei=N(da=>{"use strict";var G0=Bt(),Qu=Qn(),$u=ee(),Zu=la(),Ju=da.elements={},W0=Object.create(null);da.createElement=function(e,t,r){var a=W0[t]||Jn;return new a(e,t,r)};function Zn(e){return Qu(e,Jn,Ju,W0)}var Jn=Zn({superclass:G0,name:"SVGElement",ctor:function(t,r,a){G0.call(this,t,r,$u.NAMESPACE.SVG,a)},props:{style:{get:function(){return this._style||(this._style=new Zu(this)),this._style}}}});Zn({name:"SVGSVGElement",ctor:function(t,r,a){Jn.call(this,t,r,a)},tag:"svg",props:{createSVGRect:{value:function(){return da.createElement(this.ownerDocument,"rect",null)}}}});Zn({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var X0=N((od,z0)=>{"use strict";z0.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var pa=N((cd,ao)=>{"use strict";ao.exports=Er;var he=xe(),ex=yt(),J0=$r(),ft=Bt(),tx=Rn(),rx=On(),br=Mt(),ax=Hn(),nx=Bn(),ix=_r(),sx=E0(),ox=w0(),K0=pr(),Y0=ca(),Q0=ra(),cx=Kn(),ha=Zr(),ti=fa(),lx=ei(),B=ee(),jt=X0(),Wt=B.NAMESPACE,ri=Kr().isApiWritable;function Er(e,t){J0.call(this),this.nodeType=he.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new ix(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var ux={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},xx={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},Gt=function(e,t,r){return{get:function(){var a=e.call(this);return a?a[t]:r},set:function(a){var s=e.call(this);s&&(s[t]=a)}}};function $0(e,t){var r,a,s;return e===""&&(e=null),ha.isValidQName(t)||B.InvalidCharacterError(),r=null,a=t,s=t.indexOf(":"),s>=0&&(r=t.substring(0,s),a=t.substring(s+1)),r!==null&&e===null&&B.NamespaceError(),r==="xml"&&e!==Wt.XML&&B.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Wt.XMLNS&&B.NamespaceError(),e===Wt.XMLNS&&!(r==="xmlns"||t==="xmlns")&&B.NamespaceError(),{namespace:e,prefix:r,localName:a}}Er.prototype=Object.create(J0.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var a=this._nodes[e];a&&a._dispatchEvent(new br(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:B.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new tx(this,String(e))}},createComment:{value:function(e){return new rx(this,e)}},createDocumentFragment:{value:function(){return new ax(this)}},createProcessingInstruction:{value:function(e,t){return(!ha.isValidName(e)||t.indexOf("?>")!==-1)&&B.InvalidCharacterError(),new nx(this,e,t)}},createAttribute:{value:function(e){return e=String(e),ha.isValidName(e)||B.InvalidCharacterError(),this.isHTML&&(e=B.toASCIILowerCase(e)),new ft._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=$0(e,t);return new ft._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),ha.isValidName(e)||B.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=B.toASCIILowerCase(e)),ti.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?ti.createElement(this,e,null):new ft(this,e,null,null)},writable:ri},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=$0(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:ri},_createElementNS:{value:function(e,t,r){return t===Wt.HTML?ti.createElement(this,e,r):t===Wt.SVG?lx.createElement(this,e,r):new ft(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=xx[t]||t,a=cx[ux[r]];if(a){var s=new a;return s._initialized=!1,s}else B.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof he))throw new TypeError("root not a node");return t=t===void 0?K0.SHOW_ALL:+t,r=r===void 0?null:r,new sx(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof he))throw new TypeError("root not a node");return t=t===void 0?K0.SHOW_ALL:+t,r=r===void 0?null:r,new ox(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===he.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===he.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return he.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return he.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return he.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof Ke?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof Ke}},getElementsByName:{value:ft.prototype.getElementsByName},getElementsByTagName:{value:ft.prototype.getElementsByTagName},getElementsByTagNameNS:{value:ft.prototype.getElementsByTagNameNS},getElementsByClassName:{value:ft.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===he.DOCUMENT_NODE&&B.NotSupportedError(),t.nodeType===he.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&ro(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:ri},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:B.nyi,set:B.nyi},referrer:{get:B.nyi},cookie:{get:B.nyi,set:B.nyi},lastModified:{get:B.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:B.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:Gt(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:Gt(function(){return this.body},"text",""),linkColor:Gt(function(){return this.body},"link",""),vlinkColor:Gt(function(){return this.body},"vLink",""),alinkColor:Gt(function(){return this.body},"aLink",""),bgColor:Gt(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return Z0(this.documentElement,"body")},set:B.nyi},head:{get:function(){return Z0(this.documentElement,"head")}},images:{get:B.nyi},embeds:{get:B.nyi},plugins:{get:B.nyi},links:{get:B.nyi},forms:{get:B.nyi},scripts:{get:B.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:B.nyi},outerHTML:{get:function(){return this.serialize()},set:B.nyi},write:{value:function(e){if(this.isHTML||B.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import{a as b,b as y,c as N}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";var I={name:"join",summary:"join lines of two files on a common field",usage:"join [OPTION]... FILE1 FILE2",description:"For each pair of input lines with identical join fields, write a line to standard output. The default join field is the first, delimited by blanks.",options:["-1 FIELD Join on this FIELD of file 1 (default: 1)","-2 FIELD Join on this FIELD of file 2 (default: 1)","-t CHAR Use CHAR as input and output field separator","-a FILENUM Also print unpairable lines from file FILENUM (1 or 2)","-v FILENUM Like -a but only output unpairable lines","-e STRING Replace missing fields with STRING","-o FORMAT Output format (comma-separated list of FILENUM.FIELD)","-i Ignore case when comparing fields"],examples:["join file1 file2 # Join on first field","join -1 2 -2 1 file1 file2 # Join file1 col 2 with file2 col 1","join -t ',' file1.csv file2.csv # Join CSV files","join -a 1 file1 file2 # Left outer join"]};function F(t,s){return s?t.split(s):t.split(/[ \t]+/).filter(n=>n.length>0)}function L(t,s,n,f){let e=F(t,s),r=e[n-1]??"";return f&&(r=r.toLowerCase()),{fields:e,joinKey:r,original:t}}function m(t,s,n){let f=n.separator??" ";if(n.outputFormat){let l=[];for(let{file:c,field:d}of n.outputFormat){let a=c===1?t:s;a&&d===0?l.push(a.joinKey):a&&a.fields[d-1]!==void 0?l.push(a.fields[d-1]):l.push(n.emptyString)}return l.join(f)}let e=[],r=t?.joinKey??s?.joinKey??"";if(e.push(r),t)for(let l=0;l<t.fields.length;l++)l!==n.field1-1&&e.push(t.fields[l]);if(s)for(let l=0;l<s.fields.length;l++)l!==n.field2-1&&e.push(s.fields[l]);return e.join(f)}function w(t){let s=t.split(","),n=[];for(let f of s){let e=f.trim().match(/^(\d+)\.(\d+)$/);if(!e)return null;let r=Number.parseInt(e[1],10),l=Number.parseInt(e[2],10);if(r!==1&&r!==2)return null;n.push({file:r,field:l})}return n}var C={name:"join",execute:async(t,s)=>{if(y(t))return b(I);let n={field1:1,field2:1,separator:null,printUnpairable:new Set,onlyUnpairable:new Set,emptyString:"",outputFormat:null,ignoreCase:!1},f=[],e=0;for(;e<t.length;){let i=t[e];if(i==="-1"&&e+1<t.length){let o=Number.parseInt(t[e+1],10);if(Number.isNaN(o)||o<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${t[e+1]}'
3
+ `};n.field1=o,e+=2}else if(i==="-2"&&e+1<t.length){let o=Number.parseInt(t[e+1],10);if(Number.isNaN(o)||o<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${t[e+1]}'
4
+ `};n.field2=o,e+=2}else if((i==="-t"||i==="--field-separator")&&e+1<t.length)n.separator=t[e+1],e+=2;else if(i.startsWith("-t")&&i.length>2)n.separator=i.slice(2),e++;else if(i==="-a"&&e+1<t.length){let o=Number.parseInt(t[e+1],10);if(o!==1&&o!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${t[e+1]}'
5
+ `};n.printUnpairable.add(o),e+=2}else if(i.match(/^-a[12]$/))n.printUnpairable.add(Number.parseInt(i[2],10)),e++;else if(i==="-v"&&e+1<t.length){let o=Number.parseInt(t[e+1],10);if(o!==1&&o!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${t[e+1]}'
6
+ `};n.onlyUnpairable.add(o),e+=2}else if(i.match(/^-v[12]$/))n.onlyUnpairable.add(Number.parseInt(i[2],10)),e++;else if(i==="-e"&&e+1<t.length)n.emptyString=t[e+1],e+=2;else if(i==="-o"&&e+1<t.length){let o=w(t[e+1]);if(!o)return{exitCode:1,stdout:"",stderr:`join: invalid field spec: '${t[e+1]}'
7
+ `};n.outputFormat=o,e+=2}else if(i==="-i"||i==="--ignore-case")n.ignoreCase=!0,e++;else if(i==="--"){f.push(...t.slice(e+1));break}else{if(i.startsWith("-")&&i!=="-")return N("join",i);f.push(i),e++}}if(f.length!==2)return{exitCode:1,stdout:"",stderr:f.length<2?`join: missing file operand
8
+ `:`join: extra operand
9
+ `};let r=[];for(let i of f)if(i==="-")r.push(s.stdin??"");else{let o=s.fs.resolvePath(s.cwd,i),u=await s.fs.readFile(o);if(u===null)return{exitCode:1,stdout:"",stderr:`join: ${i}: No such file or directory
10
+ `};r.push(u)}let l=(i,o)=>{let u=i.split(`
11
+ `);return i.endsWith(`
12
+ `)&&u[u.length-1]===""&&u.pop(),u.filter(h=>h.length>0).map(h=>L(h,n.separator,o,n.ignoreCase))},c=l(r[0],n.field1),d=l(r[1],n.field2),a=new Map;for(let i of d){let o=a.get(i.joinKey);o?o.push(i):a.set(i.joinKey,[i])}let p=[],j=new Set;for(let i of c){let o=a.get(i.joinKey);if(o&&o.length>0){if(j.add(i.joinKey),n.onlyUnpairable.size===0)for(let u of o)p.push(m(i,u,n))}else(n.printUnpairable.has(1)||n.onlyUnpairable.has(1))&&p.push(m(i,null,n))}if(n.printUnpairable.has(2)||n.onlyUnpairable.has(2))for(let i of d)j.has(i.joinKey)||p.push(m(null,i,n));return{exitCode:0,stdout:p.length>0?`${p.join(`
13
+ `)}
14
+ `:"",stderr:""}}};export{C as join};