@aquera/nile-elements 0.0.104 → 0.0.105

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 (249) hide show
  1. package/README.md +5 -0
  2. package/dist/apl-21d06901.cjs.js +2 -0
  3. package/dist/apl-21d06901.cjs.js.map +1 -0
  4. package/dist/apl-d16c7537.esm.js +1 -0
  5. package/dist/{asciidoc-e0d3b314.cjs.js → asciidoc-001fd7c1.cjs.js} +2 -2
  6. package/dist/{asciidoc-e0d3b314.cjs.js.map → asciidoc-001fd7c1.cjs.js.map} +1 -1
  7. package/dist/{asciidoc-6be99424.esm.js → asciidoc-0966d4dc.esm.js} +1 -1
  8. package/dist/{blade-3208a46d.esm.js → blade-11ab018c.esm.js} +1 -1
  9. package/dist/{blade-edfc0fdd.cjs.js → blade-8db809ca.cjs.js} +2 -2
  10. package/dist/blade-8db809ca.cjs.js.map +1 -0
  11. package/dist/c-8cfe7ebc.esm.js +1 -0
  12. package/dist/c-b1a3514f.cjs.js +2 -0
  13. package/dist/c-b1a3514f.cjs.js.map +1 -0
  14. package/dist/codeql-48a19368.cjs.js +2 -0
  15. package/dist/codeql-48a19368.cjs.js.map +1 -0
  16. package/dist/codeql-535d71a2.esm.js +1 -0
  17. package/dist/cpp-62f58e5c.cjs.js +2 -0
  18. package/dist/cpp-62f58e5c.cjs.js.map +1 -0
  19. package/dist/cpp-ee96ee92.esm.js +1 -0
  20. package/dist/crystal-4277175c.cjs.js +2 -0
  21. package/dist/crystal-4277175c.cjs.js.map +1 -0
  22. package/dist/crystal-c89e4ade.esm.js +1 -0
  23. package/dist/{csharp-fe9efa9d.cjs.js → csharp-36e7912d.cjs.js} +2 -2
  24. package/dist/csharp-36e7912d.cjs.js.map +1 -0
  25. package/dist/{csharp-2f739c17.esm.js → csharp-78bc1c6a.esm.js} +1 -1
  26. package/dist/dream-maker-19eb7025.esm.js +1 -0
  27. package/dist/dream-maker-8dcd65d8.cjs.js +2 -0
  28. package/dist/dream-maker-8dcd65d8.cjs.js.map +1 -0
  29. package/dist/elixir-971d0fb3.esm.js +1 -0
  30. package/dist/elixir-de3ce4da.cjs.js +2 -0
  31. package/dist/elixir-de3ce4da.cjs.js.map +1 -0
  32. package/dist/{elm-0c5dbed5.cjs.js → elm-53838edc.cjs.js} +2 -2
  33. package/dist/{elm-0c5dbed5.cjs.js.map → elm-53838edc.cjs.js.map} +1 -1
  34. package/dist/{elm-3dbc06e2.esm.js → elm-9874a65c.esm.js} +1 -1
  35. package/dist/emacs-lisp-acd28b05.esm.js +1 -0
  36. package/dist/emacs-lisp-cfcfbca4.cjs.js +2 -0
  37. package/dist/emacs-lisp-cfcfbca4.cjs.js.map +1 -0
  38. package/dist/{erb-c397c5b8.cjs.js → erb-a42121e2.cjs.js} +2 -2
  39. package/dist/{erb-c397c5b8.cjs.js.map → erb-a42121e2.cjs.js.map} +1 -1
  40. package/dist/{erb-3df2a1e4.esm.js → erb-f580df2b.esm.js} +1 -1
  41. package/dist/{fortran-fixed-form-5221c659.cjs.js → fortran-fixed-form-a480dd28.cjs.js} +2 -2
  42. package/dist/{fortran-fixed-form-5221c659.cjs.js.map → fortran-fixed-form-a480dd28.cjs.js.map} +1 -1
  43. package/dist/{fortran-fixed-form-de2fa930.esm.js → fortran-fixed-form-f1691b9f.esm.js} +1 -1
  44. package/dist/fortran-free-form-a777429e.esm.js +1 -0
  45. package/dist/fortran-free-form-ffdde287.cjs.js +2 -0
  46. package/dist/fortran-free-form-ffdde287.cjs.js.map +1 -0
  47. package/dist/{fsharp-f129bbeb.esm.js → fsharp-69c4fb5c.esm.js} +1 -1
  48. package/dist/{fsharp-09a5f785.cjs.js → fsharp-d59a3c1f.cjs.js} +2 -2
  49. package/dist/{fsharp-09a5f785.cjs.js.map → fsharp-d59a3c1f.cjs.js.map} +1 -1
  50. package/dist/{git-rebase-1f689746.cjs.js → git-rebase-7589e873.cjs.js} +2 -2
  51. package/dist/{git-rebase-1f689746.cjs.js.map → git-rebase-7589e873.cjs.js.map} +1 -1
  52. package/dist/{git-rebase-a3a21dac.esm.js → git-rebase-bb01fb7b.esm.js} +1 -1
  53. package/dist/{glsl-f391b342.esm.js → glsl-1493bfc0.esm.js} +1 -1
  54. package/dist/{glsl-018c76d4.cjs.js → glsl-c588b399.cjs.js} +2 -2
  55. package/dist/{glsl-018c76d4.cjs.js.map → glsl-c588b399.cjs.js.map} +1 -1
  56. package/dist/{go-09393d7b.cjs.js → go-a05e58ea.cjs.js} +2 -2
  57. package/dist/go-a05e58ea.cjs.js.map +1 -0
  58. package/dist/{go-327b8b08.esm.js → go-ecfc5b99.esm.js} +1 -1
  59. package/dist/haml-2253a1bd.cjs.js +2 -0
  60. package/dist/haml-2253a1bd.cjs.js.map +1 -0
  61. package/dist/haml-43d9b125.esm.js +1 -0
  62. package/dist/hcl-595d9f51.cjs.js +2 -0
  63. package/dist/hcl-595d9f51.cjs.js.map +1 -0
  64. package/dist/hcl-6a14c75f.esm.js +1 -0
  65. package/dist/hjson-c3c357d7.cjs.js +2 -0
  66. package/dist/hjson-c3c357d7.cjs.js.map +1 -0
  67. package/dist/hjson-d42502da.esm.js +1 -0
  68. package/dist/{http-c5198897.esm.js → http-05cedc24.esm.js} +1 -1
  69. package/dist/{http-4370aef9.cjs.js → http-6aabe313.cjs.js} +2 -2
  70. package/dist/{http-4370aef9.cjs.js.map → http-6aabe313.cjs.js.map} +1 -1
  71. package/dist/{julia-5e4ea542.cjs.js → julia-24e685eb.cjs.js} +2 -2
  72. package/dist/{julia-5e4ea542.cjs.js.map → julia-24e685eb.cjs.js.map} +1 -1
  73. package/dist/{julia-e630ba73.esm.js → julia-944cceb2.esm.js} +1 -1
  74. package/dist/{latex-1adfa940.cjs.js → latex-bbf47f0d.cjs.js} +2 -2
  75. package/dist/{latex-1adfa940.cjs.js.map → latex-bbf47f0d.cjs.js.map} +1 -1
  76. package/dist/{latex-edebd2cc.esm.js → latex-c78294e0.esm.js} +1 -1
  77. package/dist/liquid-5e828fc2.cjs.js +2 -0
  78. package/dist/liquid-5e828fc2.cjs.js.map +1 -0
  79. package/dist/liquid-c0372db6.esm.js +1 -0
  80. package/dist/{lua-125b4f95.esm.js → lua-1393b713.esm.js} +1 -1
  81. package/dist/{lua-1990ffc7.cjs.js → lua-2512266d.cjs.js} +2 -2
  82. package/dist/{lua-1990ffc7.cjs.js.map → lua-2512266d.cjs.js.map} +1 -1
  83. package/dist/{markdown-9f728eba.esm.js → markdown-09aa0843.esm.js} +1 -1
  84. package/dist/{markdown-844e62a0.cjs.js → markdown-3ee08af9.cjs.js} +2 -2
  85. package/dist/{markdown-844e62a0.cjs.js.map → markdown-3ee08af9.cjs.js.map} +1 -1
  86. package/dist/matlab-534739f2.cjs.js +2 -0
  87. package/dist/matlab-534739f2.cjs.js.map +1 -0
  88. package/dist/matlab-97eddcfd.esm.js +1 -0
  89. package/dist/{mdc-89c1812c.cjs.js → mdc-7262ea7f.cjs.js} +2 -2
  90. package/dist/{mdc-89c1812c.cjs.js.map → mdc-7262ea7f.cjs.js.map} +1 -1
  91. package/dist/{mdc-78460ad2.esm.js → mdc-a46ebf55.esm.js} +1 -1
  92. package/dist/{nginx-d4fde8c7.cjs.js → nginx-33da8d52.cjs.js} +2 -2
  93. package/dist/{nginx-d4fde8c7.cjs.js.map → nginx-33da8d52.cjs.js.map} +1 -1
  94. package/dist/{nginx-4e240995.esm.js → nginx-9eb574b4.esm.js} +1 -1
  95. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  96. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  97. package/dist/nile-chip/nile-chip.esm.js +1 -1
  98. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  99. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  100. package/dist/nile-dialog/nile-dialog.css.cjs.js +1 -1
  101. package/dist/nile-dialog/nile-dialog.css.cjs.js.map +1 -1
  102. package/dist/nile-dialog/nile-dialog.css.esm.js +18 -3
  103. package/dist/nile-dialog/nile-dialog.esm.js +6 -4
  104. package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
  105. package/dist/nile-highlighter/nile-highlighter.esm.js +1 -1
  106. package/dist/nile-loader/nile-loader.cjs.js +1 -1
  107. package/dist/nile-loader/nile-loader.cjs.js.map +1 -1
  108. package/dist/nile-loader/nile-loader.esm.js +5 -6
  109. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  110. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  111. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  112. package/dist/{nim-2d3e58bd.esm.js → nim-19ded5b2.esm.js} +1 -1
  113. package/dist/{nim-68123944.cjs.js → nim-d17fab7b.cjs.js} +2 -2
  114. package/dist/{nim-68123944.cjs.js.map → nim-d17fab7b.cjs.js.map} +1 -1
  115. package/dist/php-61f68171.esm.js +1 -0
  116. package/dist/php-cc873410.cjs.js +2 -0
  117. package/dist/php-cc873410.cjs.js.map +1 -0
  118. package/dist/{racket-7b394aba.cjs.js → racket-0c9d5c0f.cjs.js} +2 -2
  119. package/dist/{racket-7b394aba.cjs.js.map → racket-0c9d5c0f.cjs.js.map} +1 -1
  120. package/dist/{racket-81dda9e5.esm.js → racket-55a31f6b.esm.js} +1 -1
  121. package/dist/{razor-1b5232cc.cjs.js → razor-a2425731.cjs.js} +2 -2
  122. package/dist/{razor-1b5232cc.cjs.js.map → razor-a2425731.cjs.js.map} +1 -1
  123. package/dist/{razor-d377d825.esm.js → razor-b33c609c.esm.js} +1 -1
  124. package/dist/{rst-7ca0bc88.cjs.js → rst-328f0cf1.cjs.js} +2 -2
  125. package/dist/{rst-7ca0bc88.cjs.js.map → rst-328f0cf1.cjs.js.map} +1 -1
  126. package/dist/{rst-0c779bb4.esm.js → rst-c0bca969.esm.js} +1 -1
  127. package/dist/{ruby-a3bdb75e.esm.js → ruby-0ae8b3e3.esm.js} +1 -1
  128. package/dist/{ruby-951187c3.cjs.js → ruby-82f6fde2.cjs.js} +2 -2
  129. package/dist/{ruby-951187c3.cjs.js.map → ruby-82f6fde2.cjs.js.map} +1 -1
  130. package/dist/{scala-f087204d.esm.js → scala-09ae48a2.esm.js} +1 -1
  131. package/dist/{scala-b2ea8aa7.cjs.js → scala-44c4b612.cjs.js} +2 -2
  132. package/dist/{scala-b2ea8aa7.cjs.js.map → scala-44c4b612.cjs.js.map} +1 -1
  133. package/dist/{shellscript-ac23285d.esm.js → shellscript-279f3c20.esm.js} +1 -1
  134. package/dist/{shellscript-cd92245f.cjs.js → shellscript-fbbc671d.cjs.js} +2 -2
  135. package/dist/{shellscript-cd92245f.cjs.js.map → shellscript-fbbc671d.cjs.js.map} +1 -1
  136. package/dist/{shellsession-396c6681.esm.js → shellsession-c6d86b76.esm.js} +1 -1
  137. package/dist/{shellsession-223fd590.cjs.js → shellsession-d64b6377.cjs.js} +2 -2
  138. package/dist/{shellsession-223fd590.cjs.js.map → shellsession-d64b6377.cjs.js.map} +1 -1
  139. package/dist/src/nile-chip/nile-chip.js +10 -7
  140. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  141. package/dist/src/nile-dialog/nile-dialog.css.js +18 -3
  142. package/dist/src/nile-dialog/nile-dialog.css.js.map +1 -1
  143. package/dist/src/nile-dialog/nile-dialog.d.ts +1 -0
  144. package/dist/src/nile-dialog/nile-dialog.js +10 -2
  145. package/dist/src/nile-dialog/nile-dialog.js.map +1 -1
  146. package/dist/src/nile-loader/nile-loader.js +0 -1
  147. package/dist/src/nile-loader/nile-loader.js.map +1 -1
  148. package/dist/src/nile-tab-group/nile-tab-group.js +4 -1
  149. package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
  150. package/dist/stata-149110fb.esm.js +1 -0
  151. package/dist/stata-b4a1937c.cjs.js +2 -0
  152. package/dist/stata-b4a1937c.cjs.js.map +1 -0
  153. package/dist/{svelte-70f34f63.esm.js → svelte-1048eb5a.esm.js} +1 -1
  154. package/dist/{svelte-fac37669.cjs.js → svelte-4fd29bd3.cjs.js} +2 -2
  155. package/dist/{svelte-fac37669.cjs.js.map → svelte-4fd29bd3.cjs.js.map} +1 -1
  156. package/dist/swift-502aad80.cjs.js +2 -0
  157. package/dist/{swift-73991d74.cjs.js.map → swift-502aad80.cjs.js.map} +1 -1
  158. package/dist/swift-c090b356.esm.js +1 -0
  159. package/dist/{templ-d3b439bb.esm.js → templ-628e79a2.esm.js} +1 -1
  160. package/dist/{templ-07af4f95.cjs.js → templ-d270ba1d.cjs.js} +2 -2
  161. package/dist/{templ-07af4f95.cjs.js.map → templ-d270ba1d.cjs.js.map} +1 -1
  162. package/dist/terraform-500d20b0.esm.js +1 -0
  163. package/dist/terraform-e5570e0d.cjs.js +2 -0
  164. package/dist/terraform-e5570e0d.cjs.js.map +1 -0
  165. package/dist/{ts-tags-dd626bee.esm.js → ts-tags-5da8755a.esm.js} +1 -1
  166. package/dist/{ts-tags-060f8b3f.cjs.js → ts-tags-df3e88d7.cjs.js} +2 -2
  167. package/dist/{ts-tags-060f8b3f.cjs.js.map → ts-tags-df3e88d7.cjs.js.map} +1 -1
  168. package/dist/tsconfig.tsbuildinfo +1 -1
  169. package/dist/twig-5bc34a9a.esm.js +1 -0
  170. package/dist/twig-af3abed5.cjs.js +2 -0
  171. package/dist/twig-af3abed5.cjs.js.map +1 -0
  172. package/dist/{vue-0bf65993.cjs.js → vue-09163277.cjs.js} +2 -2
  173. package/dist/{vue-0bf65993.cjs.js.map → vue-09163277.cjs.js.map} +1 -1
  174. package/dist/{vue-9a567043.esm.js → vue-dbfc25c6.esm.js} +1 -1
  175. package/dist/{vue-html-87c1aa08.cjs.js → vue-html-8d140150.cjs.js} +2 -2
  176. package/dist/{vue-html-87c1aa08.cjs.js.map → vue-html-8d140150.cjs.js.map} +1 -1
  177. package/dist/{vue-html-5432e63a.esm.js → vue-html-9284886a.esm.js} +1 -1
  178. package/dist/wasm-69304cd7.cjs.js +2 -0
  179. package/dist/{wasm-2b3accdb.cjs.js.map → wasm-69304cd7.cjs.js.map} +1 -1
  180. package/dist/{wasm-ec34668d.esm.js → wasm-aabb0cac.esm.js} +1 -1
  181. package/dist/{wikitext-bc11a136.cjs.js → wikitext-1ea78c25.cjs.js} +2 -2
  182. package/dist/{wikitext-bc11a136.cjs.js.map → wikitext-1ea78c25.cjs.js.map} +1 -1
  183. package/dist/{wikitext-0150fba4.esm.js → wikitext-3fe603e5.esm.js} +1 -1
  184. package/package.json +1 -1
  185. package/src/nile-chip/nile-chip.ts +13 -7
  186. package/src/nile-dialog/nile-dialog.css.ts +18 -3
  187. package/src/nile-dialog/nile-dialog.ts +8 -2
  188. package/src/nile-loader/nile-loader.ts +0 -1
  189. package/src/nile-tab-group/nile-tab-group.ts +2 -1
  190. package/dist/apl-41950f78.cjs.js +0 -2
  191. package/dist/apl-41950f78.cjs.js.map +0 -1
  192. package/dist/apl-c55a4361.esm.js +0 -1
  193. package/dist/blade-edfc0fdd.cjs.js.map +0 -1
  194. package/dist/c-3ee6456a.esm.js +0 -1
  195. package/dist/c-da3bb8a6.cjs.js +0 -2
  196. package/dist/c-da3bb8a6.cjs.js.map +0 -1
  197. package/dist/codeql-842eb6cf.esm.js +0 -1
  198. package/dist/codeql-d89527b8.cjs.js +0 -2
  199. package/dist/codeql-d89527b8.cjs.js.map +0 -1
  200. package/dist/cpp-08227984.esm.js +0 -1
  201. package/dist/cpp-cf2e9ff3.cjs.js +0 -2
  202. package/dist/cpp-cf2e9ff3.cjs.js.map +0 -1
  203. package/dist/crystal-38a7d086.cjs.js +0 -2
  204. package/dist/crystal-38a7d086.cjs.js.map +0 -1
  205. package/dist/crystal-39a9e1ea.esm.js +0 -1
  206. package/dist/csharp-fe9efa9d.cjs.js.map +0 -1
  207. package/dist/dream-maker-03e02970.cjs.js +0 -2
  208. package/dist/dream-maker-03e02970.cjs.js.map +0 -1
  209. package/dist/dream-maker-d074d317.esm.js +0 -1
  210. package/dist/elixir-677f91c1.cjs.js +0 -2
  211. package/dist/elixir-677f91c1.cjs.js.map +0 -1
  212. package/dist/elixir-e6f892c0.esm.js +0 -1
  213. package/dist/emacs-lisp-acc9d1bf.esm.js +0 -1
  214. package/dist/emacs-lisp-ba2192a6.cjs.js +0 -2
  215. package/dist/emacs-lisp-ba2192a6.cjs.js.map +0 -1
  216. package/dist/fortran-free-form-662642e8.cjs.js +0 -2
  217. package/dist/fortran-free-form-662642e8.cjs.js.map +0 -1
  218. package/dist/fortran-free-form-b8908a2e.esm.js +0 -1
  219. package/dist/go-09393d7b.cjs.js.map +0 -1
  220. package/dist/haml-44312b9e.cjs.js +0 -2
  221. package/dist/haml-44312b9e.cjs.js.map +0 -1
  222. package/dist/haml-ce8f521d.esm.js +0 -1
  223. package/dist/hcl-659b5ff4.esm.js +0 -1
  224. package/dist/hcl-93dee28c.cjs.js +0 -2
  225. package/dist/hcl-93dee28c.cjs.js.map +0 -1
  226. package/dist/hjson-e5dbb832.cjs.js +0 -2
  227. package/dist/hjson-e5dbb832.cjs.js.map +0 -1
  228. package/dist/hjson-ff155aeb.esm.js +0 -1
  229. package/dist/liquid-1369a009.cjs.js +0 -2
  230. package/dist/liquid-1369a009.cjs.js.map +0 -1
  231. package/dist/liquid-e48eb0ca.esm.js +0 -1
  232. package/dist/matlab-52886ffe.esm.js +0 -1
  233. package/dist/matlab-71a4c00e.cjs.js +0 -2
  234. package/dist/matlab-71a4c00e.cjs.js.map +0 -1
  235. package/dist/php-1beee6c8.esm.js +0 -1
  236. package/dist/php-580a8f27.cjs.js +0 -2
  237. package/dist/php-580a8f27.cjs.js.map +0 -1
  238. package/dist/stata-5d259eca.cjs.js +0 -2
  239. package/dist/stata-5d259eca.cjs.js.map +0 -1
  240. package/dist/stata-ce57a14a.esm.js +0 -1
  241. package/dist/swift-22135585.esm.js +0 -1
  242. package/dist/swift-73991d74.cjs.js +0 -2
  243. package/dist/terraform-5a5bfeae.esm.js +0 -1
  244. package/dist/terraform-73471876.cjs.js +0 -2
  245. package/dist/terraform-73471876.cjs.js.map +0 -1
  246. package/dist/twig-8f9f15f7.cjs.js +0 -2
  247. package/dist/twig-8f9f15f7.cjs.js.map +0 -1
  248. package/dist/twig-964ce7ee.esm.js +0 -1
  249. package/dist/wasm-2b3accdb.cjs.js +0 -2
@@ -1,2 +1,2 @@
1
- System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,_templateObject,_excluded,l,a,c,u,m,p,g,j,k,S,x,L,T,A,O,M,P,N,D,B,I,G,H,U,W,V,J,X,K,Q,Z,tt,et,nt,it,rt,ot,st,lt,at,ct,ut,mt,pt,ht,dt,ft,wt,xt,Lt,Tt,At,Ot,Mt,Pt,Nt,Dt,Et,Rt,It,Gt,Ht,qt,_t,zt,Ft,Ut,Wt,Jt,Xt,Yt,Qt,te,ee,re,oe,se,le,ae,ce,ue,he,de,fe,ge,je,ye,be,we,ke,Se,xe,Ce,Le,Te,Ae,Oe,Me,De,Ee,Re,Ge,_e,ze,Fe,We,Je,Qe,Ze,en,rn,on,sn,ln,un,pn,dn,fn,gn,jn,yn,bn,En,Bn,Gn,Hn,qn,Un,ri,oi,si,ui,mi,pi,hi,di,fi,gi,vi,_wi,ki,Si,xi,Ci,Li,Ti,Ai,Oi;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e55){function e(_x25){return _e55.apply(this,arguments);}e.toString=function(){return _e55.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e56){function e(_x26){return _e56.apply(this,arguments);}e.toString=function(){return _e56.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function h(t){return Array.isArray(t)?function(t){var e=[];for(var _n2=0,_i=t.length;_n2<_i;_n2++)e[_n2]=h(t[_n2]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n3 in t)e[_n3]=h(t[_n3]);return e;}(t):t;}function d(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n4 in e)t[_n4]=e[_n4];}),t;}function f(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?f(t.substring(0,t.length-1)):t.substr(1+~e);}function y(t,e){return t<e?-1:t>e?1:0;}function b(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i2=0;_i2<n;_i2++){var _n5=y(t[_i2],e[_i2]);if(0!==_n5)return _n5;}return 0;}return n-i;}function w(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function v(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function C(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function E(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t24=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t24=1;break;case"L":_t24=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e7=s();if(n.push({matcher:_e7,priority:_t24}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t25=o();return function(e){return!!_t25&&!_t25(e);};}if("("===r){r=i.next();var _t26=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t26;}if(R(r)){var _t27=[];do{_t27.push(r),r=i.next();}while(R(r));return function(n){return e(_t27,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function R(t){return!!t&&!!t.match(/[\w\.:]+/);}function $(t){"function"==typeof t.dispose&&t.dispose();}function q(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof B?z({baseGrammar:o,selfGrammar:r},i):_(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator4=_createForOfIteratorHelper(s),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t29=_step4.value;i.add(new B(_t29));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function _(t,e,n){if(e.repository&&e.repository[t]){F([e.repository[t]],e,n);}}function z(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&F(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&F(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function F(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _i8=_step5.value;if(n.visitedRule.has(_i8))continue;n.visitedRule.add(_i8);var _t30=_i8.repository?d({},e.repository,_i8.repository):e.repository;Array.isArray(_i8.patterns)&&F(_i8.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);var _r5=_i8.include;if(!_r5)continue;var _o5=Y(_r5);switch(_o5.kind){case 0:z(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:z(e,n);break;case 2:_(_o5.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);break;case 3:case 4:var _i9=_o5.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o5.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i9){var _r6={baseGrammar:e.baseGrammar,selfGrammar:_i9,repository:_t30};4===_o5.kind?_(_o5.ruleName,_r6,n):z(_r6,n);}else 4===_o5.kind?n.add(new I(_o5.scopeName,_o5.ruleName)):n.add(new B(_o5.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function Y(t){if("$base"===t)return new U();if("$self"===t)return new W();var e=t.indexOf("#");if(-1===e)return new J(t);if(0===e)return new V(t.substring(1));{var _n14=t.substring(0,e),_i10=t.substring(e+1);return new X(_n14,_i10);}}function gt(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s7=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e19=r;_e19;_e19=_e19.pop()){var _n18=_e19.getRule(t);_n18 instanceof st&&l.push({rule:_n18,stack:_e19});}for(var _a3=l.pop();_a3;_a3=l.pop()){var _yt=yt(_a3.rule,t,_a3.stack.endRule,n,i===s),_l4=_yt.ruleScanner,_c3=_yt.findOptions,_u2=_l4.findNextMatchSync(e,i,_c3);if(!_u2){r=_a3.stack.pop();break;}if(_u2.ruleId!==tt){r=_a3.stack.pop();break;}_u2.captureIndices&&_u2.captureIndices.length&&(o.produce(_a3.stack,_u2.captureIndices[0].start),bt(t,e,n,_a3.stack,o,_a3.rule.whileCaptures,_u2.captureIndices),o.produce(_a3.stack,_u2.captureIndices[0].end),s=_u2.captureIndices[0].end,_u2.captureIndices[0].end>i&&(i=_u2.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s7.stack,i=_s7.linePos,n=_s7.isFirstLine,u=_s7.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new ft(r,!0);}p();}return new ft(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_jt=jt(s,t,r.endRule,n,i===o),l=_jt.ruleScanner,a=_jt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o11=0,_p=t.length;_o11<_p;_o11++){var _p2=t[_o11];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_jt2=jt(_h,e,null,i,r===s),_d=_jt2.ruleScanner,_f=_jt2.findOptions,_g=_d.findNextMatchSync(n,r,_f);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===Z){var _s8=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),bt(t,e,n,r,o,_s8.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s9=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s9.getName(e.content,l),_f2=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f2,_f2),_s9 instanceof ot){var _i12=_s9;bt(t,e,n,r,o,_i12.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i12.getContentName(e.content,l),_d3=_f2.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i12.endHasBackReferences&&(r=r.withEndRule(_i12.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s9 instanceof st){var _i13=_s9;bt(t,e,n,r,o,_i13.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i13.getContentName(e.content,l),_d4=_f2.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i13.whileHasBackReferences&&(r=r.withEndRule(_i13.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(bt(t,e,n,r,o,_s9.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function jt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function yt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function bt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e20=0;_e20<a;_e20++){var _a4=o[_e20];if(null===_a4)continue;var _m4=s[_e20];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a4.retokenizeCapturedWithRuleId){var _e21=_a4.getName(l,s),_o12=i.contentNameScopesList.pushAttributed(_e21,t),_c4=_a4.getContentName(l,s),_u3=_o12.pushAttributed(_c4,t),_p3=i.push(_a4.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o12,_u3),_h3=t.createOnigString(l.substring(0,_m4.end));gt(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),$(_h3);continue;}var _p4=_a4.getName(l,s);if(null!==_p4){var _e22=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new wt(_e22,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function vt(t,e,n,i,r){var o=E(e,kt),s=lt.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n19=_step9.value;t.push({debugSelector:e,matcher:_n19.matcher,ruleId:s,grammar:r,priority:_n19.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function kt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var _i14=n;_i14<e.length;_i14++)if(St(e[_i14],t))return n=_i14+1,!0;return!1;});}function St(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function Ct(t,e){return(t=h(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function $t(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new Rt(n,i,e);}function Bt(t){return t.toLowerCase();}function Vt(){return Math.pow(2,++Gt);}function Kt(t,e,n){n&&(t[e]=n);}function Zt(t){var e={},n={};var i;for(i in t.properties)if(Qt.call(t.properties,i)){var _r11=t.properties[i],_o15=new Yt(i,t.transform(t.attributes||{},i),_r11,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o15.mustUseProperty=!0),e[i]=_o15,n[Bt(i)]=i,n[Bt(_o15.attribute)]=i;}return new Rt(e,n,t.space);}function ne(t,e){return e in t?t[e]:e;}function ie(t,e){return ne(t,e.toLowerCase());}function me(t){return"-"+t.toLowerCase();}function pe(t){return t.charAt(1).toUpperCase();}function ve(t,e){return t=t.replace(e.subset?function(t){var e=we.get(t);e||(e=function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(be,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(t),we.set(t,e));return e;}(e.subset):ge,n),e.subset||e.escapeOnly?t:t.replace(je,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(ye,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function Pe(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!ke.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(Te.call(Ae,r)){var _t70=Ae[r],_o16="&"+_t70;return n&&xe.includes(_t70)&&!Le.includes(_t70)&&(!i||e&&61!==e&&Me.test(String.fromCharCode(e)))?_o16:_o16+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i18=function(t,e,n){var i="&#"+String(t);return n&&e&&!Se.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i18.length<r.length&&(r=_i18);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function Ne(t,e){return ve(t,Object.assign({format:Pe},e));}function $e(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function Be(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function Ie(t){return t.join(" ").trim();}function He(t){return"object"==_typeof(t)?"text"===t.type&&qe(t.value):qe(t);}function qe(t){return""===t.replace(Ge,"");}function Ue(t){return function(e,n,i){var r=e?e.children:Fe;var o=(n||0)+t,s=r[o];if(!i)for(;s&&He(s);)o+=t,s=r[o];return s;};}function Ve(t){return function(e,n,i){return We.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function Xe(t,e,n){var i=_e(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&He(i.value.charAt(0)));}function Ye(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function Ke(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function tn(t,e,n){var i=function(t,e){var n=Bt(e);var i=e,r=It;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ae.test(e)){if("-"===e.charAt(4)){var _t72=e.slice(5).replace(ce,pe);i="data"+_t72.charAt(0).toUpperCase()+_t72.slice(1);}else{var _t73=e.slice(4);if(!ce.test(_t73)){var _n26=_t73.replace(ue,me);"-"!==_n26.charAt(0)&&(_n26="-"+_n26),e="data"+_n26;}}r=Yt;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=Ne(i.attribute,Object.assign({},t.settings.characterReferences,{subset:Ze.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?Be:Ie)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=Ne(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Ze.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&$e(n,l)>$e(n,t.alternative)&&(l=t.alternative),s=l+Ne(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?Ze.single:Ze["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function nn(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Ne(t.value,Object.assign({},i.settings.characterReferences,{subset:en})):t.value;}function an(t,e,n){return rn(t,e,n,this);}function cn(t){var e=[],n=t&&t.children||ln;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function mn(){return"undefined"!=typeof performance?performance.now():Date.now();}function hn(_x2){return _hn.apply(this,arguments);}function _hn(){_hn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:l=function _l10(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n47=t[e++];if(!(128&_n47)){o+=String.fromCharCode(_n47);continue;}var _i37=63&t[e++];if(192==(224&_n47)){o+=String.fromCharCode((31&_n47)<<6|_i37);continue;}var _r33=63&t[e++];if(_n47=224==(240&_n47)?(15&_n47)<<12|_i37<<6|_r33:(7&_n47)<<18|_i37<<12|_r33<<6|63&t[e++],_n47<65536)o+=String.fromCharCode(_n47);else{var _t33=_n47-65536;o+=String.fromCharCode(55296|_t33>>10,56320|1023&_t33);}}return o;}(i.HEAPU8,t,e):"";};o=function _o23(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r35(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:mn,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i38=1;_i38<=4;_i38*=2){var _r34=e*(1+.2/_i38);_r34=Math.min(_r34,t+100663296);if(o(Math.min(n,pn(Math.max(t,_r34),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context16.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var n,o;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context15.next=3;return t(n);case 3:o=_context15.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context15.stop();}},_callee14);}))();case 8:return _context16.abrupt("return",i);case 9:case"end":return _context16.stop();}},_callee15);}));return _hn.apply(this,arguments);}function wn(t){if(dn)return dn;return dn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return hn(/*#__PURE__*/function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e){var n,i;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:n=t;_context4.next=3;return n;case 3:n=_context4.sent;_context4.t0="function"==typeof n;if(!_context4.t0){_context4.next=9;break;}_context4.next=8;return n(e);case 8:n=_context4.sent;case 9:_context4.t1="function"==typeof n;if(!_context4.t1){_context4.next=14;break;}_context4.next=13;return n(e);case 13:n=_context4.sent;case 14:if(!("function"==typeof n.instantiator)){_context4.next=20;break;}_context4.next=17;return n.instantiator(e);case 17:n=_context4.sent;_context4.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context4.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context4.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context4.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context4.next=30;break;}_context4.next=27;return vn(n)(e);case 27:n=_context4.sent;_context4.next=35;break;case 30:_context4.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context4.t2){_context4.next=35;break;}_context4.next=34;return vn(n["default"])(e);case 34:n=_context4.sent;case 35:_context4.next=40;break;case 37:_context4.next=39;return vn(n)(e);case 39:n=_context4.sent;case 40:_context4.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context4.next=48;break;}_context4.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context4.t3=_context4.sent;_context4.next=51;break;case 48:_context4.next=50;return function(t){return/*#__PURE__*/function(){var _ref6=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t.arrayBuffer();case 2:n=_context3.sent;return _context3.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x4){return _ref6.apply(this,arguments);};}();}(n)(e);case 50:_context4.t3=_context4.sent;case 51:n=_context4.t3;case 52:_context4.next=57;break;case 54:_context4.next=56;return n["default"](e);case 56:n=_context4.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context4.abrupt("return",n);case 60:case"end":return _context4.stop();}},_callee3);}));return function(_x3){return _ref5.apply(this,arguments);};}());case 2:gn=_context5.sent;case 3:case"end":return _context5.stop();}},_callee4);}))(),dn;}function vn(t){return function(e){return WebAssembly.instantiate(t,e);};}function kn(_x5){return _kn.apply(this,arguments);}function _kn(){_kn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(t){return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.t0=t;if(!_context17.t0){_context17.next=4;break;}_context17.next=4;return wn(t);case 4:return _context17.abrupt("return",{createScanner:function createScanner(t){return new bn(t);},createString:function createString(t){return new yn(t);}});case 5:case"end":return _context17.stop();}},_callee16);}));return _kn.apply(this,arguments);}function Sn(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t74=0;_t74<n.length;_t74+=2){var _n33;var _o18=e?n[_t74]+(n[_t74+1]||""):n[_t74];r.push([_o18,i]),i+=n[_t74].length,i+=((_n33=n[_t74+1])===null||_n33===void 0?void 0:_n33.length)||0;}return r;}function xn(t){return!t||["plaintext","txt","text","plain"].includes(t);}function Cn(t){return"ansi"===t||xn(t);}function Ln(t){return"none"===t;}function Tn(t){return Ln(t);}function An(t,e){var n;if(!e)return t;t.properties||(t.properties={}),(n=t.properties)["class"]||(n["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var i=Array.isArray(e)?e:e.split(/\s+/g);var _iterator18=_createForOfIteratorHelper(i),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _e34=_step18.value;_e34&&!t.properties["class"].includes(_e34)&&t.properties["class"].push(_e34);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return t;}function On(_x6){return _On.apply(this,arguments);}function _On(){_On=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(t){return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:return _context18.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context18.stop();}},_callee17);}));return _On.apply(this,arguments);}function Mn(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i23=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i23<_Object$entries.length;_i23++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i23],2),_t75=_Object$entries$_i[0],_r17=_Object$entries$_i[1];"string"==typeof _r17?n[_t75]=_r17:_t75===i&&Object.assign(n,_r17);}return n;}function Pn(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Nn(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&A.Italic&&(e["font-style"]="italic"),t.fontStyle&A.Bold&&(e["font-weight"]="bold"),t.fontStyle&A.Underline&&(e["text-decoration"]="underline")),e;}function Dn(t){return Object.entries(t).map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),t=_ref8[0],e=_ref8[1];return"".concat(t,":").concat(e);}).join(";");}function Rn(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _n34=function _n34(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new En("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},i.indexToPos(t)),{},{offset:t});}{var _e35=i.lines[t.line];if(void 0===_e35)throw new En("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(i.lines.length));if(t.character<0||t.character>_e35.length)throw new En("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e35.length));return _objectSpread(_objectSpread({},t),{},{offset:i.posToIndex(t.line,t.character)});}};var i=function(t){var e=Sn(t,!0).map(function(_ref9){var _ref10=_slicedToArray(_ref9,1),t=_ref10[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator19=_createForOfIteratorHelper(e),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _t76=_step19.value;if(i<_t76.length)break;i-=_t76.length,r++;}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n35=0;_n35<t;_n35++)i+=e[_n35].length;return i+=n,i;}};}(e.source),_r18=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_n34(t.start),end:_n34(t.end)});});!function(t){for(var _e36=0;_e36<t.length;_e36++){var _n36=t[_e36];if(_n36.start.offset>_n36.end.offset)throw new En("Invalid decoration range: ".concat(JSON.stringify(_n36.start)," - ").concat(JSON.stringify(_n36.end)));for(var _i24=_e36+1;_i24<t.length;_i24++){var _e37=t[_i24],_r19=_n36.start.offset<_e37.start.offset&&_e37.start.offset<_n36.end.offset,_o19=_n36.start.offset<_e37.end.offset&&_e37.end.offset<_n36.end.offset,_s12=_e37.start.offset<_n36.start.offset&&_n36.start.offset<_e37.end.offset,_l5=_e37.start.offset<_n36.end.offset&&_n36.end.offset<_e37.end.offset;if(_r19||_o19||_s12||_l5){if(_o19&&_o19)continue;if(_s12&&_l5)continue;throw new En("Decorations ".concat(JSON.stringify(_n36.start)," and ").concat(JSON.stringify(_e37.start)," intersect."));}}}}(_r18),t.set(e.meta,{decorations:_r18,converter:i,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _r20=_step20.value;_r20>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r20),offset:t.offset+n})),n=_r20;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new En("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t77=0;_t77<o.children.length;_t77++)l+=$n(o.children[_t77]),-1===a&&l.length===e&&(a=_t77+1),-1===c&&l.length===n&&(c=_t77+1);if(-1===a)throw new En("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new En("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=o.children.slice(a,c);if(r.alwaysWrap||u.length!==o.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t78={type:"element",tagName:"span",properties:{},children:u};s(_t78,r,"wrapper"),o.children.splice(a,u.length,_t78);}else s(u[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&An(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator21=_createForOfIteratorHelper(a),_step21;try{var _loop=function _loop(){var t=_step21.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i25){l.unshift(function(){return o(_i25,t);});};for(var _i25=e.line+1;_i25<n.line;_i25++){_loop2(_i25);}r(n.line,0,n.character,t);}};for(_iterator21.s();!(_step21=_iterator21.n()).done;){_loop();}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}l.forEach(function(t){return t();});}};}function $n(t){return"text"===t.type?t.value:"element"===t.type?t.children.map($n).join(""):"";}function In(t){return[].concat(_toConsumableArray(t.transformers||[]),Bn);}function _n(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e38=t.indexOf("m",n);return{sequence:t.substring(n+2,_e38).split(";"),startPosition:n,position:_e38+1};}return{position:t.length};}function zn(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i26=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i26.length||_i26.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i26});}else if("5"===i){var _i27=Number.parseInt(t[e+n]);Number.isNaN(_i27)||(r={type:"table",index:Number(_i27)});}return[n,r];}function Fn(t){var e=[];for(var _n37=0;_n37<t.length;_n37++){var i=t[_n37],_r21=Number.parseInt(i);if(!Number.isNaN(_r21))if(0===_r21)e.push({type:"resetAll"});else if(_r21<=9){qn[_r21]&&e.push({type:"setDecoration",value:qn[_r21]});}else if(_r21<=29){var _t79=qn[_r21-20];_t79&&e.push({type:"resetDecoration",value:_t79});}else if(_r21<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Hn[_r21-30]}});else if(38===_r21){var _zn=zn(t,_n37),_zn2=_slicedToArray(_zn,2),_i28=_zn2[0],_r22=_zn2[1];_r22&&e.push({type:"setForegroundColor",value:_r22}),_n37+=_i28;}else if(39===_r21)e.push({type:"resetForegroundColor"});else if(_r21<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Hn[_r21-40]}});else if(48===_r21){var _zn3=zn(t,_n37),_zn4=_slicedToArray(_zn3,2),_i29=_zn4[0],_r23=_zn4[1];_r23&&e.push({type:"setBackgroundColor",value:_r23}),_n37+=_i29;}else 49===_r21?e.push({type:"resetBackgroundColor"}):_r21>=90&&_r21<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Hn[_r21-90+8]}}):_r21>=100&&_r21<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Hn[_r21-100+8]}});}return e;}function Wn(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Un;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t80=0;_t80<Hn.length;_t80++)i.push(e(Hn[_t80]));var t=[0,95,135,175,215,255];for(var _e39=0;_e39<6;_e39++)for(var _r24=0;_r24<6;_r24++)for(var _o20=0;_o20<6;_o20++)i.push(n([t[_e39],t[_r24],t[_o20]]));var r=8;for(var _t81=0;_t81<24;_t81++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function Vn(t,e,n){var i=Mn(t,n),r=Sn(e),o=Wn(Object.fromEntries(Hn.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s13=_n(i,o),_l6=_s13.sequence?i.substring(o,_s13.startPosition):i.substring(o);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_s13.sequence){var _i30=Fn(_s13.sequence);var _iterator22=_createForOfIteratorHelper(_i30),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _r25=_step22.value;"resetAll"===_r25.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r25.type?t=null:"resetBackgroundColor"===_r25.type?e=null:"resetDecoration"===_r25.type&&n["delete"](_r25.value);}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}var _iterator23=_createForOfIteratorHelper(_i30),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r26=_step23.value;"setForegroundColor"===_r26.type?t=_r26.value:"setBackgroundColor"===_r26.type?e=_r26.value:"setDecoration"===_r26.type&&n.add(_r26.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}o=_s13.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Pn(r,i),s=Pn(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t82=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t82);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=A.None;return n.decorations.has("bold")&&(l|=A.Bold),n.decorations.has("italic")&&(l|=A.Italic),n.decorations.has("underline")&&(l|=A.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function Jn(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(xn(i)||Ln(r))return Sn(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return Vn(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new p("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(n.grammarState.theme!==r)throw new p("Grammar state theme \"".concat(n.grammarState.theme,"\" does not match highlight theme \"").concat(r,"\""));}return function(t,e,n,i,r){return Xn(t,e,n,i,r).tokens;}(e,l,o,s,n);}function Xn(t,e,n,i,r){var o=Mn(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=Sn(t);var c=r.grammarState?function(t){if(!(t instanceof Gn))throw new En("Invalid grammar state");return t._stack;}(r.grammarState):null!=r.grammarContextCode?Xn(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Dt,u=[];var m=[];for(var _t83=0,_h4=a.length;_t83<_h4;_t83++){var _a$_t=_slicedToArray(a[_t83],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(s>0&&_h5.length>=s){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f3=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f3=e.tokenizeLine(_h5,c),_g2=_f3.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t84=0;_t84<_b;_t84++){var _e40=_y.tokens[2*_t84],_s14=_t84+1<_b?_y.tokens[2*_t84+2]:_h5.length;if(_e40===_s14)continue;var _l7=_y.tokens[2*_t84+1],_a6=Pn(i[D.getForeground(_l7)],o),_c6=D.getFontStyle(_l7),_m5={content:_h5.substring(_e40,_s14),offset:_d5+_e40,color:_a6,fontStyle:_c6};if(r.includeExplanation){var _t85=[];if("scopeName"!==r.includeExplanation){var _iterator24=_createForOfIteratorHelper(n.settings),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _e41=_step24.value;var _n38=void 0;switch(_typeof(_e41.scope)){case"string":_n38=_e41.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n38=_e41.scope;break;default:continue;}_t85.push({settings:_e41,selectors:_n38.map(function(t){return t.split(/ /);})});}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}_m5.explanation=[];var _i31=0;for(;_e40+_i31<_s14;){var _e42=_g2[_j2],_n39=_h5.substring(_e42.startIndex,_e42.endIndex);_i31+=_n39.length,_m5.explanation.push({content:_n39,scopes:"scopeName"===r.includeExplanation?(p=_e42.scopes,p.map(function(t){return{scopeName:t};})):Yn(_t85,_e42.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function Yn(t,e){var n=[];for(var i=0,_r27=e.length;i<_r27;i++){var _r28=e[i];n[i]={scopeName:_r28,themeMatches:Zn(t,_r28,e.slice(0,i))};}return n;}function Kn(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function Qn(t,e,n){if(!Kn(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)Kn(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function Zn(t,e,n){var i=[];var _iterator25=_createForOfIteratorHelper(t),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _step25$value=_step25.value,_r29=_step25$value.selectors,_o21=_step25$value.settings;var _iterator26=_createForOfIteratorHelper(_r29),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _t86=_step26.value;if(Qn(_t86,e,n)){i.push(_o21);break;}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return i;}function ti(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=function(){for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++){t[_key3]=arguments[_key3];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i32){var r=t.map(function(t){return t[_i32];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t87=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e43=0;_e43<n;_e43++){var _n40=l[_e43];_n40.content.length===_t87?(o[_e43].push(_n40),s[_e43]+=1,l[_e43]=r[_e43][s[_e43]]):(o[_e43].push(_objectSpread(_objectSpread({},_n40),{},{content:_n40.content.slice(0,_t87)})),l[_e43]=_objectSpread(_objectSpread({},_n40),{},{content:_n40.content.slice(_t87),offset:_n40.offset+_t87}));}}};for(var _i32=0;_i32<t[0].length;_i32++){_loop3(_i32);}return e;}.apply(void 0,_toConsumableArray(i.map(function(i){return Jn(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));}))),o=r[0].map(function(t,e){return t.map(function(t,o){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(function(t,n){var _t$e$o=t[e][o],r=_t$e$o.content,l=_t$e$o.explanation,a=_t$e$o.offset,c=_objectWithoutProperties(_t$e$o,_excluded);s.variants[i[n].color]=c;}),s;});});return o;}function ei(t,e,n){var i,r,o,s,l;if("themes"in n){var _n$defaultColor=n.defaultColor,_a7=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_c7=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_u5=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_a7?-1:e.color===_a7?1:0;});if(0===_u5.length)throw new En("`themes` option must not be empty");var _m6=ti(t,e,n);if(_a7&&!_u5.find(function(t){return t.color===_a7;}))throw new En("`themes` option must contain the defaultColor key `".concat(_a7,"`"));var _p5=_u5.map(function(e){return t.getTheme(e.theme);}),_h6=_u5.map(function(t){return t.color;});o=_m6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return Nn(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l=o.reduce(function(t,r,o){var _iterator27=_createForOfIteratorHelper(s),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _l8=_step27.value;var _s15=r[_l8]||"inherit";if(0===o&&i)t[_l8]=_s15;else{var _i33="color"===_l8?"":"background-color"===_l8?"-bg":"-".concat(_l8),_r30=n+e[o]+("color"===_l8?"":_i33);t[_l8]?t[_l8]+=";".concat(_r30,":").concat(_s15):t[_l8]="".concat(_r30,":").concat(_s15);}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}return t;},{});return r.htmlStyle=i?Dn(l):Object.values(l).join(";"),r;}(t,_h6,_c7,_a7);});});var _d6=_u5.map(function(t){return Mn(t.theme,n);});r=_u5.map(function(t,e){return(0===e&&_a7?"":"".concat(_c7+t.color,":"))+(Pn(_p5[e].fg,_d6[e])||"inherit");}).join(";"),i=_u5.map(function(t,e){return(0===e&&_a7?"":"".concat(_c7+t.color,"-bg:"))+(Pn(_p5[e].bg,_d6[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_p5.map(function(t){return t.name;}).join(" ")),l=_a7?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new En("Invalid options, either `theme` or `themes` must be provided");{var _l9=Mn(n.theme,n);o=Jn(t,e,n);var _a8=t.getTheme(n.theme);i=Pn(_a8.bg,_l9),r=Pn(_a8.fg,_l9),s=_a8.name;}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l};}function ni(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return ni(t,e,n);},codeToTokens:function codeToTokens(e,n){return ei(t,e,n);}};var r=e;var _iterator28=_createForOfIteratorHelper(In(n)),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _t93$preprocess;var _t93=_step28.value;r=((_t93$preprocess=_t93.preprocess)===null||_t93$preprocess===void 0?void 0:_t93$preprocess.call(i,r,n))||r;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _ei=ei(t,r,n),o=_ei.tokens,s=_ei.fg,l=_ei.bg,a=_ei.themeName,c=_ei.rootStyle;var _n$mergeWhitespaces=n.mergeWhitespaces,u=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===u?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&A.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===u&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e44=_slicedToArray(e,4),n=_e44[1],i=_e44[2],r=_e44[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var m=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator29=_createForOfIteratorHelper(In(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t94$tokens;var _t94=_step29.value;o=((_t94$tokens=_t94.tokens)===null||_t94$tokens===void 0?void 0:_t94$tokens.call(m,o))||o;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return function(t,e,n){var i=In(e),r=[],o={type:"root",children:[]},_e$structure=e.structure,s=_e$structure===void 0?"classic":_e$structure;var l={type:"element",tagName:"pre",properties:_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg),tabindex:"0"},Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref11){var _ref12=_slicedToArray(_ref11,1),t=_ref12[0];return!t.startsWith("_");}))),children:[]},a={type:"element",tagName:"code",properties:{},children:r};var c=[],u=_objectSpread(_objectSpread({},n),{},{structure:s,addClassToHast:An,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return l;},get code(){return a;},get lines(){return c;}});if(t.forEach(function(t,e){e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},l=0;var _iterator30=_createForOfIteratorHelper(t),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _r31=_step30.value;var _t89={type:"element",tagName:"span",properties:{},children:[{type:"text",value:_r31.content}]};var _a9=_r31.htmlStyle||Dn(Nn(_r31));_a9&&(_t89.properties.style=_a9);var _iterator32=_createForOfIteratorHelper(i),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _r32$span;var _r32=_step32.value;_t89=(_r32===null||_r32===void 0||(_r32$span=_r32.span)===null||_r32$span===void 0?void 0:_r32$span.call(u,_t89,e+1,l,n))||_t89;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}"inline"===s?o.children.push(_t89):"classic"===s&&n.children.push(_t89),l+=_r31.content.length;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}if("classic"===s){var _iterator31=_createForOfIteratorHelper(i),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t88$line;var _t88=_step31.value;n=(_t88===null||_t88===void 0||(_t88$line=_t88.line)===null||_t88$line===void 0?void 0:_t88$line.call(u,n,e+1))||n;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}c.push(n),r.push(n);}}),"classic"===s){var _iterator33=_createForOfIteratorHelper(i),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _t90$code;var _t90=_step33.value;a=(_t90===null||_t90===void 0||(_t90$code=_t90.code)===null||_t90$code===void 0?void 0:_t90$code.call(u,a))||a;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}l.children.push(a);var _iterator34=_createForOfIteratorHelper(i),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t91$pre;var _t91=_step34.value;l=(_t91===null||_t91===void 0||(_t91$pre=_t91.pre)===null||_t91$pre===void 0?void 0:_t91$pre.call(u,l))||l;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}o.children.push(l);}var m=o;var _iterator35=_createForOfIteratorHelper(i),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t92$root;var _t92=_step35.value;m=(_t92===null||_t92===void 0||(_t92$root=_t92.root)===null||_t92$root===void 0?void 0:_t92$root.call(u,m))||m;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}return m;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),m);}function ii(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return ni(t,e,n);},codeToTokens:function codeToTokens(e,n){return ei(t,e,n);}};var r=function(t,e){var n=e||on,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:an,all:cn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Et,characterReferences:n.characterReferences||sn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?de:he,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(ni(t,e,n,i));var _iterator36=_createForOfIteratorHelper(In(n)),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t95$postprocess;var _t95=_step36.value;r=((_t95$postprocess=_t95.postprocess)===null||_t95$postprocess===void 0?void 0:_t95$postprocess.call(i,r,n))||r;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}return r;}function li(t){if(t!==null&&t!==void 0&&t[si])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t96$settings,_t96$settings2,_e$colors,_e$colors2;var _t96=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t96!==null&&_t96!==void 0&&(_t96$settings=_t96.settings)!==null&&_t96$settings!==void 0&&_t96$settings.foreground&&(i=_t96.settings.foreground),_t96!==null&&_t96!==void 0&&(_t96$settings2=_t96.settings)!==null&&_t96$settings2!==void 0&&_t96$settings2.background&&(n=_t96.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?ri.light:ri.dark),n||(n="light"===e.type?oi.light:oi.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n41=s(t.settings.foreground);e.colorReplacements[_n41]=t.settings.foreground,r.settings.foreground=_n41;}if(i){var _n42=s(t.settings.background);e.colorReplacements[_n42]=t.settings.background,r.settings.background=_n42;}return r;});for(var _i34=0,_Object$keys2=Object.keys(e.colors||{});_i34<_Object$keys2.length;_i34++){var _e$colors$_t;var _t97=_Object$keys2[_i34];if(("editor.foreground"===_t97||"editor.background"===_t97||_t97.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t97])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n43=s(e.colors[_t97]);e.colorReplacements[_n43]=e.colors[_t97],e.colors[_t97]=_n43;}}return Object.defineProperty(e,si,{enumerable:!1,writable:!1,value:!0}),e;}function ai(_x7){return _ai.apply(this,arguments);}function _ai(){_ai=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(t){return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.t0=Array;_context20.t1=Set;_context20.next=4;return Promise.all(t.filter(function(t){return!Cn(t);}).map(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(t){return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return On(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context19.abrupt("return",_context19.sent);case 3:case"end":return _context19.stop();}},_callee18);}));return function(_x23){return _ref24.apply(this,arguments);};}()));case 4:_context20.t2=_context20.sent.flat();_context20.t3=new _context20.t1(_context20.t2);return _context20.abrupt("return",_context20.t0.from.call(_context20.t0,_context20.t3));case 7:case"end":return _context20.stop();}},_callee19);}));return _ai.apply(this,arguments);}function ci(_x8){return _ci.apply(this,arguments);}function _ci(){_ci=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t){return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(t){return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:if(!Tn(t)){_context21.next=4;break;}_context21.t0=null;_context21.next=9;break;case 4:_context21.t1=li;_context21.next=7;return On(t);case 7:_context21.t2=_context21.sent;_context21.t0=(0,_context21.t1)(_context21.t2);case 9:return _context21.abrupt("return",_context21.t0);case 10:case"end":return _context21.stop();}},_callee20);}));return function(_x24){return _ref25.apply(this,arguments);};}()));case 2:return _context22.abrupt("return",_context22.sent.filter(function(t){return!!t;}));case 3:case"end":return _context22.stop();}},_callee21);}));return _ci.apply(this,arguments);}function ji(){return _ji.apply(this,arguments);}function _ji(){_ji=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args14=arguments;return _regeneratorRuntime().wrap(function _callee25$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:t=_args14.length>0&&_args14[0]!==undefined?_args14[0]:{};_context26.next=3;return Promise.all([ci(t.themes||[]),ai(t.langs||[]),t.engine||kn(t.loadWasm||fn)]);case 3:_yield$Promise$all=_context26.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context26.abrupt("return",function(t){gi+=1,!1!==t.warnings&&gi>=10&&gi%10==0&&console.warn("[Shiki] ".concat(gi," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));var e=!1;if(!t.engine)throw new En("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(li),r=new fi(t.engine,n),o=new pi(r,i,n,t.langAlias);var s;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=o.getTheme(t);if(!e)throw new En("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}u(),o.loadLanguages(t.flat(1));}function c(){return _c8.apply(this,arguments);}function _c8(){_c8=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(){var _len7,t,_key7,_iterator40,_step40,_e54,_args13=arguments;return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:u();for(_len7=_args13.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=_args13[_key7];}_iterator40=_createForOfIteratorHelper(t.flat(1));try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){_e54=_step40.value;o.loadTheme(_e54);}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}case 4:case"end":return _context25.stop();}},_callee24);}));return _c8.apply(this,arguments);}function u(){if(e)throw new En("Shiki instance has been disposed");}function m(){e||(e=!0,o.dispose(),gi-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return s!==t&&(o.setTheme(e),s=t),{theme:e,colorMap:o.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=o.getGrammar("string"==typeof t?t:t.name);if(!e)throw new En("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),o.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),o.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(){var _len8,t,_key8,_args11=arguments;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:for(_len8=_args11.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=_args11[_key8];}_context23.t0=a;_context23.next=4;return ai(t);case 4:_context23.t1=_context23.sent;return _context23.abrupt("return",(0,_context23.t0)(_context23.t1));case 6:case"end":return _context23.stop();}},_callee22);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var _len9,t,_key9,_args12=arguments;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:for(_len9=_args12.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args12[_key9];}u();_context24.t0=c;_context24.next=5;return ci(t);case 5:_context24.t1=_context24.sent;return _context24.abrupt("return",(0,_context24.t0)(_context24.t1));case 7:case"end":return _context24.stop();}},_callee23);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 9:case"end":return _context26.stop();}},_callee25);}));return _ji.apply(this,arguments);}function yi(){return _yi.apply(this,arguments);}function _yi(){_yi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(){var t,e,_args15=arguments;return _regeneratorRuntime().wrap(function _callee26$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:t=_args15.length>0&&_args15[0]!==undefined?_args15[0]:{};_context27.next=3;return ji(t);case 3:e=_context27.sent;return _context27.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(t,n){return function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang2=n.lang,i=_n$lang2===void 0?"text":_n$lang2,_n$theme2=n.theme,r=_n$theme2===void 0?t.getLoadedThemes()[0]:_n$theme2;if(xn(i)||Ln(r))throw new p("Plain language does not have grammar state");if("ansi"===i)throw new p("ANSI language does not have grammar state");var _t$setTheme2=t.setTheme(r),o=_t$setTheme2.theme,s=_t$setTheme2.colorMap,l=t.getLanguage(i);return new Gn(Xn(e,l,o,s,n).stateStack,l.name,o.name);}(e,t,n);},codeToTokensBase:function codeToTokensBase(t,n){return Jn(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return ti(e,t,n);},codeToTokens:function codeToTokens(t,n){return ei(e,t,n);},codeToHast:function codeToHast(t,n){return ni(e,t,n);},codeToHtml:function codeToHtml(t,n){return ii(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context27.stop();}},_callee26);}));return _yi.apply(this,arguments);}function bi(t,e,n){var i,r,o;if(e)i=t,r=e,o=function o(){return kn(n);};else{var _e50=t;i=_e50.langs,r=_e50.themes,o=_e50.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){var _t$themes,_t$langs;var e,n,s,l,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:n=function _n46(t){if(Tn(t))return"none";if("string"==typeof t){var _e52=r[t];if(!_e52)throw new p("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e52;}return t;};e=function _e53(t){if("string"==typeof t){if(Cn(t))return[];var _e51=i[t];if(!_e51)throw new p("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e51;}return t;};s=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context6.next=6;return yi(_objectSpread(_objectSpread({engine:o()},t),{},{themes:s,langs:l}));case 6:a=_context6.sent;return _context6.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context6.stop();}},_callee5);}));return function(_x9){return _ref23.apply(this,arguments);};}();}function wi(t){var e=function(t){var e;return/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,_t103,_args6=arguments;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:n=_args6.length>0&&_args6[0]!==undefined?_args6[0]:{};if(!e){_context7.next=8;break;}_context7.next=4;return e;case 4:_t103=_context7.sent;_context7.next=7;return Promise.all([_t103.loadTheme.apply(_t103,_toConsumableArray(n.themes||[])),_t103.loadLanguage.apply(_t103,_toConsumableArray(n.langs||[]))]);case 7:return _context7.abrupt("return",_t103);case 8:return _context7.abrupt("return",(e=t(_objectSpread(_objectSpread({},n),{},{themes:n.themes||[],langs:n.langs||[]})),e));case 9:case"end":return _context7.stop();}},_callee6);}));}(t);return{getSingletonHighlighter:function getSingletonHighlighter(t){return e(t);},codeToHtml:function(){var _codeToHtml=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(t,n){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context8.abrupt("return",_context8.sent.codeToHtml(t,n));case 3:case"end":return _context8.stop();}},_callee7);}));function codeToHtml(_x10,_x11){return _codeToHtml.apply(this,arguments);}return codeToHtml;}(),codeToHast:function(){var _codeToHast=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t,n){return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context9.abrupt("return",_context9.sent.codeToHast(t,n));case 3:case"end":return _context9.stop();}},_callee8);}));function codeToHast(_x12,_x13){return _codeToHast.apply(this,arguments);}return codeToHast;}(),codeToTokens:function(){var _codeToTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t,n){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context10.abrupt("return",_context10.sent.codeToTokens(t,n));case 3:case"end":return _context10.stop();}},_callee9);}));function codeToTokens(_x14,_x15){return _codeToTokens.apply(this,arguments);}return codeToTokens;}(),codeToTokensBase:function(){var _codeToTokensBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t,n){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context11.abrupt("return",_context11.sent.codeToTokensBase(t,n));case 3:case"end":return _context11.stop();}},_callee10);}));function codeToTokensBase(_x16,_x17){return _codeToTokensBase.apply(this,arguments);}return codeToTokensBase;}(),codeToTokensWithThemes:function(){var _codeToTokensWithThemes=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t,n){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)});case 2:return _context12.abrupt("return",_context12.sent.codeToTokensWithThemes(t,n));case 3:case"end":return _context12.stop();}},_callee11);}));function codeToTokensWithThemes(_x18,_x19){return _codeToTokensWithThemes.apply(this,arguments);}return codeToTokensWithThemes;}(),getLastGrammarState:function(){var _getLastGrammarState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t,n){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context13.abrupt("return",_context13.sent.getLastGrammarState(t,n));case 3:case"end":return _context13.stop();}},_callee12);}));function getLastGrammarState(_x20,_x21){return _getLastGrammarState.apply(this,arguments);}return getLastGrammarState;}()};}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_property002CjsJs){s=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-1bf82b88.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-78a211eb.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-bcb89e19.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-c4c26160.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-03290a6e.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-46d295f1.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-fcb8cf4a.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-41950f78.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-48596d70.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-473ae353.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-e0d3b314.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-e210309b.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-4da87bdb.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-4963689a.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-7aee43fa.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-c3a3ae00.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-5fe9d3d4.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-fb7e1c72.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-d7ac8986.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-4a260f2b.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-edfc0fdd.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-da3bb8a6.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-0eaa8d45.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-7e6b90cd.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-1595af59.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-a8e8c28b.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-50adcfb4.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-df1ec844.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-d89527b8.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-2572e062.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-6c16a90d.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-6e6ac84f.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-cf2e9ff3.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-38a7d086.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-fe9efa9d.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-29043e92.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-e35de69e.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-ff00bc92.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-960a6942.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-fae7b806.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-485d695e.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-14b868bf.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-09716540.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-81f6ac99.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-cfbd2b03.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-ff221776.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-03e02970.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-b7dc381f.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-677f91c1.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-0c5dbed5.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-ba2192a6.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-c397c5b8.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-cc2474e8.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-d956b981.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-11f9610e.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-b09871c5.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-5221c659.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-662642e8.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-09a5f785.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-437b5a62.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-49ede485.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-b0a2a6b8.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-b835653d.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-fc9bb7f1.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-ae5b6987.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-1f689746.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-f9ddf98b.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-663b3ae9.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-5c100550.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-018c76d4.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-551e647b.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-09393d7b.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-5f397445.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-23af02b8.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-02ad8998.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-44312b9e.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-ea6276a2.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-bcb2c268.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-5c29f004.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-93dee28c.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-e5dbb832.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-a19fce25.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-ea7b5a6d.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-7099c9d0.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-4370aef9.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-7b675e33.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-c8d9f00d.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-42b0992d.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-5c368136.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-5bfb7c2a.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-86304e1b.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-c9a6cfef.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-33ab07e2.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-73d5aeb5.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-a7f42cae.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-76158b28.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-a323e8c0.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-64dfe440.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-ce538784.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-35ce78ef.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-5e4ea542.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-a316b38c.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-fa09efb9.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-1adfa940.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-ef9ccef7.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-e3e07172.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-1369a009.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-97d83504.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-9df7287e.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-1990ffc7.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-44e3face.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-d0cb8939.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-844e62a0.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-f7723e7c.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-71a4c00e.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-89c1812c.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-f13eb66d.cjs.js");}},{id:"mermaid",name:"Mermaid","import":function _import(){return _context["import"]("../mermaid-55dfe91c.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-b61f669c.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-6a98b4c4.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-556714e3.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-093b06d3.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-d4fde8c7.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-68123944.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-d25efb26.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-d067d4f0.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-cebeceef.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-9cb58075.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-0e07a683.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-b82e29b4.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-a04cb1d0.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-580a8f27.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-8558fd1a.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-1b7d27f8.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-1059825f.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-0fee6746.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-c5ae3adb.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-11cfc084.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-a0b1699a.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-d438d180.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-4aac29a2.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-003bda6a.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-dfd3ca5d.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-9390260f.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-08399b43.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-a3db3c1f.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-03f34da2.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-605499a4.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-7b394aba.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-c0cddab4.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-1b5232cc.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-3ca2ab33.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-c2028de0.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-2eab08f7.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-2744b5f8.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-7ca0bc88.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-951187c3.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-ef7c4789.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-5b8d2f66.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-3099fa6b.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-b2ea8aa7.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-89e19cbe.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-40d13d15.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-b8d83d86.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-cd92245f.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-223fd590.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-d21c1dc8.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-32454e29.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-e99459a2.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-85911d64.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-f9901d8e.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-43113b01.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-0c82ee23.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-5d259eca.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-99156ae5.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-fac37669.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-73991d74.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-82861f1f.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-bd8cc60d.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-66437078.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-59a9fe34.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-07af4f95.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-73471876.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-3a688b34.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-71c753d3.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-060f8b3f.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-11fce737.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-b3b37319.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-e4a791ab.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-8f9f15f7.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-7084b7a6.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-463f4728.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-45b6297f.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-aa4484ba.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-d4510fd6.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-b050eeeb.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-8da08302.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-875e4862.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-6a26041f.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-0bf65993.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-87c1aa08.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-7e88dd07.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-ad358ef7.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-2d84a154.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-3ffb53fe.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-bc11a136.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-9a8735c1.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-1938a4d8.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-f7e23ae7.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-d2baa29b.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-4da4200b.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-08972182.cjs.js");}}];a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));c=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",_context["import"]("../wasm-2b3accdb.cjs.js").then(function(e){return e["default"](t);}));case 1:case"end":return _context2.stop();}},_callee);}));return function c(_x){return _ref.apply(this,arguments);};}();u=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-123d3c00.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-8180368b.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-0cf7a0f0.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-cf3e1ada.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-61603c64.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-56e83acc.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-93b9527b.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-8ac91d63.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-0264d406.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-0d891f5a.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-0ddfeebd.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-eee329e3.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-7888cdf8.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-a4342077.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-6d8cfe5f.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-7b0d7429.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-5d2e59f1.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-a2cc3491.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-caee8ed6.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-17d51311.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-5d78b81d.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a14ae0a.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-1e70322e.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-7c78ef32.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-cd7515fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-4e847bdf.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-5168fd63.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b65008a8.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-718a3275.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-a73fe966.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-45735b6a.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-c1c05174.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-5acc6d52.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-bea79cf9.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-a8c47756.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-29968b94.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d8c9d4b0.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-9516af0e.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-15da7ed8.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-18ae2a43.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-0a1b6c0b.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-869d8085.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-afe282dc.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-9bd52d45.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-218912d1.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-82a00987.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-be0e89d9.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-4c99f83d.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-c8b0af08.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-4d62a96c.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-c347b81b.cjs.js");}}];m=Object.fromEntries(u.map(function(t){return[t.id,t["import"]];}));p=/*#__PURE__*/function(_Error){function p(t){var _this;_classCallCheck(this,p);_this=_callSuper(this,p,[t]),_this.name="ShikiError";return _this;}_inherits(p,_Error);return _createClass(p);}(/*#__PURE__*/_wrapNativeSuper(Error));g=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;j=/*#__PURE__*/function(){function j(){_classCallCheck(this,j);}return _createClass(j,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(g.lastIndex=0,g.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(g,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t2=e.substring(s.start,s.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(o){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();k=/*#__PURE__*/function(){function k(t){_classCallCheck(this,k);this.fn=t,this.cache=new Map();}return _createClass(k,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();S=/*#__PURE__*/function(){function S(t,e,n){var _this2=this;_classCallCheck(this,S);this._colorMap=t,this._defaults=e,this._root=n,this._cachedMatchRoot=new k(function(t){return _this2._root.match(t);});}return _createClass(S,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n6=0;_n6<e.length;_n6++){var _i3=e[_n6],_r=!1;if(">"===_i3){if(_n6===e.length-1)return!1;_i3=e[++_n6],_r=!0;}for(;t&&!C(t.scopeName,_i3);){if(_r)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new L(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t3=0,_r2=e.length;_t3<_r2;_t3++){var _r3=void 0,_o=e[_t3];if(!_o.settings)continue;if("string"==typeof _o.scope){var _t4=_o.scope;_t4=_t4.replace(/^[,]+/,""),_t4=_t4.replace(/[,]+$/,""),_r3=_t4.split(",");}else _r3=Array.isArray(_o.scope)?_o.scope:[""];var _s=-1;if("string"==typeof _o.settings.fontStyle){_s=0;var _t5=_o.settings.fontStyle.split(" ");for(var _e2=0,_n7=_t5.length;_e2<_n7;_e2++){switch(_t5[_e2]){case"italic":_s|=1;break;case"bold":_s|=2;break;case"underline":_s|=4;break;case"strikethrough":_s|=8;}}}var _l=null;"string"==typeof _o.settings.foreground&&w(_o.settings.foreground)&&(_l=_o.settings.foreground);var _a=null;"string"==typeof _o.settings.background&&w(_o.settings.background)&&(_a=_o.settings.background);for(var _e3=0,_o2=_r3.length;_e3<_o2;_e3++){var _o3=_r3[_e3].trim().split(" "),_c=_o3[_o3.length-1],_u=null;_o3.length>1&&(_u=_o3.slice(0,_o3.length-1),_u.reverse()),n[i++]=new T(_c,_u,_t3,_s,_l,_a);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=y(t.scope,e.scope);return 0!==n?n:(n=b(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e4=t.shift();-1!==_e4.fontStyle&&(n=_e4.fontStyle),null!==_e4.foreground&&(i=_e4.foreground),null!==_e4.background&&(r=_e4.background);}var o=new O(e),s=new L(n,o.getId(i),o.getId(r)),l=new N(new P(0,null,-1,0,0),[]);for(var _e5=0,_n8=t.length;_e5<_n8;_e5++){var _n9=t[_e5];l.insert(0,_n9.scope,_n9.parentScopes,_n9.fontStyle,o.getId(_n9.foreground),o.getId(_n9.background));}return new S(o,s,l);}(t,e);}}]);}();x=/*#__PURE__*/function(){function t(_t6,e){_classCallCheck(this,t);this.parent=_t6,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t7=this;var e=[];for(;_t7;)e.push(_t7.scopeName),_t7=_t7.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t8){return this===_t8||null!==this.parent&&this.parent["extends"](_t8);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t9){var e=[];var n=this;for(;n&&n!==_t9;)e.push(n.scopeName),n=n.parent;return n===_t9?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i4=_step.value;e=new t(e,_i4);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var _i5=0;_i5<arguments.length;_i5++)n=new t(n,_i5<0||arguments.length<=_i5?undefined:arguments[_i5]);return n;}}]);}();L=/*#__PURE__*/_createClass(function L(t,e,n){_classCallCheck(this,L);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});T=/*#__PURE__*/_createClass(function T(t,e,n,i,r,o){_classCallCheck(this,T);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});A=function(t){return t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t;}(A||{});O=/*#__PURE__*/function(){function O(t){_classCallCheck(this,O);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e6=0,_n10=t.length;_e6<_n10;_e6++)this._color2id[t[_e6]]=_e6,this._id2color[_e6]=t[_e6];}else this._isFrozen=!1;}return _createClass(O,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();M=Object.freeze([]);P=/*#__PURE__*/function(){function t(_t10,e,n,i,r){_classCallCheck(this,t);this.scopeDepth=_t10,this.parentScopes=e||M,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t12,e,n,i){this.scopeDepth>_t12?console.log("how did this happen?"):this.scopeDepth=_t12,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t11){var e=[];for(var _n11=0,_i6=_t11.length;_n11<_i6;_n11++)e[_n11]=_t11[_n11].clone();return e;}}]);}();N=/*#__PURE__*/function(){function t(_t13){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);this._mainRule=_t13,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t15,_n12,_i7=e.indexOf(".");if(-1===_i7?(_t15=e,_n12=""):(_t15=e.substring(0,_i7),_n12=e.substring(_i7+1)),this._children.hasOwnProperty(_t15))return this._children[_t15].match(_n12);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,o,s){if(""===n)return void this._doInsertHere(e,i,r,o,s);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),P.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,o,s);}},{key:"_doInsertHere",value:function _doInsertHere(_t16,e,n,i,r){if(null!==e){for(var _o4=0,_s2=this._rulesWithParentScopes.length;_o4<_s2;_o4++){var _s3=this._rulesWithParentScopes[_o4];if(0===b(_s3.parentScopes,e))return void _s3.acceptOverwrite(_t16,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new P(_t16,e,n,i,r));}else this._mainRule.acceptOverwrite(_t16,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t14,e){if(_t14.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t14.scopeDepth;var n=0,i=0;for(;">"===_t14.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t14.parentScopes.length||i>=e.parentScopes.length);){var _r4=e.parentScopes[i].length-_t14.parentScopes[n].length;if(0!==_r4)return _r4;n++,i++;}return e.parentScopes.length-_t14.parentScopes.length;}}]);}();D=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t17){return _t17.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});}},{key:"getLanguageId",value:function getLanguageId(_t18){return(255&_t18)>>>0;}},{key:"getTokenType",value:function getTokenType(_t19){return(768&_t19)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t20){return!!(1024&_t20);}},{key:"getFontStyle",value:function getFontStyle(_t21){return(30720&_t21)>>>11;}},{key:"getForeground",value:function getForeground(_t22){return(16744448&_t22)>>>15;}},{key:"getBackground",value:function getBackground(_t23){return(4278190080&_t23)>>>24;}},{key:"set",value:function set(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();B=/*#__PURE__*/function(){function B(t){_classCallCheck(this,B);this.scopeName=t;}return _createClass(B,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();I=/*#__PURE__*/function(){function I(t,e){_classCallCheck(this,I);this.scopeName=t,this.ruleName=e;}return _createClass(I,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();G=/*#__PURE__*/function(){function G(){_classCallCheck(this,G);this._references=[],this._seenReferenceKeys=new Set(),this.visitedRule=new Set();}return _createClass(G,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();H=/*#__PURE__*/function(){function H(t,e){_classCallCheck(this,H);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests=new Set(),this.seenPartialScopeRequests=new Set(),this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new B(this.initialScopeName)];}return _createClass(H,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new G();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n13=_step2.value;q(_n13,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t28=_step3.value;if(_t28 instanceof B){if(this.seenFullScopeRequests.has(_t28.scopeName))continue;this.seenFullScopeRequests.add(_t28.scopeName),this.Q.push(_t28);}else{if(this.seenFullScopeRequests.has(_t28.scopeName))continue;if(this.seenPartialScopeRequests.has(_t28.toKey()))continue;this.seenPartialScopeRequests.add(_t28.toKey()),this.Q.push(_t28);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();U=/*#__PURE__*/_createClass(function U(){_classCallCheck(this,U);this.kind=0;});W=/*#__PURE__*/_createClass(function W(){_classCallCheck(this,W);this.kind=1;});V=/*#__PURE__*/_createClass(function V(t){_classCallCheck(this,V);this.ruleName=t,this.kind=2;});J=/*#__PURE__*/_createClass(function J(t){_classCallCheck(this,J);this.scopeName=t,this.kind=3;});X=/*#__PURE__*/_createClass(function X(t,e){_classCallCheck(this,X);this.scopeName=t,this.ruleName=e,this.kind=4;});K=/\\(\d+)/;Q=/\\(\d+)/g;Z=-1;tt=-2;et=/*#__PURE__*/function(){function et(t,e,n,i){_classCallCheck(this,et);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=j.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=j.hasCaptures(this._contentName);}return _createClass(et,[{key:"debugName",get:function get(){var t=this.$location?"".concat(f(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?j.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?j.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();nt=/*#__PURE__*/function(_et){function nt(t,e,n,i,r){var _this3;_classCallCheck(this,nt);_this3=_callSuper(this,nt,[t,e,n,i]),_this3.retokenizeCapturedWithRuleId=r;return _this3;}_inherits(nt,_et);return _createClass(nt,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(et);it=/*#__PURE__*/function(_et2){function it(t,e,n,i,r){var _this4;_classCallCheck(this,it);_this4=_callSuper(this,it,[t,e,n,null]),_this4._match=new at(i,_this4.id),_this4.captures=r,_this4._cachedCompiledPatterns=null;return _this4;}_inherits(it,_et2);return _createClass(it,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ct(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(et);rt=/*#__PURE__*/function(_et3){function rt(t,e,n,i,r){var _this5;_classCallCheck(this,rt);_this5=_callSuper(this,rt,[t,e,n,i]),_this5.patterns=r.patterns,_this5.hasMissingPatterns=r.hasMissingPatterns,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(rt,_et3);return _createClass(rt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n15=_step6.value;t.getRule(_n15).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ct(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(et);ot=/*#__PURE__*/function(_et4){function ot(t,e,n,i,r,o,s,l,a,c){var _this6;_classCallCheck(this,ot);_this6=_callSuper(this,ot,[t,e,n,i]),_this6._begin=new at(r,_this6.id),_this6.beginCaptures=o,_this6._end=new at(s||"￿",-1),_this6.endHasBackReferences=_this6._end.hasBackReferences,_this6.endCaptures=l,_this6.applyEndPatternLast=a||!1,_this6.patterns=c.patterns,_this6.hasMissingPatterns=c.hasMissingPatterns,_this6._cachedCompiledPatterns=null;return _this6;}_inherits(ot,_et4);return _createClass(ot,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ct();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e8=_step7.value;t.getRule(_e8).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end);}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(et);st=/*#__PURE__*/function(_et5){function st(t,e,n,i,r,o,s,l,a){var _this7;_classCallCheck(this,st);_this7=_callSuper(this,st,[t,e,n,i]),_this7._begin=new at(r,_this7.id),_this7.beginCaptures=o,_this7.whileCaptures=l,_this7._while=new at(s,tt),_this7.whileHasBackReferences=_this7._while.hasBackReferences,_this7.patterns=a.patterns,_this7.hasMissingPatterns=a.hasMissingPatterns,_this7._cachedCompiledPatterns=null,_this7._cachedCompiledWhilePatterns=null;return _this7;}_inherits(st,_et5);return _createClass(st,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ct();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e9=_step8.value;t.getRule(_e9).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ct(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns;}}]);}(et);lt=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t31,e,n,i,r){return _t31.registerRule(function(_t32){return new nt(e,_t32,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new it(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=d({},i,e.repository));var _r7=e.patterns;return void 0===_r7&&e.include&&(_r7=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r7,n,i));}return e["while"]?new st(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new ot(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _o6=0;for(var _t36 in e){if("$vscodeTextmateLocation"===_t36)continue;var _e10=parseInt(_t36,10);_e10>_o6&&(_o6=_e10);}for(var _t37=0;_t37<=_o6;_t37++)r[_t37]=null;for(var _o7 in e){if("$vscodeTextmateLocation"===_o7)continue;var _s4=parseInt(_o7,10);var _l2=0;e[_o7].patterns&&(_l2=t.getCompiledRuleId(e[_o7],n,i)),r[_s4]=t.createCaptureRule(n,e[_o7].$vscodeTextmateLocation,e[_o7].name,e[_o7].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _o8=0,_s5=e.length;_o8<_s5;_o8++){var _s6=e[_o8];var _l3=-1;if(_s6.include){var _e11=Y(_s6.include);switch(_e11.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_s6.include],n,i);break;case 2:var _r8=i[_e11.ruleName];_r8&&(_l3=t.getCompiledRuleId(_r8,n,i));break;case 3:case 4:var _o9=_e11.scopeName,_a2=4===_e11.kind?_e11.ruleName:null,_c2=n.getExternalGrammar(_o9,i);if(_c2)if(_a2){var _e12=_c2.repository[_a2];_e12&&(_l3=t.getCompiledRuleId(_e12,n,_c2.repository));}else _l3=t.getCompiledRuleId(_c2.repository.$self,n,_c2.repository);}}else _l3=t.getCompiledRuleId(_s6,n,i);if(-1!==_l3){var _t35=n.getRule(_l3);var _e13=!1;if((_t35 instanceof rt||_t35 instanceof ot||_t35 instanceof st)&&_t35.hasMissingPatterns&&0===_t35.patterns.length&&(_e13=!0),_e13)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}();at=/*#__PURE__*/function(){function t(_t38,e){_classCallCheck(this,t);if(_t38){var _e14=_t38.length;var _n16=0,_i11=[],_r9=!1;for(var _o10=0;_o10<_e14;_o10++){if("\\"===_t38.charAt(_o10)&&_o10+1<_e14){var _e15=_t38.charAt(_o10+1);"z"===_e15?(_i11.push(_t38.substring(_n16,_o10)),_i11.push("$(?!\\n)(?<!\\n)"),_n16=_o10+2):"A"!==_e15&&"G"!==_e15||(_r9=!0),_o10++;}}this.hasAnchor=_r9,0===_n16?this.source=_t38:(_i11.push(_t38.substring(_n16,_e14)),this.source=_i11.join(""));}else this.hasAnchor=!1,this.source=_t38;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=K.test(this.source);}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t39){this.source!==_t39&&(this.source=_t39,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t40,e){var n=e.map(function(e){return _t40.substring(e.start,e.end);});return Q.lastIndex=0,this.source.replace(Q,function(_t41,e){return v(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var _t42,e,n,i,r=[],o=[],s=[],l=[];for(_t42=0,e=this.source.length;_t42<e;_t42++)n=this.source.charAt(_t42),r[_t42]=n,o[_t42]=n,s[_t42]=n,l[_t42]=n,"\\"===n&&_t42+1<e&&(i=this.source.charAt(_t42+1),"A"===i?(r[_t42+1]="￿",o[_t42+1]="￿",s[_t42+1]="A",l[_t42+1]="A"):"G"===i?(r[_t42+1]="￿",o[_t42+1]="G",s[_t42+1]="￿",l[_t42+1]="G"):(r[_t42+1]=i,o[_t42+1]=i,s[_t42+1]=i,l[_t42+1]=i),_t42++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t43,e){return this.hasAnchor&&this._anchorCache?_t43?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();ct=/*#__PURE__*/function(){function ct(){_classCallCheck(this,ct);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(ct,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e16=this._items.map(function(t){return t.source;});this._cached=new ut(t,_e16,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new ut(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();ut=/*#__PURE__*/function(){function ut(t,e,n){_classCallCheck(this,ut);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(ut,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e17=0,_n17=this.rules.length;_e17<_n17;_e17++)t.push(" - "+this.rules[_e17]+": "+this.regExps[_e17]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();mt=/*#__PURE__*/_createClass(function mt(t,e){_classCallCheck(this,mt);this.languageId=t,this.tokenType=e;});pt=/*#__PURE__*/function(){function t(_t44,e){var _this8=this;_classCallCheck(this,t);this._getBasicScopeAttributes=new k(function(_t45){var e=_this8._scopeToLanguage(_t45),n=_this8._toStandardTokenType(_t45);return new mt(e,n);}),this._defaultAttributes=new mt(_t44,8),this._embeddedLanguagesMatcher=new dt(Object.entries(e||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t46){return this._embeddedLanguagesMatcher.match(_t46)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0;}throw new Error("Unexpected match for standard token type!");}}]);}();pt._NULL_SCOPE_METADATA=new mt(0,0),pt.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;ht=pt;dt=/*#__PURE__*/function(){function dt(t){_classCallCheck(this,dt);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e18=t.map(function(_ref2){var _ref3=_slicedToArray(_ref2,2),t=_ref3[0],e=_ref3[1];return v(t);});_e18.sort(),_e18.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e18.join(")|("),"))($|\\.)"),"");}}return _createClass(dt,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;ft=/*#__PURE__*/_createClass(function ft(t,e){_classCallCheck(this,ft);this.stack=t,this.stoppedEarly=e;});wt=/*#__PURE__*/_createClass(function wt(t,e){_classCallCheck(this,wt);this.scopes=t,this.endPos=e;});xt=/*#__PURE__*/function(){function xt(t,e,n,i,r,o,s,l){_classCallCheck(this,xt);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ht(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Ct(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i15=0,_Object$keys=Object.keys(r);_i15<_Object$keys.length;_i15++){var _t47=_Object$keys[_i15];var _e23=E(_t47,kt);var _iterator10=_createForOfIteratorHelper(_e23),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n20=_step10.value;this._tokenTypeMatchers.push({matcher:_n20.matcher,type:r[_t47]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(xt,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t48=_step11.value;_t48&&_t48.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this9=this;var t=function t(_t49){return _t49===_this9._rootScopeName?_this9._grammar:_this9.getExternalGrammar(_t49);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t50=i.injections;if(_t50)for(var _n21 in _t50)vt(e,_n21,_t50[_n21],this,i);var _r10=this._grammarRepository.injections(n);_r10&&_r10.forEach(function(t){var n=_this9.getExternalGrammar(t);if(n){var _t51=n.injectionSelector;_t51&&vt(e,_t51,n,_this9,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n22=this._grammarRepository.lookup(t);if(_n22)return this._includedGrammars[t]=Ct(_n22,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=lt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==At.NULL)r=!1,e.reset();else{r=!0;var _t52=this._basicScopeAttributesProvider.getDefaultAttributes(),_n23=this.themeProvider.getDefaults(),_i16=D.set(0,_t52.languageId,_t52.tokenType,null,_n23.fontStyle,_n23.foregroundId,_n23.backgroundId),_o13=this.getRule(this._rootId).getName(null,null);var _s10;_s10=_o13?Lt.createRootAndLookUpScopeName(_o13,_i16,this):Lt.createRoot("unknown",_i16),e=new At(null,this._rootId,-1,-1,!1,null,_s10,_s10);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new Mt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=gt(this,o,r,0,e,l,!0,i);return $(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();Lt=/*#__PURE__*/function(){function t(_t53,e,n){_classCallCheck(this,t);this.parent=_t53,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e24=_step12.value;r=t._pushAttributed(r,_e24,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t56){var e=[];var n=this;for(;n&&n!==_t56;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t56?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e25=_step13.value;r=x.push(r,_e25.scopeNames),i=new t(i,r,_e25.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new x(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),o=new x(null,e),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(n,r,s);return new t(null,o,l);}},{key:"equals",value:function equals(_t54,e){for(;;){if(_t54===e)return!0;if(!_t54&&!e)return!0;if(!_t54||!e)return!1;if(_t54.scopeName!==e.scopeName||_t54.tokenAttributes!==e.tokenAttributes)return!1;_t54=_t54.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t55,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),D.set(_t55,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),o=e.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(e.tokenAttributes,r,s);return new t(e,o,l);}}]);}();Tt=/*#__PURE__*/function(){function t(_t57,e,n,i,r,o,s,l){_classCallCheck(this,t);this.parent=_t57,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,o,s,l){return new t(this,e,n,i,r,o,s,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t61){return _t61.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t62=[];return this._writeString(_t62,0),"["+_t62.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t63,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t63,e)),_t63[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t64){return this.contentNameScopesList===_t64?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t64);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t65){var e=this;for(;e&&e._enterPos===_t65._enterPos;){if(e.ruleId===_t65.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t58,e){return _t58===e||!!this._structuralEquals(_t58,e)&&Lt.equals(_t58.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.depth!==e.depth||_t59.ruleId!==e.ruleId||_t59.endRule!==e.endRule)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t60){for(;_t60;)_t60._enterPos=-1,_t60._anchorPos=-1,_t60=_t60.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=Lt.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,Lt.fromExtension(i,n.contentNameScopesList));}}]);}();Tt.NULL=new Tt(null,0,0,0,!1,null,null,null);At=Tt;Ot=/*#__PURE__*/function(){function Ot(t,e){var _this10=this;_classCallCheck(this,Ot);this.allowAny=!1,this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this10.allowAny=!0,[]):E(t,kt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return E(t,kt).map(function(t){return t.matcher;});});}return _createClass(Ot,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e26=_step14.value;if(_e26(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e27=_step15.value;if(_e27(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();Mt=/*#__PURE__*/function(){function Mt(t,e,n,i){_classCallCheck(this,Mt);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Mt,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n24=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,_i17=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(_i17=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e28=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t66=_step16.value;_t66.matcher(_e28)&&(_n24=D.set(_n24,0,_t66.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(_i17=this.balancedBracketSelectors.match(_e28));}return _i17&&(_n24=D.set(_n24,0,8,_i17,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n24?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n24),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t67=0,_e29=this._binaryTokens.length;_t67<_e29;_t67++)n[_t67]=this._binaryTokens[_t67];return n;}}]);}();Pt=/*#__PURE__*/function(){function Pt(t,e){_classCallCheck(this,Pt);this._onigLib=e,this._grammars=new Map(),this._rawGrammars=new Map(),this._injectionGrammars=new Map(),this._theme=t;}return _createClass(Pt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t68=_step17.value;_t68.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _o14=this._rawGrammars.get(t);if(!_o14)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new xt(t,e,n,i,r,o,s,l);}(t,_o14,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}();Nt=/*#__PURE__*/function(){function Nt(t){_classCallCheck(this,Nt);this._options=t,this._syncRegistry=new Pt(S.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(Nt,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(S.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Ot(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this11=this;var o=new H(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(function(t){return _this11._loadSingleGrammar(t.scopeName);}),o.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n25="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n25);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Dt=At.NULL;Et=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];Rt=/*#__PURE__*/_createClass(function Rt(t,e,n){_classCallCheck(this,Rt);this.property=t,this.normal=e,n&&(this.space=n);});Rt.prototype.property={},Rt.prototype.normal={},Rt.prototype.space=null;It=/*#__PURE__*/_createClass(function It(t,e){_classCallCheck(this,It);this.property=t,this.attribute=e;});It.prototype.space=null,It.prototype["boolean"]=!1,It.prototype.booleanish=!1,It.prototype.overloadedBoolean=!1,It.prototype.number=!1,It.prototype.commaSeparated=!1,It.prototype.spaceSeparated=!1,It.prototype.commaOrSpaceSeparated=!1,It.prototype.mustUseProperty=!1,It.prototype.defined=!1;Gt=0;Ht=Vt();qt=Vt();_t=Vt();zt=Vt();Ft=Vt();Ut=Vt();Wt=Vt();Jt=Object.freeze({__proto__:null,"boolean":Ht,booleanish:qt,commaOrSpaceSeparated:Wt,commaSeparated:Ut,number:zt,overloadedBoolean:_t,spaceSeparated:Ft});Xt=Object.keys(Jt);Yt=/*#__PURE__*/function(_It){function Yt(t,e,n,i){var _this12;_classCallCheck(this,Yt);var r=-1;if(_this12=_callSuper(this,Yt,[t,e]),Kt(_assertThisInitialized(_this12),"space",i),"number"==typeof n)for(;++r<Xt.length;){var _t69=Xt[r];Kt(_assertThisInitialized(_this12),Xt[r],(n&Jt[_t69])===Jt[_t69]);}return _assertThisInitialized(_this12);}_inherits(Yt,_It);return _createClass(Yt);}(It);Yt.prototype.defined=!0;Qt={}.hasOwnProperty;te=Zt({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});ee=Zt({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});re=Zt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ie,properties:{xmlns:null,xmlnsXLink:null}});oe=Zt({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:qt,ariaAutoComplete:null,ariaBusy:qt,ariaChecked:qt,ariaColCount:zt,ariaColIndex:zt,ariaColSpan:zt,ariaControls:Ft,ariaCurrent:null,ariaDescribedBy:Ft,ariaDetails:null,ariaDisabled:qt,ariaDropEffect:Ft,ariaErrorMessage:null,ariaExpanded:qt,ariaFlowTo:Ft,ariaGrabbed:qt,ariaHasPopup:null,ariaHidden:qt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ft,ariaLevel:zt,ariaLive:null,ariaModal:qt,ariaMultiLine:qt,ariaMultiSelectable:qt,ariaOrientation:null,ariaOwns:Ft,ariaPlaceholder:null,ariaPosInSet:zt,ariaPressed:qt,ariaReadOnly:qt,ariaRelevant:null,ariaRequired:qt,ariaRoleDescription:Ft,ariaRowCount:zt,ariaRowIndex:zt,ariaRowSpan:zt,ariaSelected:qt,ariaSetSize:zt,ariaSort:null,ariaValueMax:zt,ariaValueMin:zt,ariaValueNow:zt,ariaValueText:null,role:null}});se=Zt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ie,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ut,acceptCharset:Ft,accessKey:Ft,action:null,allow:null,allowFullScreen:Ht,allowPaymentRequest:Ht,allowUserMedia:Ht,alt:null,as:null,async:Ht,autoCapitalize:null,autoComplete:Ft,autoFocus:Ht,autoPlay:Ht,blocking:Ft,capture:null,charSet:null,checked:Ht,cite:null,className:Ft,cols:zt,colSpan:null,content:null,contentEditable:qt,controls:Ht,controlsList:Ft,coords:zt|Ut,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":Ht,defer:Ht,dir:null,dirName:null,disabled:Ht,download:_t,draggable:qt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ht,formTarget:null,headers:Ft,height:zt,hidden:Ht,high:zt,href:null,hrefLang:null,htmlFor:Ft,httpEquiv:Ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ht,inputMode:null,integrity:null,is:null,isMap:Ht,itemId:null,itemProp:Ft,itemRef:Ft,itemScope:Ht,itemType:Ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ht,low:zt,manifest:null,max:null,maxLength:zt,media:null,method:null,min:null,minLength:zt,multiple:Ht,muted:Ht,name:null,nonce:null,noModule:Ht,noValidate:Ht,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ht,optimum:zt,pattern:null,ping:Ft,placeholder:null,playsInline:Ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ht,referrerPolicy:null,rel:Ft,required:Ht,reversed:Ht,rows:zt,rowSpan:zt,sandbox:Ft,scope:null,scoped:Ht,seamless:Ht,selected:Ht,shadowRootClonable:Ht,shadowRootDelegatesFocus:Ht,shadowRootMode:null,shape:null,size:zt,sizes:null,slot:null,span:zt,spellCheck:qt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zt,step:null,style:null,tabIndex:zt,target:null,title:null,translate:null,type:null,typeMustMatch:Ht,useMap:null,value:qt,width:zt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ft,axis:null,background:null,bgColor:null,border:zt,borderColor:null,bottomMargin:zt,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ht,declare:Ht,event:null,face:null,frame:null,frameBorder:null,hSpace:zt,leftMargin:zt,link:null,longDesc:null,lowSrc:null,marginHeight:zt,marginWidth:zt,noResize:Ht,noHref:Ht,noShade:Ht,noWrap:Ht,object:null,profile:null,prompt:null,rev:null,rightMargin:zt,rules:null,scheme:null,scrolling:qt,standby:null,summary:null,text:null,topMargin:zt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ht,disableRemotePlayback:Ht,prefix:null,property:null,results:zt,security:null,unselectable:null}});le=Zt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ne,properties:{about:Wt,accentHeight:zt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zt,amplitude:zt,arabicForm:null,ascent:zt,attributeName:null,attributeType:null,azimuth:zt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zt,by:null,calcMode:null,capHeight:zt,className:Ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:zt,diffuseConstant:zt,direction:null,display:null,dur:null,divisor:zt,dominantBaseline:null,download:Ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:zt,enableBackground:null,end:null,event:null,exponent:zt,externalResourcesRequired:null,fill:null,fillOpacity:zt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ut,g2:Ut,glyphName:Ut,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zt,horizOriginX:zt,horizOriginY:zt,id:null,ideographic:zt,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:zt,k:zt,k1:zt,k2:zt,k3:zt,k4:zt,kernelMatrix:Wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:zt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:zt,overlineThickness:zt,paintOrder:null,panose1:null,path:null,pathLength:zt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zt,pointsAtY:zt,pointsAtZ:zt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wt,rev:Wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wt,requiredFeatures:Wt,requiredFonts:Wt,requiredFormats:Wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:zt,specularExponent:zt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zt,strikethroughThickness:zt,string:null,stroke:null,strokeDashArray:Wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zt,strokeOpacity:zt,strokeWidth:null,style:null,surfaceScale:zt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wt,tabIndex:zt,tableValues:null,target:null,targetX:zt,targetY:zt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zt,underlineThickness:zt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zt,values:null,vAlphabetic:zt,vMathematical:zt,vectorEffect:null,vHanging:zt,vIdeographic:zt,version:null,vertAdvY:zt,vertOriginX:zt,vertOriginY:zt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});ae=/^data[-\w.:]+$/i;ce=/-[a-z]/g;ue=/[A-Z]/g;he=$t([ee,te,re,oe,se],"html");de=$t([ee,te,re,oe,le],"svg");fe={}.hasOwnProperty;ge=/["&'<>`]/g;je=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;ye=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;be=/[|\\{}()[\]^$+*?.]/g;we=new WeakMap();ke=/[\dA-Fa-f]/;Se=/\d/;xe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];Ce={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};Le=["cent","copy","divide","gt","lt","not","para","times"];Te={}.hasOwnProperty;Ae={};for(Oe in Ce)Te.call(Ce,Oe)&&(Ae[Ce[Oe]]=Oe);Me=/[^\dA-Za-z]/;De=/^>|^->|<!--|-->|--!>|<!-$/g;Ee=[">"];Re=["<",">"];Ge=/[ \t\n\f\r]/g;_e=Ue(1);ze=Ue(-1);Fe=[];We={}.hasOwnProperty;Je=Ve({body:function body(t,e,n){var i=_e(n,e);return!i||"comment"!==i.type;},caption:Xe,colgroup:Xe,dd:function dd(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=_e(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:Xe,html:function html(t,e,n){var i=_e(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=_e(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:Ye,rt:Ye,tbody:function tbody(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:Ke,tfoot:function tfoot(t,e,n){return!_e(n,e);},th:Ke,thead:function thead(t,e,n){var i=_e(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});Qe=Ve({body:function body(t){var e=_e(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&He(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=ze(n,e),r=_e(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&Je(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=t.children,n=[];var i=-1;for(;++i<e.length;){var _t71=e[i];if("element"===_t71.type&&("title"===_t71.tagName||"base"===_t71.tagName)){if(n.includes(_t71.tagName))return!1;n.push(_t71.tagName);}}return e.length>0;},html:function html(t){var e=_e(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=ze(n,e),r=_e(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&Je(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});Ze={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};en=["<","&"];rn=function(t,e){var n=e||{};function i(e){var _r12;var r=i.invalid;var o=i.handlers;if(e&&fe.call(e,t)){var _n27=String(e[t]);r=fe.call(o,_n27)?o[_n27]:i.unknown;}for(var _len2=arguments.length,n=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){n[_key2-1]=arguments[_key2];}if(r)return(_r12=r).call.apply(_r12,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+Ne(t.value,Object.assign({},i.settings.characterReferences,{subset:Ee}))+">":"\x3c!--"+t.value.replace(De,function(t){return Ne(t,Object.assign({},i.settings.characterReferences,{subset:Re}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=de);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r13=tn(t,i,e[i]);_r13&&n.push(_r13);}for(;++r<n.length;){var _e30=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e30&&"'"!==_e30&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&Qe(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&Je(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:nn(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:nn}});on={};sn={};ln=[];un=/*#__PURE__*/function(_Error2){function un(t){var _this13;_classCallCheck(this,un);_this13=_callSuper(this,un,[t]),_this13.name="ShikiError";return _this13;}_inherits(un,_Error2);return _createClass(un);}(/*#__PURE__*/_wrapNativeSuper(Error));pn=function pn(t,e){return t+(e-t%e)%e;};gn=null;jn=/*#__PURE__*/function(){function jn(t){_classCallCheck(this,jn);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=jn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n28=0;_n28<e;_n28++){var _a5=t.charCodeAt(_n28);var _c5=_a5,_u4=!1;if(_a5>=55296&&_a5<=56319&&_n28+1<e){var _e31=t.charCodeAt(_n28+1);_e31>=56320&&_e31<=57343&&(_c5=65536+(_a5-55296<<10)|_e31-56320,_u4=!0);}i&&(r[_n28]=l,_u4&&(r[_n28+1]=l),_c5<=127?o[l+0]=_n28:_c5<=2047?(o[l+0]=_n28,o[l+1]=_n28):_c5<=65535?(o[l+0]=_n28,o[l+1]=_n28,o[l+2]=_n28):(o[l+0]=_n28,o[l+1]=_n28,o[l+2]=_n28,o[l+3]=_n28)),_c5<=127?s[l++]=_c5:_c5<=2047?(s[l++]=192|(1984&_c5)>>>6,s[l++]=128|(63&_c5)>>>0):_c5<=65535?(s[l++]=224|(61440&_c5)>>>12,s[l++]=128|(4032&_c5)>>>6,s[l++]=128|(63&_c5)>>>0):(s[l++]=240|(1835008&_c5)>>>18,s[l++]=128|(258048&_c5)>>>12,s[l++]=128|(4032&_c5)>>>6,s[l++]=128|(63&_c5)>>>0),_u4&&_n28++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(jn,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n29=0,_i19=t.length;_n29<_i19;_n29++){var _r14=t.charCodeAt(_n29);var _o17=_r14,_s11=!1;if(_r14>=55296&&_r14<=56319&&_n29+1<_i19){var _e32=t.charCodeAt(_n29+1);_e32>=56320&&_e32<=57343&&(_o17=65536+(_r14-55296<<10)|_e32-56320,_s11=!0);}e+=_o17<=127?1:_o17<=2047?2:_o17<=65535?3:4,_s11&&_n29++;}return e;}}]);}();yn=/*#__PURE__*/function(){function yn(t){_classCallCheck(this,yn);_defineProperty(this,"id",++yn.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!gn)throw new un("Must invoke loadWasm first.");this._onigBinding=gn,this.content=t;var e=new jn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!yn._sharedPtrInUse?(yn._sharedPtr||(yn._sharedPtr=gn.omalloc(1e4)),yn._sharedPtrInUse=!0,gn.HEAPU8.set(e.utf8Value,yn._sharedPtr),this.ptr=yn._sharedPtr):this.ptr=e.createString(gn);}return _createClass(yn,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===yn._sharedPtr?yn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(yn,"LAST_ID",0);_defineProperty(yn,"_sharedPtr",0);_defineProperty(yn,"_sharedPtrInUse",!1);bn=/*#__PURE__*/function(){function bn(t){_classCallCheck(this,bn);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!gn)throw new un("Must invoke loadWasm first.");var e=[],n=[];for(var _i20=0,_r15=t.length;_i20<_r15;_i20++){var _r16=new jn(t[_i20]);e[_i20]=_r16.createString(gn),n[_i20]=_r16.utf8Length;}var i=gn.omalloc(4*t.length);gn.HEAPU32.set(e,i/4);var r=gn.omalloc(4*t.length);gn.HEAPU32.set(n,r/4);var o=gn.createOnigScanner(i,r,t.length);for(var _n30=0,_i21=t.length;_n30<_i21;_n30++)gn.ofree(e[_n30]);gn.ofree(r),gn.ofree(i),0===o&&function(t){throw new un(t.UTF8ToString(t.getLastOnigError()));}(gn),this._onigBinding=gn,this._ptr=o;}return _createClass(bn,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new yn(t);var _n31=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n31;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e33=0;_e33<c;_e33++){var _n32=t.convertUtf8OffsetToUtf16(s[l++]),_i22=t.convertUtf8OffsetToUtf16(s[l++]);u[_e33]={start:_n32,end:_i22,length:_i22-_n32};}return{index:a,captureIndices:u};}}]);}();En=/*#__PURE__*/function(_Error3){function En(t){var _this14;_classCallCheck(this,En);_this14=_callSuper(this,En,[t]),_this14.name="ShikiError";return _this14;}_inherits(En,_Error3);return _createClass(En);}(/*#__PURE__*/_wrapNativeSuper(Error));Bn=[Rn()];Gn=/*#__PURE__*/function(){function Gn(t,e,n){_classCallCheck(this,Gn);this._stack=t,this.lang=e,this.theme=n;}return _createClass(Gn,[{key:"scopes",get:function get(){return function(t){var e=[],n=new Set();function i(t){var _t$nameScopesList;if(n.has(t))return;n.add(t);var r=t===null||t===void 0||(_t$nameScopesList=t.nameScopesList)===null||_t$nameScopesList===void 0?void 0:_t$nameScopesList.scopeName;r&&e.push(r),t.parent&&i(t.parent);}return i(t),e;}(this._stack);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new Gn(Dt,t,e);}}]);}();Hn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];qn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};Un={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};ri={light:"#333333",dark:"#bbbbbb"};oi={light:"#fffffe",dark:"#1e1e1e"};si="__shiki_resolved";ui=Object.defineProperty;mi=function mi(t,e,n){return function(t,e,n){e in t?ui(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};pi=/*#__PURE__*/function(_Nt){function pi(t,e,n){var _this15;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,pi);_this15=_callSuper(this,pi,[t]),_this15._resolver=t,_this15._themes=e,_this15._langs=n,_this15._alias=i,mi(_assertThisInitialized(_this15),"_resolvedThemes",new Map()),mi(_assertThisInitialized(_this15),"_resolvedGrammars",new Map()),mi(_assertThisInitialized(_this15),"_langMap",new Map()),mi(_assertThisInitialized(_this15),"_langGraph",new Map()),mi(_assertThisInitialized(_this15),"_textmateThemeCache",new WeakMap()),mi(_assertThisInitialized(_this15),"_loadedThemesCache",null),mi(_assertThisInitialized(_this15),"_loadedLanguagesCache",null),_this15._themes.map(function(t){return _this15.loadTheme(t);}),_this15.loadLanguages(_this15._langs);return _this15;}_inherits(pi,_Nt);return _createClass(pi,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=li(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=S.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e45=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e45.has(t))throw new En("Circular alias `".concat(Array.from(_e45).join(" -> ")," -> ").concat(t,"`"));_e45.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this16=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this16._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator37=_createForOfIteratorHelper(e),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t98=_step37.value;this._resolvedGrammars["delete"](_t98.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t98.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t98.scopeName),this.loadLanguage(this._langMap.get(_t98.name));}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}}}},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(pi.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator38=_createForOfIteratorHelper(t),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _e48=_step38.value;this.resolveEmbeddedLanguages(_e48);}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t99=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new En("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t99.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i35=0,_e46=e;_i35<_e46.length;_i35++){var _e46$_i=_slicedToArray(_e46[_i35],2),_t100=_e46$_i[0],_n44=_e46$_i[1];this._resolver.addLanguage(_n44);}for(var _i36=0,_e47=e;_i36<_e47.length;_i36++){var _e47$_i=_slicedToArray(_e47[_i36],2),_t101=_e47$_i[0],_n45=_e47$_i[1];this.loadLanguage(_n45);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator39=_createForOfIteratorHelper(t.embeddedLangs),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e49=_step39.value;this._langGraph.set(_e49,this._langMap.get(_e49));}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}}}]);}(Nt);hi=Object.defineProperty;di=function di(t,e,n){return function(t,e,n){e in t?hi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};fi=/*#__PURE__*/function(){function fi(t,e){var _this17=this;_classCallCheck(this,fi);di(this,"_langs",new Map()),di(this,"_scopeToLang",new Map()),di(this,"_injections",new Map()),di(this,"_onigLib"),this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this17.addLanguage(t);});}return _createClass(fi,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this18=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this18._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this18._injections.get(e)||_this18._injections.set(e,[]),_this18._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t102=1;_t102<=e.length;_t102++){var i=e.slice(0,_t102).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();gi=0;vi=bi({langs:a,themes:m,engine:function engine(){return kn(c);}});_wi=wi(vi);ki=_wi.codeToHtml;Si=_wi.codeToHast;xi=_wi.codeToTokens;Ci=_wi.codeToTokensBase;Li=_wi.codeToTokensWithThemes;Ti=_wi.getSingletonHighlighter;Ai=_wi.getLastGrammarState;_export("N",Oi=/*#__PURE__*/function(_o22){function Oi(){var _this19;_classCallCheck(this,Oi);_this19=_callSuper(this,Oi,arguments),_this19.code="",_this19.language="javascript",_this19.theme="min-light",_this19.highlightedCode="";return _this19;}_inherits(Oi,_o22);return _createClass(Oi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.t0=t.has("code")||t.has("language")||t.has("theme");if(!_context14.t0){_context14.next=6;break;}_context14.next=4;return ki(this.code,{lang:this.language,theme:this.theme});case 4:this.highlightedCode=_context14.sent;this.requestUpdate();case 6:case"end":return _context14.stop();}},_callee13,this);}));function updated(_x22){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String})],Oi.prototype,"code",void 0),t([s({type:String,reflect:!0})],Oi.prototype,"language",void 0),t([s({type:String,reflect:!0})],Oi.prototype,"theme",void 0),t([n()],Oi.prototype,"highlightedCode",void 0),_export("N",Oi=t([i("nile-highlighter")],Oi));}};});
1
+ System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,_templateObject,_excluded,l,a,c,u,m,p,g,j,k,S,x,L,T,A,O,M,P,N,D,B,I,G,H,U,W,V,J,X,K,Q,Z,tt,et,nt,it,rt,ot,st,lt,at,ct,ut,mt,pt,ht,dt,ft,wt,xt,Lt,Tt,At,Ot,Mt,Pt,Nt,Dt,Et,Rt,It,Gt,Ht,qt,_t,zt,Ft,Ut,Wt,Jt,Xt,Yt,Qt,te,ee,re,oe,se,le,ae,ce,ue,he,de,fe,ge,je,ye,be,we,ke,Se,xe,Ce,Le,Te,Ae,Oe,Me,De,Ee,Re,Ge,_e,ze,Fe,We,Je,Qe,Ze,en,rn,on,sn,ln,un,pn,dn,fn,gn,jn,yn,bn,En,Bn,Gn,Hn,qn,Un,ri,oi,si,ui,mi,pi,hi,di,fi,gi,vi,_wi,ki,Si,xi,Ci,Li,Ti,Ai,Oi;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e55){function e(_x25){return _e55.apply(this,arguments);}e.toString=function(){return _e55.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e56){function e(_x26){return _e56.apply(this,arguments);}e.toString=function(){return _e56.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function h(t){return Array.isArray(t)?function(t){var e=[];for(var _n2=0,_i=t.length;_n2<_i;_n2++)e[_n2]=h(t[_n2]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n3 in t)e[_n3]=h(t[_n3]);return e;}(t):t;}function d(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n4 in e)t[_n4]=e[_n4];}),t;}function f(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?f(t.substring(0,t.length-1)):t.substr(1+~e);}function y(t,e){return t<e?-1:t>e?1:0;}function b(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i2=0;_i2<n;_i2++){var _n5=y(t[_i2],e[_i2]);if(0!==_n5)return _n5;}return 0;}return n-i;}function w(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function v(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function C(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function E(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t24=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t24=1;break;case"L":_t24=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e7=s();if(n.push({matcher:_e7,priority:_t24}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t25=o();return function(e){return!!_t25&&!_t25(e);};}if("("===r){r=i.next();var _t26=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t26;}if(R(r)){var _t27=[];do{_t27.push(r),r=i.next();}while(R(r));return function(n){return e(_t27,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function R(t){return!!t&&!!t.match(/[\w\.:]+/);}function $(t){"function"==typeof t.dispose&&t.dispose();}function q(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof B?z({baseGrammar:o,selfGrammar:r},i):_(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator4=_createForOfIteratorHelper(s),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t29=_step4.value;i.add(new B(_t29));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function _(t,e,n){if(e.repository&&e.repository[t]){F([e.repository[t]],e,n);}}function z(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&F(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&F(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function F(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _i8=_step5.value;if(n.visitedRule.has(_i8))continue;n.visitedRule.add(_i8);var _t30=_i8.repository?d({},e.repository,_i8.repository):e.repository;Array.isArray(_i8.patterns)&&F(_i8.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);var _r5=_i8.include;if(!_r5)continue;var _o5=Y(_r5);switch(_o5.kind){case 0:z(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:z(e,n);break;case 2:_(_o5.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);break;case 3:case 4:var _i9=_o5.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o5.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i9){var _r6={baseGrammar:e.baseGrammar,selfGrammar:_i9,repository:_t30};4===_o5.kind?_(_o5.ruleName,_r6,n):z(_r6,n);}else 4===_o5.kind?n.add(new I(_o5.scopeName,_o5.ruleName)):n.add(new B(_o5.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function Y(t){if("$base"===t)return new U();if("$self"===t)return new W();var e=t.indexOf("#");if(-1===e)return new J(t);if(0===e)return new V(t.substring(1));{var _n14=t.substring(0,e),_i10=t.substring(e+1);return new X(_n14,_i10);}}function gt(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s7=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e19=r;_e19;_e19=_e19.pop()){var _n18=_e19.getRule(t);_n18 instanceof st&&l.push({rule:_n18,stack:_e19});}for(var _a3=l.pop();_a3;_a3=l.pop()){var _yt=yt(_a3.rule,t,_a3.stack.endRule,n,i===s),_l4=_yt.ruleScanner,_c3=_yt.findOptions,_u2=_l4.findNextMatchSync(e,i,_c3);if(!_u2){r=_a3.stack.pop();break;}if(_u2.ruleId!==tt){r=_a3.stack.pop();break;}_u2.captureIndices&&_u2.captureIndices.length&&(o.produce(_a3.stack,_u2.captureIndices[0].start),bt(t,e,n,_a3.stack,o,_a3.rule.whileCaptures,_u2.captureIndices),o.produce(_a3.stack,_u2.captureIndices[0].end),s=_u2.captureIndices[0].end,_u2.captureIndices[0].end>i&&(i=_u2.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s7.stack,i=_s7.linePos,n=_s7.isFirstLine,u=_s7.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new ft(r,!0);}p();}return new ft(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_jt=jt(s,t,r.endRule,n,i===o),l=_jt.ruleScanner,a=_jt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o11=0,_p=t.length;_o11<_p;_o11++){var _p2=t[_o11];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_jt2=jt(_h,e,null,i,r===s),_d=_jt2.ruleScanner,_f=_jt2.findOptions,_g=_d.findNextMatchSync(n,r,_f);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===Z){var _s8=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),bt(t,e,n,r,o,_s8.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s9=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s9.getName(e.content,l),_f2=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f2,_f2),_s9 instanceof ot){var _i12=_s9;bt(t,e,n,r,o,_i12.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i12.getContentName(e.content,l),_d3=_f2.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i12.endHasBackReferences&&(r=r.withEndRule(_i12.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s9 instanceof st){var _i13=_s9;bt(t,e,n,r,o,_i13.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i13.getContentName(e.content,l),_d4=_f2.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i13.whileHasBackReferences&&(r=r.withEndRule(_i13.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(bt(t,e,n,r,o,_s9.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function jt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function yt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function bt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e20=0;_e20<a;_e20++){var _a4=o[_e20];if(null===_a4)continue;var _m4=s[_e20];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a4.retokenizeCapturedWithRuleId){var _e21=_a4.getName(l,s),_o12=i.contentNameScopesList.pushAttributed(_e21,t),_c4=_a4.getContentName(l,s),_u3=_o12.pushAttributed(_c4,t),_p3=i.push(_a4.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o12,_u3),_h3=t.createOnigString(l.substring(0,_m4.end));gt(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),$(_h3);continue;}var _p4=_a4.getName(l,s);if(null!==_p4){var _e22=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new wt(_e22,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function vt(t,e,n,i,r){var o=E(e,kt),s=lt.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n19=_step9.value;t.push({debugSelector:e,matcher:_n19.matcher,ruleId:s,grammar:r,priority:_n19.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function kt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var _i14=n;_i14<e.length;_i14++)if(St(e[_i14],t))return n=_i14+1,!0;return!1;});}function St(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function Ct(t,e){return(t=h(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function $t(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new Rt(n,i,e);}function Bt(t){return t.toLowerCase();}function Vt(){return Math.pow(2,++Gt);}function Kt(t,e,n){n&&(t[e]=n);}function Zt(t){var e={},n={};var i;for(i in t.properties)if(Qt.call(t.properties,i)){var _r11=t.properties[i],_o15=new Yt(i,t.transform(t.attributes||{},i),_r11,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o15.mustUseProperty=!0),e[i]=_o15,n[Bt(i)]=i,n[Bt(_o15.attribute)]=i;}return new Rt(e,n,t.space);}function ne(t,e){return e in t?t[e]:e;}function ie(t,e){return ne(t,e.toLowerCase());}function me(t){return"-"+t.toLowerCase();}function pe(t){return t.charAt(1).toUpperCase();}function ve(t,e){return t=t.replace(e.subset?function(t){var e=we.get(t);e||(e=function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(be,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(t),we.set(t,e));return e;}(e.subset):ge,n),e.subset||e.escapeOnly?t:t.replace(je,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(ye,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function Pe(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!ke.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(Te.call(Ae,r)){var _t70=Ae[r],_o16="&"+_t70;return n&&xe.includes(_t70)&&!Le.includes(_t70)&&(!i||e&&61!==e&&Me.test(String.fromCharCode(e)))?_o16:_o16+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i18=function(t,e,n){var i="&#"+String(t);return n&&e&&!Se.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i18.length<r.length&&(r=_i18);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function Ne(t,e){return ve(t,Object.assign({format:Pe},e));}function $e(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function Be(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function Ie(t){return t.join(" ").trim();}function He(t){return"object"==_typeof(t)?"text"===t.type&&qe(t.value):qe(t);}function qe(t){return""===t.replace(Ge,"");}function Ue(t){return function(e,n,i){var r=e?e.children:Fe;var o=(n||0)+t,s=r[o];if(!i)for(;s&&He(s);)o+=t,s=r[o];return s;};}function Ve(t){return function(e,n,i){return We.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function Xe(t,e,n){var i=_e(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&He(i.value.charAt(0)));}function Ye(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function Ke(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function tn(t,e,n){var i=function(t,e){var n=Bt(e);var i=e,r=It;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ae.test(e)){if("-"===e.charAt(4)){var _t72=e.slice(5).replace(ce,pe);i="data"+_t72.charAt(0).toUpperCase()+_t72.slice(1);}else{var _t73=e.slice(4);if(!ce.test(_t73)){var _n26=_t73.replace(ue,me);"-"!==_n26.charAt(0)&&(_n26="-"+_n26),e="data"+_n26;}}r=Yt;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=Ne(i.attribute,Object.assign({},t.settings.characterReferences,{subset:Ze.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?Be:Ie)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=Ne(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Ze.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&$e(n,l)>$e(n,t.alternative)&&(l=t.alternative),s=l+Ne(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?Ze.single:Ze["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function nn(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Ne(t.value,Object.assign({},i.settings.characterReferences,{subset:en})):t.value;}function an(t,e,n){return rn(t,e,n,this);}function cn(t){var e=[],n=t&&t.children||ln;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function mn(){return"undefined"!=typeof performance?performance.now():Date.now();}function hn(_x2){return _hn.apply(this,arguments);}function _hn(){_hn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:l=function _l10(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n47=t[e++];if(!(128&_n47)){o+=String.fromCharCode(_n47);continue;}var _i37=63&t[e++];if(192==(224&_n47)){o+=String.fromCharCode((31&_n47)<<6|_i37);continue;}var _r33=63&t[e++];if(_n47=224==(240&_n47)?(15&_n47)<<12|_i37<<6|_r33:(7&_n47)<<18|_i37<<12|_r33<<6|63&t[e++],_n47<65536)o+=String.fromCharCode(_n47);else{var _t33=_n47-65536;o+=String.fromCharCode(55296|_t33>>10,56320|1023&_t33);}}return o;}(i.HEAPU8,t,e):"";};o=function _o23(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r35(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:mn,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i38=1;_i38<=4;_i38*=2){var _r34=e*(1+.2/_i38);_r34=Math.min(_r34,t+100663296);if(o(Math.min(n,pn(Math.max(t,_r34),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context16.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var n,o;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context15.next=3;return t(n);case 3:o=_context15.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context15.stop();}},_callee14);}))();case 8:return _context16.abrupt("return",i);case 9:case"end":return _context16.stop();}},_callee15);}));return _hn.apply(this,arguments);}function wn(t){if(dn)return dn;return dn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return hn(/*#__PURE__*/function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e){var n,i;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:n=t;_context4.next=3;return n;case 3:n=_context4.sent;_context4.t0="function"==typeof n;if(!_context4.t0){_context4.next=9;break;}_context4.next=8;return n(e);case 8:n=_context4.sent;case 9:_context4.t1="function"==typeof n;if(!_context4.t1){_context4.next=14;break;}_context4.next=13;return n(e);case 13:n=_context4.sent;case 14:if(!("function"==typeof n.instantiator)){_context4.next=20;break;}_context4.next=17;return n.instantiator(e);case 17:n=_context4.sent;_context4.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context4.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context4.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context4.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context4.next=30;break;}_context4.next=27;return vn(n)(e);case 27:n=_context4.sent;_context4.next=35;break;case 30:_context4.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context4.t2){_context4.next=35;break;}_context4.next=34;return vn(n["default"])(e);case 34:n=_context4.sent;case 35:_context4.next=40;break;case 37:_context4.next=39;return vn(n)(e);case 39:n=_context4.sent;case 40:_context4.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context4.next=48;break;}_context4.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context4.t3=_context4.sent;_context4.next=51;break;case 48:_context4.next=50;return function(t){return/*#__PURE__*/function(){var _ref6=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t.arrayBuffer();case 2:n=_context3.sent;return _context3.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x4){return _ref6.apply(this,arguments);};}();}(n)(e);case 50:_context4.t3=_context4.sent;case 51:n=_context4.t3;case 52:_context4.next=57;break;case 54:_context4.next=56;return n["default"](e);case 56:n=_context4.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context4.abrupt("return",n);case 60:case"end":return _context4.stop();}},_callee3);}));return function(_x3){return _ref5.apply(this,arguments);};}());case 2:gn=_context5.sent;case 3:case"end":return _context5.stop();}},_callee4);}))(),dn;}function vn(t){return function(e){return WebAssembly.instantiate(t,e);};}function kn(_x5){return _kn.apply(this,arguments);}function _kn(){_kn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(t){return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.t0=t;if(!_context17.t0){_context17.next=4;break;}_context17.next=4;return wn(t);case 4:return _context17.abrupt("return",{createScanner:function createScanner(t){return new bn(t);},createString:function createString(t){return new yn(t);}});case 5:case"end":return _context17.stop();}},_callee16);}));return _kn.apply(this,arguments);}function Sn(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t74=0;_t74<n.length;_t74+=2){var _n33;var _o18=e?n[_t74]+(n[_t74+1]||""):n[_t74];r.push([_o18,i]),i+=n[_t74].length,i+=((_n33=n[_t74+1])===null||_n33===void 0?void 0:_n33.length)||0;}return r;}function xn(t){return!t||["plaintext","txt","text","plain"].includes(t);}function Cn(t){return"ansi"===t||xn(t);}function Ln(t){return"none"===t;}function Tn(t){return Ln(t);}function An(t,e){var n;if(!e)return t;t.properties||(t.properties={}),(n=t.properties)["class"]||(n["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var i=Array.isArray(e)?e:e.split(/\s+/g);var _iterator18=_createForOfIteratorHelper(i),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _e34=_step18.value;_e34&&!t.properties["class"].includes(_e34)&&t.properties["class"].push(_e34);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return t;}function On(_x6){return _On.apply(this,arguments);}function _On(){_On=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(t){return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:return _context18.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context18.stop();}},_callee17);}));return _On.apply(this,arguments);}function Mn(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i23=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i23<_Object$entries.length;_i23++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i23],2),_t75=_Object$entries$_i[0],_r17=_Object$entries$_i[1];"string"==typeof _r17?n[_t75]=_r17:_t75===i&&Object.assign(n,_r17);}return n;}function Pn(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Nn(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&A.Italic&&(e["font-style"]="italic"),t.fontStyle&A.Bold&&(e["font-weight"]="bold"),t.fontStyle&A.Underline&&(e["text-decoration"]="underline")),e;}function Dn(t){return Object.entries(t).map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),t=_ref8[0],e=_ref8[1];return"".concat(t,":").concat(e);}).join(";");}function Rn(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _n34=function _n34(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new En("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},i.indexToPos(t)),{},{offset:t});}{var _e35=i.lines[t.line];if(void 0===_e35)throw new En("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(i.lines.length));if(t.character<0||t.character>_e35.length)throw new En("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e35.length));return _objectSpread(_objectSpread({},t),{},{offset:i.posToIndex(t.line,t.character)});}};var i=function(t){var e=Sn(t,!0).map(function(_ref9){var _ref10=_slicedToArray(_ref9,1),t=_ref10[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator19=_createForOfIteratorHelper(e),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _t76=_step19.value;if(i<_t76.length)break;i-=_t76.length,r++;}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n35=0;_n35<t;_n35++)i+=e[_n35].length;return i+=n,i;}};}(e.source),_r18=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_n34(t.start),end:_n34(t.end)});});!function(t){for(var _e36=0;_e36<t.length;_e36++){var _n36=t[_e36];if(_n36.start.offset>_n36.end.offset)throw new En("Invalid decoration range: ".concat(JSON.stringify(_n36.start)," - ").concat(JSON.stringify(_n36.end)));for(var _i24=_e36+1;_i24<t.length;_i24++){var _e37=t[_i24],_r19=_n36.start.offset<_e37.start.offset&&_e37.start.offset<_n36.end.offset,_o19=_n36.start.offset<_e37.end.offset&&_e37.end.offset<_n36.end.offset,_s12=_e37.start.offset<_n36.start.offset&&_n36.start.offset<_e37.end.offset,_l5=_e37.start.offset<_n36.end.offset&&_n36.end.offset<_e37.end.offset;if(_r19||_o19||_s12||_l5){if(_o19&&_o19)continue;if(_s12&&_l5)continue;throw new En("Decorations ".concat(JSON.stringify(_n36.start)," and ").concat(JSON.stringify(_e37.start)," intersect."));}}}}(_r18),t.set(e.meta,{decorations:_r18,converter:i,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _r20=_step20.value;_r20>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r20),offset:t.offset+n})),n=_r20;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new En("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t77=0;_t77<o.children.length;_t77++)l+=$n(o.children[_t77]),-1===a&&l.length===e&&(a=_t77+1),-1===c&&l.length===n&&(c=_t77+1);if(-1===a)throw new En("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new En("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=o.children.slice(a,c);if(r.alwaysWrap||u.length!==o.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t78={type:"element",tagName:"span",properties:{},children:u};s(_t78,r,"wrapper"),o.children.splice(a,u.length,_t78);}else s(u[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&An(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator21=_createForOfIteratorHelper(a),_step21;try{var _loop=function _loop(){var t=_step21.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i25){l.unshift(function(){return o(_i25,t);});};for(var _i25=e.line+1;_i25<n.line;_i25++){_loop2(_i25);}r(n.line,0,n.character,t);}};for(_iterator21.s();!(_step21=_iterator21.n()).done;){_loop();}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}l.forEach(function(t){return t();});}};}function $n(t){return"text"===t.type?t.value:"element"===t.type?t.children.map($n).join(""):"";}function In(t){return[].concat(_toConsumableArray(t.transformers||[]),Bn);}function _n(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e38=t.indexOf("m",n);return{sequence:t.substring(n+2,_e38).split(";"),startPosition:n,position:_e38+1};}return{position:t.length};}function zn(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i26=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i26.length||_i26.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i26});}else if("5"===i){var _i27=Number.parseInt(t[e+n]);Number.isNaN(_i27)||(r={type:"table",index:Number(_i27)});}return[n,r];}function Fn(t){var e=[];for(var _n37=0;_n37<t.length;_n37++){var i=t[_n37],_r21=Number.parseInt(i);if(!Number.isNaN(_r21))if(0===_r21)e.push({type:"resetAll"});else if(_r21<=9){qn[_r21]&&e.push({type:"setDecoration",value:qn[_r21]});}else if(_r21<=29){var _t79=qn[_r21-20];_t79&&e.push({type:"resetDecoration",value:_t79});}else if(_r21<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Hn[_r21-30]}});else if(38===_r21){var _zn=zn(t,_n37),_zn2=_slicedToArray(_zn,2),_i28=_zn2[0],_r22=_zn2[1];_r22&&e.push({type:"setForegroundColor",value:_r22}),_n37+=_i28;}else if(39===_r21)e.push({type:"resetForegroundColor"});else if(_r21<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Hn[_r21-40]}});else if(48===_r21){var _zn3=zn(t,_n37),_zn4=_slicedToArray(_zn3,2),_i29=_zn4[0],_r23=_zn4[1];_r23&&e.push({type:"setBackgroundColor",value:_r23}),_n37+=_i29;}else 49===_r21?e.push({type:"resetBackgroundColor"}):_r21>=90&&_r21<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Hn[_r21-90+8]}}):_r21>=100&&_r21<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Hn[_r21-100+8]}});}return e;}function Wn(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Un;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t80=0;_t80<Hn.length;_t80++)i.push(e(Hn[_t80]));var t=[0,95,135,175,215,255];for(var _e39=0;_e39<6;_e39++)for(var _r24=0;_r24<6;_r24++)for(var _o20=0;_o20<6;_o20++)i.push(n([t[_e39],t[_r24],t[_o20]]));var r=8;for(var _t81=0;_t81<24;_t81++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function Vn(t,e,n){var i=Mn(t,n),r=Sn(e),o=Wn(Object.fromEntries(Hn.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s13=_n(i,o),_l6=_s13.sequence?i.substring(o,_s13.startPosition):i.substring(o);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_s13.sequence){var _i30=Fn(_s13.sequence);var _iterator22=_createForOfIteratorHelper(_i30),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _r25=_step22.value;"resetAll"===_r25.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r25.type?t=null:"resetBackgroundColor"===_r25.type?e=null:"resetDecoration"===_r25.type&&n["delete"](_r25.value);}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}var _iterator23=_createForOfIteratorHelper(_i30),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r26=_step23.value;"setForegroundColor"===_r26.type?t=_r26.value:"setBackgroundColor"===_r26.type?e=_r26.value:"setDecoration"===_r26.type&&n.add(_r26.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}o=_s13.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Pn(r,i),s=Pn(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t82=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t82);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=A.None;return n.decorations.has("bold")&&(l|=A.Bold),n.decorations.has("italic")&&(l|=A.Italic),n.decorations.has("underline")&&(l|=A.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function Jn(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(xn(i)||Ln(r))return Sn(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return Vn(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new p("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(n.grammarState.theme!==r)throw new p("Grammar state theme \"".concat(n.grammarState.theme,"\" does not match highlight theme \"").concat(r,"\""));}return function(t,e,n,i,r){return Xn(t,e,n,i,r).tokens;}(e,l,o,s,n);}function Xn(t,e,n,i,r){var o=Mn(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=Sn(t);var c=r.grammarState?function(t){if(!(t instanceof Gn))throw new En("Invalid grammar state");return t._stack;}(r.grammarState):null!=r.grammarContextCode?Xn(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Dt,u=[];var m=[];for(var _t83=0,_h4=a.length;_t83<_h4;_t83++){var _a$_t=_slicedToArray(a[_t83],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(s>0&&_h5.length>=s){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f3=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f3=e.tokenizeLine(_h5,c),_g2=_f3.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t84=0;_t84<_b;_t84++){var _e40=_y.tokens[2*_t84],_s14=_t84+1<_b?_y.tokens[2*_t84+2]:_h5.length;if(_e40===_s14)continue;var _l7=_y.tokens[2*_t84+1],_a6=Pn(i[D.getForeground(_l7)],o),_c6=D.getFontStyle(_l7),_m5={content:_h5.substring(_e40,_s14),offset:_d5+_e40,color:_a6,fontStyle:_c6};if(r.includeExplanation){var _t85=[];if("scopeName"!==r.includeExplanation){var _iterator24=_createForOfIteratorHelper(n.settings),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _e41=_step24.value;var _n38=void 0;switch(_typeof(_e41.scope)){case"string":_n38=_e41.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n38=_e41.scope;break;default:continue;}_t85.push({settings:_e41,selectors:_n38.map(function(t){return t.split(/ /);})});}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}_m5.explanation=[];var _i31=0;for(;_e40+_i31<_s14;){var _e42=_g2[_j2],_n39=_h5.substring(_e42.startIndex,_e42.endIndex);_i31+=_n39.length,_m5.explanation.push({content:_n39,scopes:"scopeName"===r.includeExplanation?(p=_e42.scopes,p.map(function(t){return{scopeName:t};})):Yn(_t85,_e42.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function Yn(t,e){var n=[];for(var i=0,_r27=e.length;i<_r27;i++){var _r28=e[i];n[i]={scopeName:_r28,themeMatches:Zn(t,_r28,e.slice(0,i))};}return n;}function Kn(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function Qn(t,e,n){if(!Kn(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)Kn(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function Zn(t,e,n){var i=[];var _iterator25=_createForOfIteratorHelper(t),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _step25$value=_step25.value,_r29=_step25$value.selectors,_o21=_step25$value.settings;var _iterator26=_createForOfIteratorHelper(_r29),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _t86=_step26.value;if(Qn(_t86,e,n)){i.push(_o21);break;}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}return i;}function ti(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=function(){for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++){t[_key3]=arguments[_key3];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i32){var r=t.map(function(t){return t[_i32];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t87=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e43=0;_e43<n;_e43++){var _n40=l[_e43];_n40.content.length===_t87?(o[_e43].push(_n40),s[_e43]+=1,l[_e43]=r[_e43][s[_e43]]):(o[_e43].push(_objectSpread(_objectSpread({},_n40),{},{content:_n40.content.slice(0,_t87)})),l[_e43]=_objectSpread(_objectSpread({},_n40),{},{content:_n40.content.slice(_t87),offset:_n40.offset+_t87}));}}};for(var _i32=0;_i32<t[0].length;_i32++){_loop3(_i32);}return e;}.apply(void 0,_toConsumableArray(i.map(function(i){return Jn(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));}))),o=r[0].map(function(t,e){return t.map(function(t,o){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(function(t,n){var _t$e$o=t[e][o],r=_t$e$o.content,l=_t$e$o.explanation,a=_t$e$o.offset,c=_objectWithoutProperties(_t$e$o,_excluded);s.variants[i[n].color]=c;}),s;});});return o;}function ei(t,e,n){var i,r,o,s,l;if("themes"in n){var _n$defaultColor=n.defaultColor,_a7=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_c7=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_u5=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_a7?-1:e.color===_a7?1:0;});if(0===_u5.length)throw new En("`themes` option must not be empty");var _m6=ti(t,e,n);if(_a7&&!_u5.find(function(t){return t.color===_a7;}))throw new En("`themes` option must contain the defaultColor key `".concat(_a7,"`"));var _p5=_u5.map(function(e){return t.getTheme(e.theme);}),_h6=_u5.map(function(t){return t.color;});o=_m6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return Nn(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l=o.reduce(function(t,r,o){var _iterator27=_createForOfIteratorHelper(s),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _l8=_step27.value;var _s15=r[_l8]||"inherit";if(0===o&&i)t[_l8]=_s15;else{var _i33="color"===_l8?"":"background-color"===_l8?"-bg":"-".concat(_l8),_r30=n+e[o]+("color"===_l8?"":_i33);t[_l8]?t[_l8]+=";".concat(_r30,":").concat(_s15):t[_l8]="".concat(_r30,":").concat(_s15);}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}return t;},{});return r.htmlStyle=i?Dn(l):Object.values(l).join(";"),r;}(t,_h6,_c7,_a7);});});var _d6=_u5.map(function(t){return Mn(t.theme,n);});r=_u5.map(function(t,e){return(0===e&&_a7?"":"".concat(_c7+t.color,":"))+(Pn(_p5[e].fg,_d6[e])||"inherit");}).join(";"),i=_u5.map(function(t,e){return(0===e&&_a7?"":"".concat(_c7+t.color,"-bg:"))+(Pn(_p5[e].bg,_d6[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_p5.map(function(t){return t.name;}).join(" ")),l=_a7?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new En("Invalid options, either `theme` or `themes` must be provided");{var _l9=Mn(n.theme,n);o=Jn(t,e,n);var _a8=t.getTheme(n.theme);i=Pn(_a8.bg,_l9),r=Pn(_a8.fg,_l9),s=_a8.name;}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l};}function ni(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return ni(t,e,n);},codeToTokens:function codeToTokens(e,n){return ei(t,e,n);}};var r=e;var _iterator28=_createForOfIteratorHelper(In(n)),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _t93$preprocess;var _t93=_step28.value;r=((_t93$preprocess=_t93.preprocess)===null||_t93$preprocess===void 0?void 0:_t93$preprocess.call(i,r,n))||r;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _ei=ei(t,r,n),o=_ei.tokens,s=_ei.fg,l=_ei.bg,a=_ei.themeName,c=_ei.rootStyle;var _n$mergeWhitespaces=n.mergeWhitespaces,u=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===u?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&A.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===u&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e44=_slicedToArray(e,4),n=_e44[1],i=_e44[2],r=_e44[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var m=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator29=_createForOfIteratorHelper(In(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t94$tokens;var _t94=_step29.value;o=((_t94$tokens=_t94.tokens)===null||_t94$tokens===void 0?void 0:_t94$tokens.call(m,o))||o;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}return function(t,e,n){var i=In(e),r=[],o={type:"root",children:[]},_e$structure=e.structure,s=_e$structure===void 0?"classic":_e$structure;var l={type:"element",tagName:"pre",properties:_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg),tabindex:"0"},Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref11){var _ref12=_slicedToArray(_ref11,1),t=_ref12[0];return!t.startsWith("_");}))),children:[]},a={type:"element",tagName:"code",properties:{},children:r};var c=[],u=_objectSpread(_objectSpread({},n),{},{structure:s,addClassToHast:An,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return l;},get code(){return a;},get lines(){return c;}});if(t.forEach(function(t,e){e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},l=0;var _iterator30=_createForOfIteratorHelper(t),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _r31=_step30.value;var _t89={type:"element",tagName:"span",properties:{},children:[{type:"text",value:_r31.content}]};var _a9=_r31.htmlStyle||Dn(Nn(_r31));_a9&&(_t89.properties.style=_a9);var _iterator32=_createForOfIteratorHelper(i),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _r32$span;var _r32=_step32.value;_t89=(_r32===null||_r32===void 0||(_r32$span=_r32.span)===null||_r32$span===void 0?void 0:_r32$span.call(u,_t89,e+1,l,n))||_t89;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}"inline"===s?o.children.push(_t89):"classic"===s&&n.children.push(_t89),l+=_r31.content.length;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}if("classic"===s){var _iterator31=_createForOfIteratorHelper(i),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t88$line;var _t88=_step31.value;n=(_t88===null||_t88===void 0||(_t88$line=_t88.line)===null||_t88$line===void 0?void 0:_t88$line.call(u,n,e+1))||n;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}c.push(n),r.push(n);}}),"classic"===s){var _iterator33=_createForOfIteratorHelper(i),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _t90$code;var _t90=_step33.value;a=(_t90===null||_t90===void 0||(_t90$code=_t90.code)===null||_t90$code===void 0?void 0:_t90$code.call(u,a))||a;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}l.children.push(a);var _iterator34=_createForOfIteratorHelper(i),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t91$pre;var _t91=_step34.value;l=(_t91===null||_t91===void 0||(_t91$pre=_t91.pre)===null||_t91$pre===void 0?void 0:_t91$pre.call(u,l))||l;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}o.children.push(l);}var m=o;var _iterator35=_createForOfIteratorHelper(i),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t92$root;var _t92=_step35.value;m=(_t92===null||_t92===void 0||(_t92$root=_t92.root)===null||_t92$root===void 0?void 0:_t92$root.call(u,m))||m;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}return m;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),m);}function ii(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return ni(t,e,n);},codeToTokens:function codeToTokens(e,n){return ei(t,e,n);}};var r=function(t,e){var n=e||on,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:an,all:cn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Et,characterReferences:n.characterReferences||sn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?de:he,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(ni(t,e,n,i));var _iterator36=_createForOfIteratorHelper(In(n)),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t95$postprocess;var _t95=_step36.value;r=((_t95$postprocess=_t95.postprocess)===null||_t95$postprocess===void 0?void 0:_t95$postprocess.call(i,r,n))||r;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}return r;}function li(t){if(t!==null&&t!==void 0&&t[si])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t96$settings,_t96$settings2,_e$colors,_e$colors2;var _t96=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t96!==null&&_t96!==void 0&&(_t96$settings=_t96.settings)!==null&&_t96$settings!==void 0&&_t96$settings.foreground&&(i=_t96.settings.foreground),_t96!==null&&_t96!==void 0&&(_t96$settings2=_t96.settings)!==null&&_t96$settings2!==void 0&&_t96$settings2.background&&(n=_t96.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?ri.light:ri.dark),n||(n="light"===e.type?oi.light:oi.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n41=s(t.settings.foreground);e.colorReplacements[_n41]=t.settings.foreground,r.settings.foreground=_n41;}if(i){var _n42=s(t.settings.background);e.colorReplacements[_n42]=t.settings.background,r.settings.background=_n42;}return r;});for(var _i34=0,_Object$keys2=Object.keys(e.colors||{});_i34<_Object$keys2.length;_i34++){var _e$colors$_t;var _t97=_Object$keys2[_i34];if(("editor.foreground"===_t97||"editor.background"===_t97||_t97.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t97])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n43=s(e.colors[_t97]);e.colorReplacements[_n43]=e.colors[_t97],e.colors[_t97]=_n43;}}return Object.defineProperty(e,si,{enumerable:!1,writable:!1,value:!0}),e;}function ai(_x7){return _ai.apply(this,arguments);}function _ai(){_ai=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(t){return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.t0=Array;_context20.t1=Set;_context20.next=4;return Promise.all(t.filter(function(t){return!Cn(t);}).map(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(t){return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return On(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context19.abrupt("return",_context19.sent);case 3:case"end":return _context19.stop();}},_callee18);}));return function(_x23){return _ref24.apply(this,arguments);};}()));case 4:_context20.t2=_context20.sent.flat();_context20.t3=new _context20.t1(_context20.t2);return _context20.abrupt("return",_context20.t0.from.call(_context20.t0,_context20.t3));case 7:case"end":return _context20.stop();}},_callee19);}));return _ai.apply(this,arguments);}function ci(_x8){return _ci.apply(this,arguments);}function _ci(){_ci=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t){return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(t){return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:if(!Tn(t)){_context21.next=4;break;}_context21.t0=null;_context21.next=9;break;case 4:_context21.t1=li;_context21.next=7;return On(t);case 7:_context21.t2=_context21.sent;_context21.t0=(0,_context21.t1)(_context21.t2);case 9:return _context21.abrupt("return",_context21.t0);case 10:case"end":return _context21.stop();}},_callee20);}));return function(_x24){return _ref25.apply(this,arguments);};}()));case 2:return _context22.abrupt("return",_context22.sent.filter(function(t){return!!t;}));case 3:case"end":return _context22.stop();}},_callee21);}));return _ci.apply(this,arguments);}function ji(){return _ji.apply(this,arguments);}function _ji(){_ji=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args14=arguments;return _regeneratorRuntime().wrap(function _callee25$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:t=_args14.length>0&&_args14[0]!==undefined?_args14[0]:{};_context26.next=3;return Promise.all([ci(t.themes||[]),ai(t.langs||[]),t.engine||kn(t.loadWasm||fn)]);case 3:_yield$Promise$all=_context26.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context26.abrupt("return",function(t){gi+=1,!1!==t.warnings&&gi>=10&&gi%10==0&&console.warn("[Shiki] ".concat(gi," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));var e=!1;if(!t.engine)throw new En("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(li),r=new fi(t.engine,n),o=new pi(r,i,n,t.langAlias);var s;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=o.getTheme(t);if(!e)throw new En("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}u(),o.loadLanguages(t.flat(1));}function c(){return _c8.apply(this,arguments);}function _c8(){_c8=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(){var _len7,t,_key7,_iterator40,_step40,_e54,_args13=arguments;return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:u();for(_len7=_args13.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=_args13[_key7];}_iterator40=_createForOfIteratorHelper(t.flat(1));try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){_e54=_step40.value;o.loadTheme(_e54);}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}case 4:case"end":return _context25.stop();}},_callee24);}));return _c8.apply(this,arguments);}function u(){if(e)throw new En("Shiki instance has been disposed");}function m(){e||(e=!0,o.dispose(),gi-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return s!==t&&(o.setTheme(e),s=t),{theme:e,colorMap:o.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=o.getGrammar("string"==typeof t?t:t.name);if(!e)throw new En("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),o.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),o.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(){var _len8,t,_key8,_args11=arguments;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:for(_len8=_args11.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=_args11[_key8];}_context23.t0=a;_context23.next=4;return ai(t);case 4:_context23.t1=_context23.sent;return _context23.abrupt("return",(0,_context23.t0)(_context23.t1));case 6:case"end":return _context23.stop();}},_callee22);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var _len9,t,_key9,_args12=arguments;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:for(_len9=_args12.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args12[_key9];}u();_context24.t0=c;_context24.next=5;return ci(t);case 5:_context24.t1=_context24.sent;return _context24.abrupt("return",(0,_context24.t0)(_context24.t1));case 7:case"end":return _context24.stop();}},_callee23);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 9:case"end":return _context26.stop();}},_callee25);}));return _ji.apply(this,arguments);}function yi(){return _yi.apply(this,arguments);}function _yi(){_yi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(){var t,e,_args15=arguments;return _regeneratorRuntime().wrap(function _callee26$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:t=_args15.length>0&&_args15[0]!==undefined?_args15[0]:{};_context27.next=3;return ji(t);case 3:e=_context27.sent;return _context27.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(t,n){return function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang2=n.lang,i=_n$lang2===void 0?"text":_n$lang2,_n$theme2=n.theme,r=_n$theme2===void 0?t.getLoadedThemes()[0]:_n$theme2;if(xn(i)||Ln(r))throw new p("Plain language does not have grammar state");if("ansi"===i)throw new p("ANSI language does not have grammar state");var _t$setTheme2=t.setTheme(r),o=_t$setTheme2.theme,s=_t$setTheme2.colorMap,l=t.getLanguage(i);return new Gn(Xn(e,l,o,s,n).stateStack,l.name,o.name);}(e,t,n);},codeToTokensBase:function codeToTokensBase(t,n){return Jn(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return ti(e,t,n);},codeToTokens:function codeToTokens(t,n){return ei(e,t,n);},codeToHast:function codeToHast(t,n){return ni(e,t,n);},codeToHtml:function codeToHtml(t,n){return ii(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context27.stop();}},_callee26);}));return _yi.apply(this,arguments);}function bi(t,e,n){var i,r,o;if(e)i=t,r=e,o=function o(){return kn(n);};else{var _e50=t;i=_e50.langs,r=_e50.themes,o=_e50.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){var _t$themes,_t$langs;var e,n,s,l,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:n=function _n46(t){if(Tn(t))return"none";if("string"==typeof t){var _e52=r[t];if(!_e52)throw new p("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e52;}return t;};e=function _e53(t){if("string"==typeof t){if(Cn(t))return[];var _e51=i[t];if(!_e51)throw new p("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e51;}return t;};s=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context6.next=6;return yi(_objectSpread(_objectSpread({engine:o()},t),{},{themes:s,langs:l}));case 6:a=_context6.sent;return _context6.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context6.stop();}},_callee5);}));return function(_x9){return _ref23.apply(this,arguments);};}();}function wi(t){var e=function(t){var e;return/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,_t103,_args6=arguments;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:n=_args6.length>0&&_args6[0]!==undefined?_args6[0]:{};if(!e){_context7.next=8;break;}_context7.next=4;return e;case 4:_t103=_context7.sent;_context7.next=7;return Promise.all([_t103.loadTheme.apply(_t103,_toConsumableArray(n.themes||[])),_t103.loadLanguage.apply(_t103,_toConsumableArray(n.langs||[]))]);case 7:return _context7.abrupt("return",_t103);case 8:return _context7.abrupt("return",(e=t(_objectSpread(_objectSpread({},n),{},{themes:n.themes||[],langs:n.langs||[]})),e));case 9:case"end":return _context7.stop();}},_callee6);}));}(t);return{getSingletonHighlighter:function getSingletonHighlighter(t){return e(t);},codeToHtml:function(){var _codeToHtml=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(t,n){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context8.abrupt("return",_context8.sent.codeToHtml(t,n));case 3:case"end":return _context8.stop();}},_callee7);}));function codeToHtml(_x10,_x11){return _codeToHtml.apply(this,arguments);}return codeToHtml;}(),codeToHast:function(){var _codeToHast=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t,n){return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context9.abrupt("return",_context9.sent.codeToHast(t,n));case 3:case"end":return _context9.stop();}},_callee8);}));function codeToHast(_x12,_x13){return _codeToHast.apply(this,arguments);}return codeToHast;}(),codeToTokens:function(){var _codeToTokens=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t,n){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)});case 2:return _context10.abrupt("return",_context10.sent.codeToTokens(t,n));case 3:case"end":return _context10.stop();}},_callee9);}));function codeToTokens(_x14,_x15){return _codeToTokens.apply(this,arguments);}return codeToTokens;}(),codeToTokensBase:function(){var _codeToTokensBase=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t,n){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context11.abrupt("return",_context11.sent.codeToTokensBase(t,n));case 3:case"end":return _context11.stop();}},_callee10);}));function codeToTokensBase(_x16,_x17){return _codeToTokensBase.apply(this,arguments);}return codeToTokensBase;}(),codeToTokensWithThemes:function(){var _codeToTokensWithThemes=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t,n){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)});case 2:return _context12.abrupt("return",_context12.sent.codeToTokensWithThemes(t,n));case 3:case"end":return _context12.stop();}},_callee11);}));function codeToTokensWithThemes(_x18,_x19){return _codeToTokensWithThemes.apply(this,arguments);}return codeToTokensWithThemes;}(),getLastGrammarState:function(){var _getLastGrammarState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t,n){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return e({langs:[n.lang],themes:[n.theme]});case 2:return _context13.abrupt("return",_context13.sent.getLastGrammarState(t,n));case 3:case"end":return _context13.stop();}},_callee12);}));function getLastGrammarState(_x20,_x21){return _getLastGrammarState.apply(this,arguments);}return getLastGrammarState;}()};}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_property002CjsJs){s=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-1bf82b88.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-78a211eb.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-bcb89e19.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-c4c26160.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-03290a6e.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-46d295f1.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-fcb8cf4a.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-21d06901.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-48596d70.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-473ae353.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-001fd7c1.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-e210309b.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-4da87bdb.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-4963689a.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-7aee43fa.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-c3a3ae00.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-5fe9d3d4.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-fb7e1c72.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-d7ac8986.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-4a260f2b.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-8db809ca.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-b1a3514f.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-0eaa8d45.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-7e6b90cd.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-1595af59.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-a8e8c28b.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-50adcfb4.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-df1ec844.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-48a19368.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-2572e062.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-6c16a90d.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-6e6ac84f.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-62f58e5c.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-4277175c.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-36e7912d.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-29043e92.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-e35de69e.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-ff00bc92.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-960a6942.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-fae7b806.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-485d695e.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-14b868bf.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-09716540.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-81f6ac99.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-cfbd2b03.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-ff221776.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-8dcd65d8.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-b7dc381f.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-de3ce4da.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-53838edc.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-cfcfbca4.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-a42121e2.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-cc2474e8.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-d956b981.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-11f9610e.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-b09871c5.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-a480dd28.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-ffdde287.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-d59a3c1f.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-437b5a62.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-49ede485.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-b0a2a6b8.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-b835653d.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-fc9bb7f1.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-ae5b6987.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-7589e873.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-f9ddf98b.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-663b3ae9.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-5c100550.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-c588b399.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-551e647b.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-a05e58ea.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-5f397445.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-23af02b8.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-02ad8998.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-2253a1bd.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-ea6276a2.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-bcb2c268.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-5c29f004.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-595d9f51.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-c3c357d7.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-a19fce25.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-ea7b5a6d.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-7099c9d0.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-6aabe313.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-7b675e33.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-c8d9f00d.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-42b0992d.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-5c368136.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-5bfb7c2a.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-86304e1b.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-c9a6cfef.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-33ab07e2.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-73d5aeb5.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-a7f42cae.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-76158b28.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-a323e8c0.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-64dfe440.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-ce538784.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-35ce78ef.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-24e685eb.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-a316b38c.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-fa09efb9.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-bbf47f0d.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-ef9ccef7.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-e3e07172.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-5e828fc2.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-97d83504.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-9df7287e.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-2512266d.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-44e3face.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-d0cb8939.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-3ee08af9.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-f7723e7c.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-534739f2.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-7262ea7f.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-f13eb66d.cjs.js");}},{id:"mermaid",name:"Mermaid","import":function _import(){return _context["import"]("../mermaid-55dfe91c.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-b61f669c.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-6a98b4c4.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-556714e3.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-093b06d3.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-33da8d52.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-d17fab7b.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-d25efb26.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-d067d4f0.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-cebeceef.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-9cb58075.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-0e07a683.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-b82e29b4.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-a04cb1d0.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-cc873410.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-8558fd1a.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-1b7d27f8.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-1059825f.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-0fee6746.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-c5ae3adb.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-11cfc084.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-a0b1699a.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-d438d180.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-4aac29a2.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-003bda6a.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-dfd3ca5d.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-9390260f.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-08399b43.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-a3db3c1f.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-03f34da2.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-605499a4.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-0c9d5c0f.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-c0cddab4.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-a2425731.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-3ca2ab33.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-c2028de0.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-2eab08f7.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-2744b5f8.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-328f0cf1.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-82f6fde2.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-ef7c4789.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-5b8d2f66.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-3099fa6b.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-44c4b612.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-89e19cbe.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-40d13d15.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-b8d83d86.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-fbbc671d.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-d64b6377.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-d21c1dc8.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-32454e29.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-e99459a2.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-85911d64.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-f9901d8e.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-43113b01.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-0c82ee23.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-b4a1937c.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-99156ae5.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-4fd29bd3.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-502aad80.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-82861f1f.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-bd8cc60d.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-66437078.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-59a9fe34.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-d270ba1d.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-e5570e0d.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-3a688b34.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-71c753d3.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-df3e88d7.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-11fce737.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-b3b37319.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-e4a791ab.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-af3abed5.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-7084b7a6.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-463f4728.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-45b6297f.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-aa4484ba.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-d4510fd6.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-b050eeeb.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-8da08302.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-875e4862.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-6a26041f.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-09163277.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-8d140150.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-7e88dd07.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-ad358ef7.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-2d84a154.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-3ffb53fe.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-1ea78c25.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-9a8735c1.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-1938a4d8.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-f7e23ae7.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-d2baa29b.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-4da4200b.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-08972182.cjs.js");}}];a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));c=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",_context["import"]("../wasm-69304cd7.cjs.js").then(function(e){return e["default"](t);}));case 1:case"end":return _context2.stop();}},_callee);}));return function c(_x){return _ref.apply(this,arguments);};}();u=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-123d3c00.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-8180368b.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-0cf7a0f0.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-cf3e1ada.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-61603c64.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-56e83acc.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-93b9527b.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-8ac91d63.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-0264d406.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-0d891f5a.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-0ddfeebd.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-eee329e3.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-7888cdf8.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-a4342077.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-6d8cfe5f.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-7b0d7429.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-5d2e59f1.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-a2cc3491.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-caee8ed6.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-17d51311.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-5d78b81d.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a14ae0a.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-1e70322e.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-7c78ef32.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-cd7515fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-4e847bdf.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-5168fd63.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b65008a8.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-718a3275.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-a73fe966.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-45735b6a.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-c1c05174.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-5acc6d52.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-bea79cf9.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-a8c47756.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-29968b94.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d8c9d4b0.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-9516af0e.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-15da7ed8.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-18ae2a43.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-0a1b6c0b.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-869d8085.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-afe282dc.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-9bd52d45.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-218912d1.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-82a00987.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-be0e89d9.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-4c99f83d.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-c8b0af08.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-4d62a96c.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-c347b81b.cjs.js");}}];m=Object.fromEntries(u.map(function(t){return[t.id,t["import"]];}));p=/*#__PURE__*/function(_Error){function p(t){var _this;_classCallCheck(this,p);_this=_callSuper(this,p,[t]),_this.name="ShikiError";return _this;}_inherits(p,_Error);return _createClass(p);}(/*#__PURE__*/_wrapNativeSuper(Error));g=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;j=/*#__PURE__*/function(){function j(){_classCallCheck(this,j);}return _createClass(j,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(g.lastIndex=0,g.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(g,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t2=e.substring(s.start,s.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(o){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();k=/*#__PURE__*/function(){function k(t){_classCallCheck(this,k);this.fn=t,this.cache=new Map();}return _createClass(k,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();S=/*#__PURE__*/function(){function S(t,e,n){var _this2=this;_classCallCheck(this,S);this._colorMap=t,this._defaults=e,this._root=n,this._cachedMatchRoot=new k(function(t){return _this2._root.match(t);});}return _createClass(S,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n6=0;_n6<e.length;_n6++){var _i3=e[_n6],_r=!1;if(">"===_i3){if(_n6===e.length-1)return!1;_i3=e[++_n6],_r=!0;}for(;t&&!C(t.scopeName,_i3);){if(_r)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new L(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t3=0,_r2=e.length;_t3<_r2;_t3++){var _r3=void 0,_o=e[_t3];if(!_o.settings)continue;if("string"==typeof _o.scope){var _t4=_o.scope;_t4=_t4.replace(/^[,]+/,""),_t4=_t4.replace(/[,]+$/,""),_r3=_t4.split(",");}else _r3=Array.isArray(_o.scope)?_o.scope:[""];var _s=-1;if("string"==typeof _o.settings.fontStyle){_s=0;var _t5=_o.settings.fontStyle.split(" ");for(var _e2=0,_n7=_t5.length;_e2<_n7;_e2++){switch(_t5[_e2]){case"italic":_s|=1;break;case"bold":_s|=2;break;case"underline":_s|=4;break;case"strikethrough":_s|=8;}}}var _l=null;"string"==typeof _o.settings.foreground&&w(_o.settings.foreground)&&(_l=_o.settings.foreground);var _a=null;"string"==typeof _o.settings.background&&w(_o.settings.background)&&(_a=_o.settings.background);for(var _e3=0,_o2=_r3.length;_e3<_o2;_e3++){var _o3=_r3[_e3].trim().split(" "),_c=_o3[_o3.length-1],_u=null;_o3.length>1&&(_u=_o3.slice(0,_o3.length-1),_u.reverse()),n[i++]=new T(_c,_u,_t3,_s,_l,_a);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=y(t.scope,e.scope);return 0!==n?n:(n=b(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e4=t.shift();-1!==_e4.fontStyle&&(n=_e4.fontStyle),null!==_e4.foreground&&(i=_e4.foreground),null!==_e4.background&&(r=_e4.background);}var o=new O(e),s=new L(n,o.getId(i),o.getId(r)),l=new N(new P(0,null,-1,0,0),[]);for(var _e5=0,_n8=t.length;_e5<_n8;_e5++){var _n9=t[_e5];l.insert(0,_n9.scope,_n9.parentScopes,_n9.fontStyle,o.getId(_n9.foreground),o.getId(_n9.background));}return new S(o,s,l);}(t,e);}}]);}();x=/*#__PURE__*/function(){function t(_t6,e){_classCallCheck(this,t);this.parent=_t6,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t7=this;var e=[];for(;_t7;)e.push(_t7.scopeName),_t7=_t7.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t8){return this===_t8||null!==this.parent&&this.parent["extends"](_t8);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t9){var e=[];var n=this;for(;n&&n!==_t9;)e.push(n.scopeName),n=n.parent;return n===_t9?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i4=_step.value;e=new t(e,_i4);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var _i5=0;_i5<arguments.length;_i5++)n=new t(n,_i5<0||arguments.length<=_i5?undefined:arguments[_i5]);return n;}}]);}();L=/*#__PURE__*/_createClass(function L(t,e,n){_classCallCheck(this,L);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});T=/*#__PURE__*/_createClass(function T(t,e,n,i,r,o){_classCallCheck(this,T);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});A=function(t){return t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t;}(A||{});O=/*#__PURE__*/function(){function O(t){_classCallCheck(this,O);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e6=0,_n10=t.length;_e6<_n10;_e6++)this._color2id[t[_e6]]=_e6,this._id2color[_e6]=t[_e6];}else this._isFrozen=!1;}return _createClass(O,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();M=Object.freeze([]);P=/*#__PURE__*/function(){function t(_t10,e,n,i,r){_classCallCheck(this,t);this.scopeDepth=_t10,this.parentScopes=e||M,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t12,e,n,i){this.scopeDepth>_t12?console.log("how did this happen?"):this.scopeDepth=_t12,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t11){var e=[];for(var _n11=0,_i6=_t11.length;_n11<_i6;_n11++)e[_n11]=_t11[_n11].clone();return e;}}]);}();N=/*#__PURE__*/function(){function t(_t13){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);this._mainRule=_t13,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t15,_n12,_i7=e.indexOf(".");if(-1===_i7?(_t15=e,_n12=""):(_t15=e.substring(0,_i7),_n12=e.substring(_i7+1)),this._children.hasOwnProperty(_t15))return this._children[_t15].match(_n12);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,o,s){if(""===n)return void this._doInsertHere(e,i,r,o,s);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),P.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,o,s);}},{key:"_doInsertHere",value:function _doInsertHere(_t16,e,n,i,r){if(null!==e){for(var _o4=0,_s2=this._rulesWithParentScopes.length;_o4<_s2;_o4++){var _s3=this._rulesWithParentScopes[_o4];if(0===b(_s3.parentScopes,e))return void _s3.acceptOverwrite(_t16,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new P(_t16,e,n,i,r));}else this._mainRule.acceptOverwrite(_t16,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t14,e){if(_t14.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t14.scopeDepth;var n=0,i=0;for(;">"===_t14.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t14.parentScopes.length||i>=e.parentScopes.length);){var _r4=e.parentScopes[i].length-_t14.parentScopes[n].length;if(0!==_r4)return _r4;n++,i++;}return e.parentScopes.length-_t14.parentScopes.length;}}]);}();D=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t17){return _t17.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});}},{key:"getLanguageId",value:function getLanguageId(_t18){return(255&_t18)>>>0;}},{key:"getTokenType",value:function getTokenType(_t19){return(768&_t19)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t20){return!!(1024&_t20);}},{key:"getFontStyle",value:function getFontStyle(_t21){return(30720&_t21)>>>11;}},{key:"getForeground",value:function getForeground(_t22){return(16744448&_t22)>>>15;}},{key:"getBackground",value:function getBackground(_t23){return(4278190080&_t23)>>>24;}},{key:"set",value:function set(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();B=/*#__PURE__*/function(){function B(t){_classCallCheck(this,B);this.scopeName=t;}return _createClass(B,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();I=/*#__PURE__*/function(){function I(t,e){_classCallCheck(this,I);this.scopeName=t,this.ruleName=e;}return _createClass(I,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();G=/*#__PURE__*/function(){function G(){_classCallCheck(this,G);this._references=[],this._seenReferenceKeys=new Set(),this.visitedRule=new Set();}return _createClass(G,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();H=/*#__PURE__*/function(){function H(t,e){_classCallCheck(this,H);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests=new Set(),this.seenPartialScopeRequests=new Set(),this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new B(this.initialScopeName)];}return _createClass(H,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new G();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n13=_step2.value;q(_n13,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t28=_step3.value;if(_t28 instanceof B){if(this.seenFullScopeRequests.has(_t28.scopeName))continue;this.seenFullScopeRequests.add(_t28.scopeName),this.Q.push(_t28);}else{if(this.seenFullScopeRequests.has(_t28.scopeName))continue;if(this.seenPartialScopeRequests.has(_t28.toKey()))continue;this.seenPartialScopeRequests.add(_t28.toKey()),this.Q.push(_t28);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();U=/*#__PURE__*/_createClass(function U(){_classCallCheck(this,U);this.kind=0;});W=/*#__PURE__*/_createClass(function W(){_classCallCheck(this,W);this.kind=1;});V=/*#__PURE__*/_createClass(function V(t){_classCallCheck(this,V);this.ruleName=t,this.kind=2;});J=/*#__PURE__*/_createClass(function J(t){_classCallCheck(this,J);this.scopeName=t,this.kind=3;});X=/*#__PURE__*/_createClass(function X(t,e){_classCallCheck(this,X);this.scopeName=t,this.ruleName=e,this.kind=4;});K=/\\(\d+)/;Q=/\\(\d+)/g;Z=-1;tt=-2;et=/*#__PURE__*/function(){function et(t,e,n,i){_classCallCheck(this,et);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=j.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=j.hasCaptures(this._contentName);}return _createClass(et,[{key:"debugName",get:function get(){var t=this.$location?"".concat(f(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?j.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?j.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();nt=/*#__PURE__*/function(_et){function nt(t,e,n,i,r){var _this3;_classCallCheck(this,nt);_this3=_callSuper(this,nt,[t,e,n,i]),_this3.retokenizeCapturedWithRuleId=r;return _this3;}_inherits(nt,_et);return _createClass(nt,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(et);it=/*#__PURE__*/function(_et2){function it(t,e,n,i,r){var _this4;_classCallCheck(this,it);_this4=_callSuper(this,it,[t,e,n,null]),_this4._match=new at(i,_this4.id),_this4.captures=r,_this4._cachedCompiledPatterns=null;return _this4;}_inherits(it,_et2);return _createClass(it,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ct(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(et);rt=/*#__PURE__*/function(_et3){function rt(t,e,n,i,r){var _this5;_classCallCheck(this,rt);_this5=_callSuper(this,rt,[t,e,n,i]),_this5.patterns=r.patterns,_this5.hasMissingPatterns=r.hasMissingPatterns,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(rt,_et3);return _createClass(rt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n15=_step6.value;t.getRule(_n15).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ct(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(et);ot=/*#__PURE__*/function(_et4){function ot(t,e,n,i,r,o,s,l,a,c){var _this6;_classCallCheck(this,ot);_this6=_callSuper(this,ot,[t,e,n,i]),_this6._begin=new at(r,_this6.id),_this6.beginCaptures=o,_this6._end=new at(s||"￿",-1),_this6.endHasBackReferences=_this6._end.hasBackReferences,_this6.endCaptures=l,_this6.applyEndPatternLast=a||!1,_this6.patterns=c.patterns,_this6.hasMissingPatterns=c.hasMissingPatterns,_this6._cachedCompiledPatterns=null;return _this6;}_inherits(ot,_et4);return _createClass(ot,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ct();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e8=_step7.value;t.getRule(_e8).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end);}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(et);st=/*#__PURE__*/function(_et5){function st(t,e,n,i,r,o,s,l,a){var _this7;_classCallCheck(this,st);_this7=_callSuper(this,st,[t,e,n,i]),_this7._begin=new at(r,_this7.id),_this7.beginCaptures=o,_this7.whileCaptures=l,_this7._while=new at(s,tt),_this7.whileHasBackReferences=_this7._while.hasBackReferences,_this7.patterns=a.patterns,_this7.hasMissingPatterns=a.hasMissingPatterns,_this7._cachedCompiledPatterns=null,_this7._cachedCompiledWhilePatterns=null;return _this7;}_inherits(st,_et5);return _createClass(st,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ct();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e9=_step8.value;t.getRule(_e9).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ct(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns;}}]);}(et);lt=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t31,e,n,i,r){return _t31.registerRule(function(_t32){return new nt(e,_t32,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new it(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=d({},i,e.repository));var _r7=e.patterns;return void 0===_r7&&e.include&&(_r7=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r7,n,i));}return e["while"]?new st(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new ot(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _o6=0;for(var _t36 in e){if("$vscodeTextmateLocation"===_t36)continue;var _e10=parseInt(_t36,10);_e10>_o6&&(_o6=_e10);}for(var _t37=0;_t37<=_o6;_t37++)r[_t37]=null;for(var _o7 in e){if("$vscodeTextmateLocation"===_o7)continue;var _s4=parseInt(_o7,10);var _l2=0;e[_o7].patterns&&(_l2=t.getCompiledRuleId(e[_o7],n,i)),r[_s4]=t.createCaptureRule(n,e[_o7].$vscodeTextmateLocation,e[_o7].name,e[_o7].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _o8=0,_s5=e.length;_o8<_s5;_o8++){var _s6=e[_o8];var _l3=-1;if(_s6.include){var _e11=Y(_s6.include);switch(_e11.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_s6.include],n,i);break;case 2:var _r8=i[_e11.ruleName];_r8&&(_l3=t.getCompiledRuleId(_r8,n,i));break;case 3:case 4:var _o9=_e11.scopeName,_a2=4===_e11.kind?_e11.ruleName:null,_c2=n.getExternalGrammar(_o9,i);if(_c2)if(_a2){var _e12=_c2.repository[_a2];_e12&&(_l3=t.getCompiledRuleId(_e12,n,_c2.repository));}else _l3=t.getCompiledRuleId(_c2.repository.$self,n,_c2.repository);}}else _l3=t.getCompiledRuleId(_s6,n,i);if(-1!==_l3){var _t35=n.getRule(_l3);var _e13=!1;if((_t35 instanceof rt||_t35 instanceof ot||_t35 instanceof st)&&_t35.hasMissingPatterns&&0===_t35.patterns.length&&(_e13=!0),_e13)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}();at=/*#__PURE__*/function(){function t(_t38,e){_classCallCheck(this,t);if(_t38){var _e14=_t38.length;var _n16=0,_i11=[],_r9=!1;for(var _o10=0;_o10<_e14;_o10++){if("\\"===_t38.charAt(_o10)&&_o10+1<_e14){var _e15=_t38.charAt(_o10+1);"z"===_e15?(_i11.push(_t38.substring(_n16,_o10)),_i11.push("$(?!\\n)(?<!\\n)"),_n16=_o10+2):"A"!==_e15&&"G"!==_e15||(_r9=!0),_o10++;}}this.hasAnchor=_r9,0===_n16?this.source=_t38:(_i11.push(_t38.substring(_n16,_e14)),this.source=_i11.join(""));}else this.hasAnchor=!1,this.source=_t38;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=K.test(this.source);}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t39){this.source!==_t39&&(this.source=_t39,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t40,e){var n=e.map(function(e){return _t40.substring(e.start,e.end);});return Q.lastIndex=0,this.source.replace(Q,function(_t41,e){return v(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var _t42,e,n,i,r=[],o=[],s=[],l=[];for(_t42=0,e=this.source.length;_t42<e;_t42++)n=this.source.charAt(_t42),r[_t42]=n,o[_t42]=n,s[_t42]=n,l[_t42]=n,"\\"===n&&_t42+1<e&&(i=this.source.charAt(_t42+1),"A"===i?(r[_t42+1]="￿",o[_t42+1]="￿",s[_t42+1]="A",l[_t42+1]="A"):"G"===i?(r[_t42+1]="￿",o[_t42+1]="G",s[_t42+1]="￿",l[_t42+1]="G"):(r[_t42+1]=i,o[_t42+1]=i,s[_t42+1]=i,l[_t42+1]=i),_t42++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t43,e){return this.hasAnchor&&this._anchorCache?_t43?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();ct=/*#__PURE__*/function(){function ct(){_classCallCheck(this,ct);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(ct,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e16=this._items.map(function(t){return t.source;});this._cached=new ut(t,_e16,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new ut(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();ut=/*#__PURE__*/function(){function ut(t,e,n){_classCallCheck(this,ut);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(ut,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e17=0,_n17=this.rules.length;_e17<_n17;_e17++)t.push(" - "+this.rules[_e17]+": "+this.regExps[_e17]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();mt=/*#__PURE__*/_createClass(function mt(t,e){_classCallCheck(this,mt);this.languageId=t,this.tokenType=e;});pt=/*#__PURE__*/function(){function t(_t44,e){var _this8=this;_classCallCheck(this,t);this._getBasicScopeAttributes=new k(function(_t45){var e=_this8._scopeToLanguage(_t45),n=_this8._toStandardTokenType(_t45);return new mt(e,n);}),this._defaultAttributes=new mt(_t44,8),this._embeddedLanguagesMatcher=new dt(Object.entries(e||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t46){return this._embeddedLanguagesMatcher.match(_t46)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0;}throw new Error("Unexpected match for standard token type!");}}]);}();pt._NULL_SCOPE_METADATA=new mt(0,0),pt.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;ht=pt;dt=/*#__PURE__*/function(){function dt(t){_classCallCheck(this,dt);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e18=t.map(function(_ref2){var _ref3=_slicedToArray(_ref2,2),t=_ref3[0],e=_ref3[1];return v(t);});_e18.sort(),_e18.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e18.join(")|("),"))($|\\.)"),"");}}return _createClass(dt,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;ft=/*#__PURE__*/_createClass(function ft(t,e){_classCallCheck(this,ft);this.stack=t,this.stoppedEarly=e;});wt=/*#__PURE__*/_createClass(function wt(t,e){_classCallCheck(this,wt);this.scopes=t,this.endPos=e;});xt=/*#__PURE__*/function(){function xt(t,e,n,i,r,o,s,l){_classCallCheck(this,xt);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ht(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Ct(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i15=0,_Object$keys=Object.keys(r);_i15<_Object$keys.length;_i15++){var _t47=_Object$keys[_i15];var _e23=E(_t47,kt);var _iterator10=_createForOfIteratorHelper(_e23),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n20=_step10.value;this._tokenTypeMatchers.push({matcher:_n20.matcher,type:r[_t47]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(xt,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t48=_step11.value;_t48&&_t48.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this9=this;var t=function t(_t49){return _t49===_this9._rootScopeName?_this9._grammar:_this9.getExternalGrammar(_t49);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t50=i.injections;if(_t50)for(var _n21 in _t50)vt(e,_n21,_t50[_n21],this,i);var _r10=this._grammarRepository.injections(n);_r10&&_r10.forEach(function(t){var n=_this9.getExternalGrammar(t);if(n){var _t51=n.injectionSelector;_t51&&vt(e,_t51,n,_this9,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n22=this._grammarRepository.lookup(t);if(_n22)return this._includedGrammars[t]=Ct(_n22,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=lt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==At.NULL)r=!1,e.reset();else{r=!0;var _t52=this._basicScopeAttributesProvider.getDefaultAttributes(),_n23=this.themeProvider.getDefaults(),_i16=D.set(0,_t52.languageId,_t52.tokenType,null,_n23.fontStyle,_n23.foregroundId,_n23.backgroundId),_o13=this.getRule(this._rootId).getName(null,null);var _s10;_s10=_o13?Lt.createRootAndLookUpScopeName(_o13,_i16,this):Lt.createRoot("unknown",_i16),e=new At(null,this._rootId,-1,-1,!1,null,_s10,_s10);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new Mt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=gt(this,o,r,0,e,l,!0,i);return $(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();Lt=/*#__PURE__*/function(){function t(_t53,e,n){_classCallCheck(this,t);this.parent=_t53,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e24=_step12.value;r=t._pushAttributed(r,_e24,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t56){var e=[];var n=this;for(;n&&n!==_t56;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t56?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e25=_step13.value;r=x.push(r,_e25.scopeNames),i=new t(i,r,_e25.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new x(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),o=new x(null,e),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(n,r,s);return new t(null,o,l);}},{key:"equals",value:function equals(_t54,e){for(;;){if(_t54===e)return!0;if(!_t54&&!e)return!0;if(!_t54||!e)return!1;if(_t54.scopeName!==e.scopeName||_t54.tokenAttributes!==e.tokenAttributes)return!1;_t54=_t54.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t55,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),D.set(_t55,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),o=e.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(e.tokenAttributes,r,s);return new t(e,o,l);}}]);}();Tt=/*#__PURE__*/function(){function t(_t57,e,n,i,r,o,s,l){_classCallCheck(this,t);this.parent=_t57,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,o,s,l){return new t(this,e,n,i,r,o,s,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t61){return _t61.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t62=[];return this._writeString(_t62,0),"["+_t62.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t63,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t63,e)),_t63[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t64){return this.contentNameScopesList===_t64?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t64);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t65){var e=this;for(;e&&e._enterPos===_t65._enterPos;){if(e.ruleId===_t65.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t58,e){return _t58===e||!!this._structuralEquals(_t58,e)&&Lt.equals(_t58.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.depth!==e.depth||_t59.ruleId!==e.ruleId||_t59.endRule!==e.endRule)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t60){for(;_t60;)_t60._enterPos=-1,_t60._anchorPos=-1,_t60=_t60.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=Lt.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,Lt.fromExtension(i,n.contentNameScopesList));}}]);}();Tt.NULL=new Tt(null,0,0,0,!1,null,null,null);At=Tt;Ot=/*#__PURE__*/function(){function Ot(t,e){var _this10=this;_classCallCheck(this,Ot);this.allowAny=!1,this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this10.allowAny=!0,[]):E(t,kt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return E(t,kt).map(function(t){return t.matcher;});});}return _createClass(Ot,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e26=_step14.value;if(_e26(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e27=_step15.value;if(_e27(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();Mt=/*#__PURE__*/function(){function Mt(t,e,n,i){_classCallCheck(this,Mt);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Mt,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n24=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,_i17=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(_i17=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e28=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t66=_step16.value;_t66.matcher(_e28)&&(_n24=D.set(_n24,0,_t66.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(_i17=this.balancedBracketSelectors.match(_e28));}return _i17&&(_n24=D.set(_n24,0,8,_i17,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n24?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n24),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t67=0,_e29=this._binaryTokens.length;_t67<_e29;_t67++)n[_t67]=this._binaryTokens[_t67];return n;}}]);}();Pt=/*#__PURE__*/function(){function Pt(t,e){_classCallCheck(this,Pt);this._onigLib=e,this._grammars=new Map(),this._rawGrammars=new Map(),this._injectionGrammars=new Map(),this._theme=t;}return _createClass(Pt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t68=_step17.value;_t68.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _o14=this._rawGrammars.get(t);if(!_o14)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new xt(t,e,n,i,r,o,s,l);}(t,_o14,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}();Nt=/*#__PURE__*/function(){function Nt(t){_classCallCheck(this,Nt);this._options=t,this._syncRegistry=new Pt(S.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(Nt,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(S.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Ot(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this11=this;var o=new H(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(function(t){return _this11._loadSingleGrammar(t.scopeName);}),o.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n25="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n25);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Dt=At.NULL;Et=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];Rt=/*#__PURE__*/_createClass(function Rt(t,e,n){_classCallCheck(this,Rt);this.property=t,this.normal=e,n&&(this.space=n);});Rt.prototype.property={},Rt.prototype.normal={},Rt.prototype.space=null;It=/*#__PURE__*/_createClass(function It(t,e){_classCallCheck(this,It);this.property=t,this.attribute=e;});It.prototype.space=null,It.prototype["boolean"]=!1,It.prototype.booleanish=!1,It.prototype.overloadedBoolean=!1,It.prototype.number=!1,It.prototype.commaSeparated=!1,It.prototype.spaceSeparated=!1,It.prototype.commaOrSpaceSeparated=!1,It.prototype.mustUseProperty=!1,It.prototype.defined=!1;Gt=0;Ht=Vt();qt=Vt();_t=Vt();zt=Vt();Ft=Vt();Ut=Vt();Wt=Vt();Jt=Object.freeze({__proto__:null,"boolean":Ht,booleanish:qt,commaOrSpaceSeparated:Wt,commaSeparated:Ut,number:zt,overloadedBoolean:_t,spaceSeparated:Ft});Xt=Object.keys(Jt);Yt=/*#__PURE__*/function(_It){function Yt(t,e,n,i){var _this12;_classCallCheck(this,Yt);var r=-1;if(_this12=_callSuper(this,Yt,[t,e]),Kt(_assertThisInitialized(_this12),"space",i),"number"==typeof n)for(;++r<Xt.length;){var _t69=Xt[r];Kt(_assertThisInitialized(_this12),Xt[r],(n&Jt[_t69])===Jt[_t69]);}return _assertThisInitialized(_this12);}_inherits(Yt,_It);return _createClass(Yt);}(It);Yt.prototype.defined=!0;Qt={}.hasOwnProperty;te=Zt({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});ee=Zt({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});re=Zt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ie,properties:{xmlns:null,xmlnsXLink:null}});oe=Zt({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:qt,ariaAutoComplete:null,ariaBusy:qt,ariaChecked:qt,ariaColCount:zt,ariaColIndex:zt,ariaColSpan:zt,ariaControls:Ft,ariaCurrent:null,ariaDescribedBy:Ft,ariaDetails:null,ariaDisabled:qt,ariaDropEffect:Ft,ariaErrorMessage:null,ariaExpanded:qt,ariaFlowTo:Ft,ariaGrabbed:qt,ariaHasPopup:null,ariaHidden:qt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ft,ariaLevel:zt,ariaLive:null,ariaModal:qt,ariaMultiLine:qt,ariaMultiSelectable:qt,ariaOrientation:null,ariaOwns:Ft,ariaPlaceholder:null,ariaPosInSet:zt,ariaPressed:qt,ariaReadOnly:qt,ariaRelevant:null,ariaRequired:qt,ariaRoleDescription:Ft,ariaRowCount:zt,ariaRowIndex:zt,ariaRowSpan:zt,ariaSelected:qt,ariaSetSize:zt,ariaSort:null,ariaValueMax:zt,ariaValueMin:zt,ariaValueNow:zt,ariaValueText:null,role:null}});se=Zt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ie,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ut,acceptCharset:Ft,accessKey:Ft,action:null,allow:null,allowFullScreen:Ht,allowPaymentRequest:Ht,allowUserMedia:Ht,alt:null,as:null,async:Ht,autoCapitalize:null,autoComplete:Ft,autoFocus:Ht,autoPlay:Ht,blocking:Ft,capture:null,charSet:null,checked:Ht,cite:null,className:Ft,cols:zt,colSpan:null,content:null,contentEditable:qt,controls:Ht,controlsList:Ft,coords:zt|Ut,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":Ht,defer:Ht,dir:null,dirName:null,disabled:Ht,download:_t,draggable:qt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ht,formTarget:null,headers:Ft,height:zt,hidden:Ht,high:zt,href:null,hrefLang:null,htmlFor:Ft,httpEquiv:Ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ht,inputMode:null,integrity:null,is:null,isMap:Ht,itemId:null,itemProp:Ft,itemRef:Ft,itemScope:Ht,itemType:Ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ht,low:zt,manifest:null,max:null,maxLength:zt,media:null,method:null,min:null,minLength:zt,multiple:Ht,muted:Ht,name:null,nonce:null,noModule:Ht,noValidate:Ht,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ht,optimum:zt,pattern:null,ping:Ft,placeholder:null,playsInline:Ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ht,referrerPolicy:null,rel:Ft,required:Ht,reversed:Ht,rows:zt,rowSpan:zt,sandbox:Ft,scope:null,scoped:Ht,seamless:Ht,selected:Ht,shadowRootClonable:Ht,shadowRootDelegatesFocus:Ht,shadowRootMode:null,shape:null,size:zt,sizes:null,slot:null,span:zt,spellCheck:qt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zt,step:null,style:null,tabIndex:zt,target:null,title:null,translate:null,type:null,typeMustMatch:Ht,useMap:null,value:qt,width:zt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ft,axis:null,background:null,bgColor:null,border:zt,borderColor:null,bottomMargin:zt,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ht,declare:Ht,event:null,face:null,frame:null,frameBorder:null,hSpace:zt,leftMargin:zt,link:null,longDesc:null,lowSrc:null,marginHeight:zt,marginWidth:zt,noResize:Ht,noHref:Ht,noShade:Ht,noWrap:Ht,object:null,profile:null,prompt:null,rev:null,rightMargin:zt,rules:null,scheme:null,scrolling:qt,standby:null,summary:null,text:null,topMargin:zt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ht,disableRemotePlayback:Ht,prefix:null,property:null,results:zt,security:null,unselectable:null}});le=Zt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ne,properties:{about:Wt,accentHeight:zt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zt,amplitude:zt,arabicForm:null,ascent:zt,attributeName:null,attributeType:null,azimuth:zt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zt,by:null,calcMode:null,capHeight:zt,className:Ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:zt,diffuseConstant:zt,direction:null,display:null,dur:null,divisor:zt,dominantBaseline:null,download:Ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:zt,enableBackground:null,end:null,event:null,exponent:zt,externalResourcesRequired:null,fill:null,fillOpacity:zt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ut,g2:Ut,glyphName:Ut,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zt,horizOriginX:zt,horizOriginY:zt,id:null,ideographic:zt,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:zt,k:zt,k1:zt,k2:zt,k3:zt,k4:zt,kernelMatrix:Wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:zt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:zt,overlineThickness:zt,paintOrder:null,panose1:null,path:null,pathLength:zt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zt,pointsAtY:zt,pointsAtZ:zt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wt,rev:Wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wt,requiredFeatures:Wt,requiredFonts:Wt,requiredFormats:Wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:zt,specularExponent:zt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zt,strikethroughThickness:zt,string:null,stroke:null,strokeDashArray:Wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zt,strokeOpacity:zt,strokeWidth:null,style:null,surfaceScale:zt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wt,tabIndex:zt,tableValues:null,target:null,targetX:zt,targetY:zt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zt,underlineThickness:zt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zt,values:null,vAlphabetic:zt,vMathematical:zt,vectorEffect:null,vHanging:zt,vIdeographic:zt,version:null,vertAdvY:zt,vertOriginX:zt,vertOriginY:zt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});ae=/^data[-\w.:]+$/i;ce=/-[a-z]/g;ue=/[A-Z]/g;he=$t([ee,te,re,oe,se],"html");de=$t([ee,te,re,oe,le],"svg");fe={}.hasOwnProperty;ge=/["&'<>`]/g;je=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;ye=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;be=/[|\\{}()[\]^$+*?.]/g;we=new WeakMap();ke=/[\dA-Fa-f]/;Se=/\d/;xe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];Ce={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};Le=["cent","copy","divide","gt","lt","not","para","times"];Te={}.hasOwnProperty;Ae={};for(Oe in Ce)Te.call(Ce,Oe)&&(Ae[Ce[Oe]]=Oe);Me=/[^\dA-Za-z]/;De=/^>|^->|<!--|-->|--!>|<!-$/g;Ee=[">"];Re=["<",">"];Ge=/[ \t\n\f\r]/g;_e=Ue(1);ze=Ue(-1);Fe=[];We={}.hasOwnProperty;Je=Ve({body:function body(t,e,n){var i=_e(n,e);return!i||"comment"!==i.type;},caption:Xe,colgroup:Xe,dd:function dd(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=_e(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:Xe,html:function html(t,e,n){var i=_e(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=_e(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:Ye,rt:Ye,tbody:function tbody(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:Ke,tfoot:function tfoot(t,e,n){return!_e(n,e);},th:Ke,thead:function thead(t,e,n){var i=_e(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=_e(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});Qe=Ve({body:function body(t){var e=_e(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&He(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=ze(n,e),r=_e(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&Je(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=t.children,n=[];var i=-1;for(;++i<e.length;){var _t71=e[i];if("element"===_t71.type&&("title"===_t71.tagName||"base"===_t71.tagName)){if(n.includes(_t71.tagName))return!1;n.push(_t71.tagName);}}return e.length>0;},html:function html(t){var e=_e(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=ze(n,e),r=_e(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&Je(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});Ze={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};en=["<","&"];rn=function(t,e){var n=e||{};function i(e){var _r12;var r=i.invalid;var o=i.handlers;if(e&&fe.call(e,t)){var _n27=String(e[t]);r=fe.call(o,_n27)?o[_n27]:i.unknown;}for(var _len2=arguments.length,n=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){n[_key2-1]=arguments[_key2];}if(r)return(_r12=r).call.apply(_r12,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+Ne(t.value,Object.assign({},i.settings.characterReferences,{subset:Ee}))+">":"\x3c!--"+t.value.replace(De,function(t){return Ne(t,Object.assign({},i.settings.characterReferences,{subset:Re}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=de);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r13=tn(t,i,e[i]);_r13&&n.push(_r13);}for(;++r<n.length;){var _e30=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e30&&"'"!==_e30&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&Qe(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&Je(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:nn(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:nn}});on={};sn={};ln=[];un=/*#__PURE__*/function(_Error2){function un(t){var _this13;_classCallCheck(this,un);_this13=_callSuper(this,un,[t]),_this13.name="ShikiError";return _this13;}_inherits(un,_Error2);return _createClass(un);}(/*#__PURE__*/_wrapNativeSuper(Error));pn=function pn(t,e){return t+(e-t%e)%e;};gn=null;jn=/*#__PURE__*/function(){function jn(t){_classCallCheck(this,jn);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=jn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n28=0;_n28<e;_n28++){var _a5=t.charCodeAt(_n28);var _c5=_a5,_u4=!1;if(_a5>=55296&&_a5<=56319&&_n28+1<e){var _e31=t.charCodeAt(_n28+1);_e31>=56320&&_e31<=57343&&(_c5=65536+(_a5-55296<<10)|_e31-56320,_u4=!0);}i&&(r[_n28]=l,_u4&&(r[_n28+1]=l),_c5<=127?o[l+0]=_n28:_c5<=2047?(o[l+0]=_n28,o[l+1]=_n28):_c5<=65535?(o[l+0]=_n28,o[l+1]=_n28,o[l+2]=_n28):(o[l+0]=_n28,o[l+1]=_n28,o[l+2]=_n28,o[l+3]=_n28)),_c5<=127?s[l++]=_c5:_c5<=2047?(s[l++]=192|(1984&_c5)>>>6,s[l++]=128|(63&_c5)>>>0):_c5<=65535?(s[l++]=224|(61440&_c5)>>>12,s[l++]=128|(4032&_c5)>>>6,s[l++]=128|(63&_c5)>>>0):(s[l++]=240|(1835008&_c5)>>>18,s[l++]=128|(258048&_c5)>>>12,s[l++]=128|(4032&_c5)>>>6,s[l++]=128|(63&_c5)>>>0),_u4&&_n28++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(jn,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n29=0,_i19=t.length;_n29<_i19;_n29++){var _r14=t.charCodeAt(_n29);var _o17=_r14,_s11=!1;if(_r14>=55296&&_r14<=56319&&_n29+1<_i19){var _e32=t.charCodeAt(_n29+1);_e32>=56320&&_e32<=57343&&(_o17=65536+(_r14-55296<<10)|_e32-56320,_s11=!0);}e+=_o17<=127?1:_o17<=2047?2:_o17<=65535?3:4,_s11&&_n29++;}return e;}}]);}();yn=/*#__PURE__*/function(){function yn(t){_classCallCheck(this,yn);_defineProperty(this,"id",++yn.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!gn)throw new un("Must invoke loadWasm first.");this._onigBinding=gn,this.content=t;var e=new jn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!yn._sharedPtrInUse?(yn._sharedPtr||(yn._sharedPtr=gn.omalloc(1e4)),yn._sharedPtrInUse=!0,gn.HEAPU8.set(e.utf8Value,yn._sharedPtr),this.ptr=yn._sharedPtr):this.ptr=e.createString(gn);}return _createClass(yn,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===yn._sharedPtr?yn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(yn,"LAST_ID",0);_defineProperty(yn,"_sharedPtr",0);_defineProperty(yn,"_sharedPtrInUse",!1);bn=/*#__PURE__*/function(){function bn(t){_classCallCheck(this,bn);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!gn)throw new un("Must invoke loadWasm first.");var e=[],n=[];for(var _i20=0,_r15=t.length;_i20<_r15;_i20++){var _r16=new jn(t[_i20]);e[_i20]=_r16.createString(gn),n[_i20]=_r16.utf8Length;}var i=gn.omalloc(4*t.length);gn.HEAPU32.set(e,i/4);var r=gn.omalloc(4*t.length);gn.HEAPU32.set(n,r/4);var o=gn.createOnigScanner(i,r,t.length);for(var _n30=0,_i21=t.length;_n30<_i21;_n30++)gn.ofree(e[_n30]);gn.ofree(r),gn.ofree(i),0===o&&function(t){throw new un(t.UTF8ToString(t.getLastOnigError()));}(gn),this._onigBinding=gn,this._ptr=o;}return _createClass(bn,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new yn(t);var _n31=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n31;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e33=0;_e33<c;_e33++){var _n32=t.convertUtf8OffsetToUtf16(s[l++]),_i22=t.convertUtf8OffsetToUtf16(s[l++]);u[_e33]={start:_n32,end:_i22,length:_i22-_n32};}return{index:a,captureIndices:u};}}]);}();En=/*#__PURE__*/function(_Error3){function En(t){var _this14;_classCallCheck(this,En);_this14=_callSuper(this,En,[t]),_this14.name="ShikiError";return _this14;}_inherits(En,_Error3);return _createClass(En);}(/*#__PURE__*/_wrapNativeSuper(Error));Bn=[Rn()];Gn=/*#__PURE__*/function(){function Gn(t,e,n){_classCallCheck(this,Gn);this._stack=t,this.lang=e,this.theme=n;}return _createClass(Gn,[{key:"scopes",get:function get(){return function(t){var e=[],n=new Set();function i(t){var _t$nameScopesList;if(n.has(t))return;n.add(t);var r=t===null||t===void 0||(_t$nameScopesList=t.nameScopesList)===null||_t$nameScopesList===void 0?void 0:_t$nameScopesList.scopeName;r&&e.push(r),t.parent&&i(t.parent);}return i(t),e;}(this._stack);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new Gn(Dt,t,e);}}]);}();Hn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];qn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};Un={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};ri={light:"#333333",dark:"#bbbbbb"};oi={light:"#fffffe",dark:"#1e1e1e"};si="__shiki_resolved";ui=Object.defineProperty;mi=function mi(t,e,n){return function(t,e,n){e in t?ui(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};pi=/*#__PURE__*/function(_Nt){function pi(t,e,n){var _this15;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,pi);_this15=_callSuper(this,pi,[t]),_this15._resolver=t,_this15._themes=e,_this15._langs=n,_this15._alias=i,mi(_assertThisInitialized(_this15),"_resolvedThemes",new Map()),mi(_assertThisInitialized(_this15),"_resolvedGrammars",new Map()),mi(_assertThisInitialized(_this15),"_langMap",new Map()),mi(_assertThisInitialized(_this15),"_langGraph",new Map()),mi(_assertThisInitialized(_this15),"_textmateThemeCache",new WeakMap()),mi(_assertThisInitialized(_this15),"_loadedThemesCache",null),mi(_assertThisInitialized(_this15),"_loadedLanguagesCache",null),_this15._themes.map(function(t){return _this15.loadTheme(t);}),_this15.loadLanguages(_this15._langs);return _this15;}_inherits(pi,_Nt);return _createClass(pi,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=li(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=S.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e45=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e45.has(t))throw new En("Circular alias `".concat(Array.from(_e45).join(" -> ")," -> ").concat(t,"`"));_e45.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this16=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this16._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator37=_createForOfIteratorHelper(e),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t98=_step37.value;this._resolvedGrammars["delete"](_t98.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t98.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t98.scopeName),this.loadLanguage(this._langMap.get(_t98.name));}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}}}},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(pi.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator38=_createForOfIteratorHelper(t),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _e48=_step38.value;this.resolveEmbeddedLanguages(_e48);}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t99=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new En("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t99.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i35=0,_e46=e;_i35<_e46.length;_i35++){var _e46$_i=_slicedToArray(_e46[_i35],2),_t100=_e46$_i[0],_n44=_e46$_i[1];this._resolver.addLanguage(_n44);}for(var _i36=0,_e47=e;_i36<_e47.length;_i36++){var _e47$_i=_slicedToArray(_e47[_i36],2),_t101=_e47$_i[0],_n45=_e47$_i[1];this.loadLanguage(_n45);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator39=_createForOfIteratorHelper(t.embeddedLangs),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e49=_step39.value;this._langGraph.set(_e49,this._langMap.get(_e49));}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}}}]);}(Nt);hi=Object.defineProperty;di=function di(t,e,n){return function(t,e,n){e in t?hi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};fi=/*#__PURE__*/function(){function fi(t,e){var _this17=this;_classCallCheck(this,fi);di(this,"_langs",new Map()),di(this,"_scopeToLang",new Map()),di(this,"_injections",new Map()),di(this,"_onigLib"),this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this17.addLanguage(t);});}return _createClass(fi,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this18=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this18._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this18._injections.get(e)||_this18._injections.set(e,[]),_this18._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t102=1;_t102<=e.length;_t102++){var i=e.slice(0,_t102).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();gi=0;vi=bi({langs:a,themes:m,engine:function engine(){return kn(c);}});_wi=wi(vi);ki=_wi.codeToHtml;Si=_wi.codeToHast;xi=_wi.codeToTokens;Ci=_wi.codeToTokensBase;Li=_wi.codeToTokensWithThemes;Ti=_wi.getSingletonHighlighter;Ai=_wi.getLastGrammarState;_export("N",Oi=/*#__PURE__*/function(_o22){function Oi(){var _this19;_classCallCheck(this,Oi);_this19=_callSuper(this,Oi,arguments),_this19.code="",_this19.language="javascript",_this19.theme="min-light",_this19.highlightedCode="";return _this19;}_inherits(Oi,_o22);return _createClass(Oi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.t0=t.has("code")||t.has("language")||t.has("theme");if(!_context14.t0){_context14.next=6;break;}_context14.next=4;return ki(this.code,{lang:this.language,theme:this.theme});case 4:this.highlightedCode=_context14.sent;this.requestUpdate();case 6:case"end":return _context14.stop();}},_callee13,this);}));function updated(_x22){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String})],Oi.prototype,"code",void 0),t([s({type:String,reflect:!0})],Oi.prototype,"language",void 0),t([s({type:String,reflect:!0})],Oi.prototype,"theme",void 0),t([n()],Oi.prototype,"highlightedCode",void 0),_export("N",Oi=t([i("nile-highlighter")],Oi));}};});
2
2
  //# sourceMappingURL=nile-highlighter.cjs.js.map