@ank1015/llm 0.0.1 → 0.0.2

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 (1330) hide show
  1. package/package.json +1 -1
  2. package/vendor/web/manifest.json +1 -1
  3. package/vendor/web/standalone/node_modules/@img/colour/color.cjs +1596 -0
  4. package/vendor/web/standalone/node_modules/@img/colour/index.cjs +1 -0
  5. package/vendor/web/standalone/node_modules/@img/colour/package.json +21 -8
  6. package/vendor/web/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  7. package/vendor/web/standalone/node_modules/@img/sharp-libvips-darwin-arm64/README.md +46 -0
  8. package/vendor/web/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +220 -0
  9. package/vendor/web/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +1 -0
  10. package/vendor/web/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  11. package/vendor/web/standalone/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +30 -0
  12. package/vendor/web/standalone/node_modules/@next/env/dist/index.js +1 -0
  13. package/vendor/web/standalone/node_modules/@next/env/package.json +1 -1
  14. package/vendor/web/standalone/node_modules/@shikijs/core/dist/index.mjs +2446 -0
  15. package/vendor/web/standalone/node_modules/@shikijs/core/package.json +2 -2
  16. package/vendor/web/standalone/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
  17. package/vendor/web/standalone/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
  18. package/vendor/web/standalone/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
  19. package/vendor/web/standalone/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
  20. package/vendor/web/standalone/node_modules/@shikijs/engine-javascript/package.json +2 -2
  21. package/vendor/web/standalone/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
  22. package/vendor/web/standalone/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
  23. package/vendor/web/standalone/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
  24. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/abap.mjs +5 -0
  25. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/actionscript-3.mjs +5 -0
  26. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ada.mjs +5 -0
  27. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-expression.mjs +5 -0
  28. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-html.mjs +16 -0
  29. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-inline-style.mjs +8 -0
  30. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-inline-template.mjs +10 -0
  31. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-let-declaration.mjs +8 -0
  32. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-template-blocks.mjs +10 -0
  33. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-template.mjs +8 -0
  34. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/angular-ts.mjs +18 -0
  35. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/apache.mjs +5 -0
  36. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/apex.mjs +5 -0
  37. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/apl.mjs +16 -0
  38. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/applescript.mjs +5 -0
  39. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ara.mjs +5 -0
  40. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/asciidoc.mjs +5 -0
  41. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/asm.mjs +5 -0
  42. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/astro.mjs +18 -0
  43. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/awk.mjs +5 -0
  44. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ballerina.mjs +5 -0
  45. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/bat.mjs +5 -0
  46. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/beancount.mjs +5 -0
  47. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/berry.mjs +5 -0
  48. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/bibtex.mjs +5 -0
  49. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/bicep.mjs +5 -0
  50. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/bird2.mjs +5 -0
  51. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/blade.mjs +20 -0
  52. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/bsl.mjs +8 -0
  53. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/c.mjs +5 -0
  54. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/c3.mjs +5 -0
  55. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cadence.mjs +5 -0
  56. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cairo.mjs +8 -0
  57. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/clarity.mjs +5 -0
  58. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/clojure.mjs +5 -0
  59. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cmake.mjs +5 -0
  60. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cobol.mjs +10 -0
  61. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/codeowners.mjs +5 -0
  62. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/codeql.mjs +5 -0
  63. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/coffee.mjs +8 -0
  64. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/common-lisp.mjs +5 -0
  65. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/coq.mjs +5 -0
  66. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cpp-macro.mjs +12 -0
  67. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cpp.mjs +14 -0
  68. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/crystal.mjs +18 -0
  69. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/csharp.mjs +5 -0
  70. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/css.mjs +5 -0
  71. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/csv.mjs +5 -0
  72. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cue.mjs +5 -0
  73. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/cypher.mjs +5 -0
  74. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/d.mjs +5 -0
  75. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/dart.mjs +5 -0
  76. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/dax.mjs +5 -0
  77. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/desktop.mjs +5 -0
  78. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/diff.mjs +5 -0
  79. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/docker.mjs +5 -0
  80. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/dotenv.mjs +5 -0
  81. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/dream-maker.mjs +5 -0
  82. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/edge.mjs +12 -0
  83. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/elixir.mjs +8 -0
  84. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/elm.mjs +8 -0
  85. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +5 -0
  86. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/erb.mjs +10 -0
  87. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/erlang.mjs +8 -0
  88. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/es-tag-css.mjs +12 -0
  89. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/es-tag-glsl.mjs +12 -0
  90. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/es-tag-html.mjs +12 -0
  91. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/es-tag-sql.mjs +10 -0
  92. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/es-tag-xml.mjs +8 -0
  93. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/fennel.mjs +5 -0
  94. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/fish.mjs +5 -0
  95. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/fluent.mjs +5 -0
  96. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/fortran-fixed-form.mjs +8 -0
  97. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/fortran-free-form.mjs +5 -0
  98. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/fsharp.mjs +8 -0
  99. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/gdresource.mjs +10 -0
  100. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/gdscript.mjs +5 -0
  101. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/gdshader.mjs +5 -0
  102. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/genie.mjs +5 -0
  103. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/gherkin.mjs +5 -0
  104. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/git-commit.mjs +8 -0
  105. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/git-rebase.mjs +8 -0
  106. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/gleam.mjs +5 -0
  107. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/glimmer-js.mjs +14 -0
  108. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/glimmer-ts.mjs +14 -0
  109. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/glsl.mjs +8 -0
  110. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/gn.mjs +5 -0
  111. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/gnuplot.mjs +5 -0
  112. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/go.mjs +5 -0
  113. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/graphql.mjs +14 -0
  114. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/groovy.mjs +5 -0
  115. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/hack.mjs +10 -0
  116. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/haml.mjs +10 -0
  117. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/handlebars.mjs +14 -0
  118. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/haskell.mjs +5 -0
  119. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/haxe.mjs +5 -0
  120. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/hcl.mjs +5 -0
  121. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/hjson.mjs +5 -0
  122. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/hlsl.mjs +5 -0
  123. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
  124. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/html.mjs +10 -0
  125. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/http.mjs +14 -0
  126. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/hurl.mjs +12 -0
  127. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/hxml.mjs +8 -0
  128. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/hy.mjs +5 -0
  129. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/imba.mjs +5 -0
  130. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ini.mjs +5 -0
  131. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/java.mjs +5 -0
  132. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
  133. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jinja-html.mjs +8 -0
  134. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jinja.mjs +8 -0
  135. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jison.mjs +8 -0
  136. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/json.mjs +5 -0
  137. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/json5.mjs +5 -0
  138. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jsonc.mjs +5 -0
  139. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jsonl.mjs +5 -0
  140. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jsonnet.mjs +5 -0
  141. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jssm.mjs +5 -0
  142. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
  143. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/julia.mjs +16 -0
  144. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/just.mjs +18 -0
  145. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/kdl.mjs +5 -0
  146. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/kotlin.mjs +5 -0
  147. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/kusto.mjs +5 -0
  148. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/latex.mjs +8 -0
  149. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/lean.mjs +5 -0
  150. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/less.mjs +5 -0
  151. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/liquid.mjs +14 -0
  152. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/llvm.mjs +5 -0
  153. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/log.mjs +5 -0
  154. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/logo.mjs +5 -0
  155. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/lua.mjs +8 -0
  156. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/luau.mjs +5 -0
  157. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/make.mjs +5 -0
  158. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/markdown-nix.mjs +5 -0
  159. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
  160. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
  161. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/marko.mjs +14 -0
  162. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/matlab.mjs +5 -0
  163. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
  164. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/mdx.mjs +5 -0
  165. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/mermaid.mjs +5 -0
  166. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/mipsasm.mjs +5 -0
  167. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/mojo.mjs +5 -0
  168. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/moonbit.mjs +5 -0
  169. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/move.mjs +5 -0
  170. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/narrat.mjs +5 -0
  171. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/nextflow-groovy.mjs +5 -0
  172. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/nextflow.mjs +8 -0
  173. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/nginx.mjs +8 -0
  174. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/nim.mjs +20 -0
  175. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/nix.mjs +8 -0
  176. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/nushell.mjs +5 -0
  177. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/objective-c.mjs +5 -0
  178. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/objective-cpp.mjs +5 -0
  179. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ocaml.mjs +5 -0
  180. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/odin.mjs +5 -0
  181. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/openscad.mjs +5 -0
  182. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/pascal.mjs +5 -0
  183. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/perl.mjs +16 -0
  184. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/php.mjs +18 -0
  185. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/pkl.mjs +5 -0
  186. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/plsql.mjs +5 -0
  187. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/po.mjs +5 -0
  188. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/polar.mjs +5 -0
  189. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/postcss.mjs +5 -0
  190. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/powerquery.mjs +5 -0
  191. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/powershell.mjs +5 -0
  192. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/prisma.mjs +5 -0
  193. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/prolog.mjs +5 -0
  194. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/proto.mjs +5 -0
  195. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/pug.mjs +12 -0
  196. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/puppet.mjs +5 -0
  197. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/purescript.mjs +5 -0
  198. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/python.mjs +5 -0
  199. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/qml.mjs +8 -0
  200. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/qmldir.mjs +5 -0
  201. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/qss.mjs +5 -0
  202. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/r.mjs +5 -0
  203. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/racket.mjs +5 -0
  204. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/raku.mjs +5 -0
  205. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/razor.mjs +10 -0
  206. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/reg.mjs +5 -0
  207. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/regexp.mjs +5 -0
  208. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/rel.mjs +5 -0
  209. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/riscv.mjs +5 -0
  210. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ron.mjs +5 -0
  211. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/rosmsg.mjs +5 -0
  212. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/rst.mjs +22 -0
  213. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ruby.mjs +30 -0
  214. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/rust.mjs +5 -0
  215. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/sas.mjs +8 -0
  216. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/sass.mjs +5 -0
  217. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/scala.mjs +5 -0
  218. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/scheme.mjs +5 -0
  219. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/scss.mjs +8 -0
  220. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/sdbl.mjs +5 -0
  221. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/shaderlab.mjs +8 -0
  222. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
  223. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/shellsession.mjs +8 -0
  224. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/smalltalk.mjs +5 -0
  225. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/solidity.mjs +5 -0
  226. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/soy.mjs +8 -0
  227. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/sparql.mjs +8 -0
  228. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/splunk.mjs +5 -0
  229. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/sql.mjs +5 -0
  230. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ssh-config.mjs +5 -0
  231. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/stata.mjs +8 -0
  232. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/stylus.mjs +5 -0
  233. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/surrealql.mjs +8 -0
  234. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/svelte.mjs +14 -0
  235. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/swift.mjs +5 -0
  236. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/system-verilog.mjs +5 -0
  237. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/systemd.mjs +5 -0
  238. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/talonscript.mjs +5 -0
  239. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/tasl.mjs +5 -0
  240. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/tcl.mjs +5 -0
  241. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/templ.mjs +12 -0
  242. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/terraform.mjs +5 -0
  243. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/tex.mjs +8 -0
  244. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/toml.mjs +5 -0
  245. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/ts-tags.mjs +18 -0
  246. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/tsv.mjs +5 -0
  247. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
  248. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/turtle.mjs +5 -0
  249. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/twig.mjs +18 -0
  250. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
  251. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/typespec.mjs +5 -0
  252. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/typst.mjs +5 -0
  253. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/v.mjs +5 -0
  254. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vala.mjs +5 -0
  255. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vb.mjs +5 -0
  256. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/verilog.mjs +5 -0
  257. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vhdl.mjs +5 -0
  258. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/viml.mjs +5 -0
  259. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
  260. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vue-html.mjs +8 -0
  261. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
  262. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
  263. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vue-vine.mjs +18 -0
  264. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
  265. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/vyper.mjs +5 -0
  266. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/wasm.mjs +5 -0
  267. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/wenyan.mjs +5 -0
  268. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/wgsl.mjs +5 -0
  269. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/wikitext.mjs +5 -0
  270. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/wit.mjs +5 -0
  271. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/wolfram.mjs +5 -0
  272. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/xml.mjs +8 -0
  273. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/xsl.mjs +8 -0
  274. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
  275. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/zenscript.mjs +5 -0
  276. package/vendor/web/standalone/node_modules/@shikijs/langs/dist/zig.mjs +5 -0
  277. package/vendor/web/standalone/node_modules/@shikijs/langs/package.json +7 -3
  278. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/andromeeda.mjs +2 -0
  279. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/aurora-x.mjs +2 -0
  280. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/ayu-dark.mjs +2 -0
  281. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/ayu-light.mjs +2 -0
  282. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/ayu-mirage.mjs +2 -0
  283. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/catppuccin-frappe.mjs +2 -0
  284. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/catppuccin-latte.mjs +2 -0
  285. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/catppuccin-macchiato.mjs +2 -0
  286. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/catppuccin-mocha.mjs +2 -0
  287. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/dark-plus.mjs +2 -0
  288. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/dracula-soft.mjs +2 -0
  289. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/dracula.mjs +2 -0
  290. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/everforest-dark.mjs +2 -0
  291. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/everforest-light.mjs +2 -0
  292. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/github-dark-default.mjs +2 -0
  293. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/github-dark-dimmed.mjs +2 -0
  294. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/github-dark-high-contrast.mjs +2 -0
  295. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
  296. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/github-light-default.mjs +2 -0
  297. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/github-light-high-contrast.mjs +2 -0
  298. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
  299. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.mjs +2 -0
  300. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.mjs +2 -0
  301. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.mjs +2 -0
  302. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/gruvbox-light-hard.mjs +2 -0
  303. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/gruvbox-light-medium.mjs +2 -0
  304. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/gruvbox-light-soft.mjs +2 -0
  305. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/horizon-bright.mjs +2 -0
  306. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/horizon.mjs +2 -0
  307. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/houston.mjs +2 -0
  308. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/kanagawa-dragon.mjs +2 -0
  309. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/kanagawa-lotus.mjs +2 -0
  310. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/kanagawa-wave.mjs +2 -0
  311. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/laserwave.mjs +2 -0
  312. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/light-plus.mjs +2 -0
  313. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/material-theme-darker.mjs +2 -0
  314. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/material-theme-lighter.mjs +2 -0
  315. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/material-theme-ocean.mjs +2 -0
  316. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/material-theme-palenight.mjs +2 -0
  317. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/material-theme.mjs +2 -0
  318. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/min-dark.mjs +2 -0
  319. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/min-light.mjs +2 -0
  320. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/monokai.mjs +2 -0
  321. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/night-owl-light.mjs +2 -0
  322. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/night-owl.mjs +2 -0
  323. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/nord.mjs +2 -0
  324. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/one-dark-pro.mjs +2 -0
  325. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/one-light.mjs +2 -0
  326. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/plastic.mjs +2 -0
  327. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/poimandres.mjs +2 -0
  328. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/red.mjs +2 -0
  329. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/rose-pine-dawn.mjs +2 -0
  330. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/rose-pine-moon.mjs +2 -0
  331. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/rose-pine.mjs +2 -0
  332. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/slack-dark.mjs +2 -0
  333. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/slack-ochin.mjs +2 -0
  334. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/snazzy-light.mjs +2 -0
  335. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/solarized-dark.mjs +2 -0
  336. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/solarized-light.mjs +2 -0
  337. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/synthwave-84.mjs +2 -0
  338. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/tokyo-night.mjs +2 -0
  339. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/vesper.mjs +2 -0
  340. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/vitesse-black.mjs +2 -0
  341. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/vitesse-dark.mjs +2 -0
  342. package/vendor/web/standalone/node_modules/@shikijs/themes/dist/vitesse-light.mjs +2 -0
  343. package/vendor/web/standalone/node_modules/@shikijs/themes/package.json +4 -3
  344. package/vendor/web/standalone/node_modules/@shikijs/types/dist/index.mjs +8 -0
  345. package/vendor/web/standalone/node_modules/@shikijs/types/package.json +1 -1
  346. package/vendor/web/standalone/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
  347. package/vendor/web/standalone/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  348. package/vendor/web/standalone/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  349. package/vendor/web/standalone/node_modules/ccount/index.js +27 -0
  350. package/vendor/web/standalone/node_modules/character-entities-html4/index.js +259 -0
  351. package/vendor/web/standalone/node_modules/character-entities-legacy/index.js +113 -0
  352. package/vendor/web/standalone/node_modules/client-only/index.js +0 -0
  353. package/vendor/web/standalone/node_modules/comma-separated-tokens/index.js +74 -0
  354. package/vendor/web/standalone/node_modules/detect-libc/lib/detect-libc.js +313 -0
  355. package/vendor/web/standalone/node_modules/detect-libc/lib/elf.js +39 -0
  356. package/vendor/web/standalone/node_modules/detect-libc/lib/filesystem.js +51 -0
  357. package/vendor/web/standalone/node_modules/detect-libc/lib/process.js +24 -0
  358. package/vendor/web/standalone/node_modules/hast-util-to-html/index.js +8 -0
  359. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
  360. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
  361. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
  362. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
  363. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
  364. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
  365. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
  366. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/index.js +257 -0
  367. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
  368. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
  369. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
  370. package/vendor/web/standalone/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
  371. package/vendor/web/standalone/node_modules/hast-util-whitespace/index.js +1 -0
  372. package/vendor/web/standalone/node_modules/hast-util-whitespace/lib/index.js +34 -0
  373. package/vendor/web/standalone/node_modules/html-void-elements/index.js +27 -0
  374. package/vendor/web/standalone/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
  375. package/vendor/web/standalone/node_modules/next/dist/build/define-env.js +255 -0
  376. package/vendor/web/standalone/node_modules/next/dist/build/duration-to-string.js +99 -0
  377. package/vendor/web/standalone/node_modules/next/dist/build/get-supported-browsers.js +38 -0
  378. package/vendor/web/standalone/node_modules/next/dist/build/next-config-ts/require-hook.js +85 -0
  379. package/vendor/web/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +251 -0
  380. package/vendor/web/standalone/node_modules/next/dist/build/output/format.js +84 -0
  381. package/vendor/web/standalone/node_modules/next/dist/build/output/log.js +135 -0
  382. package/vendor/web/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +162 -0
  383. package/vendor/web/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +137 -0
  384. package/vendor/web/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +52 -0
  385. package/vendor/web/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
  386. package/vendor/web/standalone/node_modules/next/dist/build/static-paths/app.js +735 -0
  387. package/vendor/web/standalone/node_modules/next/dist/build/static-paths/pages.js +169 -0
  388. package/vendor/web/standalone/node_modules/next/dist/build/static-paths/utils.js +119 -0
  389. package/vendor/web/standalone/node_modules/next/dist/build/swc/helpers.js +15 -0
  390. package/vendor/web/standalone/node_modules/next/dist/build/swc/index.js +1348 -0
  391. package/vendor/web/standalone/node_modules/next/dist/build/swc/install-bindings.js +30 -0
  392. package/vendor/web/standalone/node_modules/next/dist/build/swc/jest-transformer.js +76 -0
  393. package/vendor/web/standalone/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
  394. package/vendor/web/standalone/node_modules/next/dist/build/swc/options.js +403 -0
  395. package/vendor/web/standalone/node_modules/next/dist/build/swc/types.js +6 -0
  396. package/vendor/web/standalone/node_modules/next/dist/build/utils.js +1215 -0
  397. package/vendor/web/standalone/node_modules/next/dist/cli/next-test.js +170 -0
  398. package/vendor/web/standalone/node_modules/next/dist/client/add-base-path.js +24 -0
  399. package/vendor/web/standalone/node_modules/next/dist/client/app-call-server.js +34 -0
  400. package/vendor/web/standalone/node_modules/next/dist/client/app-find-source-map-url.js +39 -0
  401. package/vendor/web/standalone/node_modules/next/dist/client/assign-location.js +29 -0
  402. package/vendor/web/standalone/node_modules/next/dist/client/components/app-router-announcer.js +78 -0
  403. package/vendor/web/standalone/node_modules/next/dist/client/components/app-router-headers.js +138 -0
  404. package/vendor/web/standalone/node_modules/next/dist/client/components/app-router-instance.js +397 -0
  405. package/vendor/web/standalone/node_modules/next/dist/client/components/app-router-utils.js +62 -0
  406. package/vendor/web/standalone/node_modules/next/dist/client/components/app-router.js +514 -0
  407. package/vendor/web/standalone/node_modules/next/dist/client/components/builtin/default.js +35 -0
  408. package/vendor/web/standalone/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
  409. package/vendor/web/standalone/node_modules/next/dist/client/components/builtin/global-error.js +100 -0
  410. package/vendor/web/standalone/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +52 -0
  411. package/vendor/web/standalone/node_modules/next/dist/client/components/error-boundary.js +144 -0
  412. package/vendor/web/standalone/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +86 -0
  413. package/vendor/web/standalone/node_modules/next/dist/client/components/errors/root-error-boundary.js +41 -0
  414. package/vendor/web/standalone/node_modules/next/dist/client/components/forbidden.js +48 -0
  415. package/vendor/web/standalone/node_modules/next/dist/client/components/handle-isr-error.js +30 -0
  416. package/vendor/web/standalone/node_modules/next/dist/client/components/hooks-server-context.js +42 -0
  417. package/vendor/web/standalone/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +125 -0
  418. package/vendor/web/standalone/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +72 -0
  419. package/vendor/web/standalone/node_modules/next/dist/client/components/is-next-router-error.js +23 -0
  420. package/vendor/web/standalone/node_modules/next/dist/client/components/links.js +299 -0
  421. package/vendor/web/standalone/node_modules/next/dist/client/components/match-segments.js +32 -0
  422. package/vendor/web/standalone/node_modules/next/dist/client/components/nav-failure-handler.js +61 -0
  423. package/vendor/web/standalone/node_modules/next/dist/client/components/navigation-devtools.js +126 -0
  424. package/vendor/web/standalone/node_modules/next/dist/client/components/navigation-untracked.js +67 -0
  425. package/vendor/web/standalone/node_modules/next/dist/client/components/navigation.js +225 -0
  426. package/vendor/web/standalone/node_modules/next/dist/client/components/navigation.react-server.js +75 -0
  427. package/vendor/web/standalone/node_modules/next/dist/client/components/not-found.js +42 -0
  428. package/vendor/web/standalone/node_modules/next/dist/client/components/readonly-url-search-params.js +41 -0
  429. package/vendor/web/standalone/node_modules/next/dist/client/components/redirect-boundary.js +107 -0
  430. package/vendor/web/standalone/node_modules/next/dist/client/components/redirect-error.js +43 -0
  431. package/vendor/web/standalone/node_modules/next/dist/client/components/redirect-status-code.js +24 -0
  432. package/vendor/web/standalone/node_modules/next/dist/client/components/redirect.js +91 -0
  433. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +201 -0
  434. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +21 -0
  435. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +153 -0
  436. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +32 -0
  437. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +457 -0
  438. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +59 -0
  439. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +1341 -0
  440. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
  441. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +63 -0
  442. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +38 -0
  443. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +23 -0
  444. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +56 -0
  445. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +83 -0
  446. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +62 -0
  447. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +320 -0
  448. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +58 -0
  449. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +70 -0
  450. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +66 -0
  451. package/vendor/web/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +60 -0
  452. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/bfcache.js +128 -0
  453. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/cache-key.js +28 -0
  454. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +305 -0
  455. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +1933 -0
  456. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +152 -0
  457. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +194 -0
  458. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +597 -0
  459. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +543 -0
  460. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/prefetch.js +31 -0
  461. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +1249 -0
  462. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/types.js +69 -0
  463. package/vendor/web/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +278 -0
  464. package/vendor/web/standalone/node_modules/next/dist/client/components/static-generation-bailout.js +42 -0
  465. package/vendor/web/standalone/node_modules/next/dist/client/components/unauthorized.js +49 -0
  466. package/vendor/web/standalone/node_modules/next/dist/client/components/unrecognized-action-error.js +39 -0
  467. package/vendor/web/standalone/node_modules/next/dist/client/components/unresolved-thenable.js +23 -0
  468. package/vendor/web/standalone/node_modules/next/dist/client/components/unstable-rethrow.browser.js +28 -0
  469. package/vendor/web/standalone/node_modules/next/dist/client/components/unstable-rethrow.js +25 -0
  470. package/vendor/web/standalone/node_modules/next/dist/client/components/unstable-rethrow.server.js +32 -0
  471. package/vendor/web/standalone/node_modules/next/dist/client/components/use-action-queue.js +148 -0
  472. package/vendor/web/standalone/node_modules/next/dist/client/dev/debug-channel.js +72 -0
  473. package/vendor/web/standalone/node_modules/next/dist/client/flight-data-helpers.js +232 -0
  474. package/vendor/web/standalone/node_modules/next/dist/client/has-base-path.js +23 -0
  475. package/vendor/web/standalone/node_modules/next/dist/client/lib/console.js +177 -0
  476. package/vendor/web/standalone/node_modules/next/dist/client/lib/javascript-url.js +32 -0
  477. package/vendor/web/standalone/node_modules/next/dist/client/navigation-build-id.js +53 -0
  478. package/vendor/web/standalone/node_modules/next/dist/client/normalize-trailing-slash.js +36 -0
  479. package/vendor/web/standalone/node_modules/next/dist/client/remove-base-path.js +32 -0
  480. package/vendor/web/standalone/node_modules/next/dist/client/route-params.js +230 -0
  481. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +339 -0
  482. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +46 -0
  483. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -0
  484. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -0
  485. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -0
  486. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +5 -0
  487. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +18713 -0
  488. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +44 -0
  489. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -0
  490. package/vendor/web/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -0
  491. package/vendor/web/standalone/node_modules/next/dist/compiled/@hapi/accept/index.js +1 -0
  492. package/vendor/web/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -0
  493. package/vendor/web/standalone/node_modules/next/dist/compiled/@napi-rs/triples/index.js +1 -0
  494. package/vendor/web/standalone/node_modules/next/dist/compiled/@opentelemetry/api/index.js +1 -0
  495. package/vendor/web/standalone/node_modules/next/dist/compiled/async-retry/index.js +1 -0
  496. package/vendor/web/standalone/node_modules/next/dist/compiled/async-sema/index.js +1 -0
  497. package/vendor/web/standalone/node_modules/next/dist/compiled/busboy/index.js +1 -0
  498. package/vendor/web/standalone/node_modules/next/dist/compiled/bytes/index.js +8 -0
  499. package/vendor/web/standalone/node_modules/next/dist/compiled/ci-info/index.js +1 -0
  500. package/vendor/web/standalone/node_modules/next/dist/compiled/commander/index.js +1 -0
  501. package/vendor/web/standalone/node_modules/next/dist/compiled/comment-json/index.js +7 -0
  502. package/vendor/web/standalone/node_modules/next/dist/compiled/compression/index.js +58 -0
  503. package/vendor/web/standalone/node_modules/next/dist/compiled/conf/index.js +15 -0
  504. package/vendor/web/standalone/node_modules/next/dist/compiled/content-disposition/index.js +6 -0
  505. package/vendor/web/standalone/node_modules/next/dist/compiled/cookie/index.js +7 -0
  506. package/vendor/web/standalone/node_modules/next/dist/compiled/cross-spawn/index.js +1 -0
  507. package/vendor/web/standalone/node_modules/next/dist/compiled/debug/index.js +1 -0
  508. package/vendor/web/standalone/node_modules/next/dist/compiled/edge-runtime/index.js +1 -0
  509. package/vendor/web/standalone/node_modules/next/dist/compiled/find-up/index.js +1 -0
  510. package/vendor/web/standalone/node_modules/next/dist/compiled/fresh/index.js +8 -0
  511. package/vendor/web/standalone/node_modules/next/dist/compiled/http-proxy/index.js +34 -0
  512. package/vendor/web/standalone/node_modules/next/dist/compiled/image-detector/detector.js +1 -0
  513. package/vendor/web/standalone/node_modules/next/dist/compiled/image-size/index.js +1 -0
  514. package/vendor/web/standalone/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +1 -0
  515. package/vendor/web/standalone/node_modules/next/dist/compiled/is-animated/index.js +1 -0
  516. package/vendor/web/standalone/node_modules/next/dist/compiled/is-docker/index.js +1 -0
  517. package/vendor/web/standalone/node_modules/next/dist/compiled/is-wsl/index.js +1 -0
  518. package/vendor/web/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +11 -0
  519. package/vendor/web/standalone/node_modules/next/dist/compiled/nanoid/index.cjs +1 -0
  520. package/vendor/web/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +54 -0
  521. package/vendor/web/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +54 -0
  522. package/vendor/web/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +6 -0
  523. package/vendor/web/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +20 -0
  524. package/vendor/web/standalone/node_modules/next/dist/compiled/p-limit/index.js +1 -0
  525. package/vendor/web/standalone/node_modules/next/dist/compiled/p-queue/index.js +1 -0
  526. package/vendor/web/standalone/node_modules/next/dist/compiled/path-browserify/index.js +1 -0
  527. package/vendor/web/standalone/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -0
  528. package/vendor/web/standalone/node_modules/next/dist/compiled/picomatch/index.js +1 -0
  529. package/vendor/web/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +133 -0
  530. package/vendor/web/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +130 -0
  531. package/vendor/web/standalone/node_modules/next/dist/compiled/react-is/index.js +7 -0
  532. package/vendor/web/standalone/node_modules/next/dist/compiled/react-is/package.json +1 -1
  533. package/vendor/web/standalone/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +729 -0
  534. package/vendor/web/standalone/node_modules/next/dist/compiled/semver/index.js +1 -0
  535. package/vendor/web/standalone/node_modules/next/dist/compiled/send/index.js +70 -0
  536. package/vendor/web/standalone/node_modules/next/dist/compiled/source-map/source-map.js +1 -0
  537. package/vendor/web/standalone/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -0
  538. package/vendor/web/standalone/node_modules/next/dist/compiled/string-hash/index.js +1 -0
  539. package/vendor/web/standalone/node_modules/next/dist/compiled/strip-ansi/index.js +1 -0
  540. package/vendor/web/standalone/node_modules/next/dist/compiled/superstruct/index.cjs +1 -0
  541. package/vendor/web/standalone/node_modules/next/dist/compiled/tar/index.min.js +1 -0
  542. package/vendor/web/standalone/node_modules/next/dist/compiled/tar/package.json +1 -1
  543. package/vendor/web/standalone/node_modules/next/dist/compiled/text-table/index.js +1 -0
  544. package/vendor/web/standalone/node_modules/next/dist/compiled/watchpack/watchpack.js +1 -0
  545. package/vendor/web/standalone/node_modules/next/dist/compiled/ws/index.js +1 -0
  546. package/vendor/web/standalone/node_modules/next/dist/compiled/zod/index.cjs +1 -0
  547. package/vendor/web/standalone/node_modules/next/dist/compiled/zod-validation-error/index.js +1 -0
  548. package/vendor/web/standalone/node_modules/next/dist/experimental/testmode/context.js +57 -0
  549. package/vendor/web/standalone/node_modules/next/dist/experimental/testmode/fetch.js +142 -0
  550. package/vendor/web/standalone/node_modules/next/dist/experimental/testmode/httpget.js +26 -0
  551. package/vendor/web/standalone/node_modules/next/dist/experimental/testmode/server-edge.js +32 -0
  552. package/vendor/web/standalone/node_modules/next/dist/experimental/testmode/server.js +62 -0
  553. package/vendor/web/standalone/node_modules/next/dist/export/helpers/create-incremental-cache.js +61 -0
  554. package/vendor/web/standalone/node_modules/next/dist/lib/batcher.js +65 -0
  555. package/vendor/web/standalone/node_modules/next/dist/lib/build-custom-route.js +46 -0
  556. package/vendor/web/standalone/node_modules/next/dist/lib/bundler.js +97 -0
  557. package/vendor/web/standalone/node_modules/next/dist/lib/client-and-server-references.js +54 -0
  558. package/vendor/web/standalone/node_modules/next/dist/lib/coalesced-function.js +39 -0
  559. package/vendor/web/standalone/node_modules/next/dist/lib/compile-error.js +14 -0
  560. package/vendor/web/standalone/node_modules/next/dist/lib/constants.js +420 -0
  561. package/vendor/web/standalone/node_modules/next/dist/lib/create-client-router-filter.js +67 -0
  562. package/vendor/web/standalone/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
  563. package/vendor/web/standalone/node_modules/next/dist/lib/detached-promise.js +32 -0
  564. package/vendor/web/standalone/node_modules/next/dist/lib/detect-typo.js +51 -0
  565. package/vendor/web/standalone/node_modules/next/dist/lib/download-swc.js +183 -0
  566. package/vendor/web/standalone/node_modules/next/dist/lib/error-telemetry-utils.js +42 -0
  567. package/vendor/web/standalone/node_modules/next/dist/lib/fallback.js +100 -0
  568. package/vendor/web/standalone/node_modules/next/dist/lib/fatal-error.js +14 -0
  569. package/vendor/web/standalone/node_modules/next/dist/lib/file-exists.js +53 -0
  570. package/vendor/web/standalone/node_modules/next/dist/lib/find-config.js +102 -0
  571. package/vendor/web/standalone/node_modules/next/dist/lib/find-pages-dir.js +65 -0
  572. package/vendor/web/standalone/node_modules/next/dist/lib/find-root.js +126 -0
  573. package/vendor/web/standalone/node_modules/next/dist/lib/format-cli-help-output.js +84 -0
  574. package/vendor/web/standalone/node_modules/next/dist/lib/format-dynamic-import-path.js +24 -0
  575. package/vendor/web/standalone/node_modules/next/dist/lib/format-server-error.js +75 -0
  576. package/vendor/web/standalone/node_modules/next/dist/lib/framework/boundary-components.js +62 -0
  577. package/vendor/web/standalone/node_modules/next/dist/lib/framework/boundary-constants.js +36 -0
  578. package/vendor/web/standalone/node_modules/next/dist/lib/fs/rename.js +87 -0
  579. package/vendor/web/standalone/node_modules/next/dist/lib/fs/write-atomic.js +28 -0
  580. package/vendor/web/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +52 -0
  581. package/vendor/web/standalone/node_modules/next/dist/lib/get-files-in-dir.js +33 -0
  582. package/vendor/web/standalone/node_modules/next/dist/lib/get-network-host.js +44 -0
  583. package/vendor/web/standalone/node_modules/next/dist/lib/get-package-version.js +118 -0
  584. package/vendor/web/standalone/node_modules/next/dist/lib/get-project-dir.js +51 -0
  585. package/vendor/web/standalone/node_modules/next/dist/lib/has-necessary-dependencies.js +49 -0
  586. package/vendor/web/standalone/node_modules/next/dist/lib/helpers/get-cache-directory.js +66 -0
  587. package/vendor/web/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +29 -0
  588. package/vendor/web/standalone/node_modules/next/dist/lib/helpers/get-online.js +50 -0
  589. package/vendor/web/standalone/node_modules/next/dist/lib/helpers/get-pkg-manager.js +63 -0
  590. package/vendor/web/standalone/node_modules/next/dist/lib/helpers/get-registry.js +45 -0
  591. package/vendor/web/standalone/node_modules/next/dist/lib/helpers/get-reserved-port.js +116 -0
  592. package/vendor/web/standalone/node_modules/next/dist/lib/helpers/install.js +83 -0
  593. package/vendor/web/standalone/node_modules/next/dist/lib/import-next-warning.js +50 -0
  594. package/vendor/web/standalone/node_modules/next/dist/lib/inline-static-env.js +112 -0
  595. package/vendor/web/standalone/node_modules/next/dist/lib/install-dependencies.js +40 -0
  596. package/vendor/web/standalone/node_modules/next/dist/lib/interop-default.js +16 -0
  597. package/vendor/web/standalone/node_modules/next/dist/lib/is-api-route.js +15 -0
  598. package/vendor/web/standalone/node_modules/next/dist/lib/is-app-page-route.js +15 -0
  599. package/vendor/web/standalone/node_modules/next/dist/lib/is-app-route-route.js +15 -0
  600. package/vendor/web/standalone/node_modules/next/dist/lib/is-edge-runtime.js +16 -0
  601. package/vendor/web/standalone/node_modules/next/dist/lib/is-error.js +78 -0
  602. package/vendor/web/standalone/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
  603. package/vendor/web/standalone/node_modules/next/dist/lib/is-internal-component.js +36 -0
  604. package/vendor/web/standalone/node_modules/next/dist/lib/is-serializable-props.js +106 -0
  605. package/vendor/web/standalone/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
  606. package/vendor/web/standalone/node_modules/next/dist/lib/load-custom-routes.js +594 -0
  607. package/vendor/web/standalone/node_modules/next/dist/lib/memory/gc-observer.js +53 -0
  608. package/vendor/web/standalone/node_modules/next/dist/lib/memory/shutdown.js +29 -0
  609. package/vendor/web/standalone/node_modules/next/dist/lib/memory/startup.js +47 -0
  610. package/vendor/web/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
  611. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/constants.js +40 -0
  612. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/default-metadata.js +82 -0
  613. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/generate/icon-mark.js +22 -0
  614. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/generate/utils.js +52 -0
  615. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +123 -0
  616. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/is-metadata-route.js +221 -0
  617. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/metadata-context.js +18 -0
  618. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/metadata.js +1686 -0
  619. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/resolve-metadata.js +884 -0
  620. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +232 -0
  621. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +56 -0
  622. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +199 -0
  623. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +40 -0
  624. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +135 -0
  625. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +7 -0
  626. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/extra-types.js +9 -0
  627. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/icons.js +6 -0
  628. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/manifest-types.js +6 -0
  629. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/metadata-interface.js +18 -0
  630. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/metadata-types.js +10 -0
  631. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/opengraph-types.js +6 -0
  632. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/resolvers.js +6 -0
  633. package/vendor/web/standalone/node_modules/next/dist/lib/metadata/types/twitter-types.js +7 -0
  634. package/vendor/web/standalone/node_modules/next/dist/lib/mime-type.js +20 -0
  635. package/vendor/web/standalone/node_modules/next/dist/lib/mkcert.js +204 -0
  636. package/vendor/web/standalone/node_modules/next/dist/lib/multi-file-writer.js +75 -0
  637. package/vendor/web/standalone/node_modules/next/dist/lib/needs-experimental-react.js +16 -0
  638. package/vendor/web/standalone/node_modules/next/dist/lib/non-nullable.js +15 -0
  639. package/vendor/web/standalone/node_modules/next/dist/lib/normalize-path.js +21 -0
  640. package/vendor/web/standalone/node_modules/next/dist/lib/oxford-comma-list.js +15 -0
  641. package/vendor/web/standalone/node_modules/next/dist/lib/page-types.js +18 -0
  642. package/vendor/web/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +185 -0
  643. package/vendor/web/standalone/node_modules/next/dist/lib/pick.js +19 -0
  644. package/vendor/web/standalone/node_modules/next/dist/lib/picocolors.js +177 -0
  645. package/vendor/web/standalone/node_modules/next/dist/lib/pretty-bytes.js +74 -0
  646. package/vendor/web/standalone/node_modules/next/dist/lib/realpath.js +20 -0
  647. package/vendor/web/standalone/node_modules/next/dist/lib/recursive-copy.js +76 -0
  648. package/vendor/web/standalone/node_modules/next/dist/lib/recursive-delete.js +137 -0
  649. package/vendor/web/standalone/node_modules/next/dist/lib/recursive-readdir.js +124 -0
  650. package/vendor/web/standalone/node_modules/next/dist/lib/redirect-status.js +46 -0
  651. package/vendor/web/standalone/node_modules/next/dist/lib/require-instrumentation-client.js +26 -0
  652. package/vendor/web/standalone/node_modules/next/dist/lib/resolve-build-paths.js +154 -0
  653. package/vendor/web/standalone/node_modules/next/dist/lib/resolve-from.js +65 -0
  654. package/vendor/web/standalone/node_modules/next/dist/lib/route-pattern-normalizer.js +107 -0
  655. package/vendor/web/standalone/node_modules/next/dist/lib/scheduler.js +64 -0
  656. package/vendor/web/standalone/node_modules/next/dist/lib/semver-noop.js +18 -0
  657. package/vendor/web/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
  658. package/vendor/web/standalone/node_modules/next/dist/lib/setup-exception-listeners.js +11 -0
  659. package/vendor/web/standalone/node_modules/next/dist/lib/static-env.js +92 -0
  660. package/vendor/web/standalone/node_modules/next/dist/lib/try-to-parse-path.js +67 -0
  661. package/vendor/web/standalone/node_modules/next/dist/lib/turbopack-warning.js +185 -0
  662. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +243 -0
  663. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +73 -0
  664. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +52 -0
  665. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +27 -0
  666. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +149 -0
  667. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/type-paths.js +51 -0
  668. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +75 -0
  669. package/vendor/web/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +391 -0
  670. package/vendor/web/standalone/node_modules/next/dist/lib/url.js +75 -0
  671. package/vendor/web/standalone/node_modules/next/dist/lib/verify-partytown-setup.js +115 -0
  672. package/vendor/web/standalone/node_modules/next/dist/lib/verify-root-layout.js +165 -0
  673. package/vendor/web/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +228 -0
  674. package/vendor/web/standalone/node_modules/next/dist/lib/wait.js +19 -0
  675. package/vendor/web/standalone/node_modules/next/dist/lib/with-promise-cache.js +24 -0
  676. package/vendor/web/standalone/node_modules/next/dist/lib/worker.js +234 -0
  677. package/vendor/web/standalone/node_modules/next/dist/server/ReactDOMServerPages.js +16 -0
  678. package/vendor/web/standalone/node_modules/next/dist/server/accept-header.js +132 -0
  679. package/vendor/web/standalone/node_modules/next/dist/server/after/after-context.js +140 -0
  680. package/vendor/web/standalone/node_modules/next/dist/server/after/after.js +26 -0
  681. package/vendor/web/standalone/node_modules/next/dist/server/after/awaiter.js +74 -0
  682. package/vendor/web/standalone/node_modules/next/dist/server/after/builtin-request-context.js +38 -0
  683. package/vendor/web/standalone/node_modules/next/dist/server/after/index.js +21 -0
  684. package/vendor/web/standalone/node_modules/next/dist/server/after/run-with-after.js +35 -0
  685. package/vendor/web/standalone/node_modules/next/dist/server/api-utils/get-cookie-parser.js +22 -0
  686. package/vendor/web/standalone/node_modules/next/dist/server/api-utils/index.js +201 -0
  687. package/vendor/web/standalone/node_modules/next/dist/server/api-utils/node/api-resolver.js +395 -0
  688. package/vendor/web/standalone/node_modules/next/dist/server/api-utils/node/parse-body.js +79 -0
  689. package/vendor/web/standalone/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +86 -0
  690. package/vendor/web/standalone/node_modules/next/dist/server/api-utils/web.js +17 -0
  691. package/vendor/web/standalone/node_modules/next/dist/server/app-render/action-async-storage-instance.js +14 -0
  692. package/vendor/web/standalone/node_modules/next/dist/server/app-render/action-async-storage.external.js +13 -0
  693. package/vendor/web/standalone/node_modules/next/dist/server/app-render/action-handler.js +1020 -0
  694. package/vendor/web/standalone/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +14 -0
  695. package/vendor/web/standalone/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +13 -0
  696. package/vendor/web/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +167 -0
  697. package/vendor/web/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +76 -0
  698. package/vendor/web/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
  699. package/vendor/web/standalone/node_modules/next/dist/server/app-render/app-render.js +4469 -0
  700. package/vendor/web/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +76 -0
  701. package/vendor/web/standalone/node_modules/next/dist/server/app-render/cache-signal.js +181 -0
  702. package/vendor/web/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +600 -0
  703. package/vendor/web/standalone/node_modules/next/dist/server/app-render/console-async-storage-instance.js +14 -0
  704. package/vendor/web/standalone/node_modules/next/dist/server/app-render/console-async-storage.external.js +13 -0
  705. package/vendor/web/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +33 -0
  706. package/vendor/web/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +840 -0
  707. package/vendor/web/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +189 -0
  708. package/vendor/web/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +102 -0
  709. package/vendor/web/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +86 -0
  710. package/vendor/web/standalone/node_modules/next/dist/server/app-render/debug-channel-server.js +30 -0
  711. package/vendor/web/standalone/node_modules/next/dist/server/app-render/debug-channel-server.web.js +71 -0
  712. package/vendor/web/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +14 -0
  713. package/vendor/web/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +13 -0
  714. package/vendor/web/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +1144 -0
  715. package/vendor/web/standalone/node_modules/next/dist/server/app-render/encryption-utils-server.js +114 -0
  716. package/vendor/web/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +93 -0
  717. package/vendor/web/standalone/node_modules/next/dist/server/app-render/encryption.js +259 -0
  718. package/vendor/web/standalone/node_modules/next/dist/server/app-render/entry-base.js +256 -0
  719. package/vendor/web/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +28 -0
  720. package/vendor/web/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +29 -0
  721. package/vendor/web/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +49 -0
  722. package/vendor/web/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +65 -0
  723. package/vendor/web/standalone/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +39 -0
  724. package/vendor/web/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +44 -0
  725. package/vendor/web/standalone/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +25 -0
  726. package/vendor/web/standalone/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +19 -0
  727. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +13 -0
  728. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-impl.js +103 -0
  729. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +18 -0
  730. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +181 -0
  731. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +128 -0
  732. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +432 -0
  733. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
  734. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation.js +713 -0
  735. package/vendor/web/standalone/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +96 -0
  736. package/vendor/web/standalone/node_modules/next/dist/server/app-render/interop-default.js +17 -0
  737. package/vendor/web/standalone/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +92 -0
  738. package/vendor/web/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +264 -0
  739. package/vendor/web/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +28 -0
  740. package/vendor/web/standalone/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +57 -0
  741. package/vendor/web/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +32 -0
  742. package/vendor/web/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +66 -0
  743. package/vendor/web/standalone/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +49 -0
  744. package/vendor/web/standalone/node_modules/next/dist/server/app-render/postponed-state.js +157 -0
  745. package/vendor/web/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +74 -0
  746. package/vendor/web/standalone/node_modules/next/dist/server/app-render/react-large-shell-error.js +17 -0
  747. package/vendor/web/standalone/node_modules/next/dist/server/app-render/react-server.node.js +39 -0
  748. package/vendor/web/standalone/node_modules/next/dist/server/app-render/render-css-resource.js +52 -0
  749. package/vendor/web/standalone/node_modules/next/dist/server/app-render/required-scripts.js +76 -0
  750. package/vendor/web/standalone/node_modules/next/dist/server/app-render/rsc/postpone.js +18 -0
  751. package/vendor/web/standalone/node_modules/next/dist/server/app-render/rsc/preloads.js +74 -0
  752. package/vendor/web/standalone/node_modules/next/dist/server/app-render/rsc/taint.js +79 -0
  753. package/vendor/web/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +128 -0
  754. package/vendor/web/standalone/node_modules/next/dist/server/app-render/server-inserted-html.js +77 -0
  755. package/vendor/web/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +343 -0
  756. package/vendor/web/standalone/node_modules/next/dist/server/app-render/stale-time.js +111 -0
  757. package/vendor/web/standalone/node_modules/next/dist/server/app-render/stream-ops.js +106 -0
  758. package/vendor/web/standalone/node_modules/next/dist/server/app-render/stream-ops.web.js +163 -0
  759. package/vendor/web/standalone/node_modules/next/dist/server/app-render/strip-flight-headers.js +18 -0
  760. package/vendor/web/standalone/node_modules/next/dist/server/app-render/types.js +65 -0
  761. package/vendor/web/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +214 -0
  762. package/vendor/web/standalone/node_modules/next/dist/server/app-render/vary-params.js +336 -0
  763. package/vendor/web/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +232 -0
  764. package/vendor/web/standalone/node_modules/next/dist/server/app-render/work-async-storage-instance.js +14 -0
  765. package/vendor/web/standalone/node_modules/next/dist/server/app-render/work-async-storage.external.js +13 -0
  766. package/vendor/web/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +14 -0
  767. package/vendor/web/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +280 -0
  768. package/vendor/web/standalone/node_modules/next/dist/server/async-storage/draft-mode-provider.js +62 -0
  769. package/vendor/web/standalone/node_modules/next/dist/server/async-storage/request-store.js +144 -0
  770. package/vendor/web/standalone/node_modules/next/dist/server/async-storage/with-store.js +6 -0
  771. package/vendor/web/standalone/node_modules/next/dist/server/async-storage/work-store.js +91 -0
  772. package/vendor/web/standalone/node_modules/next/dist/server/base-http/helpers.js +36 -0
  773. package/vendor/web/standalone/node_modules/next/dist/server/base-http/index.js +54 -0
  774. package/vendor/web/standalone/node_modules/next/dist/server/base-http/node.js +147 -0
  775. package/vendor/web/standalone/node_modules/next/dist/server/base-http/web.js +124 -0
  776. package/vendor/web/standalone/node_modules/next/dist/server/base-server.js +1874 -0
  777. package/vendor/web/standalone/node_modules/next/dist/server/body-streams.js +114 -0
  778. package/vendor/web/standalone/node_modules/next/dist/server/cache-dir.js +26 -0
  779. package/vendor/web/standalone/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
  780. package/vendor/web/standalone/node_modules/next/dist/server/ci-info.js +41 -0
  781. package/vendor/web/standalone/node_modules/next/dist/server/client-component-renderer-logger.js +70 -0
  782. package/vendor/web/standalone/node_modules/next/dist/server/config-schema.js +717 -0
  783. package/vendor/web/standalone/node_modules/next/dist/server/config-shared.js +369 -0
  784. package/vendor/web/standalone/node_modules/next/dist/server/config-utils.js +185 -0
  785. package/vendor/web/standalone/node_modules/next/dist/server/config.js +1545 -0
  786. package/vendor/web/standalone/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +96 -0
  787. package/vendor/web/standalone/node_modules/next/dist/server/crypto-utils.js +70 -0
  788. package/vendor/web/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +186 -0
  789. package/vendor/web/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +558 -0
  790. package/vendor/web/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +222 -0
  791. package/vendor/web/standalone/node_modules/next/dist/server/dev/debug-channel.js +87 -0
  792. package/vendor/web/standalone/node_modules/next/dist/server/dev/dev-indicator-server-state.js +15 -0
  793. package/vendor/web/standalone/node_modules/next/dist/server/dev/get-source-map-from-file.js +100 -0
  794. package/vendor/web/standalone/node_modules/next/dist/server/dev/hot-middleware.js +274 -0
  795. package/vendor/web/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
  796. package/vendor/web/standalone/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +56 -0
  797. package/vendor/web/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +1478 -0
  798. package/vendor/web/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +58 -0
  799. package/vendor/web/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1386 -0
  800. package/vendor/web/standalone/node_modules/next/dist/server/dev/log-requests.js +149 -0
  801. package/vendor/web/standalone/node_modules/next/dist/server/dev/messages.js +74 -0
  802. package/vendor/web/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +403 -0
  803. package/vendor/web/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +483 -0
  804. package/vendor/web/standalone/node_modules/next/dist/server/dev/node-stack-frames.js +72 -0
  805. package/vendor/web/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +773 -0
  806. package/vendor/web/standalone/node_modules/next/dist/server/dev/parse-version-info.js +108 -0
  807. package/vendor/web/standalone/node_modules/next/dist/server/dev/require-cache.js +79 -0
  808. package/vendor/web/standalone/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
  809. package/vendor/web/standalone/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
  810. package/vendor/web/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +104 -0
  811. package/vendor/web/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +687 -0
  812. package/vendor/web/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +108 -0
  813. package/vendor/web/standalone/node_modules/next/dist/server/font-utils.js +43 -0
  814. package/vendor/web/standalone/node_modules/next/dist/server/get-app-route-from-entrypoint.js +30 -0
  815. package/vendor/web/standalone/node_modules/next/dist/server/get-page-files.js +23 -0
  816. package/vendor/web/standalone/node_modules/next/dist/server/get-route-from-entrypoint.js +35 -0
  817. package/vendor/web/standalone/node_modules/next/dist/server/htmlescape.js +37 -0
  818. package/vendor/web/standalone/node_modules/next/dist/server/image-optimizer.js +1220 -0
  819. package/vendor/web/standalone/node_modules/next/dist/server/instrumentation/types.js +6 -0
  820. package/vendor/web/standalone/node_modules/next/dist/server/instrumentation/utils.js +21 -0
  821. package/vendor/web/standalone/node_modules/next/dist/server/internal-utils.js +39 -0
  822. package/vendor/web/standalone/node_modules/next/dist/server/is-private-ip.js +36 -0
  823. package/vendor/web/standalone/node_modules/next/dist/server/lib/app-dir-module.js +59 -0
  824. package/vendor/web/standalone/node_modules/next/dist/server/lib/app-info-log.js +132 -0
  825. package/vendor/web/standalone/node_modules/next/dist/server/lib/async-callback-set.js +29 -0
  826. package/vendor/web/standalone/node_modules/next/dist/server/lib/cache-control.js +22 -0
  827. package/vendor/web/standalone/node_modules/next/dist/server/lib/cache-handlers/default.external.js +18 -0
  828. package/vendor/web/standalone/node_modules/next/dist/server/lib/cache-handlers/default.js +160 -0
  829. package/vendor/web/standalone/node_modules/next/dist/server/lib/cache-handlers/types.js +8 -0
  830. package/vendor/web/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +116 -0
  831. package/vendor/web/standalone/node_modules/next/dist/server/lib/clone-response.js +77 -0
  832. package/vendor/web/standalone/node_modules/next/dist/server/lib/cpu-profile.js +59 -0
  833. package/vendor/web/standalone/node_modules/next/dist/server/lib/decode-query-path-parameter.js +26 -0
  834. package/vendor/web/standalone/node_modules/next/dist/server/lib/dedupe-fetch.js +163 -0
  835. package/vendor/web/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +95 -0
  836. package/vendor/web/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +57 -0
  837. package/vendor/web/standalone/node_modules/next/dist/server/lib/etag.js +56 -0
  838. package/vendor/web/standalone/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +48 -0
  839. package/vendor/web/standalone/node_modules/next/dist/server/lib/experimental/ppr.js +47 -0
  840. package/vendor/web/standalone/node_modules/next/dist/server/lib/find-page-file.js +147 -0
  841. package/vendor/web/standalone/node_modules/next/dist/server/lib/fix-mojibake.js +25 -0
  842. package/vendor/web/standalone/node_modules/next/dist/server/lib/format-hostname.js +16 -0
  843. package/vendor/web/standalone/node_modules/next/dist/server/lib/i18n-provider.js +129 -0
  844. package/vendor/web/standalone/node_modules/next/dist/server/lib/implicit-tags.js +77 -0
  845. package/vendor/web/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +335 -0
  846. package/vendor/web/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +501 -0
  847. package/vendor/web/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +57 -0
  848. package/vendor/web/standalone/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +73 -0
  849. package/vendor/web/standalone/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +55 -0
  850. package/vendor/web/standalone/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
  851. package/vendor/web/standalone/node_modules/next/dist/server/lib/is-ipv6.js +41 -0
  852. package/vendor/web/standalone/node_modules/next/dist/server/lib/lazy-result.js +46 -0
  853. package/vendor/web/standalone/node_modules/next/dist/server/lib/lru-cache.js +191 -0
  854. package/vendor/web/standalone/node_modules/next/dist/server/lib/match-next-data-pathname.js +18 -0
  855. package/vendor/web/standalone/node_modules/next/dist/server/lib/mock-request.js +416 -0
  856. package/vendor/web/standalone/node_modules/next/dist/server/lib/module-loader/module-loader.js +8 -0
  857. package/vendor/web/standalone/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +25 -0
  858. package/vendor/web/standalone/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +26 -0
  859. package/vendor/web/standalone/node_modules/next/dist/server/lib/node-fs-methods.js +28 -0
  860. package/vendor/web/standalone/node_modules/next/dist/server/lib/parse-stack.js +46 -0
  861. package/vendor/web/standalone/node_modules/next/dist/server/lib/patch-fetch.js +978 -0
  862. package/vendor/web/standalone/node_modules/next/dist/server/lib/patch-set-header.js +38 -0
  863. package/vendor/web/standalone/node_modules/next/dist/server/lib/postponed-request-body.js +64 -0
  864. package/vendor/web/standalone/node_modules/next/dist/server/lib/render-server.js +155 -0
  865. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-server.js +683 -0
  866. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +110 -0
  867. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/build-data-route.js +48 -0
  868. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +50 -0
  869. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +211 -0
  870. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +42 -0
  871. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +591 -0
  872. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +89 -0
  873. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +96 -0
  874. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/is-postpone.js +16 -0
  875. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/proxy-request.js +118 -0
  876. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +629 -0
  877. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +286 -0
  878. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/router-server-context.js +26 -0
  879. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +858 -0
  880. package/vendor/web/standalone/node_modules/next/dist/server/lib/router-utils/types.js +6 -0
  881. package/vendor/web/standalone/node_modules/next/dist/server/lib/server-action-request-meta.js +53 -0
  882. package/vendor/web/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +81 -0
  883. package/vendor/web/standalone/node_modules/next/dist/server/lib/source-maps.js +196 -0
  884. package/vendor/web/standalone/node_modules/next/dist/server/lib/start-server.js +494 -0
  885. package/vendor/web/standalone/node_modules/next/dist/server/lib/streaming-metadata.js +38 -0
  886. package/vendor/web/standalone/node_modules/next/dist/server/lib/to-route.js +37 -0
  887. package/vendor/web/standalone/node_modules/next/dist/server/lib/trace/constants.js +203 -0
  888. package/vendor/web/standalone/node_modules/next/dist/server/lib/trace/tracer.js +280 -0
  889. package/vendor/web/standalone/node_modules/next/dist/server/lib/trace/utils.js +16 -0
  890. package/vendor/web/standalone/node_modules/next/dist/server/lib/types.js +6 -0
  891. package/vendor/web/standalone/node_modules/next/dist/server/lib/utils.js +278 -0
  892. package/vendor/web/standalone/node_modules/next/dist/server/lib/worker-utils.js +36 -0
  893. package/vendor/web/standalone/node_modules/next/dist/server/load-components.js +179 -0
  894. package/vendor/web/standalone/node_modules/next/dist/server/load-default-error-components.js +41 -0
  895. package/vendor/web/standalone/node_modules/next/dist/server/load-manifest.external.js +117 -0
  896. package/vendor/web/standalone/node_modules/next/dist/server/match-bundle.js +25 -0
  897. package/vendor/web/standalone/node_modules/next/dist/server/mcp/get-mcp-middleware.js +49 -0
  898. package/vendor/web/standalone/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +41 -0
  899. package/vendor/web/standalone/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +82 -0
  900. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +114 -0
  901. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +67 -0
  902. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +188 -0
  903. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +59 -0
  904. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +136 -0
  905. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +121 -0
  906. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +31 -0
  907. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +90 -0
  908. package/vendor/web/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +137 -0
  909. package/vendor/web/standalone/node_modules/next/dist/server/next-server.js +1429 -0
  910. package/vendor/web/standalone/node_modules/next/dist/server/next-typescript.js +13 -0
  911. package/vendor/web/standalone/node_modules/next/dist/server/next.js +455 -0
  912. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-baseline.js +25 -0
  913. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +301 -0
  914. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/console-exit.js +49 -0
  915. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/console-file.js +56 -0
  916. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +52 -0
  917. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +8 -0
  918. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +577 -0
  919. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +33 -0
  920. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/io-utils.js +195 -0
  921. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +103 -0
  922. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +91 -0
  923. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +28 -0
  924. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js +508 -0
  925. package/vendor/web/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +45 -0
  926. package/vendor/web/standalone/node_modules/next/dist/server/node-environment.js +19 -0
  927. package/vendor/web/standalone/node_modules/next/dist/server/node-polyfill-crypto.js +21 -0
  928. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +33 -0
  929. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +54 -0
  930. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +22 -0
  931. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +40 -0
  932. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +55 -0
  933. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/app/index.js +42 -0
  934. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/pages/index.js +44 -0
  935. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +55 -0
  936. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +22 -0
  937. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +19 -0
  938. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +19 -0
  939. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +26 -0
  940. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/normalizer.js +6 -0
  941. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/normalizers.js +23 -0
  942. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +26 -0
  943. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/request/base-path.js +25 -0
  944. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/request/next-data.js +38 -0
  945. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +6 -0
  946. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/request/prefix.js +39 -0
  947. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/request/rsc.js +19 -0
  948. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +33 -0
  949. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/request/suffix.js +27 -0
  950. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/underscore-normalizer.js +17 -0
  951. package/vendor/web/standalone/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +17 -0
  952. package/vendor/web/standalone/node_modules/next/dist/server/og/image-response.js +53 -0
  953. package/vendor/web/standalone/node_modules/next/dist/server/patch-error-inspect.js +453 -0
  954. package/vendor/web/standalone/node_modules/next/dist/server/pipe-readable.js +140 -0
  955. package/vendor/web/standalone/node_modules/next/dist/server/post-process.js +39 -0
  956. package/vendor/web/standalone/node_modules/next/dist/server/render-result.js +204 -0
  957. package/vendor/web/standalone/node_modules/next/dist/server/render.js +1140 -0
  958. package/vendor/web/standalone/node_modules/next/dist/server/request/connection.js +133 -0
  959. package/vendor/web/standalone/node_modules/next/dist/server/request/cookies.js +235 -0
  960. package/vendor/web/standalone/node_modules/next/dist/server/request/draft-mode.js +230 -0
  961. package/vendor/web/standalone/node_modules/next/dist/server/request/fallback-params.js +69 -0
  962. package/vendor/web/standalone/node_modules/next/dist/server/request/headers.js +229 -0
  963. package/vendor/web/standalone/node_modules/next/dist/server/request/params.js +527 -0
  964. package/vendor/web/standalone/node_modules/next/dist/server/request/pathname.js +119 -0
  965. package/vendor/web/standalone/node_modules/next/dist/server/request/root-params.js +194 -0
  966. package/vendor/web/standalone/node_modules/next/dist/server/request/search-params.js +526 -0
  967. package/vendor/web/standalone/node_modules/next/dist/server/request/utils.js +51 -0
  968. package/vendor/web/standalone/node_modules/next/dist/server/request-meta.js +55 -0
  969. package/vendor/web/standalone/node_modules/next/dist/server/require-hook.js +82 -0
  970. package/vendor/web/standalone/node_modules/next/dist/server/require.js +109 -0
  971. package/vendor/web/standalone/node_modules/next/dist/server/response-cache/index.js +311 -0
  972. package/vendor/web/standalone/node_modules/next/dist/server/response-cache/types.js +41 -0
  973. package/vendor/web/standalone/node_modules/next/dist/server/response-cache/utils.js +104 -0
  974. package/vendor/web/standalone/node_modules/next/dist/server/response-cache/web.js +101 -0
  975. package/vendor/web/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +96 -0
  976. package/vendor/web/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +124 -0
  977. package/vendor/web/standalone/node_modules/next/dist/server/revalidation-utils.js +157 -0
  978. package/vendor/web/standalone/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +16 -0
  979. package/vendor/web/standalone/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +6 -0
  980. package/vendor/web/standalone/node_modules/next/dist/server/route-definitions/locale-route-definition.js +6 -0
  981. package/vendor/web/standalone/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +6 -0
  982. package/vendor/web/standalone/node_modules/next/dist/server/route-definitions/pages-route-definition.js +6 -0
  983. package/vendor/web/standalone/node_modules/next/dist/server/route-definitions/route-definition.js +6 -0
  984. package/vendor/web/standalone/node_modules/next/dist/server/route-kind.js +32 -0
  985. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +239 -0
  986. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +120 -0
  987. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.js +6 -0
  988. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +55 -0
  989. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +43 -0
  990. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +91 -0
  991. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +112 -0
  992. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +77 -0
  993. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +77 -0
  994. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +28 -0
  995. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +106 -0
  996. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +42 -0
  997. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/file-reader.js +6 -0
  998. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +30 -0
  999. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/manifest-loader.js +6 -0
  1000. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +34 -0
  1001. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +20 -0
  1002. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +21 -0
  1003. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +55 -0
  1004. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +64 -0
  1005. package/vendor/web/standalone/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.js +6 -0
  1006. package/vendor/web/standalone/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +18 -0
  1007. package/vendor/web/standalone/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +15 -0
  1008. package/vendor/web/standalone/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +68 -0
  1009. package/vendor/web/standalone/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +30 -0
  1010. package/vendor/web/standalone/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +30 -0
  1011. package/vendor/web/standalone/node_modules/next/dist/server/route-matchers/route-matcher.js +54 -0
  1012. package/vendor/web/standalone/node_modules/next/dist/server/route-matches/app-page-route-match.js +6 -0
  1013. package/vendor/web/standalone/node_modules/next/dist/server/route-matches/app-route-route-match.js +6 -0
  1014. package/vendor/web/standalone/node_modules/next/dist/server/route-matches/locale-route-match.js +6 -0
  1015. package/vendor/web/standalone/node_modules/next/dist/server/route-matches/pages-api-route-match.js +16 -0
  1016. package/vendor/web/standalone/node_modules/next/dist/server/route-matches/pages-route-match.js +6 -0
  1017. package/vendor/web/standalone/node_modules/next/dist/server/route-matches/route-match.js +6 -0
  1018. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +51 -0
  1019. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/module.compiled.js +36 -0
  1020. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +162 -0
  1021. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/module.render.js +24 -0
  1022. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +25 -0
  1023. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +4 -0
  1024. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +87 -0
  1025. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +4 -0
  1026. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +4 -0
  1027. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +4 -0
  1028. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +4 -0
  1029. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +4 -0
  1030. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +140 -0
  1031. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +4 -0
  1032. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +4 -0
  1033. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +4 -0
  1034. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +4 -0
  1035. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +4 -0
  1036. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +4 -0
  1037. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +4 -0
  1038. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +4 -0
  1039. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +4 -0
  1040. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +125 -0
  1041. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +4 -0
  1042. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +4 -0
  1043. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +4 -0
  1044. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +4 -0
  1045. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +4 -0
  1046. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +4 -0
  1047. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +4 -0
  1048. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +4 -0
  1049. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +85 -0
  1050. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +24 -0
  1051. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +29 -0
  1052. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +15 -0
  1053. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +20 -0
  1054. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +36 -0
  1055. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +899 -0
  1056. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +56 -0
  1057. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/checks.js +45 -0
  1058. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +100 -0
  1059. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/module.compiled.js +20 -0
  1060. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/module.js +92 -0
  1061. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/module.render.js +24 -0
  1062. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +545 -0
  1063. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +4 -0
  1064. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +102 -0
  1065. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +4 -0
  1066. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +4 -0
  1067. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +4 -0
  1068. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +4 -0
  1069. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +4 -0
  1070. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +4 -0
  1071. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +4 -0
  1072. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +4 -0
  1073. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +20 -0
  1074. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/pages-api/module.js +58 -0
  1075. package/vendor/web/standalone/node_modules/next/dist/server/route-modules/route-module.js +650 -0
  1076. package/vendor/web/standalone/node_modules/next/dist/server/runtime-reacts.external.js +46 -0
  1077. package/vendor/web/standalone/node_modules/next/dist/server/send-payload.js +88 -0
  1078. package/vendor/web/standalone/node_modules/next/dist/server/send-response.js +70 -0
  1079. package/vendor/web/standalone/node_modules/next/dist/server/serve-static.js +66 -0
  1080. package/vendor/web/standalone/node_modules/next/dist/server/server-route-utils.js +30 -0
  1081. package/vendor/web/standalone/node_modules/next/dist/server/server-utils.js +323 -0
  1082. package/vendor/web/standalone/node_modules/next/dist/server/setup-http-agent-env.js +31 -0
  1083. package/vendor/web/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +122 -0
  1084. package/vendor/web/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +918 -0
  1085. package/vendor/web/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +74 -0
  1086. package/vendor/web/standalone/node_modules/next/dist/server/typescript/constant.js +98 -0
  1087. package/vendor/web/standalone/node_modules/next/dist/server/typescript/index.js +199 -0
  1088. package/vendor/web/standalone/node_modules/next/dist/server/typescript/rules/client-boundary.js +97 -0
  1089. package/vendor/web/standalone/node_modules/next/dist/server/typescript/rules/config.js +512 -0
  1090. package/vendor/web/standalone/node_modules/next/dist/server/typescript/rules/entry.js +149 -0
  1091. package/vendor/web/standalone/node_modules/next/dist/server/typescript/rules/error.js +38 -0
  1092. package/vendor/web/standalone/node_modules/next/dist/server/typescript/rules/metadata.js +234 -0
  1093. package/vendor/web/standalone/node_modules/next/dist/server/typescript/rules/server-boundary.js +115 -0
  1094. package/vendor/web/standalone/node_modules/next/dist/server/typescript/rules/server.js +79 -0
  1095. package/vendor/web/standalone/node_modules/next/dist/server/typescript/utils.js +212 -0
  1096. package/vendor/web/standalone/node_modules/next/dist/server/use-cache/cache-life.js +163 -0
  1097. package/vendor/web/standalone/node_modules/next/dist/server/use-cache/cache-tag.js +52 -0
  1098. package/vendor/web/standalone/node_modules/next/dist/server/use-cache/constants.js +28 -0
  1099. package/vendor/web/standalone/node_modules/next/dist/server/use-cache/handlers.js +121 -0
  1100. package/vendor/web/standalone/node_modules/next/dist/server/use-cache/use-cache-errors.js +36 -0
  1101. package/vendor/web/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1588 -0
  1102. package/vendor/web/standalone/node_modules/next/dist/server/utils.js +73 -0
  1103. package/vendor/web/standalone/node_modules/next/dist/server/web/adapter.js +392 -0
  1104. package/vendor/web/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +123 -0
  1105. package/vendor/web/standalone/node_modules/next/dist/server/web/error.js +54 -0
  1106. package/vendor/web/standalone/node_modules/next/dist/server/web/exports/index.js +56 -0
  1107. package/vendor/web/standalone/node_modules/next/dist/server/web/get-edge-preview-props.js +23 -0
  1108. package/vendor/web/standalone/node_modules/next/dist/server/web/globals.js +128 -0
  1109. package/vendor/web/standalone/node_modules/next/dist/server/web/http.js +39 -0
  1110. package/vendor/web/standalone/node_modules/next/dist/server/web/internal-edge-wait-until.js +64 -0
  1111. package/vendor/web/standalone/node_modules/next/dist/server/web/next-url.js +199 -0
  1112. package/vendor/web/standalone/node_modules/next/dist/server/web/sandbox/context.js +462 -0
  1113. package/vendor/web/standalone/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +35 -0
  1114. package/vendor/web/standalone/node_modules/next/dist/server/web/sandbox/index.js +28 -0
  1115. package/vendor/web/standalone/node_modules/next/dist/server/web/sandbox/resource-managers.js +88 -0
  1116. package/vendor/web/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +137 -0
  1117. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +192 -0
  1118. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +142 -0
  1119. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +30 -0
  1120. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +211 -0
  1121. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/cookies.js +29 -0
  1122. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/fetch-event.js +98 -0
  1123. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/image-response.js +22 -0
  1124. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/request.js +99 -0
  1125. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/response.js +136 -0
  1126. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +214 -0
  1127. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +289 -0
  1128. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +51 -0
  1129. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/url-pattern.js +14 -0
  1130. package/vendor/web/standalone/node_modules/next/dist/server/web/spec-extension/user-agent.js +46 -0
  1131. package/vendor/web/standalone/node_modules/next/dist/server/web/types.js +6 -0
  1132. package/vendor/web/standalone/node_modules/next/dist/server/web/utils.js +151 -0
  1133. package/vendor/web/standalone/node_modules/next/dist/server/web/web-on-close.js +87 -0
  1134. package/vendor/web/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
  1135. package/vendor/web/standalone/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +50 -0
  1136. package/vendor/web/standalone/node_modules/next/dist/shared/lib/app-router-types.js +46 -0
  1137. package/vendor/web/standalone/node_modules/next/dist/shared/lib/constants.js +448 -0
  1138. package/vendor/web/standalone/node_modules/next/dist/shared/lib/deep-freeze.js +30 -0
  1139. package/vendor/web/standalone/node_modules/next/dist/shared/lib/deployment-id.js +63 -0
  1140. package/vendor/web/standalone/node_modules/next/dist/shared/lib/dset.js +34 -0
  1141. package/vendor/web/standalone/node_modules/next/dist/shared/lib/encode-uri-path.js +15 -0
  1142. package/vendor/web/standalone/node_modules/next/dist/shared/lib/entry-constants.js +36 -0
  1143. package/vendor/web/standalone/node_modules/next/dist/shared/lib/error-source.js +36 -0
  1144. package/vendor/web/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +39 -0
  1145. package/vendor/web/standalone/node_modules/next/dist/shared/lib/errors/code-frame.js +20 -0
  1146. package/vendor/web/standalone/node_modules/next/dist/shared/lib/errors/constants.js +19 -0
  1147. package/vendor/web/standalone/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +24 -0
  1148. package/vendor/web/standalone/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +20 -0
  1149. package/vendor/web/standalone/node_modules/next/dist/shared/lib/escape-regexp.js +22 -0
  1150. package/vendor/web/standalone/node_modules/next/dist/shared/lib/get-hostname.js +23 -0
  1151. package/vendor/web/standalone/node_modules/next/dist/shared/lib/hash.js +42 -0
  1152. package/vendor/web/standalone/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +18 -0
  1153. package/vendor/web/standalone/node_modules/next/dist/shared/lib/head.js +163 -0
  1154. package/vendor/web/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +60 -0
  1155. package/vendor/web/standalone/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +40 -0
  1156. package/vendor/web/standalone/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +25 -0
  1157. package/vendor/web/standalone/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +59 -0
  1158. package/vendor/web/standalone/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +54 -0
  1159. package/vendor/web/standalone/node_modules/next/dist/shared/lib/image-blur-svg.js +22 -0
  1160. package/vendor/web/standalone/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +19 -0
  1161. package/vendor/web/standalone/node_modules/next/dist/shared/lib/image-config.js +77 -0
  1162. package/vendor/web/standalone/node_modules/next/dist/shared/lib/invariant-error.js +18 -0
  1163. package/vendor/web/standalone/node_modules/next/dist/shared/lib/is-plain-object.js +42 -0
  1164. package/vendor/web/standalone/node_modules/next/dist/shared/lib/is-thenable.js +20 -0
  1165. package/vendor/web/standalone/node_modules/next/dist/shared/lib/isomorphic/path.js +14 -0
  1166. package/vendor/web/standalone/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +37 -0
  1167. package/vendor/web/standalone/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +19 -0
  1168. package/vendor/web/standalone/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +246 -0
  1169. package/vendor/web/standalone/node_modules/next/dist/shared/lib/match-local-pattern.js +46 -0
  1170. package/vendor/web/standalone/node_modules/next/dist/shared/lib/match-remote-pattern.js +63 -0
  1171. package/vendor/web/standalone/node_modules/next/dist/shared/lib/modern-browserslist-target.js +15 -0
  1172. package/vendor/web/standalone/node_modules/next/dist/shared/lib/no-fallback-error.external.js +18 -0
  1173. package/vendor/web/standalone/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +28 -0
  1174. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +26 -0
  1175. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +18 -0
  1176. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +18 -0
  1177. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +40 -0
  1178. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +23 -0
  1179. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +26 -0
  1180. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +19 -0
  1181. package/vendor/web/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +20 -0
  1182. package/vendor/web/standalone/node_modules/next/dist/shared/lib/promise-with-resolvers.js +26 -0
  1183. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/adapters.js +136 -0
  1184. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
  1185. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/add-locale.js +28 -0
  1186. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +20 -0
  1187. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +20 -0
  1188. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +62 -0
  1189. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +17 -0
  1190. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +24 -0
  1191. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +16 -0
  1192. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +27 -0
  1193. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/format-url.js +111 -0
  1194. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +174 -0
  1195. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +52 -0
  1196. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +25 -0
  1197. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
  1198. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/html-bots.js +17 -0
  1199. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/index.js +30 -0
  1200. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
  1201. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +108 -0
  1202. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/is-bot.js +57 -0
  1203. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
  1204. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +31 -0
  1205. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +30 -0
  1206. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/parse-path.js +33 -0
  1207. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +43 -0
  1208. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +38 -0
  1209. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +20 -0
  1210. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/path-match.js +49 -0
  1211. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +292 -0
  1212. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/querystring.js +79 -0
  1213. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +40 -0
  1214. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +39 -0
  1215. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +21 -0
  1216. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
  1217. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +113 -0
  1218. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +45 -0
  1219. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/route-regex.js +256 -0
  1220. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +244 -0
  1221. package/vendor/web/standalone/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +18 -0
  1222. package/vendor/web/standalone/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +99 -0
  1223. package/vendor/web/standalone/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +32 -0
  1224. package/vendor/web/standalone/node_modules/next/dist/shared/lib/segment.js +102 -0
  1225. package/vendor/web/standalone/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +35 -0
  1226. package/vendor/web/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +56 -0
  1227. package/vendor/web/standalone/node_modules/next/dist/shared/lib/side-effect.js +63 -0
  1228. package/vendor/web/standalone/node_modules/next/dist/shared/lib/size-limit.js +40 -0
  1229. package/vendor/web/standalone/node_modules/next/dist/shared/lib/turbopack/internal-error.js +53 -0
  1230. package/vendor/web/standalone/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
  1231. package/vendor/web/standalone/node_modules/next/dist/shared/lib/utils/warn-once.js +22 -0
  1232. package/vendor/web/standalone/node_modules/next/dist/shared/lib/utils.js +207 -0
  1233. package/vendor/web/standalone/node_modules/next/dist/shared/lib/zod.js +101 -0
  1234. package/vendor/web/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +89 -0
  1235. package/vendor/web/standalone/node_modules/next/dist/telemetry/detached-flush.js +56 -0
  1236. package/vendor/web/standalone/node_modules/next/dist/telemetry/events/build.js +174 -0
  1237. package/vendor/web/standalone/node_modules/next/dist/telemetry/events/index.js +41 -0
  1238. package/vendor/web/standalone/node_modules/next/dist/telemetry/events/plugins.js +51 -0
  1239. package/vendor/web/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +55 -0
  1240. package/vendor/web/standalone/node_modules/next/dist/telemetry/events/version.js +66 -0
  1241. package/vendor/web/standalone/node_modules/next/dist/telemetry/flush-telemetry.js +19 -0
  1242. package/vendor/web/standalone/node_modules/next/dist/telemetry/post-telemetry-payload.js +48 -0
  1243. package/vendor/web/standalone/node_modules/next/dist/telemetry/project-id.js +48 -0
  1244. package/vendor/web/standalone/node_modules/next/dist/telemetry/storage.js +301 -0
  1245. package/vendor/web/standalone/node_modules/next/dist/trace/index.js +58 -0
  1246. package/vendor/web/standalone/node_modules/next/dist/trace/report/index.js +37 -0
  1247. package/vendor/web/standalone/node_modules/next/dist/trace/report/to-json-build.js +40 -0
  1248. package/vendor/web/standalone/node_modules/next/dist/trace/report/to-json.js +165 -0
  1249. package/vendor/web/standalone/node_modules/next/dist/trace/report/to-telemetry.js +36 -0
  1250. package/vendor/web/standalone/node_modules/next/dist/trace/shared.js +39 -0
  1251. package/vendor/web/standalone/node_modules/next/dist/trace/trace.js +211 -0
  1252. package/vendor/web/standalone/node_modules/next/package.json +378 -0
  1253. package/vendor/web/standalone/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
  1254. package/vendor/web/standalone/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
  1255. package/vendor/web/standalone/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
  1256. package/vendor/web/standalone/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
  1257. package/vendor/web/standalone/node_modules/oniguruma-parser/dist/utils.js +2 -0
  1258. package/vendor/web/standalone/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
  1259. package/vendor/web/standalone/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
  1260. package/vendor/web/standalone/node_modules/oniguruma-to-es/package.json +4 -4
  1261. package/vendor/web/standalone/node_modules/property-information/index.js +17 -0
  1262. package/vendor/web/standalone/node_modules/property-information/lib/aria.js +61 -0
  1263. package/vendor/web/standalone/node_modules/property-information/lib/find.js +97 -0
  1264. package/vendor/web/standalone/node_modules/property-information/lib/hast-to-react.js +30 -0
  1265. package/vendor/web/standalone/node_modules/property-information/lib/html.js +322 -0
  1266. package/vendor/web/standalone/node_modules/property-information/lib/normalize.js +12 -0
  1267. package/vendor/web/standalone/node_modules/property-information/lib/svg.js +567 -0
  1268. package/vendor/web/standalone/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
  1269. package/vendor/web/standalone/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
  1270. package/vendor/web/standalone/node_modules/property-information/lib/util/create.js +69 -0
  1271. package/vendor/web/standalone/node_modules/property-information/lib/util/defined-info.js +60 -0
  1272. package/vendor/web/standalone/node_modules/property-information/lib/util/info.js +32 -0
  1273. package/vendor/web/standalone/node_modules/property-information/lib/util/merge.js +27 -0
  1274. package/vendor/web/standalone/node_modules/property-information/lib/util/schema.js +29 -0
  1275. package/vendor/web/standalone/node_modules/property-information/lib/util/types.js +13 -0
  1276. package/vendor/web/standalone/node_modules/property-information/lib/xlink.js +17 -0
  1277. package/vendor/web/standalone/node_modules/property-information/lib/xml.js +9 -0
  1278. package/vendor/web/standalone/node_modules/property-information/lib/xmlns.js +9 -0
  1279. package/vendor/web/standalone/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
  1280. package/vendor/web/standalone/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  1281. package/vendor/web/standalone/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
  1282. package/vendor/web/standalone/node_modules/react/cjs/react.development.js +1284 -0
  1283. package/vendor/web/standalone/node_modules/react/cjs/react.production.js +542 -0
  1284. package/vendor/web/standalone/node_modules/react/compiler-runtime.js +14 -0
  1285. package/vendor/web/standalone/node_modules/react/index.js +7 -0
  1286. package/vendor/web/standalone/node_modules/react/jsx-dev-runtime.js +7 -0
  1287. package/vendor/web/standalone/node_modules/react/jsx-runtime.js +7 -0
  1288. package/vendor/web/standalone/node_modules/react/package.json +1 -1
  1289. package/vendor/web/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +6603 -0
  1290. package/vendor/web/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +6692 -0
  1291. package/vendor/web/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +7410 -0
  1292. package/vendor/web/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +7512 -0
  1293. package/vendor/web/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +7707 -0
  1294. package/vendor/web/standalone/node_modules/react-dom/cjs/react-dom.production.js +210 -0
  1295. package/vendor/web/standalone/node_modules/react-dom/index.js +38 -0
  1296. package/vendor/web/standalone/node_modules/react-dom/package.json +2 -2
  1297. package/vendor/web/standalone/node_modules/react-dom/server.browser.js +16 -0
  1298. package/vendor/web/standalone/node_modules/react-dom/server.edge.js +17 -0
  1299. package/vendor/web/standalone/node_modules/react-dom/server.node.js +18 -0
  1300. package/vendor/web/standalone/node_modules/react-dom/static.node.js +14 -0
  1301. package/vendor/web/standalone/node_modules/regex/src/atomic.js +224 -0
  1302. package/vendor/web/standalone/node_modules/regex/src/internals.js +2 -0
  1303. package/vendor/web/standalone/node_modules/regex/src/subclass.js +98 -0
  1304. package/vendor/web/standalone/node_modules/regex/src/utils-internals.js +33 -0
  1305. package/vendor/web/standalone/node_modules/regex-recursion/src/index.js +365 -0
  1306. package/vendor/web/standalone/node_modules/regex-utilities/src/index.js +170 -0
  1307. package/vendor/web/standalone/node_modules/sharp/lib/channel.js +177 -0
  1308. package/vendor/web/standalone/node_modules/sharp/lib/colour.js +195 -0
  1309. package/vendor/web/standalone/node_modules/sharp/lib/composite.js +212 -0
  1310. package/vendor/web/standalone/node_modules/sharp/lib/constructor.js +499 -0
  1311. package/vendor/web/standalone/node_modules/sharp/lib/index.js +16 -0
  1312. package/vendor/web/standalone/node_modules/sharp/lib/input.js +809 -0
  1313. package/vendor/web/standalone/node_modules/sharp/lib/is.js +143 -0
  1314. package/vendor/web/standalone/node_modules/sharp/lib/libvips.js +207 -0
  1315. package/vendor/web/standalone/node_modules/sharp/lib/operation.js +1016 -0
  1316. package/vendor/web/standalone/node_modules/sharp/lib/output.js +1666 -0
  1317. package/vendor/web/standalone/node_modules/sharp/lib/resize.js +595 -0
  1318. package/vendor/web/standalone/node_modules/sharp/lib/sharp.js +121 -0
  1319. package/vendor/web/standalone/node_modules/sharp/lib/utility.js +291 -0
  1320. package/vendor/web/standalone/node_modules/space-separated-tokens/index.js +24 -0
  1321. package/vendor/web/standalone/node_modules/stringify-entities/index.js +6 -0
  1322. package/vendor/web/standalone/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
  1323. package/vendor/web/standalone/node_modules/stringify-entities/lib/core.js +117 -0
  1324. package/vendor/web/standalone/node_modules/stringify-entities/lib/index.js +36 -0
  1325. package/vendor/web/standalone/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
  1326. package/vendor/web/standalone/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
  1327. package/vendor/web/standalone/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
  1328. package/vendor/web/standalone/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
  1329. package/vendor/web/standalone/node_modules/stringify-entities/lib/util/to-named.js +57 -0
  1330. package/vendor/web/standalone/node_modules/zwitch/index.js +118 -0
@@ -0,0 +1,2446 @@
1
+ import { ShikiError as ShikiError$1 } from '@shikijs/types';
2
+ export * from '@shikijs/types';
3
+ import { FontStyle, INITIAL, EncodedTokenMetadata, Registry as Registry$1, Theme } from '@shikijs/vscode-textmate';
4
+ import { toHtml } from 'hast-util-to-html';
5
+
6
+ function resolveColorReplacements(theme, options) {
7
+ const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
8
+ const themeName = typeof theme === "string" ? theme : theme.name;
9
+ for (const [key, value] of Object.entries(options?.colorReplacements || {})) {
10
+ if (typeof value === "string")
11
+ replacements[key] = value;
12
+ else if (key === themeName)
13
+ Object.assign(replacements, value);
14
+ }
15
+ return replacements;
16
+ }
17
+ function applyColorReplacements(color, replacements) {
18
+ if (!color)
19
+ return color;
20
+ return replacements?.[color?.toLowerCase()] || color;
21
+ }
22
+
23
+ function toArray(x) {
24
+ return Array.isArray(x) ? x : [x];
25
+ }
26
+ async function normalizeGetter(p) {
27
+ return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
28
+ }
29
+ function isPlainLang(lang) {
30
+ return !lang || ["plaintext", "txt", "text", "plain"].includes(lang);
31
+ }
32
+ function isSpecialLang(lang) {
33
+ return lang === "ansi" || isPlainLang(lang);
34
+ }
35
+ function isNoneTheme(theme) {
36
+ return theme === "none";
37
+ }
38
+ function isSpecialTheme(theme) {
39
+ return isNoneTheme(theme);
40
+ }
41
+
42
+ function addClassToHast(node, className) {
43
+ if (!className)
44
+ return node;
45
+ node.properties ||= {};
46
+ node.properties.class ||= [];
47
+ if (typeof node.properties.class === "string")
48
+ node.properties.class = node.properties.class.split(/\s+/g);
49
+ if (!Array.isArray(node.properties.class))
50
+ node.properties.class = [];
51
+ const targets = Array.isArray(className) ? className : className.split(/\s+/g);
52
+ for (const c of targets) {
53
+ if (c && !node.properties.class.includes(c))
54
+ node.properties.class.push(c);
55
+ }
56
+ return node;
57
+ }
58
+
59
+ function splitLines(code, preserveEnding = false) {
60
+ if (code.length === 0) {
61
+ return [["", 0]];
62
+ }
63
+ const parts = code.split(/(\r?\n)/g);
64
+ let index = 0;
65
+ const lines = [];
66
+ for (let i = 0; i < parts.length; i += 2) {
67
+ const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
68
+ lines.push([line, index]);
69
+ index += parts[i].length;
70
+ index += parts[i + 1]?.length || 0;
71
+ }
72
+ return lines;
73
+ }
74
+ function createPositionConverter(code) {
75
+ const lines = splitLines(code, true).map(([line]) => line);
76
+ function indexToPos(index) {
77
+ if (index === code.length) {
78
+ return {
79
+ line: lines.length - 1,
80
+ character: lines[lines.length - 1].length
81
+ };
82
+ }
83
+ let character = index;
84
+ let line = 0;
85
+ for (const lineText of lines) {
86
+ if (character < lineText.length)
87
+ break;
88
+ character -= lineText.length;
89
+ line++;
90
+ }
91
+ return { line, character };
92
+ }
93
+ function posToIndex(line, character) {
94
+ let index = 0;
95
+ for (let i = 0; i < line; i++)
96
+ index += lines[i].length;
97
+ index += character;
98
+ return index;
99
+ }
100
+ return {
101
+ lines,
102
+ indexToPos,
103
+ posToIndex
104
+ };
105
+ }
106
+ function guessEmbeddedLanguages(code, _lang, highlighter) {
107
+ const langs = /* @__PURE__ */ new Set();
108
+ for (const match of code.matchAll(/:?lang=["']([^"']+)["']/g)) {
109
+ const lang = match[1].toLowerCase().trim();
110
+ if (lang)
111
+ langs.add(lang);
112
+ }
113
+ for (const match of code.matchAll(/(?:```|~~~)([\w-]+)/g)) {
114
+ const lang = match[1].toLowerCase().trim();
115
+ if (lang)
116
+ langs.add(lang);
117
+ }
118
+ for (const match of code.matchAll(/\\begin\{([\w-]+)\}/g)) {
119
+ const lang = match[1].toLowerCase().trim();
120
+ if (lang)
121
+ langs.add(lang);
122
+ }
123
+ for (const match of code.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
124
+ const fullType = match[1].toLowerCase().trim();
125
+ const lang = fullType.includes("/") ? fullType.split("/").pop() : fullType;
126
+ if (lang)
127
+ langs.add(lang);
128
+ }
129
+ if (!highlighter)
130
+ return Array.from(langs);
131
+ const bundle = highlighter.getBundledLanguages();
132
+ return Array.from(langs).filter((l) => l && bundle[l]);
133
+ }
134
+
135
+ const DEFAULT_COLOR_LIGHT_DARK = "light-dark()";
136
+ const COLOR_KEYS = ["color", "background-color"];
137
+
138
+ function splitToken(token, offsets) {
139
+ let lastOffset = 0;
140
+ const tokens = [];
141
+ for (const offset of offsets) {
142
+ if (offset > lastOffset) {
143
+ tokens.push({
144
+ ...token,
145
+ content: token.content.slice(lastOffset, offset),
146
+ offset: token.offset + lastOffset
147
+ });
148
+ }
149
+ lastOffset = offset;
150
+ }
151
+ if (lastOffset < token.content.length) {
152
+ tokens.push({
153
+ ...token,
154
+ content: token.content.slice(lastOffset),
155
+ offset: token.offset + lastOffset
156
+ });
157
+ }
158
+ return tokens;
159
+ }
160
+ function splitTokens(tokens, breakpoints) {
161
+ const sorted = Array.from(breakpoints instanceof Set ? breakpoints : new Set(breakpoints)).sort((a, b) => a - b);
162
+ if (!sorted.length)
163
+ return tokens;
164
+ return tokens.map((line) => {
165
+ return line.flatMap((token) => {
166
+ const breakpointsInToken = sorted.filter((i) => token.offset < i && i < token.offset + token.content.length).map((i) => i - token.offset).sort((a, b) => a - b);
167
+ if (!breakpointsInToken.length)
168
+ return token;
169
+ return splitToken(token, breakpointsInToken);
170
+ });
171
+ });
172
+ }
173
+ function flatTokenVariants(merged, variantsOrder, cssVariablePrefix, defaultColor, colorsRendering = "css-vars") {
174
+ const token = {
175
+ content: merged.content,
176
+ explanation: merged.explanation,
177
+ offset: merged.offset
178
+ };
179
+ const styles = variantsOrder.map((t) => getTokenStyleObject(merged.variants[t]));
180
+ const styleKeys = new Set(styles.flatMap((t) => Object.keys(t)));
181
+ const mergedStyles = {};
182
+ const varKey = (idx, key) => {
183
+ const keyName = key === "color" ? "" : key === "background-color" ? "-bg" : `-${key}`;
184
+ return cssVariablePrefix + variantsOrder[idx] + (key === "color" ? "" : keyName);
185
+ };
186
+ styles.forEach((cur, idx) => {
187
+ for (const key of styleKeys) {
188
+ const value = cur[key] || "inherit";
189
+ if (idx === 0 && defaultColor && COLOR_KEYS.includes(key)) {
190
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && styles.length > 1) {
191
+ const lightIndex = variantsOrder.findIndex((t) => t === "light");
192
+ const darkIndex = variantsOrder.findIndex((t) => t === "dark");
193
+ if (lightIndex === -1 || darkIndex === -1)
194
+ throw new ShikiError$1('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
195
+ const lightValue = styles[lightIndex][key] || "inherit";
196
+ const darkValue = styles[darkIndex][key] || "inherit";
197
+ mergedStyles[key] = `light-dark(${lightValue}, ${darkValue})`;
198
+ if (colorsRendering === "css-vars")
199
+ mergedStyles[varKey(idx, key)] = value;
200
+ } else {
201
+ mergedStyles[key] = value;
202
+ }
203
+ } else {
204
+ if (colorsRendering === "css-vars")
205
+ mergedStyles[varKey(idx, key)] = value;
206
+ }
207
+ }
208
+ });
209
+ token.htmlStyle = mergedStyles;
210
+ return token;
211
+ }
212
+ function getTokenStyleObject(token) {
213
+ const styles = {};
214
+ if (token.color)
215
+ styles.color = token.color;
216
+ if (token.bgColor)
217
+ styles["background-color"] = token.bgColor;
218
+ if (token.fontStyle) {
219
+ if (token.fontStyle & FontStyle.Italic)
220
+ styles["font-style"] = "italic";
221
+ if (token.fontStyle & FontStyle.Bold)
222
+ styles["font-weight"] = "bold";
223
+ const decorations = [];
224
+ if (token.fontStyle & FontStyle.Underline)
225
+ decorations.push("underline");
226
+ if (token.fontStyle & FontStyle.Strikethrough)
227
+ decorations.push("line-through");
228
+ if (decorations.length)
229
+ styles["text-decoration"] = decorations.join(" ");
230
+ }
231
+ return styles;
232
+ }
233
+ function stringifyTokenStyle(token) {
234
+ if (typeof token === "string")
235
+ return token;
236
+ return Object.entries(token).map(([key, value]) => `${key}:${value}`).join(";");
237
+ }
238
+
239
+ const _grammarStateMap = /* @__PURE__ */ new WeakMap();
240
+ function setLastGrammarStateToMap(keys, state) {
241
+ _grammarStateMap.set(keys, state);
242
+ }
243
+ function getLastGrammarStateFromMap(keys) {
244
+ return _grammarStateMap.get(keys);
245
+ }
246
+ class GrammarState {
247
+ /**
248
+ * Theme to Stack mapping
249
+ */
250
+ _stacks = {};
251
+ lang;
252
+ get themes() {
253
+ return Object.keys(this._stacks);
254
+ }
255
+ get theme() {
256
+ return this.themes[0];
257
+ }
258
+ get _stack() {
259
+ return this._stacks[this.theme];
260
+ }
261
+ /**
262
+ * Static method to create a initial grammar state.
263
+ */
264
+ static initial(lang, themes) {
265
+ return new GrammarState(
266
+ Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])),
267
+ lang
268
+ );
269
+ }
270
+ constructor(...args) {
271
+ if (args.length === 2) {
272
+ const [stacksMap, lang] = args;
273
+ this.lang = lang;
274
+ this._stacks = stacksMap;
275
+ } else {
276
+ const [stack, lang, theme] = args;
277
+ this.lang = lang;
278
+ this._stacks = { [theme]: stack };
279
+ }
280
+ }
281
+ /**
282
+ * Get the internal stack object.
283
+ * @internal
284
+ */
285
+ getInternalStack(theme = this.theme) {
286
+ return this._stacks[theme];
287
+ }
288
+ getScopes(theme = this.theme) {
289
+ return getScopes(this._stacks[theme]);
290
+ }
291
+ toJSON() {
292
+ return {
293
+ lang: this.lang,
294
+ theme: this.theme,
295
+ themes: this.themes,
296
+ scopes: this.getScopes()
297
+ };
298
+ }
299
+ }
300
+ function getScopes(stack) {
301
+ const scopes = [];
302
+ const visited = /* @__PURE__ */ new Set();
303
+ function pushScope(stack2) {
304
+ if (visited.has(stack2))
305
+ return;
306
+ visited.add(stack2);
307
+ const name = stack2?.nameScopesList?.scopeName;
308
+ if (name)
309
+ scopes.push(name);
310
+ if (stack2.parent)
311
+ pushScope(stack2.parent);
312
+ }
313
+ pushScope(stack);
314
+ return scopes;
315
+ }
316
+ function getGrammarStack(state, theme) {
317
+ if (!(state instanceof GrammarState))
318
+ throw new ShikiError$1("Invalid grammar state");
319
+ return state.getInternalStack(theme);
320
+ }
321
+
322
+ function transformerDecorations() {
323
+ const map = /* @__PURE__ */ new WeakMap();
324
+ function getContext(shiki) {
325
+ if (!map.has(shiki.meta)) {
326
+ let normalizePosition = function(p) {
327
+ if (typeof p === "number") {
328
+ if (p < 0 || p > shiki.source.length)
329
+ throw new ShikiError$1(`Invalid decoration offset: ${p}. Code length: ${shiki.source.length}`);
330
+ return {
331
+ ...converter.indexToPos(p),
332
+ offset: p
333
+ };
334
+ } else {
335
+ const line = converter.lines[p.line];
336
+ if (line === void 0)
337
+ throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Lines length: ${converter.lines.length}`);
338
+ let character = p.character;
339
+ if (character < 0)
340
+ character = line.length + character;
341
+ if (character < 0 || character > line.length)
342
+ throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Line ${p.line} length: ${line.length}`);
343
+ return {
344
+ ...p,
345
+ character,
346
+ offset: converter.posToIndex(p.line, character)
347
+ };
348
+ }
349
+ };
350
+ const converter = createPositionConverter(shiki.source);
351
+ const decorations = (shiki.options.decorations || []).map((d) => ({
352
+ ...d,
353
+ start: normalizePosition(d.start),
354
+ end: normalizePosition(d.end)
355
+ }));
356
+ verifyIntersections(decorations);
357
+ map.set(shiki.meta, {
358
+ decorations,
359
+ converter,
360
+ source: shiki.source
361
+ });
362
+ }
363
+ return map.get(shiki.meta);
364
+ }
365
+ return {
366
+ name: "shiki:decorations",
367
+ tokens(tokens) {
368
+ if (!this.options.decorations?.length)
369
+ return;
370
+ const ctx = getContext(this);
371
+ const breakpoints = ctx.decorations.flatMap((d) => [d.start.offset, d.end.offset]);
372
+ const splitted = splitTokens(tokens, breakpoints);
373
+ return splitted;
374
+ },
375
+ code(codeEl) {
376
+ if (!this.options.decorations?.length)
377
+ return;
378
+ const ctx = getContext(this);
379
+ const lines = Array.from(codeEl.children).filter((i) => i.type === "element" && i.tagName === "span");
380
+ if (lines.length !== ctx.converter.lines.length)
381
+ throw new ShikiError$1(`Number of lines in code element (${lines.length}) does not match the number of lines in the source (${ctx.converter.lines.length}). Failed to apply decorations.`);
382
+ function applyLineSection(line, start, end, decoration) {
383
+ const lineEl = lines[line];
384
+ let text = "";
385
+ let startIndex = -1;
386
+ let endIndex = -1;
387
+ if (start === 0)
388
+ startIndex = 0;
389
+ if (end === 0)
390
+ endIndex = 0;
391
+ if (end === Number.POSITIVE_INFINITY)
392
+ endIndex = lineEl.children.length;
393
+ if (startIndex === -1 || endIndex === -1) {
394
+ for (let i = 0; i < lineEl.children.length; i++) {
395
+ text += stringify(lineEl.children[i]);
396
+ if (startIndex === -1 && text.length === start)
397
+ startIndex = i + 1;
398
+ if (endIndex === -1 && text.length === end)
399
+ endIndex = i + 1;
400
+ }
401
+ }
402
+ if (startIndex === -1)
403
+ throw new ShikiError$1(`Failed to find start index for decoration ${JSON.stringify(decoration.start)}`);
404
+ if (endIndex === -1)
405
+ throw new ShikiError$1(`Failed to find end index for decoration ${JSON.stringify(decoration.end)}`);
406
+ const children = lineEl.children.slice(startIndex, endIndex);
407
+ if (!decoration.alwaysWrap && children.length === lineEl.children.length) {
408
+ applyDecoration(lineEl, decoration, "line");
409
+ } else if (!decoration.alwaysWrap && children.length === 1 && children[0].type === "element") {
410
+ applyDecoration(children[0], decoration, "token");
411
+ } else {
412
+ const wrapper = {
413
+ type: "element",
414
+ tagName: "span",
415
+ properties: {},
416
+ children
417
+ };
418
+ applyDecoration(wrapper, decoration, "wrapper");
419
+ lineEl.children.splice(startIndex, children.length, wrapper);
420
+ }
421
+ }
422
+ function applyLine(line, decoration) {
423
+ lines[line] = applyDecoration(lines[line], decoration, "line");
424
+ }
425
+ function applyDecoration(el, decoration, type) {
426
+ const properties = decoration.properties || {};
427
+ const transform = decoration.transform || ((i) => i);
428
+ el.tagName = decoration.tagName || "span";
429
+ el.properties = {
430
+ ...el.properties,
431
+ ...properties,
432
+ class: el.properties.class
433
+ };
434
+ if (decoration.properties?.class)
435
+ addClassToHast(el, decoration.properties.class);
436
+ el = transform(el, type) || el;
437
+ return el;
438
+ }
439
+ const lineApplies = [];
440
+ const sorted = ctx.decorations.sort((a, b) => b.start.offset - a.start.offset || a.end.offset - b.end.offset);
441
+ for (const decoration of sorted) {
442
+ const { start, end } = decoration;
443
+ if (start.line === end.line) {
444
+ applyLineSection(start.line, start.character, end.character, decoration);
445
+ } else if (start.line < end.line) {
446
+ applyLineSection(start.line, start.character, Number.POSITIVE_INFINITY, decoration);
447
+ for (let i = start.line + 1; i < end.line; i++)
448
+ lineApplies.unshift(() => applyLine(i, decoration));
449
+ applyLineSection(end.line, 0, end.character, decoration);
450
+ }
451
+ }
452
+ lineApplies.forEach((i) => i());
453
+ }
454
+ };
455
+ }
456
+ function verifyIntersections(items) {
457
+ for (let i = 0; i < items.length; i++) {
458
+ const foo = items[i];
459
+ if (foo.start.offset > foo.end.offset)
460
+ throw new ShikiError$1(`Invalid decoration range: ${JSON.stringify(foo.start)} - ${JSON.stringify(foo.end)}`);
461
+ for (let j = i + 1; j < items.length; j++) {
462
+ const bar = items[j];
463
+ const isFooHasBarStart = foo.start.offset <= bar.start.offset && bar.start.offset < foo.end.offset;
464
+ const isFooHasBarEnd = foo.start.offset < bar.end.offset && bar.end.offset <= foo.end.offset;
465
+ const isBarHasFooStart = bar.start.offset <= foo.start.offset && foo.start.offset < bar.end.offset;
466
+ const isBarHasFooEnd = bar.start.offset < foo.end.offset && foo.end.offset <= bar.end.offset;
467
+ if (isFooHasBarStart || isFooHasBarEnd || isBarHasFooStart || isBarHasFooEnd) {
468
+ if (isFooHasBarStart && isFooHasBarEnd)
469
+ continue;
470
+ if (isBarHasFooStart && isBarHasFooEnd)
471
+ continue;
472
+ if (isBarHasFooStart && foo.start.offset === foo.end.offset)
473
+ continue;
474
+ if (isFooHasBarEnd && bar.start.offset === bar.end.offset)
475
+ continue;
476
+ throw new ShikiError$1(`Decorations ${JSON.stringify(foo.start)} and ${JSON.stringify(bar.start)} intersect.`);
477
+ }
478
+ }
479
+ }
480
+ }
481
+ function stringify(el) {
482
+ if (el.type === "text")
483
+ return el.value;
484
+ if (el.type === "element")
485
+ return el.children.map(stringify).join("");
486
+ return "";
487
+ }
488
+
489
+ const builtInTransformers = [
490
+ /* @__PURE__ */ transformerDecorations()
491
+ ];
492
+ function getTransformers(options) {
493
+ const transformers = sortTransformersByEnforcement(options.transformers || []);
494
+ return [
495
+ ...transformers.pre,
496
+ ...transformers.normal,
497
+ ...transformers.post,
498
+ ...builtInTransformers
499
+ ];
500
+ }
501
+ function sortTransformersByEnforcement(transformers) {
502
+ const pre = [];
503
+ const post = [];
504
+ const normal = [];
505
+ for (const transformer of transformers) {
506
+ switch (transformer.enforce) {
507
+ case "pre":
508
+ pre.push(transformer);
509
+ break;
510
+ case "post":
511
+ post.push(transformer);
512
+ break;
513
+ default:
514
+ normal.push(transformer);
515
+ }
516
+ }
517
+ return { pre, post, normal };
518
+ }
519
+
520
+ // src/colors.ts
521
+ var namedColors = [
522
+ "black",
523
+ "red",
524
+ "green",
525
+ "yellow",
526
+ "blue",
527
+ "magenta",
528
+ "cyan",
529
+ "white",
530
+ "brightBlack",
531
+ "brightRed",
532
+ "brightGreen",
533
+ "brightYellow",
534
+ "brightBlue",
535
+ "brightMagenta",
536
+ "brightCyan",
537
+ "brightWhite"
538
+ ];
539
+
540
+ // src/decorations.ts
541
+ var decorations = {
542
+ 1: "bold",
543
+ 2: "dim",
544
+ 3: "italic",
545
+ 4: "underline",
546
+ 7: "reverse",
547
+ 8: "hidden",
548
+ 9: "strikethrough"
549
+ };
550
+
551
+ // src/parser.ts
552
+ function findSequence(value, position) {
553
+ const nextEscape = value.indexOf("\x1B", position);
554
+ if (nextEscape !== -1) {
555
+ if (value[nextEscape + 1] === "[") {
556
+ const nextClose = value.indexOf("m", nextEscape);
557
+ if (nextClose !== -1) {
558
+ return {
559
+ sequence: value.substring(nextEscape + 2, nextClose).split(";"),
560
+ startPosition: nextEscape,
561
+ position: nextClose + 1
562
+ };
563
+ }
564
+ }
565
+ }
566
+ return {
567
+ position: value.length
568
+ };
569
+ }
570
+ function parseColor(sequence) {
571
+ const colorMode = sequence.shift();
572
+ if (colorMode === "2") {
573
+ const rgb = sequence.splice(0, 3).map((x) => Number.parseInt(x));
574
+ if (rgb.length !== 3 || rgb.some((x) => Number.isNaN(x)))
575
+ return;
576
+ return {
577
+ type: "rgb",
578
+ rgb
579
+ };
580
+ } else if (colorMode === "5") {
581
+ const index = sequence.shift();
582
+ if (index) {
583
+ return { type: "table", index: Number(index) };
584
+ }
585
+ }
586
+ }
587
+ function parseSequence(sequence) {
588
+ const commands = [];
589
+ while (sequence.length > 0) {
590
+ const code = sequence.shift();
591
+ if (!code)
592
+ continue;
593
+ const codeInt = Number.parseInt(code);
594
+ if (Number.isNaN(codeInt))
595
+ continue;
596
+ if (codeInt === 0) {
597
+ commands.push({ type: "resetAll" });
598
+ } else if (codeInt <= 9) {
599
+ const decoration = decorations[codeInt];
600
+ if (decoration) {
601
+ commands.push({
602
+ type: "setDecoration",
603
+ value: decorations[codeInt]
604
+ });
605
+ }
606
+ } else if (codeInt <= 29) {
607
+ const decoration = decorations[codeInt - 20];
608
+ if (decoration) {
609
+ commands.push({
610
+ type: "resetDecoration",
611
+ value: decoration
612
+ });
613
+ if (decoration === "dim") {
614
+ commands.push({
615
+ type: "resetDecoration",
616
+ value: "bold"
617
+ });
618
+ }
619
+ }
620
+ } else if (codeInt <= 37) {
621
+ commands.push({
622
+ type: "setForegroundColor",
623
+ value: { type: "named", name: namedColors[codeInt - 30] }
624
+ });
625
+ } else if (codeInt === 38) {
626
+ const color = parseColor(sequence);
627
+ if (color) {
628
+ commands.push({
629
+ type: "setForegroundColor",
630
+ value: color
631
+ });
632
+ }
633
+ } else if (codeInt === 39) {
634
+ commands.push({
635
+ type: "resetForegroundColor"
636
+ });
637
+ } else if (codeInt <= 47) {
638
+ commands.push({
639
+ type: "setBackgroundColor",
640
+ value: { type: "named", name: namedColors[codeInt - 40] }
641
+ });
642
+ } else if (codeInt === 48) {
643
+ const color = parseColor(sequence);
644
+ if (color) {
645
+ commands.push({
646
+ type: "setBackgroundColor",
647
+ value: color
648
+ });
649
+ }
650
+ } else if (codeInt === 49) {
651
+ commands.push({
652
+ type: "resetBackgroundColor"
653
+ });
654
+ } else if (codeInt === 53) {
655
+ commands.push({
656
+ type: "setDecoration",
657
+ value: "overline"
658
+ });
659
+ } else if (codeInt === 55) {
660
+ commands.push({
661
+ type: "resetDecoration",
662
+ value: "overline"
663
+ });
664
+ } else if (codeInt >= 90 && codeInt <= 97) {
665
+ commands.push({
666
+ type: "setForegroundColor",
667
+ value: { type: "named", name: namedColors[codeInt - 90 + 8] }
668
+ });
669
+ } else if (codeInt >= 100 && codeInt <= 107) {
670
+ commands.push({
671
+ type: "setBackgroundColor",
672
+ value: { type: "named", name: namedColors[codeInt - 100 + 8] }
673
+ });
674
+ }
675
+ }
676
+ return commands;
677
+ }
678
+ function createAnsiSequenceParser() {
679
+ let foreground = null;
680
+ let background = null;
681
+ let decorations2 = /* @__PURE__ */ new Set();
682
+ return {
683
+ parse(value) {
684
+ const tokens = [];
685
+ let position = 0;
686
+ do {
687
+ const findResult = findSequence(value, position);
688
+ const text = findResult.sequence ? value.substring(position, findResult.startPosition) : value.substring(position);
689
+ if (text.length > 0) {
690
+ tokens.push({
691
+ value: text,
692
+ foreground,
693
+ background,
694
+ decorations: new Set(decorations2)
695
+ });
696
+ }
697
+ if (findResult.sequence) {
698
+ const commands = parseSequence(findResult.sequence);
699
+ for (const styleToken of commands) {
700
+ if (styleToken.type === "resetAll") {
701
+ foreground = null;
702
+ background = null;
703
+ decorations2.clear();
704
+ } else if (styleToken.type === "resetForegroundColor") {
705
+ foreground = null;
706
+ } else if (styleToken.type === "resetBackgroundColor") {
707
+ background = null;
708
+ } else if (styleToken.type === "resetDecoration") {
709
+ decorations2.delete(styleToken.value);
710
+ }
711
+ }
712
+ for (const styleToken of commands) {
713
+ if (styleToken.type === "setForegroundColor") {
714
+ foreground = styleToken.value;
715
+ } else if (styleToken.type === "setBackgroundColor") {
716
+ background = styleToken.value;
717
+ } else if (styleToken.type === "setDecoration") {
718
+ decorations2.add(styleToken.value);
719
+ }
720
+ }
721
+ }
722
+ position = findResult.position;
723
+ } while (position < value.length);
724
+ return tokens;
725
+ }
726
+ };
727
+ }
728
+
729
+ // src/palette.ts
730
+ var defaultNamedColorsMap = {
731
+ black: "#000000",
732
+ red: "#bb0000",
733
+ green: "#00bb00",
734
+ yellow: "#bbbb00",
735
+ blue: "#0000bb",
736
+ magenta: "#ff00ff",
737
+ cyan: "#00bbbb",
738
+ white: "#eeeeee",
739
+ brightBlack: "#555555",
740
+ brightRed: "#ff5555",
741
+ brightGreen: "#00ff00",
742
+ brightYellow: "#ffff55",
743
+ brightBlue: "#5555ff",
744
+ brightMagenta: "#ff55ff",
745
+ brightCyan: "#55ffff",
746
+ brightWhite: "#ffffff"
747
+ };
748
+ function createColorPalette(namedColorsMap = defaultNamedColorsMap) {
749
+ function namedColor(name) {
750
+ return namedColorsMap[name];
751
+ }
752
+ function rgbColor(rgb) {
753
+ return `#${rgb.map((x) => Math.max(0, Math.min(x, 255)).toString(16).padStart(2, "0")).join("")}`;
754
+ }
755
+ let colorTable;
756
+ function getColorTable() {
757
+ if (colorTable) {
758
+ return colorTable;
759
+ }
760
+ colorTable = [];
761
+ for (let i = 0; i < namedColors.length; i++) {
762
+ colorTable.push(namedColor(namedColors[i]));
763
+ }
764
+ let levels = [0, 95, 135, 175, 215, 255];
765
+ for (let r = 0; r < 6; r++) {
766
+ for (let g = 0; g < 6; g++) {
767
+ for (let b = 0; b < 6; b++) {
768
+ colorTable.push(rgbColor([levels[r], levels[g], levels[b]]));
769
+ }
770
+ }
771
+ }
772
+ let level = 8;
773
+ for (let i = 0; i < 24; i++, level += 10) {
774
+ colorTable.push(rgbColor([level, level, level]));
775
+ }
776
+ return colorTable;
777
+ }
778
+ function tableColor(index) {
779
+ return getColorTable()[index];
780
+ }
781
+ function value(color) {
782
+ switch (color.type) {
783
+ case "named":
784
+ return namedColor(color.name);
785
+ case "rgb":
786
+ return rgbColor(color.rgb);
787
+ case "table":
788
+ return tableColor(color.index);
789
+ }
790
+ }
791
+ return {
792
+ value
793
+ };
794
+ }
795
+
796
+ const defaultAnsiColors = {
797
+ black: "#000000",
798
+ red: "#cd3131",
799
+ green: "#0DBC79",
800
+ yellow: "#E5E510",
801
+ blue: "#2472C8",
802
+ magenta: "#BC3FBC",
803
+ cyan: "#11A8CD",
804
+ white: "#E5E5E5",
805
+ brightBlack: "#666666",
806
+ brightRed: "#F14C4C",
807
+ brightGreen: "#23D18B",
808
+ brightYellow: "#F5F543",
809
+ brightBlue: "#3B8EEA",
810
+ brightMagenta: "#D670D6",
811
+ brightCyan: "#29B8DB",
812
+ brightWhite: "#FFFFFF"
813
+ };
814
+ function tokenizeAnsiWithTheme(theme, fileContents, options) {
815
+ const colorReplacements = resolveColorReplacements(theme, options);
816
+ const lines = splitLines(fileContents);
817
+ const ansiPalette = Object.fromEntries(
818
+ namedColors.map((name) => {
819
+ const key = `terminal.ansi${name[0].toUpperCase()}${name.substring(1)}`;
820
+ const themeColor = theme.colors?.[key];
821
+ return [name, themeColor || defaultAnsiColors[name]];
822
+ })
823
+ );
824
+ const colorPalette = createColorPalette(ansiPalette);
825
+ const parser = createAnsiSequenceParser();
826
+ return lines.map(
827
+ (line) => parser.parse(line[0]).map((token) => {
828
+ let color;
829
+ let bgColor;
830
+ if (token.decorations.has("reverse")) {
831
+ color = token.background ? colorPalette.value(token.background) : theme.bg;
832
+ bgColor = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
833
+ } else {
834
+ color = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
835
+ bgColor = token.background ? colorPalette.value(token.background) : void 0;
836
+ }
837
+ color = applyColorReplacements(color, colorReplacements);
838
+ bgColor = applyColorReplacements(bgColor, colorReplacements);
839
+ if (token.decorations.has("dim"))
840
+ color = dimColor(color);
841
+ let fontStyle = FontStyle.None;
842
+ if (token.decorations.has("bold"))
843
+ fontStyle |= FontStyle.Bold;
844
+ if (token.decorations.has("italic"))
845
+ fontStyle |= FontStyle.Italic;
846
+ if (token.decorations.has("underline"))
847
+ fontStyle |= FontStyle.Underline;
848
+ if (token.decorations.has("strikethrough"))
849
+ fontStyle |= FontStyle.Strikethrough;
850
+ return {
851
+ content: token.value,
852
+ offset: line[1],
853
+ // TODO: more accurate offset? might need to fork ansi-sequence-parser
854
+ color,
855
+ bgColor,
856
+ fontStyle
857
+ };
858
+ })
859
+ );
860
+ }
861
+ function dimColor(color) {
862
+ const hexMatch = color.match(/#([0-9a-f]{3,8})/i);
863
+ if (hexMatch) {
864
+ const hex = hexMatch[1];
865
+ if (hex.length === 8) {
866
+ const alpha = Math.round(Number.parseInt(hex.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
867
+ return `#${hex.slice(0, 6)}${alpha}`;
868
+ } else if (hex.length === 6) {
869
+ return `#${hex}80`;
870
+ } else if (hex.length === 4) {
871
+ const r = hex[0];
872
+ const g = hex[1];
873
+ const b = hex[2];
874
+ const a = hex[3];
875
+ const alpha = Math.round(Number.parseInt(`${a}${a}`, 16) / 2).toString(16).padStart(2, "0");
876
+ return `#${r}${r}${g}${g}${b}${b}${alpha}`;
877
+ } else if (hex.length === 3) {
878
+ const r = hex[0];
879
+ const g = hex[1];
880
+ const b = hex[2];
881
+ return `#${r}${r}${g}${g}${b}${b}80`;
882
+ }
883
+ }
884
+ const cssVarMatch = color.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
885
+ if (cssVarMatch)
886
+ return `var(${cssVarMatch[1]}-dim)`;
887
+ return color;
888
+ }
889
+
890
+ function codeToTokensBase(internal, code, options = {}) {
891
+ const {
892
+ theme: themeName = internal.getLoadedThemes()[0]
893
+ } = options;
894
+ const lang = internal.resolveLangAlias(options.lang || "text");
895
+ if (isPlainLang(lang) || isNoneTheme(themeName))
896
+ return splitLines(code).map((line) => [{ content: line[0], offset: line[1] }]);
897
+ const { theme, colorMap } = internal.setTheme(themeName);
898
+ if (lang === "ansi")
899
+ return tokenizeAnsiWithTheme(theme, code, options);
900
+ const _grammar = internal.getLanguage(options.lang || "text");
901
+ if (options.grammarState) {
902
+ if (options.grammarState.lang !== _grammar.name) {
903
+ throw new ShikiError$1(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
904
+ }
905
+ if (!options.grammarState.themes.includes(theme.name)) {
906
+ throw new ShikiError$1(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
907
+ }
908
+ }
909
+ return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
910
+ }
911
+ function getLastGrammarState(...args) {
912
+ if (args.length === 2) {
913
+ return getLastGrammarStateFromMap(args[1]);
914
+ }
915
+ const [internal, code, options = {}] = args;
916
+ const {
917
+ lang = "text",
918
+ theme: themeName = internal.getLoadedThemes()[0]
919
+ } = options;
920
+ if (isPlainLang(lang) || isNoneTheme(themeName))
921
+ throw new ShikiError$1("Plain language does not have grammar state");
922
+ if (lang === "ansi")
923
+ throw new ShikiError$1("ANSI language does not have grammar state");
924
+ const { theme, colorMap } = internal.setTheme(themeName);
925
+ const _grammar = internal.getLanguage(lang);
926
+ return new GrammarState(
927
+ _tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack,
928
+ _grammar.name,
929
+ theme.name
930
+ );
931
+ }
932
+ function tokenizeWithTheme(code, grammar, theme, colorMap, options) {
933
+ const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
934
+ const grammarState = new GrammarState(
935
+ result.stateStack,
936
+ grammar.name,
937
+ theme.name
938
+ );
939
+ setLastGrammarStateToMap(result.tokens, grammarState);
940
+ return result.tokens;
941
+ }
942
+ function _tokenizeWithTheme(code, grammar, theme, colorMap, options) {
943
+ const colorReplacements = resolveColorReplacements(theme, options);
944
+ const {
945
+ tokenizeMaxLineLength = 0,
946
+ tokenizeTimeLimit = 500
947
+ } = options;
948
+ const lines = splitLines(code);
949
+ let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(
950
+ options.grammarContextCode,
951
+ grammar,
952
+ theme,
953
+ colorMap,
954
+ {
955
+ ...options,
956
+ grammarState: void 0,
957
+ grammarContextCode: void 0
958
+ }
959
+ ).stateStack : INITIAL;
960
+ let actual = [];
961
+ const final = [];
962
+ for (let i = 0, len = lines.length; i < len; i++) {
963
+ const [line, lineOffset] = lines[i];
964
+ if (line === "") {
965
+ actual = [];
966
+ final.push([]);
967
+ continue;
968
+ }
969
+ if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
970
+ actual = [];
971
+ final.push([{
972
+ content: line,
973
+ offset: lineOffset,
974
+ color: "",
975
+ fontStyle: 0
976
+ }]);
977
+ continue;
978
+ }
979
+ let resultWithScopes;
980
+ let tokensWithScopes;
981
+ let tokensWithScopesIndex;
982
+ if (options.includeExplanation) {
983
+ resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
984
+ tokensWithScopes = resultWithScopes.tokens;
985
+ tokensWithScopesIndex = 0;
986
+ }
987
+ const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
988
+ const tokensLength = result.tokens.length / 2;
989
+ for (let j = 0; j < tokensLength; j++) {
990
+ const startIndex = result.tokens[2 * j];
991
+ const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
992
+ if (startIndex === nextStartIndex)
993
+ continue;
994
+ const metadata = result.tokens[2 * j + 1];
995
+ const color = applyColorReplacements(
996
+ colorMap[EncodedTokenMetadata.getForeground(metadata)],
997
+ colorReplacements
998
+ );
999
+ const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
1000
+ const token = {
1001
+ content: line.substring(startIndex, nextStartIndex),
1002
+ offset: lineOffset + startIndex,
1003
+ color,
1004
+ fontStyle
1005
+ };
1006
+ if (options.includeExplanation) {
1007
+ const themeSettingsSelectors = [];
1008
+ if (options.includeExplanation !== "scopeName") {
1009
+ for (const setting of theme.settings) {
1010
+ let selectors;
1011
+ switch (typeof setting.scope) {
1012
+ case "string":
1013
+ selectors = setting.scope.split(/,/).map((scope) => scope.trim());
1014
+ break;
1015
+ case "object":
1016
+ selectors = setting.scope;
1017
+ break;
1018
+ default:
1019
+ continue;
1020
+ }
1021
+ themeSettingsSelectors.push({
1022
+ settings: setting,
1023
+ selectors: selectors.map((selector) => selector.split(/ /))
1024
+ });
1025
+ }
1026
+ }
1027
+ token.explanation = [];
1028
+ let offset = 0;
1029
+ while (startIndex + offset < nextStartIndex) {
1030
+ const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
1031
+ const tokenWithScopesText = line.substring(
1032
+ tokenWithScopes.startIndex,
1033
+ tokenWithScopes.endIndex
1034
+ );
1035
+ offset += tokenWithScopesText.length;
1036
+ token.explanation.push({
1037
+ content: tokenWithScopesText,
1038
+ scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(
1039
+ tokenWithScopes.scopes
1040
+ ) : explainThemeScopesFull(
1041
+ themeSettingsSelectors,
1042
+ tokenWithScopes.scopes
1043
+ )
1044
+ });
1045
+ tokensWithScopesIndex += 1;
1046
+ }
1047
+ }
1048
+ actual.push(token);
1049
+ }
1050
+ final.push(actual);
1051
+ actual = [];
1052
+ stateStack = result.ruleStack;
1053
+ }
1054
+ return {
1055
+ tokens: final,
1056
+ stateStack
1057
+ };
1058
+ }
1059
+ function explainThemeScopesNameOnly(scopes) {
1060
+ return scopes.map((scope) => ({ scopeName: scope }));
1061
+ }
1062
+ function explainThemeScopesFull(themeSelectors, scopes) {
1063
+ const result = [];
1064
+ for (let i = 0, len = scopes.length; i < len; i++) {
1065
+ const scope = scopes[i];
1066
+ result[i] = {
1067
+ scopeName: scope,
1068
+ themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
1069
+ };
1070
+ }
1071
+ return result;
1072
+ }
1073
+ function matchesOne(selector, scope) {
1074
+ return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
1075
+ }
1076
+ function matches(selectors, scope, parentScopes) {
1077
+ if (!matchesOne(selectors[selectors.length - 1], scope))
1078
+ return false;
1079
+ let selectorParentIndex = selectors.length - 2;
1080
+ let parentIndex = parentScopes.length - 1;
1081
+ while (selectorParentIndex >= 0 && parentIndex >= 0) {
1082
+ if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex]))
1083
+ selectorParentIndex -= 1;
1084
+ parentIndex -= 1;
1085
+ }
1086
+ if (selectorParentIndex === -1)
1087
+ return true;
1088
+ return false;
1089
+ }
1090
+ function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
1091
+ const result = [];
1092
+ for (const { selectors, settings } of themeSettingsSelectors) {
1093
+ for (const selectorPieces of selectors) {
1094
+ if (matches(selectorPieces, scope, parentScopes)) {
1095
+ result.push(settings);
1096
+ break;
1097
+ }
1098
+ }
1099
+ }
1100
+ return result;
1101
+ }
1102
+
1103
+ function codeToTokensWithThemes(internal, code, options) {
1104
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] }));
1105
+ const themedTokens = themes.map((t) => {
1106
+ const tokens2 = codeToTokensBase(internal, code, {
1107
+ ...options,
1108
+ theme: t.theme
1109
+ });
1110
+ const state = getLastGrammarStateFromMap(tokens2);
1111
+ const theme = typeof t.theme === "string" ? t.theme : t.theme.name;
1112
+ return {
1113
+ tokens: tokens2,
1114
+ state,
1115
+ theme
1116
+ };
1117
+ });
1118
+ const tokens = syncThemesTokenization(
1119
+ ...themedTokens.map((i) => i.tokens)
1120
+ );
1121
+ const mergedTokens = tokens[0].map(
1122
+ (line, lineIdx) => line.map((_token, tokenIdx) => {
1123
+ const mergedToken = {
1124
+ content: _token.content,
1125
+ variants: {},
1126
+ offset: _token.offset
1127
+ };
1128
+ if ("includeExplanation" in options && options.includeExplanation) {
1129
+ mergedToken.explanation = _token.explanation;
1130
+ }
1131
+ tokens.forEach((t, themeIdx) => {
1132
+ const {
1133
+ content: _,
1134
+ explanation: __,
1135
+ offset: ___,
1136
+ ...styles
1137
+ } = t[lineIdx][tokenIdx];
1138
+ mergedToken.variants[themes[themeIdx].color] = styles;
1139
+ });
1140
+ return mergedToken;
1141
+ })
1142
+ );
1143
+ const mergedGrammarState = themedTokens[0].state ? new GrammarState(
1144
+ Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])),
1145
+ themedTokens[0].state.lang
1146
+ ) : void 0;
1147
+ if (mergedGrammarState)
1148
+ setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
1149
+ return mergedTokens;
1150
+ }
1151
+ function syncThemesTokenization(...themes) {
1152
+ const outThemes = themes.map(() => []);
1153
+ const count = themes.length;
1154
+ for (let i = 0; i < themes[0].length; i++) {
1155
+ const lines = themes.map((t) => t[i]);
1156
+ const outLines = outThemes.map(() => []);
1157
+ outThemes.forEach((t, i2) => t.push(outLines[i2]));
1158
+ const indexes = lines.map(() => 0);
1159
+ const current = lines.map((l) => l[0]);
1160
+ while (current.every((t) => t)) {
1161
+ const minLength = Math.min(...current.map((t) => t.content.length));
1162
+ for (let n = 0; n < count; n++) {
1163
+ const token = current[n];
1164
+ if (token.content.length === minLength) {
1165
+ outLines[n].push(token);
1166
+ indexes[n] += 1;
1167
+ current[n] = lines[n][indexes[n]];
1168
+ } else {
1169
+ outLines[n].push({
1170
+ ...token,
1171
+ content: token.content.slice(0, minLength)
1172
+ });
1173
+ current[n] = {
1174
+ ...token,
1175
+ content: token.content.slice(minLength),
1176
+ offset: token.offset + minLength
1177
+ };
1178
+ }
1179
+ }
1180
+ }
1181
+ }
1182
+ return outThemes;
1183
+ }
1184
+
1185
+ function codeToTokens(internal, code, options) {
1186
+ let bg;
1187
+ let fg;
1188
+ let tokens;
1189
+ let themeName;
1190
+ let rootStyle;
1191
+ let grammarState;
1192
+ if ("themes" in options) {
1193
+ const {
1194
+ defaultColor = "light",
1195
+ cssVariablePrefix = "--shiki-",
1196
+ colorsRendering = "css-vars"
1197
+ } = options;
1198
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] })).sort((a, b) => a.color === defaultColor ? -1 : b.color === defaultColor ? 1 : 0);
1199
+ if (themes.length === 0)
1200
+ throw new ShikiError$1("`themes` option must not be empty");
1201
+ const themeTokens = codeToTokensWithThemes(
1202
+ internal,
1203
+ code,
1204
+ options
1205
+ );
1206
+ grammarState = getLastGrammarStateFromMap(themeTokens);
1207
+ if (defaultColor && DEFAULT_COLOR_LIGHT_DARK !== defaultColor && !themes.find((t) => t.color === defaultColor))
1208
+ throw new ShikiError$1(`\`themes\` option must contain the defaultColor key \`${defaultColor}\``);
1209
+ const themeRegs = themes.map((t) => internal.getTheme(t.theme));
1210
+ const themesOrder = themes.map((t) => t.color);
1211
+ tokens = themeTokens.map((line) => line.map((token) => flatTokenVariants(token, themesOrder, cssVariablePrefix, defaultColor, colorsRendering)));
1212
+ if (grammarState)
1213
+ setLastGrammarStateToMap(tokens, grammarState);
1214
+ const themeColorReplacements = themes.map((t) => resolveColorReplacements(t.theme, options));
1215
+ fg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "fg", colorsRendering);
1216
+ bg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "bg", colorsRendering);
1217
+ themeName = `shiki-themes ${themeRegs.map((t) => t.name).join(" ")}`;
1218
+ rootStyle = defaultColor ? void 0 : [fg, bg].join(";");
1219
+ } else if ("theme" in options) {
1220
+ const colorReplacements = resolveColorReplacements(options.theme, options);
1221
+ tokens = codeToTokensBase(
1222
+ internal,
1223
+ code,
1224
+ options
1225
+ );
1226
+ const _theme = internal.getTheme(options.theme);
1227
+ bg = applyColorReplacements(_theme.bg, colorReplacements);
1228
+ fg = applyColorReplacements(_theme.fg, colorReplacements);
1229
+ themeName = _theme.name;
1230
+ grammarState = getLastGrammarStateFromMap(tokens);
1231
+ } else {
1232
+ throw new ShikiError$1("Invalid options, either `theme` or `themes` must be provided");
1233
+ }
1234
+ return {
1235
+ tokens,
1236
+ fg,
1237
+ bg,
1238
+ themeName,
1239
+ rootStyle,
1240
+ grammarState
1241
+ };
1242
+ }
1243
+ function mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, property, colorsRendering) {
1244
+ return themes.map((t, idx) => {
1245
+ const value = applyColorReplacements(themeRegs[idx][property], themeColorReplacements[idx]) || "inherit";
1246
+ const cssVar = `${cssVariablePrefix + t.color}${property === "bg" ? "-bg" : ""}:${value}`;
1247
+ if (idx === 0 && defaultColor) {
1248
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && themes.length > 1) {
1249
+ const lightIndex = themes.findIndex((t2) => t2.color === "light");
1250
+ const darkIndex = themes.findIndex((t2) => t2.color === "dark");
1251
+ if (lightIndex === -1 || darkIndex === -1)
1252
+ throw new ShikiError$1('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
1253
+ const lightValue = applyColorReplacements(themeRegs[lightIndex][property], themeColorReplacements[lightIndex]) || "inherit";
1254
+ const darkValue = applyColorReplacements(themeRegs[darkIndex][property], themeColorReplacements[darkIndex]) || "inherit";
1255
+ return `light-dark(${lightValue}, ${darkValue});${cssVar}`;
1256
+ }
1257
+ return value;
1258
+ }
1259
+ if (colorsRendering === "css-vars") {
1260
+ return cssVar;
1261
+ }
1262
+ return null;
1263
+ }).filter((i) => !!i).join(";");
1264
+ }
1265
+
1266
+ function codeToHast(internal, code, options, transformerContext = {
1267
+ meta: {},
1268
+ options,
1269
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
1270
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
1271
+ }) {
1272
+ let input = code;
1273
+ for (const transformer of getTransformers(options))
1274
+ input = transformer.preprocess?.call(transformerContext, input, options) || input;
1275
+ let {
1276
+ tokens,
1277
+ fg,
1278
+ bg,
1279
+ themeName,
1280
+ rootStyle,
1281
+ grammarState
1282
+ } = codeToTokens(internal, input, options);
1283
+ const {
1284
+ mergeWhitespaces = true,
1285
+ mergeSameStyleTokens = false
1286
+ } = options;
1287
+ if (mergeWhitespaces === true)
1288
+ tokens = mergeWhitespaceTokens(tokens);
1289
+ else if (mergeWhitespaces === "never")
1290
+ tokens = splitWhitespaceTokens(tokens);
1291
+ if (mergeSameStyleTokens) {
1292
+ tokens = mergeAdjacentStyledTokens(tokens);
1293
+ }
1294
+ const contextSource = {
1295
+ ...transformerContext,
1296
+ get source() {
1297
+ return input;
1298
+ }
1299
+ };
1300
+ for (const transformer of getTransformers(options))
1301
+ tokens = transformer.tokens?.call(contextSource, tokens) || tokens;
1302
+ return tokensToHast(
1303
+ tokens,
1304
+ {
1305
+ ...options,
1306
+ fg,
1307
+ bg,
1308
+ themeName,
1309
+ rootStyle: options.rootStyle === false ? false : options.rootStyle ?? rootStyle
1310
+ },
1311
+ contextSource,
1312
+ grammarState
1313
+ );
1314
+ }
1315
+ function tokensToHast(tokens, options, transformerContext, grammarState = getLastGrammarStateFromMap(tokens)) {
1316
+ const transformers = getTransformers(options);
1317
+ const lines = [];
1318
+ const root = {
1319
+ type: "root",
1320
+ children: []
1321
+ };
1322
+ const {
1323
+ structure = "classic",
1324
+ tabindex = "0"
1325
+ } = options;
1326
+ const properties = {
1327
+ class: `shiki ${options.themeName || ""}`
1328
+ };
1329
+ if (options.rootStyle !== false) {
1330
+ if (options.rootStyle != null)
1331
+ properties.style = options.rootStyle;
1332
+ else
1333
+ properties.style = `background-color:${options.bg};color:${options.fg}`;
1334
+ }
1335
+ if (tabindex !== false && tabindex != null)
1336
+ properties.tabindex = tabindex.toString();
1337
+ for (const [key, value] of Object.entries(options.meta || {})) {
1338
+ if (!key.startsWith("_"))
1339
+ properties[key] = value;
1340
+ }
1341
+ let preNode = {
1342
+ type: "element",
1343
+ tagName: "pre",
1344
+ properties,
1345
+ children: [],
1346
+ data: options.data
1347
+ };
1348
+ let codeNode = {
1349
+ type: "element",
1350
+ tagName: "code",
1351
+ properties: {},
1352
+ children: lines
1353
+ };
1354
+ const lineNodes = [];
1355
+ const context = {
1356
+ ...transformerContext,
1357
+ structure,
1358
+ addClassToHast,
1359
+ get source() {
1360
+ return transformerContext.source;
1361
+ },
1362
+ get tokens() {
1363
+ return tokens;
1364
+ },
1365
+ get options() {
1366
+ return options;
1367
+ },
1368
+ get root() {
1369
+ return root;
1370
+ },
1371
+ get pre() {
1372
+ return preNode;
1373
+ },
1374
+ get code() {
1375
+ return codeNode;
1376
+ },
1377
+ get lines() {
1378
+ return lineNodes;
1379
+ }
1380
+ };
1381
+ tokens.forEach((line, idx) => {
1382
+ if (idx) {
1383
+ if (structure === "inline")
1384
+ root.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
1385
+ else if (structure === "classic")
1386
+ lines.push({ type: "text", value: "\n" });
1387
+ }
1388
+ let lineNode = {
1389
+ type: "element",
1390
+ tagName: "span",
1391
+ properties: { class: "line" },
1392
+ children: []
1393
+ };
1394
+ let col = 0;
1395
+ for (const token of line) {
1396
+ let tokenNode = {
1397
+ type: "element",
1398
+ tagName: "span",
1399
+ properties: {
1400
+ ...token.htmlAttrs
1401
+ },
1402
+ children: [{ type: "text", value: token.content }]
1403
+ };
1404
+ const style = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
1405
+ if (style)
1406
+ tokenNode.properties.style = style;
1407
+ for (const transformer of transformers)
1408
+ tokenNode = transformer?.span?.call(context, tokenNode, idx + 1, col, lineNode, token) || tokenNode;
1409
+ if (structure === "inline")
1410
+ root.children.push(tokenNode);
1411
+ else if (structure === "classic")
1412
+ lineNode.children.push(tokenNode);
1413
+ col += token.content.length;
1414
+ }
1415
+ if (structure === "classic") {
1416
+ for (const transformer of transformers)
1417
+ lineNode = transformer?.line?.call(context, lineNode, idx + 1) || lineNode;
1418
+ lineNodes.push(lineNode);
1419
+ lines.push(lineNode);
1420
+ } else if (structure === "inline") {
1421
+ lineNodes.push(lineNode);
1422
+ }
1423
+ });
1424
+ if (structure === "classic") {
1425
+ for (const transformer of transformers)
1426
+ codeNode = transformer?.code?.call(context, codeNode) || codeNode;
1427
+ preNode.children.push(codeNode);
1428
+ for (const transformer of transformers)
1429
+ preNode = transformer?.pre?.call(context, preNode) || preNode;
1430
+ root.children.push(preNode);
1431
+ } else if (structure === "inline") {
1432
+ const syntheticLines = [];
1433
+ let currentLine = {
1434
+ type: "element",
1435
+ tagName: "span",
1436
+ properties: { class: "line" },
1437
+ children: []
1438
+ };
1439
+ for (const child of root.children) {
1440
+ if (child.type === "element" && child.tagName === "br") {
1441
+ syntheticLines.push(currentLine);
1442
+ currentLine = {
1443
+ type: "element",
1444
+ tagName: "span",
1445
+ properties: { class: "line" },
1446
+ children: []
1447
+ };
1448
+ } else if (child.type === "element" || child.type === "text") {
1449
+ currentLine.children.push(child);
1450
+ }
1451
+ }
1452
+ syntheticLines.push(currentLine);
1453
+ const syntheticCode = {
1454
+ type: "element",
1455
+ tagName: "code",
1456
+ properties: {},
1457
+ children: syntheticLines
1458
+ };
1459
+ let transformedCode = syntheticCode;
1460
+ for (const transformer of transformers)
1461
+ transformedCode = transformer?.code?.call(context, transformedCode) || transformedCode;
1462
+ root.children = [];
1463
+ for (let i = 0; i < transformedCode.children.length; i++) {
1464
+ if (i > 0)
1465
+ root.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
1466
+ const line = transformedCode.children[i];
1467
+ if (line.type === "element")
1468
+ root.children.push(...line.children);
1469
+ }
1470
+ }
1471
+ let result = root;
1472
+ for (const transformer of transformers)
1473
+ result = transformer?.root?.call(context, result) || result;
1474
+ if (grammarState)
1475
+ setLastGrammarStateToMap(result, grammarState);
1476
+ return result;
1477
+ }
1478
+ function mergeWhitespaceTokens(tokens) {
1479
+ return tokens.map((line) => {
1480
+ const newLine = [];
1481
+ let carryOnContent = "";
1482
+ let firstOffset;
1483
+ line.forEach((token, idx) => {
1484
+ const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
1485
+ const couldMerge = !isDecorated;
1486
+ if (couldMerge && token.content.match(/^\s+$/) && line[idx + 1]) {
1487
+ if (firstOffset === void 0)
1488
+ firstOffset = token.offset;
1489
+ carryOnContent += token.content;
1490
+ } else {
1491
+ if (carryOnContent) {
1492
+ if (couldMerge) {
1493
+ newLine.push({
1494
+ ...token,
1495
+ offset: firstOffset,
1496
+ content: carryOnContent + token.content
1497
+ });
1498
+ } else {
1499
+ newLine.push(
1500
+ {
1501
+ content: carryOnContent,
1502
+ offset: firstOffset
1503
+ },
1504
+ token
1505
+ );
1506
+ }
1507
+ firstOffset = void 0;
1508
+ carryOnContent = "";
1509
+ } else {
1510
+ newLine.push(token);
1511
+ }
1512
+ }
1513
+ });
1514
+ return newLine;
1515
+ });
1516
+ }
1517
+ function splitWhitespaceTokens(tokens) {
1518
+ return tokens.map((line) => {
1519
+ return line.flatMap((token) => {
1520
+ if (token.content.match(/^\s+$/))
1521
+ return token;
1522
+ const match = token.content.match(/^(\s*)(.*?)(\s*)$/);
1523
+ if (!match)
1524
+ return token;
1525
+ const [, leading, content, trailing] = match;
1526
+ if (!leading && !trailing)
1527
+ return token;
1528
+ const expanded = [{
1529
+ ...token,
1530
+ offset: token.offset + leading.length,
1531
+ content
1532
+ }];
1533
+ if (leading) {
1534
+ expanded.unshift({
1535
+ content: leading,
1536
+ offset: token.offset
1537
+ });
1538
+ }
1539
+ if (trailing) {
1540
+ expanded.push({
1541
+ content: trailing,
1542
+ offset: token.offset + leading.length + content.length
1543
+ });
1544
+ }
1545
+ return expanded;
1546
+ });
1547
+ });
1548
+ }
1549
+ function mergeAdjacentStyledTokens(tokens) {
1550
+ return tokens.map((line) => {
1551
+ const newLine = [];
1552
+ for (const token of line) {
1553
+ if (newLine.length === 0) {
1554
+ newLine.push({ ...token });
1555
+ continue;
1556
+ }
1557
+ const prevToken = newLine[newLine.length - 1];
1558
+ const prevStyle = stringifyTokenStyle(prevToken.htmlStyle || getTokenStyleObject(prevToken));
1559
+ const currentStyle = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
1560
+ const isPrevDecorated = prevToken.fontStyle && (prevToken.fontStyle & FontStyle.Underline || prevToken.fontStyle & FontStyle.Strikethrough);
1561
+ const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
1562
+ if (!isPrevDecorated && !isDecorated && prevStyle === currentStyle) {
1563
+ prevToken.content += token.content;
1564
+ } else {
1565
+ newLine.push({ ...token });
1566
+ }
1567
+ }
1568
+ return newLine;
1569
+ });
1570
+ }
1571
+
1572
+ const hastToHtml = toHtml;
1573
+ function codeToHtml(internal, code, options) {
1574
+ const context = {
1575
+ meta: {},
1576
+ options,
1577
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
1578
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
1579
+ };
1580
+ let result = hastToHtml(codeToHast(internal, code, options, context));
1581
+ for (const transformer of getTransformers(options))
1582
+ result = transformer.postprocess?.call(context, result, options) || result;
1583
+ return result;
1584
+ }
1585
+
1586
+ const VSCODE_FALLBACK_EDITOR_FG = { light: "#333333", dark: "#bbbbbb" };
1587
+ const VSCODE_FALLBACK_EDITOR_BG = { light: "#fffffe", dark: "#1e1e1e" };
1588
+ const RESOLVED_KEY = "__shiki_resolved";
1589
+ function normalizeTheme(rawTheme) {
1590
+ if (rawTheme?.[RESOLVED_KEY])
1591
+ return rawTheme;
1592
+ const theme = {
1593
+ ...rawTheme
1594
+ };
1595
+ if (theme.tokenColors && !theme.settings) {
1596
+ theme.settings = theme.tokenColors;
1597
+ delete theme.tokenColors;
1598
+ }
1599
+ theme.type ||= "dark";
1600
+ theme.colorReplacements = { ...theme.colorReplacements };
1601
+ theme.settings ||= [];
1602
+ let { bg, fg } = theme;
1603
+ if (!bg || !fg) {
1604
+ const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
1605
+ if (globalSetting?.settings?.foreground)
1606
+ fg = globalSetting.settings.foreground;
1607
+ if (globalSetting?.settings?.background)
1608
+ bg = globalSetting.settings.background;
1609
+ if (!fg && theme?.colors?.["editor.foreground"])
1610
+ fg = theme.colors["editor.foreground"];
1611
+ if (!bg && theme?.colors?.["editor.background"])
1612
+ bg = theme.colors["editor.background"];
1613
+ if (!fg)
1614
+ fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
1615
+ if (!bg)
1616
+ bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
1617
+ theme.fg = fg;
1618
+ theme.bg = bg;
1619
+ }
1620
+ if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) {
1621
+ theme.settings.unshift({
1622
+ settings: {
1623
+ foreground: theme.fg,
1624
+ background: theme.bg
1625
+ }
1626
+ });
1627
+ }
1628
+ let replacementCount = 0;
1629
+ const replacementMap = /* @__PURE__ */ new Map();
1630
+ function getReplacementColor(value) {
1631
+ if (replacementMap.has(value))
1632
+ return replacementMap.get(value);
1633
+ replacementCount += 1;
1634
+ const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
1635
+ if (theme.colorReplacements?.[`#${hex}`])
1636
+ return getReplacementColor(value);
1637
+ replacementMap.set(value, hex);
1638
+ return hex;
1639
+ }
1640
+ theme.settings = theme.settings.map((setting) => {
1641
+ const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
1642
+ const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
1643
+ if (!replaceFg && !replaceBg)
1644
+ return setting;
1645
+ const clone = {
1646
+ ...setting,
1647
+ settings: {
1648
+ ...setting.settings
1649
+ }
1650
+ };
1651
+ if (replaceFg) {
1652
+ const replacement = getReplacementColor(setting.settings.foreground);
1653
+ theme.colorReplacements[replacement] = setting.settings.foreground;
1654
+ clone.settings.foreground = replacement;
1655
+ }
1656
+ if (replaceBg) {
1657
+ const replacement = getReplacementColor(setting.settings.background);
1658
+ theme.colorReplacements[replacement] = setting.settings.background;
1659
+ clone.settings.background = replacement;
1660
+ }
1661
+ return clone;
1662
+ });
1663
+ for (const key of Object.keys(theme.colors || {})) {
1664
+ if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
1665
+ if (!theme.colors[key]?.startsWith("#")) {
1666
+ const replacement = getReplacementColor(theme.colors[key]);
1667
+ theme.colorReplacements[replacement] = theme.colors[key];
1668
+ theme.colors[key] = replacement;
1669
+ }
1670
+ }
1671
+ }
1672
+ Object.defineProperty(theme, RESOLVED_KEY, {
1673
+ enumerable: false,
1674
+ writable: false,
1675
+ value: true
1676
+ });
1677
+ return theme;
1678
+ }
1679
+
1680
+ async function resolveLangs(langs) {
1681
+ return Array.from(new Set((await Promise.all(
1682
+ langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r]))
1683
+ )).flat()));
1684
+ }
1685
+ async function resolveThemes(themes) {
1686
+ const resolved = await Promise.all(
1687
+ themes.map(
1688
+ async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))
1689
+ )
1690
+ );
1691
+ return resolved.filter((i) => !!i);
1692
+ }
1693
+
1694
+ let _emitDeprecation = 3;
1695
+ let _emitError = false;
1696
+ function enableDeprecationWarnings(emitDeprecation = true, emitError = false) {
1697
+ _emitDeprecation = emitDeprecation;
1698
+ _emitError = emitError;
1699
+ }
1700
+ function warnDeprecated(message, version = 3) {
1701
+ if (!_emitDeprecation)
1702
+ return;
1703
+ if (typeof _emitDeprecation === "number" && version > _emitDeprecation)
1704
+ return;
1705
+ if (_emitError) {
1706
+ throw new Error(`[SHIKI DEPRECATE]: ${message}`);
1707
+ } else {
1708
+ console.trace(`[SHIKI DEPRECATE]: ${message}`);
1709
+ }
1710
+ }
1711
+
1712
+ class ShikiError extends Error {
1713
+ constructor(message) {
1714
+ super(message);
1715
+ this.name = "ShikiError";
1716
+ }
1717
+ }
1718
+
1719
+ function resolveLangAlias(name, alias) {
1720
+ if (!alias)
1721
+ return name;
1722
+ if (alias[name]) {
1723
+ const resolved = /* @__PURE__ */ new Set([name]);
1724
+ while (alias[name]) {
1725
+ name = alias[name];
1726
+ if (resolved.has(name))
1727
+ throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
1728
+ resolved.add(name);
1729
+ }
1730
+ }
1731
+ return name;
1732
+ }
1733
+
1734
+ class Registry extends Registry$1 {
1735
+ constructor(_resolver, _themes, _langs, _alias = {}) {
1736
+ super(_resolver);
1737
+ this._resolver = _resolver;
1738
+ this._themes = _themes;
1739
+ this._langs = _langs;
1740
+ this._alias = _alias;
1741
+ this._themes.map((t) => this.loadTheme(t));
1742
+ this.loadLanguages(this._langs);
1743
+ }
1744
+ _resolvedThemes = /* @__PURE__ */ new Map();
1745
+ _resolvedGrammars = /* @__PURE__ */ new Map();
1746
+ _langMap = /* @__PURE__ */ new Map();
1747
+ _langGraph = /* @__PURE__ */ new Map();
1748
+ _textmateThemeCache = /* @__PURE__ */ new WeakMap();
1749
+ _loadedThemesCache = null;
1750
+ _loadedLanguagesCache = null;
1751
+ getTheme(theme) {
1752
+ if (typeof theme === "string")
1753
+ return this._resolvedThemes.get(theme);
1754
+ else
1755
+ return this.loadTheme(theme);
1756
+ }
1757
+ loadTheme(theme) {
1758
+ const _theme = normalizeTheme(theme);
1759
+ if (_theme.name) {
1760
+ this._resolvedThemes.set(_theme.name, _theme);
1761
+ this._loadedThemesCache = null;
1762
+ }
1763
+ return _theme;
1764
+ }
1765
+ getLoadedThemes() {
1766
+ if (!this._loadedThemesCache)
1767
+ this._loadedThemesCache = [...this._resolvedThemes.keys()];
1768
+ return this._loadedThemesCache;
1769
+ }
1770
+ // Override and re-implement this method to cache the textmate themes as `TextMateTheme.createFromRawTheme`
1771
+ // is expensive. Themes can switch often especially for dual-theme support.
1772
+ //
1773
+ // The parent class also accepts `colorMap` as the second parameter, but since we don't use that,
1774
+ // we omit here so it's easier to cache the themes.
1775
+ setTheme(theme) {
1776
+ let textmateTheme = this._textmateThemeCache.get(theme);
1777
+ if (!textmateTheme) {
1778
+ textmateTheme = Theme.createFromRawTheme(theme);
1779
+ this._textmateThemeCache.set(theme, textmateTheme);
1780
+ }
1781
+ this._syncRegistry.setTheme(textmateTheme);
1782
+ }
1783
+ getGrammar(name) {
1784
+ name = resolveLangAlias(name, this._alias);
1785
+ return this._resolvedGrammars.get(name);
1786
+ }
1787
+ loadLanguage(lang) {
1788
+ if (this.getGrammar(lang.name))
1789
+ return;
1790
+ const embeddedLazilyBy = new Set(
1791
+ [...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name))
1792
+ );
1793
+ this._resolver.addLanguage(lang);
1794
+ const grammarConfig = {
1795
+ balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
1796
+ unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
1797
+ };
1798
+ this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
1799
+ const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
1800
+ g.name = lang.name;
1801
+ this._resolvedGrammars.set(lang.name, g);
1802
+ if (lang.aliases) {
1803
+ lang.aliases.forEach((alias) => {
1804
+ this._alias[alias] = lang.name;
1805
+ });
1806
+ }
1807
+ this._loadedLanguagesCache = null;
1808
+ if (embeddedLazilyBy.size) {
1809
+ for (const e of embeddedLazilyBy) {
1810
+ this._resolvedGrammars.delete(e.name);
1811
+ this._loadedLanguagesCache = null;
1812
+ this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
1813
+ this._syncRegistry?._grammars?.delete(e.scopeName);
1814
+ this.loadLanguage(this._langMap.get(e.name));
1815
+ }
1816
+ }
1817
+ }
1818
+ dispose() {
1819
+ super.dispose();
1820
+ this._resolvedThemes.clear();
1821
+ this._resolvedGrammars.clear();
1822
+ this._langMap.clear();
1823
+ this._langGraph.clear();
1824
+ this._loadedThemesCache = null;
1825
+ }
1826
+ loadLanguages(langs) {
1827
+ for (const lang of langs)
1828
+ this.resolveEmbeddedLanguages(lang);
1829
+ const langsGraphArray = Array.from(this._langGraph.entries());
1830
+ const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
1831
+ if (missingLangs.length) {
1832
+ const dependents = langsGraphArray.filter(([_, lang]) => {
1833
+ if (!lang)
1834
+ return false;
1835
+ const embedded = lang.embeddedLanguages || lang.embeddedLangs;
1836
+ return embedded?.some((l) => missingLangs.map(([name]) => name).includes(l));
1837
+ }).filter((lang) => !missingLangs.includes(lang));
1838
+ throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
1839
+ }
1840
+ for (const [_, lang] of langsGraphArray)
1841
+ this._resolver.addLanguage(lang);
1842
+ for (const [_, lang] of langsGraphArray)
1843
+ this.loadLanguage(lang);
1844
+ }
1845
+ getLoadedLanguages() {
1846
+ if (!this._loadedLanguagesCache) {
1847
+ this._loadedLanguagesCache = [
1848
+ .../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])
1849
+ ];
1850
+ }
1851
+ return this._loadedLanguagesCache;
1852
+ }
1853
+ resolveEmbeddedLanguages(lang) {
1854
+ this._langMap.set(lang.name, lang);
1855
+ this._langGraph.set(lang.name, lang);
1856
+ const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
1857
+ if (embedded) {
1858
+ for (const embeddedLang of embedded)
1859
+ this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
1860
+ }
1861
+ }
1862
+ }
1863
+
1864
+ class Resolver {
1865
+ _langs = /* @__PURE__ */ new Map();
1866
+ _scopeToLang = /* @__PURE__ */ new Map();
1867
+ _injections = /* @__PURE__ */ new Map();
1868
+ _onigLib;
1869
+ constructor(engine, langs) {
1870
+ this._onigLib = {
1871
+ createOnigScanner: (patterns) => engine.createScanner(patterns),
1872
+ createOnigString: (s) => engine.createString(s)
1873
+ };
1874
+ langs.forEach((i) => this.addLanguage(i));
1875
+ }
1876
+ get onigLib() {
1877
+ return this._onigLib;
1878
+ }
1879
+ getLangRegistration(langIdOrAlias) {
1880
+ return this._langs.get(langIdOrAlias);
1881
+ }
1882
+ loadGrammar(scopeName) {
1883
+ return this._scopeToLang.get(scopeName);
1884
+ }
1885
+ addLanguage(l) {
1886
+ this._langs.set(l.name, l);
1887
+ if (l.aliases) {
1888
+ l.aliases.forEach((a) => {
1889
+ this._langs.set(a, l);
1890
+ });
1891
+ }
1892
+ this._scopeToLang.set(l.scopeName, l);
1893
+ if (l.injectTo) {
1894
+ l.injectTo.forEach((i) => {
1895
+ if (!this._injections.get(i))
1896
+ this._injections.set(i, []);
1897
+ this._injections.get(i).push(l.scopeName);
1898
+ });
1899
+ }
1900
+ }
1901
+ getInjections(scopeName) {
1902
+ const scopeParts = scopeName.split(".");
1903
+ let injections = [];
1904
+ for (let i = 1; i <= scopeParts.length; i++) {
1905
+ const subScopeName = scopeParts.slice(0, i).join(".");
1906
+ injections = [...injections, ...this._injections.get(subScopeName) || []];
1907
+ }
1908
+ return injections;
1909
+ }
1910
+ }
1911
+
1912
+ let instancesCount = 0;
1913
+ function createShikiInternalSync(options) {
1914
+ instancesCount += 1;
1915
+ if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0)
1916
+ console.warn(`[Shiki] ${instancesCount} 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.`);
1917
+ let isDisposed = false;
1918
+ if (!options.engine)
1919
+ throw new ShikiError("`engine` option is required for synchronous mode");
1920
+ const langs = (options.langs || []).flat(1);
1921
+ const themes = (options.themes || []).flat(1).map(normalizeTheme);
1922
+ const resolver = new Resolver(options.engine, langs);
1923
+ const _registry = new Registry(resolver, themes, langs, options.langAlias);
1924
+ let _lastTheme;
1925
+ function resolveLangAlias$1(name) {
1926
+ return resolveLangAlias(name, options.langAlias);
1927
+ }
1928
+ function getLanguage(name) {
1929
+ ensureNotDisposed();
1930
+ const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
1931
+ if (!_lang)
1932
+ throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
1933
+ return _lang;
1934
+ }
1935
+ function getTheme(name) {
1936
+ if (name === "none")
1937
+ return { bg: "", fg: "", name: "none", settings: [], type: "dark" };
1938
+ ensureNotDisposed();
1939
+ const _theme = _registry.getTheme(name);
1940
+ if (!_theme)
1941
+ throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
1942
+ return _theme;
1943
+ }
1944
+ function setTheme(name) {
1945
+ ensureNotDisposed();
1946
+ const theme = getTheme(name);
1947
+ if (_lastTheme !== name) {
1948
+ _registry.setTheme(theme);
1949
+ _lastTheme = name;
1950
+ }
1951
+ const colorMap = _registry.getColorMap();
1952
+ return {
1953
+ theme,
1954
+ colorMap
1955
+ };
1956
+ }
1957
+ function getLoadedThemes() {
1958
+ ensureNotDisposed();
1959
+ return _registry.getLoadedThemes();
1960
+ }
1961
+ function getLoadedLanguages() {
1962
+ ensureNotDisposed();
1963
+ return _registry.getLoadedLanguages();
1964
+ }
1965
+ function loadLanguageSync(...langs2) {
1966
+ ensureNotDisposed();
1967
+ _registry.loadLanguages(langs2.flat(1));
1968
+ }
1969
+ async function loadLanguage(...langs2) {
1970
+ return loadLanguageSync(await resolveLangs(langs2));
1971
+ }
1972
+ function loadThemeSync(...themes2) {
1973
+ ensureNotDisposed();
1974
+ for (const theme of themes2.flat(1)) {
1975
+ _registry.loadTheme(theme);
1976
+ }
1977
+ }
1978
+ async function loadTheme(...themes2) {
1979
+ ensureNotDisposed();
1980
+ return loadThemeSync(await resolveThemes(themes2));
1981
+ }
1982
+ function ensureNotDisposed() {
1983
+ if (isDisposed)
1984
+ throw new ShikiError("Shiki instance has been disposed");
1985
+ }
1986
+ function dispose() {
1987
+ if (isDisposed)
1988
+ return;
1989
+ isDisposed = true;
1990
+ _registry.dispose();
1991
+ instancesCount -= 1;
1992
+ }
1993
+ return {
1994
+ setTheme,
1995
+ getTheme,
1996
+ getLanguage,
1997
+ getLoadedThemes,
1998
+ getLoadedLanguages,
1999
+ resolveLangAlias: resolveLangAlias$1,
2000
+ loadLanguage,
2001
+ loadLanguageSync,
2002
+ loadTheme,
2003
+ loadThemeSync,
2004
+ dispose,
2005
+ [Symbol.dispose]: dispose
2006
+ };
2007
+ }
2008
+
2009
+ async function createShikiInternal(options) {
2010
+ if (!options.engine) {
2011
+ warnDeprecated("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
2012
+ }
2013
+ const [
2014
+ themes,
2015
+ langs,
2016
+ engine
2017
+ ] = await Promise.all([
2018
+ resolveThemes(options.themes || []),
2019
+ resolveLangs(options.langs || []),
2020
+ options.engine
2021
+ ]);
2022
+ return createShikiInternalSync({
2023
+ ...options,
2024
+ themes,
2025
+ langs,
2026
+ engine
2027
+ });
2028
+ }
2029
+
2030
+ async function createHighlighterCore(options) {
2031
+ const internal = await createShikiInternal(options);
2032
+ return {
2033
+ getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
2034
+ codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
2035
+ codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
2036
+ codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
2037
+ codeToHast: (code, options2) => codeToHast(internal, code, options2),
2038
+ codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
2039
+ getBundledLanguages: () => ({}),
2040
+ getBundledThemes: () => ({}),
2041
+ ...internal,
2042
+ getInternalContext: () => internal
2043
+ };
2044
+ }
2045
+ function createHighlighterCoreSync(options) {
2046
+ const internal = createShikiInternalSync(options);
2047
+ return {
2048
+ getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
2049
+ codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
2050
+ codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
2051
+ codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
2052
+ codeToHast: (code, options2) => codeToHast(internal, code, options2),
2053
+ codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
2054
+ getBundledLanguages: () => ({}),
2055
+ getBundledThemes: () => ({}),
2056
+ ...internal,
2057
+ getInternalContext: () => internal
2058
+ };
2059
+ }
2060
+ function makeSingletonHighlighterCore(createHighlighter) {
2061
+ let _shiki;
2062
+ async function getSingletonHighlighterCore2(options) {
2063
+ if (!_shiki) {
2064
+ _shiki = createHighlighter({
2065
+ ...options,
2066
+ themes: options.themes || [],
2067
+ langs: options.langs || []
2068
+ });
2069
+ return _shiki;
2070
+ } else {
2071
+ const s = await _shiki;
2072
+ await Promise.all([
2073
+ s.loadTheme(...options.themes || []),
2074
+ s.loadLanguage(...options.langs || [])
2075
+ ]);
2076
+ return s;
2077
+ }
2078
+ }
2079
+ return getSingletonHighlighterCore2;
2080
+ }
2081
+ const getSingletonHighlighterCore = /* @__PURE__ */ makeSingletonHighlighterCore(createHighlighterCore);
2082
+
2083
+ function createBundledHighlighter(options) {
2084
+ const bundledLanguages = options.langs;
2085
+ const bundledThemes = options.themes;
2086
+ const engine = options.engine;
2087
+ async function createHighlighter(options2) {
2088
+ function resolveLang(lang) {
2089
+ if (typeof lang === "string") {
2090
+ lang = options2.langAlias?.[lang] || lang;
2091
+ if (isSpecialLang(lang))
2092
+ return [];
2093
+ const bundle = bundledLanguages[lang];
2094
+ if (!bundle)
2095
+ throw new ShikiError$1(`Language \`${lang}\` is not included in this bundle. You may want to load it from external source.`);
2096
+ return bundle;
2097
+ }
2098
+ return lang;
2099
+ }
2100
+ function resolveTheme(theme) {
2101
+ if (isSpecialTheme(theme))
2102
+ return "none";
2103
+ if (typeof theme === "string") {
2104
+ const bundle = bundledThemes[theme];
2105
+ if (!bundle)
2106
+ throw new ShikiError$1(`Theme \`${theme}\` is not included in this bundle. You may want to load it from external source.`);
2107
+ return bundle;
2108
+ }
2109
+ return theme;
2110
+ }
2111
+ const _themes = (options2.themes ?? []).map((i) => resolveTheme(i));
2112
+ const langs = (options2.langs ?? []).map((i) => resolveLang(i));
2113
+ const core = await createHighlighterCore({
2114
+ engine: options2.engine ?? engine(),
2115
+ ...options2,
2116
+ themes: _themes,
2117
+ langs
2118
+ });
2119
+ return {
2120
+ ...core,
2121
+ loadLanguage(...langs2) {
2122
+ return core.loadLanguage(...langs2.map(resolveLang));
2123
+ },
2124
+ loadTheme(...themes) {
2125
+ return core.loadTheme(...themes.map(resolveTheme));
2126
+ },
2127
+ getBundledLanguages() {
2128
+ return bundledLanguages;
2129
+ },
2130
+ getBundledThemes() {
2131
+ return bundledThemes;
2132
+ }
2133
+ };
2134
+ }
2135
+ return createHighlighter;
2136
+ }
2137
+ function makeSingletonHighlighter(createHighlighter) {
2138
+ let _shiki;
2139
+ async function getSingletonHighlighter(options = {}) {
2140
+ if (!_shiki) {
2141
+ _shiki = createHighlighter({
2142
+ ...options,
2143
+ themes: [],
2144
+ langs: []
2145
+ });
2146
+ const s = await _shiki;
2147
+ await Promise.all([
2148
+ s.loadTheme(...options.themes || []),
2149
+ s.loadLanguage(...options.langs || [])
2150
+ ]);
2151
+ return s;
2152
+ } else {
2153
+ const s = await _shiki;
2154
+ await Promise.all([
2155
+ s.loadTheme(...options.themes || []),
2156
+ s.loadLanguage(...options.langs || [])
2157
+ ]);
2158
+ return s;
2159
+ }
2160
+ }
2161
+ return getSingletonHighlighter;
2162
+ }
2163
+ function createSingletonShorthands(createHighlighter, config) {
2164
+ const getSingletonHighlighter = makeSingletonHighlighter(createHighlighter);
2165
+ async function get(code, options) {
2166
+ const shiki = await getSingletonHighlighter({
2167
+ langs: [options.lang],
2168
+ themes: "theme" in options ? [options.theme] : Object.values(options.themes)
2169
+ });
2170
+ const langs = await config?.guessEmbeddedLanguages?.(code, options.lang, shiki);
2171
+ if (langs) {
2172
+ await shiki.loadLanguage(...langs);
2173
+ }
2174
+ return shiki;
2175
+ }
2176
+ return {
2177
+ getSingletonHighlighter(options) {
2178
+ return getSingletonHighlighter(options);
2179
+ },
2180
+ async codeToHtml(code, options) {
2181
+ const shiki = await get(code, options);
2182
+ return shiki.codeToHtml(code, options);
2183
+ },
2184
+ async codeToHast(code, options) {
2185
+ const shiki = await get(code, options);
2186
+ return shiki.codeToHast(code, options);
2187
+ },
2188
+ async codeToTokens(code, options) {
2189
+ const shiki = await get(code, options);
2190
+ return shiki.codeToTokens(code, options);
2191
+ },
2192
+ async codeToTokensBase(code, options) {
2193
+ const shiki = await get(code, options);
2194
+ return shiki.codeToTokensBase(code, options);
2195
+ },
2196
+ async codeToTokensWithThemes(code, options) {
2197
+ const shiki = await get(code, options);
2198
+ return shiki.codeToTokensWithThemes(code, options);
2199
+ },
2200
+ async getLastGrammarState(code, options) {
2201
+ const shiki = await getSingletonHighlighter({
2202
+ langs: [options.lang],
2203
+ themes: [options.theme]
2204
+ });
2205
+ return shiki.getLastGrammarState(code, options);
2206
+ }
2207
+ };
2208
+ }
2209
+ const createdBundledHighlighter = createBundledHighlighter;
2210
+
2211
+ function createCssVariablesTheme(options = {}) {
2212
+ const {
2213
+ name = "css-variables",
2214
+ variablePrefix = "--shiki-",
2215
+ fontStyle = true
2216
+ } = options;
2217
+ const variable = (name2) => {
2218
+ if (options.variableDefaults?.[name2])
2219
+ return `var(${variablePrefix}${name2}, ${options.variableDefaults[name2]})`;
2220
+ return `var(${variablePrefix}${name2})`;
2221
+ };
2222
+ const theme = {
2223
+ name,
2224
+ type: "dark",
2225
+ colors: {
2226
+ "editor.foreground": variable("foreground"),
2227
+ "editor.background": variable("background"),
2228
+ "terminal.ansiBlack": variable("ansi-black"),
2229
+ "terminal.ansiRed": variable("ansi-red"),
2230
+ "terminal.ansiGreen": variable("ansi-green"),
2231
+ "terminal.ansiYellow": variable("ansi-yellow"),
2232
+ "terminal.ansiBlue": variable("ansi-blue"),
2233
+ "terminal.ansiMagenta": variable("ansi-magenta"),
2234
+ "terminal.ansiCyan": variable("ansi-cyan"),
2235
+ "terminal.ansiWhite": variable("ansi-white"),
2236
+ "terminal.ansiBrightBlack": variable("ansi-bright-black"),
2237
+ "terminal.ansiBrightRed": variable("ansi-bright-red"),
2238
+ "terminal.ansiBrightGreen": variable("ansi-bright-green"),
2239
+ "terminal.ansiBrightYellow": variable("ansi-bright-yellow"),
2240
+ "terminal.ansiBrightBlue": variable("ansi-bright-blue"),
2241
+ "terminal.ansiBrightMagenta": variable("ansi-bright-magenta"),
2242
+ "terminal.ansiBrightCyan": variable("ansi-bright-cyan"),
2243
+ "terminal.ansiBrightWhite": variable("ansi-bright-white")
2244
+ },
2245
+ tokenColors: [
2246
+ {
2247
+ scope: [
2248
+ "keyword.operator.accessor",
2249
+ "meta.group.braces.round.function.arguments",
2250
+ "meta.template.expression",
2251
+ "markup.fenced_code meta.embedded.block"
2252
+ ],
2253
+ settings: {
2254
+ foreground: variable("foreground")
2255
+ }
2256
+ },
2257
+ {
2258
+ scope: "emphasis",
2259
+ settings: {
2260
+ fontStyle: "italic"
2261
+ }
2262
+ },
2263
+ {
2264
+ scope: ["strong", "markup.heading.markdown", "markup.bold.markdown"],
2265
+ settings: {
2266
+ fontStyle: "bold"
2267
+ }
2268
+ },
2269
+ {
2270
+ scope: ["markup.italic.markdown"],
2271
+ settings: {
2272
+ fontStyle: "italic"
2273
+ }
2274
+ },
2275
+ {
2276
+ scope: "meta.link.inline.markdown",
2277
+ settings: {
2278
+ fontStyle: "underline",
2279
+ foreground: variable("token-link")
2280
+ }
2281
+ },
2282
+ {
2283
+ scope: ["string", "markup.fenced_code", "markup.inline"],
2284
+ settings: {
2285
+ foreground: variable("token-string")
2286
+ }
2287
+ },
2288
+ {
2289
+ scope: ["comment", "string.quoted.docstring.multi"],
2290
+ settings: {
2291
+ foreground: variable("token-comment")
2292
+ }
2293
+ },
2294
+ {
2295
+ scope: [
2296
+ "constant.numeric",
2297
+ "constant.language",
2298
+ "constant.other.placeholder",
2299
+ "constant.character.format.placeholder",
2300
+ "variable.language.this",
2301
+ "variable.other.object",
2302
+ "variable.other.class",
2303
+ "variable.other.constant",
2304
+ "meta.property-name",
2305
+ "meta.property-value",
2306
+ "support"
2307
+ ],
2308
+ settings: {
2309
+ foreground: variable("token-constant")
2310
+ }
2311
+ },
2312
+ {
2313
+ scope: [
2314
+ "keyword",
2315
+ "storage.modifier",
2316
+ "storage.type",
2317
+ "storage.control.clojure",
2318
+ "entity.name.function.clojure",
2319
+ "entity.name.tag.yaml",
2320
+ "support.function.node",
2321
+ "support.type.property-name.json",
2322
+ "punctuation.separator.key-value",
2323
+ "punctuation.definition.template-expression"
2324
+ ],
2325
+ settings: {
2326
+ foreground: variable("token-keyword")
2327
+ }
2328
+ },
2329
+ {
2330
+ scope: "variable.parameter.function",
2331
+ settings: {
2332
+ foreground: variable("token-parameter")
2333
+ }
2334
+ },
2335
+ {
2336
+ scope: [
2337
+ "support.function",
2338
+ "entity.name.type",
2339
+ "entity.other.inherited-class",
2340
+ "meta.function-call",
2341
+ "meta.instance.constructor",
2342
+ "entity.other.attribute-name",
2343
+ "entity.name.function",
2344
+ "constant.keyword.clojure"
2345
+ ],
2346
+ settings: {
2347
+ foreground: variable("token-function")
2348
+ }
2349
+ },
2350
+ {
2351
+ scope: [
2352
+ "entity.name.tag",
2353
+ "string.quoted",
2354
+ "string.regexp",
2355
+ "string.interpolated",
2356
+ "string.template",
2357
+ "string.unquoted.plain.out.yaml",
2358
+ "keyword.other.template"
2359
+ ],
2360
+ settings: {
2361
+ foreground: variable("token-string-expression")
2362
+ }
2363
+ },
2364
+ {
2365
+ scope: [
2366
+ "punctuation.definition.arguments",
2367
+ "punctuation.definition.dict",
2368
+ "punctuation.separator",
2369
+ "meta.function-call.arguments"
2370
+ ],
2371
+ settings: {
2372
+ foreground: variable("token-punctuation")
2373
+ }
2374
+ },
2375
+ {
2376
+ // [Custom] Markdown links
2377
+ scope: [
2378
+ "markup.underline.link",
2379
+ "punctuation.definition.metadata.markdown"
2380
+ ],
2381
+ settings: {
2382
+ foreground: variable("token-link")
2383
+ }
2384
+ },
2385
+ {
2386
+ // [Custom] Markdown list
2387
+ scope: ["beginning.punctuation.definition.list.markdown"],
2388
+ settings: {
2389
+ foreground: variable("token-string")
2390
+ }
2391
+ },
2392
+ {
2393
+ // [Custom] Markdown punctuation definition brackets
2394
+ scope: [
2395
+ "punctuation.definition.string.begin.markdown",
2396
+ "punctuation.definition.string.end.markdown",
2397
+ "string.other.link.title.markdown",
2398
+ "string.other.link.description.markdown"
2399
+ ],
2400
+ settings: {
2401
+ foreground: variable("token-keyword")
2402
+ }
2403
+ },
2404
+ {
2405
+ // [Custom] Diff
2406
+ scope: [
2407
+ "markup.inserted",
2408
+ "meta.diff.header.to-file",
2409
+ "punctuation.definition.inserted"
2410
+ ],
2411
+ settings: {
2412
+ foreground: variable("token-inserted")
2413
+ }
2414
+ },
2415
+ {
2416
+ scope: [
2417
+ "markup.deleted",
2418
+ "meta.diff.header.from-file",
2419
+ "punctuation.definition.deleted"
2420
+ ],
2421
+ settings: {
2422
+ foreground: variable("token-deleted")
2423
+ }
2424
+ },
2425
+ {
2426
+ scope: [
2427
+ "markup.changed",
2428
+ "punctuation.definition.changed"
2429
+ ],
2430
+ settings: {
2431
+ foreground: variable("token-changed")
2432
+ }
2433
+ }
2434
+ ]
2435
+ };
2436
+ if (!fontStyle) {
2437
+ theme.tokenColors = theme.tokenColors?.map((tokenColor) => {
2438
+ if (tokenColor.settings?.fontStyle)
2439
+ delete tokenColor.settings.fontStyle;
2440
+ return tokenColor;
2441
+ });
2442
+ }
2443
+ return theme;
2444
+ }
2445
+
2446
+ export { addClassToHast, applyColorReplacements, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createBundledHighlighter, createCssVariablesTheme, createHighlighterCore, createHighlighterCoreSync, createPositionConverter, createShikiInternal, createShikiInternalSync, createSingletonShorthands, createdBundledHighlighter, enableDeprecationWarnings, flatTokenVariants, getSingletonHighlighterCore, getTokenStyleObject, guessEmbeddedLanguages, hastToHtml, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, makeSingletonHighlighter, makeSingletonHighlighterCore, normalizeGetter, normalizeTheme, resolveColorReplacements, splitLines, splitToken, splitTokens, stringifyTokenStyle, toArray, tokenizeAnsiWithTheme, tokenizeWithTheme, tokensToHast, transformerDecorations, warnDeprecated };