@jackuait/blok 0.10.0-beta.7 → 0.10.0-beta.9

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 (292) hide show
  1. package/dist/blok.mjs +2 -2
  2. package/dist/chunks/{_basePickBy-BHRNO12X.mjs → _basePickBy-DISiGhsr.mjs} +1 -1
  3. package/dist/chunks/{_getTag-ozrhqxk_.mjs → _getTag-Aj56Wgor.mjs} +1 -1
  4. package/dist/chunks/{arc-BEqJP9HX.mjs → arc-D-pL2Ftf.mjs} +2 -2
  5. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +3 -0
  6. package/dist/chunks/{architectureDiagram-Q4EWVU46-BMno5LCn.mjs → architectureDiagram-Q4EWVU46-DS7mqjL2.mjs} +19 -19
  7. package/dist/chunks/{blockDiagram-DXYQGD6D-DlP_cPth.mjs → blockDiagram-DXYQGD6D-BTtcn4NG.mjs} +12 -12
  8. package/dist/chunks/{blok-CiLRmoHI.mjs → blok-DDu252IK.mjs} +1773 -1797
  9. package/dist/chunks/c-C6JXJf5K.mjs +5 -0
  10. package/dist/chunks/{c4Diagram-AHTNJAMY-BbVV8EXj.mjs → c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs} +5 -5
  11. package/dist/chunks/ccount-C9Y7nqDe.mjs +10 -0
  12. package/dist/chunks/{channel-DPcniO2B.mjs → channel-Cln-eWE0.mjs} +1 -1
  13. package/dist/chunks/{chunk-2KRD3SAO-CazES4VS.mjs → chunk-2KRD3SAO-DkM7qh-k.mjs} +1 -1
  14. package/dist/chunks/{chunk-336JU56O-heO72r_k.mjs → chunk-336JU56O-B17AtzlK.mjs} +7 -7
  15. package/dist/chunks/{chunk-426QAEUC-CmCcml1z.mjs → chunk-426QAEUC-D6UAVUog.mjs} +2 -2
  16. package/dist/chunks/{chunk-4BX2VUAB-B10DxOza.mjs → chunk-4BX2VUAB-CgIkjF7Z.mjs} +1 -1
  17. package/dist/chunks/{chunk-4TB4RGXK-B0snhZOU.mjs → chunk-4TB4RGXK-BUP4eON3.mjs} +8 -8
  18. package/dist/chunks/{chunk-55IACEB6-CGkn5ABd.mjs → chunk-55IACEB6-zZ-IgaSt.mjs} +1 -1
  19. package/dist/chunks/{chunk-5FUZZQ4R-USdumo_u.mjs → chunk-5FUZZQ4R-DsZnJYxM.mjs} +7 -7
  20. package/dist/chunks/{chunk-5PVQY5BW-CxUGVzQL.mjs → chunk-5PVQY5BW-CORl9dnu.mjs} +3 -3
  21. package/dist/chunks/{chunk-67CJDMHE-Bvw55oRa.mjs → chunk-67CJDMHE-m0UKdcSH.mjs} +1 -1
  22. package/dist/chunks/{chunk-7N4EOEYR-Bs2qDy88.mjs → chunk-7N4EOEYR-DKNajFZd.mjs} +1 -1
  23. package/dist/chunks/{chunk-AA7GKIK3-Bss0LgrN.mjs → chunk-AA7GKIK3-BeLhNzKa.mjs} +1 -1
  24. package/dist/chunks/{chunk-BSJP7CBP-CpUW7gi5.mjs → chunk-BSJP7CBP-CJExmx8a.mjs} +1 -1
  25. package/dist/chunks/{chunk-CIAEETIT-DlRbLLf3.mjs → chunk-CIAEETIT-CTikoJ19.mjs} +1 -1
  26. package/dist/chunks/{chunk-EDXVE4YY-DEcX4XWm.mjs → chunk-EDXVE4YY-DjInnnwb.mjs} +2 -2
  27. package/dist/chunks/{chunk-ENJZ2VHE-B4THRZkR.mjs → chunk-ENJZ2VHE-CIl5FRDA.mjs} +10 -10
  28. package/dist/chunks/{chunk-FMBD7UC4-CF6BKEiV.mjs → chunk-FMBD7UC4-DjV0W7UE.mjs} +1 -1
  29. package/dist/chunks/{chunk-FOC6F5B3--xuza7Yn.mjs → chunk-FOC6F5B3-LmHCCWYY.mjs} +1 -1
  30. package/dist/chunks/{chunk-ICPOFSXX-BMja8cuy.mjs → chunk-ICPOFSXX-BHZIN46A.mjs} +2 -2
  31. package/dist/chunks/{chunk-K5T4RW27-CHEqGHFS.mjs → chunk-K5T4RW27-BPZ6fFnW.mjs} +3 -3
  32. package/dist/chunks/{chunk-KGLVRYIC-DHYYpR8v.mjs → chunk-KGLVRYIC-S1OQdW76.mjs} +1 -1
  33. package/dist/chunks/{chunk-LIHQZDEY-AvbOvyLE.mjs → chunk-LIHQZDEY-CjtyJlI6.mjs} +1 -1
  34. package/dist/chunks/{chunk-ORNJ4GCN-38fbR5OS.mjs → chunk-ORNJ4GCN-CdO0hAge.mjs} +1 -1
  35. package/dist/chunks/{chunk-OYMX7WX6-BiqlATPA.mjs → chunk-OYMX7WX6-ApX8eV4o.mjs} +6 -6
  36. package/dist/chunks/{chunk-QZHKN3VN-DitZIvj8.mjs → chunk-QZHKN3VN-BGFuA6-k.mjs} +1 -1
  37. package/dist/chunks/{chunk-U2HBQHQK-DJytnHmZ.mjs → chunk-U2HBQHQK-B88ZUOTL.mjs} +3 -3
  38. package/dist/chunks/{chunk-X2U36JSP-DlOifw1K.mjs → chunk-X2U36JSP-1VS5TyCr.mjs} +2 -2
  39. package/dist/chunks/{chunk-XPW4576I-s4fsi4XO.mjs → chunk-XPW4576I-BMupdrvo.mjs} +1 -1
  40. package/dist/chunks/{chunk-YZCP3GAM-Ch258bXC.mjs → chunk-YZCP3GAM-BQ7eEsm2.mjs} +3 -3
  41. package/dist/chunks/{chunk-ZZ45TVLE-DWziaKxP.mjs → chunk-ZZ45TVLE-D1xks9zd.mjs} +3 -3
  42. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +30 -0
  43. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +30 -0
  44. package/dist/chunks/{clone-CJCz7VRp.mjs → clone-Ckjt1LtE.mjs} +1 -1
  45. package/dist/chunks/{constants-DFS8l39Y.mjs → constants-DMW9a31I.mjs} +1 -1
  46. package/dist/chunks/core-Bm6DWt7D.mjs +4501 -0
  47. package/dist/chunks/{cose-bilkent-S5V4N54A-CzLGVqvr.mjs → cose-bilkent-S5V4N54A-Bpcs2jA_.mjs} +2 -2
  48. package/dist/chunks/cpp-BdjvAny0.mjs +16 -0
  49. package/dist/chunks/csharp-YHxeHpeH.mjs +3 -0
  50. package/dist/chunks/css-DdLevFaX.mjs +3 -0
  51. package/dist/chunks/{dagre-XY8CZ1sg.mjs → dagre-CGNbYTKq.mjs} +3 -3
  52. package/dist/chunks/{dagre-KV5264BT-XbHSjleO.mjs → dagre-KV5264BT-DUD9ikgN.mjs} +15 -15
  53. package/dist/chunks/dart-DrPWqfcC.mjs +3 -0
  54. package/dist/chunks/{diagram-5BDNPKRD-CM7c3UTI.mjs → diagram-5BDNPKRD-CZGfTYEe.mjs} +18 -18
  55. package/dist/chunks/{diagram-G4DWMVQ6-Bhg4ps6b.mjs → diagram-G4DWMVQ6-CuS0-h95.mjs} +21 -21
  56. package/dist/chunks/{diagram-MMDJMWI5-C-UCVaxB.mjs → diagram-MMDJMWI5-C-AEApYz.mjs} +17 -17
  57. package/dist/chunks/{diagram-TYMM5635-BOHSujSD.mjs → diagram-TYMM5635-CiwAJVMq.mjs} +17 -17
  58. package/dist/chunks/dockerfile-C68ALcaN.mjs +3 -0
  59. package/dist/chunks/engine-javascript-CJpnSvzf.mjs +2373 -0
  60. package/dist/chunks/{erDiagram-SMLLAGMA-CwKxXFMB.mjs → erDiagram-SMLLAGMA-DeH5yck2.mjs} +14 -14
  61. package/dist/chunks/{flowDiagram-DWJPFMVM-rQJKfyuO.mjs → flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs} +17 -17
  62. package/dist/chunks/{ganttDiagram-T4ZO3ILL-DfaZirLX.mjs → ganttDiagram-T4ZO3ILL-K-divBg_.mjs} +7 -7
  63. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +3 -0
  64. package/dist/chunks/{gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs → gitGraphDiagram-UUTBAWPF-UytPZv72.mjs} +17 -17
  65. package/dist/chunks/go-Fm5N96DN.mjs +3 -0
  66. package/dist/chunks/{graphlib-CuDElSdG.mjs → graphlib-Cye9EPNq.mjs} +1 -1
  67. package/dist/chunks/graphql-BSnqmqgO.mjs +11 -0
  68. package/dist/chunks/html-BLNeZvnp.mjs +10 -0
  69. package/dist/chunks/{i18next-loader-CasQQb5s.mjs → i18next-loader-CwsYu0n6.mjs} +1 -1
  70. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +3 -0
  71. package/dist/chunks/{infoDiagram-42DDH7IO-CvyJU2nE.mjs → infoDiagram-42DDH7IO-DuYnDbF3.mjs} +14 -14
  72. package/dist/chunks/{ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs → ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs} +6 -6
  73. package/dist/chunks/java-83DWBpzu.mjs +5 -0
  74. package/dist/chunks/javascript-CBgeF1Xx.mjs +3 -0
  75. package/dist/chunks/{journeyDiagram-VCZTEJTY-H96UcUK9.mjs → journeyDiagram-VCZTEJTY-CD25C4_n.mjs} +6 -6
  76. package/dist/chunks/json-BI17y-1H.mjs +3 -0
  77. package/dist/chunks/{kanban-definition-6JOO6SKY-BYZT3srA.mjs → kanban-definition-6JOO6SKY-CTCT6N_p.mjs} +11 -11
  78. package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
  79. package/dist/chunks/latex-24n3TcOR.mjs +5 -0
  80. package/dist/chunks/{line-B9xUUA7k.mjs → line-Dct5pMmw.mjs} +3 -3
  81. package/dist/chunks/{linear-Dj-1yA_B.mjs → linear-BRCpMvtr.mjs} +3 -3
  82. package/dist/chunks/lua-DV0fuZWx.mjs +5 -0
  83. package/dist/chunks/markdown-BqQYT45f.mjs +3 -0
  84. package/dist/chunks/{mdast-util-math-CHYUxOHk.mjs → mdast-util-math-BlK2Zu-1.mjs} +1 -1
  85. package/dist/chunks/{mermaid-parser.core-D6OPAUtM.mjs → mermaid-parser.core-CA3DKkuk.mjs} +10 -10
  86. package/dist/chunks/mermaid-vF0cEnZ0.mjs +3 -0
  87. package/dist/chunks/{mermaid.core-BPN9ZHKQ.mjs → mermaid.core-CA8nc1sZ.mjs} +45 -45
  88. package/dist/chunks/{micromark-extension-math-Cz_ZZ_0Y.mjs → micromark-extension-math-BbkUb36G.mjs} +2 -2
  89. package/dist/chunks/{mindmap-definition-QFDTVHPH-BswFuNN6.mjs → mindmap-definition-QFDTVHPH-hNnyBkEP.mjs} +13 -13
  90. package/dist/chunks/objectWithoutProperties-D0XxKB4n.mjs +23 -0
  91. package/dist/chunks/one-light-DmNO_Y4X.mjs +4 -0
  92. package/dist/chunks/{ordinal-D1_lEgAO.mjs → ordinal-B-kolV-i.mjs} +1 -1
  93. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +3 -0
  94. package/dist/chunks/php-DmXKyPwJ.mjs +18 -0
  95. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +3 -0
  96. package/dist/chunks/{pieDiagram-DEJITSTG-1WJgvK1w.mjs → pieDiagram-DEJITSTG-Gw-fsc6U.mjs} +21 -21
  97. package/dist/chunks/python-DfwfY9t5.mjs +3 -0
  98. package/dist/chunks/{quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs → quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs} +4 -4
  99. package/dist/chunks/r-BD2D7qEW.mjs +5 -0
  100. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +3 -0
  101. package/dist/chunks/{requirementDiagram-MS252O5E-DRl0YJRI.mjs → requirementDiagram-MS252O5E-DjWKB42c.mjs} +13 -13
  102. package/dist/chunks/ruby-DdOo03Kg.mjs +33 -0
  103. package/dist/chunks/rust-DEDueB5R.mjs +3 -0
  104. package/dist/chunks/{sankeyDiagram-XADWPNL6-B-8IrknH.mjs → sankeyDiagram-XADWPNL6-BIN2evSB.mjs} +3 -3
  105. package/dist/chunks/scala-CsjqvxE4.mjs +3 -0
  106. package/dist/chunks/{sequenceDiagram-FGHM5R23-DTLb8qmO.mjs → sequenceDiagram-FGHM5R23-CQz2lMoS.mjs} +7 -7
  107. package/dist/chunks/shellscript-Bh5zEpnQ.mjs +3 -0
  108. package/dist/chunks/sql-D9CrOi1i.mjs +3 -0
  109. package/dist/chunks/{stateDiagram-FHFEXIEX-B0JFjLFy.mjs → stateDiagram-FHFEXIEX-BIBFsF65.mjs} +17 -17
  110. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +28 -0
  111. package/dist/chunks/swift-Dpyt0s2c.mjs +3 -0
  112. package/dist/chunks/{timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs → timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs} +6 -6
  113. package/dist/chunks/{tools-CSYsrnud.mjs → tools-XmzH2rgQ.mjs} +110 -102
  114. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +3 -0
  115. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +3 -0
  116. package/dist/chunks/typescript-DO5cd4m8.mjs +5 -0
  117. package/dist/chunks/{vennDiagram-DHZGUBPP-0BNu5Wna.mjs → vennDiagram-DHZGUBPP-B0DmLQqe.mjs} +6 -6
  118. package/dist/chunks/vitesse-dark-CcorSKT2.mjs +4 -0
  119. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +3 -0
  120. package/dist/chunks/{wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs → wardleyDiagram-NUSXRM2D-CzoKesUw.mjs} +15 -15
  121. package/dist/chunks/xml-g8kXXALs.mjs +5 -0
  122. package/dist/chunks/{xychartDiagram-5P7HB3ND-C8AyKUAE.mjs → xychartDiagram-5P7HB3ND-CixwR8r2.mjs} +11 -11
  123. package/dist/chunks/yaml-CrNNZyLb.mjs +3 -0
  124. package/dist/full.mjs +3 -3
  125. package/dist/markdown.mjs +384 -392
  126. package/dist/react.mjs +26 -25
  127. package/dist/tools.mjs +2 -2
  128. package/dist/vendor.LICENSE.txt +841 -49
  129. package/package.json +2 -6
  130. package/src/components/modules/api/ui.ts +0 -3
  131. package/src/styles/main.css +5 -1
  132. package/src/tools/table/table-cell-blocks.ts +30 -0
  133. package/src/tools/table/table-operations.ts +9 -0
  134. package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +0 -3
  135. package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +0 -30
  136. package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +0 -30
  137. package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +0 -3
  138. package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +0 -3
  139. package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +0 -3
  140. package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +0 -3
  141. package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +0 -3
  142. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +0 -28
  143. package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +0 -3
  144. package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +0 -3
  145. package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +0 -3
  146. /package/dist/chunks/{_baseUniq-DtFPDBML.mjs → _baseUniq-gAuHRtRF.mjs} +0 -0
  147. /package/dist/chunks/{am-rVzV1W41.mjs → am-BxlkYGsI.mjs} +0 -0
  148. /package/dist/chunks/{ar-C710lkoH.mjs → ar-9vlpr9V8.mjs} +0 -0
  149. /package/dist/chunks/{array-Cyf-61SV.mjs → array-BsrkCVSZ.mjs} +0 -0
  150. /package/dist/chunks/{az-BOp1pgua.mjs → az-ON63W_FP.mjs} +0 -0
  151. /package/dist/chunks/{bg-CL9p09ZD.mjs → bg-CtXWTP5w.mjs} +0 -0
  152. /package/dist/chunks/{bn-CNmSeyAy.mjs → bn-BERvhXM4.mjs} +0 -0
  153. /package/dist/chunks/{bs-BRzMGqzk.mjs → bs-CBg8NVPG.mjs} +0 -0
  154. /package/dist/chunks/{cs-BYPBLmnF.mjs → cs-DeQddxS7.mjs} +0 -0
  155. /package/dist/chunks/{cytoscape.esm-D0iglm-M.mjs → cytoscape.esm-BvD8wo00.mjs} +0 -0
  156. /package/dist/chunks/{da-CBC_LR1c.mjs → da-DyTo-ec_.mjs} +0 -0
  157. /package/dist/chunks/{de-DxRFMoAj.mjs → de-Cu7545m1.mjs} +0 -0
  158. /package/dist/chunks/{default-DIfXCS2E.mjs → default-qigT1Xpq.mjs} +0 -0
  159. /package/dist/chunks/{defaultLocale-DFhS1600.mjs → defaultLocale-ChuSeAxU.mjs} +0 -0
  160. /package/dist/chunks/{dist-DHsXIYdd.mjs → dist-Ctq-pyfb.mjs} +0 -0
  161. /package/dist/chunks/{el-Bk6YbySf.mjs → el-oiubLRBq.mjs} +0 -0
  162. /package/dist/chunks/{es-DpT3FCMR.mjs → es-DZUC6Klv.mjs} +0 -0
  163. /package/dist/chunks/{et-DE9Dr_g9.mjs → et-CDeklAog.mjs} +0 -0
  164. /package/dist/chunks/{fa-Banj1QUE.mjs → fa-Cafp7_Li.mjs} +0 -0
  165. /package/dist/chunks/{fi-DfN3M5ER.mjs → fi-BD_V_aVW.mjs} +0 -0
  166. /package/dist/chunks/{fil-DbCsRS1d.mjs → fil-Crsfbtx4.mjs} +0 -0
  167. /package/dist/chunks/{fr-D1clKhgt.mjs → fr-BGGc04Zv.mjs} +0 -0
  168. /package/dist/chunks/{gu-1CsZyRwT.mjs → gu-Vg_BgCTp.mjs} +0 -0
  169. /package/dist/chunks/{he-qQdnL6eK.mjs → he-DTY9chlZ.mjs} +0 -0
  170. /package/dist/chunks/{hi-DxM0Nff1.mjs → hi-DChMXk0x.mjs} +0 -0
  171. /package/dist/chunks/{hr-Onldyi-u.mjs → hr-BWVgNU8k.mjs} +0 -0
  172. /package/dist/chunks/{hu-CAn3pBuY.mjs → hu-B37awHXA.mjs} +0 -0
  173. /package/dist/chunks/{hy-D43q7NxE.mjs → hy-DGC_GDHh.mjs} +0 -0
  174. /package/dist/chunks/{i18next-BBGW2sDE.mjs → i18next-CXx5niYF.mjs} +0 -0
  175. /package/dist/chunks/{id-Xrw5Dd0Y.mjs → id-V7cw6La2.mjs} +0 -0
  176. /package/dist/chunks/{init-JlKGZtuT.mjs → init-C6T-mugb.mjs} +0 -0
  177. /package/dist/chunks/{it-CA9ZDMSc.mjs → it-DrTGP8Rn.mjs} +0 -0
  178. /package/dist/chunks/{ja-D0J6WRFh.mjs → ja-DS4pbJEG.mjs} +0 -0
  179. /package/dist/chunks/{ka-BZL7xDuY.mjs → ka-BueyosRh.mjs} +0 -0
  180. /package/dist/chunks/{katex-JyOgX6MW.mjs → katex-CmTPfM0f.mjs} +0 -0
  181. /package/dist/chunks/{km-BimgQZVU.mjs → km-B0K891yW.mjs} +0 -0
  182. /package/dist/chunks/{kn-C2n2cPHK.mjs → kn-BQ__skg8.mjs} +0 -0
  183. /package/dist/chunks/{ko-n4Cn93D3.mjs → ko-BuPxi_7e.mjs} +0 -0
  184. /package/dist/chunks/{ku-BYZCgT44.mjs → ku-nQjwPRw2.mjs} +0 -0
  185. /package/dist/chunks/{lo-DVXiAE4N.mjs → lo-K5NVFoq1.mjs} +0 -0
  186. /package/dist/chunks/{lt-B9KlQFnY.mjs → lt-D3xD6Eb2.mjs} +0 -0
  187. /package/dist/chunks/{lv-BINeOdyx.mjs → lv-DH13mzZj.mjs} +0 -0
  188. /package/dist/chunks/{messages-DgZc9TJw.mjs → messages-8IHf7ZP3.mjs} +0 -0
  189. /package/dist/chunks/{messages-DBFWSzKY2.mjs → messages-A_MkXDlG.mjs} +0 -0
  190. /package/dist/chunks/{messages-BtAwCUfD.mjs → messages-B0vPBsWq.mjs} +0 -0
  191. /package/dist/chunks/{messages-4uxjtzKW.mjs → messages-B2N4fUi72.mjs} +0 -0
  192. /package/dist/chunks/{messages-Bb3YEV2P.mjs → messages-B4UMuyjT.mjs} +0 -0
  193. /package/dist/chunks/{messages-BUUkmUGc.mjs → messages-B9kmbUWV.mjs} +0 -0
  194. /package/dist/chunks/{messages-Cw4qiMwb.mjs → messages-BA8Iv99Y2.mjs} +0 -0
  195. /package/dist/chunks/{messages-CiAHsUfO.mjs → messages-BAsb5CgZ.mjs} +0 -0
  196. /package/dist/chunks/{messages-a1JTi0Qm.mjs → messages-BDZA10kl2.mjs} +0 -0
  197. /package/dist/chunks/{messages-USmweex9.mjs → messages-BE6lHKwf.mjs} +0 -0
  198. /package/dist/chunks/{messages-tnnqHpbd.mjs → messages-BQYvBqm2.mjs} +0 -0
  199. /package/dist/chunks/{messages-BOj-7N3p.mjs → messages-BSghd0ez.mjs} +0 -0
  200. /package/dist/chunks/{messages-BevRhv5d.mjs → messages-BUVhHx0q2.mjs} +0 -0
  201. /package/dist/chunks/{messages-CGOY79lr.mjs → messages-BVjoM7P0.mjs} +0 -0
  202. /package/dist/chunks/{messages-BRYHTS18.mjs → messages-BXM80fdr2.mjs} +0 -0
  203. /package/dist/chunks/{messages-B1ylBxXQ.mjs → messages-BYlSMRkd.mjs} +0 -0
  204. /package/dist/chunks/{messages-Cuzq-tNW.mjs → messages-BYxLFj7y.mjs} +0 -0
  205. /package/dist/chunks/{messages-DC0wu2S7.mjs → messages-BeFqtIrc2.mjs} +0 -0
  206. /package/dist/chunks/{messages-DQUX-QYI2.mjs → messages-Bfnq1xv4.mjs} +0 -0
  207. /package/dist/chunks/{messages-CFOZdSk4.mjs → messages-BhzzNkN-.mjs} +0 -0
  208. /package/dist/chunks/{messages-CJJgQ0BH.mjs → messages-BjadX8jR2.mjs} +0 -0
  209. /package/dist/chunks/{messages-BvHMZ8Pi2.mjs → messages-Bp8qin1R.mjs} +0 -0
  210. /package/dist/chunks/{messages-BSBbVjor.mjs → messages-Bphq_Bt3.mjs} +0 -0
  211. /package/dist/chunks/{messages-0Uwu1AMJ2.mjs → messages-Bxvi1ebN.mjs} +0 -0
  212. /package/dist/chunks/{messages-C68WgSKk.mjs → messages-C0HvoMPb.mjs} +0 -0
  213. /package/dist/chunks/{messages-Bx6Wt285.mjs → messages-C3aX3q0H.mjs} +0 -0
  214. /package/dist/chunks/{messages-D-I2QO8H.mjs → messages-C6Mpiacw.mjs} +0 -0
  215. /package/dist/chunks/{messages-DKjddpzJ.mjs → messages-C7VGpihw.mjs} +0 -0
  216. /package/dist/chunks/{messages-DMvTdUXC.mjs → messages-CKBhDGI3.mjs} +0 -0
  217. /package/dist/chunks/{messages-BqYlq_Bn.mjs → messages-COO5xmcA.mjs} +0 -0
  218. /package/dist/chunks/{messages-jcgCHPRn.mjs → messages-CSJ_zb3a2.mjs} +0 -0
  219. /package/dist/chunks/{messages-D4eDs6R_.mjs → messages-CSL-6xfb2.mjs} +0 -0
  220. /package/dist/chunks/{messages--YKhFEDE.mjs → messages-CVdpweyf2.mjs} +0 -0
  221. /package/dist/chunks/{messages-Bhqr7Im2.mjs → messages-Cdf0W9H02.mjs} +0 -0
  222. /package/dist/chunks/{messages-1__0Ph4Q.mjs → messages-Ck81cQkn2.mjs} +0 -0
  223. /package/dist/chunks/{messages-CTD6rtQj2.mjs → messages-Cmf6NhSC.mjs} +0 -0
  224. /package/dist/chunks/{messages-BC9w4zAT.mjs → messages-Cs81Z_Bh.mjs} +0 -0
  225. /package/dist/chunks/{messages-BpJFjSKa.mjs → messages-Cu-Wevxs2.mjs} +0 -0
  226. /package/dist/chunks/{messages-CZymJML9.mjs → messages-D3zojZ94.mjs} +0 -0
  227. /package/dist/chunks/{messages-DF9o19rG.mjs → messages-D55HRx5O2.mjs} +0 -0
  228. /package/dist/chunks/{messages-DGS4H30T.mjs → messages-D9N2MvQx2.mjs} +0 -0
  229. /package/dist/chunks/{messages-D9Xr-hES.mjs → messages-DG-4DPmP.mjs} +0 -0
  230. /package/dist/chunks/{messages-BzslJRYv.mjs → messages-DGL1ySqb2.mjs} +0 -0
  231. /package/dist/chunks/{messages-B6n2zDtv.mjs → messages-DJoNVjqP.mjs} +0 -0
  232. /package/dist/chunks/{messages-CfeFJbiv.mjs → messages-DMVXnAYj.mjs} +0 -0
  233. /package/dist/chunks/{messages-C02M0Tpw.mjs → messages-DOuS1Qge.mjs} +0 -0
  234. /package/dist/chunks/{messages-Cgatzu_z.mjs → messages-DWu1r4gc2.mjs} +0 -0
  235. /package/dist/chunks/{messages-Be_6YLzJ.mjs → messages-DlLXpgWM2.mjs} +0 -0
  236. /package/dist/chunks/{messages-B-SwLgkQ.mjs → messages-DlonA3wa.mjs} +0 -0
  237. /package/dist/chunks/{messages-DFS_n986.mjs → messages-Dr0Ekmbz.mjs} +0 -0
  238. /package/dist/chunks/{messages-DfVXiqt-2.mjs → messages-DzTk8bJ5.mjs} +0 -0
  239. /package/dist/chunks/{messages-Bw1BE9jW.mjs → messages-FWfsxpBz.mjs} +0 -0
  240. /package/dist/chunks/{messages-Ch2zBI602.mjs → messages-G416eyjY.mjs} +0 -0
  241. /package/dist/chunks/{messages-vzWKPLJO.mjs → messages-Je5YvxiY.mjs} +0 -0
  242. /package/dist/chunks/{messages-C1u3E9qg.mjs → messages-JyvWu4rf2.mjs} +0 -0
  243. /package/dist/chunks/{messages-DUigq8FO2.mjs → messages-KdawW5Na.mjs} +0 -0
  244. /package/dist/chunks/{messages-D1BKxfLD.mjs → messages-MxpWO1db.mjs} +0 -0
  245. /package/dist/chunks/{messages-4sm9Pb0C.mjs → messages-NEqrrYvE2.mjs} +0 -0
  246. /package/dist/chunks/{messages-D9eJPHia.mjs → messages-RInp1ytX.mjs} +0 -0
  247. /package/dist/chunks/{messages-Cyh-mz40.mjs → messages-TRUuyiFB.mjs} +0 -0
  248. /package/dist/chunks/{messages-D0D2gruy.mjs → messages-aZcy0JQq2.mjs} +0 -0
  249. /package/dist/chunks/{messages-DY0FJdpH.mjs → messages-iS34FHFB.mjs} +0 -0
  250. /package/dist/chunks/{messages-B5m3dhKc.mjs → messages-ihCjSFJI2.mjs} +0 -0
  251. /package/dist/chunks/{messages-CGaSMZPu.mjs → messages-jfVpL9c-2.mjs} +0 -0
  252. /package/dist/chunks/{messages-Bthbp65G.mjs → messages-p1mbe__S.mjs} +0 -0
  253. /package/dist/chunks/{messages-C8w8JCP0.mjs → messages-rCd0Rrw6.mjs} +0 -0
  254. /package/dist/chunks/{messages-QD4BCUDP.mjs → messages-xuqyb6Ff2.mjs} +0 -0
  255. /package/dist/chunks/{micromark-factory-space-WwmyBO_J.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
  256. /package/dist/chunks/{mk-_-QrPrLN.mjs → mk-Bb48BcDA.mjs} +0 -0
  257. /package/dist/chunks/{ml-KvJSC1KT.mjs → ml-BHPEj1kD.mjs} +0 -0
  258. /package/dist/chunks/{mn-CjFjWnRG.mjs → mn-BNGzpdI6.mjs} +0 -0
  259. /package/dist/chunks/{mr-DqAZ7FRX.mjs → mr-D5PgU-cH.mjs} +0 -0
  260. /package/dist/chunks/{ms-BZcV4UG_.mjs → ms-DPkxqKz5.mjs} +0 -0
  261. /package/dist/chunks/{my-97SC9jYN.mjs → my-DZGcyfxy.mjs} +0 -0
  262. /package/dist/chunks/{native-CzYG0YgY.mjs → native-D0cfLXsM.mjs} +0 -0
  263. /package/dist/chunks/{ne-Bs-M2TyF.mjs → ne-BU_Wh4Wv.mjs} +0 -0
  264. /package/dist/chunks/{nl-2ZwQilo-.mjs → nl-DtAPk1mK.mjs} +0 -0
  265. /package/dist/chunks/{no-fOQTpFq1.mjs → no-CdW3n3BY.mjs} +0 -0
  266. /package/dist/chunks/{notifier-B1zCi9G1.mjs → notifier-CuvTt9pe.mjs} +0 -0
  267. /package/dist/chunks/{pa-DLOqkMi0.mjs → pa-BacCHz87.mjs} +0 -0
  268. /package/dist/chunks/{path-6nYPAvNb.mjs → path-rIMjg_tH.mjs} +0 -0
  269. /package/dist/chunks/{pl-FYs9QrXU.mjs → pl-8zBJbmhZ.mjs} +0 -0
  270. /package/dist/chunks/{ps-CTXe6pSe.mjs → ps-c6nGXD-W.mjs} +0 -0
  271. /package/dist/chunks/{pt-B1X4x7d1.mjs → pt-B5yR8Qhr.mjs} +0 -0
  272. /package/dist/chunks/{ro-Bf7S2FaR.mjs → ro-Nscylsqb.mjs} +0 -0
  273. /package/dist/chunks/{rough.esm-CSWJruu5.mjs → rough.esm-cmMIcj7N.mjs} +0 -0
  274. /package/dist/chunks/{ru-B8lqnu_j.mjs → ru-DxERQkVJ.mjs} +0 -0
  275. /package/dist/chunks/{sd-CHRYJm2r.mjs → sd-5z-QY3q9.mjs} +0 -0
  276. /package/dist/chunks/{si-CI0Hs6vH.mjs → si-DTL0mzrx.mjs} +0 -0
  277. /package/dist/chunks/{sk-Bdvq1Kb_.mjs → sk-DrGczTvY.mjs} +0 -0
  278. /package/dist/chunks/{sl-B_qiFTV5.mjs → sl-D8nJjig4.mjs} +0 -0
  279. /package/dist/chunks/{sq-E0j1hysP.mjs → sq-C74Hm3YL.mjs} +0 -0
  280. /package/dist/chunks/{sr-VPpVNTZw.mjs → sr-DAwB05Gj.mjs} +0 -0
  281. /package/dist/chunks/{src-CRgEHLPW.mjs → src-DVJl6f6s.mjs} +0 -0
  282. /package/dist/chunks/{sv-gKmDSR3d.mjs → sv-BkHBsN4y.mjs} +0 -0
  283. /package/dist/chunks/{sw-zeFLiO23.mjs → sw-BBQLTq_z.mjs} +0 -0
  284. /package/dist/chunks/{ta-Ci-j89hR.mjs → ta-DRRzdKky.mjs} +0 -0
  285. /package/dist/chunks/{te-qyMI0M7a.mjs → te-CedXLsKM.mjs} +0 -0
  286. /package/dist/chunks/{th-DPxHtpdb.mjs → th-DDOlGA0W.mjs} +0 -0
  287. /package/dist/chunks/{tr-CRV6GS-G.mjs → tr-ClgvwOlL.mjs} +0 -0
  288. /package/dist/chunks/{ug-DW0YFpo5.mjs → ug-bXxwiinM.mjs} +0 -0
  289. /package/dist/chunks/{uk-ssteuphK.mjs → uk-Dp46o_VT.mjs} +0 -0
  290. /package/dist/chunks/{ur-qhY3-jY7.mjs → ur-MfEEhdFq.mjs} +0 -0
  291. /package/dist/chunks/{vi-CHriMMC8.mjs → vi-bt-3LPGO.mjs} +0 -0
  292. /package/dist/chunks/{zh-BJktawVN.mjs → zh-Dgyb5Ly8.mjs} +0 -0
@@ -0,0 +1,2373 @@
1
+ import { n as e, t } from "./objectSpread2-CWwMYL_U.mjs";
2
+ import { t as n } from "./objectWithoutProperties-D0XxKB4n.mjs";
3
+ //#region node_modules/@shikijs/engine-javascript/dist/scanner-BFcBmQR1.mjs
4
+ var r = 4294967295, i = class {
5
+ constructor(t, n = {}) {
6
+ e(this, "regexps", void 0), this.patterns = t, this.options = n;
7
+ let { forgiving: r = !1, cache: i, regexConstructor: a } = n;
8
+ if (!a) throw Error("Option `regexConstructor` is not provided");
9
+ this.regexps = t.map((e) => {
10
+ if (typeof e != "string") return e;
11
+ let t = i == null ? void 0 : i.get(e);
12
+ if (t) {
13
+ if (t instanceof RegExp) return t;
14
+ if (r) return null;
15
+ throw t;
16
+ }
17
+ try {
18
+ let t = a(e);
19
+ return i == null || i.set(e, t), t;
20
+ } catch (t) {
21
+ if (i == null || i.set(e, t), r) return null;
22
+ throw t;
23
+ }
24
+ });
25
+ }
26
+ findNextMatchSync(e, t, n) {
27
+ let i = typeof e == "string" ? e : e.content, a = [];
28
+ function o(e, t, n = 0) {
29
+ return {
30
+ index: e,
31
+ captureIndices: t.indices.map((e) => e == null ? {
32
+ start: r,
33
+ end: r,
34
+ length: 0
35
+ } : {
36
+ start: e[0] + n,
37
+ end: e[1] + n,
38
+ length: e[1] - e[0]
39
+ })
40
+ };
41
+ }
42
+ for (let e = 0; e < this.regexps.length; e++) {
43
+ let n = this.regexps[e];
44
+ if (n) try {
45
+ n.lastIndex = t;
46
+ let r = n.exec(i);
47
+ if (!r) continue;
48
+ if (r.index === t) return o(e, r, 0);
49
+ a.push([
50
+ e,
51
+ r,
52
+ 0
53
+ ]);
54
+ } catch (e) {
55
+ if (this.options.forgiving) continue;
56
+ throw e;
57
+ }
58
+ }
59
+ if (a.length) {
60
+ let e = Math.min(...a.map((e) => e[1].index));
61
+ for (let [t, n, r] of a) if (n.index === e) return o(t, n, r);
62
+ }
63
+ return null;
64
+ }
65
+ };
66
+ //#endregion
67
+ //#region \0@oxc-project+runtime@0.115.0/helpers/checkPrivateRedeclaration.js
68
+ function a(e, t) {
69
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
70
+ }
71
+ //#endregion
72
+ //#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateMethodInitSpec.js
73
+ function o(e, t) {
74
+ a(e, t), t.add(e);
75
+ }
76
+ //#endregion
77
+ //#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldInitSpec.js
78
+ function s(e, t, n) {
79
+ a(e, t), t.set(e, n);
80
+ }
81
+ //#endregion
82
+ //#region \0@oxc-project+runtime@0.115.0/helpers/assertClassBrand.js
83
+ function c(e, t, n) {
84
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
85
+ throw TypeError("Private element is not present on this object");
86
+ }
87
+ //#endregion
88
+ //#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldGet2.js
89
+ function l(e, t) {
90
+ return e.get(c(e, t));
91
+ }
92
+ //#endregion
93
+ //#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldSet2.js
94
+ function u(e, t, n) {
95
+ return e.set(c(e, t), n), n;
96
+ }
97
+ //#endregion
98
+ //#region \0@oxc-project+runtime@0.115.0/helpers/getPrototypeOf.js
99
+ function d(e) {
100
+ return d = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
101
+ return e.__proto__ || Object.getPrototypeOf(e);
102
+ }, d(e);
103
+ }
104
+ //#endregion
105
+ //#region \0@oxc-project+runtime@0.115.0/helpers/superPropBase.js
106
+ function f(e, t) {
107
+ for (; !{}.hasOwnProperty.call(e, t) && (e = d(e)) !== null;);
108
+ return e;
109
+ }
110
+ //#endregion
111
+ //#region \0@oxc-project+runtime@0.115.0/helpers/get.js
112
+ function p() {
113
+ return p = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(e, t, n) {
114
+ var r = f(e, t);
115
+ if (r) {
116
+ var i = Object.getOwnPropertyDescriptor(r, t);
117
+ return i.get ? i.get.call(arguments.length < 3 ? e : n) : i.value;
118
+ }
119
+ }, p.apply(null, arguments);
120
+ }
121
+ //#endregion
122
+ //#region \0@oxc-project+runtime@0.115.0/helpers/superPropGet.js
123
+ function m(e, t, n, r) {
124
+ var i = p(d(1 & r ? e.prototype : e), t, n);
125
+ return 2 & r && typeof i == "function" ? function(e) {
126
+ return i.apply(n, e);
127
+ } : i;
128
+ }
129
+ //#endregion
130
+ //#region node_modules/oniguruma-parser/dist/utils.js
131
+ function h(e) {
132
+ if ([...e].length !== 1) throw Error(`Expected "${e}" to be a single code point`);
133
+ return e.codePointAt(0);
134
+ }
135
+ function g(e, t, n) {
136
+ return e.has(t) || e.set(t, n), e.get(t);
137
+ }
138
+ var _ = new Set([
139
+ "alnum",
140
+ "alpha",
141
+ "ascii",
142
+ "blank",
143
+ "cntrl",
144
+ "digit",
145
+ "graph",
146
+ "lower",
147
+ "print",
148
+ "punct",
149
+ "space",
150
+ "upper",
151
+ "word",
152
+ "xdigit"
153
+ ]), v = String.raw;
154
+ function y(e, t) {
155
+ if (e == null) throw Error(t == null ? "Value expected" : t);
156
+ return e;
157
+ }
158
+ //#endregion
159
+ //#region node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
160
+ var ee = v`\[\^?`, te = `c.? | C(?:-.?)?|${v`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${v`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${v`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${v`o\{[^\}]*\}?`}|${v`\d{1,3}`}`, ne = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/, re = new RegExp(v`
161
+ \\ (?:
162
+ ${te}
163
+ | [gk]<[^>]*>?
164
+ | [gk]'[^']*'?
165
+ | .
166
+ )
167
+ | \( (?:
168
+ \? (?:
169
+ [:=!>({]
170
+ | <[=!]
171
+ | <[^>]*>
172
+ | '[^']*'
173
+ | ~\|?
174
+ | #(?:[^)\\]|\\.?)*
175
+ | [^:)]*[:)]
176
+ )?
177
+ | \*[^\)]*\)?
178
+ )?
179
+ | (?:${ne.source})+
180
+ | ${ee}
181
+ | .
182
+ `.replace(/\s+/g, ""), "gsu"), ie = new RegExp(v`
183
+ \\ (?:
184
+ ${te}
185
+ | .
186
+ )
187
+ | \[:(?:\^?\p{Alpha}+|\^):\]
188
+ | ${ee}
189
+ | &&
190
+ | .
191
+ `.replace(/\s+/g, ""), "gsu");
192
+ function ae(e, n = {}) {
193
+ let r = t(t({ flags: "" }, n), {}, { rules: t({
194
+ captureGroup: !1,
195
+ singleline: !1
196
+ }, n.rules) });
197
+ if (typeof e != "string") throw Error("String expected as pattern");
198
+ let i = Me(r.flags), a = [i.extended], o = {
199
+ captureGroup: r.rules.captureGroup,
200
+ getCurrentModX() {
201
+ return a.at(-1);
202
+ },
203
+ numOpenGroups: 0,
204
+ popModX() {
205
+ a.pop();
206
+ },
207
+ pushModX(e) {
208
+ a.push(e);
209
+ },
210
+ replaceCurrentModX(e) {
211
+ a[a.length - 1] = e;
212
+ },
213
+ singleline: r.rules.singleline
214
+ }, s = [], c;
215
+ for (re.lastIndex = 0; c = re.exec(e);) {
216
+ let t = oe(o, e, c[0], re.lastIndex);
217
+ t.tokens ? s.push(...t.tokens) : t.token && s.push(t.token), t.lastIndex !== void 0 && (re.lastIndex = t.lastIndex);
218
+ }
219
+ let l = [], u = 0;
220
+ s.filter((e) => e.type === "GroupOpen").forEach((e) => {
221
+ e.kind === "capturing" ? e.number = ++u : e.raw === "(" && l.push(e);
222
+ }), u || l.forEach((e, t) => {
223
+ e.kind = "capturing", e.number = t + 1;
224
+ });
225
+ let d = u || l.length;
226
+ return {
227
+ tokens: s.map((e) => e.type === "EscapedNumber" ? Pe(e, d) : e).flat(),
228
+ flags: i
229
+ };
230
+ }
231
+ function oe(e, n, r, i) {
232
+ let [a, o] = r;
233
+ if (r === "[" || r === "[^") {
234
+ let e = se(n, r, i);
235
+ return {
236
+ tokens: e.tokens,
237
+ lastIndex: e.lastIndex
238
+ };
239
+ }
240
+ if (a === "\\") {
241
+ if ("AbBGyYzZ".includes(o)) return { token: de(r, r) };
242
+ if (/^\\g[<']/.test(r)) {
243
+ if (!/^\\g(?:<[^>]+>|'[^']+')$/.test(r)) throw Error(`Invalid group name "${r}"`);
244
+ return { token: Se(r) };
245
+ }
246
+ if (/^\\k[<']/.test(r)) {
247
+ if (!/^\\k(?:<[^>]+>|'[^']+')$/.test(r)) throw Error(`Invalid group name "${r}"`);
248
+ return { token: fe(r) };
249
+ }
250
+ if (o === "K") return { token: _e("keep", r) };
251
+ if (o === "N" || o === "R") return { token: x("newline", r, { negate: o === "N" }) };
252
+ if (o === "O") return { token: x("any", r) };
253
+ if (o === "X") return { token: x("text_segment", r) };
254
+ let e = le(r, { inCharClass: !1 });
255
+ return Array.isArray(e) ? { tokens: e } : { token: e };
256
+ }
257
+ if (a === "(") {
258
+ if (o === "*") return { token: De(r) };
259
+ if (r === "(?{") throw Error(`Unsupported callout "${r}"`);
260
+ if (r.startsWith("(?#")) {
261
+ if (n[i] !== ")") throw Error("Unclosed comment group \"(?#\"");
262
+ return { lastIndex: i + 1 };
263
+ }
264
+ if (/^\(\?[-imx]+[:)]$/.test(r)) return { token: Ee(r, e) };
265
+ if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, r === "(" && !e.captureGroup || r === "(?:") return { token: S("group", r) };
266
+ if (r === "(?>") return { token: S("atomic", r) };
267
+ if (r === "(?=" || r === "(?!" || r === "(?<=" || r === "(?<!") return { token: S(r[2] === "<" ? "lookbehind" : "lookahead", r, { negate: r.endsWith("!") }) };
268
+ if (r === "(" && e.captureGroup || r.startsWith("(?<") && r.endsWith(">") || r.startsWith("(?'") && r.endsWith("'")) return { token: S("capturing", r, t({}, r !== "(" && { name: r.slice(3, -1) })) };
269
+ if (r.startsWith("(?~")) {
270
+ if (r === "(?~|") throw Error(`Unsupported absence function kind "${r}"`);
271
+ return { token: S("absence_repeater", r) };
272
+ }
273
+ throw r === "(?(" ? /* @__PURE__ */ Error(`Unsupported conditional "${r}"`) : /* @__PURE__ */ Error(`Invalid or unsupported group option "${r}"`);
274
+ }
275
+ if (r === ")") {
276
+ if (e.popModX(), e.numOpenGroups--, e.numOpenGroups < 0) throw Error("Unmatched \")\"");
277
+ return { token: ye(r) };
278
+ }
279
+ if (e.getCurrentModX()) {
280
+ if (r === "#") {
281
+ let e = n.indexOf("\n", i);
282
+ return { lastIndex: e === -1 ? n.length : e };
283
+ }
284
+ if (/^\s$/.test(r)) {
285
+ let e = /\s+/y;
286
+ return e.lastIndex = i, { lastIndex: e.exec(n) ? e.lastIndex : i };
287
+ }
288
+ }
289
+ return r === "." ? { token: x("dot", r) } : r === "^" || r === "$" ? { token: de(e.singleline ? {
290
+ "^": v`\A`,
291
+ $: v`\Z`
292
+ }[r] : r, r) } : r === "|" ? { token: ue(r) } : ne.test(r) ? { tokens: Fe(r) } : { token: b(h(r), r) };
293
+ }
294
+ function se(e, t, n) {
295
+ let r = [ge(t[1] === "^", t)], i = 1, a;
296
+ for (ie.lastIndex = n; a = ie.exec(e);) {
297
+ let e = a[0];
298
+ if (e[0] === "[" && e[1] !== ":") i++, r.push(ge(e[1] === "^", e));
299
+ else if (e === "]") {
300
+ if (r.at(-1).type === "CharacterClassOpen") r.push(b(93, e));
301
+ else if (i--, r.push(pe(e)), !i) break;
302
+ } else {
303
+ let t = ce(e);
304
+ Array.isArray(t) ? r.push(...t) : r.push(t);
305
+ }
306
+ }
307
+ return {
308
+ tokens: r,
309
+ lastIndex: ie.lastIndex || e.length
310
+ };
311
+ }
312
+ function ce(e) {
313
+ if (e[0] === "\\") return le(e, { inCharClass: !0 });
314
+ if (e[0] === "[") {
315
+ let t = (/* @__PURE__ */ RegExp("\\[:(?<negate>\\^?)(?<name>[a-z]+):\\]", "")).exec(e);
316
+ if (!t || !_.has(t.groups.name)) throw Error(`Invalid POSIX class "${e}"`);
317
+ return x("posix", e, {
318
+ value: t.groups.name,
319
+ negate: !!t.groups.negate
320
+ });
321
+ }
322
+ return e === "-" ? me(e) : e === "&&" ? he(e) : b(h(e), e);
323
+ }
324
+ function le(e, { inCharClass: t }) {
325
+ let n = e[1];
326
+ if (n === "c" || n === "C") return Te(e);
327
+ if ("dDhHsSwW".includes(n)) return ke(e);
328
+ if (e.startsWith(v`\o{`)) throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
329
+ if (/^\\[pP]\{/.test(e)) {
330
+ if (e.length === 3) throw Error(`Incomplete or invalid Unicode property "${e}"`);
331
+ return Ae(e);
332
+ }
333
+ if ((/* @__PURE__ */ RegExp("^\\\\x[89A-Fa-f]\\p{AHex}", "u")).test(e)) try {
334
+ let t = e.split(/\\x/).slice(1).map((e) => parseInt(e, 16)), n = new TextDecoder("utf-8", {
335
+ ignoreBOM: !0,
336
+ fatal: !0
337
+ }).decode(new Uint8Array(t)), r = new TextEncoder();
338
+ return [...n].map((e) => {
339
+ let t = [...r.encode(e)].map((e) => `\\x${e.toString(16)}`).join("");
340
+ return b(h(e), t);
341
+ });
342
+ } catch (t) {
343
+ throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`);
344
+ }
345
+ if (n === "u" || n === "x") return b(Ne(e), e);
346
+ if (we.has(n)) return b(we.get(n), e);
347
+ if (/\d/.test(n)) return ve(t, e);
348
+ if (e === "\\") throw Error(v`Incomplete escape "\"`);
349
+ if (n === "M") throw Error(`Unsupported meta "${e}"`);
350
+ if ([...e].length === 2) return b(e.codePointAt(1), e);
351
+ throw Error(`Unexpected escape "${e}"`);
352
+ }
353
+ function ue(e) {
354
+ return {
355
+ type: "Alternator",
356
+ raw: e
357
+ };
358
+ }
359
+ function de(e, t) {
360
+ return {
361
+ type: "Assertion",
362
+ kind: e,
363
+ raw: t
364
+ };
365
+ }
366
+ function fe(e) {
367
+ return {
368
+ type: "Backreference",
369
+ raw: e
370
+ };
371
+ }
372
+ function b(e, t) {
373
+ return {
374
+ type: "Character",
375
+ value: e,
376
+ raw: t
377
+ };
378
+ }
379
+ function pe(e) {
380
+ return {
381
+ type: "CharacterClassClose",
382
+ raw: e
383
+ };
384
+ }
385
+ function me(e) {
386
+ return {
387
+ type: "CharacterClassHyphen",
388
+ raw: e
389
+ };
390
+ }
391
+ function he(e) {
392
+ return {
393
+ type: "CharacterClassIntersector",
394
+ raw: e
395
+ };
396
+ }
397
+ function ge(e, t) {
398
+ return {
399
+ type: "CharacterClassOpen",
400
+ negate: e,
401
+ raw: t
402
+ };
403
+ }
404
+ function x(e, n, r = {}) {
405
+ return t(t({
406
+ type: "CharacterSet",
407
+ kind: e
408
+ }, r), {}, { raw: n });
409
+ }
410
+ function _e(e, t, n = {}) {
411
+ return e === "keep" ? {
412
+ type: "Directive",
413
+ kind: e,
414
+ raw: t
415
+ } : {
416
+ type: "Directive",
417
+ kind: e,
418
+ flags: y(n.flags),
419
+ raw: t
420
+ };
421
+ }
422
+ function ve(e, t) {
423
+ return {
424
+ type: "EscapedNumber",
425
+ inCharClass: e,
426
+ raw: t
427
+ };
428
+ }
429
+ function ye(e) {
430
+ return {
431
+ type: "GroupClose",
432
+ raw: e
433
+ };
434
+ }
435
+ function S(e, n, r = {}) {
436
+ return t(t({
437
+ type: "GroupOpen",
438
+ kind: e
439
+ }, r), {}, { raw: n });
440
+ }
441
+ function be(e, t, n, r) {
442
+ return {
443
+ type: "NamedCallout",
444
+ kind: e,
445
+ tag: t,
446
+ arguments: n,
447
+ raw: r
448
+ };
449
+ }
450
+ function xe(e, t, n, r) {
451
+ return {
452
+ type: "Quantifier",
453
+ kind: e,
454
+ min: t,
455
+ max: n,
456
+ raw: r
457
+ };
458
+ }
459
+ function Se(e) {
460
+ return {
461
+ type: "Subroutine",
462
+ raw: e
463
+ };
464
+ }
465
+ var Ce = new Set([
466
+ "COUNT",
467
+ "CMP",
468
+ "ERROR",
469
+ "FAIL",
470
+ "MAX",
471
+ "MISMATCH",
472
+ "SKIP",
473
+ "TOTAL_COUNT"
474
+ ]), we = new Map([
475
+ ["a", 7],
476
+ ["b", 8],
477
+ ["e", 27],
478
+ ["f", 12],
479
+ ["n", 10],
480
+ ["r", 13],
481
+ ["t", 9],
482
+ ["v", 11]
483
+ ]);
484
+ function Te(e) {
485
+ let t = e[1] === "c" ? e[2] : e[3];
486
+ if (!t || !/[A-Za-z]/.test(t)) throw Error(`Unsupported control character "${e}"`);
487
+ return b(h(t.toUpperCase()) - 64, e);
488
+ }
489
+ function Ee(e, n) {
490
+ let { on: r, off: i } = (/* @__PURE__ */ RegExp("^\\(\\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?", "")).exec(e).groups;
491
+ i != null || (i = "");
492
+ let a = (n.getCurrentModX() || r.includes("x")) && !i.includes("x"), o = je(r), s = je(i), c = {};
493
+ if (o && (c.enable = o), s && (c.disable = s), e.endsWith(")")) return n.replaceCurrentModX(a), _e("flags", e, { flags: c });
494
+ if (e.endsWith(":")) return n.pushModX(a), n.numOpenGroups++, S("group", e, t({}, (o || s) && { flags: c }));
495
+ throw Error(`Unexpected flag modifier "${e}"`);
496
+ }
497
+ function De(e) {
498
+ var t;
499
+ let n = (/* @__PURE__ */ RegExp("\\(\\*(?<name>[A-Za-z_]\\w*)?(?:\\[(?<tag>(?:[A-Za-z_]\\w*)?)\\])?(?:\\{(?<args>[^}]*)\\})?\\)", "")).exec(e);
500
+ if (!n) throw Error(`Incomplete or invalid named callout "${e}"`);
501
+ let { name: r, tag: i, args: a } = n.groups;
502
+ if (!r) throw Error(`Invalid named callout "${e}"`);
503
+ if (i === "") throw Error(`Named callout tag with empty value not allowed "${e}"`);
504
+ let o = a ? a.split(",").filter((e) => e !== "").map((e) => /^[+-]?\d+$/.test(e) ? +e : e) : [], [s, c, l] = o, u = Ce.has(r) ? r.toLowerCase() : "custom";
505
+ switch (u) {
506
+ case "fail":
507
+ case "mismatch":
508
+ case "skip":
509
+ if (o.length > 0) throw Error(`Named callout arguments not allowed "${o}"`);
510
+ break;
511
+ case "error":
512
+ if (o.length > 1) throw Error(`Named callout allows only one argument "${o}"`);
513
+ if (typeof s == "string") throw Error(`Named callout argument must be a number "${s}"`);
514
+ break;
515
+ case "max":
516
+ if (!o.length || o.length > 2) throw Error(`Named callout must have one or two arguments "${o}"`);
517
+ if (typeof s == "string" && !/^[A-Za-z_]\w*$/.test(s)) throw Error(`Named callout argument one must be a tag or number "${s}"`);
518
+ if (o.length === 2 && (typeof c == "number" || !/^[<>X]$/.test(c))) throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${c}"`);
519
+ break;
520
+ case "count":
521
+ case "total_count":
522
+ if (o.length > 1) throw Error(`Named callout allows only one argument "${o}"`);
523
+ if (o.length === 1 && (typeof s == "number" || !/^[<>X]$/.test(s))) throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);
524
+ break;
525
+ case "cmp":
526
+ if (o.length !== 3) throw Error(`Named callout must have three arguments "${o}"`);
527
+ if (typeof s == "string" && !/^[A-Za-z_]\w*$/.test(s)) throw Error(`Named callout argument one must be a tag or number "${s}"`);
528
+ if (typeof c == "number" || !/^(?:[<>!=]=|[<>])$/.test(c)) throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${c}"`);
529
+ if (typeof l == "string" && !/^[A-Za-z_]\w*$/.test(l)) throw Error(`Named callout argument three must be a tag or number "${l}"`);
530
+ break;
531
+ case "custom": throw Error(`Undefined callout name "${r}"`);
532
+ default: throw Error(`Unexpected named callout kind "${u}"`);
533
+ }
534
+ return be(u, i == null ? null : i, (t = a == null ? void 0 : a.split(",")) == null ? null : t, e);
535
+ }
536
+ function Oe(e) {
537
+ let t = null, n, r;
538
+ if (e[0] === "{") {
539
+ let { minStr: i, maxStr: a } = (/* @__PURE__ */ RegExp("^\\{(?<minStr>\\d*)(?:,(?<maxStr>\\d*))?", "")).exec(e).groups, o = 1e5;
540
+ if (+i > o || a && +a > o) throw Error("Quantifier value unsupported in Oniguruma");
541
+ if (n = +i, r = a === void 0 ? +i : a === "" ? Infinity : +a, n > r && (t = "possessive", [n, r] = [r, n]), e.endsWith("?")) {
542
+ if (t === "possessive") throw Error("Unsupported possessive interval quantifier chain with \"?\"");
543
+ t = "lazy";
544
+ } else t || (t = "greedy");
545
+ } else n = e[0] === "+" ? 1 : 0, r = e[0] === "?" ? 1 : Infinity, t = e[1] === "+" ? "possessive" : e[1] === "?" ? "lazy" : "greedy";
546
+ return xe(t, n, r, e);
547
+ }
548
+ function ke(e) {
549
+ let t = e[1].toLowerCase();
550
+ return x({
551
+ d: "digit",
552
+ h: "hex",
553
+ s: "space",
554
+ w: "word"
555
+ }[t], e, { negate: e[1] !== t });
556
+ }
557
+ function Ae(e) {
558
+ let { p: t, neg: n, value: r } = (/* @__PURE__ */ RegExp("^\\\\(?<p>[pP])\\{(?<neg>\\^?)(?<value>[^}]+)", "")).exec(e).groups;
559
+ return x("property", e, {
560
+ value: r,
561
+ negate: t === "P" && !n || t === "p" && !!n
562
+ });
563
+ }
564
+ function je(e) {
565
+ let t = {};
566
+ return e.includes("i") && (t.ignoreCase = !0), e.includes("m") && (t.dotAll = !0), e.includes("x") && (t.extended = !0), Object.keys(t).length ? t : null;
567
+ }
568
+ function Me(e) {
569
+ let t = {
570
+ ignoreCase: !1,
571
+ dotAll: !1,
572
+ extended: !1,
573
+ digitIsAscii: !1,
574
+ posixIsAscii: !1,
575
+ spaceIsAscii: !1,
576
+ wordIsAscii: !1,
577
+ textSegmentMode: null
578
+ };
579
+ for (let n = 0; n < e.length; n++) {
580
+ let r = e[n];
581
+ if (!"imxDPSWy".includes(r)) throw Error(`Invalid flag "${r}"`);
582
+ if (r === "y") {
583
+ if (!/^y{[gw]}/.test(e.slice(n))) throw Error("Invalid or unspecified flag \"y\" mode");
584
+ t.textSegmentMode = e[n + 2] === "g" ? "grapheme" : "word", n += 3;
585
+ continue;
586
+ }
587
+ t[{
588
+ i: "ignoreCase",
589
+ m: "dotAll",
590
+ x: "extended",
591
+ D: "digitIsAscii",
592
+ P: "posixIsAscii",
593
+ S: "spaceIsAscii",
594
+ W: "wordIsAscii"
595
+ }[r]] = !0;
596
+ }
597
+ return t;
598
+ }
599
+ function Ne(e) {
600
+ if ((/* @__PURE__ */ RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))", "u")).test(e)) throw Error(`Incomplete or invalid escape "${e}"`);
601
+ let t = e[2] === "{" ? (/* @__PURE__ */ RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)", "u")).exec(e).groups.hex : e.slice(2);
602
+ return parseInt(t, 16);
603
+ }
604
+ function Pe(e, t) {
605
+ let { raw: n, inCharClass: r } = e, i = n.slice(1);
606
+ if (!r && (i !== "0" && i.length === 1 || i[0] !== "0" && +i <= t)) return [fe(n)];
607
+ let a = [], o = i.match(/^[0-7]+|\d/g);
608
+ for (let e = 0; e < o.length; e++) {
609
+ let t = o[e], r;
610
+ if (e === 0 && t !== "8" && t !== "9") {
611
+ if (r = parseInt(t, 8), r > 127) throw Error(v`Octal encoded byte above 177 unsupported "${n}"`);
612
+ } else r = h(t);
613
+ a.push(b(r, (e === 0 ? "\\" : "") + t));
614
+ }
615
+ return a;
616
+ }
617
+ function Fe(e) {
618
+ let t = [], n = new RegExp(ne, "gy"), r;
619
+ for (; r = n.exec(e);) {
620
+ let e = r[0];
621
+ if (e[0] === "{") {
622
+ let r = (/* @__PURE__ */ RegExp("^\\{(?<min>\\d+),(?<max>\\d+)\\}\\??$", "")).exec(e);
623
+ if (r) {
624
+ let { min: i, max: a } = r.groups;
625
+ if (+i > +a && e.endsWith("?")) {
626
+ n.lastIndex--, t.push(Oe(e.slice(0, -1)));
627
+ continue;
628
+ }
629
+ }
630
+ }
631
+ t.push(Oe(e));
632
+ }
633
+ return t;
634
+ }
635
+ //#endregion
636
+ //#region node_modules/oniguruma-parser/dist/parser/node-utils.js
637
+ function Ie(e, t) {
638
+ if (!Array.isArray(e.body)) throw Error("Expected node with body array");
639
+ if (e.body.length !== 1) return !1;
640
+ let n = e.body[0];
641
+ return !t || Object.keys(t).every((e) => t[e] === n[e]);
642
+ }
643
+ function Le(e) {
644
+ return Re.has(e.type);
645
+ }
646
+ var Re = new Set([
647
+ "AbsenceFunction",
648
+ "Backreference",
649
+ "CapturingGroup",
650
+ "Character",
651
+ "CharacterClass",
652
+ "CharacterSet",
653
+ "Group",
654
+ "Quantifier",
655
+ "Subroutine"
656
+ ]);
657
+ //#endregion
658
+ //#region node_modules/oniguruma-parser/dist/parser/parse.js
659
+ function ze(e, n = {}) {
660
+ let r = t(t({
661
+ flags: "",
662
+ normalizeUnknownPropertyNames: !1,
663
+ skipBackrefValidation: !1,
664
+ skipLookbehindValidation: !1,
665
+ skipPropertyNameValidation: !1,
666
+ unicodePropertyMap: null
667
+ }, n), {}, { rules: t({
668
+ captureGroup: !1,
669
+ singleline: !1
670
+ }, n.rules) }), i = ae(e, {
671
+ flags: r.flags,
672
+ rules: {
673
+ captureGroup: r.rules.captureGroup,
674
+ singleline: r.rules.singleline
675
+ }
676
+ }), a = (e, t) => {
677
+ let n = i.tokens[o.nextIndex];
678
+ switch (o.parent = e, o.nextIndex++, n.type) {
679
+ case "Alternator": return C();
680
+ case "Assertion": return Be(n);
681
+ case "Backreference": return Ve(n, o);
682
+ case "Character": return w(n.value, { useLastValid: !!t.isCheckingRangeEnd });
683
+ case "CharacterClassHyphen": return He(n, o, t);
684
+ case "CharacterClassOpen": return Ue(n, o, t);
685
+ case "CharacterSet": return We(n, o);
686
+ case "Directive": return et(n.kind, { flags: n.flags });
687
+ case "GroupOpen": return Ge(n, o, t);
688
+ case "NamedCallout": return nt(n.kind, n.tag, n.arguments);
689
+ case "Quantifier": return Ke(n, o);
690
+ case "Subroutine": return qe(n, o);
691
+ default: throw Error(`Unexpected token type "${n.type}"`);
692
+ }
693
+ }, o = {
694
+ capturingGroups: [],
695
+ hasNumberedRef: !1,
696
+ namedGroupsByName: /* @__PURE__ */ new Map(),
697
+ nextIndex: 0,
698
+ normalizeUnknownPropertyNames: r.normalizeUnknownPropertyNames,
699
+ parent: null,
700
+ skipBackrefValidation: r.skipBackrefValidation,
701
+ skipLookbehindValidation: r.skipLookbehindValidation,
702
+ skipPropertyNameValidation: r.skipPropertyNameValidation,
703
+ subroutines: [],
704
+ tokens: i.tokens,
705
+ unicodePropertyMap: r.unicodePropertyMap,
706
+ walk: a
707
+ }, s = at(tt(i.flags)), c = s.body[0];
708
+ for (; o.nextIndex < i.tokens.length;) {
709
+ let e = a(c, {});
710
+ e.type === "Alternative" ? (s.body.push(e), c = e) : c.body.push(e);
711
+ }
712
+ let { capturingGroups: l, hasNumberedRef: u, namedGroupsByName: d, subroutines: f } = o;
713
+ if (u && d.size && !r.rules.captureGroup) throw Error("Numbered backref/subroutine not allowed when using named capture");
714
+ for (let { ref: e } of f) if (typeof e == "number") {
715
+ if (e > l.length) throw Error("Subroutine uses a group number that's not defined");
716
+ e && (l[e - 1].isSubroutined = !0);
717
+ } else if (d.has(e)) {
718
+ if (d.get(e).length > 1) throw Error(v`Subroutine uses a duplicate group name "\g<${e}>"`);
719
+ d.get(e)[0].isSubroutined = !0;
720
+ } else throw Error(v`Subroutine uses a group name that's not defined "\g<${e}>"`);
721
+ return s;
722
+ }
723
+ function Be({ kind: e }) {
724
+ return Ye(y({
725
+ "^": "line_start",
726
+ $: "line_end",
727
+ "\\A": "string_start",
728
+ "\\b": "word_boundary",
729
+ "\\B": "word_boundary",
730
+ "\\G": "search_start",
731
+ "\\y": "text_segment_boundary",
732
+ "\\Y": "text_segment_boundary",
733
+ "\\z": "string_end",
734
+ "\\Z": "string_end_newline"
735
+ }[e], `Unexpected assertion kind "${e}"`), { negate: e === v`\B` || e === v`\Y` });
736
+ }
737
+ function Ve({ raw: e }, t) {
738
+ let n = /^\\k[<']/.test(e), r = n ? e.slice(3, -1) : e.slice(1), i = (n, r = !1) => {
739
+ let i = t.capturingGroups.length, a = !1;
740
+ if (n > i) if (t.skipBackrefValidation) a = !0;
741
+ else throw Error(`Not enough capturing groups defined to the left "${e}"`);
742
+ return t.hasNumberedRef = !0, Xe(r ? i + 1 - n : n, { orphan: a });
743
+ };
744
+ if (n) {
745
+ let n = (/* @__PURE__ */ RegExp("^(?<sign>-?)0*(?<num>[1-9]\\d*)$", "")).exec(r);
746
+ if (n) return i(+n.groups.num, !!n.groups.sign);
747
+ if (/[-+]/.test(r)) throw Error(`Invalid backref name "${e}"`);
748
+ if (!t.namedGroupsByName.has(r)) throw Error(`Group name not defined to the left "${e}"`);
749
+ return Xe(r);
750
+ }
751
+ return i(+r);
752
+ }
753
+ function He(e, n, r) {
754
+ let { tokens: i, walk: a } = n, o = n.parent, s = o.body.at(-1), c = i[n.nextIndex];
755
+ if (!r.isCheckingRangeEnd && s && s.type !== "CharacterClass" && s.type !== "CharacterClassRange" && c && c.type !== "CharacterClassOpen" && c.type !== "CharacterClassClose" && c.type !== "CharacterClassIntersector") {
756
+ let e = a(o, t(t({}, r), {}, { isCheckingRangeEnd: !0 }));
757
+ if (s.type === "Character" && e.type === "Character") return o.body.pop(), Qe(s, e);
758
+ throw Error("Invalid character class range");
759
+ }
760
+ return w(h("-"));
761
+ }
762
+ function Ue({ negate: e }, t, n) {
763
+ let { tokens: r, walk: i } = t, a = r[t.nextIndex], o = [T()], s = pt(a);
764
+ for (; s.type !== "CharacterClassClose";) {
765
+ if (s.type === "CharacterClassIntersector") o.push(T()), t.nextIndex++;
766
+ else {
767
+ let e = o.at(-1);
768
+ e.body.push(i(e, n));
769
+ }
770
+ s = pt(r[t.nextIndex], a);
771
+ }
772
+ let c = T({ negate: e });
773
+ return o.length === 1 ? c.body = o[0].body : (c.kind = "intersection", c.body = o.map((e) => e.body.length === 1 ? e.body[0] : e)), t.nextIndex++, c;
774
+ }
775
+ function We({ kind: e, negate: t, value: n }, r) {
776
+ let { normalizeUnknownPropertyNames: i, skipPropertyNameValidation: a, unicodePropertyMap: o } = r;
777
+ if (e === "property") {
778
+ let r = A(n);
779
+ if (_.has(r) && !(o != null && o.has(r))) e = "posix", n = r;
780
+ else return O(n, {
781
+ negate: t,
782
+ normalizeUnknownPropertyNames: i,
783
+ skipPropertyNameValidation: a,
784
+ unicodePropertyMap: o
785
+ });
786
+ }
787
+ return e === "posix" ? rt(n, { negate: t }) : $e(e, { negate: t });
788
+ }
789
+ function Ge(e, n, r) {
790
+ let { tokens: i, capturingGroups: a, namedGroupsByName: o, skipLookbehindValidation: s, walk: c } = n, l = st(e), u = l.type === "AbsenceFunction", d = ut(l), f = d && l.negate;
791
+ if (l.type === "CapturingGroup" && (a.push(l), l.name && g(o, l.name, []).push(l)), u && r.isInAbsenceFunction) throw Error("Nested absence function not supported by Oniguruma");
792
+ let p = mt(i[n.nextIndex]);
793
+ for (; p.type !== "GroupClose";) {
794
+ if (p.type === "Alternator") l.body.push(C()), n.nextIndex++;
795
+ else {
796
+ let e = l.body.at(-1), n = c(e, t(t({}, r), {}, {
797
+ isInAbsenceFunction: r.isInAbsenceFunction || u,
798
+ isInLookbehind: r.isInLookbehind || d,
799
+ isInNegLookbehind: r.isInNegLookbehind || f
800
+ }));
801
+ if (e.body.push(n), (d || r.isInLookbehind) && !s) {
802
+ let e = "Lookbehind includes a pattern not allowed by Oniguruma";
803
+ if (f || r.isInNegLookbehind) {
804
+ if (lt(n) || n.type === "CapturingGroup") throw Error(e);
805
+ } else if (lt(n) || ut(n) && n.negate) throw Error(e);
806
+ }
807
+ }
808
+ p = mt(i[n.nextIndex]);
809
+ }
810
+ return n.nextIndex++, l;
811
+ }
812
+ function Ke({ kind: e, min: t, max: n }, r) {
813
+ let i = r.parent, a = i.body.at(-1);
814
+ if (!a || !Le(a)) throw Error("Quantifier requires a repeatable token");
815
+ let o = it(e, t, n, a);
816
+ return i.body.pop(), o;
817
+ }
818
+ function qe({ raw: e }, t) {
819
+ let { capturingGroups: n, subroutines: r } = t, i = e.slice(3, -1), a = (/* @__PURE__ */ RegExp("^(?<sign>[-+]?)0*(?<num>[1-9]\\d*)$", "")).exec(i);
820
+ if (a) {
821
+ let e = +a.groups.num, r = n.length;
822
+ if (t.hasNumberedRef = !0, i = {
823
+ "": e,
824
+ "+": r + e,
825
+ "-": r + 1 - e
826
+ }[a.groups.sign], i < 1) throw Error("Invalid subroutine number");
827
+ } else i === "0" && (i = 0);
828
+ let o = ot(i);
829
+ return r.push(o), o;
830
+ }
831
+ function Je(e, t) {
832
+ if (e !== "repeater") throw Error(`Unexpected absence function kind "${e}"`);
833
+ return {
834
+ type: "AbsenceFunction",
835
+ kind: e,
836
+ body: k(t == null ? void 0 : t.body)
837
+ };
838
+ }
839
+ function C(e) {
840
+ return {
841
+ type: "Alternative",
842
+ body: ct(e == null ? void 0 : e.body)
843
+ };
844
+ }
845
+ function Ye(e, t) {
846
+ let n = {
847
+ type: "Assertion",
848
+ kind: e
849
+ };
850
+ return (e === "word_boundary" || e === "text_segment_boundary") && (n.negate = !!(t != null && t.negate)), n;
851
+ }
852
+ function Xe(e, n) {
853
+ let r = !!(n != null && n.orphan);
854
+ return t({
855
+ type: "Backreference",
856
+ ref: e
857
+ }, r && { orphan: r });
858
+ }
859
+ function Ze(e, n) {
860
+ let r = t({
861
+ name: void 0,
862
+ isSubroutined: !1
863
+ }, n);
864
+ if (r.name !== void 0 && !dt(r.name)) throw Error(`Group name "${r.name}" invalid in Oniguruma`);
865
+ return t(t(t({
866
+ type: "CapturingGroup",
867
+ number: e
868
+ }, r.name && { name: r.name }), r.isSubroutined && { isSubroutined: r.isSubroutined }), {}, { body: k(n == null ? void 0 : n.body) });
869
+ }
870
+ function w(e, n) {
871
+ let r = t({ useLastValid: !1 }, n);
872
+ if (e > 1114111) {
873
+ let t = e.toString(16);
874
+ if (r.useLastValid) e = 1114111;
875
+ else throw e > 1310719 ? /* @__PURE__ */ Error(`Invalid code point out of range "\\x{${t}}"`) : /* @__PURE__ */ Error(`Invalid code point out of range in JS "\\x{${t}}"`);
876
+ }
877
+ return {
878
+ type: "Character",
879
+ value: e
880
+ };
881
+ }
882
+ function T(e) {
883
+ let n = t({
884
+ kind: "union",
885
+ negate: !1
886
+ }, e);
887
+ return {
888
+ type: "CharacterClass",
889
+ kind: n.kind,
890
+ negate: n.negate,
891
+ body: ct(e == null ? void 0 : e.body)
892
+ };
893
+ }
894
+ function Qe(e, t) {
895
+ if (t.value < e.value) throw Error("Character class range out of order");
896
+ return {
897
+ type: "CharacterClassRange",
898
+ min: e,
899
+ max: t
900
+ };
901
+ }
902
+ function $e(e, t) {
903
+ let n = !!(t != null && t.negate), r = {
904
+ type: "CharacterSet",
905
+ kind: e
906
+ };
907
+ return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (r.negate = n), (e === "text_segment" || e === "newline" && !n) && (r.variableLength = !0), r;
908
+ }
909
+ function et(e, t = {}) {
910
+ if (e === "keep") return {
911
+ type: "Directive",
912
+ kind: e
913
+ };
914
+ if (e === "flags") return {
915
+ type: "Directive",
916
+ kind: e,
917
+ flags: y(t.flags)
918
+ };
919
+ throw Error(`Unexpected directive kind "${e}"`);
920
+ }
921
+ function tt(e) {
922
+ return t({ type: "Flags" }, e);
923
+ }
924
+ function E(e) {
925
+ let n = e == null ? void 0 : e.atomic, r = e == null ? void 0 : e.flags;
926
+ if (n && r) throw Error("Atomic group cannot have flags");
927
+ return t(t(t({ type: "Group" }, n && { atomic: n }), r && { flags: r }), {}, { body: k(e == null ? void 0 : e.body) });
928
+ }
929
+ function D(e) {
930
+ let n = t({
931
+ behind: !1,
932
+ negate: !1
933
+ }, e);
934
+ return {
935
+ type: "LookaroundAssertion",
936
+ kind: n.behind ? "lookbehind" : "lookahead",
937
+ negate: n.negate,
938
+ body: k(e == null ? void 0 : e.body)
939
+ };
940
+ }
941
+ function nt(e, t, n) {
942
+ return {
943
+ type: "NamedCallout",
944
+ kind: e,
945
+ tag: t,
946
+ arguments: n
947
+ };
948
+ }
949
+ function rt(e, t) {
950
+ let n = !!(t != null && t.negate);
951
+ if (!_.has(e)) throw Error(`Invalid POSIX class "${e}"`);
952
+ return {
953
+ type: "CharacterSet",
954
+ kind: "posix",
955
+ value: e,
956
+ negate: n
957
+ };
958
+ }
959
+ function it(e, t, n, r) {
960
+ if (t > n) throw Error("Invalid reversed quantifier range");
961
+ return {
962
+ type: "Quantifier",
963
+ kind: e,
964
+ min: t,
965
+ max: n,
966
+ body: r
967
+ };
968
+ }
969
+ function at(e, t) {
970
+ return {
971
+ type: "Regex",
972
+ body: k(t == null ? void 0 : t.body),
973
+ flags: e
974
+ };
975
+ }
976
+ function ot(e) {
977
+ return {
978
+ type: "Subroutine",
979
+ ref: e
980
+ };
981
+ }
982
+ function O(e, n) {
983
+ var r, i;
984
+ let a = t({
985
+ negate: !1,
986
+ normalizeUnknownPropertyNames: !1,
987
+ skipPropertyNameValidation: !1,
988
+ unicodePropertyMap: null
989
+ }, n), o = (r = a.unicodePropertyMap) == null ? void 0 : r.get(A(e));
990
+ if (!o) {
991
+ if (a.normalizeUnknownPropertyNames) o = ft(e);
992
+ else if (a.unicodePropertyMap && !a.skipPropertyNameValidation) throw Error(v`Invalid Unicode property "\p{${e}}"`);
993
+ }
994
+ return {
995
+ type: "CharacterSet",
996
+ kind: "property",
997
+ value: (i = o) == null ? e : i,
998
+ negate: a.negate
999
+ };
1000
+ }
1001
+ function st({ flags: e, kind: t, name: n, negate: r, number: i }) {
1002
+ switch (t) {
1003
+ case "absence_repeater": return Je("repeater");
1004
+ case "atomic": return E({ atomic: !0 });
1005
+ case "capturing": return Ze(i, { name: n });
1006
+ case "group": return E({ flags: e });
1007
+ case "lookahead":
1008
+ case "lookbehind": return D({
1009
+ behind: t === "lookbehind",
1010
+ negate: r
1011
+ });
1012
+ default: throw Error(`Unexpected group kind "${t}"`);
1013
+ }
1014
+ }
1015
+ function k(e) {
1016
+ if (e === void 0) e = [C()];
1017
+ else if (!Array.isArray(e) || !e.length || !e.every((e) => e.type === "Alternative")) throw Error("Invalid body; expected array of one or more Alternative nodes");
1018
+ return e;
1019
+ }
1020
+ function ct(e) {
1021
+ if (e === void 0) e = [];
1022
+ else if (!Array.isArray(e) || !e.every((e) => !!e.type)) throw Error("Invalid body; expected array of nodes");
1023
+ return e;
1024
+ }
1025
+ function lt(e) {
1026
+ return e.type === "LookaroundAssertion" && e.kind === "lookahead";
1027
+ }
1028
+ function ut(e) {
1029
+ return e.type === "LookaroundAssertion" && e.kind === "lookbehind";
1030
+ }
1031
+ function dt(e) {
1032
+ return (/* @__PURE__ */ RegExp("^[\\p{Alpha}\\p{Pc}][^)]*$", "u")).test(e);
1033
+ }
1034
+ function ft(e) {
1035
+ return e.trim().replace(/[- _]+/g, "_").replace(/[A-Z][a-z]+(?=[A-Z])/g, "$&_").replace(/[A-Za-z]+/g, (e) => e[0].toUpperCase() + e.slice(1).toLowerCase());
1036
+ }
1037
+ function A(e) {
1038
+ return e.replace(/[- _]+/g, "").toLowerCase();
1039
+ }
1040
+ function pt(e, t) {
1041
+ return y(e, `${(t == null ? void 0 : t.type) === "Character" && t.value === 93 ? "Empty" : "Unclosed"} character class`);
1042
+ }
1043
+ function mt(e) {
1044
+ return y(e, "Unclosed group");
1045
+ }
1046
+ //#endregion
1047
+ //#region node_modules/oniguruma-parser/dist/traverser/traverse.js
1048
+ function j(e, t, n = null) {
1049
+ function r(e, t) {
1050
+ for (let n = 0; n < e.length; n++) {
1051
+ let r = i(e[n], t, n, e);
1052
+ n = Math.max(-1, n + r);
1053
+ }
1054
+ }
1055
+ function i(a, o = null, s = null, c = null) {
1056
+ var l, u;
1057
+ let d = 0, f = !1, p = {
1058
+ node: a,
1059
+ parent: o,
1060
+ key: s,
1061
+ container: c,
1062
+ root: e,
1063
+ remove() {
1064
+ M(c).splice(Math.max(0, N(s) + d), 1), d--, f = !0;
1065
+ },
1066
+ removeAllNextSiblings() {
1067
+ return M(c).splice(N(s) + 1);
1068
+ },
1069
+ removeAllPrevSiblings() {
1070
+ let e = N(s) + d;
1071
+ return d -= e, M(c).splice(0, Math.max(0, e));
1072
+ },
1073
+ replaceWith(e, t = {}) {
1074
+ let n = !!t.traverse;
1075
+ c ? c[Math.max(0, N(s) + d)] = e : y(o, "Can't replace root node")[s] = e, n && i(e, o, s, c), f = !0;
1076
+ },
1077
+ replaceWithMultiple(e, t = {}) {
1078
+ let n = !!t.traverse;
1079
+ if (M(c).splice(Math.max(0, N(s) + d), 1, ...e), d += e.length - 1, n) {
1080
+ let t = 0;
1081
+ for (let n = 0; n < e.length; n++) t += i(e[n], o, N(s) + n + t, c);
1082
+ }
1083
+ f = !0;
1084
+ },
1085
+ skip() {
1086
+ f = !0;
1087
+ }
1088
+ }, { type: m } = a, h = t["*"], g = t[m], _ = typeof h == "function" ? h : h == null ? void 0 : h.enter, v = typeof g == "function" ? g : g == null ? void 0 : g.enter;
1089
+ if (_ == null || _(p, n), v == null || v(p, n), !f) switch (m) {
1090
+ case "AbsenceFunction":
1091
+ case "CapturingGroup":
1092
+ case "Group":
1093
+ r(a.body, a);
1094
+ break;
1095
+ case "Alternative":
1096
+ case "CharacterClass":
1097
+ r(a.body, a);
1098
+ break;
1099
+ case "Assertion":
1100
+ case "Backreference":
1101
+ case "Character":
1102
+ case "CharacterSet":
1103
+ case "Directive":
1104
+ case "Flags":
1105
+ case "NamedCallout":
1106
+ case "Subroutine": break;
1107
+ case "CharacterClassRange":
1108
+ i(a.min, a, "min"), i(a.max, a, "max");
1109
+ break;
1110
+ case "LookaroundAssertion":
1111
+ r(a.body, a);
1112
+ break;
1113
+ case "Quantifier":
1114
+ i(a.body, a, "body");
1115
+ break;
1116
+ case "Regex":
1117
+ r(a.body, a), i(a.flags, a, "flags");
1118
+ break;
1119
+ default: throw Error(`Unexpected node type "${m}"`);
1120
+ }
1121
+ return g == null || (l = g.exit) == null || l.call(g, p, n), h == null || (u = h.exit) == null || u.call(h, p, n), d;
1122
+ }
1123
+ return i(e), e;
1124
+ }
1125
+ function M(e) {
1126
+ if (!Array.isArray(e)) throw Error("Container expected");
1127
+ return e;
1128
+ }
1129
+ function N(e) {
1130
+ if (typeof e != "number") throw Error("Numeric key expected");
1131
+ return e;
1132
+ }
1133
+ //#endregion
1134
+ //#region node_modules/regex/src/utils-internals.js
1135
+ var ht = String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;
1136
+ function gt(e, t) {
1137
+ for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
1138
+ }
1139
+ function _t(e, t, n, r) {
1140
+ return e.slice(0, t) + r + e.slice(t + n.length);
1141
+ }
1142
+ //#endregion
1143
+ //#region node_modules/regex-utilities/src/index.js
1144
+ var P = Object.freeze({
1145
+ DEFAULT: "DEFAULT",
1146
+ CHAR_CLASS: "CHAR_CLASS"
1147
+ });
1148
+ function vt(e, t, n, r) {
1149
+ let i = new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`, "gsu"), a = [!1], o = 0, s = "";
1150
+ for (let t of e.matchAll(i)) {
1151
+ let { 0: e, groups: { $skip: i } } = t;
1152
+ if (!i && (!r || r === P.DEFAULT == !o)) {
1153
+ n instanceof Function ? s += n(t, {
1154
+ context: o ? P.CHAR_CLASS : P.DEFAULT,
1155
+ negated: a[a.length - 1]
1156
+ }) : s += n;
1157
+ continue;
1158
+ }
1159
+ e[0] === "[" ? (o++, a.push(e[1] === "^")) : e === "]" && o && (o--, a.pop()), s += e;
1160
+ }
1161
+ return s;
1162
+ }
1163
+ function yt(e, t, n, r) {
1164
+ vt(e, t, n, r);
1165
+ }
1166
+ function bt(e, t, n = 0, r) {
1167
+ if (!new RegExp(t, "su").test(e)) return null;
1168
+ let i = RegExp(`${t}|(?<$skip>\\\\?.)`, "gsu");
1169
+ i.lastIndex = n;
1170
+ let a = 0, o;
1171
+ for (; o = i.exec(e);) {
1172
+ let { 0: e, groups: { $skip: t } } = o;
1173
+ if (!t && (!r || r === P.DEFAULT == !a)) return o;
1174
+ e === "[" ? a++ : e === "]" && a && a--, i.lastIndex == o.index && i.lastIndex++;
1175
+ }
1176
+ return null;
1177
+ }
1178
+ function F(e, t, n) {
1179
+ return !!bt(e, t, 0, n);
1180
+ }
1181
+ function xt(e, t) {
1182
+ let n = /* @__PURE__ */ RegExp("\\\\?.", "gsu");
1183
+ n.lastIndex = t;
1184
+ let r = e.length, i = 0, a = 1, o;
1185
+ for (; o = n.exec(e);) {
1186
+ let [e] = o;
1187
+ if (e === "[") i++;
1188
+ else if (i) e === "]" && i--;
1189
+ else if (e === "(") a++;
1190
+ else if (e === ")" && (a--, !a)) {
1191
+ r = o.index;
1192
+ break;
1193
+ }
1194
+ }
1195
+ return e.slice(t, r);
1196
+ }
1197
+ //#endregion
1198
+ //#region node_modules/regex/src/atomic.js
1199
+ var St = new RegExp(String.raw`(?<noncapturingStart>${ht})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`, "gsu");
1200
+ function Ct(e, t) {
1201
+ var n, r;
1202
+ let i = (n = t == null ? void 0 : t.hiddenCaptures) == null ? [] : n, a = (r = t == null ? void 0 : t.captureTransfers) == null ? /* @__PURE__ */ new Map() : r;
1203
+ if (!/\(\?>/.test(e)) return {
1204
+ pattern: e,
1205
+ captureTransfers: a,
1206
+ hiddenCaptures: i
1207
+ };
1208
+ let o = [0], s = [], c = 0, l = 0, u = NaN, d;
1209
+ do {
1210
+ d = !1;
1211
+ let t = 0, n = 0, r = !1, f;
1212
+ for (St.lastIndex = Number.isNaN(u) ? 0 : u + 7; f = St.exec(e);) {
1213
+ let { 0: p, index: m, groups: { capturingStart: h, noncapturingStart: g } } = f;
1214
+ if (p === "[") t++;
1215
+ else if (t) p === "]" && t--;
1216
+ else if (p === "(?>" && !r) u = m, r = !0;
1217
+ else if (r && g) n++;
1218
+ else if (h) r ? n++ : (c++, o.push(c + l));
1219
+ else if (p === ")" && r) {
1220
+ if (!n) {
1221
+ l++;
1222
+ let t = c + l;
1223
+ if (e = `${e.slice(0, u)}(?:(?=(${e.slice(u + 3, m)}))<$$${t}>)${e.slice(m + 1)}`, d = !0, s.push(t), gt(i, t), a.size) {
1224
+ let e = /* @__PURE__ */ new Map();
1225
+ a.forEach((n, r) => {
1226
+ e.set(r >= t ? r + 1 : r, n.map((e) => e >= t ? e + 1 : e));
1227
+ }), a = e;
1228
+ }
1229
+ break;
1230
+ }
1231
+ n--;
1232
+ }
1233
+ }
1234
+ } while (d);
1235
+ return i.push(...s), e = vt(e, String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`, ({ 0: e, groups: { backrefNum: t, wrappedBackrefNum: n } }) => {
1236
+ if (t) {
1237
+ let n = +t;
1238
+ if (n > o.length - 1) throw Error(`Backref "${e}" greater than number of captures`);
1239
+ return `\\${o[n]}`;
1240
+ }
1241
+ return `\\${n}`;
1242
+ }, P.DEFAULT), {
1243
+ pattern: e,
1244
+ captureTransfers: a,
1245
+ hiddenCaptures: i
1246
+ };
1247
+ }
1248
+ var wt = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, Tt = new RegExp(String.raw`
1249
+ \\(?: \d+
1250
+ | c[A-Za-z]
1251
+ | [gk]<[^>]+>
1252
+ | [pPu]\{[^\}]+\}
1253
+ | u[A-Fa-f\d]{4}
1254
+ | x[A-Fa-f\d]{2}
1255
+ )
1256
+ | \((?: \? (?: [:=!>]
1257
+ | <(?:[=!]|[^>]+>)
1258
+ | [A-Za-z\-]+:
1259
+ | \(DEFINE\)
1260
+ ))?
1261
+ | (?<qBase>${wt})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
1262
+ | \\?.
1263
+ `.replace(/\s+/g, ""), "gsu");
1264
+ function Et(e) {
1265
+ if (!RegExp(`${wt}\\+`).test(e)) return { pattern: e };
1266
+ let t = [], n = null, r = null, i = "", a = 0, o;
1267
+ for (Tt.lastIndex = 0; o = Tt.exec(e);) {
1268
+ let { 0: s, index: c, groups: { qBase: l, qMod: u, invalidQ: d } } = o;
1269
+ if (s === "[") a || (r = c), a++;
1270
+ else if (s === "]") a ? a-- : r = null;
1271
+ else if (!a) if (u === "+" && i && !i.startsWith("(")) {
1272
+ if (d) throw Error(`Invalid quantifier "${s}"`);
1273
+ let t = -1;
1274
+ if (/^\{\d+\}$/.test(l)) e = _t(e, c + l.length, u, "");
1275
+ else {
1276
+ if (i === ")" || i === "]") {
1277
+ let t = i === ")" ? n : r;
1278
+ if (t === null) throw Error(`Invalid unmatched "${i}"`);
1279
+ e = `${e.slice(0, t)}(?>${e.slice(t, c)}${l})${e.slice(c + s.length)}`;
1280
+ } else e = `${e.slice(0, c - i.length)}(?>${i}${l})${e.slice(c + s.length)}`;
1281
+ t += 4;
1282
+ }
1283
+ Tt.lastIndex += t;
1284
+ } else s[0] === "(" ? t.push(c) : s === ")" && (n = t.length ? t.pop() : null);
1285
+ i = s;
1286
+ }
1287
+ return { pattern: e };
1288
+ }
1289
+ //#endregion
1290
+ //#region node_modules/regex-recursion/src/index.js
1291
+ var I = String.raw, Dt = I`\(\?R=(?<rDepth>[^\)]+)\)|${I`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`, L = I`\(\?<(?![=!])(?<captureName>[^>]+)>`, Ot = I`${L}|(?<unnamed>\()(?!\?)`, R = new RegExp(I`${L}|${Dt}|\(\?|\\?.`, "gsu"), kt = "Cannot use multiple overlapping recursions";
1292
+ function At(e, n) {
1293
+ var r;
1294
+ let { hiddenCaptures: i, mode: a } = t({
1295
+ hiddenCaptures: [],
1296
+ mode: "plugin"
1297
+ }, n), o = (r = n == null ? void 0 : n.captureTransfers) == null ? /* @__PURE__ */ new Map() : r;
1298
+ if (!new RegExp(Dt, "su").test(e)) return {
1299
+ pattern: e,
1300
+ captureTransfers: o,
1301
+ hiddenCaptures: i
1302
+ };
1303
+ if (a === "plugin" && F(e, I`\(\?\(DEFINE\)`, P.DEFAULT)) throw Error("DEFINE groups cannot be used with recursion");
1304
+ let s = [], c = F(e, I`\\[1-9]`, P.DEFAULT), l = /* @__PURE__ */ new Map(), u = [], d = !1, f = 0, p = 0, m;
1305
+ for (R.lastIndex = 0; m = R.exec(e);) {
1306
+ let { 0: t, groups: { captureName: n, rDepth: r, gRNameOrNum: h, gRDepth: g } } = m;
1307
+ if (t === "[") f++;
1308
+ else if (f) t === "]" && f--;
1309
+ else if (r) {
1310
+ if (jt(r), d) throw Error(kt);
1311
+ if (c) throw Error(`${a === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`);
1312
+ let t = e.slice(0, m.index), n = e.slice(R.lastIndex);
1313
+ if (F(n, Dt, P.DEFAULT)) throw Error(kt);
1314
+ let l = r - 1;
1315
+ e = Mt(t, n, l, !1, i, s, p), o = Ft(o, t, l, s.length, 0, p);
1316
+ break;
1317
+ } else if (h) {
1318
+ jt(g);
1319
+ let n = !1;
1320
+ for (let e of u) if (e.name === h || e.num === +h) {
1321
+ if (n = !0, e.hasRecursedWithin) throw Error(kt);
1322
+ break;
1323
+ }
1324
+ if (!n) throw Error(I`Recursive \g cannot be used outside the referenced group "${a === "external" ? h : I`\g<${h}&R=${g}>`}"`);
1325
+ let r = l.get(h), f = xt(e, r);
1326
+ if (c && F(f, I`${L}|\((?!\?)`, P.DEFAULT)) throw Error(`${a === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`);
1327
+ let _ = e.slice(r, m.index), v = f.slice(_.length + t.length), y = s.length, ee = g - 1, te = Mt(_, v, ee, !0, i, s, p);
1328
+ o = Ft(o, _, ee, s.length - y, y, p), e = `${e.slice(0, r)}${te}${e.slice(r + f.length)}`, R.lastIndex += te.length - t.length - _.length - v.length, u.forEach((e) => e.hasRecursedWithin = !0), d = !0;
1329
+ } else if (n) p++, l.set(String(p), R.lastIndex), l.set(n, R.lastIndex), u.push({
1330
+ num: p,
1331
+ name: n
1332
+ });
1333
+ else if (t[0] === "(") {
1334
+ let e = t === "(";
1335
+ e && (p++, l.set(String(p), R.lastIndex)), u.push(e ? { num: p } : {});
1336
+ } else t === ")" && u.pop();
1337
+ }
1338
+ return i.push(...s), {
1339
+ pattern: e,
1340
+ captureTransfers: o,
1341
+ hiddenCaptures: i
1342
+ };
1343
+ }
1344
+ function jt(e) {
1345
+ let t = `Max depth must be integer between 2 and 100; used ${e}`;
1346
+ if (!/^[1-9]\d*$/.test(e) || (e = +e, e < 2 || e > 100)) throw Error(t);
1347
+ }
1348
+ function Mt(e, t, n, r, i, a, o) {
1349
+ let s = /* @__PURE__ */ new Set();
1350
+ r && yt(e + t, L, ({ groups: { captureName: e } }) => {
1351
+ s.add(e);
1352
+ }, P.DEFAULT);
1353
+ let c = [
1354
+ n,
1355
+ r ? s : null,
1356
+ i,
1357
+ a,
1358
+ o
1359
+ ];
1360
+ return `${e}${Nt(`(?:${e}`, "forward", ...c)}(?:)${Nt(`${t})`, "backward", ...c)}${t}`;
1361
+ }
1362
+ function Nt(e, t, n, r, i, a, o) {
1363
+ let s = (e) => t === "forward" ? e + 2 : n - e + 2 - 1, c = "";
1364
+ for (let t = 0; t < n; t++) {
1365
+ let n = s(t);
1366
+ c += vt(e, I`${Ot}|\\k<(?<backref>[^>]+)>`, ({ 0: e, groups: { captureName: t, unnamed: s, backref: c } }) => {
1367
+ if (c && r && !r.has(c)) return e;
1368
+ let l = `_$${n}`;
1369
+ if (s || t) {
1370
+ let n = o + a.length + 1;
1371
+ return a.push(n), Pt(i, n), s ? e : `(?<${t}${l}>`;
1372
+ }
1373
+ return I`\k<${c}${l}>`;
1374
+ }, P.DEFAULT);
1375
+ }
1376
+ return c;
1377
+ }
1378
+ function Pt(e, t) {
1379
+ for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
1380
+ }
1381
+ function Ft(e, t, n, r, i, a) {
1382
+ if (e.size && r) {
1383
+ let o = 0;
1384
+ yt(t, Ot, () => o++, P.DEFAULT);
1385
+ let s = a - o + i, c = /* @__PURE__ */ new Map();
1386
+ return e.forEach((e, t) => {
1387
+ let i = (r - o * n) / n, a = o * n, l = t > s + o ? t + r : t, u = [];
1388
+ for (let t of e) if (t <= s) u.push(t);
1389
+ else if (t > s + o + i) u.push(t + r);
1390
+ else if (t <= s + o) for (let e = 0; e <= n; e++) u.push(t + o * e);
1391
+ else for (let e = 0; e <= n; e++) u.push(t + a + i * e);
1392
+ c.set(l, u);
1393
+ }), c;
1394
+ }
1395
+ return e;
1396
+ }
1397
+ //#endregion
1398
+ //#region node_modules/oniguruma-to-es/dist/esm/index.js
1399
+ var It = ["lazyCompile"], z, B, V, H, U, Lt, Rt, W = String.fromCodePoint, G = String.raw, K = {
1400
+ flagGroups: !0,
1401
+ unicodeSets: !0
1402
+ };
1403
+ K.bugFlagVLiteralHyphenIsRange = K.unicodeSets ? (() => {
1404
+ try {
1405
+ new RegExp(G`[\d\-a]`, "v");
1406
+ } catch (e) {
1407
+ return !0;
1408
+ }
1409
+ return !1;
1410
+ })() : !1, K.bugNestedClassIgnoresNegation = K.unicodeSets && (/* @__PURE__ */ RegExp("[[^a]]", "v")).test("a");
1411
+ function zt(e, { enable: t, disable: n }) {
1412
+ return {
1413
+ dotAll: !(n != null && n.dotAll) && !!(t != null && t.dotAll || e.dotAll),
1414
+ ignoreCase: !(n != null && n.ignoreCase) && !!(t != null && t.ignoreCase || e.ignoreCase)
1415
+ };
1416
+ }
1417
+ function q(e, t, n) {
1418
+ return e.has(t) || e.set(t, n), e.get(t);
1419
+ }
1420
+ function Bt(e, t) {
1421
+ return Ht[e] >= Ht[t];
1422
+ }
1423
+ function Vt(e, t) {
1424
+ if (e == null) throw Error(t == null ? "Value expected" : t);
1425
+ return e;
1426
+ }
1427
+ var Ht = {
1428
+ ES2025: 2025,
1429
+ ES2024: 2024,
1430
+ ES2018: 2018
1431
+ }, Ut = {
1432
+ auto: "auto",
1433
+ ES2025: "ES2025",
1434
+ ES2024: "ES2024",
1435
+ ES2018: "ES2018"
1436
+ };
1437
+ function Wt(e = {}) {
1438
+ if ({}.toString.call(e) !== "[object Object]") throw Error("Unexpected options");
1439
+ if (e.target !== void 0 && !Ut[e.target]) throw Error(`Unexpected target "${e.target}"`);
1440
+ let n = t(t({
1441
+ accuracy: "default",
1442
+ avoidSubclass: !1,
1443
+ flags: "",
1444
+ global: !1,
1445
+ hasIndices: !1,
1446
+ lazyCompileLength: Infinity,
1447
+ target: "auto",
1448
+ verbose: !1
1449
+ }, e), {}, { rules: t({
1450
+ allowOrphanBackrefs: !1,
1451
+ asciiWordBoundaries: !1,
1452
+ captureGroup: !1,
1453
+ recursionLimit: 20,
1454
+ singleline: !1
1455
+ }, e.rules) });
1456
+ return n.target === "auto" && (n.target = K.flagGroups ? "ES2025" : K.unicodeSets ? "ES2024" : "ES2018"), n;
1457
+ }
1458
+ var Gt = "[ -\r ]", Kt = /* @__PURE__ */ new Set([W(304), W(305)]), J = G`[\p{L}\p{M}\p{N}\p{Pc}]`;
1459
+ function qt(e) {
1460
+ if (Kt.has(e)) return [e];
1461
+ let t = /* @__PURE__ */ new Set(), n = e.toLowerCase(), r = n.toUpperCase(), i = Zt.get(n), a = Yt.get(n), o = Xt.get(n);
1462
+ return [...r].length === 1 && t.add(r), o && t.add(o), i && t.add(i), t.add(n), a && t.add(a), [...t];
1463
+ }
1464
+ var Jt = /* @__PURE__ */ new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map((e) => [A(e), e])), Yt = /* @__PURE__ */ new Map([["s", W(383)], [W(383), "s"]]), Xt = /* @__PURE__ */ new Map([
1465
+ [W(223), W(7838)],
1466
+ [W(107), W(8490)],
1467
+ [W(229), W(8491)],
1468
+ [W(969), W(8486)]
1469
+ ]), Zt = new Map([
1470
+ Y(453),
1471
+ Y(456),
1472
+ Y(459),
1473
+ Y(498),
1474
+ ...en(8072, 8079),
1475
+ ...en(8088, 8095),
1476
+ ...en(8104, 8111),
1477
+ Y(8124),
1478
+ Y(8140),
1479
+ Y(8188)
1480
+ ]), Qt = /* @__PURE__ */ new Map([
1481
+ ["alnum", G`[\p{Alpha}\p{Nd}]`],
1482
+ ["alpha", G`\p{Alpha}`],
1483
+ ["ascii", G`\p{ASCII}`],
1484
+ ["blank", G`[\p{Zs}\t]`],
1485
+ ["cntrl", G`\p{Cc}`],
1486
+ ["digit", G`\p{Nd}`],
1487
+ ["graph", G`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],
1488
+ ["lower", G`\p{Lower}`],
1489
+ ["print", G`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],
1490
+ ["punct", G`[\p{P}\p{S}]`],
1491
+ ["space", G`\p{space}`],
1492
+ ["upper", G`\p{Upper}`],
1493
+ ["word", G`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],
1494
+ ["xdigit", G`\p{AHex}`]
1495
+ ]);
1496
+ function $t(e, t) {
1497
+ let n = [];
1498
+ for (let r = e; r <= t; r++) n.push(r);
1499
+ return n;
1500
+ }
1501
+ function Y(e) {
1502
+ let t = W(e);
1503
+ return [t.toLowerCase(), t];
1504
+ }
1505
+ function en(e, t) {
1506
+ return $t(e, t).map((e) => Y(e));
1507
+ }
1508
+ var tn = /* @__PURE__ */ new Set([
1509
+ "Lower",
1510
+ "Lowercase",
1511
+ "Upper",
1512
+ "Uppercase",
1513
+ "Ll",
1514
+ "Lowercase_Letter",
1515
+ "Lt",
1516
+ "Titlecase_Letter",
1517
+ "Lu",
1518
+ "Uppercase_Letter"
1519
+ ]);
1520
+ function nn(e, n) {
1521
+ let r = t({
1522
+ accuracy: "default",
1523
+ asciiWordBoundaries: !1,
1524
+ avoidSubclass: !1,
1525
+ bestEffortTarget: "ES2025"
1526
+ }, n);
1527
+ sn(e);
1528
+ let i = {
1529
+ accuracy: r.accuracy,
1530
+ asciiWordBoundaries: r.asciiWordBoundaries,
1531
+ avoidSubclass: r.avoidSubclass,
1532
+ flagDirectivesByAlt: /* @__PURE__ */ new Map(),
1533
+ jsGroupNameMap: /* @__PURE__ */ new Map(),
1534
+ minTargetEs2024: Bt(r.bestEffortTarget, "ES2024"),
1535
+ passedLookbehind: !1,
1536
+ strategy: null,
1537
+ subroutineRefMap: /* @__PURE__ */ new Map(),
1538
+ supportedGNodes: /* @__PURE__ */ new Set(),
1539
+ digitIsAscii: e.flags.digitIsAscii,
1540
+ spaceIsAscii: e.flags.spaceIsAscii,
1541
+ wordIsAscii: e.flags.wordIsAscii
1542
+ };
1543
+ j(e, rn, i);
1544
+ let a = {
1545
+ dotAll: e.flags.dotAll,
1546
+ ignoreCase: e.flags.ignoreCase
1547
+ }, o = {
1548
+ currentFlags: a,
1549
+ prevFlags: null,
1550
+ globalFlags: a,
1551
+ groupOriginByCopy: /* @__PURE__ */ new Map(),
1552
+ groupsByName: /* @__PURE__ */ new Map(),
1553
+ multiplexCapturesToLeftByRef: /* @__PURE__ */ new Map(),
1554
+ openRefs: /* @__PURE__ */ new Map(),
1555
+ reffedNodesByReferencer: /* @__PURE__ */ new Map(),
1556
+ subroutineRefMap: i.subroutineRefMap
1557
+ };
1558
+ return j(e, an, o), j(e, on, {
1559
+ groupsByName: o.groupsByName,
1560
+ highestOrphanBackref: 0,
1561
+ numCapturesToLeft: 0,
1562
+ reffedNodesByReferencer: o.reffedNodesByReferencer
1563
+ }), e._originMap = o.groupOriginByCopy, e._strategy = i.strategy, e;
1564
+ }
1565
+ var rn = {
1566
+ AbsenceFunction({ node: e, parent: t, replaceWith: n }) {
1567
+ let { body: r, kind: i } = e;
1568
+ if (i === "repeater") {
1569
+ let e = E();
1570
+ e.body[0].body.push(D({
1571
+ negate: !0,
1572
+ body: r
1573
+ }), O("Any"));
1574
+ let i = E();
1575
+ i.body[0].body.push(it("greedy", 0, Infinity, e)), n(Q(i, t), { traverse: !0 });
1576
+ } else throw Error("Unsupported absence function \"(?~|\"");
1577
+ },
1578
+ Alternative: {
1579
+ enter({ node: e, parent: t, key: n }, { flagDirectivesByAlt: r }) {
1580
+ let i = e.body.filter((e) => e.kind === "flags");
1581
+ for (let e = n + 1; e < t.body.length; e++) {
1582
+ let n = t.body[e];
1583
+ q(r, n, []).push(...i);
1584
+ }
1585
+ },
1586
+ exit({ node: e }, { flagDirectivesByAlt: t }) {
1587
+ var n;
1588
+ if ((n = t.get(e)) != null && n.length) {
1589
+ let n = mn(t.get(e));
1590
+ if (n) {
1591
+ let t = E({ flags: n });
1592
+ t.body[0].body = e.body, e.body = [Q(t, e)];
1593
+ }
1594
+ }
1595
+ }
1596
+ },
1597
+ Assertion({ node: e, parent: t, key: n, container: r, root: i, remove: a, replaceWith: o }, s) {
1598
+ let { kind: c, negate: l } = e, { asciiWordBoundaries: u, avoidSubclass: d, supportedGNodes: f, wordIsAscii: p } = s;
1599
+ if (c === "text_segment_boundary") throw Error(`Unsupported text segment boundary "\\${l ? "Y" : "y"}"`);
1600
+ if (c === "line_end") o(Q(D({ body: [C({ body: [Ye("string_end")] }), C({ body: [w(10)] })] }), t));
1601
+ else if (c === "line_start") o(Q(X(G`(?<=\A|\n(?!\z))`, { skipLookbehindValidation: !0 }), t));
1602
+ else if (c === "search_start") if (f.has(e)) i.flags.sticky = !0, a();
1603
+ else {
1604
+ let e = r[n - 1];
1605
+ if (e && bn(e)) o(Q(D({ negate: !0 }), t));
1606
+ else if (d) throw Error(G`Uses "\G" in a way that requires a subclass`);
1607
+ else o(Z(Ye("string_start"), t)), s.strategy = "clip_search";
1608
+ }
1609
+ else if (!(c === "string_end" || c === "string_start")) if (c === "string_end_newline") o(Q(X(G`(?=\n?\z)`), t));
1610
+ else if (c === "word_boundary") {
1611
+ if (!p && !u) {
1612
+ let e = `(?:(?<=${J})(?!${J})|(?<!${J})(?=${J}))`, n = `(?:(?<=${J})(?=${J})|(?<!${J})(?!${J}))`;
1613
+ o(Q(X(l ? n : e), t));
1614
+ }
1615
+ } else throw Error(`Unexpected assertion kind "${c}"`);
1616
+ },
1617
+ Backreference({ node: e }, { jsGroupNameMap: t }) {
1618
+ let { ref: n } = e;
1619
+ typeof n == "string" && !Sn(n) && (n = pn(n, t), e.ref = n);
1620
+ },
1621
+ CapturingGroup({ node: e }, { jsGroupNameMap: t, subroutineRefMap: n }) {
1622
+ let { name: r } = e;
1623
+ r && !Sn(r) && (r = pn(r, t), e.name = r), n.set(e.number, e), r && n.set(r, e);
1624
+ },
1625
+ CharacterClassRange({ node: e, parent: t, replaceWith: n }) {
1626
+ t.kind === "intersection" && n(Q(T({ body: [e] }), t), { traverse: !0 });
1627
+ },
1628
+ CharacterSet({ node: e, parent: t, replaceWith: n }, { accuracy: r, minTargetEs2024: i, digitIsAscii: a, spaceIsAscii: o, wordIsAscii: s }) {
1629
+ let { kind: c, negate: l, value: u } = e;
1630
+ if (a && (c === "digit" || u === "digit")) {
1631
+ n(Z($e("digit", { negate: l }), t));
1632
+ return;
1633
+ }
1634
+ if (o && (c === "space" || u === "space")) {
1635
+ n(Q(Cn(X(Gt), l), t));
1636
+ return;
1637
+ }
1638
+ if (s && (c === "word" || u === "word")) {
1639
+ n(Z($e("word", { negate: l }), t));
1640
+ return;
1641
+ }
1642
+ if (c === "any") n(Z(O("Any"), t));
1643
+ else if (c === "digit") n(Z(O("Nd", { negate: l }), t));
1644
+ else if (c !== "dot") if (c === "text_segment") {
1645
+ if (r === "strict") throw Error(G`Use of "\X" requires non-strict accuracy`);
1646
+ let e = "\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?", a = G`\p{RI}{2}|${e}(?:\u200D${e})*`;
1647
+ n(Q(X(G`(?>\r\n|${i ? G`\p{RGI_Emoji}` : a}|\P{M}\p{M}*)`, { skipPropertyNameValidation: !0 }), t));
1648
+ } else if (c === "hex") n(Z(O("AHex", { negate: l }), t));
1649
+ else if (c === "newline") n(Q(X(l ? "[^\n]" : "(?>\r\n?|[\n\v\f…\u2028\u2029])"), t));
1650
+ else if (c === "posix") if (!i && (u === "graph" || u === "print")) {
1651
+ if (r === "strict") throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);
1652
+ let e = {
1653
+ graph: "!-~",
1654
+ print: " -~"
1655
+ }[u];
1656
+ l && (e = `\0-${W(e.codePointAt(0) - 1)}${W(e.codePointAt(2) + 1)}-\u{10FFFF}`), n(Q(X(`[${e}]`), t));
1657
+ } else n(Q(Cn(X(Qt.get(u)), l), t));
1658
+ else if (c === "property") Jt.has(A(u)) || (e.key = "sc");
1659
+ else if (c === "space") n(Z(O("space", { negate: l }), t));
1660
+ else if (c === "word") n(Q(Cn(X(J), l), t));
1661
+ else throw Error(`Unexpected character set kind "${c}"`);
1662
+ },
1663
+ Directive({ node: e, parent: t, root: n, remove: r, replaceWith: i, removeAllPrevSiblings: a, removeAllNextSiblings: o }) {
1664
+ let { kind: s, flags: c } = e;
1665
+ if (s === "flags") if (!c.enable && !c.disable) r();
1666
+ else {
1667
+ let e = E({ flags: c });
1668
+ e.body[0].body = o(), i(Q(e, t), { traverse: !0 });
1669
+ }
1670
+ else if (s === "keep") {
1671
+ let e = n.body[0], r = n.body.length === 1 && Ie(e, { type: "Group" }) && e.body[0].body.length === 1 ? e.body[0] : n;
1672
+ if (t.parent !== r || r.body.length > 1) throw Error(G`Uses "\K" in a way that's unsupported`);
1673
+ let o = D({ behind: !0 });
1674
+ o.body[0].body = a(), i(Q(o, t));
1675
+ } else throw Error(`Unexpected directive kind "${s}"`);
1676
+ },
1677
+ Flags({ node: e, parent: t }) {
1678
+ var n;
1679
+ if (e.posixIsAscii) throw Error("Unsupported flag \"P\"");
1680
+ if (e.textSegmentMode === "word") throw Error("Unsupported flag \"y{w}\"");
1681
+ [
1682
+ "digitIsAscii",
1683
+ "extended",
1684
+ "posixIsAscii",
1685
+ "spaceIsAscii",
1686
+ "wordIsAscii",
1687
+ "textSegmentMode"
1688
+ ].forEach((t) => delete e[t]), Object.assign(e, {
1689
+ global: !1,
1690
+ hasIndices: !1,
1691
+ multiline: !1,
1692
+ sticky: (n = e.sticky) == null ? !1 : n
1693
+ }), t.options = {
1694
+ disable: {
1695
+ x: !0,
1696
+ n: !0
1697
+ },
1698
+ force: { v: !0 }
1699
+ };
1700
+ },
1701
+ Group({ node: e }) {
1702
+ if (!e.flags) return;
1703
+ let { enable: t, disable: n } = e.flags;
1704
+ t != null && t.extended && delete t.extended, n != null && n.extended && delete n.extended, t != null && t.dotAll && n != null && n.dotAll && delete t.dotAll, t != null && t.ignoreCase && n != null && n.ignoreCase && delete t.ignoreCase, t && !Object.keys(t).length && delete e.flags.enable, n && !Object.keys(n).length && delete e.flags.disable, !e.flags.enable && !e.flags.disable && delete e.flags;
1705
+ },
1706
+ LookaroundAssertion({ node: e }, t) {
1707
+ let { kind: n } = e;
1708
+ n === "lookbehind" && (t.passedLookbehind = !0);
1709
+ },
1710
+ NamedCallout({ node: e, parent: t, replaceWith: n }) {
1711
+ let { kind: r } = e;
1712
+ if (r === "fail") n(Q(D({ negate: !0 }), t));
1713
+ else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`);
1714
+ },
1715
+ Quantifier({ node: e }) {
1716
+ if (e.body.type === "Quantifier") {
1717
+ let t = E();
1718
+ t.body[0].body.push(e.body), e.body = Q(t, e);
1719
+ }
1720
+ },
1721
+ Regex: {
1722
+ enter({ node: e }, { supportedGNodes: t }) {
1723
+ let n = [], r = !1, i = !1;
1724
+ for (let t of e.body) if (t.body.length === 1 && t.body[0].kind === "search_start") t.body.pop();
1725
+ else {
1726
+ let e = _n(t.body);
1727
+ e ? (r = !0, Array.isArray(e) ? n.push(...e) : n.push(e)) : i = !0;
1728
+ }
1729
+ r && !i && n.forEach((e) => t.add(e));
1730
+ },
1731
+ exit(e, { accuracy: t, passedLookbehind: n, strategy: r }) {
1732
+ if (t === "strict" && n && r) throw Error(G`Uses "\G" in a way that requires non-strict accuracy`);
1733
+ }
1734
+ },
1735
+ Subroutine({ node: e }, { jsGroupNameMap: t }) {
1736
+ let { ref: n } = e;
1737
+ typeof n == "string" && !Sn(n) && (n = pn(n, t), e.ref = n);
1738
+ }
1739
+ }, an = {
1740
+ Backreference({ node: e }, { multiplexCapturesToLeftByRef: t, reffedNodesByReferencer: n }) {
1741
+ let { orphan: r, ref: i } = e;
1742
+ r || n.set(e, [...t.get(i).map(({ node: e }) => e)]);
1743
+ },
1744
+ CapturingGroup: {
1745
+ enter({ node: e, parent: t, replaceWith: n, skip: r }, { groupOriginByCopy: i, groupsByName: a, multiplexCapturesToLeftByRef: o, openRefs: s, reffedNodesByReferencer: c }) {
1746
+ var l;
1747
+ let u = i.get(e);
1748
+ if (u && s.has(e.number)) {
1749
+ let r = Z(dn(e.number), t);
1750
+ c.set(r, s.get(e.number)), n(r);
1751
+ return;
1752
+ }
1753
+ s.set(e.number, e), o.set(e.number, []), e.name && q(o, e.name, []);
1754
+ let d = o.get((l = e.name) == null ? e.number : l);
1755
+ for (let t = 0; t < d.length; t++) {
1756
+ let n = d[t];
1757
+ if (u === n.node || u && u === n.origin || e === n.origin) {
1758
+ d.splice(t, 1);
1759
+ break;
1760
+ }
1761
+ }
1762
+ if (o.get(e.number).push({
1763
+ node: e,
1764
+ origin: u
1765
+ }), e.name && o.get(e.name).push({
1766
+ node: e,
1767
+ origin: u
1768
+ }), e.name) {
1769
+ let t = q(a, e.name, /* @__PURE__ */ new Map()), n = !1;
1770
+ if (u) n = !0;
1771
+ else for (let e of t.values()) if (!e.hasDuplicateNameToRemove) {
1772
+ n = !0;
1773
+ break;
1774
+ }
1775
+ a.get(e.name).set(e, {
1776
+ node: e,
1777
+ hasDuplicateNameToRemove: n
1778
+ });
1779
+ }
1780
+ },
1781
+ exit({ node: e }, { openRefs: t }) {
1782
+ t.delete(e.number);
1783
+ }
1784
+ },
1785
+ Group: {
1786
+ enter({ node: e }, t) {
1787
+ t.prevFlags = t.currentFlags, e.flags && (t.currentFlags = zt(t.currentFlags, e.flags));
1788
+ },
1789
+ exit(e, t) {
1790
+ t.currentFlags = t.prevFlags;
1791
+ }
1792
+ },
1793
+ Subroutine({ node: e, parent: t, replaceWith: n }, r) {
1794
+ let { isRecursive: i, ref: a } = e;
1795
+ if (i) {
1796
+ let n = t;
1797
+ for (; (n = n.parent) && !(n.type === "CapturingGroup" && (n.name === a || n.number === a)););
1798
+ r.reffedNodesByReferencer.set(e, n);
1799
+ return;
1800
+ }
1801
+ let o = r.subroutineRefMap.get(a), s = a === 0, c = s ? dn(0) : un(o, r.groupOriginByCopy, null), l = c;
1802
+ if (!s) {
1803
+ let e = mn(fn(o, (e) => e.type === "Group" && !!e.flags)), t = e ? zt(r.globalFlags, e) : r.globalFlags;
1804
+ cn(t, r.currentFlags) || (l = E({ flags: hn(t) }), l.body[0].body.push(c));
1805
+ }
1806
+ n(Q(l, t), { traverse: !s });
1807
+ }
1808
+ }, on = {
1809
+ Backreference({ node: e, parent: t, replaceWith: n }, r) {
1810
+ if (e.orphan) {
1811
+ r.highestOrphanBackref = Math.max(r.highestOrphanBackref, e.ref);
1812
+ return;
1813
+ }
1814
+ let i = r.reffedNodesByReferencer.get(e).filter((t) => ln(t, e));
1815
+ i.length ? i.length > 1 ? n(Q(E({
1816
+ atomic: !0,
1817
+ body: i.reverse().map((e) => C({ body: [Xe(e.number)] }))
1818
+ }), t)) : e.ref = i[0].number : n(Q(D({ negate: !0 }), t));
1819
+ },
1820
+ CapturingGroup({ node: e }, t) {
1821
+ e.number = ++t.numCapturesToLeft, e.name && t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove && delete e.name;
1822
+ },
1823
+ Regex: { exit({ node: e }, t) {
1824
+ let n = Math.max(t.highestOrphanBackref - t.numCapturesToLeft, 0);
1825
+ for (let t = 0; t < n; t++) {
1826
+ let t = Ze();
1827
+ e.body.at(-1).body.push(t);
1828
+ }
1829
+ } },
1830
+ Subroutine({ node: e }, t) {
1831
+ !e.isRecursive || e.ref === 0 || (e.ref = t.reffedNodesByReferencer.get(e).number);
1832
+ }
1833
+ };
1834
+ function sn(e) {
1835
+ j(e, { "*"({ node: e, parent: t }) {
1836
+ e.parent = t;
1837
+ } });
1838
+ }
1839
+ function cn(e, t) {
1840
+ return e.dotAll === t.dotAll && e.ignoreCase === t.ignoreCase;
1841
+ }
1842
+ function ln(e, t) {
1843
+ let n = t;
1844
+ do {
1845
+ if (n.type === "Regex") return !1;
1846
+ if (n.type === "Alternative") continue;
1847
+ if (n === e) return !1;
1848
+ let t = gn(n.parent);
1849
+ for (let r of t) {
1850
+ if (r === n) break;
1851
+ if (r === e || vn(r, e)) return !0;
1852
+ }
1853
+ } while (n = n.parent);
1854
+ throw Error("Unexpected path");
1855
+ }
1856
+ function un(e, t, n, r) {
1857
+ let i = Array.isArray(e) ? [] : {};
1858
+ for (let [o, s] of Object.entries(e)) if (o === "parent") i.parent = Array.isArray(n) ? r : n;
1859
+ else if (s && typeof s == "object") i[o] = un(s, t, i, n);
1860
+ else {
1861
+ if (o === "type" && s === "CapturingGroup") {
1862
+ var a;
1863
+ t.set(i, (a = t.get(e)) == null ? e : a);
1864
+ }
1865
+ i[o] = s;
1866
+ }
1867
+ return i;
1868
+ }
1869
+ function dn(e) {
1870
+ let t = ot(e);
1871
+ return t.isRecursive = !0, t;
1872
+ }
1873
+ function fn(e, t) {
1874
+ let n = [];
1875
+ for (; e = e.parent;) (!t || t(e)) && n.push(e);
1876
+ return n;
1877
+ }
1878
+ function pn(e, t) {
1879
+ if (t.has(e)) return t.get(e);
1880
+ let n = `$${t.size}_${e.replace(/* @__PURE__ */ RegExp("^[^$_\\p{IDS}]|[^$\\u200C\\u200D\\p{IDC}]", "gu"), "_")}`;
1881
+ return t.set(e, n), n;
1882
+ }
1883
+ function mn(e) {
1884
+ let t = ["dotAll", "ignoreCase"], n = {
1885
+ enable: {},
1886
+ disable: {}
1887
+ };
1888
+ return e.forEach(({ flags: e }) => {
1889
+ t.forEach((t) => {
1890
+ var r, i;
1891
+ (r = e.enable) != null && r[t] && (delete n.disable[t], n.enable[t] = !0), (i = e.disable) != null && i[t] && (n.disable[t] = !0);
1892
+ });
1893
+ }), Object.keys(n.enable).length || delete n.enable, Object.keys(n.disable).length || delete n.disable, n.enable || n.disable ? n : null;
1894
+ }
1895
+ function hn({ dotAll: e, ignoreCase: t }) {
1896
+ let n = {};
1897
+ return (e || t) && (n.enable = {}, e && (n.enable.dotAll = !0), t && (n.enable.ignoreCase = !0)), (!e || !t) && (n.disable = {}, !e && (n.disable.dotAll = !0), !t && (n.disable.ignoreCase = !0)), n;
1898
+ }
1899
+ function gn(e) {
1900
+ if (!e) throw Error("Node expected");
1901
+ let { body: t } = e;
1902
+ return Array.isArray(t) ? t : t ? [t] : null;
1903
+ }
1904
+ function _n(e) {
1905
+ let t = e.find((e) => e.kind === "search_start" || xn(e, { negate: !1 }) || !yn(e));
1906
+ if (!t) return null;
1907
+ if (t.kind === "search_start") return t;
1908
+ if (t.type === "LookaroundAssertion") return t.body[0].body[0];
1909
+ if (t.type === "CapturingGroup" || t.type === "Group") {
1910
+ let e = [];
1911
+ for (let n of t.body) {
1912
+ let t = _n(n.body);
1913
+ if (!t) return null;
1914
+ Array.isArray(t) ? e.push(...t) : e.push(t);
1915
+ }
1916
+ return e;
1917
+ }
1918
+ return null;
1919
+ }
1920
+ function vn(e, t) {
1921
+ var n;
1922
+ let r = (n = gn(e)) == null ? [] : n;
1923
+ for (let e of r) if (e === t || vn(e, t)) return !0;
1924
+ return !1;
1925
+ }
1926
+ function yn({ type: e }) {
1927
+ return e === "Assertion" || e === "Directive" || e === "LookaroundAssertion";
1928
+ }
1929
+ function bn(e) {
1930
+ let t = [
1931
+ "Character",
1932
+ "CharacterClass",
1933
+ "CharacterSet"
1934
+ ];
1935
+ return t.includes(e.type) || e.type === "Quantifier" && e.min && t.includes(e.body.type);
1936
+ }
1937
+ function xn(e, n) {
1938
+ let r = t({ negate: null }, n);
1939
+ return e.type === "LookaroundAssertion" && (r.negate === null || e.negate === r.negate) && e.body.length === 1 && Ie(e.body[0], {
1940
+ type: "Assertion",
1941
+ kind: "search_start"
1942
+ });
1943
+ }
1944
+ function Sn(e) {
1945
+ return (/* @__PURE__ */ RegExp("^[$_\\p{IDS}][$\\u200C\\u200D\\p{IDC}]*$", "u")).test(e);
1946
+ }
1947
+ function X(e, n) {
1948
+ let r = ze(e, t(t({}, n), {}, { unicodePropertyMap: Jt })).body;
1949
+ return r.length > 1 || r[0].body.length > 1 ? E({ body: r }) : r[0].body[0];
1950
+ }
1951
+ function Cn(e, t) {
1952
+ return e.negate = t, e;
1953
+ }
1954
+ function Z(e, t) {
1955
+ return e.parent = t, e;
1956
+ }
1957
+ function Q(e, t) {
1958
+ return sn(e), e.parent = t, e;
1959
+ }
1960
+ function wn(e, n) {
1961
+ let r = Wt(n), i = Bt(r.target, "ES2024"), a = Bt(r.target, "ES2025"), o = r.rules.recursionLimit;
1962
+ if (!Number.isInteger(o) || o < 2 || o > 20) throw Error("Invalid recursionLimit; use 2-20");
1963
+ let s = null, c = null;
1964
+ if (!a) {
1965
+ let t = [e.flags.ignoreCase];
1966
+ j(e, Tn, {
1967
+ getCurrentModI: () => t.at(-1),
1968
+ popModI() {
1969
+ t.pop();
1970
+ },
1971
+ pushModI(e) {
1972
+ t.push(e);
1973
+ },
1974
+ setHasCasedChar() {
1975
+ t.at(-1) ? s = !0 : c = !0;
1976
+ }
1977
+ });
1978
+ }
1979
+ let l = {
1980
+ dotAll: e.flags.dotAll,
1981
+ ignoreCase: !!((e.flags.ignoreCase || s) && !c)
1982
+ }, u = e, d = {
1983
+ accuracy: r.accuracy,
1984
+ appliedGlobalFlags: l,
1985
+ captureMap: /* @__PURE__ */ new Map(),
1986
+ currentFlags: {
1987
+ dotAll: e.flags.dotAll,
1988
+ ignoreCase: e.flags.ignoreCase
1989
+ },
1990
+ inCharClass: !1,
1991
+ lastNode: u,
1992
+ originMap: e._originMap,
1993
+ recursionLimit: o,
1994
+ useAppliedIgnoreCase: !!(!a && s && c),
1995
+ useFlagMods: a,
1996
+ useFlagV: i,
1997
+ verbose: r.verbose
1998
+ };
1999
+ function f(e) {
2000
+ return d.lastNode = u, u = e, Vt(En[e.type], `Unexpected node type "${e.type}"`)(e, d, f);
2001
+ }
2002
+ let p = {
2003
+ pattern: e.body.map(f).join("|"),
2004
+ flags: f(e.flags),
2005
+ options: t({}, e.options)
2006
+ };
2007
+ return i || (delete p.options.force.v, p.options.disable.v = !0, p.options.unicodeSetsPlugin = null), p._captureTransfers = /* @__PURE__ */ new Map(), p._hiddenCaptures = [], d.captureMap.forEach((e, t) => {
2008
+ e.hidden && p._hiddenCaptures.push(t), e.transferTo && q(p._captureTransfers, e.transferTo, []).push(t);
2009
+ }), p;
2010
+ }
2011
+ var Tn = {
2012
+ "*": {
2013
+ enter({ node: e }, t) {
2014
+ if (Ln(e)) {
2015
+ let n = t.getCurrentModI();
2016
+ t.pushModI(e.flags ? zt({ ignoreCase: n }, e.flags).ignoreCase : n);
2017
+ }
2018
+ },
2019
+ exit({ node: e }, t) {
2020
+ Ln(e) && t.popModI();
2021
+ }
2022
+ },
2023
+ Backreference(e, t) {
2024
+ t.setHasCasedChar();
2025
+ },
2026
+ Character({ node: e }, t) {
2027
+ Mn(W(e.value)) && t.setHasCasedChar();
2028
+ },
2029
+ CharacterClassRange({ node: e, skip: t }, n) {
2030
+ t(), Nn(e, { firstOnly: !0 }).length && n.setHasCasedChar();
2031
+ },
2032
+ CharacterSet({ node: e }, t) {
2033
+ e.kind === "property" && tn.has(e.value) && t.setHasCasedChar();
2034
+ }
2035
+ }, En = {
2036
+ Alternative({ body: e }, t, n) {
2037
+ return e.map(n).join("");
2038
+ },
2039
+ Assertion({ kind: e, negate: t }) {
2040
+ if (e === "string_end") return "$";
2041
+ if (e === "string_start") return "^";
2042
+ if (e === "word_boundary") return t ? G`\B` : G`\b`;
2043
+ throw Error(`Unexpected assertion kind "${e}"`);
2044
+ },
2045
+ Backreference({ ref: e }, t) {
2046
+ if (typeof e != "number") throw Error("Unexpected named backref in transformed AST");
2047
+ if (!t.useFlagMods && t.accuracy === "strict" && t.currentFlags.ignoreCase && !t.captureMap.get(e).ignoreCase) throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");
2048
+ return "\\" + e;
2049
+ },
2050
+ CapturingGroup(e, t, n) {
2051
+ let { body: r, name: i, number: a } = e, o = { ignoreCase: t.currentFlags.ignoreCase }, s = t.originMap.get(e);
2052
+ return s && (o.hidden = !0, a > s.number && (o.transferTo = s.number)), t.captureMap.set(a, o), `(${i ? `?<${i}>` : ""}${r.map(n).join("|")})`;
2053
+ },
2054
+ Character({ value: e }, t) {
2055
+ let n = W(e), r = $(e, {
2056
+ escDigit: t.lastNode.type === "Backreference",
2057
+ inCharClass: t.inCharClass,
2058
+ useFlagV: t.useFlagV
2059
+ });
2060
+ if (r !== n) return r;
2061
+ if (t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Mn(n)) {
2062
+ let e = qt(n);
2063
+ return t.inCharClass ? e.join("") : e.length > 1 ? `[${e.join("")}]` : e[0];
2064
+ }
2065
+ return n;
2066
+ },
2067
+ CharacterClass(e, t, n) {
2068
+ let { kind: r, negate: i, parent: a } = e, { body: o } = e;
2069
+ if (r === "intersection" && !t.useFlagV) throw Error("Use of character class intersection requires min target ES2024");
2070
+ K.bugFlagVLiteralHyphenIsRange && t.useFlagV && o.some(zn) && (o = [w(45), ...o.filter((e) => !zn(e))]);
2071
+ let s = () => `[${i ? "^" : ""}${o.map(n).join(r === "intersection" ? "&&" : "")}]`;
2072
+ if (!t.inCharClass) {
2073
+ if ((!t.useFlagV || K.bugNestedClassIgnoresNegation) && !i) {
2074
+ let t = o.filter((e) => e.type === "CharacterClass" && e.kind === "union" && e.negate);
2075
+ if (t.length) {
2076
+ let r = E(), i = r.body[0];
2077
+ return r.parent = a, i.parent = r, o = o.filter((e) => !t.includes(e)), e.body = o, o.length ? (e.parent = i, i.body.push(e)) : r.body.pop(), t.forEach((e) => {
2078
+ let t = C({ body: [e] });
2079
+ e.parent = t, t.parent = r, r.body.push(t);
2080
+ }), n(r);
2081
+ }
2082
+ }
2083
+ t.inCharClass = !0;
2084
+ let r = s();
2085
+ return t.inCharClass = !1, r;
2086
+ }
2087
+ let c = o[0];
2088
+ if (r === "union" && !i && c && ((!t.useFlagV || !t.verbose) && a.kind === "union" && !(K.bugFlagVLiteralHyphenIsRange && t.useFlagV) || !t.verbose && a.kind === "intersection" && o.length === 1 && c.type !== "CharacterClassRange")) return o.map(n).join("");
2089
+ if (!t.useFlagV && a.type === "CharacterClass") throw Error("Uses nested character class in a way that requires min target ES2024");
2090
+ return s();
2091
+ },
2092
+ CharacterClassRange(e, t) {
2093
+ let n = e.min.value, r = e.max.value, i = {
2094
+ escDigit: !1,
2095
+ inCharClass: !0,
2096
+ useFlagV: t.useFlagV
2097
+ }, a = $(n, i), o = $(r, i), s = /* @__PURE__ */ new Set();
2098
+ return t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Pn(Nn(e)).forEach((e) => {
2099
+ s.add(Array.isArray(e) ? `${$(e[0], i)}-${$(e[1], i)}` : $(e, i));
2100
+ }), `${a}-${o}${[...s].join("")}`;
2101
+ },
2102
+ CharacterSet({ kind: e, negate: t, value: n, key: r }, i) {
2103
+ if (e === "dot") return i.currentFlags.dotAll ? i.appliedGlobalFlags.dotAll || i.useFlagMods ? "." : "[^]" : G`[^\n]`;
2104
+ if (e === "digit") return t ? G`\D` : G`\d`;
2105
+ if (e === "property") {
2106
+ if (i.useAppliedIgnoreCase && i.currentFlags.ignoreCase && tn.has(n)) throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);
2107
+ return `${t ? G`\P` : G`\p`}{${r ? `${r}=` : ""}${n}}`;
2108
+ }
2109
+ if (e === "word") return t ? G`\W` : G`\w`;
2110
+ throw Error(`Unexpected character set kind "${e}"`);
2111
+ },
2112
+ Flags(e, t) {
2113
+ return (t.appliedGlobalFlags.ignoreCase ? "i" : "") + (e.dotAll ? "s" : "") + (e.sticky ? "y" : "");
2114
+ },
2115
+ Group({ atomic: e, body: t, flags: n, parent: r }, i, a) {
2116
+ let o = i.currentFlags;
2117
+ n && (i.currentFlags = zt(o, n));
2118
+ let s = t.map(a).join("|"), c = !i.verbose && t.length === 1 && r.type !== "Quantifier" && !e && (!i.useFlagMods || !n) ? s : `(?${Fn(e, n, i.useFlagMods)}${s})`;
2119
+ return i.currentFlags = o, c;
2120
+ },
2121
+ LookaroundAssertion({ body: e, kind: t, negate: n }, r, i) {
2122
+ return `(?${`${t === "lookahead" ? "" : "<"}${n ? "!" : "="}`}${e.map(i).join("|")})`;
2123
+ },
2124
+ Quantifier(e, t, n) {
2125
+ return n(e.body) + In(e);
2126
+ },
2127
+ Subroutine({ isRecursive: e, ref: t }, n) {
2128
+ if (!e) throw Error("Unexpected non-recursive subroutine in transformed AST");
2129
+ let r = n.recursionLimit;
2130
+ return t === 0 ? `(?R=${r})` : G`\g<${t}&R=${r}>`;
2131
+ }
2132
+ }, Dn = /* @__PURE__ */ new Set([
2133
+ "$",
2134
+ "(",
2135
+ ")",
2136
+ "*",
2137
+ "+",
2138
+ ".",
2139
+ "?",
2140
+ "[",
2141
+ "\\",
2142
+ "]",
2143
+ "^",
2144
+ "{",
2145
+ "|",
2146
+ "}"
2147
+ ]), On = /* @__PURE__ */ new Set([
2148
+ "-",
2149
+ "\\",
2150
+ "]",
2151
+ "^",
2152
+ "["
2153
+ ]), kn = /* @__PURE__ */ new Set(/* @__PURE__ */ "()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split("")), An = /* @__PURE__ */ new Map([
2154
+ [9, G`\t`],
2155
+ [10, G`\n`],
2156
+ [11, G`\v`],
2157
+ [12, G`\f`],
2158
+ [13, G`\r`],
2159
+ [8232, G`\u2028`],
2160
+ [8233, G`\u2029`],
2161
+ [65279, G`\uFEFF`]
2162
+ ]), jn = /* @__PURE__ */ RegExp("^\\p{Cased}$", "u");
2163
+ function Mn(e) {
2164
+ return jn.test(e);
2165
+ }
2166
+ function Nn(e, t) {
2167
+ let n = !!(t != null && t.firstOnly), r = e.min.value, i = e.max.value, a = [];
2168
+ if (r < 65 && (i === 65535 || i >= 131071) || r === 65536 && i >= 131071) return a;
2169
+ for (let e = r; e <= i; e++) {
2170
+ let t = W(e);
2171
+ if (!Mn(t)) continue;
2172
+ let o = qt(t).filter((e) => {
2173
+ let t = e.codePointAt(0);
2174
+ return t < r || t > i;
2175
+ });
2176
+ if (o.length && (a.push(...o), n)) break;
2177
+ }
2178
+ return a;
2179
+ }
2180
+ function $(e, { escDigit: t, inCharClass: n, useFlagV: r }) {
2181
+ if (An.has(e)) return An.get(e);
2182
+ if (e < 32 || e > 126 && e < 160 || e > 262143 || t && Rn(e)) return e > 255 ? `\\u{${e.toString(16).toUpperCase()}}` : `\\x${e.toString(16).toUpperCase().padStart(2, "0")}`;
2183
+ let i = n ? r ? kn : On : Dn, a = W(e);
2184
+ return (i.has(a) ? "\\" : "") + a;
2185
+ }
2186
+ function Pn(e) {
2187
+ let t = e.map((e) => e.codePointAt(0)).sort((e, t) => e - t), n = [], r = null;
2188
+ for (let e = 0; e < t.length; e++) t[e + 1] === t[e] + 1 ? r != null || (r = t[e]) : r === null ? n.push(t[e]) : (n.push([r, t[e]]), r = null);
2189
+ return n;
2190
+ }
2191
+ function Fn(e, t, n) {
2192
+ if (e) return ">";
2193
+ let r = "";
2194
+ if (t && n) {
2195
+ let { enable: e, disable: n } = t;
2196
+ r = (e != null && e.ignoreCase ? "i" : "") + (e != null && e.dotAll ? "s" : "") + (n ? "-" : "") + (n != null && n.ignoreCase ? "i" : "") + (n != null && n.dotAll ? "s" : "");
2197
+ }
2198
+ return `${r}:`;
2199
+ }
2200
+ function In({ kind: e, max: t, min: n }) {
2201
+ let r;
2202
+ return r = !n && t === 1 ? "?" : !n && t === Infinity ? "*" : n === 1 && t === Infinity ? "+" : n === t ? `{${n}}` : `{${n},${t === Infinity ? "" : t}}`, r + {
2203
+ greedy: "",
2204
+ lazy: "?",
2205
+ possessive: "+"
2206
+ }[e];
2207
+ }
2208
+ function Ln({ type: e }) {
2209
+ return e === "CapturingGroup" || e === "Group" || e === "LookaroundAssertion";
2210
+ }
2211
+ function Rn(e) {
2212
+ return e > 47 && e < 58;
2213
+ }
2214
+ function zn({ type: e, value: t }) {
2215
+ return e === "Character" && t === 45;
2216
+ }
2217
+ var Bn = (z = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakSet(), Rt = class r extends RegExp {
2218
+ get source() {
2219
+ return l(V, this) || "(?:)";
2220
+ }
2221
+ constructor(n, i, a) {
2222
+ var c = (...t) => (super(...t), o(this, Lt), s(this, z, /* @__PURE__ */ new Map()), s(this, B, null), s(this, V, void 0), s(this, H, null), s(this, U, null), e(this, "rawOptions", {}), this);
2223
+ let d = !!(a != null && a.lazyCompile);
2224
+ if (n instanceof RegExp) {
2225
+ if (a) throw Error("Cannot provide options when copying a regexp");
2226
+ let e = n;
2227
+ c(e, i), u(V, this, e.source), e instanceof r && (u(z, this, l(z, e)), u(H, this, l(H, e)), u(U, this, l(U, e)), this.rawOptions = e.rawOptions);
2228
+ } else {
2229
+ let e = t({
2230
+ hiddenCaptures: [],
2231
+ strategy: null,
2232
+ transfers: []
2233
+ }, a);
2234
+ c(d ? "" : n, i), u(V, this, n), u(z, this, Un(e.hiddenCaptures, e.transfers)), u(U, this, e.strategy), this.rawOptions = a == null ? {} : a;
2235
+ }
2236
+ d || u(B, this, this);
2237
+ }
2238
+ exec(e) {
2239
+ if (!l(B, this)) {
2240
+ let e = this.rawOptions, { lazyCompile: t } = e, i = n(e, It);
2241
+ u(B, this, new r(l(V, this), this.flags, i));
2242
+ }
2243
+ let t = this.global || this.sticky, i = this.lastIndex;
2244
+ if (l(U, this) === "clip_search" && t && i) {
2245
+ this.lastIndex = 0;
2246
+ let t = c(Lt, this, Vn).call(this, e.slice(i));
2247
+ return t && (Hn(t, i, e, this.hasIndices), this.lastIndex += i), t;
2248
+ }
2249
+ return c(Lt, this, Vn).call(this, e);
2250
+ }
2251
+ }, Rt);
2252
+ function Vn(e) {
2253
+ l(B, this).lastIndex = this.lastIndex;
2254
+ let t = m(Rt.prototype, "exec", this).call(l(B, this), e);
2255
+ if (this.lastIndex = l(B, this).lastIndex, !t || !l(z, this).size) return t;
2256
+ let n = [...t];
2257
+ t.length = 1;
2258
+ let r;
2259
+ this.hasIndices && (r = [...t.indices], t.indices.length = 1);
2260
+ let i = [0];
2261
+ for (let e = 1; e < n.length; e++) {
2262
+ var a;
2263
+ let { hidden: o, transferTo: s } = (a = l(z, this).get(e)) == null ? {} : a;
2264
+ if (o ? i.push(null) : (i.push(t.length), t.push(n[e]), this.hasIndices && t.indices.push(r[e])), s && n[e] !== void 0) {
2265
+ let a = i[s];
2266
+ if (!a) throw Error(`Invalid capture transfer to "${a}"`);
2267
+ if (t[a] = n[e], this.hasIndices && (t.indices[a] = r[e]), t.groups) {
2268
+ l(H, this) || u(H, this, Wn(this.source));
2269
+ let i = l(H, this).get(s);
2270
+ i && (t.groups[i] = n[e], this.hasIndices && (t.indices.groups[i] = r[e]));
2271
+ }
2272
+ }
2273
+ }
2274
+ return t;
2275
+ }
2276
+ function Hn(e, t, n, r) {
2277
+ if (e.index += t, e.input = n, r) {
2278
+ let n = e.indices;
2279
+ for (let e = 0; e < n.length; e++) {
2280
+ let r = n[e];
2281
+ r && (n[e] = [r[0] + t, r[1] + t]);
2282
+ }
2283
+ let r = n.groups;
2284
+ r && Object.keys(r).forEach((e) => {
2285
+ let n = r[e];
2286
+ n && (r[e] = [n[0] + t, n[1] + t]);
2287
+ });
2288
+ }
2289
+ }
2290
+ function Un(e, t) {
2291
+ let n = /* @__PURE__ */ new Map();
2292
+ for (let t of e) n.set(t, { hidden: !0 });
2293
+ for (let [e, r] of t) for (let t of r) q(n, t, {}).transferTo = e;
2294
+ return n;
2295
+ }
2296
+ function Wn(e) {
2297
+ let t = /* @__PURE__ */ RegExp("(?<capture>\\((?:\\?<(?![=!])(?<name>[^>]+)>|(?!\\?)))|\\\\?.", "gsu"), n = /* @__PURE__ */ new Map(), r = 0, i = 0, a;
2298
+ for (; a = t.exec(e);) {
2299
+ let { 0: e, groups: { capture: t, name: o } } = a;
2300
+ e === "[" ? r++ : r ? e === "]" && r-- : t && (i++, o && n.set(i, o));
2301
+ }
2302
+ return n;
2303
+ }
2304
+ function Gn(e, t) {
2305
+ let n = Kn(e, t);
2306
+ return n.options ? new Bn(n.pattern, n.flags, n.options) : new RegExp(n.pattern, n.flags);
2307
+ }
2308
+ function Kn(e, n) {
2309
+ let r = Wt(n), i = nn(ze(e, {
2310
+ flags: r.flags,
2311
+ normalizeUnknownPropertyNames: !0,
2312
+ rules: {
2313
+ captureGroup: r.rules.captureGroup,
2314
+ singleline: r.rules.singleline
2315
+ },
2316
+ skipBackrefValidation: r.rules.allowOrphanBackrefs,
2317
+ unicodePropertyMap: Jt
2318
+ }), {
2319
+ accuracy: r.accuracy,
2320
+ asciiWordBoundaries: r.rules.asciiWordBoundaries,
2321
+ avoidSubclass: r.avoidSubclass,
2322
+ bestEffortTarget: r.target
2323
+ }), a = wn(i, r), o = At(a.pattern, {
2324
+ captureTransfers: a._captureTransfers,
2325
+ hiddenCaptures: a._hiddenCaptures,
2326
+ mode: "external"
2327
+ }), s = Ct(Et(o.pattern).pattern, {
2328
+ captureTransfers: o.captureTransfers,
2329
+ hiddenCaptures: o.hiddenCaptures
2330
+ }), c = {
2331
+ pattern: s.pattern,
2332
+ flags: `${r.hasIndices ? "d" : ""}${r.global ? "g" : ""}${a.flags}${a.options.disable.v ? "u" : "v"}`
2333
+ };
2334
+ if (r.avoidSubclass) {
2335
+ if (r.lazyCompileLength !== Infinity) throw Error("Lazy compilation requires subclass");
2336
+ } else {
2337
+ let e = s.hiddenCaptures.sort((e, t) => e - t), n = Array.from(s.captureTransfers), a = i._strategy, o = c.pattern.length >= r.lazyCompileLength;
2338
+ (e.length || n.length || a || o) && (c.options = t(t(t(t({}, e.length && { hiddenCaptures: e }), n.length && { transfers: n }), a && { strategy: a }), o && { lazyCompile: o }));
2339
+ }
2340
+ return c;
2341
+ }
2342
+ //#endregion
2343
+ //#region node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs
2344
+ function qn(e, n) {
2345
+ return Gn(e, t({
2346
+ global: !0,
2347
+ hasIndices: !0,
2348
+ lazyCompileLength: 3e3,
2349
+ rules: {
2350
+ allowOrphanBackrefs: !0,
2351
+ asciiWordBoundaries: !0,
2352
+ captureGroup: !0,
2353
+ recursionLimit: 5,
2354
+ singleline: !0
2355
+ }
2356
+ }, n));
2357
+ }
2358
+ function Jn(e = {}) {
2359
+ let t = Object.assign({
2360
+ target: "auto",
2361
+ cache: /* @__PURE__ */ new Map()
2362
+ }, e);
2363
+ return t.regexConstructor || (t.regexConstructor = (e) => qn(e, { target: t.target })), {
2364
+ createScanner(e) {
2365
+ return new i(e, t);
2366
+ },
2367
+ createString(e) {
2368
+ return { content: e };
2369
+ }
2370
+ };
2371
+ }
2372
+ //#endregion
2373
+ export { Jn as createJavaScriptRegexEngine };