@cloudflare/kumo 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (842) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/ai/component-registry.json +39 -11
  3. package/ai/component-registry.md +213 -23
  4. package/ai/schemas.ts +2 -1
  5. package/dist/.build-complete +1 -1
  6. package/dist/Legend-AE5XCSyU.js +388 -0
  7. package/dist/Legend-AE5XCSyU.js.map +1 -0
  8. package/dist/abap-DBQ6eW1v.js +8 -0
  9. package/dist/abap-DBQ6eW1v.js.map +1 -0
  10. package/dist/actionscript-3-DiEsS-FW.js +8 -0
  11. package/dist/actionscript-3-DiEsS-FW.js.map +1 -0
  12. package/dist/ada-DGQ_5PSJ.js +8 -0
  13. package/dist/ada-DGQ_5PSJ.js.map +1 -0
  14. package/dist/ai/schemas.d.ts +16 -2
  15. package/dist/ai/schemas.d.ts.map +1 -1
  16. package/dist/{schemas-CdpAeJKO.js → ai/schemas.js} +116 -114
  17. package/dist/ai/schemas.js.map +1 -0
  18. package/dist/andromeeda-0OVEHq5k.js +6 -0
  19. package/dist/andromeeda-0OVEHq5k.js.map +1 -0
  20. package/dist/angular-html-C3bwzvDd.js +34 -0
  21. package/dist/angular-html-C3bwzvDd.js.map +1 -0
  22. package/dist/angular-ts-fBH42fxp.js +23 -0
  23. package/dist/angular-ts-fBH42fxp.js.map +1 -0
  24. package/dist/apache-Bbrn7pkv.js +8 -0
  25. package/dist/apache-Bbrn7pkv.js.map +1 -0
  26. package/dist/apex-D7jlLUJl.js +8 -0
  27. package/dist/apex-D7jlLUJl.js.map +1 -0
  28. package/dist/apl-Cal58rzR.js +18 -0
  29. package/dist/apl-Cal58rzR.js.map +1 -0
  30. package/dist/applescript-AZMDCVmb.js +8 -0
  31. package/dist/applescript-AZMDCVmb.js.map +1 -0
  32. package/dist/ara-D7lI3smf.js +8 -0
  33. package/dist/ara-D7lI3smf.js.map +1 -0
  34. package/dist/asciidoc-B_JWnvj-.js +8 -0
  35. package/dist/asciidoc-B_JWnvj-.js.map +1 -0
  36. package/dist/asm-CF39_jeh.js +8 -0
  37. package/dist/asm-CF39_jeh.js.map +1 -0
  38. package/dist/astro-DvJenNvt.js +20 -0
  39. package/dist/astro-DvJenNvt.js.map +1 -0
  40. package/dist/aurora-x-lzSm_5DI.js +6 -0
  41. package/dist/aurora-x-lzSm_5DI.js.map +1 -0
  42. package/dist/awk-D1dwqHUl.js +8 -0
  43. package/dist/awk-D1dwqHUl.js.map +1 -0
  44. package/dist/ayu-dark-C_pOwMAx.js +6 -0
  45. package/dist/ayu-dark-C_pOwMAx.js.map +1 -0
  46. package/dist/ayu-light-C25DTeWu.js +6 -0
  47. package/dist/ayu-light-C25DTeWu.js.map +1 -0
  48. package/dist/ayu-mirage-9IoMPoai.js +6 -0
  49. package/dist/ayu-mirage-9IoMPoai.js.map +1 -0
  50. package/dist/{badge-Dc99vsfo.js → badge-DUfmrhhZ.js} +23 -18
  51. package/dist/badge-DUfmrhhZ.js.map +1 -0
  52. package/dist/ballerina-0aHuYbBL.js +8 -0
  53. package/dist/ballerina-0aHuYbBL.js.map +1 -0
  54. package/dist/bat-hp8TkMW_.js +8 -0
  55. package/dist/bat-hp8TkMW_.js.map +1 -0
  56. package/dist/beancount-DhXwArMG.js +8 -0
  57. package/dist/beancount-DhXwArMG.js.map +1 -0
  58. package/dist/berry-SKcQ_bn6.js +8 -0
  59. package/dist/berry-SKcQ_bn6.js.map +1 -0
  60. package/dist/bibtex-CKeuI1gX.js +8 -0
  61. package/dist/bibtex-CKeuI1gX.js.map +1 -0
  62. package/dist/bicep-Bb1Z8c8o.js +8 -0
  63. package/dist/bicep-Bb1Z8c8o.js.map +1 -0
  64. package/dist/bird2-C3rWbj4Z.js +8 -0
  65. package/dist/bird2-C3rWbj4Z.js.map +1 -0
  66. package/dist/blade-THHHddQO.js +22 -0
  67. package/dist/blade-THHHddQO.js.map +1 -0
  68. package/dist/breadcrumbs-BPtbCStQ.js +166 -0
  69. package/dist/breadcrumbs-BPtbCStQ.js.map +1 -0
  70. package/dist/bsl-CflI2mMp.js +10 -0
  71. package/dist/bsl-CflI2mMp.js.map +1 -0
  72. package/dist/c-D5qA7m19.js +8 -0
  73. package/dist/c-D5qA7m19.js.map +1 -0
  74. package/dist/c3-COOn93H9.js +8 -0
  75. package/dist/c3-COOn93H9.js.map +1 -0
  76. package/dist/cadence-Dxfo-G8_.js +8 -0
  77. package/dist/cadence-Dxfo-G8_.js.map +1 -0
  78. package/dist/cairo-CY6szQm5.js +10 -0
  79. package/dist/cairo-CY6szQm5.js.map +1 -0
  80. package/dist/catalog.js +1 -1
  81. package/dist/catalog.js.map +1 -1
  82. package/dist/catppuccin-frappe-CpIXPvSU.js +6 -0
  83. package/dist/catppuccin-frappe-CpIXPvSU.js.map +1 -0
  84. package/dist/catppuccin-latte-xiJp113n.js +6 -0
  85. package/dist/catppuccin-latte-xiJp113n.js.map +1 -0
  86. package/dist/catppuccin-macchiato-CUb8G_sh.js +6 -0
  87. package/dist/catppuccin-macchiato-CUb8G_sh.js.map +1 -0
  88. package/dist/catppuccin-mocha-_pSbIuk3.js +6 -0
  89. package/dist/catppuccin-mocha-_pSbIuk3.js.map +1 -0
  90. package/dist/{checkbox-CfFoTNFI.js → checkbox-z5gO1lL8.js} +48 -48
  91. package/dist/checkbox-z5gO1lL8.js.map +1 -0
  92. package/dist/clarity-S9WX3mE2.js +8 -0
  93. package/dist/clarity-S9WX3mE2.js.map +1 -0
  94. package/dist/{clipboard-text-1d0rHIhb.js → clipboard-text-DbvIaZ3g.js} +4 -4
  95. package/dist/clipboard-text-DbvIaZ3g.js.map +1 -0
  96. package/dist/clojure-CMSQ2cRZ.js +8 -0
  97. package/dist/clojure-CMSQ2cRZ.js.map +1 -0
  98. package/dist/cmake-BjGOmuDM.js +8 -0
  99. package/dist/cmake-BjGOmuDM.js.map +1 -0
  100. package/dist/cobol-CdczAIkZ.js +12 -0
  101. package/dist/cobol-CdczAIkZ.js.map +1 -0
  102. package/dist/code/server.js +58 -0
  103. package/dist/code/server.js.map +1 -0
  104. package/dist/code-T2wPDiM0.js.map +1 -1
  105. package/dist/code.js +205 -0
  106. package/dist/code.js.map +1 -0
  107. package/dist/codeowners-CJleX2EU.js +8 -0
  108. package/dist/codeowners-CJleX2EU.js.map +1 -0
  109. package/dist/codeql-C_xiqGOC.js +8 -0
  110. package/dist/codeql-C_xiqGOC.js.map +1 -0
  111. package/dist/coffee-DbwFrMGw.js +10 -0
  112. package/dist/coffee-DbwFrMGw.js.map +1 -0
  113. package/dist/combobox-CJqgoue6.js +336 -0
  114. package/dist/combobox-CJqgoue6.js.map +1 -0
  115. package/dist/command-line/cli.js +4 -0
  116. package/dist/command-line/commands/add.js +4 -0
  117. package/dist/{command-palette-B80cqB7K.js → command-palette-xctZ--ZT.js} +55 -55
  118. package/dist/command-palette-xctZ--ZT.js.map +1 -0
  119. package/dist/common-lisp-bZFDzkJA.js +8 -0
  120. package/dist/common-lisp-bZFDzkJA.js.map +1 -0
  121. package/dist/components/badge.js +1 -1
  122. package/dist/components/breadcrumbs.js +1 -1
  123. package/dist/components/chart.js +9 -0
  124. package/dist/components/chart.js.map +1 -0
  125. package/dist/components/checkbox.js +1 -1
  126. package/dist/components/clipboard-text.js +1 -1
  127. package/dist/components/combobox.js +1 -1
  128. package/dist/components/command-palette.js +1 -1
  129. package/dist/components/dialog.js +1 -1
  130. package/dist/components/dropdown.js +1 -1
  131. package/dist/components/field.js +1 -1
  132. package/dist/components/flow.js +1000 -980
  133. package/dist/components/flow.js.map +1 -1
  134. package/dist/components/input.js +3 -3
  135. package/dist/components/label.js +1 -1
  136. package/dist/components/link.js +1 -1
  137. package/dist/components/menubar.js +1 -1
  138. package/dist/components/meter.js +1 -1
  139. package/dist/components/pagination.js +1 -1
  140. package/dist/components/popover.js +1 -1
  141. package/dist/components/radio.js +1 -1
  142. package/dist/components/select.js +1 -1
  143. package/dist/components/sensitive-input.js +1 -1
  144. package/dist/components/switch.js +1 -1
  145. package/dist/components/table.js +1 -1
  146. package/dist/components/tabs.js +1 -1
  147. package/dist/components/toast.js +2 -2
  148. package/dist/components/tooltip.js +1 -1
  149. package/dist/coq-BHwvPA1n.js +8 -0
  150. package/dist/coq-BHwvPA1n.js.map +1 -0
  151. package/dist/cpp-8X-mPrPy.js +20 -0
  152. package/dist/cpp-8X-mPrPy.js.map +1 -0
  153. package/dist/crystal-ClltT4Pm.js +20 -0
  154. package/dist/crystal-ClltT4Pm.js.map +1 -0
  155. package/dist/csharp-Byem5RBI.js +8 -0
  156. package/dist/csharp-Byem5RBI.js.map +1 -0
  157. package/dist/css-qd-96f_M.js +8 -0
  158. package/dist/css-qd-96f_M.js.map +1 -0
  159. package/dist/csv-CF_FKHnB.js +8 -0
  160. package/dist/csv-CF_FKHnB.js.map +1 -0
  161. package/dist/cue-I1Agx594.js +8 -0
  162. package/dist/cue-I1Agx594.js.map +1 -0
  163. package/dist/cypher-plLNBUt5.js +8 -0
  164. package/dist/cypher-plLNBUt5.js.map +1 -0
  165. package/dist/d-CEuq9VFi.js +8 -0
  166. package/dist/d-CEuq9VFi.js.map +1 -0
  167. package/dist/dark-plus-BoH9QJRG.js +6 -0
  168. package/dist/dark-plus-BoH9QJRG.js.map +1 -0
  169. package/dist/dart-BW14f2cB.js +8 -0
  170. package/dist/dart-BW14f2cB.js.map +1 -0
  171. package/dist/dax-3tjM9tVE.js +8 -0
  172. package/dist/dax-3tjM9tVE.js.map +1 -0
  173. package/dist/desktop-C_s7lQ2C.js +8 -0
  174. package/dist/desktop-C_s7lQ2C.js.map +1 -0
  175. package/dist/dialog-1pa-ezdL.js +112 -0
  176. package/dist/dialog-1pa-ezdL.js.map +1 -0
  177. package/dist/diff-B9PHDIQg.js +8 -0
  178. package/dist/diff-B9PHDIQg.js.map +1 -0
  179. package/dist/docker-rmWVNdXq.js +8 -0
  180. package/dist/docker-rmWVNdXq.js.map +1 -0
  181. package/dist/dotenv-DZArZ0py.js +8 -0
  182. package/dist/dotenv-DZArZ0py.js.map +1 -0
  183. package/dist/dracula-CdWPhGUA.js +6 -0
  184. package/dist/dracula-CdWPhGUA.js.map +1 -0
  185. package/dist/dracula-soft-DRgtS4KI.js +6 -0
  186. package/dist/dracula-soft-DRgtS4KI.js.map +1 -0
  187. package/dist/dream-maker-DNRMl5wX.js +8 -0
  188. package/dist/dream-maker-DNRMl5wX.js.map +1 -0
  189. package/dist/{dropdown-CfS4QcSR.js → dropdown-BXg01-8j.js} +3 -3
  190. package/dist/{dropdown-CfS4QcSR.js.map → dropdown-BXg01-8j.js.map} +1 -1
  191. package/dist/edge-CQUaQiBB.js +14 -0
  192. package/dist/edge-CQUaQiBB.js.map +1 -0
  193. package/dist/elixir-BIX3y1uJ.js +10 -0
  194. package/dist/elixir-BIX3y1uJ.js.map +1 -0
  195. package/dist/elm-DNVN4B4L.js +10 -0
  196. package/dist/elm-DNVN4B4L.js.map +1 -0
  197. package/dist/emacs-lisp-C3TqDViv.js +8 -0
  198. package/dist/emacs-lisp-C3TqDViv.js.map +1 -0
  199. package/dist/engine-compile-D-n7xALU.js +2621 -0
  200. package/dist/engine-compile-D-n7xALU.js.map +1 -0
  201. package/dist/engine-javascript-BGkeRc0U.js +26 -0
  202. package/dist/engine-javascript-BGkeRc0U.js.map +1 -0
  203. package/dist/engine-oniguruma-T2xha06Q.js +304 -0
  204. package/dist/engine-oniguruma-T2xha06Q.js.map +1 -0
  205. package/dist/erb-CPJOs_gM.js +12 -0
  206. package/dist/erb-CPJOs_gM.js.map +1 -0
  207. package/dist/erlang-X97pCGTS.js +10 -0
  208. package/dist/erlang-X97pCGTS.js.map +1 -0
  209. package/dist/everforest-dark-C9JXzteI.js +6 -0
  210. package/dist/everforest-dark-C9JXzteI.js.map +1 -0
  211. package/dist/everforest-light-xBi4ZMR7.js +6 -0
  212. package/dist/everforest-light-xBi4ZMR7.js.map +1 -0
  213. package/dist/fennel-fKVJGO8V.js +8 -0
  214. package/dist/fennel-fKVJGO8V.js.map +1 -0
  215. package/dist/{field-B8xISAuX.js → field-BYaOyOtJ.js} +7 -7
  216. package/dist/{field-B8xISAuX.js.map → field-BYaOyOtJ.js.map} +1 -1
  217. package/dist/fish-BB5DT4M2.js +8 -0
  218. package/dist/fish-BB5DT4M2.js.map +1 -0
  219. package/dist/fluent-AMVPEbdR.js +8 -0
  220. package/dist/fluent-AMVPEbdR.js.map +1 -0
  221. package/dist/fortran-fixed-form-J4xKprxx.js +10 -0
  222. package/dist/fortran-fixed-form-J4xKprxx.js.map +1 -0
  223. package/dist/fortran-free-form-89VVYcvD.js +8 -0
  224. package/dist/fortran-free-form-89VVYcvD.js.map +1 -0
  225. package/dist/fsharp-BnRQMxrz.js +10 -0
  226. package/dist/fsharp-BnRQMxrz.js.map +1 -0
  227. package/dist/gdresource-DGR3GPIj.js +12 -0
  228. package/dist/gdresource-DGR3GPIj.js.map +1 -0
  229. package/dist/gdscript-8-4n2AaI.js +8 -0
  230. package/dist/gdscript-8-4n2AaI.js.map +1 -0
  231. package/dist/gdshader-BCM6bIM_.js +8 -0
  232. package/dist/gdshader-BCM6bIM_.js.map +1 -0
  233. package/dist/genie-CxR2u3hD.js +8 -0
  234. package/dist/genie-CxR2u3hD.js.map +1 -0
  235. package/dist/gherkin-BhW6oAYW.js +8 -0
  236. package/dist/gherkin-BhW6oAYW.js.map +1 -0
  237. package/dist/git-commit-DSzkYnqf.js +10 -0
  238. package/dist/git-commit-DSzkYnqf.js.map +1 -0
  239. package/dist/git-rebase-CY0sqDHH.js +10 -0
  240. package/dist/git-rebase-CY0sqDHH.js.map +1 -0
  241. package/dist/github-dark-EGgK0P1m.js +6 -0
  242. package/dist/github-dark-EGgK0P1m.js.map +1 -0
  243. package/dist/github-dark-default-69UGLTaR.js +6 -0
  244. package/dist/github-dark-default-69UGLTaR.js.map +1 -0
  245. package/dist/github-dark-dimmed-CnBHruXC.js +6 -0
  246. package/dist/github-dark-dimmed-CnBHruXC.js.map +1 -0
  247. package/dist/github-dark-high-contrast-Dz2ZsuOt.js +6 -0
  248. package/dist/github-dark-high-contrast-Dz2ZsuOt.js.map +1 -0
  249. package/dist/github-light-C7TbDuh5.js +6 -0
  250. package/dist/github-light-C7TbDuh5.js.map +1 -0
  251. package/dist/github-light-default-C1fruPEw.js +6 -0
  252. package/dist/github-light-default-C1fruPEw.js.map +1 -0
  253. package/dist/github-light-high-contrast-SmWFD2B-.js +6 -0
  254. package/dist/github-light-high-contrast-SmWFD2B-.js.map +1 -0
  255. package/dist/gleam-PNso-9g-.js +8 -0
  256. package/dist/gleam-PNso-9g-.js.map +1 -0
  257. package/dist/glimmer-js-DY9OBWW6.js +16 -0
  258. package/dist/glimmer-js-DY9OBWW6.js.map +1 -0
  259. package/dist/glimmer-ts-CKjdlzG3.js +16 -0
  260. package/dist/glimmer-ts-CKjdlzG3.js.map +1 -0
  261. package/dist/glsl-Bo9QfxI7.js +10 -0
  262. package/dist/glsl-Bo9QfxI7.js.map +1 -0
  263. package/dist/gn-B8imrxEe.js +8 -0
  264. package/dist/gn-B8imrxEe.js.map +1 -0
  265. package/dist/gnuplot-z48QnpzZ.js +8 -0
  266. package/dist/gnuplot-z48QnpzZ.js.map +1 -0
  267. package/dist/go-BUI2a86a.js +8 -0
  268. package/dist/go-BUI2a86a.js.map +1 -0
  269. package/dist/graphql-CYUl2j62.js +16 -0
  270. package/dist/graphql-CYUl2j62.js.map +1 -0
  271. package/dist/groovy-BZajDB1h.js +8 -0
  272. package/dist/groovy-BZajDB1h.js.map +1 -0
  273. package/dist/gruvbox-dark-hard-DEp4fn0U.js +6 -0
  274. package/dist/gruvbox-dark-hard-DEp4fn0U.js.map +1 -0
  275. package/dist/gruvbox-dark-medium-D3l-n4N3.js +6 -0
  276. package/dist/gruvbox-dark-medium-D3l-n4N3.js.map +1 -0
  277. package/dist/gruvbox-dark-soft-Ca_lMr1K.js +6 -0
  278. package/dist/gruvbox-dark-soft-Ca_lMr1K.js.map +1 -0
  279. package/dist/gruvbox-light-hard-D5BcqPys.js +6 -0
  280. package/dist/gruvbox-light-hard-D5BcqPys.js.map +1 -0
  281. package/dist/gruvbox-light-medium-C_7vC_ep.js +6 -0
  282. package/dist/gruvbox-light-medium-C_7vC_ep.js.map +1 -0
  283. package/dist/gruvbox-light-soft-YeHuiVT9.js +6 -0
  284. package/dist/gruvbox-light-soft-YeHuiVT9.js.map +1 -0
  285. package/dist/hack-Bo7_3XMo.js +12 -0
  286. package/dist/hack-Bo7_3XMo.js.map +1 -0
  287. package/dist/haml-lAa-UgZq.js +12 -0
  288. package/dist/haml-lAa-UgZq.js.map +1 -0
  289. package/dist/handlebars-C-lypSbJ.js +16 -0
  290. package/dist/handlebars-C-lypSbJ.js.map +1 -0
  291. package/dist/haskell-CyfJi0Qi.js +8 -0
  292. package/dist/haskell-CyfJi0Qi.js.map +1 -0
  293. package/dist/haxe-DHpItfCt.js +8 -0
  294. package/dist/haxe-DHpItfCt.js.map +1 -0
  295. package/dist/hcl-C-f84Y9W.js +8 -0
  296. package/dist/hcl-C-f84Y9W.js.map +1 -0
  297. package/dist/hjson-8VYQauSm.js +8 -0
  298. package/dist/hjson-8VYQauSm.js.map +1 -0
  299. package/dist/hlsl-Bi2Lb4au.js +8 -0
  300. package/dist/hlsl-Bi2Lb4au.js.map +1 -0
  301. package/dist/horizon-DyGYchkb.js +6 -0
  302. package/dist/horizon-DyGYchkb.js.map +1 -0
  303. package/dist/horizon-bright-DatYugLo.js +6 -0
  304. package/dist/horizon-bright-DatYugLo.js.map +1 -0
  305. package/dist/houston-DaTAsj92.js +6 -0
  306. package/dist/houston-DaTAsj92.js.map +1 -0
  307. package/dist/html-BXZx6WkT.js +12 -0
  308. package/dist/html-BXZx6WkT.js.map +1 -0
  309. package/dist/html-derivative-CaPNhXFu.js +10 -0
  310. package/dist/html-derivative-CaPNhXFu.js.map +1 -0
  311. package/dist/http-BJ0BMq9T.js +16 -0
  312. package/dist/http-BJ0BMq9T.js.map +1 -0
  313. package/dist/hurl-D_d_bmYM.js +14 -0
  314. package/dist/hurl-D_d_bmYM.js.map +1 -0
  315. package/dist/hxml-C8H9PCaB.js +10 -0
  316. package/dist/hxml-C8H9PCaB.js.map +1 -0
  317. package/dist/hy-Cf7WyqnA.js +8 -0
  318. package/dist/hy-Cf7WyqnA.js.map +1 -0
  319. package/dist/imba-4cu8YWL6.js +8 -0
  320. package/dist/imba-4cu8YWL6.js.map +1 -0
  321. package/dist/index-yfbAkHut.js +7313 -0
  322. package/dist/index-yfbAkHut.js.map +1 -0
  323. package/dist/index.js +72 -67
  324. package/dist/index.js.map +1 -1
  325. package/dist/ini-DdlAq5Sk.js +8 -0
  326. package/dist/ini-DdlAq5Sk.js.map +1 -0
  327. package/dist/{input-DCzpefuq.js → input-BXn3ElmF.js} +3 -3
  328. package/dist/{input-DCzpefuq.js.map → input-BXn3ElmF.js.map} +1 -1
  329. package/dist/{input-area-DCaAN9nG.js → input-area-C3ddZhEo.js} +3 -3
  330. package/dist/{input-area-DCaAN9nG.js.map → input-area-C3ddZhEo.js.map} +1 -1
  331. package/dist/{input-group-BbaVpJnA.js → input-group-BiUKE2TR.js} +5 -5
  332. package/dist/input-group-BiUKE2TR.js.map +1 -0
  333. package/dist/java-DZX_qz_V.js +8 -0
  334. package/dist/java-DZX_qz_V.js.map +1 -0
  335. package/dist/javascript-Dcop9YgO.js +8 -0
  336. package/dist/javascript-Dcop9YgO.js.map +1 -0
  337. package/dist/jinja-CYDaN8cn.js +13 -0
  338. package/dist/jinja-CYDaN8cn.js.map +1 -0
  339. package/dist/jison-B8TKZKc6.js +10 -0
  340. package/dist/jison-B8TKZKc6.js.map +1 -0
  341. package/dist/json-BONZstWZ.js +8 -0
  342. package/dist/json-BONZstWZ.js.map +1 -0
  343. package/dist/json5-C-4cnXW0.js +8 -0
  344. package/dist/json5-C-4cnXW0.js.map +1 -0
  345. package/dist/jsonc-CIx6BVP6.js +8 -0
  346. package/dist/jsonc-CIx6BVP6.js.map +1 -0
  347. package/dist/jsonl-DFezC0c-.js +8 -0
  348. package/dist/jsonl-DFezC0c-.js.map +1 -0
  349. package/dist/jsonnet-CrYiLnuZ.js +8 -0
  350. package/dist/jsonnet-CrYiLnuZ.js.map +1 -0
  351. package/dist/jssm-DPqP_6Yy.js +8 -0
  352. package/dist/jssm-DPqP_6Yy.js.map +1 -0
  353. package/dist/jsx-Buo8VY2N.js +8 -0
  354. package/dist/jsx-Buo8VY2N.js.map +1 -0
  355. package/dist/julia-BGc-upw8.js +18 -0
  356. package/dist/julia-BGc-upw8.js.map +1 -0
  357. package/dist/just-Btim_Xbp.js +20 -0
  358. package/dist/just-Btim_Xbp.js.map +1 -0
  359. package/dist/kanagawa-dragon-CrRYMC-y.js +6 -0
  360. package/dist/kanagawa-dragon-CrRYMC-y.js.map +1 -0
  361. package/dist/kanagawa-lotus-CpAeLZo_.js +6 -0
  362. package/dist/kanagawa-lotus-CpAeLZo_.js.map +1 -0
  363. package/dist/kanagawa-wave-DgLnfzgl.js +6 -0
  364. package/dist/kanagawa-wave-DgLnfzgl.js.map +1 -0
  365. package/dist/kdl-D5mP0US-.js +8 -0
  366. package/dist/kdl-D5mP0US-.js.map +1 -0
  367. package/dist/kotlin-Bj4GXgal.js +8 -0
  368. package/dist/kotlin-Bj4GXgal.js.map +1 -0
  369. package/dist/kusto-xKgi3EM3.js +8 -0
  370. package/dist/kusto-xKgi3EM3.js.map +1 -0
  371. package/dist/{label-Cd6nCDWj.js → label-ByOtGj7z.js} +2 -2
  372. package/dist/{label-Cd6nCDWj.js.map → label-ByOtGj7z.js.map} +1 -1
  373. package/dist/laserwave-DwIE46bX.js +6 -0
  374. package/dist/laserwave-DwIE46bX.js.map +1 -0
  375. package/dist/latex-Ba_x0_mo.js +10 -0
  376. package/dist/latex-Ba_x0_mo.js.map +1 -0
  377. package/dist/lean-CFZjFqaI.js +8 -0
  378. package/dist/lean-CFZjFqaI.js.map +1 -0
  379. package/dist/less-Cah4u9hl.js +8 -0
  380. package/dist/less-Cah4u9hl.js.map +1 -0
  381. package/dist/light-plus-uDz5yXau.js +6 -0
  382. package/dist/light-plus-uDz5yXau.js.map +1 -0
  383. package/dist/{link-DJq9RWpK.js → link-CfCaX9Ks.js} +2 -2
  384. package/dist/{link-DJq9RWpK.js.map → link-CfCaX9Ks.js.map} +1 -1
  385. package/dist/liquid-DUwftMLD.js +16 -0
  386. package/dist/liquid-DUwftMLD.js.map +1 -0
  387. package/dist/llvm-p6MskI4D.js +8 -0
  388. package/dist/llvm-p6MskI4D.js.map +1 -0
  389. package/dist/log-B-eGB3gN.js +8 -0
  390. package/dist/log-B-eGB3gN.js.map +1 -0
  391. package/dist/logo-_QhIaHqR.js +8 -0
  392. package/dist/logo-_QhIaHqR.js.map +1 -0
  393. package/dist/lua-DXBtl-xZ.js +10 -0
  394. package/dist/lua-DXBtl-xZ.js.map +1 -0
  395. package/dist/luau-cNt0OAd4.js +8 -0
  396. package/dist/luau-cNt0OAd4.js.map +1 -0
  397. package/dist/make-LOzELzzn.js +8 -0
  398. package/dist/make-LOzELzzn.js.map +1 -0
  399. package/dist/markdown-CPiFXKuQ.js +8 -0
  400. package/dist/markdown-CPiFXKuQ.js.map +1 -0
  401. package/dist/marko-B5j5W6dr.js +16 -0
  402. package/dist/marko-B5j5W6dr.js.map +1 -0
  403. package/dist/material-theme-BNmHEIvm.js +6 -0
  404. package/dist/material-theme-BNmHEIvm.js.map +1 -0
  405. package/dist/material-theme-darker-DSlFkdBn.js +6 -0
  406. package/dist/material-theme-darker-DSlFkdBn.js.map +1 -0
  407. package/dist/material-theme-lighter-DMthFo49.js +6 -0
  408. package/dist/material-theme-lighter-DMthFo49.js.map +1 -0
  409. package/dist/material-theme-ocean-Bza3srwZ.js +6 -0
  410. package/dist/material-theme-ocean-Bza3srwZ.js.map +1 -0
  411. package/dist/material-theme-palenight-cC7823m_.js +6 -0
  412. package/dist/material-theme-palenight-cC7823m_.js.map +1 -0
  413. package/dist/matlab-BXc70sGh.js +8 -0
  414. package/dist/matlab-BXc70sGh.js.map +1 -0
  415. package/dist/mdc-DIfFG4VK.js +14 -0
  416. package/dist/mdc-DIfFG4VK.js.map +1 -0
  417. package/dist/mdx-DDEEGmMw.js +8 -0
  418. package/dist/mdx-DDEEGmMw.js.map +1 -0
  419. package/dist/{menubar-Chchzst0.js → menubar-be9R8bE-.js} +14 -14
  420. package/dist/menubar-be9R8bE-.js.map +1 -0
  421. package/dist/mermaid-BbhKaiym.js +8 -0
  422. package/dist/mermaid-BbhKaiym.js.map +1 -0
  423. package/dist/{meter-Wk7_EhaO.js → meter-CCpXrH8B.js} +4 -4
  424. package/dist/{meter-Wk7_EhaO.js.map → meter-CCpXrH8B.js.map} +1 -1
  425. package/dist/min-dark-B2RGEXlR.js +6 -0
  426. package/dist/min-dark-B2RGEXlR.js.map +1 -0
  427. package/dist/min-light-CdvDdehu.js +6 -0
  428. package/dist/min-light-CdvDdehu.js.map +1 -0
  429. package/dist/mipsasm-A-azREv6.js +8 -0
  430. package/dist/mipsasm-A-azREv6.js.map +1 -0
  431. package/dist/mojo-eENZKkWN.js +8 -0
  432. package/dist/mojo-eENZKkWN.js.map +1 -0
  433. package/dist/monokai-DfGcBwbw.js +6 -0
  434. package/dist/monokai-DfGcBwbw.js.map +1 -0
  435. package/dist/moonbit-OY9Cnyv0.js +8 -0
  436. package/dist/moonbit-OY9Cnyv0.js.map +1 -0
  437. package/dist/move-DQ3SUBHm.js +8 -0
  438. package/dist/move-DQ3SUBHm.js.map +1 -0
  439. package/dist/narrat-DEs1QMww.js +8 -0
  440. package/dist/narrat-DEs1QMww.js.map +1 -0
  441. package/dist/nextflow-BLqoZa2U.js +10 -0
  442. package/dist/nextflow-BLqoZa2U.js.map +1 -0
  443. package/dist/nextflow-groovy-sn5GPI4S.js +8 -0
  444. package/dist/nextflow-groovy-sn5GPI4S.js.map +1 -0
  445. package/dist/nginx-DV2C2lFg.js +10 -0
  446. package/dist/nginx-DV2C2lFg.js.map +1 -0
  447. package/dist/night-owl-Cx4f311z.js +6 -0
  448. package/dist/night-owl-Cx4f311z.js.map +1 -0
  449. package/dist/night-owl-light-CFIwPg_e.js +6 -0
  450. package/dist/night-owl-light-CFIwPg_e.js.map +1 -0
  451. package/dist/nim-DX5HB9SQ.js +22 -0
  452. package/dist/nim-DX5HB9SQ.js.map +1 -0
  453. package/dist/nix-BbTJzn8W.js +11 -0
  454. package/dist/nix-BbTJzn8W.js.map +1 -0
  455. package/dist/nord-N4OTOgI2.js +6 -0
  456. package/dist/nord-N4OTOgI2.js.map +1 -0
  457. package/dist/nushell-CRsPhsIw.js +8 -0
  458. package/dist/nushell-CRsPhsIw.js.map +1 -0
  459. package/dist/objective-c-7VQzYTNs.js +8 -0
  460. package/dist/objective-c-7VQzYTNs.js.map +1 -0
  461. package/dist/objective-cpp-C_AHgfC8.js +8 -0
  462. package/dist/objective-cpp-C_AHgfC8.js.map +1 -0
  463. package/dist/ocaml-N0gcbB8P.js +8 -0
  464. package/dist/ocaml-N0gcbB8P.js.map +1 -0
  465. package/dist/odin-CbArZjV2.js +8 -0
  466. package/dist/odin-CbArZjV2.js.map +1 -0
  467. package/dist/one-dark-pro-CFjKUJ8l.js +6 -0
  468. package/dist/one-dark-pro-CFjKUJ8l.js.map +1 -0
  469. package/dist/one-light-cHFZvryT.js +6 -0
  470. package/dist/one-light-cHFZvryT.js.map +1 -0
  471. package/dist/openscad-9QYZdZML.js +8 -0
  472. package/dist/openscad-9QYZdZML.js.map +1 -0
  473. package/dist/pagination-CaHm6TKa.js +220 -0
  474. package/dist/pagination-CaHm6TKa.js.map +1 -0
  475. package/dist/pascal-Chee6n3j.js +8 -0
  476. package/dist/pascal-Chee6n3j.js.map +1 -0
  477. package/dist/perl-Bo9cWF9y.js +18 -0
  478. package/dist/perl-Bo9cWF9y.js.map +1 -0
  479. package/dist/php-Cbqedh5-.js +20 -0
  480. package/dist/php-Cbqedh5-.js.map +1 -0
  481. package/dist/pkl-DmRpyJfO.js +8 -0
  482. package/dist/pkl-DmRpyJfO.js.map +1 -0
  483. package/dist/plastic-BWaSpRpp.js +6 -0
  484. package/dist/plastic-BWaSpRpp.js.map +1 -0
  485. package/dist/plsql-DXyBT3AN.js +8 -0
  486. package/dist/plsql-DXyBT3AN.js.map +1 -0
  487. package/dist/po-Duw5KTH-.js +8 -0
  488. package/dist/po-Duw5KTH-.js.map +1 -0
  489. package/dist/poimandres-DtrtfOBO.js +6 -0
  490. package/dist/poimandres-DtrtfOBO.js.map +1 -0
  491. package/dist/polar-C9ZZjIU6.js +8 -0
  492. package/dist/polar-C9ZZjIU6.js.map +1 -0
  493. package/dist/{popover-D20xpmdk.js → popover-CHafAVT6.js} +2 -2
  494. package/dist/{popover-D20xpmdk.js.map → popover-CHafAVT6.js.map} +1 -1
  495. package/dist/postcss-D9nF9Ns4.js +8 -0
  496. package/dist/postcss-D9nF9Ns4.js.map +1 -0
  497. package/dist/powerquery-Bf1siwRH.js +8 -0
  498. package/dist/powerquery-Bf1siwRH.js.map +1 -0
  499. package/dist/powershell-DbLFMYnO.js +8 -0
  500. package/dist/powershell-DbLFMYnO.js.map +1 -0
  501. package/dist/primitives/accordion.js +1 -1
  502. package/dist/primitives/alert-dialog.js +1 -1
  503. package/dist/primitives/autocomplete.js +1 -1
  504. package/dist/primitives/avatar.js +1 -1
  505. package/dist/primitives/button.js +1 -1
  506. package/dist/primitives/checkbox-group.js +1 -1
  507. package/dist/primitives/checkbox.js +1 -1
  508. package/dist/primitives/collapsible.js +1 -1
  509. package/dist/primitives/combobox.js +1 -1
  510. package/dist/primitives/context-menu.js +1 -1
  511. package/dist/primitives/csp-provider.js +1 -1
  512. package/dist/primitives/dialog.js +1 -1
  513. package/dist/primitives/direction-provider.js +1 -1
  514. package/dist/primitives/drawer.js +1 -1
  515. package/dist/primitives/field.js +1 -1
  516. package/dist/primitives/fieldset.js +1 -1
  517. package/dist/primitives/form.js +1 -1
  518. package/dist/primitives/input.js +1 -1
  519. package/dist/primitives/menu.js +1 -1
  520. package/dist/primitives/menubar.js +1 -1
  521. package/dist/primitives/meter.js +1 -1
  522. package/dist/primitives/navigation-menu.js +1 -1
  523. package/dist/primitives/number-field.js +1 -1
  524. package/dist/primitives/popover.js +1 -1
  525. package/dist/primitives/preview-card.js +1 -1
  526. package/dist/primitives/progress.js +1 -1
  527. package/dist/primitives/radio-group.js +1 -1
  528. package/dist/primitives/radio.js +1 -1
  529. package/dist/primitives/scroll-area.js +1 -1
  530. package/dist/primitives/select.js +1 -1
  531. package/dist/primitives/separator.js +1 -1
  532. package/dist/primitives/slider.js +1 -1
  533. package/dist/primitives/switch.js +1 -1
  534. package/dist/primitives/tabs.js +1 -1
  535. package/dist/primitives/toast.js +1 -1
  536. package/dist/primitives/toggle-group.js +1 -1
  537. package/dist/primitives/toggle.js +1 -1
  538. package/dist/primitives/toolbar.js +1 -1
  539. package/dist/primitives/tooltip.js +1 -1
  540. package/dist/primitives.js +1 -1
  541. package/dist/prisma-DQmdODpM.js +8 -0
  542. package/dist/prisma-DQmdODpM.js.map +1 -0
  543. package/dist/prolog-BhDhfNq2.js +8 -0
  544. package/dist/prolog-BhDhfNq2.js.map +1 -0
  545. package/dist/proto-8YBPwIZV.js +8 -0
  546. package/dist/proto-8YBPwIZV.js.map +1 -0
  547. package/dist/pug-Cd1k_DIC.js +14 -0
  548. package/dist/pug-Cd1k_DIC.js.map +1 -0
  549. package/dist/puppet-DWeotfji.js +8 -0
  550. package/dist/puppet-DWeotfji.js.map +1 -0
  551. package/dist/purescript-BlRfpTfS.js +8 -0
  552. package/dist/purescript-BlRfpTfS.js.map +1 -0
  553. package/dist/python--QhWBEuB.js +8 -0
  554. package/dist/python--QhWBEuB.js.map +1 -0
  555. package/dist/qml-D5YeakZo.js +10 -0
  556. package/dist/qml-D5YeakZo.js.map +1 -0
  557. package/dist/qmldir-Cvb9I9Hu.js +8 -0
  558. package/dist/qmldir-Cvb9I9Hu.js.map +1 -0
  559. package/dist/qss-MOxpdvNy.js +8 -0
  560. package/dist/qss-MOxpdvNy.js.map +1 -0
  561. package/dist/r-CPa3sP0i.js +8 -0
  562. package/dist/r-CPa3sP0i.js.map +1 -0
  563. package/dist/racket-u4Z5W-hW.js +8 -0
  564. package/dist/racket-u4Z5W-hW.js.map +1 -0
  565. package/dist/{radio-ibVa4Y8a.js → radio-DZ1uS-zK.js} +24 -24
  566. package/dist/{radio-ibVa4Y8a.js.map → radio-DZ1uS-zK.js.map} +1 -1
  567. package/dist/raku-DD1-d8EI.js +8 -0
  568. package/dist/raku-DD1-d8EI.js.map +1 -0
  569. package/dist/razor-CvgW6g5F.js +12 -0
  570. package/dist/razor-CvgW6g5F.js.map +1 -0
  571. package/dist/red-nqtx3ZzA.js +6 -0
  572. package/dist/red-nqtx3ZzA.js.map +1 -0
  573. package/dist/reg-D39ozI4Z.js +8 -0
  574. package/dist/reg-D39ozI4Z.js.map +1 -0
  575. package/dist/regexp-C-mTs3Xt.js +8 -0
  576. package/dist/regexp-C-mTs3Xt.js.map +1 -0
  577. package/dist/rel-CvIujmyu.js +8 -0
  578. package/dist/rel-CvIujmyu.js.map +1 -0
  579. package/dist/riscv-BDw_rTFU.js +8 -0
  580. package/dist/riscv-BDw_rTFU.js.map +1 -0
  581. package/dist/ron-Dr-HoCkP.js +8 -0
  582. package/dist/ron-Dr-HoCkP.js.map +1 -0
  583. package/dist/rose-pine-Ca6P34ai.js +6 -0
  584. package/dist/rose-pine-Ca6P34ai.js.map +1 -0
  585. package/dist/rose-pine-dawn-CSsyidmk.js +6 -0
  586. package/dist/rose-pine-dawn-CSsyidmk.js.map +1 -0
  587. package/dist/rose-pine-moon-DFcWGQ4j.js +6 -0
  588. package/dist/rose-pine-moon-DFcWGQ4j.js.map +1 -0
  589. package/dist/rosmsg-D3QLmOd5.js +8 -0
  590. package/dist/rosmsg-D3QLmOd5.js.map +1 -0
  591. package/dist/rst-BVJfTGcR.js +24 -0
  592. package/dist/rst-BVJfTGcR.js.map +1 -0
  593. package/dist/ruby-0gZcrdnG.js +32 -0
  594. package/dist/ruby-0gZcrdnG.js.map +1 -0
  595. package/dist/rust-CiVdiDo-.js +8 -0
  596. package/dist/rust-CiVdiDo-.js.map +1 -0
  597. package/dist/sas-Df_jutC7.js +10 -0
  598. package/dist/sas-Df_jutC7.js.map +1 -0
  599. package/dist/sass-CnN1LcIf.js +8 -0
  600. package/dist/sass-CnN1LcIf.js.map +1 -0
  601. package/dist/scala-D_7p1-Ff.js +8 -0
  602. package/dist/scala-D_7p1-Ff.js.map +1 -0
  603. package/dist/scheme-kuKKlndT.js +8 -0
  604. package/dist/scheme-kuKKlndT.js.map +1 -0
  605. package/dist/scripts/theme-generator/config.d.ts +6 -0
  606. package/dist/scripts/theme-generator/config.d.ts.map +1 -0
  607. package/dist/scripts/theme-generator/config.js +394 -0
  608. package/dist/scripts/theme-generator/config.js.map +1 -0
  609. package/dist/scripts/theme-generator/generate-css.d.ts +31 -0
  610. package/dist/scripts/theme-generator/generate-css.d.ts.map +1 -0
  611. package/dist/scripts/theme-generator/index.d.ts +13 -0
  612. package/dist/scripts/theme-generator/index.d.ts.map +1 -0
  613. package/dist/scripts/theme-generator/migrate.d.ts +56 -0
  614. package/dist/scripts/theme-generator/migrate.d.ts.map +1 -0
  615. package/dist/scripts/theme-generator/types.d.ts +76 -0
  616. package/dist/scripts/theme-generator/types.d.ts.map +1 -0
  617. package/dist/scripts/theme-generator/types.js +2 -0
  618. package/dist/scripts/theme-generator/types.js.map +1 -0
  619. package/dist/scss-Cnx3ZIbn.js +10 -0
  620. package/dist/scss-Cnx3ZIbn.js.map +1 -0
  621. package/dist/sdbl-C99B6EXT.js +8 -0
  622. package/dist/sdbl-C99B6EXT.js.map +1 -0
  623. package/dist/select-BXZAlFAV.js +113 -0
  624. package/dist/select-BXZAlFAV.js.map +1 -0
  625. package/dist/{sensitive-input-DHDRZRC7.js → sensitive-input-CI-gtdfw.js} +4 -4
  626. package/dist/{sensitive-input-DHDRZRC7.js.map → sensitive-input-CI-gtdfw.js.map} +1 -1
  627. package/dist/shaderlab-r5kupfNY.js +10 -0
  628. package/dist/shaderlab-r5kupfNY.js.map +1 -0
  629. package/dist/shellscript-C9yrawww.js +8 -0
  630. package/dist/shellscript-C9yrawww.js.map +1 -0
  631. package/dist/shellsession-Vfxwd5pt.js +10 -0
  632. package/dist/shellsession-Vfxwd5pt.js.map +1 -0
  633. package/dist/slack-dark-DPwE-fTd.js +6 -0
  634. package/dist/slack-dark-DPwE-fTd.js.map +1 -0
  635. package/dist/slack-ochin-XQpb-bu3.js +6 -0
  636. package/dist/slack-ochin-XQpb-bu3.js.map +1 -0
  637. package/dist/smalltalk-DBHjpWnU.js +8 -0
  638. package/dist/smalltalk-DBHjpWnU.js.map +1 -0
  639. package/dist/snazzy-light-B301-rZ_.js +6 -0
  640. package/dist/snazzy-light-B301-rZ_.js.map +1 -0
  641. package/dist/solarized-dark-Bmasqmd6.js +6 -0
  642. package/dist/solarized-dark-Bmasqmd6.js.map +1 -0
  643. package/dist/solarized-light-D79sTVew.js +6 -0
  644. package/dist/solarized-light-D79sTVew.js.map +1 -0
  645. package/dist/solidity-DiELThdT.js +8 -0
  646. package/dist/solidity-DiELThdT.js.map +1 -0
  647. package/dist/soy-JFzJcdvc.js +10 -0
  648. package/dist/soy-JFzJcdvc.js.map +1 -0
  649. package/dist/sparql-DFkbfk9m.js +10 -0
  650. package/dist/sparql-DFkbfk9m.js.map +1 -0
  651. package/dist/splunk-D_3lOa0g.js +8 -0
  652. package/dist/splunk-D_3lOa0g.js.map +1 -0
  653. package/dist/sql-BUQKMpen.js +8 -0
  654. package/dist/sql-BUQKMpen.js.map +1 -0
  655. package/dist/src/code/code-highlighted.d.ts +32 -0
  656. package/dist/src/code/code-highlighted.d.ts.map +1 -0
  657. package/dist/src/code/context.d.ts +16 -0
  658. package/dist/src/code/context.d.ts.map +1 -0
  659. package/dist/src/code/index.d.ts +31 -0
  660. package/dist/src/code/index.d.ts.map +1 -0
  661. package/dist/src/code/provider.d.ts +7 -0
  662. package/dist/src/code/provider.d.ts.map +1 -0
  663. package/dist/src/code/server.d.ts +96 -0
  664. package/dist/src/code/server.d.ts.map +1 -0
  665. package/dist/src/code/types.d.ts +89 -0
  666. package/dist/src/code/types.d.ts.map +1 -0
  667. package/dist/src/code/use-shiki-highlighter.d.ts +36 -0
  668. package/dist/src/code/use-shiki-highlighter.d.ts.map +1 -0
  669. package/dist/src/command-line/commands/add.d.ts.map +1 -1
  670. package/dist/src/components/badge/badge.d.ts +4 -0
  671. package/dist/src/components/badge/badge.d.ts.map +1 -1
  672. package/dist/src/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  673. package/dist/src/components/chart/Color.d.ts +96 -0
  674. package/dist/src/components/chart/Color.d.ts.map +1 -0
  675. package/dist/src/components/chart/EChart.d.ts +130 -0
  676. package/dist/src/components/chart/EChart.d.ts.map +1 -0
  677. package/dist/src/components/chart/Legend.d.ts +42 -0
  678. package/dist/src/components/chart/Legend.d.ts.map +1 -0
  679. package/dist/src/components/chart/TimeseriesChart.d.ts +94 -0
  680. package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -0
  681. package/dist/src/components/chart/index.d.ts +5 -0
  682. package/dist/src/components/chart/index.d.ts.map +1 -0
  683. package/dist/src/components/code/code.d.ts +19 -0
  684. package/dist/src/components/code/code.d.ts.map +1 -1
  685. package/dist/src/components/combobox/combobox.d.ts +33 -2
  686. package/dist/src/components/combobox/combobox.d.ts.map +1 -1
  687. package/dist/src/components/dialog/dialog.d.ts +41 -2
  688. package/dist/src/components/dialog/dialog.d.ts.map +1 -1
  689. package/dist/src/components/flow/diagram.d.ts +8 -0
  690. package/dist/src/components/flow/diagram.d.ts.map +1 -1
  691. package/dist/src/components/flow/use-children.d.ts +8 -1
  692. package/dist/src/components/flow/use-children.d.ts.map +1 -1
  693. package/dist/src/components/pagination/pagination.d.ts.map +1 -1
  694. package/dist/src/components/select/select.d.ts.map +1 -1
  695. package/dist/src/components/table/table.d.ts +3 -1
  696. package/dist/src/components/table/table.d.ts.map +1 -1
  697. package/dist/src/index.d.ts +1 -0
  698. package/dist/src/index.d.ts.map +1 -1
  699. package/dist/ssh-config-DNaBVjVu.js +8 -0
  700. package/dist/ssh-config-DNaBVjVu.js.map +1 -0
  701. package/dist/stata-DLB0gsgJ.js +10 -0
  702. package/dist/stata-DLB0gsgJ.js.map +1 -0
  703. package/dist/styles/kumo-binding.css +12 -0
  704. package/dist/styles/kumo-standalone.css +1 -1
  705. package/dist/styles/kumo.css +67 -0
  706. package/dist/styles/theme-kumo.css +11 -1
  707. package/dist/stylus-D51fN9sH.js +8 -0
  708. package/dist/stylus-D51fN9sH.js.map +1 -0
  709. package/dist/surrealql-sFzY-ODM.js +10 -0
  710. package/dist/surrealql-sFzY-ODM.js.map +1 -0
  711. package/dist/svelte-CvDgWedh.js +16 -0
  712. package/dist/svelte-CvDgWedh.js.map +1 -0
  713. package/dist/swift-DwwnjRI-.js +8 -0
  714. package/dist/swift-DwwnjRI-.js.map +1 -0
  715. package/dist/{switch-DrbaX2iC.js → switch-BxnAwAse.js} +3 -3
  716. package/dist/{switch-DrbaX2iC.js.map → switch-BxnAwAse.js.map} +1 -1
  717. package/dist/synthwave-84-H0OiUA6S.js +6 -0
  718. package/dist/synthwave-84-H0OiUA6S.js.map +1 -0
  719. package/dist/system-verilog-Crpmwi64.js +8 -0
  720. package/dist/system-verilog-Crpmwi64.js.map +1 -0
  721. package/dist/systemd-DpPksTVO.js +8 -0
  722. package/dist/systemd-DpPksTVO.js.map +1 -0
  723. package/dist/{table-CH9KC36S.js → table-CdcsAm5X.js} +39 -33
  724. package/dist/table-CdcsAm5X.js.map +1 -0
  725. package/dist/{tabs-B-Fxc6Zo.js → tabs-Cf12PXHz.js} +6 -6
  726. package/dist/tabs-Cf12PXHz.js.map +1 -0
  727. package/dist/talonscript-C0B9tdh0.js +8 -0
  728. package/dist/talonscript-C0B9tdh0.js.map +1 -0
  729. package/dist/tasl-De-6_1ux.js +8 -0
  730. package/dist/tasl-De-6_1ux.js.map +1 -0
  731. package/dist/tcl-tdOXVFhT.js +8 -0
  732. package/dist/tcl-tdOXVFhT.js.map +1 -0
  733. package/dist/templ-D3k0ETqq.js +14 -0
  734. package/dist/templ-D3k0ETqq.js.map +1 -0
  735. package/dist/terraform-C65cvXJK.js +8 -0
  736. package/dist/terraform-C65cvXJK.js.map +1 -0
  737. package/dist/tex-4pYKQzZ9.js +10 -0
  738. package/dist/tex-4pYKQzZ9.js.map +1 -0
  739. package/dist/{toast-DUYp3EtH.js → toast-BzvG5cpW.js} +7 -7
  740. package/dist/{toast-DUYp3EtH.js.map → toast-BzvG5cpW.js.map} +1 -1
  741. package/dist/tokyo-night-BcIcd5FP.js +6 -0
  742. package/dist/tokyo-night-BcIcd5FP.js.map +1 -0
  743. package/dist/toml-BTLaxjFB.js +8 -0
  744. package/dist/toml-BTLaxjFB.js.map +1 -0
  745. package/dist/{tooltip-D-KwZQDV.js → tooltip-2KqOpTj0.js} +2 -2
  746. package/dist/{tooltip-D-KwZQDV.js.map → tooltip-2KqOpTj0.js.map} +1 -1
  747. package/dist/ts-tags-DeeA5bAv.js +43 -0
  748. package/dist/ts-tags-DeeA5bAv.js.map +1 -0
  749. package/dist/tsv-BSiNlNds.js +8 -0
  750. package/dist/tsv-BSiNlNds.js.map +1 -0
  751. package/dist/tsx-1QZ5GNk-.js +8 -0
  752. package/dist/tsx-1QZ5GNk-.js.map +1 -0
  753. package/dist/turtle-B1Pzn5av.js +8 -0
  754. package/dist/turtle-B1Pzn5av.js.map +1 -0
  755. package/dist/twig-C2HueQmu.js +20 -0
  756. package/dist/twig-C2HueQmu.js.map +1 -0
  757. package/dist/typescript-CLMZXfG9.js +8 -0
  758. package/dist/typescript-CLMZXfG9.js.map +1 -0
  759. package/dist/typespec-C5gqdlO4.js +8 -0
  760. package/dist/typespec-C5gqdlO4.js.map +1 -0
  761. package/dist/typst-pX4dU_Sd.js +8 -0
  762. package/dist/typst-pX4dU_Sd.js.map +1 -0
  763. package/dist/v-C_UlMRpP.js +8 -0
  764. package/dist/v-C_UlMRpP.js.map +1 -0
  765. package/dist/vala-B0RfnRiT.js +8 -0
  766. package/dist/vala-B0RfnRiT.js.map +1 -0
  767. package/dist/vb-DYbmUkLw.js +8 -0
  768. package/dist/vb-DYbmUkLw.js.map +1 -0
  769. package/dist/{vendor-base-ui-Bsg5ebHI.js → vendor-base-ui-DvXlzG7n.js} +260 -259
  770. package/dist/{vendor-base-ui-Bsg5ebHI.js.map → vendor-base-ui-DvXlzG7n.js.map} +1 -1
  771. package/dist/verilog-BUqLwf8h.js +8 -0
  772. package/dist/verilog-BUqLwf8h.js.map +1 -0
  773. package/dist/vesper-BW8Q9P3p.js +6 -0
  774. package/dist/vesper-BW8Q9P3p.js.map +1 -0
  775. package/dist/vhdl-e6zXgkQJ.js +8 -0
  776. package/dist/vhdl-e6zXgkQJ.js.map +1 -0
  777. package/dist/viml-Bw7DMabC.js +8 -0
  778. package/dist/viml-Bw7DMabC.js.map +1 -0
  779. package/dist/vitesse-black-BBGvp4RB.js +6 -0
  780. package/dist/vitesse-black-BBGvp4RB.js.map +1 -0
  781. package/dist/vitesse-dark-qcbI9VBy.js +6 -0
  782. package/dist/vitesse-dark-qcbI9VBy.js.map +1 -0
  783. package/dist/vitesse-light-BL2wQDaR.js +6 -0
  784. package/dist/vitesse-light-BL2wQDaR.js.map +1 -0
  785. package/dist/vue-DKeMdoTK.js +33 -0
  786. package/dist/vue-DKeMdoTK.js.map +1 -0
  787. package/dist/vue-html-CEfeAKp2.js +10 -0
  788. package/dist/vue-html-CEfeAKp2.js.map +1 -0
  789. package/dist/vue-vine-CjuPBhXu.js +20 -0
  790. package/dist/vue-vine-CjuPBhXu.js.map +1 -0
  791. package/dist/vyper-Dc9KcbZ_.js +8 -0
  792. package/dist/vyper-Dc9KcbZ_.js.map +1 -0
  793. package/dist/wasm-Bae8j78o.js +8 -0
  794. package/dist/wasm-Bae8j78o.js.map +1 -0
  795. package/dist/wasm-D5B682Xt.js +9 -0
  796. package/dist/wasm-D5B682Xt.js.map +1 -0
  797. package/dist/wenyan-j7Mu9-Zf.js +8 -0
  798. package/dist/wenyan-j7Mu9-Zf.js.map +1 -0
  799. package/dist/wgsl-DEgz941F.js +8 -0
  800. package/dist/wgsl-DEgz941F.js.map +1 -0
  801. package/dist/wikitext-CFdiH6zG.js +8 -0
  802. package/dist/wikitext-CFdiH6zG.js.map +1 -0
  803. package/dist/wit-CQDxIROw.js +8 -0
  804. package/dist/wit-CQDxIROw.js.map +1 -0
  805. package/dist/wolfram-BkETUL8d.js +8 -0
  806. package/dist/wolfram-BkETUL8d.js.map +1 -0
  807. package/dist/xml-CKSarKBc.js +10 -0
  808. package/dist/xml-CKSarKBc.js.map +1 -0
  809. package/dist/xsl-oImqe_65.js +10 -0
  810. package/dist/xsl-oImqe_65.js.map +1 -0
  811. package/dist/yaml-CqFcuW2H.js +8 -0
  812. package/dist/yaml-CqFcuW2H.js.map +1 -0
  813. package/dist/zenscript-DfbVeZ74.js +8 -0
  814. package/dist/zenscript-DfbVeZ74.js.map +1 -0
  815. package/dist/zig--LeFnMpj.js +8 -0
  816. package/dist/zig--LeFnMpj.js.map +1 -0
  817. package/package.json +33 -10
  818. package/scripts/css-build.ts +5 -1
  819. package/scripts/theme-generator/config.ts +19 -1
  820. package/dist/badge-Dc99vsfo.js.map +0 -1
  821. package/dist/breadcrumbs-DyKi7BcP.js +0 -132
  822. package/dist/breadcrumbs-DyKi7BcP.js.map +0 -1
  823. package/dist/checkbox-CfFoTNFI.js.map +0 -1
  824. package/dist/clipboard-text-1d0rHIhb.js.map +0 -1
  825. package/dist/combobox-vnvi22pn.js +0 -250
  826. package/dist/combobox-vnvi22pn.js.map +0 -1
  827. package/dist/command-palette-B80cqB7K.js.map +0 -1
  828. package/dist/dialog-C4BIM-74.js +0 -97
  829. package/dist/dialog-C4BIM-74.js.map +0 -1
  830. package/dist/input-group-BbaVpJnA.js.map +0 -1
  831. package/dist/menubar-Chchzst0.js.map +0 -1
  832. package/dist/pagination-DFHoZwPJ.js +0 -208
  833. package/dist/pagination-DFHoZwPJ.js.map +0 -1
  834. package/dist/schemas-CdpAeJKO.js.map +0 -1
  835. package/dist/select-DtcT1zGm.js +0 -122
  836. package/dist/select-DtcT1zGm.js.map +0 -1
  837. package/dist/table-CH9KC36S.js.map +0 -1
  838. package/dist/tabs-B-Fxc6Zo.js.map +0 -1
  839. /package/dist/{src/blocks → blocks-source}/delete-resource/delete-resource.tsx +0 -0
  840. /package/dist/{src/blocks → blocks-source}/page-header/page-header.tsx +0 -0
  841. /package/dist/{src/blocks → blocks-source}/resource-list/resource-list.test.tsx +0 -0
  842. /package/dist/{src/blocks → blocks-source}/resource-list/resource-list.tsx +0 -0
@@ -0,0 +1,2621 @@
1
+ "use client";
2
+ var wr = class {
3
+ regexps;
4
+ constructor(e, r = {}) {
5
+ this.patterns = e, this.options = r;
6
+ const { forgiving: t = !1, cache: n, regexConstructor: a } = r;
7
+ if (!a) throw new Error("Option `regexConstructor` is not provided");
8
+ this.regexps = e.map((s) => {
9
+ if (typeof s != "string") return s;
10
+ const o = n?.get(s);
11
+ if (o) {
12
+ if (o instanceof RegExp) return o;
13
+ if (t) return null;
14
+ throw o;
15
+ }
16
+ try {
17
+ const i = a(s);
18
+ return n?.set(s, i), i;
19
+ } catch (i) {
20
+ if (n?.set(s, i), t) return null;
21
+ throw i;
22
+ }
23
+ });
24
+ }
25
+ findNextMatchSync(e, r, t) {
26
+ const n = typeof e == "string" ? e : e.content, a = [];
27
+ function s(o, i, u = 0) {
28
+ return {
29
+ index: o,
30
+ captureIndices: i.indices.map((c) => c == null ? {
31
+ start: 4294967295,
32
+ end: 4294967295,
33
+ length: 0
34
+ } : {
35
+ start: c[0] + u,
36
+ end: c[1] + u,
37
+ length: c[1] - c[0]
38
+ })
39
+ };
40
+ }
41
+ for (let o = 0; o < this.regexps.length; o++) {
42
+ const i = this.regexps[o];
43
+ if (i)
44
+ try {
45
+ i.lastIndex = r;
46
+ const u = i.exec(n);
47
+ if (!u) continue;
48
+ if (u.index === r) return s(o, u, 0);
49
+ a.push([
50
+ o,
51
+ u,
52
+ 0
53
+ ]);
54
+ } catch (u) {
55
+ if (this.options.forgiving) continue;
56
+ throw u;
57
+ }
58
+ }
59
+ if (a.length) {
60
+ const o = Math.min(...a.map((i) => i[1].index));
61
+ for (const [i, u, c] of a) if (u.index === o) return s(i, u, c);
62
+ }
63
+ return null;
64
+ }
65
+ };
66
+ function H(e) {
67
+ if ([...e].length !== 1) throw new Error(`Expected "${e}" to be a single code point`);
68
+ return e.codePointAt(0);
69
+ }
70
+ function mr(e, r, t) {
71
+ return e.has(r) || e.set(r, t), e.get(r);
72
+ }
73
+ const Ce = /* @__PURE__ */ new Set(["alnum", "alpha", "ascii", "blank", "cntrl", "digit", "graph", "lower", "print", "punct", "space", "upper", "word", "xdigit"]), x = String.raw;
74
+ function j(e, r) {
75
+ if (e == null) throw new Error(r ?? "Value expected");
76
+ return e;
77
+ }
78
+ const We = x`\[\^?`, He = `c.? | C(?:-.?)?|${x`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${x`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${x`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${x`o\{[^\}]*\}?`}|${x`\d{1,3}`}`, be = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/, K = new RegExp(x`
79
+ \\ (?:
80
+ ${He}
81
+ | [gk]<[^>]*>?
82
+ | [gk]'[^']*'?
83
+ | .
84
+ )
85
+ | \( (?:
86
+ \? (?:
87
+ [:=!>({]
88
+ | <[=!]
89
+ | <[^>]*>
90
+ | '[^']*'
91
+ | ~\|?
92
+ | #(?:[^)\\]|\\.?)*
93
+ | [^:)]*[:)]
94
+ )?
95
+ | \*[^\)]*\)?
96
+ )?
97
+ | (?:${be.source})+
98
+ | ${We}
99
+ | .
100
+ `.replace(/\s+/g, ""), "gsu"), oe = new RegExp(x`
101
+ \\ (?:
102
+ ${He}
103
+ | .
104
+ )
105
+ | \[:(?:\^?\p{Alpha}+|\^):\]
106
+ | ${We}
107
+ | &&
108
+ | .
109
+ `.replace(/\s+/g, ""), "gsu");
110
+ function yr(e, r = {}) {
111
+ const t = { flags: "", ...r, rules: { captureGroup: !1, singleline: !1, ...r.rules } };
112
+ if (typeof e != "string") throw new Error("String expected as pattern");
113
+ const n = Ur(t.flags), a = [n.extended], s = { captureGroup: t.rules.captureGroup, getCurrentModX() {
114
+ return a.at(-1);
115
+ }, numOpenGroups: 0, popModX() {
116
+ a.pop();
117
+ }, pushModX(l) {
118
+ a.push(l);
119
+ }, replaceCurrentModX(l) {
120
+ a[a.length - 1] = l;
121
+ }, singleline: t.rules.singleline };
122
+ let o = [], i;
123
+ for (K.lastIndex = 0; i = K.exec(e); ) {
124
+ const l = Cr(s, e, i[0], K.lastIndex);
125
+ l.tokens ? o.push(...l.tokens) : l.token && o.push(l.token), l.lastIndex !== void 0 && (K.lastIndex = l.lastIndex);
126
+ }
127
+ const u = [];
128
+ let c = 0;
129
+ o.filter((l) => l.type === "GroupOpen").forEach((l) => {
130
+ l.kind === "capturing" ? l.number = ++c : l.raw === "(" && u.push(l);
131
+ }), c || u.forEach((l, f) => {
132
+ l.kind = "capturing", l.number = f + 1;
133
+ });
134
+ const p = c || u.length;
135
+ return { tokens: o.map((l) => l.type === "EscapedNumber" ? Dr(l, p) : l).flat(), flags: n };
136
+ }
137
+ function Cr(e, r, t, n) {
138
+ const [a, s] = t;
139
+ if (t === "[" || t === "[^") {
140
+ const o = br(r, t, n);
141
+ return { tokens: o.tokens, lastIndex: o.lastIndex };
142
+ }
143
+ if (a === "\\") {
144
+ if ("AbBGyYzZ".includes(s)) return { token: Ae(t, t) };
145
+ if (/^\\g[<']/.test(t)) {
146
+ if (!/^\\g(?:<[^>]+>|'[^']+')$/.test(t)) throw new Error(`Invalid group name "${t}"`);
147
+ return { token: Mr(t) };
148
+ }
149
+ if (/^\\k[<']/.test(t)) {
150
+ if (!/^\\k(?:<[^>]+>|'[^']+')$/.test(t)) throw new Error(`Invalid group name "${t}"`);
151
+ return { token: Xe(t) };
152
+ }
153
+ if (s === "K") return { token: Ze("keep", t) };
154
+ if (s === "N" || s === "R") return { token: U("newline", t, { negate: s === "N" }) };
155
+ if (s === "O") return { token: U("any", t) };
156
+ if (s === "X") return { token: U("text_segment", t) };
157
+ const o = je(t, { inCharClass: !1 });
158
+ return Array.isArray(o) ? { tokens: o } : { token: o };
159
+ }
160
+ if (a === "(") {
161
+ if (s === "*") return { token: Gr(t) };
162
+ if (t === "(?{") throw new Error(`Unsupported callout "${t}"`);
163
+ if (t.startsWith("(?#")) {
164
+ if (r[n] !== ")") throw new Error('Unclosed comment group "(?#"');
165
+ return { lastIndex: n + 1 };
166
+ }
167
+ if (/^\(\?[-imx]+[:)]$/.test(t)) return { token: Fr(t, e) };
168
+ if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, t === "(" && !e.captureGroup || t === "(?:") return { token: z("group", t) };
169
+ if (t === "(?>") return { token: z("atomic", t) };
170
+ if (t === "(?=" || t === "(?!" || t === "(?<=" || t === "(?<!") return { token: z(t[2] === "<" ? "lookbehind" : "lookahead", t, { negate: t.endsWith("!") }) };
171
+ if (t === "(" && e.captureGroup || t.startsWith("(?<") && t.endsWith(">") || t.startsWith("(?'") && t.endsWith("'")) return { token: z("capturing", t, { ...t !== "(" && { name: t.slice(3, -1) } }) };
172
+ if (t.startsWith("(?~")) {
173
+ if (t === "(?~|") throw new Error(`Unsupported absence function kind "${t}"`);
174
+ return { token: z("absence_repeater", t) };
175
+ }
176
+ throw t === "(?(" ? new Error(`Unsupported conditional "${t}"`) : new Error(`Invalid or unsupported group option "${t}"`);
177
+ }
178
+ if (t === ")") {
179
+ if (e.popModX(), e.numOpenGroups--, e.numOpenGroups < 0) throw new Error('Unmatched ")"');
180
+ return { token: Sr(t) };
181
+ }
182
+ if (e.getCurrentModX()) {
183
+ if (t === "#") {
184
+ const o = r.indexOf(`
185
+ `, n);
186
+ return { lastIndex: o === -1 ? r.length : o };
187
+ }
188
+ if (/^\s$/.test(t)) {
189
+ const o = /\s+/y;
190
+ return o.lastIndex = n, { lastIndex: o.exec(r) ? o.lastIndex : n };
191
+ }
192
+ }
193
+ if (t === ".") return { token: U("dot", t) };
194
+ if (t === "^" || t === "$") {
195
+ const o = e.singleline ? { "^": x`\A`, $: x`\Z` }[t] : t;
196
+ return { token: Ae(o, t) };
197
+ }
198
+ return t === "|" ? { token: kr(t) } : be.test(t) ? { tokens: Br(t) } : { token: N(H(t), t) };
199
+ }
200
+ function br(e, r, t) {
201
+ const n = [Ie(r[1] === "^", r)];
202
+ let a = 1, s;
203
+ for (oe.lastIndex = t; s = oe.exec(e); ) {
204
+ const o = s[0];
205
+ if (o[0] === "[" && o[1] !== ":") a++, n.push(Ie(o[1] === "^", o));
206
+ else if (o === "]") {
207
+ if (n.at(-1).type === "CharacterClassOpen") n.push(N(93, o));
208
+ else if (a--, n.push($r(o)), !a) break;
209
+ } else {
210
+ const i = xr(o);
211
+ Array.isArray(i) ? n.push(...i) : n.push(i);
212
+ }
213
+ }
214
+ return { tokens: n, lastIndex: oe.lastIndex || e.length };
215
+ }
216
+ function xr(e) {
217
+ if (e[0] === "\\") return je(e, { inCharClass: !0 });
218
+ if (e[0] === "[") {
219
+ const r = /\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);
220
+ if (!r || !Ce.has(r.groups.name)) throw new Error(`Invalid POSIX class "${e}"`);
221
+ return U("posix", e, { value: r.groups.name, negate: !!r.groups.negate });
222
+ }
223
+ return e === "-" ? Er(e) : e === "&&" ? Ar(e) : N(H(e), e);
224
+ }
225
+ function je(e, { inCharClass: r }) {
226
+ const t = e[1];
227
+ if (t === "c" || t === "C") return Lr(e);
228
+ if ("dDhHsSwW".includes(t)) return Pr(e);
229
+ if (e.startsWith(x`\o{`)) throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
230
+ if (/^\\[pP]\{/.test(e)) {
231
+ if (e.length === 3) throw new Error(`Incomplete or invalid Unicode property "${e}"`);
232
+ return Rr(e);
233
+ }
234
+ if (new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}", "u").test(e)) try {
235
+ const n = e.split(/\\x/).slice(1).map((o) => parseInt(o, 16)), a = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }).decode(new Uint8Array(n)), s = new TextEncoder();
236
+ return [...a].map((o) => {
237
+ const i = [...s.encode(o)].map((u) => `\\x${u.toString(16)}`).join("");
238
+ return N(H(o), i);
239
+ });
240
+ } catch {
241
+ throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`);
242
+ }
243
+ if (t === "u" || t === "x") return N(Or(e), e);
244
+ if (Se.has(t)) return N(Se.get(t), e);
245
+ if (/\d/.test(t)) return Ir(r, e);
246
+ if (e === "\\") throw new Error(x`Incomplete escape "\"`);
247
+ if (t === "M") throw new Error(`Unsupported meta "${e}"`);
248
+ if ([...e].length === 2) return N(e.codePointAt(1), e);
249
+ throw new Error(`Unexpected escape "${e}"`);
250
+ }
251
+ function kr(e) {
252
+ return { type: "Alternator", raw: e };
253
+ }
254
+ function Ae(e, r) {
255
+ return { type: "Assertion", kind: e, raw: r };
256
+ }
257
+ function Xe(e) {
258
+ return { type: "Backreference", raw: e };
259
+ }
260
+ function N(e, r) {
261
+ return { type: "Character", value: e, raw: r };
262
+ }
263
+ function $r(e) {
264
+ return { type: "CharacterClassClose", raw: e };
265
+ }
266
+ function Er(e) {
267
+ return { type: "CharacterClassHyphen", raw: e };
268
+ }
269
+ function Ar(e) {
270
+ return { type: "CharacterClassIntersector", raw: e };
271
+ }
272
+ function Ie(e, r) {
273
+ return { type: "CharacterClassOpen", negate: e, raw: r };
274
+ }
275
+ function U(e, r, t = {}) {
276
+ return { type: "CharacterSet", kind: e, ...t, raw: r };
277
+ }
278
+ function Ze(e, r, t = {}) {
279
+ return e === "keep" ? { type: "Directive", kind: e, raw: r } : { type: "Directive", kind: e, flags: j(t.flags), raw: r };
280
+ }
281
+ function Ir(e, r) {
282
+ return { type: "EscapedNumber", inCharClass: e, raw: r };
283
+ }
284
+ function Sr(e) {
285
+ return { type: "GroupClose", raw: e };
286
+ }
287
+ function z(e, r, t = {}) {
288
+ return { type: "GroupOpen", kind: e, ...t, raw: r };
289
+ }
290
+ function vr(e, r, t, n) {
291
+ return { type: "NamedCallout", kind: e, tag: r, arguments: t, raw: n };
292
+ }
293
+ function _r(e, r, t, n) {
294
+ return { type: "Quantifier", kind: e, min: r, max: t, raw: n };
295
+ }
296
+ function Mr(e) {
297
+ return { type: "Subroutine", raw: e };
298
+ }
299
+ const Nr = /* @__PURE__ */ new Set(["COUNT", "CMP", "ERROR", "FAIL", "MAX", "MISMATCH", "SKIP", "TOTAL_COUNT"]), Se = /* @__PURE__ */ new Map([["a", 7], ["b", 8], ["e", 27], ["f", 12], ["n", 10], ["r", 13], ["t", 9], ["v", 11]]);
300
+ function Lr(e) {
301
+ const r = e[1] === "c" ? e[2] : e[3];
302
+ if (!r || !/[A-Za-z]/.test(r)) throw new Error(`Unsupported control character "${e}"`);
303
+ return N(H(r.toUpperCase()) - 64, e);
304
+ }
305
+ function Fr(e, r) {
306
+ let { on: t, off: n } = /^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;
307
+ n ??= "";
308
+ const a = (r.getCurrentModX() || t.includes("x")) && !n.includes("x"), s = _e(t), o = _e(n), i = {};
309
+ if (s && (i.enable = s), o && (i.disable = o), e.endsWith(")")) return r.replaceCurrentModX(a), Ze("flags", e, { flags: i });
310
+ if (e.endsWith(":")) return r.pushModX(a), r.numOpenGroups++, z("group", e, { ...(s || o) && { flags: i } });
311
+ throw new Error(`Unexpected flag modifier "${e}"`);
312
+ }
313
+ function Gr(e) {
314
+ const r = /\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);
315
+ if (!r) throw new Error(`Incomplete or invalid named callout "${e}"`);
316
+ const { name: t, tag: n, args: a } = r.groups;
317
+ if (!t) throw new Error(`Invalid named callout "${e}"`);
318
+ if (n === "") throw new Error(`Named callout tag with empty value not allowed "${e}"`);
319
+ const s = a ? a.split(",").filter((p) => p !== "").map((p) => /^[+-]?\d+$/.test(p) ? +p : p) : [], [o, i, u] = s, c = Nr.has(t) ? t.toLowerCase() : "custom";
320
+ switch (c) {
321
+ case "fail":
322
+ case "mismatch":
323
+ case "skip":
324
+ if (s.length > 0) throw new Error(`Named callout arguments not allowed "${s}"`);
325
+ break;
326
+ case "error":
327
+ if (s.length > 1) throw new Error(`Named callout allows only one argument "${s}"`);
328
+ if (typeof o == "string") throw new Error(`Named callout argument must be a number "${o}"`);
329
+ break;
330
+ case "max":
331
+ if (!s.length || s.length > 2) throw new Error(`Named callout must have one or two arguments "${s}"`);
332
+ if (typeof o == "string" && !/^[A-Za-z_]\w*$/.test(o)) throw new Error(`Named callout argument one must be a tag or number "${o}"`);
333
+ if (s.length === 2 && (typeof i == "number" || !/^[<>X]$/.test(i))) throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${i}"`);
334
+ break;
335
+ case "count":
336
+ case "total_count":
337
+ if (s.length > 1) throw new Error(`Named callout allows only one argument "${s}"`);
338
+ if (s.length === 1 && (typeof o == "number" || !/^[<>X]$/.test(o))) throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);
339
+ break;
340
+ case "cmp":
341
+ if (s.length !== 3) throw new Error(`Named callout must have three arguments "${s}"`);
342
+ if (typeof o == "string" && !/^[A-Za-z_]\w*$/.test(o)) throw new Error(`Named callout argument one must be a tag or number "${o}"`);
343
+ if (typeof i == "number" || !/^(?:[<>!=]=|[<>])$/.test(i)) throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${i}"`);
344
+ if (typeof u == "string" && !/^[A-Za-z_]\w*$/.test(u)) throw new Error(`Named callout argument three must be a tag or number "${u}"`);
345
+ break;
346
+ case "custom":
347
+ throw new Error(`Undefined callout name "${t}"`);
348
+ default:
349
+ throw new Error(`Unexpected named callout kind "${c}"`);
350
+ }
351
+ return vr(c, n ?? null, a?.split(",") ?? null, e);
352
+ }
353
+ function ve(e) {
354
+ let r = null, t, n;
355
+ if (e[0] === "{") {
356
+ const { minStr: a, maxStr: s } = /^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups, o = 1e5;
357
+ if (+a > o || s && +s > o) throw new Error("Quantifier value unsupported in Oniguruma");
358
+ if (t = +a, n = s === void 0 ? +a : s === "" ? 1 / 0 : +s, t > n && (r = "possessive", [t, n] = [n, t]), e.endsWith("?")) {
359
+ if (r === "possessive") throw new Error('Unsupported possessive interval quantifier chain with "?"');
360
+ r = "lazy";
361
+ } else r || (r = "greedy");
362
+ } else t = e[0] === "+" ? 1 : 0, n = e[0] === "?" ? 1 : 1 / 0, r = e[1] === "+" ? "possessive" : e[1] === "?" ? "lazy" : "greedy";
363
+ return _r(r, t, n, e);
364
+ }
365
+ function Pr(e) {
366
+ const r = e[1].toLowerCase();
367
+ return U({ d: "digit", h: "hex", s: "space", w: "word" }[r], e, { negate: e[1] !== r });
368
+ }
369
+ function Rr(e) {
370
+ const { p: r, neg: t, value: n } = /^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;
371
+ return U("property", e, { value: n, negate: r === "P" && !t || r === "p" && !!t });
372
+ }
373
+ function _e(e) {
374
+ const r = {};
375
+ return e.includes("i") && (r.ignoreCase = !0), e.includes("m") && (r.dotAll = !0), e.includes("x") && (r.extended = !0), Object.keys(r).length ? r : null;
376
+ }
377
+ function Ur(e) {
378
+ const r = { ignoreCase: !1, dotAll: !1, extended: !1, digitIsAscii: !1, posixIsAscii: !1, spaceIsAscii: !1, wordIsAscii: !1, textSegmentMode: null };
379
+ for (let t = 0; t < e.length; t++) {
380
+ const n = e[t];
381
+ if (!"imxDPSWy".includes(n)) throw new Error(`Invalid flag "${n}"`);
382
+ if (n === "y") {
383
+ if (!/^y{[gw]}/.test(e.slice(t))) throw new Error('Invalid or unspecified flag "y" mode');
384
+ r.textSegmentMode = e[t + 2] === "g" ? "grapheme" : "word", t += 3;
385
+ continue;
386
+ }
387
+ r[{ i: "ignoreCase", m: "dotAll", x: "extended", D: "digitIsAscii", P: "posixIsAscii", S: "spaceIsAscii", W: "wordIsAscii" }[n]] = !0;
388
+ }
389
+ return r;
390
+ }
391
+ function Or(e) {
392
+ if (new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))", "u").test(e)) throw new Error(`Incomplete or invalid escape "${e}"`);
393
+ const r = e[2] === "{" ? new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)", "u").exec(e).groups.hex : e.slice(2);
394
+ return parseInt(r, 16);
395
+ }
396
+ function Dr(e, r) {
397
+ const { raw: t, inCharClass: n } = e, a = t.slice(1);
398
+ if (!n && (a !== "0" && a.length === 1 || a[0] !== "0" && +a <= r)) return [Xe(t)];
399
+ const s = [], o = a.match(/^[0-7]+|\d/g);
400
+ for (let i = 0; i < o.length; i++) {
401
+ const u = o[i];
402
+ let c;
403
+ if (i === 0 && u !== "8" && u !== "9") {
404
+ if (c = parseInt(u, 8), c > 127) throw new Error(x`Octal encoded byte above 177 unsupported "${t}"`);
405
+ } else c = H(u);
406
+ s.push(N(c, (i === 0 ? "\\" : "") + u));
407
+ }
408
+ return s;
409
+ }
410
+ function Br(e) {
411
+ const r = [], t = new RegExp(be, "gy");
412
+ let n;
413
+ for (; n = t.exec(e); ) {
414
+ const a = n[0];
415
+ if (a[0] === "{") {
416
+ const s = /^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);
417
+ if (s) {
418
+ const { min: o, max: i } = s.groups;
419
+ if (+o > +i && a.endsWith("?")) {
420
+ t.lastIndex--, r.push(ve(a.slice(0, -1)));
421
+ continue;
422
+ }
423
+ }
424
+ }
425
+ r.push(ve(a));
426
+ }
427
+ return r;
428
+ }
429
+ function Qe(e, r) {
430
+ if (!Array.isArray(e.body)) throw new Error("Expected node with body array");
431
+ if (e.body.length !== 1) return !1;
432
+ const t = e.body[0];
433
+ return !r || Object.keys(r).every((n) => r[n] === t[n]);
434
+ }
435
+ function Tr(e) {
436
+ return Vr.has(e.type);
437
+ }
438
+ const Vr = /* @__PURE__ */ new Set(["AbsenceFunction", "Backreference", "CapturingGroup", "Character", "CharacterClass", "CharacterSet", "Group", "Quantifier", "Subroutine"]);
439
+ function qe(e, r = {}) {
440
+ const t = { flags: "", normalizeUnknownPropertyNames: !1, skipBackrefValidation: !1, skipLookbehindValidation: !1, skipPropertyNameValidation: !1, unicodePropertyMap: null, ...r, rules: { captureGroup: !1, singleline: !1, ...r.rules } }, n = yr(e, { flags: t.flags, rules: { captureGroup: t.rules.captureGroup, singleline: t.rules.singleline } }), a = (f, g) => {
441
+ const d = n.tokens[s.nextIndex];
442
+ switch (s.parent = f, s.nextIndex++, d.type) {
443
+ case "Alternator":
444
+ return O();
445
+ case "Assertion":
446
+ return zr(d);
447
+ case "Backreference":
448
+ return Wr(d, s);
449
+ case "Character":
450
+ return ne(d.value, { useLastValid: !!g.isCheckingRangeEnd });
451
+ case "CharacterClassHyphen":
452
+ return Hr(d, s, g);
453
+ case "CharacterClassOpen":
454
+ return jr(d, s, g);
455
+ case "CharacterSet":
456
+ return Xr(d, s);
457
+ case "Directive":
458
+ return Yr(d.kind, { flags: d.flags });
459
+ case "GroupOpen":
460
+ return Zr(d, s, g);
461
+ case "NamedCallout":
462
+ return rt(d.kind, d.tag, d.arguments);
463
+ case "Quantifier":
464
+ return Qr(d, s);
465
+ case "Subroutine":
466
+ return qr(d, s);
467
+ default:
468
+ throw new Error(`Unexpected token type "${d.type}"`);
469
+ }
470
+ }, s = { capturingGroups: [], hasNumberedRef: !1, namedGroupsByName: /* @__PURE__ */ new Map(), nextIndex: 0, normalizeUnknownPropertyNames: t.normalizeUnknownPropertyNames, parent: null, skipBackrefValidation: t.skipBackrefValidation, skipLookbehindValidation: t.skipLookbehindValidation, skipPropertyNameValidation: t.skipPropertyNameValidation, subroutines: [], tokens: n.tokens, unicodePropertyMap: t.unicodePropertyMap, walk: a }, o = nt(et(n.flags));
471
+ let i = o.body[0];
472
+ for (; s.nextIndex < n.tokens.length; ) {
473
+ const f = a(i, {});
474
+ f.type === "Alternative" ? (o.body.push(f), i = f) : i.body.push(f);
475
+ }
476
+ const { capturingGroups: u, hasNumberedRef: c, namedGroupsByName: p, subroutines: l } = s;
477
+ if (c && p.size && !t.rules.captureGroup) throw new Error("Numbered backref/subroutine not allowed when using named capture");
478
+ for (const { ref: f } of l) if (typeof f == "number") {
479
+ if (f > u.length) throw new Error("Subroutine uses a group number that's not defined");
480
+ f && (u[f - 1].isSubroutined = !0);
481
+ } else if (p.has(f)) {
482
+ if (p.get(f).length > 1) throw new Error(x`Subroutine uses a duplicate group name "\g<${f}>"`);
483
+ p.get(f)[0].isSubroutined = !0;
484
+ } else throw new Error(x`Subroutine uses a group name that's not defined "\g<${f}>"`);
485
+ return o;
486
+ }
487
+ function zr({ kind: e }) {
488
+ return de(j({ "^": "line_start", $: "line_end", "\\A": "string_start", "\\b": "word_boundary", "\\B": "word_boundary", "\\G": "search_start", "\\y": "text_segment_boundary", "\\Y": "text_segment_boundary", "\\z": "string_end", "\\Z": "string_end_newline" }[e], `Unexpected assertion kind "${e}"`), { negate: e === x`\B` || e === x`\Y` });
489
+ }
490
+ function Wr({ raw: e }, r) {
491
+ const t = /^\\k[<']/.test(e), n = t ? e.slice(3, -1) : e.slice(1), a = (s, o = !1) => {
492
+ const i = r.capturingGroups.length;
493
+ let u = !1;
494
+ if (s > i) if (r.skipBackrefValidation) u = !0;
495
+ else throw new Error(`Not enough capturing groups defined to the left "${e}"`);
496
+ return r.hasNumberedRef = !0, ge(o ? i + 1 - s : s, { orphan: u });
497
+ };
498
+ if (t) {
499
+ const s = /^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);
500
+ if (s) return a(+s.groups.num, !!s.groups.sign);
501
+ if (/[-+]/.test(n)) throw new Error(`Invalid backref name "${e}"`);
502
+ if (!r.namedGroupsByName.has(n)) throw new Error(`Group name not defined to the left "${e}"`);
503
+ return ge(n);
504
+ }
505
+ return a(+n);
506
+ }
507
+ function Hr(e, r, t) {
508
+ const { tokens: n, walk: a } = r, s = r.parent, o = s.body.at(-1), i = n[r.nextIndex];
509
+ if (!t.isCheckingRangeEnd && o && o.type !== "CharacterClass" && o.type !== "CharacterClassRange" && i && i.type !== "CharacterClassOpen" && i.type !== "CharacterClassClose" && i.type !== "CharacterClassIntersector") {
510
+ const u = a(s, { ...t, isCheckingRangeEnd: !0 });
511
+ if (o.type === "Character" && u.type === "Character") return s.body.pop(), Kr(o, u);
512
+ throw new Error("Invalid character class range");
513
+ }
514
+ return ne(H("-"));
515
+ }
516
+ function jr({ negate: e }, r, t) {
517
+ const { tokens: n, walk: a } = r, s = n[r.nextIndex], o = [re()];
518
+ let i = Le(s);
519
+ for (; i.type !== "CharacterClassClose"; ) {
520
+ if (i.type === "CharacterClassIntersector") o.push(re()), r.nextIndex++;
521
+ else {
522
+ const c = o.at(-1);
523
+ c.body.push(a(c, t));
524
+ }
525
+ i = Le(n[r.nextIndex], s);
526
+ }
527
+ const u = re({ negate: e });
528
+ return o.length === 1 ? u.body = o[0].body : (u.kind = "intersection", u.body = o.map((c) => c.body.length === 1 ? c.body[0] : c)), r.nextIndex++, u;
529
+ }
530
+ function Xr({ kind: e, negate: r, value: t }, n) {
531
+ const { normalizeUnknownPropertyNames: a, skipPropertyNameValidation: s, unicodePropertyMap: o } = n;
532
+ if (e === "property") {
533
+ const i = se(t);
534
+ if (Ce.has(i) && !o?.has(i)) e = "posix", t = i;
535
+ else return W(t, { negate: r, normalizeUnknownPropertyNames: a, skipPropertyNameValidation: s, unicodePropertyMap: o });
536
+ }
537
+ return e === "posix" ? tt(t, { negate: r }) : he(e, { negate: r });
538
+ }
539
+ function Zr(e, r, t) {
540
+ const { tokens: n, capturingGroups: a, namedGroupsByName: s, skipLookbehindValidation: o, walk: i } = r, u = st(e), c = u.type === "AbsenceFunction", p = Ne(u), l = p && u.negate;
541
+ if (u.type === "CapturingGroup" && (a.push(u), u.name && mr(s, u.name, []).push(u)), c && t.isInAbsenceFunction) throw new Error("Nested absence function not supported by Oniguruma");
542
+ let f = Fe(n[r.nextIndex]);
543
+ for (; f.type !== "GroupClose"; ) {
544
+ if (f.type === "Alternator") u.body.push(O()), r.nextIndex++;
545
+ else {
546
+ const g = u.body.at(-1), d = i(g, { ...t, isInAbsenceFunction: t.isInAbsenceFunction || c, isInLookbehind: t.isInLookbehind || p, isInNegLookbehind: t.isInNegLookbehind || l });
547
+ if (g.body.push(d), (p || t.isInLookbehind) && !o) {
548
+ const w = "Lookbehind includes a pattern not allowed by Oniguruma";
549
+ if (l || t.isInNegLookbehind) {
550
+ if (Me(d) || d.type === "CapturingGroup") throw new Error(w);
551
+ } else if (Me(d) || Ne(d) && d.negate) throw new Error(w);
552
+ }
553
+ }
554
+ f = Fe(n[r.nextIndex]);
555
+ }
556
+ return r.nextIndex++, u;
557
+ }
558
+ function Qr({ kind: e, min: r, max: t }, n) {
559
+ const a = n.parent, s = a.body.at(-1);
560
+ if (!s || !Tr(s)) throw new Error("Quantifier requires a repeatable token");
561
+ const o = Ke(e, r, t, s);
562
+ return a.body.pop(), o;
563
+ }
564
+ function qr({ raw: e }, r) {
565
+ const { capturingGroups: t, subroutines: n } = r;
566
+ let a = e.slice(3, -1);
567
+ const s = /^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);
568
+ if (s) {
569
+ const i = +s.groups.num, u = t.length;
570
+ if (r.hasNumberedRef = !0, a = { "": i, "+": u + i, "-": u + 1 - i }[s.groups.sign], a < 1) throw new Error("Invalid subroutine number");
571
+ } else a === "0" && (a = 0);
572
+ const o = Ye(a);
573
+ return n.push(o), o;
574
+ }
575
+ function Jr(e, r) {
576
+ return { type: "AbsenceFunction", kind: e, body: q(r?.body) };
577
+ }
578
+ function O(e) {
579
+ return { type: "Alternative", body: er(e?.body) };
580
+ }
581
+ function de(e, r) {
582
+ const t = { type: "Assertion", kind: e };
583
+ return (e === "word_boundary" || e === "text_segment_boundary") && (t.negate = !!r?.negate), t;
584
+ }
585
+ function ge(e, r) {
586
+ const t = !!r?.orphan;
587
+ return { type: "Backreference", ref: e, ...t && { orphan: t } };
588
+ }
589
+ function Je(e, r) {
590
+ const t = { name: void 0, isSubroutined: !1, ...r };
591
+ if (t.name !== void 0 && !at(t.name)) throw new Error(`Group name "${t.name}" invalid in Oniguruma`);
592
+ return { type: "CapturingGroup", number: e, ...t.name && { name: t.name }, ...t.isSubroutined && { isSubroutined: t.isSubroutined }, body: q(r?.body) };
593
+ }
594
+ function ne(e, r) {
595
+ const t = { useLastValid: !1, ...r };
596
+ if (e > 1114111) {
597
+ const n = e.toString(16);
598
+ if (t.useLastValid) e = 1114111;
599
+ else throw e > 1310719 ? new Error(`Invalid code point out of range "\\x{${n}}"`) : new Error(`Invalid code point out of range in JS "\\x{${n}}"`);
600
+ }
601
+ return { type: "Character", value: e };
602
+ }
603
+ function re(e) {
604
+ const r = { kind: "union", negate: !1, ...e };
605
+ return { type: "CharacterClass", kind: r.kind, negate: r.negate, body: er(e?.body) };
606
+ }
607
+ function Kr(e, r) {
608
+ if (r.value < e.value) throw new Error("Character class range out of order");
609
+ return { type: "CharacterClassRange", min: e, max: r };
610
+ }
611
+ function he(e, r) {
612
+ const t = !!r?.negate, n = { type: "CharacterSet", kind: e };
613
+ return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (n.negate = t), (e === "text_segment" || e === "newline" && !t) && (n.variableLength = !0), n;
614
+ }
615
+ function Yr(e, r = {}) {
616
+ if (e === "keep") return { type: "Directive", kind: e };
617
+ if (e === "flags") return { type: "Directive", kind: e, flags: j(r.flags) };
618
+ throw new Error(`Unexpected directive kind "${e}"`);
619
+ }
620
+ function et(e) {
621
+ return { type: "Flags", ...e };
622
+ }
623
+ function v(e) {
624
+ const r = e?.atomic, t = e?.flags;
625
+ if (r && t) throw new Error("Atomic group cannot have flags");
626
+ return { type: "Group", ...r && { atomic: r }, ...t && { flags: t }, body: q(e?.body) };
627
+ }
628
+ function R(e) {
629
+ const r = { behind: !1, negate: !1, ...e };
630
+ return { type: "LookaroundAssertion", kind: r.behind ? "lookbehind" : "lookahead", negate: r.negate, body: q(e?.body) };
631
+ }
632
+ function rt(e, r, t) {
633
+ return { type: "NamedCallout", kind: e, tag: r, arguments: t };
634
+ }
635
+ function tt(e, r) {
636
+ const t = !!r?.negate;
637
+ if (!Ce.has(e)) throw new Error(`Invalid POSIX class "${e}"`);
638
+ return { type: "CharacterSet", kind: "posix", value: e, negate: t };
639
+ }
640
+ function Ke(e, r, t, n) {
641
+ if (r > t) throw new Error("Invalid reversed quantifier range");
642
+ return { type: "Quantifier", kind: e, min: r, max: t, body: n };
643
+ }
644
+ function nt(e, r) {
645
+ return { type: "Regex", body: q(r?.body), flags: e };
646
+ }
647
+ function Ye(e) {
648
+ return { type: "Subroutine", ref: e };
649
+ }
650
+ function W(e, r) {
651
+ const t = { negate: !1, normalizeUnknownPropertyNames: !1, skipPropertyNameValidation: !1, unicodePropertyMap: null, ...r };
652
+ let n = t.unicodePropertyMap?.get(se(e));
653
+ if (!n) {
654
+ if (t.normalizeUnknownPropertyNames) n = ot(e);
655
+ else if (t.unicodePropertyMap && !t.skipPropertyNameValidation) throw new Error(x`Invalid Unicode property "\p{${e}}"`);
656
+ }
657
+ return { type: "CharacterSet", kind: "property", value: n ?? e, negate: t.negate };
658
+ }
659
+ function st({ flags: e, kind: r, name: t, negate: n, number: a }) {
660
+ switch (r) {
661
+ case "absence_repeater":
662
+ return Jr("repeater");
663
+ case "atomic":
664
+ return v({ atomic: !0 });
665
+ case "capturing":
666
+ return Je(a, { name: t });
667
+ case "group":
668
+ return v({ flags: e });
669
+ case "lookahead":
670
+ case "lookbehind":
671
+ return R({ behind: r === "lookbehind", negate: n });
672
+ default:
673
+ throw new Error(`Unexpected group kind "${r}"`);
674
+ }
675
+ }
676
+ function q(e) {
677
+ if (e === void 0) e = [O()];
678
+ else if (!Array.isArray(e) || !e.length || !e.every((r) => r.type === "Alternative")) throw new Error("Invalid body; expected array of one or more Alternative nodes");
679
+ return e;
680
+ }
681
+ function er(e) {
682
+ if (e === void 0) e = [];
683
+ else if (!Array.isArray(e) || !e.every((r) => !!r.type)) throw new Error("Invalid body; expected array of nodes");
684
+ return e;
685
+ }
686
+ function Me(e) {
687
+ return e.type === "LookaroundAssertion" && e.kind === "lookahead";
688
+ }
689
+ function Ne(e) {
690
+ return e.type === "LookaroundAssertion" && e.kind === "lookbehind";
691
+ }
692
+ function at(e) {
693
+ return /^[\p{Alpha}\p{Pc}][^)]*$/u.test(e);
694
+ }
695
+ function ot(e) {
696
+ return e.trim().replace(/[- _]+/g, "_").replace(/[A-Z][a-z]+(?=[A-Z])/g, "$&_").replace(/[A-Za-z]+/g, (r) => r[0].toUpperCase() + r.slice(1).toLowerCase());
697
+ }
698
+ function se(e) {
699
+ return e.replace(/[- _]+/g, "").toLowerCase();
700
+ }
701
+ function Le(e, r) {
702
+ return j(e, `${r?.type === "Character" && r.value === 93 ? "Empty" : "Unclosed"} character class`);
703
+ }
704
+ function Fe(e) {
705
+ return j(e, "Unclosed group");
706
+ }
707
+ function Z(e, r, t = null) {
708
+ function n(s, o) {
709
+ for (let i = 0; i < s.length; i++) {
710
+ const u = a(s[i], o, i, s);
711
+ i = Math.max(-1, i + u);
712
+ }
713
+ }
714
+ function a(s, o = null, i = null, u = null) {
715
+ let c = 0, p = !1;
716
+ const l = { node: s, parent: o, key: i, container: u, root: e, remove() {
717
+ Y(u).splice(Math.max(0, T(i) + c), 1), c--, p = !0;
718
+ }, removeAllNextSiblings() {
719
+ return Y(u).splice(T(i) + 1);
720
+ }, removeAllPrevSiblings() {
721
+ const y = T(i) + c;
722
+ return c -= y, Y(u).splice(0, Math.max(0, y));
723
+ }, replaceWith(y, $ = {}) {
724
+ const E = !!$.traverse;
725
+ u ? u[Math.max(0, T(i) + c)] = y : j(o, "Can't replace root node")[i] = y, E && a(y, o, i, u), p = !0;
726
+ }, replaceWithMultiple(y, $ = {}) {
727
+ const E = !!$.traverse;
728
+ if (Y(u).splice(Math.max(0, T(i) + c), 1, ...y), c += y.length - 1, E) {
729
+ let k = 0;
730
+ for (let A = 0; A < y.length; A++) k += a(y[A], o, T(i) + A + k, u);
731
+ }
732
+ p = !0;
733
+ }, skip() {
734
+ p = !0;
735
+ } }, { type: f } = s, g = r["*"], d = r[f], w = typeof g == "function" ? g : g?.enter, m = typeof d == "function" ? d : d?.enter;
736
+ if (w?.(l, t), m?.(l, t), !p) switch (f) {
737
+ case "AbsenceFunction":
738
+ case "CapturingGroup":
739
+ case "Group":
740
+ n(s.body, s);
741
+ break;
742
+ case "Alternative":
743
+ case "CharacterClass":
744
+ n(s.body, s);
745
+ break;
746
+ case "Assertion":
747
+ case "Backreference":
748
+ case "Character":
749
+ case "CharacterSet":
750
+ case "Directive":
751
+ case "Flags":
752
+ case "NamedCallout":
753
+ case "Subroutine":
754
+ break;
755
+ case "CharacterClassRange":
756
+ a(s.min, s, "min"), a(s.max, s, "max");
757
+ break;
758
+ case "LookaroundAssertion":
759
+ n(s.body, s);
760
+ break;
761
+ case "Quantifier":
762
+ a(s.body, s, "body");
763
+ break;
764
+ case "Regex":
765
+ n(s.body, s), a(s.flags, s, "flags");
766
+ break;
767
+ default:
768
+ throw new Error(`Unexpected node type "${f}"`);
769
+ }
770
+ return d?.exit?.(l, t), g?.exit?.(l, t), c;
771
+ }
772
+ return a(e), e;
773
+ }
774
+ function Y(e) {
775
+ if (!Array.isArray(e)) throw new Error("Container expected");
776
+ return e;
777
+ }
778
+ function T(e) {
779
+ if (typeof e != "number") throw new Error("Numeric key expected");
780
+ return e;
781
+ }
782
+ const it = String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;
783
+ function ut(e, r) {
784
+ for (let t = 0; t < e.length; t++)
785
+ e[t] >= r && e[t]++;
786
+ }
787
+ function ct(e, r, t, n) {
788
+ return e.slice(0, r) + n + e.slice(r + t.length);
789
+ }
790
+ const S = Object.freeze({
791
+ DEFAULT: "DEFAULT",
792
+ CHAR_CLASS: "CHAR_CLASS"
793
+ });
794
+ function xe(e, r, t, n) {
795
+ const a = new RegExp(String.raw`${r}|(?<$skip>\[\^?|\\?.)`, "gsu"), s = [!1];
796
+ let o = 0, i = "";
797
+ for (const u of e.matchAll(a)) {
798
+ const { 0: c, groups: { $skip: p } } = u;
799
+ if (!p && (!n || n === S.DEFAULT == !o)) {
800
+ t instanceof Function ? i += t(u, {
801
+ context: o ? S.CHAR_CLASS : S.DEFAULT,
802
+ negated: s[s.length - 1]
803
+ }) : i += t;
804
+ continue;
805
+ }
806
+ c[0] === "[" ? (o++, s.push(c[1] === "^")) : c === "]" && o && (o--, s.pop()), i += c;
807
+ }
808
+ return i;
809
+ }
810
+ function rr(e, r, t, n) {
811
+ xe(e, r, t, n);
812
+ }
813
+ function lt(e, r, t = 0, n) {
814
+ if (!new RegExp(r, "su").test(e))
815
+ return null;
816
+ const a = new RegExp(`${r}|(?<$skip>\\\\?.)`, "gsu");
817
+ a.lastIndex = t;
818
+ let s = 0, o;
819
+ for (; o = a.exec(e); ) {
820
+ const { 0: i, groups: { $skip: u } } = o;
821
+ if (!u && (!n || n === S.DEFAULT == !s))
822
+ return o;
823
+ i === "[" ? s++ : i === "]" && s && s--, a.lastIndex == o.index && a.lastIndex++;
824
+ }
825
+ return null;
826
+ }
827
+ function ee(e, r, t) {
828
+ return !!lt(e, r, 0, t);
829
+ }
830
+ function pt(e, r) {
831
+ const t = /\\?./gsu;
832
+ t.lastIndex = r;
833
+ let n = e.length, a = 0, s = 1, o;
834
+ for (; o = t.exec(e); ) {
835
+ const [i] = o;
836
+ if (i === "[")
837
+ a++;
838
+ else if (a)
839
+ i === "]" && a--;
840
+ else if (i === "(")
841
+ s++;
842
+ else if (i === ")" && (s--, !s)) {
843
+ n = o.index;
844
+ break;
845
+ }
846
+ }
847
+ return e.slice(r, n);
848
+ }
849
+ const Ge = new RegExp(String.raw`(?<noncapturingStart>${it})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`, "gsu");
850
+ function ft(e, r) {
851
+ const t = r?.hiddenCaptures ?? [];
852
+ let n = r?.captureTransfers ?? /* @__PURE__ */ new Map();
853
+ if (!/\(\?>/.test(e))
854
+ return {
855
+ pattern: e,
856
+ captureTransfers: n,
857
+ hiddenCaptures: t
858
+ };
859
+ const a = "(?>", s = "(?:(?=(", o = [0], i = [];
860
+ let u = 0, c = 0, p = NaN, l;
861
+ do {
862
+ l = !1;
863
+ let f = 0, g = 0, d = !1, w;
864
+ for (Ge.lastIndex = Number.isNaN(p) ? 0 : p + s.length; w = Ge.exec(e); ) {
865
+ const { 0: m, index: y, groups: { capturingStart: $, noncapturingStart: E } } = w;
866
+ if (m === "[")
867
+ f++;
868
+ else if (f)
869
+ m === "]" && f--;
870
+ else if (m === a && !d)
871
+ p = y, d = !0;
872
+ else if (d && E)
873
+ g++;
874
+ else if ($)
875
+ d ? g++ : (u++, o.push(u + c));
876
+ else if (m === ")" && d) {
877
+ if (!g) {
878
+ c++;
879
+ const k = u + c;
880
+ if (e = `${e.slice(0, p)}${s}${e.slice(p + a.length, y)}))<$$${k}>)${e.slice(y + 1)}`, l = !0, i.push(k), ut(t, k), n.size) {
881
+ const A = /* @__PURE__ */ new Map();
882
+ n.forEach((J, D) => {
883
+ A.set(
884
+ D >= k ? D + 1 : D,
885
+ J.map((B) => B >= k ? B + 1 : B)
886
+ );
887
+ }), n = A;
888
+ }
889
+ break;
890
+ }
891
+ g--;
892
+ }
893
+ }
894
+ } while (l);
895
+ return t.push(...i), e = xe(
896
+ e,
897
+ String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,
898
+ ({ 0: f, groups: { backrefNum: g, wrappedBackrefNum: d } }) => {
899
+ if (g) {
900
+ const w = +g;
901
+ if (w > o.length - 1)
902
+ throw new Error(`Backref "${f}" greater than number of captures`);
903
+ return `\\${o[w]}`;
904
+ }
905
+ return `\\${d}`;
906
+ },
907
+ S.DEFAULT
908
+ ), {
909
+ pattern: e,
910
+ captureTransfers: n,
911
+ hiddenCaptures: t
912
+ };
913
+ }
914
+ const tr = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, ie = new RegExp(String.raw`
915
+ \\(?: \d+
916
+ | c[A-Za-z]
917
+ | [gk]<[^>]+>
918
+ | [pPu]\{[^\}]+\}
919
+ | u[A-Fa-f\d]{4}
920
+ | x[A-Fa-f\d]{2}
921
+ )
922
+ | \((?: \? (?: [:=!>]
923
+ | <(?:[=!]|[^>]+>)
924
+ | [A-Za-z\-]+:
925
+ | \(DEFINE\)
926
+ ))?
927
+ | (?<qBase>${tr})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
928
+ | \\?.
929
+ `.replace(/\s+/g, ""), "gsu");
930
+ function dt(e) {
931
+ if (!new RegExp(`${tr}\\+`).test(e))
932
+ return {
933
+ pattern: e
934
+ };
935
+ const r = [];
936
+ let t = null, n = null, a = "", s = 0, o;
937
+ for (ie.lastIndex = 0; o = ie.exec(e); ) {
938
+ const { 0: i, index: u, groups: { qBase: c, qMod: p, invalidQ: l } } = o;
939
+ if (i === "[")
940
+ s || (n = u), s++;
941
+ else if (i === "]")
942
+ s ? s-- : n = null;
943
+ else if (!s)
944
+ if (p === "+" && a && !a.startsWith("(")) {
945
+ if (l)
946
+ throw new Error(`Invalid quantifier "${i}"`);
947
+ let f = -1;
948
+ if (/^\{\d+\}$/.test(c))
949
+ e = ct(e, u + c.length, p, "");
950
+ else {
951
+ if (a === ")" || a === "]") {
952
+ const g = a === ")" ? t : n;
953
+ if (g === null)
954
+ throw new Error(`Invalid unmatched "${a}"`);
955
+ e = `${e.slice(0, g)}(?>${e.slice(g, u)}${c})${e.slice(u + i.length)}`;
956
+ } else
957
+ e = `${e.slice(0, u - a.length)}(?>${a}${c})${e.slice(u + i.length)}`;
958
+ f += 4;
959
+ }
960
+ ie.lastIndex += f;
961
+ } else i[0] === "(" ? r.push(u) : i === ")" && (t = r.length ? r.pop() : null);
962
+ a = i;
963
+ }
964
+ return {
965
+ pattern: e
966
+ };
967
+ }
968
+ const I = String.raw, gt = I`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`, we = I`\(\?R=(?<rDepth>[^\)]+)\)|${gt}`, ae = I`\(\?<(?![=!])(?<captureName>[^>]+)>`, nr = I`${ae}|(?<unnamed>\()(?!\?)`, P = new RegExp(I`${ae}|${we}|\(\?|\\?.`, "gsu"), ue = "Cannot use multiple overlapping recursions";
969
+ function ht(e, r) {
970
+ const { hiddenCaptures: t, mode: n } = {
971
+ hiddenCaptures: [],
972
+ mode: "plugin",
973
+ ...r
974
+ };
975
+ let a = r?.captureTransfers ?? /* @__PURE__ */ new Map();
976
+ if (!new RegExp(we, "su").test(e))
977
+ return {
978
+ pattern: e,
979
+ captureTransfers: a,
980
+ hiddenCaptures: t
981
+ };
982
+ if (n === "plugin" && ee(e, I`\(\?\(DEFINE\)`, S.DEFAULT))
983
+ throw new Error("DEFINE groups cannot be used with recursion");
984
+ const s = [], o = ee(e, I`\\[1-9]`, S.DEFAULT), i = /* @__PURE__ */ new Map(), u = [];
985
+ let c = !1, p = 0, l = 0, f;
986
+ for (P.lastIndex = 0; f = P.exec(e); ) {
987
+ const { 0: g, groups: { captureName: d, rDepth: w, gRNameOrNum: m, gRDepth: y } } = f;
988
+ if (g === "[")
989
+ p++;
990
+ else if (p)
991
+ g === "]" && p--;
992
+ else if (w) {
993
+ if (Pe(w), c)
994
+ throw new Error(ue);
995
+ if (o)
996
+ throw new Error(
997
+ // When used in `external` mode by transpilers other than Regex+, backrefs might have
998
+ // gone through conversion from named to numbered, so avoid a misleading error
999
+ `${n === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`
1000
+ );
1001
+ const $ = e.slice(0, f.index), E = e.slice(P.lastIndex);
1002
+ if (ee(E, we, S.DEFAULT))
1003
+ throw new Error(ue);
1004
+ const k = +w - 1;
1005
+ e = Re(
1006
+ $,
1007
+ E,
1008
+ k,
1009
+ !1,
1010
+ t,
1011
+ s,
1012
+ l
1013
+ ), a = Oe(
1014
+ a,
1015
+ $,
1016
+ k,
1017
+ s.length,
1018
+ 0,
1019
+ l
1020
+ );
1021
+ break;
1022
+ } else if (m) {
1023
+ Pe(y);
1024
+ let $ = !1;
1025
+ for (const X of u)
1026
+ if (X.name === m || X.num === +m) {
1027
+ if ($ = !0, X.hasRecursedWithin)
1028
+ throw new Error(ue);
1029
+ break;
1030
+ }
1031
+ if (!$)
1032
+ throw new Error(I`Recursive \g cannot be used outside the referenced group "${n === "external" ? m : I`\g<${m}&R=${y}>`}"`);
1033
+ const E = i.get(m), k = pt(e, E);
1034
+ if (o && ee(k, I`${ae}|\((?!\?)`, S.DEFAULT))
1035
+ throw new Error(
1036
+ // When used in `external` mode by transpilers other than Regex+, backrefs might have
1037
+ // gone through conversion from named to numbered, so avoid a misleading error
1038
+ `${n === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`
1039
+ );
1040
+ const A = e.slice(E, f.index), J = k.slice(A.length + g.length), D = s.length, B = +y - 1, Ee = Re(
1041
+ A,
1042
+ J,
1043
+ B,
1044
+ !0,
1045
+ t,
1046
+ s,
1047
+ l
1048
+ );
1049
+ a = Oe(
1050
+ a,
1051
+ A,
1052
+ B,
1053
+ s.length - D,
1054
+ D,
1055
+ l
1056
+ );
1057
+ const gr = e.slice(0, E), hr = e.slice(E + k.length);
1058
+ e = `${gr}${Ee}${hr}`, P.lastIndex += Ee.length - g.length - A.length - J.length, u.forEach((X) => X.hasRecursedWithin = !0), c = !0;
1059
+ } else if (d)
1060
+ l++, i.set(String(l), P.lastIndex), i.set(d, P.lastIndex), u.push({
1061
+ num: l,
1062
+ name: d
1063
+ });
1064
+ else if (g[0] === "(") {
1065
+ const $ = g === "(";
1066
+ $ && (l++, i.set(String(l), P.lastIndex)), u.push($ ? { num: l } : {});
1067
+ } else g === ")" && u.pop();
1068
+ }
1069
+ return t.push(...s), {
1070
+ pattern: e,
1071
+ captureTransfers: a,
1072
+ hiddenCaptures: t
1073
+ };
1074
+ }
1075
+ function Pe(e) {
1076
+ const r = `Max depth must be integer between 2 and 100; used ${e}`;
1077
+ if (!/^[1-9]\d*$/.test(e))
1078
+ throw new Error(r);
1079
+ if (e = +e, e < 2 || e > 100)
1080
+ throw new Error(r);
1081
+ }
1082
+ function Re(e, r, t, n, a, s, o) {
1083
+ const i = /* @__PURE__ */ new Set();
1084
+ n && rr(e + r, ae, ({ groups: { captureName: c } }) => {
1085
+ i.add(c);
1086
+ }, S.DEFAULT);
1087
+ const u = [
1088
+ t,
1089
+ n ? i : null,
1090
+ a,
1091
+ s,
1092
+ o
1093
+ ];
1094
+ return `${e}${Ue(`(?:${e}`, "forward", ...u)}(?:)${Ue(`${r})`, "backward", ...u)}${r}`;
1095
+ }
1096
+ function Ue(e, r, t, n, a, s, o) {
1097
+ const u = (p) => r === "forward" ? p + 2 : t - p + 2 - 1;
1098
+ let c = "";
1099
+ for (let p = 0; p < t; p++) {
1100
+ const l = u(p);
1101
+ c += xe(
1102
+ e,
1103
+ I`${nr}|\\k<(?<backref>[^>]+)>`,
1104
+ ({ 0: f, groups: { captureName: g, unnamed: d, backref: w } }) => {
1105
+ if (w && n && !n.has(w))
1106
+ return f;
1107
+ const m = `_$${l}`;
1108
+ if (d || g) {
1109
+ const y = o + s.length + 1;
1110
+ return s.push(y), wt(a, y), d ? f : `(?<${g}${m}>`;
1111
+ }
1112
+ return I`\k<${w}${m}>`;
1113
+ },
1114
+ S.DEFAULT
1115
+ );
1116
+ }
1117
+ return c;
1118
+ }
1119
+ function wt(e, r) {
1120
+ for (let t = 0; t < e.length; t++)
1121
+ e[t] >= r && e[t]++;
1122
+ }
1123
+ function Oe(e, r, t, n, a, s) {
1124
+ if (e.size && n) {
1125
+ let o = 0;
1126
+ rr(r, nr, () => o++, S.DEFAULT);
1127
+ const i = s - o + a, u = /* @__PURE__ */ new Map();
1128
+ return e.forEach((c, p) => {
1129
+ const l = (n - o * t) / t, f = o * t, g = p > i + o ? p + n : p, d = [];
1130
+ for (const w of c)
1131
+ if (w <= i)
1132
+ d.push(w);
1133
+ else if (w > i + o + l)
1134
+ d.push(w + n);
1135
+ else if (w <= i + o)
1136
+ for (let m = 0; m <= t; m++)
1137
+ d.push(w + o * m);
1138
+ else
1139
+ for (let m = 0; m <= t; m++)
1140
+ d.push(w + f + l * m);
1141
+ u.set(g, d);
1142
+ }), u;
1143
+ }
1144
+ return e;
1145
+ }
1146
+ var b = String.fromCodePoint, h = String.raw, L = {
1147
+ flagGroups: (() => {
1148
+ try {
1149
+ new RegExp("(?i:)");
1150
+ } catch {
1151
+ return !1;
1152
+ }
1153
+ return !0;
1154
+ })(),
1155
+ unicodeSets: (() => {
1156
+ try {
1157
+ new RegExp("[[]]", "v");
1158
+ } catch {
1159
+ return !1;
1160
+ }
1161
+ return !0;
1162
+ })()
1163
+ };
1164
+ L.bugFlagVLiteralHyphenIsRange = L.unicodeSets ? (() => {
1165
+ try {
1166
+ new RegExp(h`[\d\-a]`, "v");
1167
+ } catch {
1168
+ return !0;
1169
+ }
1170
+ return !1;
1171
+ })() : !1;
1172
+ L.bugNestedClassIgnoresNegation = L.unicodeSets && new RegExp("[[^a]]", "v").test("a");
1173
+ function te(e, { enable: r, disable: t }) {
1174
+ return {
1175
+ dotAll: !t?.dotAll && !!(r?.dotAll || e.dotAll),
1176
+ ignoreCase: !t?.ignoreCase && !!(r?.ignoreCase || e.ignoreCase)
1177
+ };
1178
+ }
1179
+ function Q(e, r, t) {
1180
+ return e.has(r) || e.set(r, t), e.get(r);
1181
+ }
1182
+ function me(e, r) {
1183
+ return De[e] >= De[r];
1184
+ }
1185
+ function mt(e, r) {
1186
+ if (e == null)
1187
+ throw new Error(r ?? "Value expected");
1188
+ return e;
1189
+ }
1190
+ var De = {
1191
+ ES2025: 2025,
1192
+ ES2024: 2024,
1193
+ ES2018: 2018
1194
+ }, yt = (
1195
+ /** @type {const} */
1196
+ {
1197
+ auto: "auto",
1198
+ ES2025: "ES2025",
1199
+ ES2024: "ES2024",
1200
+ ES2018: "ES2018"
1201
+ }
1202
+ );
1203
+ function sr(e = {}) {
1204
+ if ({}.toString.call(e) !== "[object Object]")
1205
+ throw new Error("Unexpected options");
1206
+ if (e.target !== void 0 && !yt[e.target])
1207
+ throw new Error(`Unexpected target "${e.target}"`);
1208
+ const r = {
1209
+ // Sets the level of emulation rigor/strictness.
1210
+ accuracy: "default",
1211
+ // Disables advanced emulation that relies on returning a `RegExp` subclass, resulting in
1212
+ // certain patterns not being emulatable.
1213
+ avoidSubclass: !1,
1214
+ // Oniguruma flags; a string with `i`, `m`, `x`, `D`, `S`, `W`, `y{g}` in any order (all
1215
+ // optional). Oniguruma's `m` is equivalent to JavaScript's `s` (`dotAll`).
1216
+ flags: "",
1217
+ // Include JavaScript flag `g` (`global`) in the result.
1218
+ global: !1,
1219
+ // Include JavaScript flag `d` (`hasIndices`) in the result.
1220
+ hasIndices: !1,
1221
+ // Delay regex construction until first use if the transpiled pattern is at least this length.
1222
+ lazyCompileLength: 1 / 0,
1223
+ // JavaScript version used for generated regexes. Using `auto` detects the best value based on
1224
+ // your environment. Later targets allow faster processing, simpler generated source, and
1225
+ // support for additional features.
1226
+ target: "auto",
1227
+ // Disables minifications that simplify the pattern without changing the meaning.
1228
+ verbose: !1,
1229
+ ...e,
1230
+ // Advanced options that override standard behavior, error checking, and flags when enabled.
1231
+ rules: {
1232
+ // Useful with TextMate grammars that merge backreferences across patterns.
1233
+ allowOrphanBackrefs: !1,
1234
+ // Use ASCII `\b` and `\B`, which increases search performance of generated regexes.
1235
+ asciiWordBoundaries: !1,
1236
+ // Allow unnamed captures and numbered calls (backreferences and subroutines) when using
1237
+ // named capture. This is Oniguruma option `ONIG_OPTION_CAPTURE_GROUP`; on by default in
1238
+ // `vscode-oniguruma`.
1239
+ captureGroup: !1,
1240
+ // Change the recursion depth limit from Oniguruma's `20` to an integer `2`–`20`.
1241
+ recursionLimit: 20,
1242
+ // `^` as `\A`; `$` as`\Z`. Improves search performance of generated regexes without changing
1243
+ // the meaning if searching line by line. This is Oniguruma option `ONIG_OPTION_SINGLELINE`.
1244
+ singleline: !1,
1245
+ ...e.rules
1246
+ }
1247
+ };
1248
+ return r.target === "auto" && (r.target = L.flagGroups ? "ES2025" : L.unicodeSets ? "ES2024" : "ES2018"), r;
1249
+ }
1250
+ var Ct = "[ -\r ]", bt = /* @__PURE__ */ new Set([
1251
+ b(304),
1252
+ // İ
1253
+ b(305)
1254
+ // ı
1255
+ ]), _ = h`[\p{L}\p{M}\p{N}\p{Pc}]`;
1256
+ function ar(e) {
1257
+ if (bt.has(e))
1258
+ return [e];
1259
+ const r = /* @__PURE__ */ new Set(), t = e.toLowerCase(), n = t.toUpperCase(), a = $t.get(t), s = xt.get(t), o = kt.get(t);
1260
+ return [...n].length === 1 && r.add(n), o && r.add(o), a && r.add(a), r.add(t), s && r.add(s), [...r];
1261
+ }
1262
+ var ke = /* @__PURE__ */ new Map(
1263
+ `C Other
1264
+ Cc Control cntrl
1265
+ Cf Format
1266
+ Cn Unassigned
1267
+ Co Private_Use
1268
+ Cs Surrogate
1269
+ L Letter
1270
+ LC Cased_Letter
1271
+ Ll Lowercase_Letter
1272
+ Lm Modifier_Letter
1273
+ Lo Other_Letter
1274
+ Lt Titlecase_Letter
1275
+ Lu Uppercase_Letter
1276
+ M Mark Combining_Mark
1277
+ Mc Spacing_Mark
1278
+ Me Enclosing_Mark
1279
+ Mn Nonspacing_Mark
1280
+ N Number
1281
+ Nd Decimal_Number digit
1282
+ Nl Letter_Number
1283
+ No Other_Number
1284
+ P Punctuation punct
1285
+ Pc Connector_Punctuation
1286
+ Pd Dash_Punctuation
1287
+ Pe Close_Punctuation
1288
+ Pf Final_Punctuation
1289
+ Pi Initial_Punctuation
1290
+ Po Other_Punctuation
1291
+ Ps Open_Punctuation
1292
+ S Symbol
1293
+ Sc Currency_Symbol
1294
+ Sk Modifier_Symbol
1295
+ Sm Math_Symbol
1296
+ So Other_Symbol
1297
+ Z Separator
1298
+ Zl Line_Separator
1299
+ Zp Paragraph_Separator
1300
+ Zs Space_Separator
1301
+ ASCII
1302
+ ASCII_Hex_Digit AHex
1303
+ Alphabetic Alpha
1304
+ Any
1305
+ Assigned
1306
+ Bidi_Control Bidi_C
1307
+ Bidi_Mirrored Bidi_M
1308
+ Case_Ignorable CI
1309
+ Cased
1310
+ Changes_When_Casefolded CWCF
1311
+ Changes_When_Casemapped CWCM
1312
+ Changes_When_Lowercased CWL
1313
+ Changes_When_NFKC_Casefolded CWKCF
1314
+ Changes_When_Titlecased CWT
1315
+ Changes_When_Uppercased CWU
1316
+ Dash
1317
+ Default_Ignorable_Code_Point DI
1318
+ Deprecated Dep
1319
+ Diacritic Dia
1320
+ Emoji
1321
+ Emoji_Component EComp
1322
+ Emoji_Modifier EMod
1323
+ Emoji_Modifier_Base EBase
1324
+ Emoji_Presentation EPres
1325
+ Extended_Pictographic ExtPict
1326
+ Extender Ext
1327
+ Grapheme_Base Gr_Base
1328
+ Grapheme_Extend Gr_Ext
1329
+ Hex_Digit Hex
1330
+ IDS_Binary_Operator IDSB
1331
+ IDS_Trinary_Operator IDST
1332
+ ID_Continue IDC
1333
+ ID_Start IDS
1334
+ Ideographic Ideo
1335
+ Join_Control Join_C
1336
+ Logical_Order_Exception LOE
1337
+ Lowercase Lower
1338
+ Math
1339
+ Noncharacter_Code_Point NChar
1340
+ Pattern_Syntax Pat_Syn
1341
+ Pattern_White_Space Pat_WS
1342
+ Quotation_Mark QMark
1343
+ Radical
1344
+ Regional_Indicator RI
1345
+ Sentence_Terminal STerm
1346
+ Soft_Dotted SD
1347
+ Terminal_Punctuation Term
1348
+ Unified_Ideograph UIdeo
1349
+ Uppercase Upper
1350
+ Variation_Selector VS
1351
+ White_Space space
1352
+ XID_Continue XIDC
1353
+ XID_Start XIDS`.split(/\s/).map((e) => [se(e), e])
1354
+ ), xt = /* @__PURE__ */ new Map([
1355
+ ["s", b(383)],
1356
+ // s, ſ
1357
+ [b(383), "s"]
1358
+ // ſ, s
1359
+ ]), kt = /* @__PURE__ */ new Map([
1360
+ [b(223), b(7838)],
1361
+ // ß, ẞ
1362
+ [b(107), b(8490)],
1363
+ // k, K (Kelvin)
1364
+ [b(229), b(8491)],
1365
+ // å, Å (Angstrom)
1366
+ [b(969), b(8486)]
1367
+ // ω, Ω (Ohm)
1368
+ ]), $t = new Map([
1369
+ F(453),
1370
+ F(456),
1371
+ F(459),
1372
+ F(498),
1373
+ ...ce(8072, 8079),
1374
+ ...ce(8088, 8095),
1375
+ ...ce(8104, 8111),
1376
+ F(8124),
1377
+ F(8140),
1378
+ F(8188)
1379
+ ]), Et = /* @__PURE__ */ new Map([
1380
+ ["alnum", h`[\p{Alpha}\p{Nd}]`],
1381
+ ["alpha", h`\p{Alpha}`],
1382
+ ["ascii", h`\p{ASCII}`],
1383
+ ["blank", h`[\p{Zs}\t]`],
1384
+ ["cntrl", h`\p{Cc}`],
1385
+ ["digit", h`\p{Nd}`],
1386
+ ["graph", h`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],
1387
+ ["lower", h`\p{Lower}`],
1388
+ ["print", h`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],
1389
+ ["punct", h`[\p{P}\p{S}]`],
1390
+ // Updated value from Onig 6.9.9; changed from Unicode `\p{punct}`
1391
+ ["space", h`\p{space}`],
1392
+ ["upper", h`\p{Upper}`],
1393
+ ["word", h`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],
1394
+ ["xdigit", h`\p{AHex}`]
1395
+ ]);
1396
+ function At(e, r) {
1397
+ const t = [];
1398
+ for (let n = e; n <= r; n++)
1399
+ t.push(n);
1400
+ return t;
1401
+ }
1402
+ function F(e) {
1403
+ const r = b(e);
1404
+ return [r.toLowerCase(), r];
1405
+ }
1406
+ function ce(e, r) {
1407
+ return At(e, r).map((t) => F(t));
1408
+ }
1409
+ var or = /* @__PURE__ */ new Set([
1410
+ "Lower",
1411
+ "Lowercase",
1412
+ "Upper",
1413
+ "Uppercase",
1414
+ "Ll",
1415
+ "Lowercase_Letter",
1416
+ "Lt",
1417
+ "Titlecase_Letter",
1418
+ "Lu",
1419
+ "Uppercase_Letter"
1420
+ // The `Changes_When_*` properties (and their aliases) could be included, but they're very rare.
1421
+ // Some other properties include a handful of chars with specific cases only, but these chars are
1422
+ // generally extreme edge cases and using such properties case insensitively generally produces
1423
+ // undesired behavior anyway
1424
+ ]);
1425
+ function It(e, r) {
1426
+ const t = {
1427
+ // A couple edge cases exist where options `accuracy` and `bestEffortTarget` are used:
1428
+ // - `CharacterSet` kind `text_segment` (`\X`): An exact representation would require heavy
1429
+ // Unicode data; a best-effort approximation requires knowing the target.
1430
+ // - `CharacterSet` kind `posix` with values `graph` and `print`: Their complex Unicode
1431
+ // representations would be hard to change to ASCII versions after the fact in the generator
1432
+ // based on `target`/`accuracy`, so produce the appropriate structure here.
1433
+ accuracy: "default",
1434
+ asciiWordBoundaries: !1,
1435
+ avoidSubclass: !1,
1436
+ bestEffortTarget: "ES2025",
1437
+ ...r
1438
+ };
1439
+ ir(e);
1440
+ const n = {
1441
+ accuracy: t.accuracy,
1442
+ asciiWordBoundaries: t.asciiWordBoundaries,
1443
+ avoidSubclass: t.avoidSubclass,
1444
+ flagDirectivesByAlt: /* @__PURE__ */ new Map(),
1445
+ jsGroupNameMap: /* @__PURE__ */ new Map(),
1446
+ minTargetEs2024: me(t.bestEffortTarget, "ES2024"),
1447
+ passedLookbehind: !1,
1448
+ strategy: null,
1449
+ // Subroutines can appear before the groups they ref, so collect reffed nodes for a second pass
1450
+ subroutineRefMap: /* @__PURE__ */ new Map(),
1451
+ supportedGNodes: /* @__PURE__ */ new Set(),
1452
+ digitIsAscii: e.flags.digitIsAscii,
1453
+ spaceIsAscii: e.flags.spaceIsAscii,
1454
+ wordIsAscii: e.flags.wordIsAscii
1455
+ };
1456
+ Z(e, St, n);
1457
+ const a = {
1458
+ dotAll: e.flags.dotAll,
1459
+ ignoreCase: e.flags.ignoreCase
1460
+ }, s = {
1461
+ currentFlags: a,
1462
+ prevFlags: null,
1463
+ globalFlags: a,
1464
+ groupOriginByCopy: /* @__PURE__ */ new Map(),
1465
+ groupsByName: /* @__PURE__ */ new Map(),
1466
+ multiplexCapturesToLeftByRef: /* @__PURE__ */ new Map(),
1467
+ openRefs: /* @__PURE__ */ new Map(),
1468
+ reffedNodesByReferencer: /* @__PURE__ */ new Map(),
1469
+ subroutineRefMap: n.subroutineRefMap
1470
+ };
1471
+ Z(e, vt, s);
1472
+ const o = {
1473
+ groupsByName: s.groupsByName,
1474
+ highestOrphanBackref: 0,
1475
+ numCapturesToLeft: 0,
1476
+ reffedNodesByReferencer: s.reffedNodesByReferencer
1477
+ };
1478
+ return Z(e, _t, o), e._originMap = s.groupOriginByCopy, e._strategy = n.strategy, e;
1479
+ }
1480
+ var St = {
1481
+ AbsenceFunction({ node: e, parent: r, replaceWith: t }) {
1482
+ const { body: n, kind: a } = e;
1483
+ if (a === "repeater") {
1484
+ const s = v();
1485
+ s.body[0].body.push(
1486
+ // Insert own alts as `body`
1487
+ R({ negate: !0, body: n }),
1488
+ W("Any")
1489
+ );
1490
+ const o = v();
1491
+ o.body[0].body.push(
1492
+ Ke("greedy", 0, 1 / 0, s)
1493
+ ), t(C(o, r), { traverse: !0 });
1494
+ } else
1495
+ throw new Error('Unsupported absence function "(?~|"');
1496
+ },
1497
+ Alternative: {
1498
+ enter({ node: e, parent: r, key: t }, { flagDirectivesByAlt: n }) {
1499
+ const a = e.body.filter((s) => s.kind === "flags");
1500
+ for (let s = t + 1; s < r.body.length; s++) {
1501
+ const o = r.body[s];
1502
+ Q(n, o, []).push(...a);
1503
+ }
1504
+ },
1505
+ exit({ node: e }, { flagDirectivesByAlt: r }) {
1506
+ if (r.get(e)?.length) {
1507
+ const t = cr(r.get(e));
1508
+ if (t) {
1509
+ const n = v({ flags: t });
1510
+ n.body[0].body = e.body, e.body = [C(n, e)];
1511
+ }
1512
+ }
1513
+ }
1514
+ },
1515
+ Assertion({ node: e, parent: r, key: t, container: n, root: a, remove: s, replaceWith: o }, i) {
1516
+ const { kind: u, negate: c } = e, { asciiWordBoundaries: p, avoidSubclass: l, supportedGNodes: f, wordIsAscii: g } = i;
1517
+ if (u === "text_segment_boundary")
1518
+ throw new Error(`Unsupported text segment boundary "\\${c ? "Y" : "y"}"`);
1519
+ if (u === "line_end")
1520
+ o(C(R({ body: [
1521
+ O({ body: [de("string_end")] }),
1522
+ O({ body: [ne(10)] })
1523
+ // `\n`
1524
+ ] }), r));
1525
+ else if (u === "line_start")
1526
+ o(C(M(h`(?<=\A|\n(?!\z))`, { skipLookbehindValidation: !0 }), r));
1527
+ else if (u === "search_start")
1528
+ if (f.has(e))
1529
+ a.flags.sticky = !0, s();
1530
+ else {
1531
+ const d = n[t - 1];
1532
+ if (d && Pt(d))
1533
+ o(C(R({ negate: !0 }), r));
1534
+ else {
1535
+ if (l)
1536
+ throw new Error(h`Uses "\G" in a way that requires a subclass`);
1537
+ o(G(de("string_start"), r)), i.strategy = "clip_search";
1538
+ }
1539
+ }
1540
+ else if (!(u === "string_end" || u === "string_start")) if (u === "string_end_newline")
1541
+ o(C(M(h`(?=\n?\z)`), r));
1542
+ else if (u === "word_boundary") {
1543
+ if (!g && !p) {
1544
+ const d = `(?:(?<=${_})(?!${_})|(?<!${_})(?=${_}))`, w = `(?:(?<=${_})(?=${_})|(?<!${_})(?!${_}))`;
1545
+ o(C(M(c ? w : d), r));
1546
+ }
1547
+ } else
1548
+ throw new Error(`Unexpected assertion kind "${u}"`);
1549
+ },
1550
+ Backreference({ node: e }, { jsGroupNameMap: r }) {
1551
+ let { ref: t } = e;
1552
+ typeof t == "string" && !pe(t) && (t = le(t, r), e.ref = t);
1553
+ },
1554
+ CapturingGroup({ node: e }, { jsGroupNameMap: r, subroutineRefMap: t }) {
1555
+ let { name: n } = e;
1556
+ n && !pe(n) && (n = le(n, r), e.name = n), t.set(e.number, e), n && t.set(n, e);
1557
+ },
1558
+ CharacterClassRange({ node: e, parent: r, replaceWith: t }) {
1559
+ if (r.kind === "intersection") {
1560
+ const n = re({ body: [e] });
1561
+ t(C(n, r), { traverse: !0 });
1562
+ }
1563
+ },
1564
+ CharacterSet({ node: e, parent: r, replaceWith: t }, { accuracy: n, minTargetEs2024: a, digitIsAscii: s, spaceIsAscii: o, wordIsAscii: i }) {
1565
+ const { kind: u, negate: c, value: p } = e;
1566
+ if (s && (u === "digit" || p === "digit")) {
1567
+ t(G(he("digit", { negate: c }), r));
1568
+ return;
1569
+ }
1570
+ if (o && (u === "space" || p === "space")) {
1571
+ t(C(fe(M(Ct), c), r));
1572
+ return;
1573
+ }
1574
+ if (i && (u === "word" || p === "word")) {
1575
+ t(G(he("word", { negate: c }), r));
1576
+ return;
1577
+ }
1578
+ if (u === "any")
1579
+ t(G(W("Any"), r));
1580
+ else if (u === "digit")
1581
+ t(G(W("Nd", { negate: c }), r));
1582
+ else if (u !== "dot") if (u === "text_segment") {
1583
+ if (n === "strict")
1584
+ throw new Error(h`Use of "\X" requires non-strict accuracy`);
1585
+ const l = "\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?", f = h`\p{RI}{2}|${l}(?:\u200D${l})*`;
1586
+ t(C(M(
1587
+ // Close approximation of an extended grapheme cluster; see <unicode.org/reports/tr29/>
1588
+ h`(?>\r\n|${a ? h`\p{RGI_Emoji}` : f}|\P{M}\p{M}*)`,
1589
+ // Allow JS property `RGI_Emoji` through
1590
+ { skipPropertyNameValidation: !0 }
1591
+ ), r));
1592
+ } else if (u === "hex")
1593
+ t(G(W("AHex", { negate: c }), r));
1594
+ else if (u === "newline")
1595
+ t(C(M(c ? `[^
1596
+ ]` : `(?>\r
1597
+ ?|[
1598
+ \v\f…\u2028\u2029])`), r));
1599
+ else if (u === "posix")
1600
+ if (!a && (p === "graph" || p === "print")) {
1601
+ if (n === "strict")
1602
+ throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);
1603
+ let l = {
1604
+ graph: "!-~",
1605
+ print: " -~"
1606
+ }[p];
1607
+ c && (l = `\0-${b(l.codePointAt(0) - 1)}${b(l.codePointAt(2) + 1)}-􏿿`), t(C(M(`[${l}]`), r));
1608
+ } else
1609
+ t(C(fe(M(Et.get(p)), c), r));
1610
+ else if (u === "property")
1611
+ ke.has(se(p)) || (e.key = "sc");
1612
+ else if (u === "space")
1613
+ t(G(W("space", { negate: c }), r));
1614
+ else if (u === "word")
1615
+ t(C(fe(M(_), c), r));
1616
+ else
1617
+ throw new Error(`Unexpected character set kind "${u}"`);
1618
+ },
1619
+ Directive({ node: e, parent: r, root: t, remove: n, replaceWith: a, removeAllPrevSiblings: s, removeAllNextSiblings: o }) {
1620
+ const { kind: i, flags: u } = e;
1621
+ if (i === "flags")
1622
+ if (!u.enable && !u.disable)
1623
+ n();
1624
+ else {
1625
+ const c = v({ flags: u });
1626
+ c.body[0].body = o(), a(C(c, r), { traverse: !0 });
1627
+ }
1628
+ else if (i === "keep") {
1629
+ const c = t.body[0], l = t.body.length === 1 && // Not emulatable if within a `CapturingGroup`
1630
+ Qe(c, { type: "Group" }) && c.body[0].body.length === 1 ? c.body[0] : t;
1631
+ if (r.parent !== l || l.body.length > 1)
1632
+ throw new Error(h`Uses "\K" in a way that's unsupported`);
1633
+ const f = R({ behind: !0 });
1634
+ f.body[0].body = s(), a(C(f, r));
1635
+ } else
1636
+ throw new Error(`Unexpected directive kind "${i}"`);
1637
+ },
1638
+ Flags({ node: e, parent: r }) {
1639
+ if (e.posixIsAscii)
1640
+ throw new Error('Unsupported flag "P"');
1641
+ if (e.textSegmentMode === "word")
1642
+ throw new Error('Unsupported flag "y{w}"');
1643
+ [
1644
+ "digitIsAscii",
1645
+ // Flag D
1646
+ "extended",
1647
+ // Flag x
1648
+ "posixIsAscii",
1649
+ // Flag P
1650
+ "spaceIsAscii",
1651
+ // Flag S
1652
+ "wordIsAscii",
1653
+ // Flag W
1654
+ "textSegmentMode"
1655
+ // Flag y{g} or y{w}
1656
+ ].forEach((t) => delete e[t]), Object.assign(e, {
1657
+ // JS flag g; no Onig equiv
1658
+ global: !1,
1659
+ // JS flag d; no Onig equiv
1660
+ hasIndices: !1,
1661
+ // JS flag m; no Onig equiv but its behavior is always on in Onig. Onig's only line break
1662
+ // char is line feed, unlike JS, so this flag isn't used since it would produce inaccurate
1663
+ // results (also allows `^` and `$` to be used in the generator for string start and end)
1664
+ multiline: !1,
1665
+ // JS flag y; no Onig equiv, but used for `\G` emulation
1666
+ sticky: e.sticky ?? !1
1667
+ // Note: Regex+ doesn't allow explicitly adding flags it handles implicitly, so leave out
1668
+ // properties `unicode` (JS flag u) and `unicodeSets` (JS flag v). Keep the existing values
1669
+ // for `ignoreCase` (flag i) and `dotAll` (JS flag s, but Onig flag m)
1670
+ }), r.options = {
1671
+ disable: {
1672
+ // Onig uses different rules for flag x than Regex+, so disable the implicit flag
1673
+ x: !0,
1674
+ // Onig has no flag to control "named capture only" mode but contextually applies its
1675
+ // behavior when named capturing is used, so disable Regex+'s implicit flag for it
1676
+ n: !0
1677
+ },
1678
+ force: {
1679
+ // Always add flag v because we're generating an AST that relies on it (it enables JS
1680
+ // support for Onig features nested classes, intersection, Unicode properties, etc.).
1681
+ // However, the generator might disable flag v based on its `target` option
1682
+ v: !0
1683
+ }
1684
+ };
1685
+ },
1686
+ Group({ node: e }) {
1687
+ if (!e.flags)
1688
+ return;
1689
+ const { enable: r, disable: t } = e.flags;
1690
+ r?.extended && delete r.extended, t?.extended && delete t.extended, r?.dotAll && t?.dotAll && delete r.dotAll, r?.ignoreCase && t?.ignoreCase && delete r.ignoreCase, r && !Object.keys(r).length && delete e.flags.enable, t && !Object.keys(t).length && delete e.flags.disable, !e.flags.enable && !e.flags.disable && delete e.flags;
1691
+ },
1692
+ LookaroundAssertion({ node: e }, r) {
1693
+ const { kind: t } = e;
1694
+ t === "lookbehind" && (r.passedLookbehind = !0);
1695
+ },
1696
+ NamedCallout({ node: e, parent: r, replaceWith: t }) {
1697
+ const { kind: n } = e;
1698
+ if (n === "fail")
1699
+ t(C(R({ negate: !0 }), r));
1700
+ else
1701
+ throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`);
1702
+ },
1703
+ Quantifier({ node: e }) {
1704
+ if (e.body.type === "Quantifier") {
1705
+ const r = v();
1706
+ r.body[0].body.push(e.body), e.body = C(r, e);
1707
+ }
1708
+ },
1709
+ Regex: {
1710
+ enter({ node: e }, { supportedGNodes: r }) {
1711
+ const t = [];
1712
+ let n = !1, a = !1;
1713
+ for (const s of e.body)
1714
+ if (s.body.length === 1 && s.body[0].kind === "search_start")
1715
+ s.body.pop();
1716
+ else {
1717
+ const o = pr(s.body);
1718
+ o ? (n = !0, Array.isArray(o) ? t.push(...o) : t.push(o)) : a = !0;
1719
+ }
1720
+ n && !a && t.forEach((s) => r.add(s));
1721
+ },
1722
+ exit(e, { accuracy: r, passedLookbehind: t, strategy: n }) {
1723
+ if (r === "strict" && t && n)
1724
+ throw new Error(h`Uses "\G" in a way that requires non-strict accuracy`);
1725
+ }
1726
+ },
1727
+ Subroutine({ node: e }, { jsGroupNameMap: r }) {
1728
+ let { ref: t } = e;
1729
+ typeof t == "string" && !pe(t) && (t = le(t, r), e.ref = t);
1730
+ }
1731
+ }, vt = {
1732
+ Backreference({ node: e }, { multiplexCapturesToLeftByRef: r, reffedNodesByReferencer: t }) {
1733
+ const { orphan: n, ref: a } = e;
1734
+ n || t.set(e, [...r.get(a).map(({ node: s }) => s)]);
1735
+ },
1736
+ CapturingGroup: {
1737
+ enter({
1738
+ node: e,
1739
+ parent: r,
1740
+ replaceWith: t,
1741
+ skip: n
1742
+ }, {
1743
+ groupOriginByCopy: a,
1744
+ groupsByName: s,
1745
+ multiplexCapturesToLeftByRef: o,
1746
+ openRefs: i,
1747
+ reffedNodesByReferencer: u
1748
+ }) {
1749
+ const c = a.get(e);
1750
+ if (c && i.has(e.number)) {
1751
+ const l = G(Be(e.number), r);
1752
+ u.set(l, i.get(e.number)), t(l);
1753
+ return;
1754
+ }
1755
+ i.set(e.number, e), o.set(e.number, []), e.name && Q(o, e.name, []);
1756
+ const p = o.get(e.name ?? e.number);
1757
+ for (let l = 0; l < p.length; l++) {
1758
+ const f = p[l];
1759
+ if (
1760
+ // This group is from subroutine expansion, and there's a multiplex value from either the
1761
+ // origin node or a prior subroutine expansion group with the same origin
1762
+ c === f.node || c && c === f.origin || // This group is not from subroutine expansion, and it comes after a subroutine expansion
1763
+ // group that refers to this group
1764
+ e === f.origin
1765
+ ) {
1766
+ p.splice(l, 1);
1767
+ break;
1768
+ }
1769
+ }
1770
+ if (o.get(e.number).push({ node: e, origin: c }), e.name && o.get(e.name).push({ node: e, origin: c }), e.name) {
1771
+ const l = Q(s, e.name, /* @__PURE__ */ new Map());
1772
+ let f = !1;
1773
+ if (c)
1774
+ f = !0;
1775
+ else
1776
+ for (const g of l.values())
1777
+ if (!g.hasDuplicateNameToRemove) {
1778
+ f = !0;
1779
+ break;
1780
+ }
1781
+ s.get(e.name).set(e, { node: e, hasDuplicateNameToRemove: f });
1782
+ }
1783
+ },
1784
+ exit({ node: e }, { openRefs: r }) {
1785
+ r.delete(e.number);
1786
+ }
1787
+ },
1788
+ Group: {
1789
+ enter({ node: e }, r) {
1790
+ r.prevFlags = r.currentFlags, e.flags && (r.currentFlags = te(r.currentFlags, e.flags));
1791
+ },
1792
+ exit(e, r) {
1793
+ r.currentFlags = r.prevFlags;
1794
+ }
1795
+ },
1796
+ Subroutine({ node: e, parent: r, replaceWith: t }, n) {
1797
+ const { isRecursive: a, ref: s } = e;
1798
+ if (a) {
1799
+ let p = r;
1800
+ for (; (p = p.parent) && !(p.type === "CapturingGroup" && (p.name === s || p.number === s)); )
1801
+ ;
1802
+ n.reffedNodesByReferencer.set(e, p);
1803
+ return;
1804
+ }
1805
+ const o = n.subroutineRefMap.get(s), i = s === 0, u = i ? Be(0) : (
1806
+ // The reffed group might itself contain subroutines, which are expanded during sub-traversal
1807
+ ur(o, n.groupOriginByCopy, null)
1808
+ );
1809
+ let c = u;
1810
+ if (!i) {
1811
+ const p = cr(Lt(
1812
+ o,
1813
+ (f) => f.type === "Group" && !!f.flags
1814
+ )), l = p ? te(n.globalFlags, p) : n.globalFlags;
1815
+ Mt(l, n.currentFlags) || (c = v({
1816
+ flags: Ft(l)
1817
+ }), c.body[0].body.push(u));
1818
+ }
1819
+ t(C(c, r), { traverse: !i });
1820
+ }
1821
+ }, _t = {
1822
+ Backreference({ node: e, parent: r, replaceWith: t }, n) {
1823
+ if (e.orphan) {
1824
+ n.highestOrphanBackref = Math.max(n.highestOrphanBackref, e.ref);
1825
+ return;
1826
+ }
1827
+ const s = n.reffedNodesByReferencer.get(e).filter((o) => Nt(o, e));
1828
+ if (!s.length)
1829
+ t(C(R({ negate: !0 }), r));
1830
+ else if (s.length > 1) {
1831
+ const o = v({
1832
+ atomic: !0,
1833
+ body: s.reverse().map((i) => O({
1834
+ body: [ge(i.number)]
1835
+ }))
1836
+ });
1837
+ t(C(o, r));
1838
+ } else
1839
+ e.ref = s[0].number;
1840
+ },
1841
+ CapturingGroup({ node: e }, r) {
1842
+ e.number = ++r.numCapturesToLeft, e.name && r.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove && delete e.name;
1843
+ },
1844
+ Regex: {
1845
+ exit({ node: e }, r) {
1846
+ const t = Math.max(r.highestOrphanBackref - r.numCapturesToLeft, 0);
1847
+ for (let n = 0; n < t; n++) {
1848
+ const a = Je();
1849
+ e.body.at(-1).body.push(a);
1850
+ }
1851
+ }
1852
+ },
1853
+ Subroutine({ node: e }, r) {
1854
+ !e.isRecursive || e.ref === 0 || (e.ref = r.reffedNodesByReferencer.get(e).number);
1855
+ }
1856
+ };
1857
+ function ir(e) {
1858
+ Z(e, {
1859
+ "*"({ node: r, parent: t }) {
1860
+ r.parent = t;
1861
+ }
1862
+ });
1863
+ }
1864
+ function Mt(e, r) {
1865
+ return e.dotAll === r.dotAll && e.ignoreCase === r.ignoreCase;
1866
+ }
1867
+ function Nt(e, r) {
1868
+ let t = r;
1869
+ do {
1870
+ if (t.type === "Regex")
1871
+ return !1;
1872
+ if (t.type === "Alternative")
1873
+ continue;
1874
+ if (t === e)
1875
+ return !1;
1876
+ const n = lr(t.parent);
1877
+ for (const a of n) {
1878
+ if (a === t)
1879
+ break;
1880
+ if (a === e || fr(a, e))
1881
+ return !0;
1882
+ }
1883
+ } while (t = t.parent);
1884
+ throw new Error("Unexpected path");
1885
+ }
1886
+ function ur(e, r, t, n) {
1887
+ const a = Array.isArray(e) ? [] : {};
1888
+ for (const [s, o] of Object.entries(e))
1889
+ s === "parent" ? a.parent = Array.isArray(t) ? n : t : o && typeof o == "object" ? a[s] = ur(o, r, a, t) : (s === "type" && o === "CapturingGroup" && r.set(a, r.get(e) ?? e), a[s] = o);
1890
+ return a;
1891
+ }
1892
+ function Be(e) {
1893
+ const r = Ye(e);
1894
+ return r.isRecursive = !0, r;
1895
+ }
1896
+ function Lt(e, r) {
1897
+ const t = [];
1898
+ for (; e = e.parent; )
1899
+ (!r || r(e)) && t.push(e);
1900
+ return t;
1901
+ }
1902
+ function le(e, r) {
1903
+ if (r.has(e))
1904
+ return r.get(e);
1905
+ const t = `$${r.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug, "_")}`;
1906
+ return r.set(e, t), t;
1907
+ }
1908
+ function cr(e) {
1909
+ const r = ["dotAll", "ignoreCase"], t = { enable: {}, disable: {} };
1910
+ return e.forEach(({ flags: n }) => {
1911
+ r.forEach((a) => {
1912
+ n.enable?.[a] && (delete t.disable[a], t.enable[a] = !0), n.disable?.[a] && (t.disable[a] = !0);
1913
+ });
1914
+ }), Object.keys(t.enable).length || delete t.enable, Object.keys(t.disable).length || delete t.disable, t.enable || t.disable ? t : null;
1915
+ }
1916
+ function Ft({ dotAll: e, ignoreCase: r }) {
1917
+ const t = {};
1918
+ return (e || r) && (t.enable = {}, e && (t.enable.dotAll = !0), r && (t.enable.ignoreCase = !0)), (!e || !r) && (t.disable = {}, !e && (t.disable.dotAll = !0), !r && (t.disable.ignoreCase = !0)), t;
1919
+ }
1920
+ function lr(e) {
1921
+ if (!e)
1922
+ throw new Error("Node expected");
1923
+ const { body: r } = e;
1924
+ return Array.isArray(r) ? r : r ? [r] : null;
1925
+ }
1926
+ function pr(e) {
1927
+ const r = e.find((t) => t.kind === "search_start" || Rt(t, { negate: !1 }) || !Gt(t));
1928
+ if (!r)
1929
+ return null;
1930
+ if (r.kind === "search_start")
1931
+ return r;
1932
+ if (r.type === "LookaroundAssertion")
1933
+ return r.body[0].body[0];
1934
+ if (r.type === "CapturingGroup" || r.type === "Group") {
1935
+ const t = [];
1936
+ for (const n of r.body) {
1937
+ const a = pr(n.body);
1938
+ if (!a)
1939
+ return null;
1940
+ Array.isArray(a) ? t.push(...a) : t.push(a);
1941
+ }
1942
+ return t;
1943
+ }
1944
+ return null;
1945
+ }
1946
+ function fr(e, r) {
1947
+ const t = lr(e) ?? [];
1948
+ for (const n of t)
1949
+ if (n === r || fr(n, r))
1950
+ return !0;
1951
+ return !1;
1952
+ }
1953
+ function Gt({ type: e }) {
1954
+ return e === "Assertion" || e === "Directive" || e === "LookaroundAssertion";
1955
+ }
1956
+ function Pt(e) {
1957
+ const r = [
1958
+ "Character",
1959
+ "CharacterClass",
1960
+ "CharacterSet"
1961
+ ];
1962
+ return r.includes(e.type) || e.type === "Quantifier" && e.min && r.includes(e.body.type);
1963
+ }
1964
+ function Rt(e, r) {
1965
+ const t = {
1966
+ negate: null,
1967
+ ...r
1968
+ };
1969
+ return e.type === "LookaroundAssertion" && (t.negate === null || e.negate === t.negate) && e.body.length === 1 && Qe(e.body[0], {
1970
+ type: "Assertion",
1971
+ kind: "search_start"
1972
+ });
1973
+ }
1974
+ function pe(e) {
1975
+ return /^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e);
1976
+ }
1977
+ function M(e, r) {
1978
+ const n = qe(e, {
1979
+ ...r,
1980
+ // Providing a custom set of Unicode property names avoids converting some JS Unicode
1981
+ // properties (ex: `\p{Alpha}`) to Onig POSIX classes
1982
+ unicodePropertyMap: ke
1983
+ }).body;
1984
+ return n.length > 1 || n[0].body.length > 1 ? v({ body: n }) : n[0].body[0];
1985
+ }
1986
+ function fe(e, r) {
1987
+ return e.negate = r, e;
1988
+ }
1989
+ function G(e, r) {
1990
+ return e.parent = r, e;
1991
+ }
1992
+ function C(e, r) {
1993
+ return ir(e), e.parent = r, e;
1994
+ }
1995
+ function Ut(e, r) {
1996
+ const t = sr(r), n = me(t.target, "ES2024"), a = me(t.target, "ES2025"), s = t.rules.recursionLimit;
1997
+ if (!Number.isInteger(s) || s < 2 || s > 20)
1998
+ throw new Error("Invalid recursionLimit; use 2-20");
1999
+ let o = null, i = null;
2000
+ if (!a) {
2001
+ const g = [e.flags.ignoreCase];
2002
+ Z(e, Ot, {
2003
+ getCurrentModI: () => g.at(-1),
2004
+ popModI() {
2005
+ g.pop();
2006
+ },
2007
+ pushModI(d) {
2008
+ g.push(d);
2009
+ },
2010
+ setHasCasedChar() {
2011
+ g.at(-1) ? o = !0 : i = !0;
2012
+ }
2013
+ });
2014
+ }
2015
+ const u = {
2016
+ dotAll: e.flags.dotAll,
2017
+ // - Turn global flag i on if a case insensitive node was used and no case sensitive nodes were
2018
+ // used (to avoid unnecessary node expansion).
2019
+ // - Turn global flag i off if a case sensitive node was used (since case sensitivity can't be
2020
+ // forced without the use of ES2025 flag groups)
2021
+ ignoreCase: !!((e.flags.ignoreCase || o) && !i)
2022
+ };
2023
+ let c = e;
2024
+ const p = {
2025
+ accuracy: t.accuracy,
2026
+ appliedGlobalFlags: u,
2027
+ captureMap: /* @__PURE__ */ new Map(),
2028
+ currentFlags: {
2029
+ dotAll: e.flags.dotAll,
2030
+ ignoreCase: e.flags.ignoreCase
2031
+ },
2032
+ inCharClass: !1,
2033
+ lastNode: c,
2034
+ originMap: e._originMap,
2035
+ recursionLimit: s,
2036
+ useAppliedIgnoreCase: !!(!a && o && i),
2037
+ useFlagMods: a,
2038
+ useFlagV: n,
2039
+ verbose: t.verbose
2040
+ };
2041
+ function l(g) {
2042
+ return p.lastNode = c, c = g, mt(Dt[g.type], `Unexpected node type "${g.type}"`)(g, p, l);
2043
+ }
2044
+ const f = {
2045
+ pattern: e.body.map(l).join("|"),
2046
+ // Could reset `lastNode` at this point via `lastNode = ast`, but it isn't needed by flags
2047
+ flags: l(e.flags),
2048
+ options: { ...e.options }
2049
+ };
2050
+ return n || (delete f.options.force.v, f.options.disable.v = !0, f.options.unicodeSetsPlugin = null), f._captureTransfers = /* @__PURE__ */ new Map(), f._hiddenCaptures = [], p.captureMap.forEach((g, d) => {
2051
+ g.hidden && f._hiddenCaptures.push(d), g.transferTo && Q(f._captureTransfers, g.transferTo, []).push(d);
2052
+ }), f;
2053
+ }
2054
+ var Ot = {
2055
+ "*": {
2056
+ enter({ node: e }, r) {
2057
+ if (Ve(e)) {
2058
+ const t = r.getCurrentModI();
2059
+ r.pushModI(
2060
+ e.flags ? te({ ignoreCase: t }, e.flags).ignoreCase : t
2061
+ );
2062
+ }
2063
+ },
2064
+ exit({ node: e }, r) {
2065
+ Ve(e) && r.popModI();
2066
+ }
2067
+ },
2068
+ Backreference(e, r) {
2069
+ r.setHasCasedChar();
2070
+ },
2071
+ Character({ node: e }, r) {
2072
+ $e(b(e.value)) && r.setHasCasedChar();
2073
+ },
2074
+ CharacterClassRange({ node: e, skip: r }, t) {
2075
+ r(), dr(e, { firstOnly: !0 }).length && t.setHasCasedChar();
2076
+ },
2077
+ CharacterSet({ node: e }, r) {
2078
+ e.kind === "property" && or.has(e.value) && r.setHasCasedChar();
2079
+ }
2080
+ }, Dt = {
2081
+ /**
2082
+ @param {AlternativeNode} node
2083
+ */
2084
+ Alternative({ body: e }, r, t) {
2085
+ return e.map(t).join("");
2086
+ },
2087
+ /**
2088
+ @param {AssertionNode} node
2089
+ */
2090
+ Assertion({ kind: e, negate: r }) {
2091
+ if (e === "string_end")
2092
+ return "$";
2093
+ if (e === "string_start")
2094
+ return "^";
2095
+ if (e === "word_boundary")
2096
+ return r ? h`\B` : h`\b`;
2097
+ throw new Error(`Unexpected assertion kind "${e}"`);
2098
+ },
2099
+ /**
2100
+ @param {BackreferenceNode} node
2101
+ */
2102
+ Backreference({ ref: e }, r) {
2103
+ if (typeof e != "number")
2104
+ throw new Error("Unexpected named backref in transformed AST");
2105
+ if (!r.useFlagMods && r.accuracy === "strict" && r.currentFlags.ignoreCase && !r.captureMap.get(e).ignoreCase)
2106
+ throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");
2107
+ return "\\" + e;
2108
+ },
2109
+ /**
2110
+ @param {CapturingGroupNode} node
2111
+ */
2112
+ CapturingGroup(e, r, t) {
2113
+ const { body: n, name: a, number: s } = e, o = { ignoreCase: r.currentFlags.ignoreCase }, i = r.originMap.get(e);
2114
+ return i && (o.hidden = !0, s > i.number && (o.transferTo = i.number)), r.captureMap.set(s, o), `(${a ? `?<${a}>` : ""}${n.map(t).join("|")})`;
2115
+ },
2116
+ /**
2117
+ @param {CharacterNode} node
2118
+ */
2119
+ Character({ value: e }, r) {
2120
+ const t = b(e), n = V(e, {
2121
+ escDigit: r.lastNode.type === "Backreference",
2122
+ inCharClass: r.inCharClass,
2123
+ useFlagV: r.useFlagV
2124
+ });
2125
+ if (n !== t)
2126
+ return n;
2127
+ if (r.useAppliedIgnoreCase && r.currentFlags.ignoreCase && $e(t)) {
2128
+ const a = ar(t);
2129
+ return r.inCharClass ? a.join("") : a.length > 1 ? `[${a.join("")}]` : a[0];
2130
+ }
2131
+ return t;
2132
+ },
2133
+ /**
2134
+ @param {CharacterClassNode} node
2135
+ */
2136
+ CharacterClass(e, r, t) {
2137
+ const { kind: n, negate: a, parent: s } = e;
2138
+ let { body: o } = e;
2139
+ if (n === "intersection" && !r.useFlagV)
2140
+ throw new Error("Use of character class intersection requires min target ES2024");
2141
+ L.bugFlagVLiteralHyphenIsRange && r.useFlagV && o.some(ze) && (o = [ne(45), ...o.filter((c) => !ze(c))]);
2142
+ const i = () => `[${a ? "^" : ""}${o.map(t).join(n === "intersection" ? "&&" : "")}]`;
2143
+ if (!r.inCharClass) {
2144
+ if (
2145
+ // Already established `kind !== 'intersection'` if `!state.useFlagV`; don't check again
2146
+ (!r.useFlagV || L.bugNestedClassIgnoresNegation) && !a
2147
+ ) {
2148
+ const p = o.filter(
2149
+ (l) => l.type === "CharacterClass" && l.kind === "union" && l.negate
2150
+ );
2151
+ if (p.length) {
2152
+ const l = v(), f = l.body[0];
2153
+ return l.parent = s, f.parent = l, o = o.filter((g) => !p.includes(g)), e.body = o, o.length ? (e.parent = f, f.body.push(e)) : l.body.pop(), p.forEach((g) => {
2154
+ const d = O({ body: [g] });
2155
+ g.parent = d, d.parent = l, l.body.push(d);
2156
+ }), t(l);
2157
+ }
2158
+ }
2159
+ r.inCharClass = !0;
2160
+ const c = i();
2161
+ return r.inCharClass = !1, c;
2162
+ }
2163
+ const u = o[0];
2164
+ if (
2165
+ // Already established that the parent is a char class via `inCharClass`; don't check again
2166
+ n === "union" && !a && u && // Allows many nested classes to work with `target` ES2018 which doesn't support nesting
2167
+ ((!r.useFlagV || !r.verbose) && s.kind === "union" && !(L.bugFlagVLiteralHyphenIsRange && r.useFlagV) || !r.verbose && s.kind === "intersection" && // JS doesn't allow intersection with union or ranges
2168
+ o.length === 1 && u.type !== "CharacterClassRange")
2169
+ )
2170
+ return o.map(t).join("");
2171
+ if (!r.useFlagV && s.type === "CharacterClass")
2172
+ throw new Error("Uses nested character class in a way that requires min target ES2024");
2173
+ return i();
2174
+ },
2175
+ /**
2176
+ @param {CharacterClassRangeNode} node
2177
+ */
2178
+ CharacterClassRange(e, r) {
2179
+ const t = e.min.value, n = e.max.value, a = {
2180
+ escDigit: !1,
2181
+ inCharClass: !0,
2182
+ useFlagV: r.useFlagV
2183
+ }, s = V(t, a), o = V(n, a), i = /* @__PURE__ */ new Set();
2184
+ if (r.useAppliedIgnoreCase && r.currentFlags.ignoreCase) {
2185
+ const u = dr(e);
2186
+ Wt(u).forEach((p) => {
2187
+ i.add(
2188
+ Array.isArray(p) ? `${V(p[0], a)}-${V(p[1], a)}` : V(p, a)
2189
+ );
2190
+ });
2191
+ }
2192
+ return `${s}-${o}${[...i].join("")}`;
2193
+ },
2194
+ /**
2195
+ @param {CharacterSetNode} node
2196
+ */
2197
+ CharacterSet({ kind: e, negate: r, value: t, key: n }, a) {
2198
+ if (e === "dot")
2199
+ return a.currentFlags.dotAll ? a.appliedGlobalFlags.dotAll || a.useFlagMods ? "." : "[^]" : (
2200
+ // Onig's only line break char is line feed, unlike JS
2201
+ h`[^\n]`
2202
+ );
2203
+ if (e === "digit")
2204
+ return r ? h`\D` : h`\d`;
2205
+ if (e === "property") {
2206
+ if (a.useAppliedIgnoreCase && a.currentFlags.ignoreCase && or.has(t))
2207
+ throw new Error(`Unicode property "${t}" can't be case-insensitive when other chars have specific case`);
2208
+ return `${r ? h`\P` : h`\p`}{${n ? `${n}=` : ""}${t}}`;
2209
+ }
2210
+ if (e === "word")
2211
+ return r ? h`\W` : h`\w`;
2212
+ throw new Error(`Unexpected character set kind "${e}"`);
2213
+ },
2214
+ /**
2215
+ @param {FlagsNode} node
2216
+ */
2217
+ Flags(e, r) {
2218
+ return (
2219
+ // The transformer should never turn on the properties for flags d, g, m since Onig doesn't
2220
+ // have equivs. Flag m is never used since Onig uses different line break chars than JS
2221
+ // (node.hasIndices ? 'd' : '') +
2222
+ // (node.global ? 'g' : '') +
2223
+ // (node.multiline ? 'm' : '') +
2224
+ (r.appliedGlobalFlags.ignoreCase ? "i" : "") + (e.dotAll ? "s" : "") + (e.sticky ? "y" : "")
2225
+ );
2226
+ },
2227
+ /**
2228
+ @param {GroupNode} node
2229
+ */
2230
+ Group({ atomic: e, body: r, flags: t, parent: n }, a, s) {
2231
+ const o = a.currentFlags;
2232
+ t && (a.currentFlags = te(o, t));
2233
+ const i = r.map(s).join("|"), u = !a.verbose && r.length === 1 && // Single alt
2234
+ n.type !== "Quantifier" && !e && (!a.useFlagMods || !t) ? i : `(?${Ht(e, t, a.useFlagMods)}${i})`;
2235
+ return a.currentFlags = o, u;
2236
+ },
2237
+ /**
2238
+ @param {LookaroundAssertionNode} node
2239
+ */
2240
+ LookaroundAssertion({ body: e, kind: r, negate: t }, n, a) {
2241
+ return `(?${`${r === "lookahead" ? "" : "<"}${t ? "!" : "="}`}${e.map(a).join("|")})`;
2242
+ },
2243
+ /**
2244
+ @param {QuantifierNode} node
2245
+ */
2246
+ Quantifier(e, r, t) {
2247
+ return t(e.body) + jt(e);
2248
+ },
2249
+ /**
2250
+ @param {SubroutineNode & {isRecursive: true}} node
2251
+ */
2252
+ Subroutine({ isRecursive: e, ref: r }, t) {
2253
+ if (!e)
2254
+ throw new Error("Unexpected non-recursive subroutine in transformed AST");
2255
+ const n = t.recursionLimit;
2256
+ return r === 0 ? `(?R=${n})` : h`\g<${r}&R=${n}>`;
2257
+ }
2258
+ }, Bt = /* @__PURE__ */ new Set([
2259
+ "$",
2260
+ "(",
2261
+ ")",
2262
+ "*",
2263
+ "+",
2264
+ ".",
2265
+ "?",
2266
+ "[",
2267
+ "\\",
2268
+ "]",
2269
+ "^",
2270
+ "{",
2271
+ "|",
2272
+ "}"
2273
+ ]), Tt = /* @__PURE__ */ new Set([
2274
+ "-",
2275
+ "\\",
2276
+ "]",
2277
+ "^",
2278
+ // Literal `[` doesn't require escaping with flag u, but this can help work around regex source
2279
+ // linters and regex syntax processors that expect unescaped `[` to create a nested class
2280
+ "["
2281
+ ]), Vt = /* @__PURE__ */ new Set([
2282
+ "(",
2283
+ ")",
2284
+ "-",
2285
+ "/",
2286
+ "[",
2287
+ "\\",
2288
+ "]",
2289
+ "^",
2290
+ "{",
2291
+ "|",
2292
+ "}",
2293
+ // Double punctuators; also includes already-listed `-` and `^`
2294
+ "!",
2295
+ "#",
2296
+ "$",
2297
+ "%",
2298
+ "&",
2299
+ "*",
2300
+ "+",
2301
+ ",",
2302
+ ".",
2303
+ ":",
2304
+ ";",
2305
+ "<",
2306
+ "=",
2307
+ ">",
2308
+ "?",
2309
+ "@",
2310
+ "`",
2311
+ "~"
2312
+ ]), Te = /* @__PURE__ */ new Map([
2313
+ [9, h`\t`],
2314
+ // horizontal tab
2315
+ [10, h`\n`],
2316
+ // line feed
2317
+ [11, h`\v`],
2318
+ // vertical tab
2319
+ [12, h`\f`],
2320
+ // form feed
2321
+ [13, h`\r`],
2322
+ // carriage return
2323
+ [8232, h`\u2028`],
2324
+ // line separator
2325
+ [8233, h`\u2029`],
2326
+ // paragraph separator
2327
+ [65279, h`\uFEFF`]
2328
+ // ZWNBSP/BOM
2329
+ ]), zt = new RegExp("^\\p{Cased}$", "u");
2330
+ function $e(e) {
2331
+ return zt.test(e);
2332
+ }
2333
+ function dr(e, r) {
2334
+ const t = !!r?.firstOnly, n = e.min.value, a = e.max.value, s = [];
2335
+ if (n < 65 && (a === 65535 || a >= 131071) || n === 65536 && a >= 131071)
2336
+ return s;
2337
+ for (let o = n; o <= a; o++) {
2338
+ const i = b(o);
2339
+ if (!$e(i))
2340
+ continue;
2341
+ const u = ar(i).filter((c) => {
2342
+ const p = c.codePointAt(0);
2343
+ return p < n || p > a;
2344
+ });
2345
+ if (u.length && (s.push(...u), t))
2346
+ break;
2347
+ }
2348
+ return s;
2349
+ }
2350
+ function V(e, { escDigit: r, inCharClass: t, useFlagV: n }) {
2351
+ if (Te.has(e))
2352
+ return Te.get(e);
2353
+ if (
2354
+ // Control chars, etc.; condition modeled on the Chrome developer console's display for strings
2355
+ e < 32 || e > 126 && e < 160 || // Unicode planes 4-16; unassigned, special purpose, and private use area
2356
+ e > 262143 || // Avoid corrupting a preceding backref by immediately following it with a literal digit
2357
+ r && Xt(e)
2358
+ )
2359
+ return e > 255 ? `\\u{${e.toString(16).toUpperCase()}}` : `\\x${e.toString(16).toUpperCase().padStart(2, "0")}`;
2360
+ const a = t ? n ? Vt : Tt : Bt, s = b(e);
2361
+ return (a.has(s) ? "\\" : "") + s;
2362
+ }
2363
+ function Wt(e) {
2364
+ const r = e.map((a) => a.codePointAt(0)).sort((a, s) => a - s), t = [];
2365
+ let n = null;
2366
+ for (let a = 0; a < r.length; a++)
2367
+ r[a + 1] === r[a] + 1 ? n ??= r[a] : n === null ? t.push(r[a]) : (t.push([n, r[a]]), n = null);
2368
+ return t;
2369
+ }
2370
+ function Ht(e, r, t) {
2371
+ if (e)
2372
+ return ">";
2373
+ let n = "";
2374
+ if (r && t) {
2375
+ const { enable: a, disable: s } = r;
2376
+ n = (a?.ignoreCase ? "i" : "") + (a?.dotAll ? "s" : "") + (s ? "-" : "") + (s?.ignoreCase ? "i" : "") + (s?.dotAll ? "s" : "");
2377
+ }
2378
+ return `${n}:`;
2379
+ }
2380
+ function jt({ kind: e, max: r, min: t }) {
2381
+ let n;
2382
+ return !t && r === 1 ? n = "?" : !t && r === 1 / 0 ? n = "*" : t === 1 && r === 1 / 0 ? n = "+" : t === r ? n = `{${t}}` : n = `{${t},${r === 1 / 0 ? "" : r}}`, n + {
2383
+ greedy: "",
2384
+ lazy: "?",
2385
+ possessive: "+"
2386
+ }[e];
2387
+ }
2388
+ function Ve({ type: e }) {
2389
+ return e === "CapturingGroup" || e === "Group" || e === "LookaroundAssertion";
2390
+ }
2391
+ function Xt(e) {
2392
+ return e > 47 && e < 58;
2393
+ }
2394
+ function ze({ type: e, value: r }) {
2395
+ return e === "Character" && r === 45;
2396
+ }
2397
+ var Zt = class ye extends RegExp {
2398
+ /**
2399
+ @type {Map<number, {
2400
+ hidden?: true;
2401
+ transferTo?: number;
2402
+ }>}
2403
+ */
2404
+ #r = /* @__PURE__ */ new Map();
2405
+ /**
2406
+ @type {RegExp | EmulatedRegExp | null}
2407
+ */
2408
+ #e = null;
2409
+ /**
2410
+ @type {string}
2411
+ */
2412
+ #n;
2413
+ /**
2414
+ @type {Map<number, string>?}
2415
+ */
2416
+ #t = null;
2417
+ /**
2418
+ @type {string?}
2419
+ */
2420
+ #s = null;
2421
+ /**
2422
+ Can be used to serialize the instance.
2423
+ @type {EmulatedRegExpOptions}
2424
+ */
2425
+ rawOptions = {};
2426
+ // Override the getter with one that works with lazy-compiled regexes
2427
+ get source() {
2428
+ return this.#n || "(?:)";
2429
+ }
2430
+ /**
2431
+ @overload
2432
+ @param {string} pattern
2433
+ @param {string} [flags]
2434
+ @param {EmulatedRegExpOptions} [options]
2435
+ */
2436
+ /**
2437
+ @overload
2438
+ @param {EmulatedRegExp} pattern
2439
+ @param {string} [flags]
2440
+ */
2441
+ constructor(r, t, n) {
2442
+ const a = !!n?.lazyCompile;
2443
+ if (r instanceof RegExp) {
2444
+ if (n)
2445
+ throw new Error("Cannot provide options when copying a regexp");
2446
+ const s = r;
2447
+ super(s, t), this.#n = s.source, s instanceof ye && (this.#r = s.#r, this.#t = s.#t, this.#s = s.#s, this.rawOptions = s.rawOptions);
2448
+ } else {
2449
+ const s = {
2450
+ hiddenCaptures: [],
2451
+ strategy: null,
2452
+ transfers: [],
2453
+ ...n
2454
+ };
2455
+ super(a ? "" : r, t), this.#n = r, this.#r = qt(s.hiddenCaptures, s.transfers), this.#s = s.strategy, this.rawOptions = n ?? {};
2456
+ }
2457
+ a || (this.#e = this);
2458
+ }
2459
+ /**
2460
+ Called internally by all String/RegExp methods that use regexes.
2461
+ @override
2462
+ @param {string} str
2463
+ @returns {RegExpExecArray?}
2464
+ */
2465
+ exec(r) {
2466
+ if (!this.#e) {
2467
+ const { lazyCompile: a, ...s } = this.rawOptions;
2468
+ this.#e = new ye(this.#n, this.flags, s);
2469
+ }
2470
+ const t = this.global || this.sticky, n = this.lastIndex;
2471
+ if (this.#s === "clip_search" && t && n) {
2472
+ this.lastIndex = 0;
2473
+ const a = this.#a(r.slice(n));
2474
+ return a && (Qt(a, n, r, this.hasIndices), this.lastIndex += n), a;
2475
+ }
2476
+ return this.#a(r);
2477
+ }
2478
+ /**
2479
+ Adds support for hidden and transfer captures.
2480
+ @param {string} str
2481
+ @returns
2482
+ */
2483
+ #a(r) {
2484
+ this.#e.lastIndex = this.lastIndex;
2485
+ const t = super.exec.call(this.#e, r);
2486
+ if (this.lastIndex = this.#e.lastIndex, !t || !this.#r.size)
2487
+ return t;
2488
+ const n = [...t];
2489
+ t.length = 1;
2490
+ let a;
2491
+ this.hasIndices && (a = [...t.indices], t.indices.length = 1);
2492
+ const s = [0];
2493
+ for (let o = 1; o < n.length; o++) {
2494
+ const { hidden: i, transferTo: u } = this.#r.get(o) ?? {};
2495
+ if (i ? s.push(null) : (s.push(t.length), t.push(n[o]), this.hasIndices && t.indices.push(a[o])), u && n[o] !== void 0) {
2496
+ const c = s[u];
2497
+ if (!c)
2498
+ throw new Error(`Invalid capture transfer to "${c}"`);
2499
+ if (t[c] = n[o], this.hasIndices && (t.indices[c] = a[o]), t.groups) {
2500
+ this.#t || (this.#t = Jt(this.source));
2501
+ const p = this.#t.get(u);
2502
+ p && (t.groups[p] = n[o], this.hasIndices && (t.indices.groups[p] = a[o]));
2503
+ }
2504
+ }
2505
+ }
2506
+ return t;
2507
+ }
2508
+ };
2509
+ function Qt(e, r, t, n) {
2510
+ if (e.index += r, e.input = t, n) {
2511
+ const a = e.indices;
2512
+ for (let o = 0; o < a.length; o++) {
2513
+ const i = a[o];
2514
+ i && (a[o] = [i[0] + r, i[1] + r]);
2515
+ }
2516
+ const s = a.groups;
2517
+ s && Object.keys(s).forEach((o) => {
2518
+ const i = s[o];
2519
+ i && (s[o] = [i[0] + r, i[1] + r]);
2520
+ });
2521
+ }
2522
+ }
2523
+ function qt(e, r) {
2524
+ const t = /* @__PURE__ */ new Map();
2525
+ for (const n of e)
2526
+ t.set(n, {
2527
+ hidden: !0
2528
+ });
2529
+ for (const [n, a] of r)
2530
+ for (const s of a)
2531
+ Q(t, s, {}).transferTo = n;
2532
+ return t;
2533
+ }
2534
+ function Jt(e) {
2535
+ const r = /(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu, t = /* @__PURE__ */ new Map();
2536
+ let n = 0, a = 0, s;
2537
+ for (; s = r.exec(e); ) {
2538
+ const { 0: o, groups: { capture: i, name: u } } = s;
2539
+ o === "[" ? n++ : n ? o === "]" && n-- : i && (a++, u && t.set(a, u));
2540
+ }
2541
+ return t;
2542
+ }
2543
+ function Kt(e, r) {
2544
+ const t = Yt(e, r);
2545
+ return t.options ? new Zt(t.pattern, t.flags, t.options) : new RegExp(t.pattern, t.flags);
2546
+ }
2547
+ function Yt(e, r) {
2548
+ const t = sr(r), n = qe(e, {
2549
+ flags: t.flags,
2550
+ normalizeUnknownPropertyNames: !0,
2551
+ rules: {
2552
+ captureGroup: t.rules.captureGroup,
2553
+ singleline: t.rules.singleline
2554
+ },
2555
+ skipBackrefValidation: t.rules.allowOrphanBackrefs,
2556
+ unicodePropertyMap: ke
2557
+ }), a = It(n, {
2558
+ accuracy: t.accuracy,
2559
+ asciiWordBoundaries: t.rules.asciiWordBoundaries,
2560
+ avoidSubclass: t.avoidSubclass,
2561
+ bestEffortTarget: t.target
2562
+ }), s = Ut(a, t), o = ht(s.pattern, {
2563
+ captureTransfers: s._captureTransfers,
2564
+ hiddenCaptures: s._hiddenCaptures,
2565
+ mode: "external"
2566
+ }), i = dt(o.pattern), u = ft(i.pattern, {
2567
+ captureTransfers: o.captureTransfers,
2568
+ hiddenCaptures: o.hiddenCaptures
2569
+ }), c = {
2570
+ pattern: u.pattern,
2571
+ flags: `${t.hasIndices ? "d" : ""}${t.global ? "g" : ""}${s.flags}${s.options.disable.v ? "u" : "v"}`
2572
+ };
2573
+ if (t.avoidSubclass) {
2574
+ if (t.lazyCompileLength !== 1 / 0)
2575
+ throw new Error("Lazy compilation requires subclass");
2576
+ } else {
2577
+ const p = u.hiddenCaptures.sort((d, w) => d - w), l = Array.from(u.captureTransfers), f = a._strategy, g = c.pattern.length >= t.lazyCompileLength;
2578
+ (p.length || l.length || f || g) && (c.options = {
2579
+ ...p.length && { hiddenCaptures: p },
2580
+ ...l.length && { transfers: l },
2581
+ ...f && { strategy: f },
2582
+ ...g && { lazyCompile: g }
2583
+ });
2584
+ }
2585
+ return c;
2586
+ }
2587
+ function en(e, r) {
2588
+ return Kt(e, {
2589
+ global: !0,
2590
+ hasIndices: !0,
2591
+ lazyCompileLength: 3e3,
2592
+ rules: {
2593
+ allowOrphanBackrefs: !0,
2594
+ asciiWordBoundaries: !0,
2595
+ captureGroup: !0,
2596
+ recursionLimit: 5,
2597
+ singleline: !0
2598
+ },
2599
+ ...r
2600
+ });
2601
+ }
2602
+ function rn(e = {}) {
2603
+ const r = Object.assign({
2604
+ target: "auto",
2605
+ cache: /* @__PURE__ */ new Map()
2606
+ }, e);
2607
+ return r.regexConstructor ||= (t) => en(t, { target: r.target }), {
2608
+ createScanner(t) {
2609
+ return new wr(t, r);
2610
+ },
2611
+ createString(t) {
2612
+ return { content: t };
2613
+ }
2614
+ };
2615
+ }
2616
+ export {
2617
+ wr as J,
2618
+ rn as c,
2619
+ en as d
2620
+ };
2621
+ //# sourceMappingURL=engine-compile-D-n7xALU.js.map