vitepress-openapi 0.2.16 → 0.2.17

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 (256) hide show
  1. package/dist/{OAJSONEditor-BfaXXObm.js → OAJSONEditor-6uG2SFZK.js} +6 -6
  2. package/dist/{OAJSONEditor-fTqoBDiY.cjs → OAJSONEditor-D-Yhb6db.cjs} +4 -4
  3. package/dist/{angular-html-Dl5L_ndT.js → angular-html-BUsdri4u.js} +2 -2
  4. package/dist/angular-html-BzD9NQW5.cjs +1 -0
  5. package/dist/{angular-ts-ByuE09su.cjs → angular-ts-D1fX05LE.cjs} +1 -1
  6. package/dist/{angular-ts-DATG01QH.js → angular-ts-DLzsnsUB.js} +2 -2
  7. package/dist/{apl-REpE4EOr.cjs → apl-Bo4qJ495.cjs} +1 -1
  8. package/dist/{apl-B903Y1iI.js → apl-D9bD1gNv.js} +5 -5
  9. package/dist/{astro-B6XJ1XzP.js → astro-D8q6Gy7P.js} +5 -5
  10. package/dist/{astro-wd_9JORh.cjs → astro-DCjm-pbh.cjs} +1 -1
  11. package/dist/{blade-CJNVUHnO.cjs → blade-B6fombNo.cjs} +1 -1
  12. package/dist/{blade-DU7K6RH3.js → blade-Sc601tfi.js} +7 -7
  13. package/dist/{c-BFcbaMUO.js → c-CfqZXQ2T.js} +1 -1
  14. package/dist/c-Dn__oIvS.cjs +1 -0
  15. package/dist/{chapel-BDpe9hj3.cjs → chapel-D7VyqyYt.cjs} +1 -1
  16. package/dist/{chapel-CyR2VtwX.js → chapel-xSzmwfXQ.js} +1 -1
  17. package/dist/{cobol-CDgLba1H.cjs → cobol-CAKxSKZT.cjs} +1 -1
  18. package/dist/{cobol-ZUVB5fnm.js → cobol-CHAgZDLS.js} +2 -2
  19. package/dist/{coffee-D9j_lkLc.js → coffee-CeAuLo4O.js} +1 -1
  20. package/dist/{coffee-BxVt1U7S.cjs → coffee-JnCJAydr.cjs} +1 -1
  21. package/dist/{core-DCROFLpl.cjs → core-CNg5cW98.cjs} +3 -3
  22. package/dist/{core-ZiHa6_mm.js → core-s1UIPu_z.js} +114 -114
  23. package/dist/cpp-1aC9AELp.cjs +1 -0
  24. package/dist/{cpp-NN3vBjLe.js → cpp-DAEET6ev.js} +3 -3
  25. package/dist/{crystal-Cg-JMHNA.cjs → crystal-BfArRaXr.cjs} +1 -1
  26. package/dist/{crystal-BCSv9BMD.js → crystal-C1qz7UnE.js} +6 -6
  27. package/dist/css-BVuZPxTF.cjs +1 -0
  28. package/dist/{css-BDew7Z2b.js → css-BZAFXxqD.js} +1 -1
  29. package/dist/{dist-Dsa_0AoM.cjs → dist-CpZb0vTN.cjs} +5 -5
  30. package/dist/{dist-CN9hkg4t.js → dist-DV8PoRsD.js} +1 -1
  31. package/dist/{edge-DXKIJOV7.js → edge-CWZ5MU2M.js} +3 -3
  32. package/dist/{edge-CMIfIdja.cjs → edge-JzsrLjb_.cjs} +1 -1
  33. package/dist/{elixir-BjNct3TS.js → elixir-Crtqxz1W.js} +1 -1
  34. package/dist/{elixir-BmJsBojU.cjs → elixir-QzvqYFsV.cjs} +1 -1
  35. package/dist/{elm-CPQSACRc.js → elm-9rlZJ0du.js} +1 -1
  36. package/dist/{elm-rLsOgMwT.cjs → elm-DTTDc-PO.cjs} +1 -1
  37. package/dist/{engine-javascript-CtAw-nzg.js → engine-javascript-CoT6aZfI.js} +2 -2
  38. package/dist/{engine-javascript-B9hqc1Sn.cjs → engine-javascript-DWPOYZRs.cjs} +2 -2
  39. package/dist/{erb-CQUldNHj.js → erb-C6UwauYe.js} +2 -2
  40. package/dist/{erb-CiTsuMX9.cjs → erb-DPWXQYaP.cjs} +1 -1
  41. package/dist/generate-BAgVJTNQ.js +103 -0
  42. package/dist/generate-BVoluROJ.cjs +1 -0
  43. package/dist/generateMarkdown-BYnrcWs0.js +692 -0
  44. package/dist/generateMarkdown-DyJdABwj.cjs +31 -0
  45. package/dist/{git-rebase-CjFDc1kk.cjs → git-rebase-Cwp0uWvv.cjs} +1 -1
  46. package/dist/{git-rebase-5OapP1hA.js → git-rebase-xIgRvJ_q.js} +1 -1
  47. package/dist/{glimmer-js-DJj4duzR.js → glimmer-js-CNGdvMhA.js} +4 -4
  48. package/dist/{glimmer-js-CPs3ZMWA.cjs → glimmer-js-Df_yNNoE.cjs} +1 -1
  49. package/dist/{glimmer-ts-drtM04VL.js → glimmer-ts-Dq4P7Mkf.js} +4 -4
  50. package/dist/{glimmer-ts-CuERAYsk.cjs → glimmer-ts-DsAOmOGY.cjs} +1 -1
  51. package/dist/glsl-CjiF-xkH.cjs +1 -0
  52. package/dist/{glsl-DPV3oxNS.js → glsl-DZfvb15l.js} +2 -2
  53. package/dist/{graphql-b3MqwVzn.js → graphql-CZmb-US9.js} +5 -5
  54. package/dist/graphql-r7AX53Pp.cjs +1 -0
  55. package/dist/{hack-Dnr29SMc.cjs → hack-Cs2ncrxq.cjs} +1 -1
  56. package/dist/{hack-BV8Fk8S0.js → hack-DIIRgI4h.js} +2 -2
  57. package/dist/haml-3bvHwbYf.cjs +1 -0
  58. package/dist/{haml-DYADyojV.js → haml-aboBnjLl.js} +3 -3
  59. package/dist/{handlebars-XYDCrTNM.cjs → handlebars-C7PZ80pQ.cjs} +1 -1
  60. package/dist/{handlebars-D7Wg8zxD.js → handlebars-Z3oHMxHt.js} +4 -4
  61. package/dist/html-CtaiB3Oi.cjs +1 -0
  62. package/dist/{html-oFWSlHLM.js → html-Cz0Xqdyq.js} +3 -3
  63. package/dist/{html-derivative-B_93GY2L.cjs → html-derivative-BYOQo3PG.cjs} +1 -1
  64. package/dist/{html-derivative-7yg_dBt4.js → html-derivative-BjrHnqif.js} +1 -1
  65. package/dist/{http-BpWcfGzO.cjs → http-BA9nOlAq.cjs} +1 -1
  66. package/dist/{http-C-Hd6Lz4.js → http-ieHS9PeS.js} +4 -4
  67. package/dist/{hurl-D53hSFo7.cjs → hurl-DFGEnvSS.cjs} +1 -1
  68. package/dist/{hurl-DjXOdham.js → hurl-Dg9NkXrC.js} +2 -2
  69. package/dist/{java-CcAzK28d.js → java-DCXCvNHA.js} +1 -1
  70. package/dist/java-DTzZZzv7.cjs +1 -0
  71. package/dist/javascript-DOKgRqe8.cjs +1 -0
  72. package/dist/{javascript-CFpHKvG0.js → javascript-f9cb-Pl7.js} +1 -1
  73. package/dist/{jinja-BzmRQBYE.js → jinja-B2DAjJOY.js} +1 -1
  74. package/dist/{jinja-DhuEKxK7.cjs → jinja-DE8g1bjX.cjs} +1 -1
  75. package/dist/{jison-CfNmROg3.js → jison-5BvvygJS.js} +1 -1
  76. package/dist/{jison-DkP6w3Kb.cjs → jison-BCQciWJO.cjs} +1 -1
  77. package/dist/js-yaml-B-Up3zwX.cjs +28 -0
  78. package/dist/{js-yaml-xxJ42vHJ.js → js-yaml-o4oD1Gp3.js} +1 -1
  79. package/dist/json-BcxNDt_H.cjs +1 -0
  80. package/dist/{json-BUhydBtV.js → json-DZfYi9f2.js} +1 -1
  81. package/dist/{jsx-BgXsA-DL.js → jsx-D0ksVAAA.js} +1 -1
  82. package/dist/jsx-DxOBIFYM.cjs +1 -0
  83. package/dist/{julia-CFY_QNYf.cjs → julia-B3y7weJz.cjs} +1 -1
  84. package/dist/{julia-QFUzXXyx.js → julia-Dk4vCuW5.js} +4 -4
  85. package/dist/{just-unRxJYdl.cjs → just-B7ftAo6t.cjs} +1 -1
  86. package/dist/{just-BQQqo7uc.js → just-BDbjiXnk.js} +5 -5
  87. package/dist/{latex-61rhD9l1.js → latex-CC_8gzv9.js} +1 -1
  88. package/dist/{latex-CMXzYJ7A.cjs → latex-QeOQCy8M.cjs} +1 -1
  89. package/dist/{liquid-Dlc1A5fD.cjs → liquid-BVZIda1i.cjs} +1 -1
  90. package/dist/{liquid-DJCM2ZDj.js → liquid-CJVpPXmh.js} +4 -4
  91. package/dist/llms-DWks2vGp.cjs +26 -0
  92. package/dist/llms-yFQ0insM.js +418 -0
  93. package/dist/lua-BoAqNcbB.cjs +1 -0
  94. package/dist/{lua-CQxTc8eB.js → lua-Bwwgpolt.js} +2 -2
  95. package/dist/{marko-lDIEsg9U.cjs → marko-CX9I4GhY.cjs} +1 -1
  96. package/dist/{marko-Dd0qsahM.js → marko-z-UpeqN9.js} +3 -3
  97. package/dist/{mdc-_80um6kj.js → mdc-ANp6h8jQ.js} +2 -2
  98. package/dist/{mdc-CyWtd_UH.cjs → mdc-BPd7ZDIZ.cjs} +1 -1
  99. package/dist/{nginx-DDrDrYzT.js → nginx-BUK9HsFk.js} +1 -1
  100. package/dist/{nginx-Bys-Mt_F.cjs → nginx-CLECRmW5.cjs} +1 -1
  101. package/dist/{nim-B-WnW_TA.cjs → nim-4G662efB.cjs} +1 -1
  102. package/dist/{nim-BKM9BEwv.js → nim-pupbS7ww.js} +6 -6
  103. package/dist/{useOpenapi-Dr3AneGd.js → normalizeExamples-BFR42ENV.js} +4055 -2184
  104. package/dist/normalizeExamples-DNaOGXm0.cjs +45 -0
  105. package/dist/{org-DFPWKQMZ.js → org-B8vjAQ9v.js} +26 -26
  106. package/dist/{org-BQi9zqMo.cjs → org-XYh7PPQk.cjs} +1 -1
  107. package/dist/{perl-BIiCtWTQ.js → perl-ChiZYWB8.js} +5 -5
  108. package/dist/{perl-CkLK5ExR.cjs → perl-Qi4toP6W.cjs} +1 -1
  109. package/dist/{php-CgjckyHQ.cjs → php-93axekrF.cjs} +1 -1
  110. package/dist/{php-DOw5HPZo.js → php-JTDYSOFN.js} +6 -6
  111. package/dist/{pug-ZRJG_B3i.cjs → pug-BHWWe-s7.cjs} +1 -1
  112. package/dist/{pug-BGkLdaFt.js → pug-BR1NlFnA.js} +3 -3
  113. package/dist/{qml-BHFWpY8E.cjs → qml-71TJR8lk.cjs} +1 -1
  114. package/dist/{qml-Bpj0emxI.js → qml-BBCxB4Da.js} +1 -1
  115. package/dist/r-BVapaf2o.cjs +1 -0
  116. package/dist/{r-beK_-64Q.js → r-u-VAz7bR.js} +1 -1
  117. package/dist/{razor-Q3MoMGDn.js → razor-Cqi5RzG6.js} +1 -1
  118. package/dist/{razor-COBqjWAJ.cjs → razor-DMdT60zm.cjs} +1 -1
  119. package/dist/{regexp-BsdKen3m.js → regexp-9Pkh3Nf7.js} +1 -1
  120. package/dist/regexp-CwHm4hi_.cjs +1 -0
  121. package/dist/{rst-B0t1spY-.cjs → rst-BtwmHjj9.cjs} +1 -1
  122. package/dist/{rst-DpM5_nag.js → rst-CLZRH5oU.js} +6 -6
  123. package/dist/{ruby-kbh8ViY5.js → ruby-BZUQEFGQ.js} +12 -12
  124. package/dist/{ruby-CsFQlb64.cjs → ruby-DuGe7Fs0.cjs} +1 -1
  125. package/dist/{sas-CnYUys8b.cjs → sas-B7hIWqYI.cjs} +1 -1
  126. package/dist/{sas-BgQhrf78.js → sas-BO2zDPuE.js} +1 -1
  127. package/dist/scss-BpK0m8eZ.cjs +1 -0
  128. package/dist/{scss-NPDrxHVt.js → scss-OFCrSwaR.js} +2 -2
  129. package/dist/{shellscript-DhwNgJpI.js → shellscript-BNTFxSmg.js} +1 -1
  130. package/dist/shellscript-KJDkFDLp.cjs +1 -0
  131. package/dist/{shellsession-BzIHueWc.js → shellsession-B5j5FuGA.js} +1 -1
  132. package/dist/{shellsession-D7Pf_B_j.cjs → shellsession-DWalcvtJ.cjs} +1 -1
  133. package/dist/{soy-Bacl__9y.cjs → soy-BQn3ItqC.cjs} +1 -1
  134. package/dist/{soy-xHdJtla5.js → soy-C2Q794LP.js} +1 -1
  135. package/dist/{sql-AGUE5-dk.js → sql-8JHRpHTE.js} +1 -1
  136. package/dist/sql-C5y5nUuw.cjs +1 -0
  137. package/dist/{stata-BpsgLaw1.js → stata-BrNyU7bS.js} +1 -1
  138. package/dist/{stata-ByZ8yj3l.cjs → stata-DyBO95gA.cjs} +1 -1
  139. package/dist/{surrealql-Dfwdqk76.cjs → surrealql-CAAIvFqO.cjs} +1 -1
  140. package/dist/{surrealql-CE6SK0JG.js → surrealql-DgN6gei3.js} +1 -1
  141. package/dist/{svelte-DRtnTFsc.cjs → svelte-DGjw_UH1.cjs} +1 -1
  142. package/dist/{svelte-B8Y6hosE.js → svelte-FhQBX-tv.js} +3 -3
  143. package/dist/{templ-BofvAMnQ.js → templ-BUggPx5p.js} +2 -2
  144. package/dist/{templ-BIgW0e2S.cjs → templ-Cxuj5rzV.cjs} +1 -1
  145. package/dist/tex-B3aY5DbH.cjs +1 -0
  146. package/dist/{tex-CLtxJoaQ.js → tex-BlOdu2Xy.js} +2 -2
  147. package/dist/{ts-tags-Cv2SdymF.cjs → ts-tags-BymwG1F9.cjs} +1 -1
  148. package/dist/{ts-tags-DRRvATIb.js → ts-tags-DZBZzNkR.js} +7 -7
  149. package/dist/tsx-DgA8B92F.cjs +1 -0
  150. package/dist/{tsx--6NZUZt2.js → tsx-mByJmMSt.js} +1 -1
  151. package/dist/{twig-BTg98s4P.js → twig--2v8RtVi.js} +5 -5
  152. package/dist/{twig-C8K9fEv7.cjs → twig-CWwcCfHy.cjs} +1 -1
  153. package/dist/types/src/cli.d.ts +1 -0
  154. package/dist/types/src/components/Common/Highlight/OAShiki.vue.d.ts +2 -2
  155. package/dist/types/src/components/Common/Highlight/OAVueJsonPretty.vue.d.ts +2 -2
  156. package/dist/types/src/components/Common/OACodeBlock.vue.d.ts +2 -2
  157. package/dist/types/src/components/Common/OACodeValue.vue.d.ts +2 -2
  158. package/dist/types/src/components/Common/OAJSONEditor.vue.d.ts +2 -2
  159. package/dist/types/src/components/Parameter/OAParameterAttribute.vue.d.ts +2 -2
  160. package/dist/types/src/components/Playground/OAPlaygroundParameterInput.vue.d.ts +2 -2
  161. package/dist/types/src/components/ui/badge/index.d.ts +1 -1
  162. package/dist/types/src/components/ui/button/index.d.ts +1 -1
  163. package/dist/types/src/index.d.ts +18 -3
  164. package/dist/types/src/lib/codeSamples/buildOperationRequest.d.ts +15 -0
  165. package/dist/types/src/lib/codeSamples/buildRequest.d.ts +6 -0
  166. package/dist/types/src/lib/constants.d.ts +3 -0
  167. package/dist/types/src/lib/markdown/generateMarkdown.d.ts +111 -0
  168. package/dist/types/src/lib/markdown/llmsSite.d.ts +137 -0
  169. package/dist/types/src/lib/markdown/markdownUtils.d.ts +35 -0
  170. package/dist/types/src/lib/markdown/operationToMarkdown.d.ts +66 -0
  171. package/dist/types/src/lib/parser/getSchemaUi.d.ts +1 -0
  172. package/dist/types/src/node/cli.d.ts +5 -0
  173. package/dist/types/src/node/generate.d.ts +38 -0
  174. package/dist/types/src/node/llms.d.ts +99 -0
  175. package/dist/types/src/node/llmsPlugin.d.ts +10 -0
  176. package/dist/typescript-BWfpZQ2O.cjs +1 -0
  177. package/dist/{typescript-DBKp3fLc.js → typescript-DF15DAwn.js} +1 -1
  178. package/dist/{typst-wzR7m38K.cjs → typst-BEqsnZtv.cjs} +1 -1
  179. package/dist/{typst-BMPcWpxF.js → typst-uhRd3eU5.js} +29 -29
  180. package/dist/useSidebar-B2LH297o.cjs +6 -0
  181. package/dist/useSidebar-CoebjdWM.js +313 -0
  182. package/dist/vitepress-openapi.cli.cjs.js +22 -0
  183. package/dist/vitepress-openapi.cli.es.js +67 -0
  184. package/dist/vitepress-openapi.client.cjs.js +1 -1
  185. package/dist/vitepress-openapi.client.es.js +7 -6
  186. package/dist/vitepress-openapi.node.cjs.js +1 -1
  187. package/dist/vitepress-openapi.node.es.js +47 -2
  188. package/dist/vitepress-openapi.vue.cjs.js +1 -1
  189. package/dist/vitepress-openapi.vue.es.js +4 -3
  190. package/dist/{vue-DLzq6csB.cjs → vue-BQl-5Fd6.cjs} +1 -1
  191. package/dist/{vue-DWAybQg2.js → vue-CSJXDMn1.js} +6 -6
  192. package/dist/{vue-CPzdKbEl.js → vue-DIM9jH1x.js} +2483 -4670
  193. package/dist/vue-DwsEa2e4.cjs +7 -0
  194. package/dist/{vue-html-IeY1Py_m.cjs → vue-html-AqZQgz92.cjs} +1 -1
  195. package/dist/{vue-html-BSam2lRJ.js → vue-html-DYm4V3uo.js} +1 -1
  196. package/dist/{vue-vine-icUsAH0H.js → vue-vine-BLrCVeql.js} +3 -3
  197. package/dist/{vue-vine-Db6Q7xvd.cjs → vue-vine-C1QCIUv6.cjs} +1 -1
  198. package/dist/xml-DbN80t5u.cjs +1 -0
  199. package/dist/{xml-Cj_af9Z1.js → xml-Df1jLF7H.js} +2 -2
  200. package/dist/{xsl-DblyyLAc.cjs → xsl-7fKL5NbN.cjs} +1 -1
  201. package/dist/{xsl-D-tBFomZ.js → xsl-C2LJLnIq.js} +1 -1
  202. package/dist/{yaml-D4q2Gm3x.js → yaml-DABI1u00.js} +1 -1
  203. package/dist/yaml-DNB0t8B9.cjs +1 -0
  204. package/package.json +4 -1
  205. package/src/cli.ts +6 -0
  206. package/src/composables/useSidebar.ts +1 -1
  207. package/src/index.ts +26 -5
  208. package/src/lib/codeSamples/buildHarRequest.ts +5 -0
  209. package/src/lib/codeSamples/buildOperationRequest.ts +52 -0
  210. package/src/lib/codeSamples/buildRequest.ts +49 -28
  211. package/src/lib/constants.ts +5 -0
  212. package/src/lib/examples/getSchemaUiJson.ts +1 -1
  213. package/src/lib/markdown/generateMarkdown.ts +451 -0
  214. package/src/lib/markdown/llmsSite.ts +475 -0
  215. package/src/lib/markdown/markdownUtils.ts +104 -0
  216. package/src/lib/markdown/operationToMarkdown.ts +834 -0
  217. package/src/lib/parser/generateCodeSamples.ts +6 -31
  218. package/src/lib/parser/generateMissingOperationIds.ts +1 -1
  219. package/src/lib/parser/generateMissingSummary.ts +1 -1
  220. package/src/lib/parser/generateMissingTags.ts +1 -1
  221. package/src/lib/parser/generateRequestBodyUi.ts +1 -1
  222. package/src/lib/parser/generateResponseUi.ts +1 -1
  223. package/src/lib/parser/generateSecurityUi.ts +1 -1
  224. package/src/lib/parser/getSchemaUi.ts +7 -3
  225. package/src/lib/sidebar/generateSidebarItemsByPaths.ts +1 -1
  226. package/src/lib/spec/createOpenApiSpec.ts +1 -1
  227. package/src/node/cli.ts +107 -0
  228. package/src/node/generate.ts +207 -0
  229. package/src/node/llms.ts +431 -0
  230. package/src/node/llmsPlugin.ts +29 -0
  231. package/dist/angular-html-Dk2XGZ_t.cjs +0 -1
  232. package/dist/c-DkEd8-YD.cjs +0 -1
  233. package/dist/cpp-BPWm4FiD.cjs +0 -1
  234. package/dist/css-Cca861pZ.cjs +0 -1
  235. package/dist/glsl-vKFvWHtP.cjs +0 -1
  236. package/dist/graphql-DG0SCdKc.cjs +0 -1
  237. package/dist/haml-cdCU_QQV.cjs +0 -1
  238. package/dist/html-DOohh95v.cjs +0 -1
  239. package/dist/java-YSQdp8jH.cjs +0 -1
  240. package/dist/javascript-CcZ4Z9Pe.cjs +0 -1
  241. package/dist/js-yaml-D7HstSVO.cjs +0 -28
  242. package/dist/json-BuUbxxHW.cjs +0 -1
  243. package/dist/jsx-LBqujUwg.cjs +0 -1
  244. package/dist/lua-De5jN6Ym.cjs +0 -1
  245. package/dist/r-CP5u50Ge.cjs +0 -1
  246. package/dist/regexp-Cquj00oh.cjs +0 -1
  247. package/dist/scss-FW7lpUTk.cjs +0 -1
  248. package/dist/shellscript-C1Cbf_Wu.cjs +0 -1
  249. package/dist/sql-BCbZO9Vk.cjs +0 -1
  250. package/dist/tex-UEva1VjO.cjs +0 -1
  251. package/dist/tsx-CRyT9Jau.cjs +0 -1
  252. package/dist/typescript-BbUbA8EZ.cjs +0 -1
  253. package/dist/useOpenapi-Bt0dpttK.cjs +0 -50
  254. package/dist/vue-Da82SaTm.cjs +0 -7
  255. package/dist/xml-An_1AySF.cjs +0 -1
  256. package/dist/yaml-BZ7EODQj.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { E as e, et as t } from "./useOpenapi-Dr3AneGd.js";
1
+ import { it as e, k as t } from "./normalizeExamples-BFR42ENV.js";
2
2
  //#region node_modules/.pnpm/@shikijs+types@4.4.3/node_modules/@shikijs/types/dist/index.mjs
3
3
  var n = class extends Error {
4
4
  constructor(e) {
@@ -73,8 +73,8 @@ function g(e) {
73
73
  return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
74
74
  }
75
75
  var _ = class {
76
- constructor(t) {
77
- e(this, "cache", /* @__PURE__ */ new Map()), this.fn = t;
76
+ constructor(e) {
77
+ t(this, "cache", /* @__PURE__ */ new Map()), this.fn = e;
78
78
  }
79
79
  get(e) {
80
80
  if (this.cache.has(e)) return this.cache.get(e);
@@ -82,8 +82,8 @@ var _ = class {
82
82
  return this.cache.set(e, t), t;
83
83
  }
84
84
  }, v = class {
85
- constructor(t, n, r) {
86
- e(this, "_cachedMatchRoot", new _((e) => this._root.match(e))), this._colorMap = t, this._defaults = n, this._root = r;
85
+ constructor(e, n, r) {
86
+ t(this, "_cachedMatchRoot", new _((e) => this._root.match(e))), this._colorMap = e, this._defaults = n, this._root = r;
87
87
  }
88
88
  static createFromRawTheme(e, t) {
89
89
  return this.createFromParsedTheme(ie(e), t);
@@ -222,10 +222,10 @@ function oe(e, t) {
222
222
  return new v(a, o, s);
223
223
  }
224
224
  var se = class {
225
- constructor(t) {
226
- if (e(this, "_isFrozen", void 0), e(this, "_lastColorId", void 0), e(this, "_id2color", void 0), e(this, "_color2id", void 0), this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(t)) {
225
+ constructor(e) {
226
+ if (t(this, "_isFrozen", void 0), t(this, "_lastColorId", void 0), t(this, "_id2color", void 0), t(this, "_color2id", void 0), this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(e)) {
227
227
  this._isFrozen = !0;
228
- for (let e = 0, n = t.length; e < n; e++) this._color2id[t[e]] = e, this._id2color[e] = t[e];
228
+ for (let t = 0, n = e.length; t < n; t++) this._color2id[e[t]] = t, this._id2color[t] = e[t];
229
229
  } else this._isFrozen = !1;
230
230
  }
231
231
  getId(e) {
@@ -239,12 +239,12 @@ var se = class {
239
239
  getColorMap() {
240
240
  return this._id2color.slice(0);
241
241
  }
242
- }, ce = Object.freeze([]), le = class t {
243
- constructor(t, n, r, i, a) {
244
- e(this, "scopeDepth", void 0), e(this, "parentScopes", void 0), e(this, "fontStyle", void 0), e(this, "foreground", void 0), e(this, "background", void 0), this.scopeDepth = t, this.parentScopes = n || ce, this.fontStyle = r, this.foreground = i, this.background = a;
242
+ }, ce = Object.freeze([]), le = class e {
243
+ constructor(e, n, r, i, a) {
244
+ t(this, "scopeDepth", void 0), t(this, "parentScopes", void 0), t(this, "fontStyle", void 0), t(this, "foreground", void 0), t(this, "background", void 0), this.scopeDepth = e, this.parentScopes = n || ce, this.fontStyle = r, this.foreground = i, this.background = a;
245
245
  }
246
246
  clone() {
247
- return new t(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
247
+ return new e(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
248
248
  }
249
249
  static cloneArr(e) {
250
250
  let t = [];
@@ -254,9 +254,9 @@ var se = class {
254
254
  acceptOverwrite(e, t, n, r) {
255
255
  this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, t !== -1 && (this.fontStyle = t), n !== 0 && (this.foreground = n), r !== 0 && (this.background = r);
256
256
  }
257
- }, ue = class t {
258
- constructor(t, n = [], r = {}) {
259
- e(this, "_rulesWithParentScopes", void 0), this._mainRule = t, this._children = r, this._rulesWithParentScopes = n;
257
+ }, ue = class e {
258
+ constructor(e, n = [], r = {}) {
259
+ t(this, "_rulesWithParentScopes", void 0), this._mainRule = e, this._children = r, this._rulesWithParentScopes = n;
260
260
  }
261
261
  static _cmpBySpecificity(e, t) {
262
262
  if (e.scopeDepth !== t.scopeDepth) return t.scopeDepth - e.scopeDepth;
@@ -268,23 +268,23 @@ var se = class {
268
268
  }
269
269
  return t.parentScopes.length - e.parentScopes.length;
270
270
  }
271
- match(e) {
272
- if (e !== "") {
273
- let t = e.indexOf("."), n, r;
274
- if (t === -1 ? (n = e, r = "") : (n = e.substring(0, t), r = e.substring(t + 1)), this._children.hasOwnProperty(n)) return this._children[n].match(r);
271
+ match(t) {
272
+ if (t !== "") {
273
+ let e = t.indexOf("."), n, r;
274
+ if (e === -1 ? (n = t, r = "") : (n = t.substring(0, e), r = t.substring(e + 1)), this._children.hasOwnProperty(n)) return this._children[n].match(r);
275
275
  }
276
276
  let n = this._rulesWithParentScopes.concat(this._mainRule);
277
- return n.sort(t._cmpBySpecificity), n;
277
+ return n.sort(e._cmpBySpecificity), n;
278
278
  }
279
- insert(e, n, r, i, a, o) {
279
+ insert(t, n, r, i, a, o) {
280
280
  if (n === "") {
281
- this._doInsertHere(e, r, i, a, o);
281
+ this._doInsertHere(t, r, i, a, o);
282
282
  return;
283
283
  }
284
284
  let s = n.indexOf("."), c, l;
285
285
  s === -1 ? (c = n, l = "") : (c = n.substring(0, s), l = n.substring(s + 1));
286
286
  let u;
287
- this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new t(this._mainRule.clone(), le.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(e + 1, l, r, i, a, o);
287
+ this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(), le.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(t + 1, l, r, i, a, o);
288
288
  }
289
289
  _doInsertHere(e, t, n, r, i) {
290
290
  if (t === null) {
@@ -433,7 +433,7 @@ var x = class {
433
433
  }
434
434
  }, ve = class {
435
435
  constructor() {
436
- e(this, "_references", []), e(this, "_seenReferenceKeys", /* @__PURE__ */ new Set()), e(this, "visitedRule", /* @__PURE__ */ new Set());
436
+ t(this, "_references", []), t(this, "_seenReferenceKeys", /* @__PURE__ */ new Set()), t(this, "visitedRule", /* @__PURE__ */ new Set());
437
437
  }
438
438
  get references() {
439
439
  return this._references;
@@ -443,8 +443,8 @@ var x = class {
443
443
  this._seenReferenceKeys.has(t) || (this._seenReferenceKeys.add(t), this._references.push(e));
444
444
  }
445
445
  }, ye = class {
446
- constructor(t, n) {
447
- e(this, "seenFullScopeRequests", /* @__PURE__ */ new Set()), e(this, "seenPartialScopeRequests", /* @__PURE__ */ new Set()), e(this, "Q", void 0), this.repo = t, this.initialScopeName = n, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new x(this.initialScopeName)];
446
+ constructor(e, n) {
447
+ t(this, "seenFullScopeRequests", /* @__PURE__ */ new Set()), t(this, "seenPartialScopeRequests", /* @__PURE__ */ new Set()), t(this, "Q", void 0), this.repo = e, this.initialScopeName = n, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new x(this.initialScopeName)];
448
448
  }
449
449
  processQueue() {
450
450
  let e = this.Q;
@@ -537,23 +537,23 @@ function Ce(e, t, n) {
537
537
  }
538
538
  var we = class {
539
539
  constructor() {
540
- e(this, "kind", 0);
540
+ t(this, "kind", 0);
541
541
  }
542
542
  }, Te = class {
543
543
  constructor() {
544
- e(this, "kind", 1);
544
+ t(this, "kind", 1);
545
545
  }
546
546
  }, Ee = class {
547
- constructor(t) {
548
- e(this, "kind", 2), this.ruleName = t;
547
+ constructor(e) {
548
+ t(this, "kind", 2), this.ruleName = e;
549
549
  }
550
550
  }, De = class {
551
- constructor(t) {
552
- e(this, "kind", 3), this.scopeName = t;
551
+ constructor(e) {
552
+ t(this, "kind", 3), this.scopeName = e;
553
553
  }
554
554
  }, Oe = class {
555
- constructor(t, n) {
556
- e(this, "kind", 4), this.scopeName = t, this.ruleName = n;
555
+ constructor(e, n) {
556
+ t(this, "kind", 4), this.scopeName = e, this.ruleName = n;
557
557
  }
558
558
  };
559
559
  function ke(e) {
@@ -570,8 +570,8 @@ function Fe(e) {
570
570
  return e;
571
571
  }
572
572
  var S = class {
573
- constructor(t, n, r, i) {
574
- e(this, "$location", void 0), e(this, "id", void 0), e(this, "_nameIsCapturing", void 0), e(this, "_name", void 0), e(this, "_contentNameIsCapturing", void 0), e(this, "_contentName", void 0), this.$location = t, this.id = n, this._name = r || null, this._nameIsCapturing = f.hasCaptures(this._name), this._contentName = i || null, this._contentNameIsCapturing = f.hasCaptures(this._contentName);
573
+ constructor(e, n, r, i) {
574
+ t(this, "$location", void 0), t(this, "id", void 0), t(this, "_nameIsCapturing", void 0), t(this, "_name", void 0), t(this, "_contentNameIsCapturing", void 0), t(this, "_contentName", void 0), this.$location = e, this.id = n, this._name = r || null, this._nameIsCapturing = f.hasCaptures(this._name), this._contentName = i || null, this._contentNameIsCapturing = f.hasCaptures(this._contentName);
575
575
  }
576
576
  get debugName() {
577
577
  let e = this.$location ? `${u(this.$location.filename)}:${this.$location.line}` : "unknown";
@@ -584,8 +584,8 @@ var S = class {
584
584
  return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : f.replaceCaptures(this._contentName, e, t);
585
585
  }
586
586
  }, Ie = class extends S {
587
- constructor(t, n, r, i, a) {
588
- super(t, n, r, i), e(this, "retokenizeCapturedWithRuleId", void 0), this.retokenizeCapturedWithRuleId = a;
587
+ constructor(e, n, r, i, a) {
588
+ super(e, n, r, i), t(this, "retokenizeCapturedWithRuleId", void 0), this.retokenizeCapturedWithRuleId = a;
589
589
  }
590
590
  dispose() {}
591
591
  collectPatterns(e, t) {
@@ -598,8 +598,8 @@ var S = class {
598
598
  throw Error("Not supported!");
599
599
  }
600
600
  }, Le = class extends S {
601
- constructor(t, n, r, i, a) {
602
- super(t, n, r, null), e(this, "_match", void 0), e(this, "captures", void 0), e(this, "_cachedCompiledPatterns", void 0), this._match = new C(i, this.id), this.captures = a, this._cachedCompiledPatterns = null;
601
+ constructor(e, n, r, i, a) {
602
+ super(e, n, r, null), t(this, "_match", void 0), t(this, "captures", void 0), t(this, "_cachedCompiledPatterns", void 0), this._match = new C(i, this.id), this.captures = a, this._cachedCompiledPatterns = null;
603
603
  }
604
604
  dispose() {
605
605
  this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
@@ -620,8 +620,8 @@ var S = class {
620
620
  return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new w(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
621
621
  }
622
622
  }, Re = class extends S {
623
- constructor(t, n, r, i, a) {
624
- super(t, n, r, i), e(this, "hasMissingPatterns", void 0), e(this, "patterns", void 0), e(this, "_cachedCompiledPatterns", void 0), this.patterns = a.patterns, this.hasMissingPatterns = a.hasMissingPatterns, this._cachedCompiledPatterns = null;
623
+ constructor(e, n, r, i, a) {
624
+ super(e, n, r, i), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), this.patterns = a.patterns, this.hasMissingPatterns = a.hasMissingPatterns, this._cachedCompiledPatterns = null;
625
625
  }
626
626
  dispose() {
627
627
  this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
@@ -639,8 +639,8 @@ var S = class {
639
639
  return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new w(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
640
640
  }
641
641
  }, ze = class extends S {
642
- constructor(t, n, r, i, a, o, s, c, l, u) {
643
- super(t, n, r, i), e(this, "_begin", void 0), e(this, "beginCaptures", void 0), e(this, "_end", void 0), e(this, "endHasBackReferences", void 0), e(this, "endCaptures", void 0), e(this, "applyEndPatternLast", void 0), e(this, "hasMissingPatterns", void 0), e(this, "patterns", void 0), e(this, "_cachedCompiledPatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this._end = new C(s || "￿", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = c, this.applyEndPatternLast = l || !1, this.patterns = u.patterns, this.hasMissingPatterns = u.hasMissingPatterns, this._cachedCompiledPatterns = null;
642
+ constructor(e, n, r, i, a, o, s, c, l, u) {
643
+ super(e, n, r, i), t(this, "_begin", void 0), t(this, "beginCaptures", void 0), t(this, "_end", void 0), t(this, "endHasBackReferences", void 0), t(this, "endCaptures", void 0), t(this, "applyEndPatternLast", void 0), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this._end = new C(s || "￿", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = c, this.applyEndPatternLast = l || !1, this.patterns = u.patterns, this.hasMissingPatterns = u.hasMissingPatterns, this._cachedCompiledPatterns = null;
644
644
  }
645
645
  dispose() {
646
646
  this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
@@ -672,8 +672,8 @@ var S = class {
672
672
  return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, t) : this._cachedCompiledPatterns.setSource(0, t)), this._cachedCompiledPatterns;
673
673
  }
674
674
  }, Be = class extends S {
675
- constructor(t, n, r, i, a, o, s, c, l) {
676
- super(t, n, r, i), e(this, "_begin", void 0), e(this, "beginCaptures", void 0), e(this, "whileCaptures", void 0), e(this, "_while", void 0), e(this, "whileHasBackReferences", void 0), e(this, "hasMissingPatterns", void 0), e(this, "patterns", void 0), e(this, "_cachedCompiledPatterns", void 0), e(this, "_cachedCompiledWhilePatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this.whileCaptures = c, this._while = new C(s, Ne), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
675
+ constructor(e, n, r, i, a, o, s, c, l) {
676
+ super(e, n, r, i), t(this, "_begin", void 0), t(this, "beginCaptures", void 0), t(this, "whileCaptures", void 0), t(this, "_while", void 0), t(this, "whileHasBackReferences", void 0), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), t(this, "_cachedCompiledWhilePatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this.whileCaptures = c, this._while = new C(s, Ne), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
677
677
  }
678
678
  dispose() {
679
679
  this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null), this._cachedCompiledWhilePatterns && (this._cachedCompiledWhilePatterns.dispose(), this._cachedCompiledWhilePatterns = null);
@@ -782,20 +782,20 @@ var S = class {
782
782
  hasMissingPatterns: (t ? t.length : 0) !== i.length
783
783
  };
784
784
  }
785
- }, C = class t {
786
- constructor(t, n) {
787
- if (e(this, "source", void 0), e(this, "ruleId", void 0), e(this, "hasAnchor", void 0), e(this, "hasBackReferences", void 0), e(this, "_anchorCache", void 0), t && typeof t == "string") {
788
- let e = t.length, n = 0, r = [], i = !1;
789
- for (let a = 0; a < e; a++) if (t.charAt(a) === "\\" && a + 1 < e) {
790
- let e = t.charAt(a + 1);
791
- e === "z" ? (r.push(t.substring(n, a)), r.push("$(?!\\n)(?<!\\n)"), n = a + 2) : (e === "A" || e === "G") && (i = !0), a++;
785
+ }, C = class e {
786
+ constructor(e, n) {
787
+ if (t(this, "source", void 0), t(this, "ruleId", void 0), t(this, "hasAnchor", void 0), t(this, "hasBackReferences", void 0), t(this, "_anchorCache", void 0), e && typeof e == "string") {
788
+ let t = e.length, n = 0, r = [], i = !1;
789
+ for (let a = 0; a < t; a++) if (e.charAt(a) === "\\" && a + 1 < t) {
790
+ let t = e.charAt(a + 1);
791
+ t === "z" ? (r.push(e.substring(n, a)), r.push("$(?!\\n)(?<!\\n)"), n = a + 2) : (t === "A" || t === "G") && (i = !0), a++;
792
792
  }
793
- this.hasAnchor = i, n === 0 ? this.source = t : (r.push(t.substring(n, e)), this.source = r.join(""));
794
- } else this.hasAnchor = !1, this.source = t;
793
+ this.hasAnchor = i, n === 0 ? this.source = e : (r.push(e.substring(n, t)), this.source = r.join(""));
794
+ } else this.hasAnchor = !1, this.source = e;
795
795
  this._anchorCache = this.hasAnchor ? this._buildAnchorCache() : null, this.ruleId = n, this.hasBackReferences = typeof this.source == "string" && Ae.test(this.source);
796
796
  }
797
797
  clone() {
798
- return new t(this.source, this.ruleId);
798
+ return new e(this.source, this.ruleId);
799
799
  }
800
800
  setSource(e) {
801
801
  this.source !== e && (this.source = e, this.hasAnchor && (this._anchorCache = this._buildAnchorCache()));
@@ -821,7 +821,7 @@ var S = class {
821
821
  }
822
822
  }, w = class {
823
823
  constructor() {
824
- e(this, "_items", void 0), e(this, "_hasAnchors", void 0), e(this, "_cached", void 0), e(this, "_anchorCache", void 0), this._items = [], this._hasAnchors = !1, this._cached = null, this._anchorCache = {
824
+ t(this, "_items", void 0), t(this, "_hasAnchors", void 0), t(this, "_cached", void 0), t(this, "_anchorCache", void 0), this._items = [], this._hasAnchors = !1, this._cached = null, this._anchorCache = {
825
825
  A0_G0: null,
826
826
  A0_G1: null,
827
827
  A1_G0: null,
@@ -860,8 +860,8 @@ var S = class {
860
860
  return new He(e, this._items.map((e) => e.resolveAnchors(t, n)), this._items.map((e) => e.ruleId));
861
861
  }
862
862
  }, He = class {
863
- constructor(t, n, r) {
864
- e(this, "scanner", void 0), this.regExps = n, this.rules = r, this.scanner = t.createOnigScanner(n);
863
+ constructor(e, n, r) {
864
+ t(this, "scanner", void 0), this.regExps = n, this.rules = r, this.scanner = e.createOnigScanner(n);
865
865
  }
866
866
  dispose() {
867
867
  typeof this.scanner.dispose == "function" && this.scanner.dispose();
@@ -882,21 +882,21 @@ var S = class {
882
882
  constructor(e, t) {
883
883
  this.languageId = e, this.tokenType = t;
884
884
  }
885
- }, We = (r = class t {
886
- constructor(t, n) {
887
- e(this, "_defaultAttributes", void 0), e(this, "_embeddedLanguagesMatcher", void 0), e(this, "_getBasicScopeAttributes", new _((e) => new Ue(this._scopeToLanguage(e), this._toStandardTokenType(e)))), this._defaultAttributes = new Ue(t, 8), this._embeddedLanguagesMatcher = new Ge(Object.entries(n || {}));
885
+ }, We = (r = class e {
886
+ constructor(e, n) {
887
+ t(this, "_defaultAttributes", void 0), t(this, "_embeddedLanguagesMatcher", void 0), t(this, "_getBasicScopeAttributes", new _((e) => new Ue(this._scopeToLanguage(e), this._toStandardTokenType(e)))), this._defaultAttributes = new Ue(e, 8), this._embeddedLanguagesMatcher = new Ge(Object.entries(n || {}));
888
888
  }
889
889
  getDefaultAttributes() {
890
890
  return this._defaultAttributes;
891
891
  }
892
- getBasicScopeAttributes(e) {
893
- return e === null ? t._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(e);
892
+ getBasicScopeAttributes(t) {
893
+ return t === null ? e._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(t);
894
894
  }
895
895
  _scopeToLanguage(e) {
896
896
  return this._embeddedLanguagesMatcher.match(e) || 0;
897
897
  }
898
- _toStandardTokenType(e) {
899
- let n = e.match(t.STANDARD_TOKEN_TYPE_REGEXP);
898
+ _toStandardTokenType(t) {
899
+ let n = t.match(e.STANDARD_TOKEN_TYPE_REGEXP);
900
900
  if (!n) return 8;
901
901
  switch (n[1]) {
902
902
  case "comment": return 1;
@@ -906,13 +906,13 @@ var S = class {
906
906
  }
907
907
  throw Error("Unexpected match for standard token type!");
908
908
  }
909
- }, e(r, "_NULL_SCOPE_METADATA", new Ue(0, 0)), e(r, "STANDARD_TOKEN_TYPE_REGEXP", /\b(comment|string|regex|meta\.embedded)\b/), r), Ge = class {
910
- constructor(t) {
911
- if (e(this, "values", void 0), e(this, "scopesRegExp", void 0), t.length === 0) this.values = null, this.scopesRegExp = null;
909
+ }, t(r, "_NULL_SCOPE_METADATA", new Ue(0, 0)), t(r, "STANDARD_TOKEN_TYPE_REGEXP", /\b(comment|string|regex|meta\.embedded)\b/), r), Ge = class {
910
+ constructor(e) {
911
+ if (t(this, "values", void 0), t(this, "scopesRegExp", void 0), e.length === 0) this.values = null, this.scopesRegExp = null;
912
912
  else {
913
- this.values = new Map(t);
914
- let e = t.map(([e, t]) => g(e));
915
- e.sort(), e.reverse(), this.scopesRegExp = RegExp(`^((${e.join(")|(")}))($|\\.)`, "");
913
+ this.values = new Map(e);
914
+ let t = e.map(([e, t]) => g(e));
915
+ t.sort(), t.reverse(), this.scopesRegExp = RegExp(`^((${t.join(")|(")}))($|\\.)`, "");
916
916
  }
917
917
  }
918
918
  match(e) {
@@ -1079,8 +1079,8 @@ function T(e, t, n, r, i, a, o) {
1079
1079
  for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
1080
1080
  }
1081
1081
  var et = class {
1082
- constructor(t, n) {
1083
- e(this, "scopes", void 0), e(this, "endPos", void 0), this.scopes = t, this.endPos = n;
1082
+ constructor(e, n) {
1083
+ t(this, "scopes", void 0), t(this, "endPos", void 0), this.scopes = e, this.endPos = n;
1084
1084
  }
1085
1085
  };
1086
1086
  function tt(e, t, n, r, i, a, o, s) {
@@ -1111,8 +1111,8 @@ function it(e, t) {
1111
1111
  return e.length > n && e.substr(0, n) === t && e[n] === ".";
1112
1112
  }
1113
1113
  var at = class {
1114
- constructor(t, n, r, i, a, o, s, c) {
1115
- if (e(this, "_rootId", void 0), e(this, "_lastRuleId", void 0), e(this, "_ruleId2desc", void 0), e(this, "_includedGrammars", void 0), e(this, "_grammarRepository", void 0), e(this, "_grammar", void 0), e(this, "_injections", void 0), e(this, "_basicScopeAttributesProvider", void 0), e(this, "_tokenTypeMatchers", void 0), this._rootScopeName = t, this.balancedBracketSelectors = o, this._onigLib = c, this._basicScopeAttributesProvider = new We(r, i), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = s, this._grammar = ot(n, null), this._injections = null, this._tokenTypeMatchers = [], a) for (let e of Object.keys(a)) {
1114
+ constructor(e, n, r, i, a, o, s, c) {
1115
+ if (t(this, "_rootId", void 0), t(this, "_lastRuleId", void 0), t(this, "_ruleId2desc", void 0), t(this, "_includedGrammars", void 0), t(this, "_grammarRepository", void 0), t(this, "_grammar", void 0), t(this, "_injections", void 0), t(this, "_basicScopeAttributesProvider", void 0), t(this, "_tokenTypeMatchers", void 0), this._rootScopeName = e, this.balancedBracketSelectors = o, this._onigLib = c, this._basicScopeAttributesProvider = new We(r, i), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = s, this._grammar = ot(n, null), this._injections = null, this._tokenTypeMatchers = [], a) for (let e of Object.keys(a)) {
1116
1116
  let t = pe(e, rt);
1117
1117
  for (let n of t) this._tokenTypeMatchers.push({
1118
1118
  matcher: n.matcher,
@@ -1274,12 +1274,12 @@ var E = class e {
1274
1274
  }
1275
1275
  return n === e ? t.reverse() : void 0;
1276
1276
  }
1277
- }, st = (i = class t {
1278
- constructor(t, n, r, i, a, o, s, c) {
1279
- e(this, "_stackElementBrand", void 0), e(this, "_enterPos", void 0), e(this, "_anchorPos", void 0), e(this, "depth", void 0), this.parent = t, this.ruleId = n, this.beginRuleCapturedEOL = a, this.endRule = o, this.nameScopesList = s, this.contentNameScopesList = c, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = r, this._anchorPos = i;
1277
+ }, st = (i = class e {
1278
+ constructor(e, n, r, i, a, o, s, c) {
1279
+ t(this, "_stackElementBrand", void 0), t(this, "_enterPos", void 0), t(this, "_anchorPos", void 0), t(this, "depth", void 0), this.parent = e, this.ruleId = n, this.beginRuleCapturedEOL = a, this.endRule = o, this.nameScopesList = s, this.contentNameScopesList = c, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = r, this._anchorPos = i;
1280
1280
  }
1281
- equals(e) {
1282
- return e !== null && t._equals(this, e);
1281
+ equals(t) {
1282
+ return t !== null && e._equals(this, t);
1283
1283
  }
1284
1284
  static _equals(e, t) {
1285
1285
  return e === t ? !0 : this._structuralEquals(e, t) ? E.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
@@ -1298,7 +1298,7 @@ var E = class e {
1298
1298
  for (; e;) e._enterPos = -1, e._anchorPos = -1, e = e.parent;
1299
1299
  }
1300
1300
  reset() {
1301
- t._reset(this);
1301
+ e._reset(this);
1302
1302
  }
1303
1303
  pop() {
1304
1304
  return this.parent;
@@ -1306,8 +1306,8 @@ var E = class e {
1306
1306
  safePop() {
1307
1307
  return this.parent ? this.parent : this;
1308
1308
  }
1309
- push(e, n, r, i, a, o, s) {
1310
- return new t(this, e, n, r, i, a, o, s);
1309
+ push(t, n, r, i, a, o, s) {
1310
+ return new e(this, t, n, r, i, a, o, s);
1311
1311
  }
1312
1312
  getEnterPos() {
1313
1313
  return this._enterPos;
@@ -1329,8 +1329,8 @@ var E = class e {
1329
1329
  withContentNameScopesList(e) {
1330
1330
  return this.contentNameScopesList === e ? this : this.parent.push(this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, this.endRule, this.nameScopesList, e);
1331
1331
  }
1332
- withEndRule(e) {
1333
- return this.endRule === e ? this : new t(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, e, this.nameScopesList, this.contentNameScopesList);
1332
+ withEndRule(t) {
1333
+ return this.endRule === t ? this : new e(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, t, this.nameScopesList, this.contentNameScopesList);
1334
1334
  }
1335
1335
  hasSameRuleAs(e) {
1336
1336
  let t = this;
@@ -1350,14 +1350,14 @@ var E = class e {
1350
1350
  contentNameScopesList: (i = (a = this.contentNameScopesList) == null ? void 0 : a.getExtensionIfDefined(this.nameScopesList)) == null ? [] : i
1351
1351
  };
1352
1352
  }
1353
- static pushFrame(e, n) {
1353
+ static pushFrame(t, n) {
1354
1354
  var r, i, a;
1355
- let o = E.fromExtension((r = e == null ? void 0 : e.nameScopesList) == null ? null : r, n.nameScopesList);
1356
- return new t(e, Pe(n.ruleId), (i = n.enterPos) == null ? -1 : i, (a = n.anchorPos) == null ? -1 : a, n.beginRuleCapturedEOL, n.endRule, o, E.fromExtension(o, n.contentNameScopesList));
1355
+ let o = E.fromExtension((r = t == null ? void 0 : t.nameScopesList) == null ? null : r, n.nameScopesList);
1356
+ return new e(t, Pe(n.ruleId), (i = n.enterPos) == null ? -1 : i, (a = n.anchorPos) == null ? -1 : a, n.beginRuleCapturedEOL, n.endRule, o, E.fromExtension(o, n.contentNameScopesList));
1357
1357
  }
1358
- }, e(i, "NULL", new i(null, 0, 0, 0, !1, null, null, null)), i), ct = class {
1359
- constructor(t, n) {
1360
- e(this, "balancedBracketScopes", void 0), e(this, "unbalancedBracketScopes", void 0), e(this, "allowAny", !1), this.balancedBracketScopes = t.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : pe(e, rt).map((e) => e.matcher)), this.unbalancedBracketScopes = n.flatMap((e) => pe(e, rt).map((e) => e.matcher));
1358
+ }, t(i, "NULL", new i(null, 0, 0, 0, !1, null, null, null)), i), ct = class {
1359
+ constructor(e, n) {
1360
+ t(this, "balancedBracketScopes", void 0), t(this, "unbalancedBracketScopes", void 0), t(this, "allowAny", !1), this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : pe(e, rt).map((e) => e.matcher)), this.unbalancedBracketScopes = n.flatMap((e) => pe(e, rt).map((e) => e.matcher));
1361
1361
  }
1362
1362
  get matchesAlways() {
1363
1363
  return this.allowAny && this.unbalancedBracketScopes.length === 0;
@@ -1371,8 +1371,8 @@ var E = class e {
1371
1371
  return this.allowAny;
1372
1372
  }
1373
1373
  }, lt = class {
1374
- constructor(t, n, r, i) {
1375
- e(this, "_emitBinaryTokens", void 0), e(this, "_lineText", void 0), e(this, "_tokens", void 0), e(this, "_binaryTokens", void 0), e(this, "_lastTokenEndIndex", void 0), e(this, "_tokenTypeOverrides", void 0), this.balancedBracketSelectors = i, this._emitBinaryTokens = t, this._tokenTypeOverrides = r, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
1374
+ constructor(e, n, r, i) {
1375
+ t(this, "_emitBinaryTokens", void 0), t(this, "_lineText", void 0), t(this, "_tokens", void 0), t(this, "_binaryTokens", void 0), t(this, "_lastTokenEndIndex", void 0), t(this, "_tokenTypeOverrides", void 0), this.balancedBracketSelectors = i, this._emitBinaryTokens = e, this._tokenTypeOverrides = r, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
1376
1376
  }
1377
1377
  produce(e, t) {
1378
1378
  this.produceFromScopes(e.contentNameScopesList, t);
@@ -1413,8 +1413,8 @@ var E = class e {
1413
1413
  return n;
1414
1414
  }
1415
1415
  }, ut = class {
1416
- constructor(t, n) {
1417
- e(this, "_grammars", /* @__PURE__ */ new Map()), e(this, "_rawGrammars", /* @__PURE__ */ new Map()), e(this, "_injectionGrammars", /* @__PURE__ */ new Map()), e(this, "_theme", void 0), this._onigLib = n, this._theme = t;
1416
+ constructor(e, n) {
1417
+ t(this, "_grammars", /* @__PURE__ */ new Map()), t(this, "_rawGrammars", /* @__PURE__ */ new Map()), t(this, "_injectionGrammars", /* @__PURE__ */ new Map()), t(this, "_theme", void 0), this._onigLib = n, this._theme = e;
1418
1418
  }
1419
1419
  dispose() {
1420
1420
  for (let e of this._grammars.values()) e.dispose();
@@ -1449,8 +1449,8 @@ var E = class e {
1449
1449
  return this._grammars.get(e);
1450
1450
  }
1451
1451
  }, dt = class {
1452
- constructor(t) {
1453
- e(this, "_options", void 0), e(this, "_syncRegistry", void 0), e(this, "_ensureGrammarCache", void 0), this._options = t, this._syncRegistry = new ut(v.createFromRawTheme(t.theme, t.colorMap), t.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
1452
+ constructor(e) {
1453
+ t(this, "_options", void 0), t(this, "_syncRegistry", void 0), t(this, "_ensureGrammarCache", void 0), this._options = e, this._syncRegistry = new ut(v.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
1454
1454
  }
1455
1455
  dispose() {
1456
1456
  this._syncRegistry.dispose();
@@ -1614,8 +1614,8 @@ function Ct(e, t) {
1614
1614
  return e;
1615
1615
  }
1616
1616
  var wt = class extends dt {
1617
- constructor(t, n, r, i = {}) {
1618
- super(t), e(this, "_resolver", void 0), e(this, "_themes", void 0), e(this, "_langs", void 0), e(this, "_alias", void 0), e(this, "_resolvedThemes", /* @__PURE__ */ new Map()), e(this, "_resolvedGrammars", /* @__PURE__ */ new Map()), e(this, "_langMap", /* @__PURE__ */ new Map()), e(this, "_langGraph", /* @__PURE__ */ new Map()), e(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap()), e(this, "_loadedThemesCache", null), e(this, "_loadedLanguagesCache", null), this._resolver = t, this._themes = n, this._langs = r, this._alias = i, this._themes.map((e) => this.loadTheme(e)), this.loadLanguages(this._langs);
1617
+ constructor(e, n, r, i = {}) {
1618
+ super(e), t(this, "_resolver", void 0), t(this, "_themes", void 0), t(this, "_langs", void 0), t(this, "_alias", void 0), t(this, "_resolvedThemes", /* @__PURE__ */ new Map()), t(this, "_resolvedGrammars", /* @__PURE__ */ new Map()), t(this, "_langMap", /* @__PURE__ */ new Map()), t(this, "_langGraph", /* @__PURE__ */ new Map()), t(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap()), t(this, "_loadedThemesCache", null), t(this, "_loadedLanguagesCache", null), this._resolver = e, this._themes = n, this._langs = r, this._alias = i, this._themes.map((e) => this.loadTheme(e)), this.loadLanguages(this._langs);
1619
1619
  }
1620
1620
  getTheme(e) {
1621
1621
  return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
@@ -1680,10 +1680,10 @@ var wt = class extends dt {
1680
1680
  if (n) for (let e of n) this._langGraph.set(e, this._langMap.get(e));
1681
1681
  }
1682
1682
  }, Tt = class {
1683
- constructor(t, n) {
1684
- e(this, "_langs", /* @__PURE__ */ new Map()), e(this, "_scopeToLang", /* @__PURE__ */ new Map()), e(this, "_injections", /* @__PURE__ */ new Map()), e(this, "_onigLib", void 0), this._onigLib = {
1685
- createOnigScanner: (e) => t.createScanner(e),
1686
- createOnigString: (e) => t.createString(e)
1683
+ constructor(e, n) {
1684
+ t(this, "_langs", /* @__PURE__ */ new Map()), t(this, "_scopeToLang", /* @__PURE__ */ new Map()), t(this, "_injections", /* @__PURE__ */ new Map()), t(this, "_onigLib", void 0), this._onigLib = {
1685
+ createOnigScanner: (t) => e.createScanner(t),
1686
+ createOnigString: (t) => e.createString(t)
1687
1687
  }, n.forEach((e) => this.addLanguage(e));
1688
1688
  }
1689
1689
  get onigLib() {
@@ -1808,7 +1808,7 @@ function F(e, t) {
1808
1808
  function I(e) {
1809
1809
  return kt.get(e);
1810
1810
  }
1811
- var At = class t {
1811
+ var At = class e {
1812
1812
  get themes() {
1813
1813
  return Object.keys(this._stacks);
1814
1814
  }
@@ -1818,16 +1818,16 @@ var At = class t {
1818
1818
  get _stack() {
1819
1819
  return this._stacks[this.theme];
1820
1820
  }
1821
- static initial(e, n) {
1822
- return new t(Object.fromEntries(pt(n).map((e) => [e, ft])), e);
1821
+ static initial(t, n) {
1822
+ return new e(Object.fromEntries(pt(n).map((e) => [e, ft])), t);
1823
1823
  }
1824
- constructor(...t) {
1825
- if (e(this, "_stacks", {}), e(this, "lang", void 0), t.length === 2) {
1826
- let [e, n] = t;
1827
- this.lang = n, this._stacks = e;
1824
+ constructor(...e) {
1825
+ if (t(this, "_stacks", {}), t(this, "lang", void 0), e.length === 2) {
1826
+ let [t, n] = e;
1827
+ this.lang = n, this._stacks = t;
1828
1828
  } else {
1829
- let [e, n, r] = t;
1830
- this.lang = n, this._stacks = { [r]: e };
1829
+ let [t, n, r] = e;
1830
+ this.lang = n, this._stacks = { [r]: t };
1831
1831
  }
1832
1832
  }
1833
1833
  getInternalStack(e = this.theme) {
@@ -2093,7 +2093,7 @@ var R = class {
2093
2093
  R.prototype.attribute = "", R.prototype.booleanish = !1, R.prototype.boolean = !1, R.prototype.commaOrSpaceSeparated = !1, R.prototype.commaSeparated = !1, R.prototype.defined = !1, R.prototype.mustUseProperty = !1, R.prototype.number = !1, R.prototype.overloadedBoolean = !1, R.prototype.property = "", R.prototype.spaceSeparated = !1, R.prototype.space = void 0;
2094
2094
  //#endregion
2095
2095
  //#region node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js
2096
- var Yt = /* @__PURE__ */ t({
2096
+ var Yt = /* @__PURE__ */ e({
2097
2097
  boolean: () => z,
2098
2098
  booleanish: () => B,
2099
2099
  commaOrSpaceSeparated: () => W,