@inkeep/open-knowledge 0.12.0-beta.8 → 0.12.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 (461) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +35 -0
  2. package/dist/_baseFor-m0TxKeb9.mjs +2 -0
  3. package/dist/alias-JE7RI5QX-DmHh8yog.mjs +1 -0
  4. package/dist/arc-Doj9VrmJ.mjs +2 -0
  5. package/dist/architecture-YZFGNWBL-YPACCZ88.mjs +1 -0
  6. package/dist/architectureDiagram-Q4EWVU46-C9cSuC8m.mjs +37 -0
  7. package/dist/array-1jkOhClC.mjs +2 -0
  8. package/dist/assets/skills/discovery/SKILL.md +1 -1
  9. package/dist/assets/skills/project/SKILL.md +6 -4
  10. package/dist/awk2-POPGKRAI-C7696e-z.mjs +1 -0
  11. package/dist/{banner-BeneQTB4.mjs → banner-BxCFCyu8.mjs} +2 -2
  12. package/dist/base64-4YMZCVJ5-BIHNwDj2.mjs +1 -0
  13. package/dist/basename-AA2KJYZQ-Dcz4Ls85.mjs +1 -0
  14. package/dist/bash-IJWYRKFO-DgruzS3i.mjs +1 -0
  15. package/dist/blockDiagram-DXYQGD6D-Dr7L7QsL.mjs +133 -0
  16. package/dist/build-CCDQyip-.mjs +1 -0
  17. package/dist/{build-CJEQ0nGy.mjs → build-DCHzh6iE.mjs} +1 -1
  18. package/dist/c4Diagram-AHTNJAMY-CPm6kKNR.mjs +11 -0
  19. package/dist/cat-RDUMLXKC-BJJIS9lB.mjs +1 -0
  20. package/dist/channel-DE79NHCf.mjs +2 -0
  21. package/dist/chmod-SYMGL4JA-C1Ie7s0s.mjs +1 -0
  22. package/dist/{chokidar-BDjANGpQ.mjs → chokidar-Bu9Rdqzq.mjs} +1 -1
  23. package/dist/{chunk-24IMIIXA-C-Zyd2K_.mjs → chunk-24IMIIXA-DaS5XS55.mjs} +2 -2
  24. package/dist/chunk-2KRD3SAO-BXl7sX-7.mjs +2 -0
  25. package/dist/chunk-336JU56O-KTMEs5Wk.mjs +2 -0
  26. package/dist/{chunk-3THT3N7L-Ce6LrnIA.mjs → chunk-3THT3N7L-B1WzJUh4.mjs} +1 -1
  27. package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-Bv1jGN68.mjs} +1 -1
  28. package/dist/chunk-426QAEUC-DUpKwtVu.mjs +2 -0
  29. package/dist/{chunk-44UOCSGV-uErOrz7G.mjs → chunk-44UOCSGV-BZ6LfyW2.mjs} +1 -1
  30. package/dist/chunk-4BX2VUAB-DM-mXRDw.mjs +2 -0
  31. package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF-DLnFbNSw.mjs} +2 -2
  32. package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-Ct4ue15f.mjs} +1 -1
  33. package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-CAvCnPq5.mjs} +2 -2
  34. package/dist/chunk-4TB4RGXK-Ct6WjPoY.mjs +207 -0
  35. package/dist/chunk-55IACEB6-Cmyc0XwJ.mjs +2 -0
  36. package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-RFvY6zq0.mjs} +2 -2
  37. package/dist/chunk-5FUZZQ4R-Bf6nbyQG.mjs +63 -0
  38. package/dist/chunk-5PVQY5BW-DUXm3tDu.mjs +3 -0
  39. package/dist/{chunk-5QMZ5MUS-BfIuRNkK.mjs → chunk-5QMZ5MUS-BwpNU33k.mjs} +2 -2
  40. package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-BV0xuiYW.mjs} +2 -2
  41. package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-ByuVaPWr.mjs} +2 -2
  42. package/dist/{chunk-62RKD26F-CvuML91F.mjs → chunk-62RKD26F-DebCAz0V.mjs} +2 -2
  43. package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-BlirlXmE.mjs} +2 -2
  44. package/dist/chunk-67CJDMHE-C58W8DAL.mjs +2 -0
  45. package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-V0JXh91S.mjs} +1 -1
  46. package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-B3QRwLbB.mjs} +1 -1
  47. package/dist/chunk-7N4EOEYR-DzEIb3Sc.mjs +2 -0
  48. package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-CMVuiOdP.mjs} +1 -1
  49. package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-Bjuqsbev.mjs} +1 -1
  50. package/dist/{chunk-A4JSPFCI-k-tJSZgB.mjs → chunk-A4JSPFCI-CQJoYugB.mjs} +2 -2
  51. package/dist/{chunk-A5O5YHGN-C6ngIqYR.mjs → chunk-A5O5YHGN-DApqA6Ow.mjs} +2 -2
  52. package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-GGt9898w.mjs} +2 -2
  53. package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-BqvlRSRw.mjs} +1 -1
  54. package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-D5TsVU6v.mjs} +2 -2
  55. package/dist/chunk-AA7GKIK3-DKgpQZxa.mjs +2 -0
  56. package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-4H3OLfNN.mjs} +2 -2
  57. package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DnIeUlVe.mjs} +2 -2
  58. package/dist/{chunk-BBXLRYSX-Oks1GMhO.mjs → chunk-BBXLRYSX-XWD4jM9A.mjs} +2 -2
  59. package/dist/{chunk-BRGMQKJV-CHO764qS.mjs → chunk-BRGMQKJV-CHbk2NqS.mjs} +3 -3
  60. package/dist/chunk-BSJP7CBP-BG3yJGkJ.mjs +2 -0
  61. package/dist/{chunk-FK9Q3tQk.mjs → chunk-C94x7I9S.mjs} +1 -1
  62. package/dist/chunk-CIAEETIT-CH33zQ9L.mjs +2 -0
  63. package/dist/{chunk-CR5AFCPT-CH8ZGz3B.mjs → chunk-CR5AFCPT-DN7EAdus.mjs} +2 -2
  64. package/dist/{chunk-CWQS3NFK-BP3kiNgH.mjs → chunk-CWQS3NFK-BkE4vqrf.mjs} +1 -1
  65. package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-KlK3EOFl.mjs} +2 -2
  66. package/dist/{chunk-D6CWQ5DW-BgQGt8eQ.mjs → chunk-D6CWQ5DW-CF9bBHyK.mjs} +2 -2
  67. package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-BM_kIbvf.mjs} +2 -2
  68. package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-BUMlCZ4-.mjs} +2 -2
  69. package/dist/{chunk-DXB73IDG-C2RuFAAY.mjs → chunk-DXB73IDG-F_tmy-Lz.mjs} +2 -2
  70. package/dist/chunk-EDXVE4YY-CI4s3JHP.mjs +2 -0
  71. package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-CvpAxUxM.mjs} +1 -1
  72. package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-C8wRSfCC.mjs} +2 -2
  73. package/dist/chunk-ENJZ2VHE-CQwjtY5A.mjs +11 -0
  74. package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-DLeNVzzD.mjs} +2 -2
  75. package/dist/{chunk-F55TLFGB-Bkfd8ak_.mjs → chunk-F55TLFGB-BZSRX-Vi.mjs} +2 -2
  76. package/dist/{chunk-FEIOJCZD-DmvuPNqm.mjs → chunk-FEIOJCZD-NzTooVTc.mjs} +2 -2
  77. package/dist/chunk-FMBD7UC4-CAloFUY3.mjs +16 -0
  78. package/dist/chunk-FOC6F5B3-Cv5O0Fxp.mjs +2 -0
  79. package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-D3J1Ev9z.mjs} +1 -1
  80. package/dist/{chunk-GFQRA5P5-ePq2jelx.mjs → chunk-GFQRA5P5-DbAN9IDm.mjs} +1 -1
  81. package/dist/{chunk-GOV5EKKI-CyL1eJ32.mjs → chunk-GOV5EKKI-CDGzZWfT.mjs} +2 -2
  82. package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-D0BDCtkE.mjs} +2 -2
  83. package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-DZc2LbWr.mjs} +2 -2
  84. package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-BS_JF11O.mjs} +1 -1
  85. package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-DknkBuxy.mjs} +2 -2
  86. package/dist/{chunk-HWBSOZZR-BeVrNfQw.mjs → chunk-HWBSOZZR-5PJ_z6D6.mjs} +2 -2
  87. package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-BJxdK4fT.mjs} +2 -2
  88. package/dist/{chunk-I57KEIP3-5RFY25TO.mjs → chunk-I57KEIP3-DSoF8c_0.mjs} +2 -2
  89. package/dist/chunk-ICPOFSXX-C--tVIY5.mjs +123 -0
  90. package/dist/{chunk-IPJHKYVM-D6H6ZTtk.mjs → chunk-IPJHKYVM-CUKythEA.mjs} +1 -1
  91. package/dist/{chunk-J642UCRS-D87gHOLP.mjs → chunk-J642UCRS-HjD8qpZD.mjs} +2 -2
  92. package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-D6CRdXSO.mjs} +2 -2
  93. package/dist/chunk-K5T4RW27-BPgPjo39.mjs +98 -0
  94. package/dist/chunk-KGLVRYIC-CmkADDeV.mjs +2 -0
  95. package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-Qk0eg7gN.mjs} +2 -2
  96. package/dist/chunk-LIHQZDEY-Fy8O-IVI.mjs +2 -0
  97. package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-CH16p_-s.mjs} +2 -2
  98. package/dist/{chunk-LPQPILI2-DyyhWSR7.mjs → chunk-LPQPILI2-OoVL_l9j.mjs} +2 -2
  99. package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-BfgCUlp9.mjs} +2 -2
  100. package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DhbhFY11.mjs} +2 -2
  101. package/dist/{chunk-MDDMCKUK-poQ25EjI.mjs → chunk-MDDMCKUK-ChL1CU4m.mjs} +2 -2
  102. package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-UsHGHHoh.mjs} +2 -2
  103. package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-Dk5ocjFo.mjs} +1 -1
  104. package/dist/{chunk-MIZPJHVH-BdoPqh_Y.mjs → chunk-MIZPJHVH-BD7tHmLL.mjs} +2 -2
  105. package/dist/{chunk-MLXIYONF-DwewZM3r.mjs → chunk-MLXIYONF-CV7WHBm-.mjs} +2 -2
  106. package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-DwzjGrc0.mjs} +2 -2
  107. package/dist/{chunk-NAERJDUW-BFcmkHme.mjs → chunk-NAERJDUW-Cyg2DAzO.mjs} +2 -2
  108. package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-Ct0_l0YT.mjs} +2 -2
  109. package/dist/{chunk-NUYSJFDK-DAvAseHr.mjs → chunk-NUYSJFDK-BH2DjyxF.mjs} +2 -2
  110. package/dist/{chunk-NYQYO467-_2947cgi.mjs → chunk-NYQYO467-CY88QCuT.mjs} +2 -2
  111. package/dist/{chunk-OARHFVLG-vxL5zuWx.mjs → chunk-OARHFVLG-dXiYYC4o.mjs} +2 -2
  112. package/dist/{chunk-OCLXQMOG-C7k2qEN6.mjs → chunk-OCLXQMOG-DOkdFgyf.mjs} +2 -2
  113. package/dist/{chunk-OCS6LSEM-Lh1p0H-V.mjs → chunk-OCS6LSEM-Bcx6uxmm.mjs} +2 -2
  114. package/dist/{chunk-OJDRYQWQ-DWhg7YHU.mjs → chunk-OJDRYQWQ-CmrD0Dg2.mjs} +1 -1
  115. package/dist/{chunk-OL3S66CO-B3hSNlNP.mjs → chunk-OL3S66CO-CWEDi2F_.mjs} +2 -2
  116. package/dist/chunk-ORNJ4GCN-R_gUIosC.mjs +2 -0
  117. package/dist/chunk-OYMX7WX6-Dvg98Zb-.mjs +232 -0
  118. package/dist/{chunk-PBXLG62G-MmAqjdXR.mjs → chunk-PBXLG62G-CpvczNyQ.mjs} +2 -2
  119. package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-DQ3LPONR.mjs} +1 -1
  120. package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-B_Gv8rUn.mjs} +2 -2
  121. package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-Bays5mAr.mjs} +2 -2
  122. package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-BCF2wp2J.mjs} +2 -2
  123. package/dist/chunk-QZHKN3VN-D0OJ2eQ1.mjs +2 -0
  124. package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-RaNW7MSS.mjs} +1 -1
  125. package/dist/{chunk-R6VWJ2ZL-D1Ufj9fh.mjs → chunk-R6VWJ2ZL-BVeTwIsz.mjs} +1 -1
  126. package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-yHFoBjjv.mjs} +2 -2
  127. package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-BsAYzqU5.mjs} +2 -2
  128. package/dist/{chunk-SYMJJMQ4-DLPoQaug.mjs → chunk-SYMJJMQ4-jdmKoBFb.mjs} +2 -2
  129. package/dist/{chunk-T56QNPHK-TppyesRp.mjs → chunk-T56QNPHK-DmDxJbbD.mjs} +2 -2
  130. package/dist/{chunk-TLSUDHID-B2VV2ufQ.mjs → chunk-TLSUDHID-CSDR438C.mjs} +2 -2
  131. package/dist/{chunk-TOMNU26N-DfLjxpHW.mjs → chunk-TOMNU26N-CrDa7MpH.mjs} +2 -2
  132. package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-BxbbtyNr.mjs} +2 -2
  133. package/dist/chunk-U2HBQHQK-C1Q2DiEX.mjs +71 -0
  134. package/dist/{chunk-UNYNJIFU--HT-3lrq.mjs → chunk-UNYNJIFU-CZ2Mla0s.mjs} +3 -3
  135. package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-CKif4_mH.mjs} +2 -2
  136. package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-CWlZv59U.mjs} +2 -2
  137. package/dist/{chunk-VLGZJRPG-DbWYxLfI.mjs → chunk-VLGZJRPG-DpYP_EVp.mjs} +2 -2
  138. package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-D6fSjWnx.mjs} +2 -2
  139. package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-DN1CSkP5.mjs} +2 -2
  140. package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-CoPg2OGf.mjs} +2 -2
  141. package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-ClcErtij.mjs} +1 -1
  142. package/dist/chunk-X2U36JSP-BiF0R9ys.mjs +2 -0
  143. package/dist/{chunk-XHM67O4N-BWGDFyz_.mjs → chunk-XHM67O4N-C_wCK9HT.mjs} +1 -1
  144. package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK-BC2HZ_y9.mjs} +2 -2
  145. package/dist/{chunk-XORM457F-D-QrjagQ.mjs → chunk-XORM457F-BuPOSqOe.mjs} +2 -2
  146. package/dist/chunk-XPW4576I-BkucPPwf.mjs +39 -0
  147. package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-CkzIJQaO.mjs} +2 -2
  148. package/dist/{chunk-YCFVLTST-CFJxSbsH.mjs → chunk-YCFVLTST-DsF45PbT.mjs} +2 -2
  149. package/dist/{chunk-YFG2CMIF-DkT4NiqV.mjs → chunk-YFG2CMIF-DjdwxBNc.mjs} +2 -2
  150. package/dist/{chunk-YNYSPYQ5-iQGTFdx0.mjs → chunk-YNYSPYQ5-gU4-j5DO.mjs} +1 -1
  151. package/dist/{chunk-YS3AZT3J-w6Dw8reo.mjs → chunk-YS3AZT3J-CB0wWPLc.mjs} +2 -2
  152. package/dist/{chunk-YTNYSM6T-Cz_dxkBy.mjs → chunk-YTNYSM6T-DpkSVTln.mjs} +2 -2
  153. package/dist/chunk-YZCP3GAM-DRdMIQsB.mjs +2 -0
  154. package/dist/{chunk-Z6LRHWXI-BcgkPhhu.mjs → chunk-Z6LRHWXI-EsbeaQ3V.mjs} +2 -2
  155. package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-BtFBVQEW.mjs} +2 -2
  156. package/dist/chunk-ZZ45TVLE-DwKS4e_N.mjs +2 -0
  157. package/dist/classDiagram-6PBFFD2Q-BrpY9pLd.mjs +2 -0
  158. package/dist/classDiagram-v2-HSJHXN6E-DDV6mz7Y.mjs +2 -0
  159. package/dist/clear-5CZ5X4YR-CHSnzs8i.mjs +1 -0
  160. package/dist/cli.mjs +53 -52
  161. package/dist/clone-BD_JFVST.mjs +2 -0
  162. package/dist/{colors-BtKMHmBX.mjs → colors-8SzMRIVy.mjs} +2 -2
  163. package/dist/colors-CkPULM8m.mjs +1 -0
  164. package/dist/column-WLPMMSTS-DTBoovzp.mjs +1 -0
  165. package/dist/comm-5SLSESQG-DT3SY7zS.mjs +1 -0
  166. package/dist/constants-iOPbvTyC.mjs +2 -0
  167. package/dist/cose-bilkent-S5V4N54A-E5vxHQ63.mjs +2 -0
  168. package/dist/cp-XOYR4ABJ-Bs6Rpbb2.mjs +1 -0
  169. package/dist/{curl-47BFPSFW-CdMFK7aW.mjs → curl-47BFPSFW-xgS5bDTx.mjs} +2 -2
  170. package/dist/cut-OPC3VAGB-Bm1HBn07.mjs +1 -0
  171. package/dist/cytoscape.esm-BNCKY88j.mjs +332 -0
  172. package/dist/dagre-KV5264BT-Ci7CcQr4.mjs +5 -0
  173. package/dist/dagre-L3rg9n9q.mjs +2 -0
  174. package/dist/date-DD7FVA2V-Dv3os04S.mjs +1 -0
  175. package/dist/defaultLocale-BljHASC9.mjs +2 -0
  176. package/dist/diagram-5BDNPKRD-BM3C88Zx.mjs +11 -0
  177. package/dist/diagram-G4DWMVQ6-Dt1Kt-mj.mjs +25 -0
  178. package/dist/diagram-MMDJMWI5-DomPsk0L.mjs +44 -0
  179. package/dist/diagram-TYMM5635-eOfCqwhs.mjs +25 -0
  180. package/dist/diff-HJF2MPDN-Di-oK2tx.mjs +1 -0
  181. package/dist/dirname-LEMTZZFS-D-u8wJ0b.mjs +1 -0
  182. package/dist/{dist-BtrtJyLX.mjs → dist-D7myPw4s.mjs} +51 -51
  183. package/dist/dist-DZb_HoiN.mjs +2 -0
  184. package/dist/dist-GL5zcXSU.mjs +1 -0
  185. package/dist/dist-bundle-BnlRWriT.mjs +1 -0
  186. package/dist/{dist-bundle-B3l-HkEL.mjs → dist-bundle-D75dREX-.mjs} +2 -2
  187. package/dist/du-WO2ENHXQ-CO_jR0w6.mjs +1 -0
  188. package/dist/echo-O45JWWI2-RBT2dq5Y.mjs +1 -0
  189. package/dist/env-5EPCWSXR-DSwwgRF5.mjs +1 -0
  190. package/dist/erDiagram-SMLLAGMA-CPcwhEue.mjs +86 -0
  191. package/dist/{esm-CEs3LWY3.mjs → esm-BLMtE3s6.mjs} +2 -2
  192. package/dist/{esm-k1YlZnpm.mjs → esm-BS2W3Uzl.mjs} +2 -2
  193. package/dist/{execAsync-0jii24p9.mjs → execAsync-B4xEJACY.mjs} +2 -2
  194. package/dist/{execAsync-Czqc-yAz.mjs → execAsync-Chx_LJuI.mjs} +2 -2
  195. package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DunQtInX.mjs} +2 -2
  196. package/dist/expand-DTNXU4LQ-CtzV8vlq.mjs +1 -0
  197. package/dist/expansion-ENLSRCXJ-CNi8PTVy.mjs +1 -0
  198. package/dist/expr-5T3UU5KE-BOXtVHu2.mjs +1 -0
  199. package/dist/file-ZIGAJ4YS-Bt-1Wusv.mjs +1 -0
  200. package/dist/find-TPUOAIUQ-CJd25AiD.mjs +1 -0
  201. package/dist/flag-coverage-QT4N2Z44-DJYVWsW6.mjs +2 -0
  202. package/dist/flatten-CX5MwHL4.mjs +2 -0
  203. package/dist/flowDiagram-DWJPFMVM-WnIxEgSt.mjs +163 -0
  204. package/dist/fold-LDSORVYE-DZ2L21IZ.mjs +1 -0
  205. package/dist/ganttDiagram-T4ZO3ILL-BJEuIZ2X.mjs +293 -0
  206. package/dist/getMachineId-bsd-B7ue3N1o.mjs +2 -0
  207. package/dist/getMachineId-bsd-DYQqYqxN.mjs +2 -0
  208. package/dist/getMachineId-bsd-ucL-2FoT.mjs +2 -0
  209. package/dist/{getMachineId-darwin-C4PiguA-.mjs → getMachineId-darwin-BNCkZc-0.mjs} +2 -2
  210. package/dist/{getMachineId-darwin-COcA_c6l.mjs → getMachineId-darwin-CSTYV_Bd.mjs} +2 -2
  211. package/dist/{getMachineId-darwin-CywdnyvB.mjs → getMachineId-darwin-DWmBOUuk.mjs} +2 -2
  212. package/dist/getMachineId-linux-BaNp1ZEm.mjs +2 -0
  213. package/dist/getMachineId-linux-Bv6oOXxT.mjs +2 -0
  214. package/dist/getMachineId-linux-tTgUzx-Z.mjs +2 -0
  215. package/dist/getMachineId-unsupported-Kf9p6LJQ.mjs +2 -0
  216. package/dist/getMachineId-unsupported-fh_7WYkB.mjs +2 -0
  217. package/dist/getMachineId-unsupported-iDvWGFBk.mjs +2 -0
  218. package/dist/{getMachineId-win-B20yaCSB.mjs → getMachineId-win-Bo1_B38N.mjs} +2 -2
  219. package/dist/{getMachineId-win-BXWDfxLS.mjs → getMachineId-win-DHmdubaR.mjs} +2 -2
  220. package/dist/{getMachineId-win-BfSvDvM7.mjs → getMachineId-win-DQ2s9Z1n.mjs} +2 -2
  221. package/dist/{gh-detect-Dew_sAQh.mjs → gh-detect-CNO7EkgF.mjs} +2 -2
  222. package/dist/{git-handle--dq7Gq14-C8bnaqHA.mjs → git-handle--dq7Gq14-BpH0pmv5.mjs} +2 -2
  223. package/dist/git-handle-BaZ9y3AC-CCCU9J5d.mjs +1 -0
  224. package/dist/gitGraph-7Q5UKJZL-ClGjTWw6.mjs +1 -0
  225. package/dist/gitGraphDiagram-UUTBAWPF-BqA8KMTw.mjs +107 -0
  226. package/dist/graphlib-BI4uS4Lx.mjs +2 -0
  227. package/dist/grep-3AIAIJVR-CzG01gPs.mjs +1 -0
  228. package/dist/gzip-AQXSGOVS-B_BV2fa3.mjs +1 -0
  229. package/dist/head-HT2B6D2J-CjBr6WQ1.mjs +1 -0
  230. package/dist/help-VVWX7SA5-C4HsVKec.mjs +1 -0
  231. package/dist/history-J4QRNGRO-1CYG7cs0.mjs +1 -0
  232. package/dist/hostname-BK6HG2DE-BLS00ZWn.mjs +1 -0
  233. package/dist/html-to-markdown-TFCECAGV-5Fopg2Q5.mjs +1 -0
  234. package/dist/index.mjs +1 -1
  235. package/dist/info-OMHHGYJF-11Qh6VJr.mjs +1 -0
  236. package/dist/infoDiagram-42DDH7IO-0lM1lRCH.mjs +3 -0
  237. package/dist/init-BCTt64EX.mjs +1 -0
  238. package/dist/{init-BJASd1l6.mjs → init-DjkROmXh.mjs} +9 -9
  239. package/dist/init-L1KCVOHH.mjs +2 -0
  240. package/dist/{is-object-C-4FJ0rP.mjs → is-object-Cie0xXKD.mjs} +1 -1
  241. package/dist/isEmpty-CaTO-fHo.mjs +2 -0
  242. package/dist/ishikawaDiagram-UXIWVN3A-j-jlqjJX.mjs +71 -0
  243. package/dist/join-GG2LDHE5-C_A2RnwJ.mjs +1 -0
  244. package/dist/journeyDiagram-VCZTEJTY-BDX_OcrR.mjs +140 -0
  245. package/dist/jq-ODXZBPLY-hdWY1RUY.mjs +1 -0
  246. package/dist/{js-exec-M6UR76J5-Bo7dCQVP.mjs → js-exec-M6UR76J5-Cu6NIWHE.mjs} +2 -2
  247. package/dist/kanban-definition-6JOO6SKY-C5XJUD3U.mjs +90 -0
  248. package/dist/katex-DEJL_MaU.mjs +258 -0
  249. package/dist/{lib-Dl2j2VNl.mjs → lib-BbNAtG4h.mjs} +2 -2
  250. package/dist/lib-CItGM3rN.mjs +195 -0
  251. package/dist/{libesm-D3nlnq5U.mjs → libesm-Ob3yvbRV.mjs} +1 -1
  252. package/dist/line-C6RZPh4T.mjs +2 -0
  253. package/dist/linear-gA98NGf7.mjs +2 -0
  254. package/dist/ln-4TRFBYAT-CMm4PFgi.mjs +1 -0
  255. package/dist/loader-DlfckqdT.mjs +1 -0
  256. package/dist/{loader-THH_o851.mjs → loader-ZHA8qsxF.mjs} +2 -2
  257. package/dist/ls-KSXFZCWH-Beyjypib.mjs +1 -0
  258. package/dist/{lzma-DMoteSiK.mjs → lzma-D4yjI8KW.mjs} +1 -1
  259. package/dist/{mcp-migrate-event-BF8ILHwp.mjs → mcp-migrate-event-D0NrGjvc.mjs} +1 -1
  260. package/dist/md5sum-INMIK4DX-C2RH1Ljb.mjs +1 -0
  261. package/dist/mermaid-parser.core-Cx4njenA.mjs +4 -0
  262. package/dist/mermaid.core-CcmmzbTt.mjs +16 -0
  263. package/dist/mindmap-definition-QFDTVHPH-WLdthwDy.mjs +97 -0
  264. package/dist/mkdir-TDEMSB6C-BeLs_C7x.mjs +1 -0
  265. package/dist/mv-Z6MORUFL-BDAoI0Wd.mjs +1 -0
  266. package/dist/nl-U5YJDM32-SP99R3HJ.mjs +1 -0
  267. package/dist/od-VJEF2UR5-BR0Ho1t5.mjs +1 -0
  268. package/dist/{open-browser-C6LU_1mt.mjs → open-browser-DHTbHSqx.mjs} +1 -1
  269. package/dist/ordinal-BCuCMCHk.mjs +2 -0
  270. package/dist/packet-4T2RLAQJ-jzF54bgp.mjs +1 -0
  271. package/dist/paste-7N6AFSDS-Bz3kd4hU.mjs +1 -0
  272. package/dist/path-C9DYqGo_.mjs +2 -0
  273. package/dist/pie-ZZUOXDRM-x8WFG16Q.mjs +1 -0
  274. package/dist/pieDiagram-DEJITSTG-7oeIAT-R.mjs +31 -0
  275. package/dist/preview-1rr7IXHj.mjs +1 -0
  276. package/dist/{preview-D2aUkK2G.mjs → preview-BI2sVxtF.mjs} +2 -2
  277. package/dist/printf-CX64KX2P-GrZNCK4M.mjs +1 -0
  278. package/dist/public/assets/{ActivityModeContent-icee786E.js → ActivityModeContent-BWmb9zCZ.js} +1 -1
  279. package/dist/public/assets/{DocumentContext-CPNCcJL_.js → DocumentContext-9Sn6Kq-o.js} +22 -22
  280. package/dist/public/assets/{GraphPanel-Ru_nQ2bj.js → GraphPanel-PYMXWVsg.js} +1 -1
  281. package/dist/public/assets/{SettingsDialogBody-Cd4Y_C3_.js → SettingsDialogBody-YOvgrn38.js} +1 -1
  282. package/dist/public/assets/{SourceEditor-DorrRiI-.js → SourceEditor-D1zhJS8f.js} +1 -1
  283. package/dist/public/assets/{config-validation-events-VDOuCcdw.js → config-validation-events-BUyp1R_U.js} +1 -1
  284. package/dist/public/assets/index-BXgWyDFu.css +1 -0
  285. package/dist/public/assets/index-CEtMQRxi.js +1915 -0
  286. package/dist/public/assets/{keyboard-shortcuts-Bk8qxCCx.js → keyboard-shortcuts-CNJfczoS.js} +1 -1
  287. package/dist/public/assets/prop-types-COA7UVY9.js +516 -0
  288. package/dist/public/assets/{target-navigation-intent-VPniz9mY.js → target-navigation-intent-Cp-mOxXo.js} +1 -1
  289. package/dist/public/assets/{typing-burst-detector-BIeQ5WQY.js → typing-burst-detector-DWg86xJw.js} +1 -1
  290. package/dist/public/index.html +8 -8
  291. package/dist/pwd-D4OZ7N27-DDRhZsId.mjs +1 -0
  292. package/dist/{python3-AUFTPCU6-1PPUn2I7.mjs → python3-AUFTPCU6-DmPp1QHj.mjs} +2 -2
  293. package/dist/quadrantDiagram-34T5L4WZ-DWVBhb1E.mjs +8 -0
  294. package/dist/radar-PYXPWWZC-C-wbHKao.mjs +1 -0
  295. package/dist/readlink-MI4GCHJF-mNeJ3km7.mjs +1 -0
  296. package/dist/reduce-V0ODtSr4.mjs +2 -0
  297. package/dist/{repair-launch-json-Cc9XVvLw.mjs → repair-launch-json-DCXsAQuF.mjs} +2 -2
  298. package/dist/{repair-mcp-configs-CMdzPlf3.mjs → repair-mcp-configs-BV1WJulV.mjs} +2 -2
  299. package/dist/repair-skills-BSA3PyS7.mjs +1 -0
  300. package/dist/{repair-skills-DeOPRNTk.mjs → repair-skills-uHQb0hCn.mjs} +2 -2
  301. package/dist/requirementDiagram-MS252O5E-Bneel37I.mjs +85 -0
  302. package/dist/rev-XOSYPP45-KAKdorsx.mjs +1 -0
  303. package/dist/rg-FOQSCCX3-BWOdKDEd.mjs +1 -0
  304. package/dist/rm-RTZG23RL-D4Xj3X_m.mjs +1 -0
  305. package/dist/rmdir-XTQXT7RK-Bx-u3U5l.mjs +1 -0
  306. package/dist/rough.cjs-C-63phNL.mjs +2 -0
  307. package/dist/sankeyDiagram-XADWPNL6-4f2f9-uf.mjs +11 -0
  308. package/dist/sed-VFTTATXJ-DmL_7Y-J.mjs +1 -0
  309. package/dist/seq-RN5ZUASB-DeaNEJEM.mjs +1 -0
  310. package/dist/sequenceDiagram-FGHM5R23-B1K4VtLp.mjs +158 -0
  311. package/dist/{server-lock-BpjJj3OD-dbH8FP82.mjs → server-lock-BpjJj3OD-CUhVvie4.mjs} +58 -58
  312. package/dist/server-lock-CyhBidkz-D41BTXw5.mjs +1 -0
  313. package/dist/sha1sum-VJPNLNU6-DYUNX0rt.mjs +1 -0
  314. package/dist/sha256sum-PI32XWXY-BwDMGEnF.mjs +1 -0
  315. package/dist/sleep-VZFPZFWA-D3IG7CwN.mjs +1 -0
  316. package/dist/sort-DCNRDA7U-BfL8J8kf.mjs +1 -0
  317. package/dist/split-SITCSYCZ-Q5NIWguo.mjs +1 -0
  318. package/dist/sqlite3-56UMWEY3-B4_LAdBq.mjs +1 -0
  319. package/dist/src-BkCVz_TJ.mjs +2 -0
  320. package/dist/{src-C_Q7AFoS.mjs → src-DnynaviS.mjs} +3 -3
  321. package/dist/start-DYkSDg3x.mjs +1 -0
  322. package/dist/{start-Dl_YsC2w.mjs → start-NIyRsRSX.mjs} +2 -2
  323. package/dist/stat-BT5A227F-CYFqsI8W.mjs +1 -0
  324. package/dist/stateDiagram-FHFEXIEX-BREbMXiC.mjs +2 -0
  325. package/dist/stateDiagram-v2-QKLJ7IA2-DQeH2s3K.mjs +2 -0
  326. package/dist/strings-7PLOGTPD-BLW4mXRs.mjs +1 -0
  327. package/dist/tac-SJGXQ4T2-BGR2Dq7O.mjs +1 -0
  328. package/dist/tail-S5ULNTJU-BOBd42y5.mjs +1 -0
  329. package/dist/tar-ANUBEFJY-GYQ0YvKO.mjs +1 -0
  330. package/dist/tee-O7VXZDCO-Bg8MXC_K.mjs +1 -0
  331. package/dist/time-DEUO3QV2-CxVP9vXG.mjs +1 -0
  332. package/dist/timeline-definition-GMOUNBTQ-Bd7XEw7o.mjs +121 -0
  333. package/dist/timeout-VRKMCG72-CVG2Q30a.mjs +1 -0
  334. package/dist/touch-DX2IJOQ4-DmEja_Fu.mjs +1 -0
  335. package/dist/tr-2HXZRDSW-DWcyuCoi.mjs +1 -0
  336. package/dist/tree-LYXBS7DC-CFaeUWGI.mjs +1 -0
  337. package/dist/treeView-SZITEDCU-DXyZ3zQc.mjs +1 -0
  338. package/dist/treemap-W4RFUUIX-CZRYHpYU.mjs +1 -0
  339. package/dist/true-WHJNXCHG-CJH22fVg.mjs +1 -0
  340. package/dist/unexpand-RGTMIGZM-Uj1QzdPV.mjs +1 -0
  341. package/dist/uniq-SUNANL47-MRCnRrGo.mjs +1 -0
  342. package/dist/vennDiagram-DHZGUBPP-Bk-INjRY.mjs +35 -0
  343. package/dist/wardley-RL74JXVD-UKzwcBOa.mjs +1 -0
  344. package/dist/wardleyDiagram-NUSXRM2D-DOD6wQla.mjs +21 -0
  345. package/dist/wc-TQB3VNOX-JPk1lni-.mjs +1 -0
  346. package/dist/which-XZHEH76L-Cl63MOrV.mjs +1 -0
  347. package/dist/whoami-DGKU3D2X-CB3itqHE.mjs +1 -0
  348. package/dist/wrapper-BZO_sIci.mjs +7 -0
  349. package/dist/{write-project-skill-D_1mDT-1.mjs → write-project-skill-DnuutHfZ.mjs} +2 -2
  350. package/dist/xan-BXDXYEIB-ZPqGVO90.mjs +1 -0
  351. package/dist/xan-view-ECQUO7AJ-C-WHEJiv.mjs +1 -0
  352. package/dist/xargs-I6EZUCYF-BvcSF5Y7.mjs +1 -0
  353. package/dist/xychartDiagram-5P7HB3ND-B4AGYFQs.mjs +8 -0
  354. package/dist/yazl-CQSNnbvt.mjs +1 -0
  355. package/dist/{yazl-CB0sfSbo.mjs → yazl-Docqgl6q.mjs} +2 -2
  356. package/dist/yq-MJMAR36V-_D_zdU3z.mjs +1 -0
  357. package/package.json +1 -1
  358. package/scripts/aggregate-tolerance-class-fires.ts +19 -10
  359. package/dist/alias-JE7RI5QX-oTDRHt3W.mjs +0 -1
  360. package/dist/awk2-POPGKRAI-BZ_7e8H1.mjs +0 -1
  361. package/dist/base64-4YMZCVJ5-BhIrz6He.mjs +0 -1
  362. package/dist/basename-AA2KJYZQ-C5R0pcfV.mjs +0 -1
  363. package/dist/bash-IJWYRKFO-DywpGlyx.mjs +0 -1
  364. package/dist/build-CZpdADQB.mjs +0 -1
  365. package/dist/cat-RDUMLXKC-BNwer8pK.mjs +0 -1
  366. package/dist/chmod-SYMGL4JA-BN-B1xmG.mjs +0 -1
  367. package/dist/clear-5CZ5X4YR-B6kVcfOw.mjs +0 -1
  368. package/dist/colors-gw_5YWUu.mjs +0 -1
  369. package/dist/column-WLPMMSTS-CEev_e2R.mjs +0 -1
  370. package/dist/comm-5SLSESQG-BXsiD7To.mjs +0 -1
  371. package/dist/constants-DAbcLLp_.mjs +0 -2
  372. package/dist/cp-XOYR4ABJ-Dy5aHk72.mjs +0 -1
  373. package/dist/cut-OPC3VAGB-GohHdbJ4.mjs +0 -1
  374. package/dist/date-DD7FVA2V-RM_vdvCh.mjs +0 -1
  375. package/dist/diff-HJF2MPDN-DTuHZGVW.mjs +0 -1
  376. package/dist/dirname-LEMTZZFS-C6aDcxLl.mjs +0 -1
  377. package/dist/dist-DiX0-B7g.mjs +0 -1
  378. package/dist/dist-bundle-XlngXUNr.mjs +0 -1
  379. package/dist/du-WO2ENHXQ-Da1HuQkH.mjs +0 -1
  380. package/dist/echo-O45JWWI2-Cr9jHdYm.mjs +0 -1
  381. package/dist/env-5EPCWSXR-6RSqo9Bn.mjs +0 -1
  382. package/dist/expand-DTNXU4LQ-D4dbwBrD.mjs +0 -1
  383. package/dist/expansion-ENLSRCXJ-Bv6RV19y.mjs +0 -1
  384. package/dist/expr-5T3UU5KE-D7ekHiOy.mjs +0 -1
  385. package/dist/file-ZIGAJ4YS-DzKHvjCj.mjs +0 -1
  386. package/dist/find-TPUOAIUQ-DuBwOGWI.mjs +0 -1
  387. package/dist/flag-coverage-QT4N2Z44-DmAL_7h5.mjs +0 -2
  388. package/dist/fold-LDSORVYE-BQyKAmCr.mjs +0 -1
  389. package/dist/getMachineId-bsd-CzP05Ffc.mjs +0 -2
  390. package/dist/getMachineId-bsd-D0erQsHH.mjs +0 -2
  391. package/dist/getMachineId-bsd-Dp2q7huT.mjs +0 -2
  392. package/dist/getMachineId-linux-BRPjBsHg.mjs +0 -2
  393. package/dist/getMachineId-linux-CQZJR55S.mjs +0 -2
  394. package/dist/getMachineId-linux-DcN5tfI_.mjs +0 -2
  395. package/dist/getMachineId-unsupported-BokXsjFr.mjs +0 -2
  396. package/dist/getMachineId-unsupported-DZAxq-oW.mjs +0 -2
  397. package/dist/getMachineId-unsupported-GPbM_evk.mjs +0 -2
  398. package/dist/git-handle-BaZ9y3AC-B05Md-6F.mjs +0 -1
  399. package/dist/grep-3AIAIJVR-DhLMPK9o.mjs +0 -1
  400. package/dist/gzip-AQXSGOVS-kzAFjO_Y.mjs +0 -1
  401. package/dist/head-HT2B6D2J-BR-dv_ar.mjs +0 -1
  402. package/dist/help-VVWX7SA5-jdvqGfQj.mjs +0 -1
  403. package/dist/history-J4QRNGRO-jb5B-tWQ.mjs +0 -1
  404. package/dist/hostname-BK6HG2DE-CVVAGatl.mjs +0 -1
  405. package/dist/html-to-markdown-TFCECAGV-B5yiu2Qr.mjs +0 -1
  406. package/dist/init-D1UzS4tm.mjs +0 -1
  407. package/dist/join-GG2LDHE5-BLgXAHZ_.mjs +0 -1
  408. package/dist/jq-ODXZBPLY-JpgGenzN.mjs +0 -1
  409. package/dist/ln-4TRFBYAT-C7xn5Rqr.mjs +0 -1
  410. package/dist/loader-D3p97Pi7.mjs +0 -1
  411. package/dist/ls-KSXFZCWH-BFVVAoBi.mjs +0 -1
  412. package/dist/md5sum-INMIK4DX-0GZIz1Ci.mjs +0 -1
  413. package/dist/mkdir-TDEMSB6C-DTyG__G-.mjs +0 -1
  414. package/dist/mv-Z6MORUFL-CmjBk72Q.mjs +0 -1
  415. package/dist/nl-U5YJDM32-5XaxKjVN.mjs +0 -1
  416. package/dist/od-VJEF2UR5-BYZOEzSd.mjs +0 -1
  417. package/dist/paste-7N6AFSDS-BnDgUhuq.mjs +0 -1
  418. package/dist/preview-BpHHevx8.mjs +0 -1
  419. package/dist/printf-CX64KX2P-0abCeF-D.mjs +0 -1
  420. package/dist/public/assets/index-C-eV_aX_.css +0 -1
  421. package/dist/public/assets/index-CKQZFT_Z.js +0 -1915
  422. package/dist/public/assets/prop-types-CiBqwiqK.js +0 -516
  423. package/dist/pwd-D4OZ7N27-AYS4A9o1.mjs +0 -1
  424. package/dist/readlink-MI4GCHJF-BvzND_DT.mjs +0 -1
  425. package/dist/repair-skills-DoHj-jkH.mjs +0 -1
  426. package/dist/rev-XOSYPP45-Bqdhxuez.mjs +0 -1
  427. package/dist/rg-FOQSCCX3-CrVzsut-.mjs +0 -1
  428. package/dist/rm-RTZG23RL-DVQCHLUL.mjs +0 -1
  429. package/dist/rmdir-XTQXT7RK-DrUUkxCF.mjs +0 -1
  430. package/dist/sed-VFTTATXJ-QHemmbCP.mjs +0 -1
  431. package/dist/seq-RN5ZUASB-BBSGpJq5.mjs +0 -1
  432. package/dist/server-lock-CyhBidkz-BRXgOcGh.mjs +0 -1
  433. package/dist/sha1sum-VJPNLNU6-D6-7B21n.mjs +0 -1
  434. package/dist/sha256sum-PI32XWXY-BYVtIJOS.mjs +0 -1
  435. package/dist/sleep-VZFPZFWA-C-x_VGtG.mjs +0 -1
  436. package/dist/sort-DCNRDA7U-BTlvuG7X.mjs +0 -1
  437. package/dist/split-SITCSYCZ-BmGbaiMe.mjs +0 -1
  438. package/dist/sqlite3-56UMWEY3-Cjvsy5Oo.mjs +0 -1
  439. package/dist/start-C8peDw-k.mjs +0 -1
  440. package/dist/stat-BT5A227F-BjNsVAze.mjs +0 -1
  441. package/dist/strings-7PLOGTPD-B6_kjNM-.mjs +0 -1
  442. package/dist/tac-SJGXQ4T2-BEQ9sZmi.mjs +0 -1
  443. package/dist/tail-S5ULNTJU-DSe2aEO8.mjs +0 -1
  444. package/dist/tar-ANUBEFJY-HbwMpE1g.mjs +0 -1
  445. package/dist/tee-O7VXZDCO-BD6QXg_b.mjs +0 -1
  446. package/dist/time-DEUO3QV2-CRnH51wk.mjs +0 -1
  447. package/dist/timeout-VRKMCG72-D_oS0IDg.mjs +0 -1
  448. package/dist/touch-DX2IJOQ4-4yR1M9Nd.mjs +0 -1
  449. package/dist/tr-2HXZRDSW-Ca-NmLk7.mjs +0 -1
  450. package/dist/tree-LYXBS7DC-CR3kfmh6.mjs +0 -1
  451. package/dist/true-WHJNXCHG-x85l8vsW.mjs +0 -1
  452. package/dist/unexpand-RGTMIGZM-D-1EwjbB.mjs +0 -1
  453. package/dist/uniq-SUNANL47-DtBj3lmA.mjs +0 -1
  454. package/dist/wc-TQB3VNOX-Qw6WjSl1.mjs +0 -1
  455. package/dist/which-XZHEH76L-B-Xo178d.mjs +0 -1
  456. package/dist/whoami-DGKU3D2X-_Mgzu6ty.mjs +0 -1
  457. package/dist/xan-BXDXYEIB-qijhj_cA.mjs +0 -1
  458. package/dist/xan-view-ECQUO7AJ-BfZejrY6.mjs +0 -1
  459. package/dist/xargs-I6EZUCYF-aS184J1w.mjs +0 -1
  460. package/dist/yazl-Dqnhfxk7.mjs +0 -1
  461. package/dist/yq-MJMAR36V-Cgql6fKu.mjs +0 -1
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{t}from"./chunk-IPJHKYVM-D6H6ZTtk.mjs";import{n,r,t as i}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{s as a}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as o,r as s,t as c}from"./chunk-VLGZJRPG-DbWYxLfI.mjs";import{gunzipSync as l}from"node:zlib";var u=a({js:{extensions:[`.js`,`.mjs`,`.cjs`,`.jsx`],globs:[]},ts:{extensions:[`.ts`,`.tsx`,`.mts`,`.cts`],globs:[]},html:{extensions:[`.html`,`.htm`,`.xhtml`],globs:[]},css:{extensions:[`.css`,`.scss`,`.sass`,`.less`],globs:[]},json:{extensions:[`.json`,`.jsonc`,`.json5`],globs:[]},xml:{extensions:[`.xml`,`.xsl`,`.xslt`],globs:[]},c:{extensions:[`.c`,`.h`],globs:[]},cpp:{extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`,`.h`],globs:[]},rust:{extensions:[`.rs`],globs:[]},go:{extensions:[`.go`],globs:[]},zig:{extensions:[`.zig`],globs:[]},java:{extensions:[`.java`],globs:[]},kotlin:{extensions:[`.kt`,`.kts`],globs:[]},scala:{extensions:[`.scala`,`.sc`],globs:[]},clojure:{extensions:[`.clj`,`.cljc`,`.cljs`,`.edn`],globs:[]},py:{extensions:[`.py`,`.pyi`,`.pyw`],globs:[]},rb:{extensions:[`.rb`,`.rake`,`.gemspec`],globs:[`Rakefile`,`Gemfile`]},php:{extensions:[`.php`,`.phtml`,`.php3`,`.php4`,`.php5`],globs:[]},perl:{extensions:[`.pl`,`.pm`,`.pod`,`.t`],globs:[]},lua:{extensions:[`.lua`],globs:[]},sh:{extensions:[`.sh`,`.bash`,`.zsh`,`.fish`],globs:[`.bashrc`,`.zshrc`,`.profile`]},bat:{extensions:[`.bat`,`.cmd`],globs:[]},ps:{extensions:[`.ps1`,`.psm1`,`.psd1`],globs:[]},yaml:{extensions:[`.yaml`,`.yml`],globs:[]},toml:{extensions:[`.toml`],globs:[`Cargo.toml`,`pyproject.toml`]},ini:{extensions:[`.ini`,`.cfg`,`.conf`],globs:[]},csv:{extensions:[`.csv`,`.tsv`],globs:[]},md:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},markdown:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},rst:{extensions:[`.rst`],globs:[]},txt:{extensions:[`.txt`,`.text`],globs:[]},tex:{extensions:[`.tex`,`.ltx`,`.sty`,`.cls`],globs:[]},sql:{extensions:[`.sql`],globs:[]},graphql:{extensions:[`.graphql`,`.gql`],globs:[]},proto:{extensions:[`.proto`],globs:[]},make:{extensions:[`.mk`,`.mak`],globs:[`Makefile`,`GNUmakefile`,`makefile`]},docker:{extensions:[],globs:[`Dockerfile`,`Dockerfile.*`,`*.dockerfile`]},tf:{extensions:[`.tf`,`.tfvars`],globs:[]}}),d=class{types;constructor(){this.types=new Map(Object.entries(u).map(([e,t])=>[e,{extensions:[...t.extensions],globs:[...t.globs]}]))}addType(e){let t=e.indexOf(`:`);if(t===-1)return;let n=e.slice(0,t),r=e.slice(t+1);if(r.startsWith(`include:`)){let e=r.slice(8),t=this.types.get(e);if(t){let e=this.types.get(n)||{extensions:[],globs:[]};e.extensions.push(...t.extensions),e.globs.push(...t.globs),this.types.set(n,e)}}else{let e=this.types.get(n)||{extensions:[],globs:[]};if(r.startsWith(`*.`)&&!r.slice(2).includes(`*`)){let t=r.slice(1);e.extensions.includes(t)||e.extensions.push(t)}else e.globs.includes(r)||e.globs.push(r);this.types.set(n,e)}}clearType(e){let t=this.types.get(e);t&&(t.extensions=[],t.globs=[])}getType(e){return this.types.get(e)}getAllTypes(){return this.types}matchesType(t,n){let r=t.toLowerCase();for(let i of n){if(i===`all`){if(this.matchesAnyType(t))return!0;continue}let n=this.types.get(i);if(n){for(let e of n.extensions)if(r.endsWith(e))return!0;for(let i of n.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(r===i.toLowerCase())return!0}}return!1}matchesAnyType(t){let n=t.toLowerCase();for(let r of this.types.values()){for(let e of r.extensions)if(n.endsWith(e))return!0;for(let i of r.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(n===i.toLowerCase())return!0}return!1}};function f(){let e=[];for(let[t,n]of Object.entries(u).sort()){let r=[];for(let e of n.extensions)r.push(`*${e}`);for(let e of n.globs)r.push(e);e.push(`${t}: ${r.join(`, `)}`)}return`${e.join(`
1
+ import{t as e}from"./chunk-YNYSPYQ5-gU4-j5DO.mjs";import{t}from"./chunk-IPJHKYVM-CUKythEA.mjs";import{n,r,t as i}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{s as a}from"./chunk-7TSDKFEO-CMVuiOdP.mjs";import{n as o,r as s,t as c}from"./chunk-VLGZJRPG-DpYP_EVp.mjs";import{gunzipSync as l}from"node:zlib";var u=a({js:{extensions:[`.js`,`.mjs`,`.cjs`,`.jsx`],globs:[]},ts:{extensions:[`.ts`,`.tsx`,`.mts`,`.cts`],globs:[]},html:{extensions:[`.html`,`.htm`,`.xhtml`],globs:[]},css:{extensions:[`.css`,`.scss`,`.sass`,`.less`],globs:[]},json:{extensions:[`.json`,`.jsonc`,`.json5`],globs:[]},xml:{extensions:[`.xml`,`.xsl`,`.xslt`],globs:[]},c:{extensions:[`.c`,`.h`],globs:[]},cpp:{extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`,`.h`],globs:[]},rust:{extensions:[`.rs`],globs:[]},go:{extensions:[`.go`],globs:[]},zig:{extensions:[`.zig`],globs:[]},java:{extensions:[`.java`],globs:[]},kotlin:{extensions:[`.kt`,`.kts`],globs:[]},scala:{extensions:[`.scala`,`.sc`],globs:[]},clojure:{extensions:[`.clj`,`.cljc`,`.cljs`,`.edn`],globs:[]},py:{extensions:[`.py`,`.pyi`,`.pyw`],globs:[]},rb:{extensions:[`.rb`,`.rake`,`.gemspec`],globs:[`Rakefile`,`Gemfile`]},php:{extensions:[`.php`,`.phtml`,`.php3`,`.php4`,`.php5`],globs:[]},perl:{extensions:[`.pl`,`.pm`,`.pod`,`.t`],globs:[]},lua:{extensions:[`.lua`],globs:[]},sh:{extensions:[`.sh`,`.bash`,`.zsh`,`.fish`],globs:[`.bashrc`,`.zshrc`,`.profile`]},bat:{extensions:[`.bat`,`.cmd`],globs:[]},ps:{extensions:[`.ps1`,`.psm1`,`.psd1`],globs:[]},yaml:{extensions:[`.yaml`,`.yml`],globs:[]},toml:{extensions:[`.toml`],globs:[`Cargo.toml`,`pyproject.toml`]},ini:{extensions:[`.ini`,`.cfg`,`.conf`],globs:[]},csv:{extensions:[`.csv`,`.tsv`],globs:[]},md:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},markdown:{extensions:[`.md`,`.mdx`,`.markdown`,`.mdown`,`.mkd`],globs:[]},rst:{extensions:[`.rst`],globs:[]},txt:{extensions:[`.txt`,`.text`],globs:[]},tex:{extensions:[`.tex`,`.ltx`,`.sty`,`.cls`],globs:[]},sql:{extensions:[`.sql`],globs:[]},graphql:{extensions:[`.graphql`,`.gql`],globs:[]},proto:{extensions:[`.proto`],globs:[]},make:{extensions:[`.mk`,`.mak`],globs:[`Makefile`,`GNUmakefile`,`makefile`]},docker:{extensions:[],globs:[`Dockerfile`,`Dockerfile.*`,`*.dockerfile`]},tf:{extensions:[`.tf`,`.tfvars`],globs:[]}}),d=class{types;constructor(){this.types=new Map(Object.entries(u).map(([e,t])=>[e,{extensions:[...t.extensions],globs:[...t.globs]}]))}addType(e){let t=e.indexOf(`:`);if(t===-1)return;let n=e.slice(0,t),r=e.slice(t+1);if(r.startsWith(`include:`)){let e=r.slice(8),t=this.types.get(e);if(t){let e=this.types.get(n)||{extensions:[],globs:[]};e.extensions.push(...t.extensions),e.globs.push(...t.globs),this.types.set(n,e)}}else{let e=this.types.get(n)||{extensions:[],globs:[]};if(r.startsWith(`*.`)&&!r.slice(2).includes(`*`)){let t=r.slice(1);e.extensions.includes(t)||e.extensions.push(t)}else e.globs.includes(r)||e.globs.push(r);this.types.set(n,e)}}clearType(e){let t=this.types.get(e);t&&(t.extensions=[],t.globs=[])}getType(e){return this.types.get(e)}getAllTypes(){return this.types}matchesType(t,n){let r=t.toLowerCase();for(let i of n){if(i===`all`){if(this.matchesAnyType(t))return!0;continue}let n=this.types.get(i);if(n){for(let e of n.extensions)if(r.endsWith(e))return!0;for(let i of n.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(r===i.toLowerCase())return!0}}return!1}matchesAnyType(t){let n=t.toLowerCase();for(let r of this.types.values()){for(let e of r.extensions)if(n.endsWith(e))return!0;for(let i of r.globs)if(i.includes(`*`)){if(e(`^${i.replace(/\./g,`\\.`).replace(/\*/g,`.*`)}$`,`i`).test(t))return!0}else if(n===i.toLowerCase())return!0}return!1}};function f(){let e=[];for(let[t,n]of Object.entries(u).sort()){let r=[];for(let e of n.extensions)r.push(`*${e}`);for(let e of n.globs)r.push(e);e.push(`${t}: ${r.join(`, `)}`)}return`${e.join(`
2
2
  `)}
3
3
  `}function p(){return{ignoreCase:!1,caseSensitive:!1,smartCase:!0,fixedStrings:!1,wordRegexp:!1,lineRegexp:!1,invertMatch:!1,multiline:!1,multilineDotall:!1,patterns:[],patternFiles:[],count:!1,countMatches:!1,files:!1,filesWithMatches:!1,filesWithoutMatch:!1,stats:!1,onlyMatching:!1,maxCount:0,lineNumber:!0,noFilename:!1,withFilename:!1,nullSeparator:!1,byteOffset:!1,column:!1,vimgrep:!1,replace:null,afterContext:0,beforeContext:0,contextSeparator:`--`,quiet:!1,heading:!1,passthru:!1,includeZero:!1,sort:`path`,json:!1,globs:[],iglobs:[],globCaseInsensitive:!1,types:[],typesNot:[],typeAdd:[],typeClear:[],hidden:!1,noIgnore:!1,noIgnoreDot:!1,noIgnoreVcs:!1,ignoreFiles:[],maxDepth:256,maxFilesize:0,followSymlinks:!1,searchZip:!1,searchBinary:!1,preprocessor:null,preprocessorGlobs:[]}}function m(e){let t=e.match(/^(\d+)([KMG])?$/i);if(!t)return 0;let n=parseInt(t[1],10);switch((t[2]||``).toUpperCase()){case`K`:return n*1024;case`M`:return n*1024*1024;case`G`:return n*1024*1024*1024;default:return n}}function h(e){return/^\d+[KMG]?$/i.test(e)?null:{stdout:``,stderr:`rg: invalid --max-filesize value: ${e}
4
4
  `,exitCode:1}}function g(e){return null}var _=[{short:`g`,long:`glob`,target:`globs`,multi:!0},{long:`iglob`,target:`iglobs`,multi:!0},{short:`t`,long:`type`,target:`types`,multi:!0,validate:g},{short:`T`,long:`type-not`,target:`typesNot`,multi:!0,validate:g},{long:`type-add`,target:`typeAdd`,multi:!0},{long:`type-clear`,target:`typeClear`,multi:!0},{short:`m`,long:`max-count`,target:`maxCount`,parse:parseInt},{short:`e`,long:`regexp`,target:`patterns`,multi:!0},{short:`f`,long:`file`,target:`patternFiles`,multi:!0},{short:`r`,long:`replace`,target:`replace`},{short:`d`,long:`max-depth`,target:`maxDepth`,parse:parseInt},{long:`max-filesize`,target:`maxFilesize`,parse:m,validate:h},{long:`context-separator`,target:`contextSeparator`},{short:`j`,long:`threads`,target:`maxDepth`,parse:()=>1/0},{long:`ignore-file`,target:`ignoreFiles`,multi:!0},{long:`pre`,target:`preprocessor`},{long:`pre-glob`,target:`preprocessorGlobs`,multi:!0}],v=new Map([[`i`,e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],[`--ignore-case`,e=>{e.ignoreCase=!0,e.caseSensitive=!1,e.smartCase=!1}],[`s`,e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],[`--case-sensitive`,e=>{e.caseSensitive=!0,e.ignoreCase=!1,e.smartCase=!1}],[`S`,e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],[`--smart-case`,e=>{e.smartCase=!0,e.ignoreCase=!1,e.caseSensitive=!1}],[`F`,e=>{e.fixedStrings=!0}],[`--fixed-strings`,e=>{e.fixedStrings=!0}],[`w`,e=>{e.wordRegexp=!0}],[`--word-regexp`,e=>{e.wordRegexp=!0}],[`x`,e=>{e.lineRegexp=!0}],[`--line-regexp`,e=>{e.lineRegexp=!0}],[`v`,e=>{e.invertMatch=!0}],[`--invert-match`,e=>{e.invertMatch=!0}],[`U`,e=>{e.multiline=!0}],[`--multiline`,e=>{e.multiline=!0}],[`--multiline-dotall`,e=>{e.multilineDotall=!0,e.multiline=!0}],[`c`,e=>{e.count=!0}],[`--count`,e=>{e.count=!0}],[`--count-matches`,e=>{e.countMatches=!0}],[`l`,e=>{e.filesWithMatches=!0}],[`--files`,e=>{e.files=!0}],[`--files-with-matches`,e=>{e.filesWithMatches=!0}],[`--files-without-match`,e=>{e.filesWithoutMatch=!0}],[`--stats`,e=>{e.stats=!0}],[`o`,e=>{e.onlyMatching=!0}],[`--only-matching`,e=>{e.onlyMatching=!0}],[`q`,e=>{e.quiet=!0}],[`--quiet`,e=>{e.quiet=!0}],[`N`,e=>{e.lineNumber=!1}],[`--no-line-number`,e=>{e.lineNumber=!1}],[`H`,e=>{e.withFilename=!0}],[`--with-filename`,e=>{e.withFilename=!0}],[`I`,e=>{e.noFilename=!0}],[`--no-filename`,e=>{e.noFilename=!0}],[`0`,e=>{e.nullSeparator=!0}],[`--null`,e=>{e.nullSeparator=!0}],[`b`,e=>{e.byteOffset=!0}],[`--byte-offset`,e=>{e.byteOffset=!0}],[`--column`,e=>{e.column=!0,e.lineNumber=!0}],[`--no-column`,e=>{e.column=!1}],[`--vimgrep`,e=>{e.vimgrep=!0,e.column=!0,e.lineNumber=!0}],[`--json`,e=>{e.json=!0}],[`--hidden`,e=>{e.hidden=!0}],[`--no-ignore`,e=>{e.noIgnore=!0}],[`--no-ignore-dot`,e=>{e.noIgnoreDot=!0}],[`--no-ignore-vcs`,e=>{e.noIgnoreVcs=!0}],[`L`,e=>{e.followSymlinks=!0}],[`--follow`,e=>{e.followSymlinks=!0}],[`z`,e=>{e.searchZip=!0}],[`--search-zip`,e=>{e.searchZip=!0}],[`a`,e=>{e.searchBinary=!0}],[`--text`,e=>{e.searchBinary=!0}],[`--heading`,e=>{e.heading=!0}],[`--passthru`,e=>{e.passthru=!0}],[`--include-zero`,e=>{e.includeZero=!0}],[`--glob-case-insensitive`,e=>{e.globCaseInsensitive=!0}]]),y=new Set([`n`,`--line-number`]);function b(e){e.hidden?e.searchBinary=!0:e.noIgnore?e.hidden=!0:e.noIgnore=!0}function x(e,t,n){let r=e[t];for(let i of _){if(r.startsWith(`--${i.long}=`)){let e=C(n,i,r.slice(`--${i.long}=`.length));return e?{newIndex:t,error:e}:{newIndex:t}}if(i.short&&r.startsWith(`-${i.short}`)&&r.length>2){let e=C(n,i,r.slice(2));return e?{newIndex:t,error:e}:{newIndex:t}}if(i.short&&r===`-${i.short}`||r===`--${i.long}`){if(t+1>=e.length)return null;let r=e[t+1],a=C(n,i,r);return a?{newIndex:t+1,error:a}:{newIndex:t+1}}}return null}function S(e){return _.find(t=>t.short===e)}function C(e,t,n){if(t.validate){let e=t.validate(n);if(e)return e}let r=t.parse?t.parse(n):n;t.multi?e[t.target].push(r):e[t.target]=r}function w(e,t){let n=e[t];if(n===`--sort`&&t+1<e.length){let n=e[t+1];if(n===`path`||n===`none`)return{value:n,newIndex:t+1}}if(n.startsWith(`--sort=`)){let e=n.slice(7);if(e===`path`||e===`none`)return{value:e,newIndex:t}}return null}function T(e,t){let n=e[t],r=n.match(/^-([ABC])(\d+)$/);return r?{flag:r[1],value:parseInt(r[2],10),newIndex:t}:(n===`-A`||n===`-B`||n===`-C`)&&t+1<e.length?{flag:n[1],value:parseInt(e[t+1],10),newIndex:t+1}:null}function E(e){let t=e.match(/^-m(\d+)$/);return t?parseInt(t[1],10):null}function D(e){let t=p(),r=null,i=[],a=-1,o=-1,s=-1,c=!1;for(let l=0;l<e.length;l++){let u=e[l];if(u.startsWith(`-`)&&u!==`-`){let r=T(e,l);if(r){let{flag:e,value:t,newIndex:n}=r;e===`A`?a=Math.max(a,t):e===`B`?o=Math.max(o,t):s=t,l=n;continue}let i=E(u);if(i!==null){t.maxCount=i;continue}let d=x(e,l,t);if(d){if(d.error)return{success:!1,error:d.error};l=d.newIndex;continue}let f=w(e,l);if(f){t.sort=f.value,l=f.newIndex;continue}let p=u.startsWith(`--`)?[u]:u.slice(1).split(``);for(let r of p){if(y.has(r)){t.lineNumber=!0,c=!0;continue}if(r===`u`||r===`--unrestricted`){b(t);continue}if(r===`P`||r===`--pcre2`)return{success:!1,error:{stdout:``,stderr:`rg: PCRE2 is not supported. Use standard regex syntax instead.
@@ -30,4 +30,4 @@ EXAMPLES:
30
30
  rg -g '*.ts' foo Search files matching glob
31
31
  rg --hidden foo Include hidden files
32
32
  rg -l foo List files with matches only`,options:[`-e, --regexp PATTERN search for PATTERN (can be used multiple times)`,`-f, --file FILE read patterns from FILE, one per line`,`-i, --ignore-case case-insensitive search`,`-s, --case-sensitive case-sensitive search (overrides smart-case)`,`-S, --smart-case smart case (default: case-insensitive unless pattern has uppercase)`,`-F, --fixed-strings treat pattern as literal string`,`-w, --word-regexp match whole words only`,`-x, --line-regexp match whole lines only`,`-v, --invert-match select non-matching lines`,`-r, --replace TEXT replace matches with TEXT`,`-c, --count print count of matching lines per file`,` --count-matches print count of individual matches per file`,`-l, --files-with-matches print only file names with matches`,` --files-without-match print file names without matches`,` --files list files that would be searched`,`-o, --only-matching print only matching parts`,`-m, --max-count NUM stop after NUM matches per file`,`-q, --quiet suppress output, exit 0 on match`,` --stats print search statistics`,`-n, --line-number print line numbers (default: on)`,`-N, --no-line-number do not print line numbers`,`-I, --no-filename suppress the prefixing of file names`,`-0, --null use NUL as filename separator`,`-b, --byte-offset show byte offset of each match`,` --column show column number of first match`,` --vimgrep show results in vimgrep format`,` --json show results in JSON Lines format`,`-A NUM print NUM lines after each match`,`-B NUM print NUM lines before each match`,`-C NUM print NUM lines before and after each match`,` --context-separator SEP separator for context groups (default: --)`,`-U, --multiline match patterns across lines`,`-z, --search-zip search in compressed files (gzip only)`,`-g, --glob GLOB include files matching GLOB`,`-t, --type TYPE only search files of TYPE (e.g., js, py, ts)`,`-T, --type-not TYPE exclude files of TYPE`,`-L, --follow follow symbolic links`,`-u, --unrestricted reduce filtering (-u: no ignore, -uu: +hidden, -uuu: +binary)`,`-a, --text search binary files as text`,` --hidden search hidden files and directories`,` --no-ignore don't respect .gitignore/.ignore files`,`-d, --max-depth NUM maximum search depth`,` --sort TYPE sort files (path, none)`,` --heading show file path above matches`,` --passthru print all lines (non-matches use - separator)`,` --include-zero include files with 0 matches in count output`,` --type-list list all available file types`,` --help display this help and exit`]},G={name:`rg`,async execute(e,t){if(i(e))return r(W);if(e.includes(`--type-list`))return{stdout:f(),stderr:``,exitCode:0};let n=D(e);return n.success?N({ctx:t,options:n.options,paths:n.paths,explicitLineNumbers:n.explicitLineNumbers}):n.error}},K={name:`rg`,flags:[{flag:`-i`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-w`,type:`boolean`},{flag:`-x`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-o`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-N`,type:`boolean`},{flag:`--hidden`,type:`boolean`},{flag:`--no-ignore`,type:`boolean`},{flag:`-m`,type:`value`,valueHint:`number`},{flag:`-A`,type:`value`,valueHint:`number`},{flag:`-B`,type:`value`,valueHint:`number`},{flag:`-C`,type:`value`,valueHint:`number`},{flag:`-g`,type:`value`,valueHint:`pattern`},{flag:`-t`,type:`value`,valueHint:`string`},{flag:`-T`,type:`value`,valueHint:`string`}],needsArgs:!0};export{K as n,G as t};
33
- //# sourceMappingURL=chunk-NYQYO467-_2947cgi.mjs.map
33
+ //# sourceMappingURL=chunk-NYQYO467-CY88QCuT.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{i as n}from"./chunk-GFQRA5P5-ePq2jelx.mjs";import{n as r}from"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import{r as i}from"./chunk-OJDRYQWQ-DWhg7YHU.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-C-Zyd2K_.mjs";import{n as s,r as c,t as l}from"./chunk-74CEPOFO-D1bzz49u.mjs";var u=1e4,d=100,f=new e(/\s+/);function p(e={}){let{fieldSep:t=f,maxIterations:n=u,maxRecursionDepth:r=d,maxOutputSize:i=0,fs:a,cwd:o,exec:s,coverage:c,requireDefenseContext:l}=e;return{FS:` `,OFS:` `,ORS:`
1
+ import{n as e,t}from"./chunk-YNYSPYQ5-gU4-j5DO.mjs";import{i as n}from"./chunk-GFQRA5P5-DbAN9IDm.mjs";import{n as r}from"./chunk-5QMZ5MUS-BwpNU33k.mjs";import{r as i}from"./chunk-OJDRYQWQ-CmrD0Dg2.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-DaS5XS55.mjs";import{n as s,r as c,t as l}from"./chunk-74CEPOFO-V0JXh91S.mjs";var u=1e4,d=100,f=new e(/\s+/);function p(e={}){let{fieldSep:t=f,maxIterations:n=u,maxRecursionDepth:r=d,maxOutputSize:i=0,fs:a,cwd:o,exec:s,coverage:c,requireDefenseContext:l}=e;return{FS:` `,OFS:` `,ORS:`
2
2
  `,OFMT:`%.6g`,NR:0,NF:0,FNR:0,FILENAME:``,RSTART:0,RLENGTH:-1,SUBSEP:``,fields:[],line:``,vars:Object.create(null),arrays:Object.create(null),arrayAliases:new Map,ARGC:0,ARGV:Object.create(null),ENVIRON:Object.create(null),functions:new Map,fieldSep:t,maxIterations:n,maxRecursionDepth:r,maxOutputSize:i,currentRecursionDepth:0,exitCode:0,shouldExit:!1,shouldNext:!1,shouldNextFile:!1,loopBreak:!1,loopContinue:!1,hasReturn:!1,inEndBlock:!1,output:``,openedFiles:new Set,fs:a,cwd:o,exec:s,coverage:c,requireDefenseContext:l}}function m(e,t,n){switch(n){case`+`:return e+t;case`-`:return e-t;case`*`:return e*t;case`/`:return t===0?0:e/t;case`%`:return t===0?0:e%t;case`^`:case`**`:return e**t;default:return 0}}function h(e){if(typeof e==`number`)return e;let t=parseFloat(e);return Number.isNaN(t)?0:t}function g(e){return typeof e==`string`?e:String(e)}async function _(e,t){if(e.type===`regex`)return e.pattern;let n=g(await t.evalExpr(e));return n.startsWith(`/`)&&n.endsWith(`/`)&&(n=n.slice(1,-1)),n}async function v(e,t){return e?e.type===`variable`?e.name:e.type===`field`?`$${Math.floor(h(await t.evalExpr(e.index)))}`:`$0`:`$0`}function y(e,t){if(e===`$0`)return t.line;if(e.startsWith(`$`)){let n=parseInt(e.slice(1),10)-1;return t.fields[n]||``}return g(t.vars[e]??``)}function b(e,t,n){if(e===`$0`)n.line=t,n.fields=n.FS===` `?t.trim().split(/\s+/).filter(Boolean):n.fieldSep.split(t),n.NF=n.fields.length;else if(e.startsWith(`$`)){let r=parseInt(e.slice(1),10)-1;for(;n.fields.length<=r;)n.fields.push(``);n.fields[r]=t,n.NF=n.fields.length,n.line=n.fields.join(n.OFS)}else n.vars[e]=t}async function ee(e,t,n){return e.length===0?t.line.length:g(await n.evalExpr(e[0])).length}async function x(e,t,n){if(e.length<2)return``;let r=g(await n.evalExpr(e[0])),i=Math.floor(h(await n.evalExpr(e[1])))-1;if(e.length>=3){let t=Math.floor(h(await n.evalExpr(e[2])));return r.substr(Math.max(0,i),t)}return r.substr(Math.max(0,i))}async function S(e,t,n){if(e.length<2)return 0;let r=g(await n.evalExpr(e[0])),i=g(await n.evalExpr(e[1])),a=r.indexOf(i);return a===-1?0:a+1}async function C(e,n,r){if(e.length<2)return 0;let i=g(await r.evalExpr(e[0])),a=e[1];if(a.type!==`variable`)return 0;let o=a.name,s=n.FS;if(e.length>=3){let n=e[2];if(n.type===`regex`)s=t(n.pattern);else{let e=g(await r.evalExpr(n));s=e===` `?t(`\\s+`):e}}else n.FS===` `&&(s=t(`\\s+`));let c=typeof s==`string`?i.split(s):s.split(i);n.arrays[o]=Object.create(null);for(let e=0;e<c.length;e++)n.arrays[o][String(e+1)]=c[e];return c.length}async function te(e,n,r){if(e.length<2)return 0;let i=await _(e[0],r),a=g(await r.evalExpr(e[1])),o=await v(e[2],r),s=y(o,n);try{let e=t(i).replace(s,re(a)),r=e===s?0:1;return b(o,e,n),r}catch{return 0}}async function ne(e,n,r){if(e.length<2)return 0;let i=await _(e[0],r),a=g(await r.evalExpr(e[1])),o=await v(e[2],r),s=y(o,n);try{let e=t(i,`g`),r=e.match(s),c=r?r.length:0;return b(o,e.replace(s,re(a)),n),c}catch{return 0}}function re(e){return t=>{let n=``,r=0;for(;r<e.length;)if(e[r]===`\\`&&r+1<e.length){let t=e[r+1];t===`&`?(n+=`&`,r+=2):t===`\\`?(n+=`\\`,r+=2):(n+=e[r+1],r+=2)}else e[r]===`&`?(n+=t,r++):(n+=e[r],r++);return n}}async function ie(e,n,r){if(e.length<2)return n.RSTART=0,n.RLENGTH=-1,0;let i=g(await r.evalExpr(e[0])),a=await _(e[1],r);try{let e=t(a).exec(i);if(e)return n.RSTART=e.index+1,n.RLENGTH=e[0].length,n.RSTART}catch{}return n.RSTART=0,n.RLENGTH=-1,0}async function ae(e,n,r){if(e.length<3)return``;let i=await _(e[0],r),a=g(await r.evalExpr(e[1])),o=g(await r.evalExpr(e[2])),s=e.length>=4?g(await r.evalExpr(e[3])):n.line;try{let e=o.toLowerCase()===`g`,n=e?0:parseInt(o,10)||1;if(e)return t(i,`g`).replace(s,(e,...t)=>oe(a,e,t.slice(0,-2)));{let e=0;return t(i,`g`).replace(s,(t,...r)=>(e++,e===n?oe(a,t,r.slice(0,-2)):t))}}catch{return s}}function oe(e,t,n){let r=``,i=0;for(;i<e.length;)if(e[i]===`\\`&&i+1<e.length){let a=e[i+1];if(a===`&`)r+=`&`,i+=2;else if(a===`0`)r+=t,i+=2;else if(a>=`1`&&a<=`9`){let e=parseInt(a,10)-1;r+=n[e]||``,i+=2}else a===`n`?(r+=`
3
3
  `,i+=2):a===`t`?(r+=` `,i+=2):(r+=a,i+=2)}else e[i]===`&`?(r+=t,i++):(r+=e[i],i++);return r}async function se(e,t,n){return e.length===0?``:g(await n.evalExpr(e[0])).toLowerCase()}async function ce(e,t,n){return e.length===0?``:g(await n.evalExpr(e[0])).toUpperCase()}async function le(e,t,n){if(e.length===0)return``;let r=g(await n.evalExpr(e[0])),i=[];for(let t=1;t<e.length;t++)i.push(await n.evalExpr(e[t]));return E(r,i)}async function ue(e,t,n){return e.length===0?0:Math.floor(h(await n.evalExpr(e[0])))}async function de(e,t,n){return e.length===0?0:Math.sqrt(h(await n.evalExpr(e[0])))}async function fe(e,t,n){return e.length===0?0:Math.sin(h(await n.evalExpr(e[0])))}async function pe(e,t,n){return e.length===0?0:Math.cos(h(await n.evalExpr(e[0])))}async function me(e,t,n){let r=e.length>0?h(await n.evalExpr(e[0])):0,i=e.length>1?h(await n.evalExpr(e[1])):0;return Math.atan2(r,i)}async function he(e,t,n){return e.length===0?0:Math.log(h(await n.evalExpr(e[0])))}async function ge(e,t,n){return e.length===0?1:Math.exp(h(await n.evalExpr(e[0])))}function _e(e,t,n){return t.random?t.random():Math.random()}async function ve(e,t,n){let r=e.length>0?h(await n.evalExpr(e[0])):Date.now();return t.vars._srand_seed=r,r}function ye(e,t){return()=>{throw Error(`${e}() is not supported - ${t}`)}}function w(e){return()=>{throw Error(`function '${e}()' is not implemented`)}}var T=1e4;function E(e,t){let n=0,r=``,i=0;for(;i<e.length;)if(e[i]===`%`&&i+1<e.length){let a=i+1,o=``,s=``,c=``,l,u=a;for(;a<e.length&&/\d/.test(e[a]);)a++;a>u&&e[a]===`$`?(l=parseInt(e.substring(u,a),10)-1,a++):a=u;let d=()=>{if(a<e.length){if(a+1<e.length&&(e[a]===`h`&&e[a+1]===`h`||e[a]===`l`&&e[a+1]===`l`)){a+=2;return}/[lzjh]/.test(e[a])&&a++}};for(;a<e.length&&/[-+ #0]/.test(e[a]);)o+=e[a++];if(e[a]===`*`){let e=t[n++],r=e===void 0?0:Math.floor(Number(e));r<0?(o+=`-`,s=String(Math.min(-r,T))):s=String(Math.min(r,T)),a++}else for(;a<e.length&&/\d/.test(e[a]);)s+=e[a++];if(s&&parseInt(s,10)>T&&(s=String(T)),e[a]===`.`){if(a++,e[a]===`*`){let e=t[n++];c=String(Math.min(e===void 0?0:Math.floor(Number(e)),T)),a++}else for(;a<e.length&&/\d/.test(e[a]);)c+=e[a++];c&&parseInt(c,10)>T&&(c=String(T))}d();let f=e[a],p=t[l===void 0?n:l];switch(f){case`s`:{let e=p===void 0?``:String(p);if(c&&(e=e.substring(0,parseInt(c,10))),s){let t=parseInt(s,10);e=o.includes(`-`)?e.padEnd(t):e.padStart(t)}r+=e,l===void 0&&n++;break}case`d`:case`i`:{let e=p===void 0?0:Math.floor(Number(p));Number.isNaN(e)&&(e=0);let t=e<0,i=Math.abs(e).toString();if(c){let e=parseInt(c,10);i=i.padStart(e,`0`)}let a=``;t?a=`-`:o.includes(`+`)?a=`+`:o.includes(` `)&&(a=` `);let u=a+i;if(s){let e=parseInt(s,10);u=o.includes(`-`)?u.padEnd(e):o.includes(`0`)&&!c?a+i.padStart(e-a.length,`0`):u.padStart(e)}r+=u,l===void 0&&n++;break}case`f`:{let e=p===void 0?0:Number(p);Number.isNaN(e)&&(e=0);let t=c?parseInt(c,10):6,i=e.toFixed(t);if(s){let e=parseInt(s,10);i=o.includes(`-`)?i.padEnd(e):i.padStart(e)}r+=i,l===void 0&&n++;break}case`e`:case`E`:{let e=p===void 0?0:Number(p);Number.isNaN(e)&&(e=0);let t=c?parseInt(c,10):6,i=e.toExponential(t);if(f===`E`&&(i=i.toUpperCase()),s){let e=parseInt(s,10);i=o.includes(`-`)?i.padEnd(e):i.padStart(e)}r+=i,l===void 0&&n++;break}case`g`:case`G`:{let e=p===void 0?0:Number(p);Number.isNaN(e)&&(e=0);let t=c?parseInt(c,10):6,i=e===0?0:Math.floor(Math.log10(Math.abs(e))),a;if(e===0?a=`0`:i<-4||i>=t?(a=e.toExponential(t-1),f===`G`&&(a=a.toUpperCase())):a=e.toPrecision(t),a.includes(`.`)&&(a=a.replace(/\.?0+$/,``).replace(/\.?0+e/,`e`)),a.includes(`e`)&&(a=a.replace(/\.?0+e/,`e`)),s){let e=parseInt(s,10);a=o.includes(`-`)?a.padEnd(e):a.padStart(e)}r+=a,l===void 0&&n++;break}case`x`:case`X`:{let e=p===void 0?0:Math.floor(Number(p));Number.isNaN(e)&&(e=0);let t=Math.abs(e).toString(16);if(f===`X`&&(t=t.toUpperCase()),c){let e=parseInt(c,10);t=t.padStart(e,`0`)}let i=e<0?`-`:``,a=i+t;if(s){let e=parseInt(s,10);a=o.includes(`-`)?a.padEnd(e):o.includes(`0`)&&!c?i+t.padStart(e-i.length,`0`):a.padStart(e)}r+=a,l===void 0&&n++;break}case`o`:{let e=p===void 0?0:Math.floor(Number(p));Number.isNaN(e)&&(e=0);let t=Math.abs(e).toString(8);if(c){let e=parseInt(c,10);t=t.padStart(e,`0`)}let i=e<0?`-`:``,a=i+t;if(s){let e=parseInt(s,10);a=o.includes(`-`)?a.padEnd(e):o.includes(`0`)&&!c?i+t.padStart(e-i.length,`0`):a.padStart(e)}r+=a,l===void 0&&n++;break}case`c`:typeof p==`number`?r+=String.fromCharCode(p):r+=String(p??``).charAt(0)||``,l===void 0&&n++;break;case`%`:r+=`%`;break;default:r+=e.substring(i,a+1)}i=a+1}else if(e[i]===`\\`&&i+1<e.length){let t=e[i+1];switch(t){case`n`:r+=`
4
4
  `;break;case`t`:r+=` `;break;case`r`:r+=`\r`;break;case`\\`:r+=`\\`;break;default:r+=t}i+=2}else r+=e[i++];return r}var be=new Map([[`length`,ee],[`substr`,x],[`index`,S],[`split`,C],[`sub`,te],[`gsub`,ne],[`match`,ie],[`gensub`,ae],[`tolower`,se],[`toupper`,ce],[`sprintf`,le],[`int`,ue],[`sqrt`,de],[`sin`,fe],[`cos`,pe],[`atan2`,me],[`log`,he],[`exp`,ge],[`rand`,_e],[`srand`,ve],[`system`,ye(`system`,`shell execution not allowed in sandboxed environment`)],[`close`,()=>0],[`fflush`,()=>0],[`systime`,w(`systime`)],[`mktime`,w(`mktime`)],[`strftime`,w(`strftime`)]]);function D(e){return typeof e==`number`?e!==0:!(e===``||e===`0`)}function O(e){if(typeof e==`number`)return e;let t=parseFloat(e);return Number.isNaN(t)?0:t}function k(e){return typeof e==`string`?e:String(e)}function xe(e){if(typeof e==`number`)return!0;let t=String(e).trim();return t===``?!1:!Number.isNaN(Number(t))}function A(e,n){try{return t(e).test(n)}catch{return!1}}function j(e,t){return t===``?[]:e.FS===` `?t.trim().split(/\s+/).filter(Boolean):e.fieldSep.split(t)}function M(e,t){return t===0?e.line:t<0||t>e.fields.length?``:e.fields[t-1]??``}function N(e,t,n){if(t===0)e.line=k(n),e.fields=j(e,e.line),e.NF=e.fields.length;else if(t>0){for(;e.fields.length<t;)e.fields.push(``);e.fields[t-1]=k(n),e.NF=e.fields.length,e.line=e.fields.join(e.OFS)}}function P(e,t){e.line=t,e.fields=j(e,t),e.NF=e.fields.length}function Se(n,r){if(n.FS=r,r===` `)n.fieldSep=new e(/\s+/);else try{n.fieldSep=t(r)}catch{n.fieldSep=t(r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))}}function F(e,t){switch(t){case`FS`:return e.FS;case`OFS`:return e.OFS;case`ORS`:return e.ORS;case`OFMT`:return e.OFMT;case`NR`:return e.NR;case`NF`:return e.NF;case`FNR`:return e.FNR;case`FILENAME`:return e.FILENAME;case`RSTART`:return e.RSTART;case`RLENGTH`:return e.RLENGTH;case`SUBSEP`:return e.SUBSEP;case`ARGC`:return e.ARGC}return e.vars[t]??``}function I(e,t,n){switch(t){case`FS`:Se(e,k(n));return;case`OFS`:e.OFS=k(n);return;case`ORS`:e.ORS=k(n);return;case`OFMT`:e.OFMT=k(n);return;case`NR`:e.NR=Math.floor(O(n));return;case`NF`:{let t=Math.floor(O(n));if(t<e.NF)e.fields=e.fields.slice(0,t),e.line=e.fields.join(e.OFS);else if(t>e.NF){for(;e.fields.length<t;)e.fields.push(``);e.line=e.fields.join(e.OFS)}e.NF=t;return}case`FNR`:e.FNR=Math.floor(O(n));return;case`FILENAME`:e.FILENAME=k(n);return;case`RSTART`:e.RSTART=Math.floor(O(n));return;case`RLENGTH`:e.RLENGTH=Math.floor(O(n));return;case`SUBSEP`:e.SUBSEP=k(n);return}e.vars[t]=n}function L(e,t){let n=t,r=new Set,i=e.arrayAliases.get(n);for(;i!==void 0&&!r.has(n);)r.add(n),n=i,i=e.arrayAliases.get(n);return n}function R(e,t,n){if(t===`ARGV`)return e.ARGV[n]??``;if(t===`ENVIRON`)return e.ENVIRON[n]??``;let r=L(e,t);return e.arrays[r]?.[n]??``}function Ce(e,t,n,r){let i=L(e,t);e.arrays[i]||(e.arrays[i]=Object.create(null)),e.arrays[i][n]=r}function we(e,t,n){if(t===`ARGV`)return e.ARGV[n]!==void 0;if(t===`ENVIRON`)return e.ENVIRON[n]!==void 0;let r=L(e,t);return e.arrays[r]?.[n]!==void 0}function Te(e,t,n){let r=L(e,t);e.arrays[r]&&delete e.arrays[r][n]}function Ee(e,t){let n=L(e,t);delete e.arrays[n]}var De=null;function Oe(e){De=e}function z(e,t){o(e.requireDefenseContext,`awk`,t)}function B(e,t,n){return a(e.requireDefenseContext,`awk`,t,n)}async function V(e,t){switch(z(e,`expression evaluation`),e.coverage?.hit(`awk:expr:${t.type}`),t.type){case`number`:return t.value;case`string`:return t.value;case`regex`:return A(t.pattern,e.line)?1:0;case`field`:return ke(e,t);case`variable`:return F(e,t.name);case`array_access`:return Ae(e,t);case`binary`:return je(e,t);case`unary`:return Pe(e,t);case`ternary`:return D(await B(e,`ternary condition evaluation`,()=>V(e,t.condition)))?await B(e,`ternary consequent evaluation`,()=>V(e,t.consequent)):await B(e,`ternary alternate evaluation`,()=>V(e,t.alternate));case`call`:return Fe(e,t.name,t.args);case`assignment`:return Le(e,t);case`pre_increment`:return Re(e,t.operand);case`pre_decrement`:return ze(e,t.operand);case`post_increment`:return Be(e,t.operand);case`post_decrement`:return Ve(e,t.operand);case`in`:return He(e,t.key,t.array);case`getline`:return Ue(e,t.variable,t.file,t.command);case`tuple`:return Ke(e,t.elements);default:return``}}async function ke(e,t){return z(e,`field reference evaluation`),M(e,Math.floor(O(await B(e,`field index evaluation`,()=>V(e,t.index)))))}async function Ae(e,t){z(e,`array access evaluation`);let n=k(await B(e,`array key evaluation`,()=>V(e,t.key)));return R(e,t.array,n)}async function je(e,r){z(e,`binary expression evaluation`);let i=r.operator;if(i===`||`)return D(await B(e,`logical-or left evaluation`,()=>V(e,r.left)))||D(await B(e,`logical-or right evaluation`,()=>V(e,r.right)))?1:0;if(i===`&&`)return D(await B(e,`logical-and left evaluation`,()=>V(e,r.left)))&&D(await B(e,`logical-and right evaluation`,()=>V(e,r.right)))?1:0;if(i===`~`){let n=await B(e,`regex left evaluation`,()=>V(e,r.left));r.right.type===`regex`&&e.coverage?.hit(`awk:expr:regex`);let i=r.right.type===`regex`?r.right.pattern:k(await B(e,`regex right evaluation`,()=>V(e,r.right)));try{return t(i).test(k(n))?1:0}catch{return 0}}if(i===`!~`){let n=await B(e,`negated-regex left evaluation`,()=>V(e,r.left));r.right.type===`regex`&&e.coverage?.hit(`awk:expr:regex`);let i=r.right.type===`regex`?r.right.pattern:k(await B(e,`negated-regex right evaluation`,()=>V(e,r.right)));try{return t(i).test(k(n))?0:1}catch{return 1}}let a=await B(e,`binary left evaluation`,()=>V(e,r.left)),o=await B(e,`binary right evaluation`,()=>V(e,r.right));if(i===` `){let t=k(a)+k(o);if(e.maxOutputSize>0&&t.length>e.maxOutputSize)throw new n(`awk: string concatenation size limit exceeded (${e.maxOutputSize} bytes)`,`string_length`,e.output);return t}return Me(i)?Ne(a,o,i):m(O(a),O(o),i)}function Me(e){return[`<`,`<=`,`>`,`>=`,`==`,`!=`].includes(e)}function Ne(e,t,n){let r=xe(e),i=xe(t);if(r&&i){let r=O(e),i=O(t);switch(n){case`<`:return r<i?1:0;case`<=`:return r<=i?1:0;case`>`:return r>i?1:0;case`>=`:return r>=i?1:0;case`==`:return r===i?1:0;case`!=`:return r===i?0:1}}let a=k(e),o=k(t);switch(n){case`<`:return a<o?1:0;case`<=`:return a<=o?1:0;case`>`:return a>o?1:0;case`>=`:return a>=o?1:0;case`==`:return a===o?1:0;case`!=`:return a===o?0:1}return 0}async function Pe(e,t){z(e,`unary expression evaluation`);let n=await B(e,`unary operand evaluation`,()=>V(e,t.operand));switch(t.operator){case`!`:return D(n)?0:1;case`-`:return-O(n);case`+`:return+O(n);default:return n}}async function Fe(e,t,n){z(e,`function call evaluation`);let r=be.get(t);if(r)return r(n,e,{evalExpr:t=>V(e,t)});let i=e.functions.get(t);return i?Ie(e,i,n):``}async function Ie(e,t,r){if(z(e,`user function call`),e.currentRecursionDepth++,e.currentRecursionDepth>e.maxRecursionDepth)throw e.currentRecursionDepth--,new n(`awk: recursion depth exceeded maximum (${e.maxRecursionDepth})`,`recursion`,e.output);let i=Object.create(null);for(let n of t.params)i[n]=e.vars[n];let a=[];for(let n=0;n<t.params.length;n++){let i=t.params[n];if(n<r.length){let t=r[n];t.type===`variable`&&(e.arrayAliases.set(i,t.name),a.push(i));let o=await B(e,`user function argument evaluation`,()=>V(e,t));e.vars[i]=o}else e.vars[i]=``}e.hasReturn=!1,e.returnValue=void 0;let o=De;o&&await B(e,`user function body execution`,()=>o(e,t.body.statements));let s=e.returnValue??``;for(let n of t.params)i[n]===void 0?delete e.vars[n]:e.vars[n]=i[n];for(let t of a)e.arrayAliases.delete(t);return e.hasReturn=!1,e.returnValue=void 0,e.currentRecursionDepth--,s}async function Le(e,t){z(e,`assignment evaluation`);let n=await B(e,`assignment value evaluation`,()=>V(e,t.value)),r=t.target,i=t.operator,a;if(i===`=`)a=n;else{let t;if(r.type===`field`)t=M(e,Math.floor(O(await B(e,`assignment field index`,()=>V(e,r.index)))));else if(r.type===`variable`)t=F(e,r.name);else{let n=k(await B(e,`assignment array key`,()=>V(e,r.key)));t=R(e,r.array,n)}let o=O(t),s=O(n);switch(i){case`+=`:a=o+s;break;case`-=`:a=o-s;break;case`*=`:a=o*s;break;case`/=`:a=s===0?0:o/s;break;case`%=`:a=s===0?0:o%s;break;case`^=`:a=o**s;break;default:a=n}}if(r.type===`field`)N(e,Math.floor(O(await B(e,`assignment target field index`,()=>V(e,r.index)))),a);else if(r.type===`variable`)I(e,r.name,a);else{let t=k(await B(e,`assignment target array key`,()=>V(e,r.key)));Ce(e,r.array,t,a)}return a}async function H(e,t,n,r){z(e,`inc/dec evaluation`);let i;if(t.type===`field`){let r=Math.floor(O(await B(e,`inc/dec field index`,()=>V(e,t.index))));i=O(M(e,r)),N(e,r,i+n)}else if(t.type===`variable`)i=O(F(e,t.name)),I(e,t.name,i+n);else{let r=k(await B(e,`inc/dec array key`,()=>V(e,t.key)));i=O(R(e,t.array,r)),Ce(e,t.array,r,i+n)}return r?i+n:i}async function Re(e,t){return H(e,t,1,!0)}async function ze(e,t){return H(e,t,-1,!0)}async function Be(e,t){return H(e,t,1,!1)}async function Ve(e,t){return H(e,t,-1,!1)}async function He(e,t,n){z(e,`in-expression evaluation`);let r;if(t.type===`tuple`){e.coverage?.hit(`awk:expr:tuple`);let n=[];for(let r of t.elements)n.push(k(await B(e,`tuple key element evaluation`,()=>V(e,r))));r=n.join(e.SUBSEP)}else r=k(await B(e,`in-expression key evaluation`,()=>V(e,t)));return we(e,n,r)?1:0}async function Ue(e,t,n,r){if(z(e,`getline evaluation`),r)return We(e,t,r);if(n)return Ge(e,t,n);if(!e.lines||e.lineIndex===void 0)return-1;let i=e.lineIndex+1;if(i>=e.lines.length)return 0;let a=e.lines[i];return t?I(e,t,a):P(e,a),e.NR++,e.lineIndex=i,1}async function We(e,t,n){let i=e.exec;if(!i)return-1;z(e,`getline command source`);let a=k(await B(e,`getline command expression`,()=>V(e,n))),o=`__cmd_${a}`,s=`__cmdi_${a}`,c,l;if(e.vars[o]===void 0)try{c=(await B(e,`getline command exec`,()=>i(a))).stdout.split(`
@@ -18,4 +18,4 @@ import{n as e,t}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{i as n}from"./chunk-G
18
18
  `);t.length>0&&t[t.length-1]===``&&t.pop(),e.push({filename:``,lines:t})}for(let t of e){for(S.FILENAME=t.filename,S.FNR=0,S.lines=t.lines,S.lineIndex=-1,S.shouldNextFile=!1;S.lineIndex<t.lines.length-1;){S.lineIndex++;let e=S.lineIndex;if(await d(`line execution`,()=>C.executeLine(t.lines[e])),S.shouldExit||S.shouldNextFile)break}if(S.shouldExit)break}return await d(`END execution`,()=>C.executeEnd()),{stdout:C.getOutput(),stderr:``,exitCode:C.getExitCode()}}catch(e){if(e instanceof r)throw e;let t=e instanceof Error?e.message:String(e),i=e instanceof n?n.EXIT_CODE:2;return{stdout:C.getOutput(),stderr:`awk: ${t}
19
19
  `,exitCode:i}}}};function $(e){return e.replace(/\\t/g,` `).replace(/\\n/g,`
20
20
  `).replace(/\\r/g,`\r`).replace(/\\b/g,`\b`).replace(/\\f/g,`\f`).replace(/\\a/g,`\x07`).replace(/\\v/g,`\v`).replace(/\\\\/g,`\\`)}function bt(e){if(e===` `)return t(`\\s+`);if(/[[\](){}.*+?^$|\\]/.test(e))try{return t(e)}catch{return t(xt(e))}return t(xt(e))}function xt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var St={name:`awk`,flags:[{flag:`-F`,type:`value`,valueHint:`delimiter`},{flag:`-v`,type:`value`,valueHint:`string`}],stdinType:`text`,needsArgs:!0};export{yt as n,St as t};
21
- //# sourceMappingURL=chunk-OARHFVLG-vxL5zuWx.mjs.map
21
+ //# sourceMappingURL=chunk-OARHFVLG-dXiYYC4o.mjs.map
@@ -1,7 +1,7 @@
1
- import{t as e}from"./chunk-44UOCSGV-uErOrz7G.mjs";import{n as t}from"./chunk-74CEPOFO-D1bzz49u.mjs";function n(e){let t=e.replace(/\//g,`-`),n=new Date(t);if(!Number.isNaN(n.getTime()))return n;let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let[,e,t,i]=r;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(i,10)),!Number.isNaN(n.getTime()))return n}let i=t.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(i){let[,e,t,r,a,o,s]=i;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(r,10),Number.parseInt(a,10),Number.parseInt(o,10),Number.parseInt(s,10)),!Number.isNaN(n.getTime()))return n}return null}var r={name:`touch`,async execute(r,i){let a=[],o=null,s=!1;for(let e=0;e<r.length;e++){let n=r[e];if(n===`--`){a.push(...r.slice(e+1));break}else if(n===`-d`||n===`--date`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
1
+ import{t as e}from"./chunk-44UOCSGV-BZ6LfyW2.mjs";import{n as t}from"./chunk-74CEPOFO-V0JXh91S.mjs";function n(e){let t=e.replace(/\//g,`-`),n=new Date(t);if(!Number.isNaN(n.getTime()))return n;let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let[,e,t,i]=r;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(i,10)),!Number.isNaN(n.getTime()))return n}let i=t.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(i){let[,e,t,r,a,o,s]=i;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(r,10),Number.parseInt(a,10),Number.parseInt(o,10),Number.parseInt(s,10)),!Number.isNaN(n.getTime()))return n}return null}var r={name:`touch`,async execute(r,i){let a=[],o=null,s=!1;for(let e=0;e<r.length;e++){let n=r[e];if(n===`--`){a.push(...r.slice(e+1));break}else if(n===`-d`||n===`--date`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
2
2
  `,exitCode:1};o=r[++e]}else if(n.startsWith(`--date=`))o=n.slice(7);else if(n===`-c`||n===`--no-create`)s=!0;else if(n===`-a`||n===`-m`||n===`-r`||n===`-t`)(n===`-r`||n===`-t`)&&e++;else{if(n.startsWith(`--`))return t(`touch`,n);if(n.startsWith(`-`)&&n.length>1){let i=!1;for(let a of n.slice(1))if(a===`c`)s=!0;else if(!(a===`a`||a===`m`))if(a===`d`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
3
3
  `,exitCode:1};o=r[++e],i=!0;break}else if(a===`r`||a===`t`){e++,i=!0;break}else return t(`touch`,`-${a}`);if(i)continue}else a.push(n)}}if(a.length===0)return{stdout:``,stderr:`touch: missing file operand
4
4
  `,exitCode:1};let c=null;if(o!==null&&(c=n(o),c===null))return{stdout:``,stderr:`touch: invalid date format '${o}'
5
5
  `,exitCode:1};let l=``,u=0;for(let t of a)try{let e=i.fs.resolvePath(i.cwd,t);if(!await i.fs.exists(e)){if(s)continue;await i.fs.writeFile(e,``)}let n=c??new Date;await i.fs.utimes(e,n,n)}catch(n){l+=`touch: cannot touch '${t}': ${e(n)}
6
6
  `,u=1}return{stdout:``,stderr:l,exitCode:u}}},i={name:`touch`,flags:[{flag:`-c`,type:`boolean`},{flag:`-a`,type:`boolean`},{flag:`-m`,type:`boolean`},{flag:`-d`,type:`value`,valueHint:`string`}],needsArgs:!0};export{i as n,r as t};
7
- //# sourceMappingURL=chunk-OCLXQMOG-C7k2qEN6.mjs.map
7
+ //# sourceMappingURL=chunk-OCLXQMOG-DOkdFgyf.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-44UOCSGV-uErOrz7G.mjs";import{t}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var n=`Usage: rmdir [-pv] DIRECTORY...
1
+ import{t as e}from"./chunk-44UOCSGV-BZ6LfyW2.mjs";import{t}from"./chunk-HWKDQ44K-BJxdK4fT.mjs";var n=`Usage: rmdir [-pv] DIRECTORY...
2
2
  Remove empty directories.
3
3
 
4
4
  Options:
@@ -11,4 +11,4 @@ Options:
11
11
  `,exitCode:1};await t.fs.rm(n,{recursive:!1,force:!1});let e=``;return i&&(e=`rmdir: removing directory, '${r}'
12
12
  `),{stdout:e,stderr:``,exitCode:0}}catch(t){return{stdout:``,stderr:`rmdir: failed to remove '${r}': ${e(t)}
13
13
  `,exitCode:1}}}function s(e){let t=e.replace(/\/+$/,``),n=t.lastIndexOf(`/`);return n===-1?`.`:n===0?`/`:t.substring(0,n)}var c={name:`rmdir`,flags:[{flag:`-p`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0};export{i as n,c as t};
14
- //# sourceMappingURL=chunk-OCS6LSEM-Lh1p0H-V.mjs.map
14
+ //# sourceMappingURL=chunk-OCS6LSEM-Bcx6uxmm.mjs.map
@@ -1,2 +1,2 @@
1
1
  function e(e){return Object.assign(Object.create(null),Object.fromEntries(e))}function t(e,t){return Object.assign(Object.create(null),Object.fromEntries(e),t)}function n(...e){return Object.assign(Object.create(null),...e)}export{t as n,e as r,n as t};
2
- //# sourceMappingURL=chunk-OJDRYQWQ-DWhg7YHU.mjs.map
2
+ //# sourceMappingURL=chunk-OJDRYQWQ-CmrD0Dg2.mjs.map
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{i as t}from"./chunk-GFQRA5P5-ePq2jelx.mjs";import{n}from"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import{r,t as i}from"./chunk-24IMIIXA-C-Zyd2K_.mjs";import{n as a}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";import{n as o,r as s,t as c}from"./chunk-74CEPOFO-D1bzz49u.mjs";var l=new Map([[`alnum`,`a-zA-Z0-9`],[`alpha`,`a-zA-Z`],[`ascii`,`\\x00-\\x7F`],[`blank`,` \\t`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`digit`,`0-9`],[`graph`,`!-~`],[`lower`,`a-z`],[`print`,` -~`],[`punct`,"!-/:-@\\[-`{-~"],[`space`,` \\t\\n\\r\\f\\v`],[`upper`,`A-Z`],[`word`,`a-zA-Z0-9_`],[`xdigit`,`0-9A-Fa-f`]]);function u(e){let t=``,n=0,r=!1;for(;n<e.length;){if(e[n]===`[`&&!r){if(e[n+1]===`[`&&e[n+2]===`:`){let r=e.indexOf(`:]]`,n+3);if(r!==-1){let i=e.slice(n+3,r),a=l.get(i);if(a){t+=`[${a}]`,n=r+3;continue}}}if(e[n+1]===`^`&&e[n+2]===`[`&&e[n+3]===`:`){let r=e.indexOf(`:]]`,n+4);if(r!==-1){let i=e.slice(n+4,r),a=l.get(i);if(a){t+=`[^${a}]`,n=r+3;continue}}}t+=`[`,n++,r=!0,n<e.length&&e[n]===`^`&&(t+=`^`,n++),n<e.length&&e[n]===`]`&&(t+=`\\]`,n++);continue}if(r){if(e[n]===`]`){t+=`]`,n++,r=!1;continue}if(e[n]===`[`&&e[n+1]===`:`){let r=e.indexOf(`:]`,n+2);if(r!==-1){let i=e.slice(n+2,r),a=l.get(i);if(a){t+=a,n=r+2;continue}}}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++;continue}if(e[n]===`\\`&&n+1<e.length){let r=e[n+1];if(r===`+`||r===`?`||r===`|`){t+=r,n+=2;continue}if(r===`(`||r===`)`){t+=r,n+=2;continue}if(r===`{`||r===`}`){t+=r,n+=2;continue}if(r===`t`){t+=` `,n+=2;continue}if(r===`n`){t+=`
1
+ import{t as e}from"./chunk-YNYSPYQ5-gU4-j5DO.mjs";import{i as t}from"./chunk-GFQRA5P5-DbAN9IDm.mjs";import{n}from"./chunk-5QMZ5MUS-BwpNU33k.mjs";import{r,t as i}from"./chunk-24IMIIXA-DaS5XS55.mjs";import{n as a}from"./chunk-3THT3N7L-B1WzJUh4.mjs";import{n as o,r as s,t as c}from"./chunk-74CEPOFO-V0JXh91S.mjs";var l=new Map([[`alnum`,`a-zA-Z0-9`],[`alpha`,`a-zA-Z`],[`ascii`,`\\x00-\\x7F`],[`blank`,` \\t`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`digit`,`0-9`],[`graph`,`!-~`],[`lower`,`a-z`],[`print`,` -~`],[`punct`,"!-/:-@\\[-`{-~"],[`space`,` \\t\\n\\r\\f\\v`],[`upper`,`A-Z`],[`word`,`a-zA-Z0-9_`],[`xdigit`,`0-9A-Fa-f`]]);function u(e){let t=``,n=0,r=!1;for(;n<e.length;){if(e[n]===`[`&&!r){if(e[n+1]===`[`&&e[n+2]===`:`){let r=e.indexOf(`:]]`,n+3);if(r!==-1){let i=e.slice(n+3,r),a=l.get(i);if(a){t+=`[${a}]`,n=r+3;continue}}}if(e[n+1]===`^`&&e[n+2]===`[`&&e[n+3]===`:`){let r=e.indexOf(`:]]`,n+4);if(r!==-1){let i=e.slice(n+4,r),a=l.get(i);if(a){t+=`[^${a}]`,n=r+3;continue}}}t+=`[`,n++,r=!0,n<e.length&&e[n]===`^`&&(t+=`^`,n++),n<e.length&&e[n]===`]`&&(t+=`\\]`,n++);continue}if(r){if(e[n]===`]`){t+=`]`,n++,r=!1;continue}if(e[n]===`[`&&e[n+1]===`:`){let r=e.indexOf(`:]`,n+2);if(r!==-1){let i=e.slice(n+2,r),a=l.get(i);if(a){t+=a,n=r+2;continue}}}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++;continue}if(e[n]===`\\`&&n+1<e.length){let r=e[n+1];if(r===`+`||r===`?`||r===`|`){t+=r,n+=2;continue}if(r===`(`||r===`)`){t+=r,n+=2;continue}if(r===`{`||r===`}`){t+=r,n+=2;continue}if(r===`t`){t+=` `,n+=2;continue}if(r===`n`){t+=`
2
2
  `,n+=2;continue}if(r===`r`){t+=`\r`,n+=2;continue}t+=e[n]+r,n+=2;continue}if(e[n]===`+`||e[n]===`?`||e[n]===`|`||e[n]===`(`||e[n]===`)`){t+=`\\${e[n]}`,n++;continue}if(e[n]===`^`&&!(t===``||t.endsWith(`(`))){t+=`\\^`,n++;continue}if(e[n]===`$`){let r=n===e.length-1,i=n+2<e.length&&e[n+1]===`\\`&&e[n+2]===`)`;if(!r&&!i){t+=`\\$`,n++;continue}}t+=e[n],n++}return t}function d(e){let t=``,n=!1;for(let r=0;r<e.length;r++)e[r]===`[`&&!n?(n=!0,t+=`[`,r++,r<e.length&&e[r]===`^`&&(t+=`^`,r++),r<e.length&&e[r]===`]`&&(t+=`]`,r++),r--):e[r]===`]`&&n?(n=!1,t+=`]`):!n&&e[r]===`{`&&e[r+1]===`,`?(t+=`{0,`,r++):t+=e[r];return t}function f(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n],i=r.charCodeAt(0);r===`\\`?t+=`\\\\`:r===` `?t+=`\\t`:r===`
3
3
  `?t+=`$
4
4
  `:r===`\r`?t+=`\\r`:r===`\x07`?t+=`\\a`:r===`\b`?t+=`\\b`:r===`\f`?t+=`\\f`:r===`\v`?t+=`\\v`:i<32||i>=127?t+=`\\${i.toString(8).padStart(3,`0`)}`:t+=r}return`${t}$`}var p=1e4;function m(e,t,n){return{patternSpace:``,holdSpace:``,lineNumber:0,totalLines:e,deleted:!1,printed:!1,quit:!1,quitSilent:!1,exitCode:void 0,errorMessage:void 0,appendBuffer:[],substitutionMade:!1,lineNumberOutput:[],nCommandOutput:[],restartCycle:!1,inDRestartedCycle:!1,currentFilename:t,pendingFileReads:[],pendingFileWrites:[],rangeStates:n||new Map,linesConsumedInCycle:0}}function h(e){return typeof e==`object`&&`first`in e&&`step`in e}function g(e){return typeof e==`object`&&`offset`in e}function _(t,n,r,i,a){if(t===`$`)return n===r;if(typeof t==`number`)return n===t;if(h(t)){let{first:e,step:r}=t;return r===0?n===e:(n-e)%r===0&&n>=e}if(typeof t==`object`&&`pattern`in t)try{let n=t.pattern;return n===``&&a?.lastPattern?n=a.lastPattern:n!==``&&a&&(a.lastPattern=n),e(d(u(n))).test(i)}catch{return!1}return!1}function v(e){let t=e=>e===void 0?`undefined`:e===`$`?`$`:typeof e==`number`?String(e):`pattern`in e?`/${e.pattern}/`:`first`in e?`${e.first}~${e.step}`:`unknown`;return`${t(e.start)},${t(e.end)}`}function y(e,t,n,r,i,a){if(!e||!e.start&&!e.end)return!0;let o=e.start,s=e.end;if(o!==void 0&&s===void 0)return _(o,t,n,r,a);if(o!==void 0&&s!==void 0){let c=typeof o==`object`&&`pattern`in o,l=typeof s==`object`&&`pattern`in s,u=g(s);if(u&&i){let c=v(e),l=i.get(c);return l||(l={active:!1},i.set(c,l)),l.active?(t>=(l.startLine||t)+s.offset&&(l.active=!1,i.set(c,l)),!0):_(o,t,n,r,a)?(l.active=!0,l.startLine=t,i.set(c,l),s.offset===0&&(l.active=!1,i.set(c,l)),!0):!1}if(!c&&!l&&!u){let r=typeof o==`number`?o:o===`$`?n:1,a=typeof s==`number`?s:n;if(r<=a)return t>=r&&t<=a;if(i){let n=v(e),a=i.get(n);return a||(a={active:!1},i.set(n,a)),!a.completed&&t>=r?(a.completed=!0,i.set(n,a),!0):!1}return!1}if(i){let c=v(e),l=i.get(c);if(l||(l={active:!1},i.set(c,l)),l.active)return _(s,t,n,r,a)&&(l.active=!1,typeof o==`number`&&(l.completed=!0),i.set(c,l)),!0;{if(l.completed)return!1;let e=!1;return e=typeof o==`number`?t>=o:_(o,t,n,r,a),e?(l.active=!0,l.startLine=t,i.set(c,l),_(s,t,n,r,a)&&(l.active=!1,typeof o==`number`&&(l.completed=!0),i.set(c,l)),!0):!1}}return _(o,t,n,r,a)}return!0}function b(e,t,n,r,i,a){let o=y(e,t,n,r,i,a);return e?.negated?!o:o}function x(e,t,n,r){let i=``,a=0,o=!1;for(;a<=e.length;){t.lastIndex=a;let n=t.exec(e);if(!n){i+=e.slice(a);break}if(n.index!==a){i+=e.slice(a,n.index),a=n.index,o=!1;continue}let s=n[0],c=n.slice(1);if(o&&s.length===0){if(a<e.length)i+=e[a],a++;else break;o=!1;continue}if(i+=r(s,c),o=!1,s.length===0)if(a<e.length)i+=e[a],a++;else break;else a+=s.length,o=!0}return i}function S(e,t,n){let r=``,i=0;for(;i<e.length;){if(e[i]===`\\`&&i+1<e.length){let a=e[i+1];if(a===`&`){r+=`&`,i+=2;continue}if(a===`n`){r+=`
@@ -97,4 +97,4 @@ Addresses:
97
97
  `),x+=r}try{let e=await u(`final processing`,()=>F(x,_,b,{limits:l.limits,filename:g.length===1?g[0]:void 0,fs:l.fs,cwd:l.cwd,coverage:l.coverage,requireDefenseContext:l.requireDefenseContext}));return{stdout:e.output,stderr:e.errorMessage?`${e.errorMessage}
98
98
  `:``,exitCode:e.exitCode??0}}catch(e){if(e instanceof n)throw e;if(e instanceof t)return{stdout:``,stderr:`sed: ${a(e.message)}
99
99
  `,exitCode:t.EXIT_CODE};throw e}}},L={name:`sed`,flags:[{flag:`-n`,type:`boolean`},{flag:`-i`,type:`boolean`},{flag:`-E`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-e`,type:`value`,valueHint:`string`}],stdinType:`text`,needsArgs:!0};export{L as n,I as t};
100
- //# sourceMappingURL=chunk-OL3S66CO-B3hSNlNP.mjs.map
100
+ //# sourceMappingURL=chunk-OL3S66CO-CWEDi2F_.mjs.map
@@ -0,0 +1,2 @@
1
+ import{_ as e,d as t,g as n,h as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BPgPjo39.mjs";var l=class extends a{static{i(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`STRING2`)return t.substring(1,t.length-1)}},u=class extends s{static{i(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},d={parser:{TokenBuilder:i(()=>new u,`TokenBuilder`),ValueConverter:i(()=>new l,`ValueConverter`)}};function f(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,d);return a.ServiceRegistry.register(s),{shared:a,TreeView:s}}i(f,`createTreeViewServices`);export{f as n,d as t};
2
+ //# sourceMappingURL=chunk-ORNJ4GCN-R_gUIosC.mjs.map
@@ -0,0 +1,232 @@
1
+ import{T as e,w as t}from"./src-BkCVz_TJ.mjs";import{B as n,C as r,V as i,W as a,_ as o,a as s,b as c,s as l,v as u}from"./chunk-ICPOFSXX-C--tVIY5.mjs";import{h as d,o as f}from"./chunk-5PVQY5BW-DUXm3tDu.mjs";import{t as p}from"./chunk-55IACEB6-Cmyc0XwJ.mjs";import{t as m}from"./chunk-EDXVE4YY-CI4s3JHP.mjs";import{r as h}from"./chunk-336JU56O-KTMEs5Wk.mjs";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,a,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState(`SCALE`),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin(`acc_title`),33;case 19:return this.popState(),`acc_title_value`;case 20:return this.begin(`acc_descr`),35;case 21:return this.popState(),`acc_descr_value`;case 22:this.begin(`acc_descr_multiline`);break;case 23:this.popState();break;case 24:return`acc_descr_multiline_value`;case 25:return this.pushState(`CLASSDEF`),41;case 26:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 27:return this.popState(),this.pushState(`CLASSDEFID`),42;case 28:return this.popState(),43;case 29:return this.pushState(`CLASS`),48;case 30:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 31:return this.popState(),50;case 32:return this.pushState(`STYLE`),45;case 33:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 34:return this.popState(),47;case 35:return this.pushState(`SCALE`),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState(`STATE`);break;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState(`STATE_STRING`);break;case 50:return this.pushState(`STATE_ID`),`AS`;case 51:return this.popState(),`ID`;case 52:this.popState();break;case 53:return`STATE_DESCR`;case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState(`struct`),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin(`NOTE`),29;case 61:return this.popState(),this.pushState(`NOTE_ID`),59;case 62:return this.popState(),this.pushState(`NOTE_ID`),60;case 63:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 64:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 65:break;case 66:return`NOTE_TEXT`;case 67:return this.popState(),`ID`;case 68:return this.popState(),this.pushState(`NOTE_TEXT`),24;case 69:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 70:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return t.yytext=t.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78,79],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}})();function P(){this.yy={}}return t(P,`Parser`),P.prototype=N,N.Parser=P,new P})();g.parser=g;var _=g,v=`TB`,y=`TB`,b=`dir`,x=`state`,S=`root`,C=`relation`,w=`classDef`,T=`style`,E=`applyClass`,D=`default`,O=`divider`,k=`fill:none`,A=`fill: #333`,j=`c`,M=`markdown`,N=`normal`,P=`rect`,F=`rectWithTitle`,ee=`stateStart`,te=`stateEnd`,I=`divider`,L=`roundedWithTitle`,ne=`note`,re=`noteGroup`,R=`statediagram`,ie=`${R}-state`,ae=`transition`,oe=`note`,se=`${ae} note-edge`,ce=`${R}-${oe}`,le=`${R}-cluster`,ue=`${R}-cluster-alt`,z=`parent`,B=`note`,de=`state`,V=`----`,fe=`${V}${B}`,H=`${V}${z}`,U=t((e,t=y)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),pe={getClasses:t(function(e,t){return t.db.getClasses()},`getClasses`),draw:t(async function(t,n,r,i){e.info(`REF0:`),e.info(`Drawing state diagram (v2)`,n);let{securityLevel:a,state:o,layout:s}=c();i.db.extract(i.db.getRootDocV2());let l=i.db.getData(),u=p(n,a);l.type=i.type,l.layoutAlgorithm=s,l.nodeSpacing=o?.nodeSpacing||50,l.rankSpacing=o?.rankSpacing||50,c().look===`neo`?l.markers=[`barbNeo`]:l.markers=[`barb`],l.diagramId=n,await h(l,u);try{(typeof i.db.getLinks==`function`?i.db.getLinks():new Map).forEach((t,n)=>{let r=typeof n==`string`?n:typeof n?.id==`string`?n.id:``;if(!r){e.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(n));return}let i=u.node()?.querySelectorAll(`g`),a;if(i?.forEach(e=>{e.textContent?.trim()===r&&(a=e)}),!a){e.warn(`⚠️ Could not find node matching text:`,r);return}let o=a.parentNode;if(!o){e.warn(`⚠️ Node has no parent, cannot wrap:`,r);return}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),c=t.url.replace(/^"+|"+$/g,``);if(s.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,c),s.setAttribute(`target`,`_blank`),t.tooltip){let e=t.tooltip.replace(/^"+|"+$/g,``);s.setAttribute(`title`,e)}o.replaceChild(s,a),s.appendChild(a),e.info(`🔗 Wrapped node in <a> tag for:`,r,t.url)})}catch(t){e.error(`❌ Error injecting clickable links:`,t)}d.insertTitle(u,`statediagramTitleText`,o?.titleTopMargin??25,i.db.getDiagramTitle()),m(u,8,R,o?.useMaxWidth??!0)},`draw`),getDir:U},W=new Map,G=0;function K(e=``,t=0,n=``,r=V){return`${de}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}t(K,`stateDomId`);var me=t((t,n,r,i,a,o,s,u)=>{e.trace(`items`,n),n.forEach(e=>{switch(e.stmt){case x:X(t,e,r,i,a,o,s,u);break;case D:X(t,e,r,i,a,o,s,u);break;case C:{X(t,e.state1,r,i,a,o,s,u),X(t,e.state2,r,i,a,o,s,u);let n=s===`neo`,d={id:`edge`+G,start:e.state1.id,end:e.state2.id,arrowhead:`normal`,arrowTypeEnd:n?`arrow_barb_neo`:`arrow_barb`,style:k,labelStyle:``,label:l.sanitizeText(e.description??``,c()),arrowheadStyle:A,labelpos:j,labelType:M,thickness:N,classes:ae,look:s};a.push(d),G++}break}})},`setupDoc`),q=t((e,t=y)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`);function J(e,t,n){if(!t.id||t.id===`</join></fork>`||t.id===`</choice>`)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}t(J,`insertOrUpdateNode`);function Y(e){return e?.classes?.join(` `)??``}t(Y,`getClassesFromDbInfo`);function he(e){return e?.styles??[]}t(he,`getStylesFromDbInfo`);var X=t((t,n,r,i,a,o,s,u)=>{let d=n.id,f=r.get(d),p=Y(f),m=he(f),h=c();if(e.info(`dataFetcher parsedItem`,n,f,m),d!==`root`){let r=P;n.start===!0?r=ee:n.start===!1&&(r=te),n.type!==D&&(r=n.type),W.get(d)||W.set(d,{id:d,shape:r,description:l.sanitizeText(d,h),cssClasses:`${p} ${ie}`,cssStyles:m});let c=W.get(d);n.description&&(Array.isArray(c.description)?(c.shape=F,c.description.push(n.description)):c.description?.length&&c.description.length>0?(c.shape=F,c.description===d?c.description=[n.description]:c.description=[c.description,n.description]):(c.shape=P,c.description=n.description),c.description=l.sanitizeTextOrArray(c.description,h)),c.description?.length===1&&c.shape===F&&(c.type===`group`?c.shape=L:c.shape=P),!c.type&&n.doc&&(e.info(`Setting cluster for XCX`,d,q(n)),c.type=`group`,c.isGroup=!0,c.dir=q(n),c.shape=n.type===O?I:L,c.cssClasses=`${c.cssClasses} ${le} ${o?ue:``}`);let f={labelStyle:``,shape:c.shape,label:c.description,cssClasses:c.cssClasses,cssCompiledStyles:[],cssStyles:c.cssStyles,id:d,dir:c.dir,domId:K(d,G),type:c.type,isGroup:c.type===`group`,padding:8,rx:10,ry:10,look:s,labelType:`markdown`};if(f.shape===I&&(f.label=``),t&&t.id!==`root`&&(e.trace(`Setting node `,d,` to be child of its parent `,t.id),f.parentId=t.id),f.centerLabel=!0,n.note){let e={labelStyle:``,shape:ne,label:n.note.text,labelType:`markdown`,cssClasses:ce,cssStyles:[],cssCompiledStyles:[],id:d+fe+`-`+G,domId:K(d,G,B),type:c.type,isGroup:c.type===`group`,padding:h.flowchart?.padding,look:s,position:n.note.position},t=d+H,r={labelStyle:``,shape:re,label:n.note.text,cssClasses:c.cssClasses,cssStyles:[],id:d+H,domId:K(d,G,z),type:`group`,isGroup:!0,padding:16,look:s,position:n.note.position};G++,r.id=t,e.parentId=t,J(i,r,u),J(i,e,u),J(i,f,u);let o=d,l=e.id;n.note.position===`left of`&&(o=e.id,l=d),a.push({id:o+`-`+l,start:o,end:l,arrowhead:`none`,arrowTypeEnd:``,style:k,labelStyle:``,classes:se,arrowheadStyle:A,labelpos:j,labelType:M,thickness:N,look:s})}else J(i,f,u)}n.doc&&(e.trace(`Adding nodes children `),me(n,n.doc,r,i,a,!o,s,u))},`dataFetcher`),ge=t(()=>{W.clear(),G=0},`reset`),Z={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},_e=t(()=>new Map,`newClassesList`),Q=t(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$=t(e=>JSON.parse(JSON.stringify(e)),`clone`),ve=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=_e(),this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=u,this.setAccTitle=i,this.getAccDescription=o,this.setAccDescription=n,this.setDiagramTitle=a,this.getDiagramTitle=r,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{t(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case x:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case C:this.addRelation(t.state1,t.state2,t.description);break;case w:this.addStyleClass(t.id.trim(),t.classes);break;case T:this.handleStyleDef(t);break;case E:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip);break}let t=this.getStates(),n=c();ge(),X(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(t){e.info(`Setting root doc`,t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===C){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===x&&(t.id===Z.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==S&&t.stmt!==x||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===O){let t=$(e);t.doc=$(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:x,id:f(),type:`divider`,doc:$(i)};r.push($(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:S,stmt:S},{id:S,stmt:S,doc:this.rootDoc},!0),{id:S,doc:this.rootDoc}}addState(t,n=D,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0){let d=t?.trim();if(!this.currentDocument.states.has(d))e.info(`Adding state `,d,i),this.currentDocument.states.set(d,{stmt:x,id:d,descriptions:[],type:n,doc:r,note:a,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.doc||=r,e.type||=n}if(i&&(e.info(`Setting state description`,d,i),(Array.isArray(i)?i:[i]).forEach(e=>this.addDescription(d,e.trim()))),a){let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.note=a,e.note.text=l.sanitizeText(e.note.text,c())}o&&(e.info(`Setting state classes`,d,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setCssClass(d,e.trim()))),s&&(e.info(`Setting state styles`,d,s),(Array.isArray(s)?s:[s]).forEach(e=>this.setStyle(d,e.trim()))),u&&(e.info(`Setting state styles`,d,s),(Array.isArray(u)?u:[u]).forEach(e=>this.setTextStyle(d,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=_e(),e||(this.links=new Map,s())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){e.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,n,r){this.links.set(t,{url:n,tooltip:r}),e.warn(`Adding link`,t,n,r)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===Z.START_NODE?(this.startEndCount++,`${Z.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=D){return e===Z.START_NODE?Z.START_TYPE:t}endIdIfNeeded(e=``){return e===Z.END_NODE?(this.startEndCount++,`${Z.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=D){return e===Z.END_NODE?Z.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:l.sanitizeText(n,c())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?l.sanitizeText(n,c()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(l.sanitizeText(r,c()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(Z.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Z.COLOR_KEYWORD).exec(e)){let e=t.replace(Z.FILL_KEYWORD,Z.BG_FILL).replace(Z.COLOR_KEYWORD,Z.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===b)}getDirection(){return this.getDirectionStatement()?.value??v}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:b,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=c();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:U(this.getRootDocV2())}}getConfig(){return c().state}},ye=t(e=>`
7
+ defs [id$="-barbEnd"] {
8
+ fill: ${e.transitionColor};
9
+ stroke: ${e.transitionColor};
10
+ }
11
+ g.stateGroup text {
12
+ fill: ${e.nodeBorder};
13
+ stroke: none;
14
+ font-size: 10px;
15
+ }
16
+ g.stateGroup text {
17
+ fill: ${e.textColor};
18
+ stroke: none;
19
+ font-size: 10px;
20
+
21
+ }
22
+ g.stateGroup .state-title {
23
+ font-weight: bolder;
24
+ fill: ${e.stateLabelColor};
25
+ }
26
+
27
+ g.stateGroup rect {
28
+ fill: ${e.mainBkg};
29
+ stroke: ${e.nodeBorder};
30
+ }
31
+
32
+ g.stateGroup line {
33
+ stroke: ${e.lineColor};
34
+ stroke-width: ${e.strokeWidth||1};
35
+ }
36
+
37
+ .transition {
38
+ stroke: ${e.transitionColor};
39
+ stroke-width: ${e.strokeWidth||1};
40
+ fill: none;
41
+ }
42
+
43
+ .stateGroup .composit {
44
+ fill: ${e.background};
45
+ border-bottom: 1px
46
+ }
47
+
48
+ .stateGroup .alt-composit {
49
+ fill: #e0e0e0;
50
+ border-bottom: 1px
51
+ }
52
+
53
+ .state-note {
54
+ stroke: ${e.noteBorderColor};
55
+ fill: ${e.noteBkgColor};
56
+
57
+ text {
58
+ fill: ${e.noteTextColor};
59
+ stroke: none;
60
+ font-size: 10px;
61
+ }
62
+ }
63
+
64
+ .stateLabel .box {
65
+ stroke: none;
66
+ stroke-width: 0;
67
+ fill: ${e.mainBkg};
68
+ opacity: 0.5;
69
+ }
70
+
71
+ .edgeLabel .label rect {
72
+ fill: ${e.labelBackgroundColor};
73
+ opacity: 0.5;
74
+ }
75
+ .edgeLabel {
76
+ background-color: ${e.edgeLabelBackground};
77
+ p {
78
+ background-color: ${e.edgeLabelBackground};
79
+ }
80
+ rect {
81
+ opacity: 0.5;
82
+ background-color: ${e.edgeLabelBackground};
83
+ fill: ${e.edgeLabelBackground};
84
+ }
85
+ text-align: center;
86
+ }
87
+ .edgeLabel .label text {
88
+ fill: ${e.transitionLabelColor||e.tertiaryTextColor};
89
+ }
90
+ .label div .edgeLabel {
91
+ color: ${e.transitionLabelColor||e.tertiaryTextColor};
92
+ }
93
+
94
+ .stateLabel text {
95
+ fill: ${e.stateLabelColor};
96
+ font-size: 10px;
97
+ font-weight: bold;
98
+ }
99
+
100
+ .node circle.state-start {
101
+ fill: ${e.specialStateColor};
102
+ stroke: ${e.specialStateColor};
103
+ }
104
+
105
+ .node .fork-join {
106
+ fill: ${e.specialStateColor};
107
+ stroke: ${e.specialStateColor};
108
+ }
109
+
110
+ .node circle.state-end {
111
+ fill: ${e.innerEndBackground};
112
+ stroke: ${e.background};
113
+ stroke-width: 1.5
114
+ }
115
+ .end-state-inner {
116
+ fill: ${e.compositeBackground||e.background};
117
+ // stroke: ${e.background};
118
+ stroke-width: 1.5
119
+ }
120
+
121
+ .node rect {
122
+ fill: ${e.stateBkg||e.mainBkg};
123
+ stroke: ${e.stateBorder||e.nodeBorder};
124
+ stroke-width: ${e.strokeWidth||1}px;
125
+ }
126
+ .node polygon {
127
+ fill: ${e.mainBkg};
128
+ stroke: ${e.stateBorder||e.nodeBorder};;
129
+ stroke-width: ${e.strokeWidth||1}px;
130
+ }
131
+ [id$="-barbEnd"] {
132
+ fill: ${e.lineColor};
133
+ }
134
+
135
+ .statediagram-cluster rect {
136
+ fill: ${e.compositeTitleBackground};
137
+ stroke: ${e.stateBorder||e.nodeBorder};
138
+ stroke-width: ${e.strokeWidth||1}px;
139
+ }
140
+
141
+ .cluster-label, .nodeLabel {
142
+ color: ${e.stateLabelColor};
143
+ // line-height: 1;
144
+ }
145
+
146
+ .statediagram-cluster rect.outer {
147
+ rx: 5px;
148
+ ry: 5px;
149
+ }
150
+ .statediagram-state .divider {
151
+ stroke: ${e.stateBorder||e.nodeBorder};
152
+ }
153
+
154
+ .statediagram-state .title-state {
155
+ rx: 5px;
156
+ ry: 5px;
157
+ }
158
+ .statediagram-cluster.statediagram-cluster .inner {
159
+ fill: ${e.compositeBackground||e.background};
160
+ }
161
+ .statediagram-cluster.statediagram-cluster-alt .inner {
162
+ fill: ${e.altBackground?e.altBackground:`#efefef`};
163
+ }
164
+
165
+ .statediagram-cluster .inner {
166
+ rx:0;
167
+ ry:0;
168
+ }
169
+
170
+ .statediagram-state rect.basic {
171
+ rx: 5px;
172
+ ry: 5px;
173
+ }
174
+ .statediagram-state rect.divider {
175
+ stroke-dasharray: 10,10;
176
+ fill: ${e.altBackground?e.altBackground:`#efefef`};
177
+ }
178
+
179
+ .note-edge {
180
+ stroke-dasharray: 5;
181
+ }
182
+
183
+ .statediagram-note rect {
184
+ fill: ${e.noteBkgColor};
185
+ stroke: ${e.noteBorderColor};
186
+ stroke-width: 1px;
187
+ rx: 0;
188
+ ry: 0;
189
+ }
190
+ .statediagram-note rect {
191
+ fill: ${e.noteBkgColor};
192
+ stroke: ${e.noteBorderColor};
193
+ stroke-width: 1px;
194
+ rx: 0;
195
+ ry: 0;
196
+ }
197
+
198
+ .statediagram-note text {
199
+ fill: ${e.noteTextColor};
200
+ }
201
+
202
+ .statediagram-note .nodeLabel {
203
+ color: ${e.noteTextColor};
204
+ }
205
+ .statediagram .edgeLabel {
206
+ color: red; // ${e.noteTextColor};
207
+ }
208
+
209
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
210
+ fill: ${e.lineColor};
211
+ stroke: ${e.lineColor};
212
+ stroke-width: ${e.strokeWidth||1};
213
+ }
214
+
215
+ .statediagramTitleText {
216
+ text-anchor: middle;
217
+ font-size: 18px;
218
+ fill: ${e.textColor};
219
+ }
220
+
221
+ [data-look="neo"].statediagram-cluster rect {
222
+ fill: ${e.mainBkg};
223
+ stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder};
224
+ stroke-width: ${e.strokeWidth??1};
225
+ }
226
+ [data-look="neo"].statediagram-cluster rect.outer {
227
+ rx: ${e.radius}px;
228
+ ry: ${e.radius}px;
229
+ filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`}
230
+ }
231
+ `,`getStyles`);export{ye as i,_ as n,pe as r,ve as t};
232
+ //# sourceMappingURL=chunk-OYMX7WX6-Dvg98Zb-.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-D1bzz49u.mjs";var i={name:`ln`,summary:`make links between files`,usage:`ln [OPTIONS] TARGET LINK_NAME`,options:[`-s create a symbolic link instead of a hard link`,`-f remove existing destination files`,`-n treat LINK_NAME as a normal file if it is a symbolic link to a directory`,`-v print name of each linked file`,` --help display this help and exit`]},a={name:`ln`,async execute(a,o){if(r(a))return n(i);let s=!1,c=!1,l=!1,u=0;for(;u<a.length&&a[u].startsWith(`-`);){let e=a[u];if(e===`-s`||e===`--symbolic`)s=!0,u++;else if(e===`-f`||e===`--force`)c=!0,u++;else if(e===`-v`||e===`--verbose`)l=!0,u++;else if(e===`-n`||e===`--no-dereference`)u++;else if(/^-[sfvn]+$/.test(e))e.includes(`s`)&&(s=!0),e.includes(`f`)&&(c=!0),e.includes(`v`)&&(l=!0),u++;else if(e===`--`){u++;break}else return t(`ln`,e)}let d=a.slice(u);if(d.length<2)return{stdout:``,stderr:`ln: missing file operand
1
+ import{n as e}from"./chunk-3THT3N7L-B1WzJUh4.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-V0JXh91S.mjs";var i={name:`ln`,summary:`make links between files`,usage:`ln [OPTIONS] TARGET LINK_NAME`,options:[`-s create a symbolic link instead of a hard link`,`-f remove existing destination files`,`-n treat LINK_NAME as a normal file if it is a symbolic link to a directory`,`-v print name of each linked file`,` --help display this help and exit`]},a={name:`ln`,async execute(a,o){if(r(a))return n(i);let s=!1,c=!1,l=!1,u=0;for(;u<a.length&&a[u].startsWith(`-`);){let e=a[u];if(e===`-s`||e===`--symbolic`)s=!0,u++;else if(e===`-f`||e===`--force`)c=!0,u++;else if(e===`-v`||e===`--verbose`)l=!0,u++;else if(e===`-n`||e===`--no-dereference`)u++;else if(/^-[sfvn]+$/.test(e))e.includes(`s`)&&(s=!0),e.includes(`f`)&&(c=!0),e.includes(`v`)&&(l=!0),u++;else if(e===`--`){u++;break}else return t(`ln`,e)}let d=a.slice(u);if(d.length<2)return{stdout:``,stderr:`ln: missing file operand
2
2
  `,exitCode:1};let f=d[0],p=d[1],m=o.fs.resolvePath(o.cwd,p);if(await o.fs.exists(m))if(c)try{await o.fs.rm(m,{force:!0})}catch{return{stdout:``,stderr:`ln: cannot remove '${p}': Permission denied
3
3
  `,exitCode:1}}else return{stdout:``,stderr:`ln: failed to create ${s?`symbolic `:``}link '${p}': File exists
4
4
  `,exitCode:1};try{if(s)await o.fs.symlink(f,m);else{let e=o.fs.resolvePath(o.cwd,f);if(!await o.fs.exists(e))return{stdout:``,stderr:`ln: failed to access '${f}': No such file or directory
@@ -6,4 +6,4 @@ import{n as e}from"./chunk-3THT3N7L-Ce6LrnIA.mjs";import{n as t,r as n,t as r}fr
6
6
  `,exitCode:1}:{stdout:``,stderr:`ln: ${e(n.message)}
7
7
  `,exitCode:1}}let h=``;return l&&(h=`'${p}' -> '${f}'
8
8
  `),{stdout:h,stderr:``,exitCode:0}}},o={name:`ln`,flags:[{flag:`-s`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0,minArgs:2};export{a as n,o as t};
9
- //# sourceMappingURL=chunk-PBXLG62G-MmAqjdXR.mjs.map
9
+ //# sourceMappingURL=chunk-PBXLG62G-CpvczNyQ.mjs.map
@@ -2,4 +2,4 @@ async function e(e,t){let n=`octal`,r=[],i=[];for(let t=0;t<e.length;t++){let a=
2
2
  `,exitCode:1}}}let o=r.includes(`char`);function s(e){return e===0?` \\0`:e===7?` \\a`:e===8?` \\b`:e===9?` \\t`:e===10?` \\n`:e===11?` \\v`:e===12?` \\f`:e===13?` \\r`:e>=32&&e<127?` ${String.fromCharCode(e)}`:` ${e.toString(8).padStart(3,`0`)}`}function c(e){return o?` ${e.toString(16).padStart(2,`0`)}`:` ${e.toString(16).padStart(2,`0`)}`}function l(e){return` ${e.toString(8).padStart(3,`0`)}`}let u=[];for(let e of a)u.push(e.charCodeAt(0));let d=[];for(let e=0;e<u.length;e+=16){let t=u.slice(e,e+16);for(let i=0;i<r.length;i++){let a=r[i],o;o=a===`char`?t.map(s):a===`hex`?t.map(c):t.map(l);let u=``;i===0&&n!==`none`?u=`${e.toString(8).padStart(7,`0`)} `:(i>0||n===`none`)&&(u=n===`none`?``:` `),d.push(u+o.join(``))}}return n!==`none`&&u.length>0&&d.push(u.length.toString(8).padStart(7,`0`)),{stdout:d.length>0?`${d.join(`
3
3
  `)}
4
4
  `:``,stderr:``,exitCode:0}}var t={name:`od`,execute:e},n={name:`od`,flags:[{flag:`-c`,type:`boolean`},{flag:`-A`,type:`value`,valueHint:`string`},{flag:`-t`,type:`value`,valueHint:`string`},{flag:`-N`,type:`value`,valueHint:`number`}],stdinType:`text`,needsFiles:!0};export{n,t};
5
- //# sourceMappingURL=chunk-PP6PSHAB-DMC_XCfO.mjs.map
5
+ //# sourceMappingURL=chunk-PP6PSHAB-DQ3LPONR.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`unexpand`,summary:`convert spaces to tabs`,usage:`unexpand [OPTION]... [FILE]...`,description:`Convert blanks in each FILE to TABs, 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`,`-a Convert all sequences of blanks (not just leading)`],examples:[`unexpand file.txt # Convert leading spaces to tabs`,`unexpand -a file.txt # Convert all space sequences`,`unexpand -t 4 file.txt # Use 4-space tabs`]};function i(e){let t=e.split(`,`).map(e=>e.trim()),n=[];for(let e of t){let t=parseInt(e,10);if(Number.isNaN(t)||t<1)return null;n.push(t)}for(let e=1;e<n.length;e++)if(n[e]<=n[e-1])return null;return n}function a(e,t){if(t.length===1){let n=t[0];return e+(n-e%n)}for(let n of t)if(n>e)return n;if(t.length>=2){let n=t[t.length-1]-t[t.length-2],r=t[t.length-1];return r+(Math.floor((e-r)/n)+1)*n}return-1}function o(e,t){let{tabStops:n,allBlanks:r}=t,i=``,o=0,s=``,c=0,l=!0,u=()=>{if(s.length===0)return;let e=c+s.length;if(!r&&!l){i+=s,s=``;return}let t=c,o=``;for(;t<e;){let r=a(t,n);if(r<=e&&r>t)o+=` `,t=r;else break}let u=e-t;u>0&&(o+=` `.repeat(u)),i+=o,s=``};for(let t of e)t===` `?(s.length===0&&(c=o),s+=t,o++):t===` `?(u(),i+=t,o=a(o,n)):(u(),i+=t,o++,l=!1);return u(),i}function s(e,t){if(e===``)return``;let n=e.split(`
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-V0JXh91S.mjs";var r={name:`unexpand`,summary:`convert spaces to tabs`,usage:`unexpand [OPTION]... [FILE]...`,description:`Convert blanks in each FILE to TABs, 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`,`-a Convert all sequences of blanks (not just leading)`],examples:[`unexpand file.txt # Convert leading spaces to tabs`,`unexpand -a file.txt # Convert all space sequences`,`unexpand -t 4 file.txt # Use 4-space tabs`]};function i(e){let t=e.split(`,`).map(e=>e.trim()),n=[];for(let e of t){let t=parseInt(e,10);if(Number.isNaN(t)||t<1)return null;n.push(t)}for(let e=1;e<n.length;e++)if(n[e]<=n[e-1])return null;return n}function a(e,t){if(t.length===1){let n=t[0];return e+(n-e%n)}for(let n of t)if(n>e)return n;if(t.length>=2){let n=t[t.length-1]-t[t.length-2],r=t[t.length-1];return r+(Math.floor((e-r)/n)+1)*n}return-1}function o(e,t){let{tabStops:n,allBlanks:r}=t,i=``,o=0,s=``,c=0,l=!0,u=()=>{if(s.length===0)return;let e=c+s.length;if(!r&&!l){i+=s,s=``;return}let t=c,o=``;for(;t<e;){let r=a(t,n);if(r<=e&&r>t)o+=` `,t=r;else break}let u=e-t;u>0&&(o+=` `.repeat(u)),i+=o,s=``};for(let t of e)t===` `?(s.length===0&&(c=o),s+=t,o++):t===` `?(u(),i+=t,o=a(o,n)):(u(),i+=t,o++,l=!1);return u(),i}function s(e,t){if(e===``)return``;let n=e.split(`
2
2
  `),r=e.endsWith(`
3
3
  `)&&n[n.length-1]===``;return r&&n.pop(),n.map(e=>o(e,t)).join(`
4
4
  `)+(r?`
@@ -8,4 +8,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`une
8
8
  `};c.tabStops=e,u+=2}else if(t.startsWith(`--tabs=`)){let e=i(t.slice(7));if(!e)return{exitCode:1,stdout:``,stderr:`unexpand: invalid tab size: '${t.slice(7)}'
9
9
  `};c.tabStops=e,u++}else if(t===`-a`||t===`--all`)c.allBlanks=!0,u++;else if(t===`--`){l.push(...a.slice(u+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`unexpand`,t);l.push(t),u++}}let d=``;if(l.length===0)d=s(o.stdin??``,c);else for(let e of l){let t=o.fs.resolvePath(o.cwd,e),n=await o.fs.readFile(t);if(n===null)return{exitCode:1,stdout:d,stderr:`unexpand: ${e}: No such file or directory
10
10
  `};d+=s(n,c)}return{exitCode:0,stdout:d,stderr:``}}},l={name:`unexpand`,flags:[{flag:`-t`,type:`value`,valueHint:`number`},{flag:`-a`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{c as n,l as t};
11
- //# sourceMappingURL=chunk-PYSFUGCK-CY7pclEB.mjs.map
11
+ //# sourceMappingURL=chunk-PYSFUGCK-B_Gv8rUn.mjs.map
@@ -1,7 +1,7 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`rev`,summary:`reverse lines characterwise`,usage:`rev [file ...]`,description:`Copies the specified files to standard output, reversing the order of characters in every line. If no files are specified, standard input is read.`,examples:[`echo 'hello' | rev # Output: olleh`,`rev file.txt # Reverse each line in file`]};function i(e){return Array.from(e).reverse().join(``)}var a={name:`rev`,execute:async(a,o)=>{if(n(a))return t(r);let s=[];for(let t of a)if(t===`--`){let e=a.indexOf(t);s.push(...a.slice(e+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`rev`,t);s.push(t)}let c=``,l=e=>{let t=e.split(`
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-V0JXh91S.mjs";var r={name:`rev`,summary:`reverse lines characterwise`,usage:`rev [file ...]`,description:`Copies the specified files to standard output, reversing the order of characters in every line. If no files are specified, standard input is read.`,examples:[`echo 'hello' | rev # Output: olleh`,`rev file.txt # Reverse each line in file`]};function i(e){return Array.from(e).reverse().join(``)}var a={name:`rev`,execute:async(a,o)=>{if(n(a))return t(r);let s=[];for(let t of a)if(t===`--`){let e=a.indexOf(t);s.push(...a.slice(e+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`rev`,t);s.push(t)}let c=``,l=e=>{let t=e.split(`
2
2
  `),n=e.endsWith(`
3
3
  `)&&t[t.length-1]===``;return n&&t.pop(),t.map(i).join(`
4
4
  `)+(n?`
5
5
  `:``)};if(s.length===0)c=l(o.stdin??``);else for(let e of s)if(e===`-`){let e=o.stdin??``;c+=l(e)}else{let t=o.fs.resolvePath(o.cwd,e),n=await o.fs.readFile(t);if(n===null)return{exitCode:1,stdout:c,stderr:`rev: ${e}: No such file or directory
6
6
  `};c+=l(n)}return{exitCode:0,stdout:c,stderr:``}}},o={name:`rev`,flags:[],stdinType:`text`,needsFiles:!0};export{a as n,o as t};
7
- //# sourceMappingURL=chunk-QCDB2VPH-D1RuXtOm.mjs.map
7
+ //# sourceMappingURL=chunk-QCDB2VPH-Bays5mAr.mjs.map
@@ -1,6 +1,6 @@
1
- import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var r={name:`base64`,summary:`base64 encode/decode data and print to standard output`,usage:`base64 [OPTION]... [FILE]`,options:[`-d, --decode decode data`,`-w, --wrap=COLS wrap encoded lines after COLS character (default 76, 0 to disable)`,` --help display this help and exit`]},i={decode:{short:`d`,long:`decode`,type:`boolean`},wrap:{short:`w`,long:`wrap`,type:`number`,default:76}};async function a(e,t,n){if(t.length===0||t.length===1&&t[0]===`-`)return{ok:!0,data:Uint8Array.from(e.stdin,e=>e.charCodeAt(0))};let r=[];for(let i of t){if(i===`-`){r.push(Uint8Array.from(e.stdin,e=>e.charCodeAt(0)));continue}try{let t=e.fs.resolvePath(e.cwd,i),n=await e.fs.readFileBuffer(t);r.push(n)}catch{return{ok:!1,error:{stdout:``,stderr:`${n}: ${i}: No such file or directory
1
+ import{r as e,t}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as n}from"./chunk-HWKDQ44K-BJxdK4fT.mjs";var r={name:`base64`,summary:`base64 encode/decode data and print to standard output`,usage:`base64 [OPTION]... [FILE]`,options:[`-d, --decode decode data`,`-w, --wrap=COLS wrap encoded lines after COLS character (default 76, 0 to disable)`,` --help display this help and exit`]},i={decode:{short:`d`,long:`decode`,type:`boolean`},wrap:{short:`w`,long:`wrap`,type:`number`,default:76}};async function a(e,t,n){if(t.length===0||t.length===1&&t[0]===`-`)return{ok:!0,data:Uint8Array.from(e.stdin,e=>e.charCodeAt(0))};let r=[];for(let i of t){if(i===`-`){r.push(Uint8Array.from(e.stdin,e=>e.charCodeAt(0)));continue}try{let t=e.fs.resolvePath(e.cwd,i),n=await e.fs.readFileBuffer(t);r.push(n)}catch{return{ok:!1,error:{stdout:``,stderr:`${n}: ${i}: No such file or directory
2
2
  `,exitCode:1}}}}let i=r.reduce((e,t)=>e+t.length,0),a=new Uint8Array(i),o=0;for(let e of r)a.set(e,o),o+=e.length;return{ok:!0,data:a}}var o={name:`base64`,async execute(o,s){if(t(o))return e(r);let c=n(`base64`,o,i);if(!c.ok)return c.error;let l=c.result.flags.decode,u=c.result.flags.wrap,d=c.result.positional;try{if(l){let e=await a(s,d,`base64`);if(!e.ok)return e.error;if(typeof Buffer<`u`){let t=Buffer.from(e.data).toString(`utf8`).replace(/\s/g,``);return{stdout:Buffer.from(t,`base64`).toString(`latin1`),stderr:``,exitCode:0,stdoutEncoding:`binary`}}let t=String.fromCharCode(...e.data).replace(/\s/g,``);return{stdout:atob(t),stderr:``,exitCode:0,stdoutEncoding:`binary`}}let e=await a(s,d,`base64`);if(!e.ok)return e.error;let t;if(t=typeof Buffer<`u`?Buffer.from(e.data).toString(`base64`):btoa(String.fromCharCode(...e.data)),u>0){let e=[];for(let n=0;n<t.length;n+=u)e.push(t.slice(n,n+u));t=e.join(`
3
3
  `)+(t.length>0?`
4
4
  `:``)}return{stdout:t,stderr:``,exitCode:0}}catch{return{stdout:``,stderr:`base64: invalid input
5
5
  `,exitCode:1}}}},s={name:`base64`,flags:[{flag:`-d`,type:`boolean`},{flag:`-w`,type:`value`,valueHint:`number`}],stdinType:`text`,needsFiles:!0};export{s as n,o as t};
6
- //# sourceMappingURL=chunk-QJ7O6ZN3-BH67tCjg.mjs.map
6
+ //# sourceMappingURL=chunk-QJ7O6ZN3-BCF2wp2J.mjs.map
@@ -0,0 +1,2 @@
1
+ import{w as e}from"./src-BkCVz_TJ.mjs";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t};
2
+ //# sourceMappingURL=chunk-QZHKN3VN-D0OJ2eQ1.mjs.map
@@ -1,2 +1,2 @@
1
1
  var e={name:`true`,async execute(){return{stdout:``,stderr:``,exitCode:0}}},t={name:`false`,async execute(){return{stdout:``,stderr:``,exitCode:1}}},n={name:`true`,flags:[]},r={name:`false`,flags:[]};export{t as i,r as n,n as r,e as t};
2
- //# sourceMappingURL=chunk-R6QSAL5T-CtbJTvt9.mjs.map
2
+ //# sourceMappingURL=chunk-R6QSAL5T-RaNW7MSS.mjs.map
@@ -1,2 +1,2 @@
1
1
  var e=new TextEncoder,t=new TextDecoder;function n(t,n){if(t instanceof Uint8Array)return t;if(n===`base64`)return Uint8Array.from(atob(t),e=>e.charCodeAt(0));if(n===`hex`){let e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)e[n/2]=parseInt(t.slice(n,n+2),16);return e}if(n===`binary`||n===`latin1`){if(t.length<=65536)return Uint8Array.from(t,e=>e.charCodeAt(0));let e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}return e.encode(t)}function r(e,n){if(n===`base64`){if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=65536,n=``;for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n+=String.fromCharCode(...i)}return btoa(n)}if(n===`hex`)return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``);if(n===`binary`||n===`latin1`){if(typeof Buffer<`u`)return Buffer.from(e).toString(n);let t=65536;if(e.length<=t)return String.fromCharCode(...e);let r=``;for(let n=0;n<e.length;n+=t){let i=e.subarray(n,n+t);r+=String.fromCharCode(...i)}return r}return t.decode(e)}function i(e){if(e!=null)return typeof e==`string`?e:e.encoding??void 0}export{i as n,n as r,r as t};
2
- //# sourceMappingURL=chunk-R6VWJ2ZL-D1Ufj9fh.mjs.map
2
+ //# sourceMappingURL=chunk-R6VWJ2ZL-BVeTwIsz.mjs.map
@@ -1,8 +1,8 @@
1
- import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var r={name:`du`,summary:`estimate file space usage`,usage:`du [OPTION]... [FILE]...`,options:[`-a write counts for all files, not just directories`,`-h print sizes in human readable format`,`-s display only a total for each argument`,`-c produce a grand total`,`--max-depth=N print total for directory only if N or fewer levels deep`,` --help display this help and exit`]},i={allFiles:{short:`a`,type:`boolean`},humanReadable:{short:`h`,type:`boolean`},summarize:{short:`s`,type:`boolean`},grandTotal:{short:`c`,type:`boolean`},maxDepth:{long:`max-depth`,type:`number`}},a={name:`du`,async execute(a,o){if(t(a))return e(r);let l=n(`du`,a,i);if(!l.ok)return l.error;let u={allFiles:l.result.flags.allFiles,humanReadable:l.result.flags.humanReadable,summarize:l.result.flags.summarize,grandTotal:l.result.flags.grandTotal,maxDepth:l.result.flags.maxDepth??null},d=l.result.positional;d.length===0&&d.push(`.`);let f=``,p=``,m=0;for(let e of d){let t=o.fs.resolvePath(o.cwd,e);try{await o.fs.stat(t);let n=await s(o,t,e,u,0);f+=n.output,m+=n.totalSize,p+=n.stderr}catch{p+=`du: cannot access '${e}': No such file or directory
1
+ import{r as e,t}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as n}from"./chunk-HWKDQ44K-BJxdK4fT.mjs";var r={name:`du`,summary:`estimate file space usage`,usage:`du [OPTION]... [FILE]...`,options:[`-a write counts for all files, not just directories`,`-h print sizes in human readable format`,`-s display only a total for each argument`,`-c produce a grand total`,`--max-depth=N print total for directory only if N or fewer levels deep`,` --help display this help and exit`]},i={allFiles:{short:`a`,type:`boolean`},humanReadable:{short:`h`,type:`boolean`},summarize:{short:`s`,type:`boolean`},grandTotal:{short:`c`,type:`boolean`},maxDepth:{long:`max-depth`,type:`number`}},a={name:`du`,async execute(a,o){if(t(a))return e(r);let l=n(`du`,a,i);if(!l.ok)return l.error;let u={allFiles:l.result.flags.allFiles,humanReadable:l.result.flags.humanReadable,summarize:l.result.flags.summarize,grandTotal:l.result.flags.grandTotal,maxDepth:l.result.flags.maxDepth??null},d=l.result.positional;d.length===0&&d.push(`.`);let f=``,p=``,m=0;for(let e of d){let t=o.fs.resolvePath(o.cwd,e);try{await o.fs.stat(t);let n=await s(o,t,e,u,0);f+=n.output,m+=n.totalSize,p+=n.stderr}catch{p+=`du: cannot access '${e}': No such file or directory
2
2
  `}}return u.grandTotal&&d.length>0&&(f+=`${c(m,u.humanReadable)} total
3
3
  `),{stdout:f,stderr:p,exitCode:p?1:0}}},o=1e3;async function s(e,t,n,r,i){let a={output:``,totalSize:0,stderr:``};if(i>o)return a;try{let o=await e.fs.stat(t);if(!o.isDirectory)return a.totalSize=o.size,(r.allFiles||i===0)&&(a.output=c(o.size,r.humanReadable)+` `+n+`
4
4
  `),a;let l=0,u=[];if(e.fs.readdirWithFileTypes){let n=await e.fs.readdirWithFileTypes(t),r=n.filter(e=>e.isFile),i=n.filter(e=>e.isDirectory);for(let n=0;n<r.length;n+=100){let i=r.slice(n,n+100),a=await Promise.all(i.map(async n=>{let r=t===`/`?`/${n.name}`:`${t}/${n.name}`;try{let t=await e.fs.stat(r);return{name:n.name,isDirectory:!1,size:t.size}}catch{return{name:n.name,isDirectory:!1,size:0}}}));u.push(...a)}u.push(...i.map(e=>({name:e.name,isDirectory:!0})))}else{let n=await e.fs.readdir(t);for(let r=0;r<n.length;r+=100){let i=n.slice(r,r+100),a=await Promise.all(i.map(async n=>{let r=t===`/`?`/${n}`:`${t}/${n}`;try{let t=await e.fs.stat(r);return{name:n,isDirectory:t.isDirectory,size:t.isDirectory?void 0:t.size}}catch{return{name:n,isDirectory:!1,size:0}}}));u.push(...a)}}u.sort((e,t)=>e.name.localeCompare(t.name));let d=u.filter(e=>!e.isDirectory);for(let e of d){let t=e.size??0;if(l+=t,r.allFiles&&!r.summarize){let i=n===`.`?e.name:`${n}/${e.name}`;a.output+=c(t,r.humanReadable)+` `+i+`
5
5
  `}}let f=u.filter(e=>e.isDirectory);for(let o=0;o<f.length;o+=100){let c=f.slice(o,o+100),u=await Promise.all(c.map(async a=>{let o=t===`/`?`/${a.name}`:`${t}/${a.name}`,c=n===`.`?a.name:`${n}/${a.name}`;return{name:a.name,result:await s(e,o,c,r,i+1)}}));u.sort((e,t)=>e.name.localeCompare(t.name));for(let{result:e}of u)l+=e.totalSize,r.summarize||(r.maxDepth===null||i+1<=r.maxDepth)&&(a.output+=e.output)}a.totalSize=l,(r.summarize||r.maxDepth===null||i<=r.maxDepth)&&(a.output+=`${c(l,r.humanReadable)} ${n}
6
6
  `)}catch{a.stderr=`du: cannot read directory '${n}': Permission denied
7
7
  `}return a}function c(e,t){return t?e<1024?`${e}`:e<1024*1024?`${(e/1024).toFixed(1)}K`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)}M`:`${(e/(1024*1024*1024)).toFixed(1)}G`:String(Math.ceil(e/1024)||1)}var l={name:`du`,flags:[{flag:`-a`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`--max-depth`,type:`value`,valueHint:`number`}],needsFiles:!0};export{l as n,a as t};
8
- //# sourceMappingURL=chunk-RPNGRAAP-BughPjdR.mjs.map
8
+ //# sourceMappingURL=chunk-RPNGRAAP-yHFoBjjv.mjs.map
@@ -1,6 +1,6 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-7L36YK2X-RiPZFKaV.mjs";var i={name:`cut`,summary:`remove sections from each line of files`,usage:`cut [OPTION]... [FILE]...`,options:[`-c LIST select only these characters`,`-d DELIM use DELIM instead of TAB for field delimiter`,`-f LIST select only these fields`,`-s, --only-delimited do not print lines without delimiters`,` --help display this help and exit`]};function a(e){let t=[],n=e.split(`,`);for(let e of n)if(e.includes(`-`)){let[n,r]=e.split(`-`);t.push({start:n?parseInt(n,10):1,end:r?parseInt(r,10):null})}else{let n=parseInt(e,10);t.push({start:n,end:n})}return t}function o(e,t){let n=[];for(let r of t){let t=r.start-1,i=r.end===null?e.length:r.end;for(let r=t;r<i&&r<e.length;r++)r>=0&&!n.includes(e[r])&&n.push(e[r])}return n}var s={name:`cut`,async execute(s,c){if(n(s))return t(i);let l=` `,u=null,d=null,f=!1,p=[];for(let t=0;t<s.length;t++){let n=s[t];if(n===`-d`)l=s[++t]||` `;else if(n.startsWith(`-d`))l=n.slice(2);else if(n===`-f`)u=s[++t];else if(n.startsWith(`-f`))u=n.slice(2);else if(n===`-c`)d=s[++t];else if(n.startsWith(`-c`))d=n.slice(2);else if(n===`-s`||n===`--only-delimited`)f=!0;else{if(n.startsWith(`--`))return e(`cut`,n);if(n.startsWith(`-`)){let t=!1;for(let e of n.slice(1))if(e===`s`)f=!0;else if(!`dfc`.includes(e)){t=!0;break}if(t)return e(`cut`,n)}else p.push(n)}}if(!u&&!d)return{stdout:``,stderr:`cut: you must specify a list of bytes, characters, or fields
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{t as r}from"./chunk-7L36YK2X-B3QRwLbB.mjs";var i={name:`cut`,summary:`remove sections from each line of files`,usage:`cut [OPTION]... [FILE]...`,options:[`-c LIST select only these characters`,`-d DELIM use DELIM instead of TAB for field delimiter`,`-f LIST select only these fields`,`-s, --only-delimited do not print lines without delimiters`,` --help display this help and exit`]};function a(e){let t=[],n=e.split(`,`);for(let e of n)if(e.includes(`-`)){let[n,r]=e.split(`-`);t.push({start:n?parseInt(n,10):1,end:r?parseInt(r,10):null})}else{let n=parseInt(e,10);t.push({start:n,end:n})}return t}function o(e,t){let n=[];for(let r of t){let t=r.start-1,i=r.end===null?e.length:r.end;for(let r=t;r<i&&r<e.length;r++)r>=0&&!n.includes(e[r])&&n.push(e[r])}return n}var s={name:`cut`,async execute(s,c){if(n(s))return t(i);let l=` `,u=null,d=null,f=!1,p=[];for(let t=0;t<s.length;t++){let n=s[t];if(n===`-d`)l=s[++t]||` `;else if(n.startsWith(`-d`))l=n.slice(2);else if(n===`-f`)u=s[++t];else if(n.startsWith(`-f`))u=n.slice(2);else if(n===`-c`)d=s[++t];else if(n.startsWith(`-c`))d=n.slice(2);else if(n===`-s`||n===`--only-delimited`)f=!0;else{if(n.startsWith(`--`))return e(`cut`,n);if(n.startsWith(`-`)){let t=!1;for(let e of n.slice(1))if(e===`s`)f=!0;else if(!`dfc`.includes(e)){t=!0;break}if(t)return e(`cut`,n)}else p.push(n)}}if(!u&&!d)return{stdout:``,stderr:`cut: you must specify a list of bytes, characters, or fields
2
2
  `,exitCode:1};let m=await r(c,p,{cmdName:`cut`});if(!m.ok)return m.error;let h=m.content.split(`
3
3
  `);h.length>0&&h[h.length-1]===``&&h.pop();let g=a(u||d||`1`),_=``;for(let e of h)if(d){let t=e.split(``),n=[];for(let e of g){let r=e.start-1,i=e.end===null?t.length:e.end;for(let e=r;e<i&&e<t.length;e++)e>=0&&n.push(t[e])}_+=`${n.join(``)}
4
4
  `}else{if(f&&!e.includes(l))continue;let t=o(e.split(l),g);_+=`${t.join(l)}
5
5
  `}return{stdout:_,stderr:``,exitCode:0,stdoutEncoding:`binary`}}},c={name:`cut`,flags:[{flag:`-d`,type:`value`,valueHint:`delimiter`},{flag:`-f`,type:`value`,valueHint:`string`},{flag:`-c`,type:`value`,valueHint:`string`},{flag:`-s`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{s as n,c as t};
6
- //# sourceMappingURL=chunk-SDNKECQQ-C3GEf3VZ.mjs.map
6
+ //# sourceMappingURL=chunk-SDNKECQQ-BsAYzqU5.mjs.map