@qwik.dev/devtools 0.3.0-beta.3 → 2.0.0-beta.43

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 (483) hide show
  1. package/dist/kit/index.d.mts +3 -3
  2. package/dist/kit/index.mjs +0 -1
  3. package/dist/ui/_virtual/_@oxc-project_runtime@0.144.0/helpers/esm/defineProperty.qwik.mjs +10 -0
  4. package/dist/ui/_virtual/_@oxc-project_runtime@0.144.0/helpers/esm/toPrimitive.qwik.mjs +12 -0
  5. package/dist/ui/_virtual/_@oxc-project_runtime@0.144.0/helpers/esm/toPropertyKey.qwik.mjs +7 -0
  6. package/dist/ui/_virtual/_@oxc-project_runtime@0.144.0/helpers/esm/typeof.qwik.mjs +9 -0
  7. package/dist/ui/_virtual/_rolldown/runtime.qwik.mjs +31 -0
  8. package/dist/ui/bundle-graph-CoI___e1.json +1 -0
  9. package/dist/ui/entry.extension.qwik.mjs +13 -14
  10. package/dist/ui/index.qwik.mjs +2 -5
  11. package/dist/ui/lib-types/ui/src/features/RenderTree/types.d.ts +1 -1
  12. package/dist/ui/node_modules/.pnpm/@shikijs_core@4.0.2/node_modules/@shikijs/core/dist/index.qwik.mjs +1058 -1035
  13. package/dist/ui/node_modules/.pnpm/@shikijs_engine-oniguruma@4.0.2/node_modules/@shikijs/engine-oniguruma/dist/index.qwik.mjs +360 -408
  14. package/dist/ui/node_modules/.pnpm/@shikijs_engine-oniguruma@4.0.2/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.qwik.mjs +4 -9
  15. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/abap.qwik.mjs +2 -7
  16. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/actionscript-3.qwik.mjs +2 -7
  17. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ada.qwik.mjs +2 -7
  18. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-expression.qwik.mjs +2 -7
  19. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-html.qwik.mjs +14 -16
  20. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-inline-style.qwik.mjs +4 -9
  21. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-inline-template.qwik.mjs +8 -10
  22. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-let-declaration.qwik.mjs +4 -9
  23. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-template-blocks.qwik.mjs +8 -10
  24. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-template.qwik.mjs +4 -9
  25. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-ts.qwik.mjs +16 -18
  26. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/apache.qwik.mjs +2 -7
  27. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/apex.qwik.mjs +2 -7
  28. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/apl.qwik.mjs +14 -16
  29. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/applescript.qwik.mjs +2 -7
  30. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ara.qwik.mjs +2 -7
  31. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/asciidoc.qwik.mjs +2 -7
  32. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/asm.qwik.mjs +2 -7
  33. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/astro.qwik.mjs +16 -18
  34. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/awk.qwik.mjs +2 -7
  35. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ballerina.qwik.mjs +2 -7
  36. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bat.qwik.mjs +2 -7
  37. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/beancount.qwik.mjs +2 -7
  38. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/berry.qwik.mjs +2 -7
  39. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bibtex.qwik.mjs +2 -7
  40. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bicep.qwik.mjs +2 -7
  41. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bird2.qwik.mjs +2 -7
  42. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/blade.qwik.mjs +18 -20
  43. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bsl.qwik.mjs +4 -9
  44. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/c.qwik.mjs +2 -7
  45. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/c3.qwik.mjs +2 -7
  46. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cadence.qwik.mjs +2 -7
  47. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cairo.qwik.mjs +4 -9
  48. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/clarity.qwik.mjs +2 -7
  49. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/clojure.qwik.mjs +2 -7
  50. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cmake.qwik.mjs +2 -7
  51. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cobol.qwik.mjs +8 -10
  52. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/codeowners.qwik.mjs +2 -7
  53. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/codeql.qwik.mjs +2 -7
  54. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/coffee.qwik.mjs +4 -9
  55. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/common-lisp.qwik.mjs +2 -7
  56. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/coq.qwik.mjs +2 -7
  57. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cpp-macro.qwik.mjs +10 -12
  58. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cpp.qwik.mjs +12 -14
  59. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/crystal.qwik.mjs +16 -18
  60. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/csharp.qwik.mjs +2 -7
  61. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/css.qwik.mjs +2 -7
  62. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/csv.qwik.mjs +2 -7
  63. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cue.qwik.mjs +2 -7
  64. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cypher.qwik.mjs +2 -7
  65. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/d.qwik.mjs +2 -7
  66. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dart.qwik.mjs +2 -7
  67. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dax.qwik.mjs +2 -7
  68. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/desktop.qwik.mjs +2 -7
  69. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/diff.qwik.mjs +2 -7
  70. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/docker.qwik.mjs +2 -7
  71. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dotenv.qwik.mjs +2 -7
  72. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dream-maker.qwik.mjs +2 -7
  73. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/edge.qwik.mjs +10 -12
  74. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/elixir.qwik.mjs +4 -9
  75. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/elm.qwik.mjs +4 -9
  76. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/emacs-lisp.qwik.mjs +2 -7
  77. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/erb.qwik.mjs +8 -10
  78. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/erlang.qwik.mjs +4 -9
  79. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-css.qwik.mjs +10 -12
  80. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-glsl.qwik.mjs +10 -12
  81. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-html.qwik.mjs +10 -12
  82. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-sql.qwik.mjs +8 -10
  83. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-xml.qwik.mjs +4 -9
  84. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fennel.qwik.mjs +2 -7
  85. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fish.qwik.mjs +2 -7
  86. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fluent.qwik.mjs +2 -7
  87. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fortran-fixed-form.qwik.mjs +4 -9
  88. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fortran-free-form.qwik.mjs +2 -7
  89. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fsharp.qwik.mjs +4 -9
  90. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gdresource.qwik.mjs +8 -10
  91. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gdscript.qwik.mjs +2 -7
  92. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gdshader.qwik.mjs +2 -7
  93. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/genie.qwik.mjs +2 -7
  94. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gherkin.qwik.mjs +2 -7
  95. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/git-commit.qwik.mjs +4 -9
  96. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/git-rebase.qwik.mjs +4 -9
  97. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gleam.qwik.mjs +2 -7
  98. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/glimmer-js.qwik.mjs +12 -14
  99. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/glimmer-ts.qwik.mjs +12 -14
  100. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/glsl.qwik.mjs +4 -9
  101. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gn.qwik.mjs +2 -7
  102. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gnuplot.qwik.mjs +2 -7
  103. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/go.qwik.mjs +2 -7
  104. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/graphql.qwik.mjs +12 -14
  105. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/groovy.qwik.mjs +2 -7
  106. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hack.qwik.mjs +8 -10
  107. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/haml.qwik.mjs +8 -10
  108. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/handlebars.qwik.mjs +12 -14
  109. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/haskell.qwik.mjs +2 -7
  110. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/haxe.qwik.mjs +2 -7
  111. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hcl.qwik.mjs +2 -7
  112. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hjson.qwik.mjs +2 -7
  113. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hlsl.qwik.mjs +2 -7
  114. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/html-derivative.qwik.mjs +4 -9
  115. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/html.qwik.mjs +8 -10
  116. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/http.qwik.mjs +12 -14
  117. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hurl.qwik.mjs +10 -12
  118. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hxml.qwik.mjs +4 -9
  119. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hy.qwik.mjs +2 -7
  120. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/imba.qwik.mjs +2 -7
  121. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ini.qwik.mjs +2 -7
  122. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/java.qwik.mjs +2 -7
  123. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/javascript.qwik.mjs +2 -7
  124. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jinja-html.qwik.mjs +4 -9
  125. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jinja.qwik.mjs +4 -9
  126. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jison.qwik.mjs +4 -9
  127. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/json.qwik.mjs +2 -7
  128. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/json5.qwik.mjs +2 -7
  129. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsonc.qwik.mjs +2 -7
  130. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsonl.qwik.mjs +2 -7
  131. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsonnet.qwik.mjs +2 -7
  132. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jssm.qwik.mjs +2 -7
  133. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsx.qwik.mjs +2 -7
  134. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/julia.qwik.mjs +14 -16
  135. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/just.qwik.mjs +16 -18
  136. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/kdl.qwik.mjs +2 -7
  137. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/kotlin.qwik.mjs +2 -7
  138. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/kusto.qwik.mjs +2 -7
  139. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/latex.qwik.mjs +4 -9
  140. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/lean.qwik.mjs +2 -7
  141. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/less.qwik.mjs +2 -7
  142. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/liquid.qwik.mjs +12 -14
  143. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/llvm.qwik.mjs +2 -7
  144. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/log.qwik.mjs +2 -7
  145. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/logo.qwik.mjs +2 -7
  146. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/lua.qwik.mjs +4 -9
  147. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/luau.qwik.mjs +2 -7
  148. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/make.qwik.mjs +2 -7
  149. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/markdown-nix.qwik.mjs +2 -7
  150. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/markdown-vue.qwik.mjs +2 -7
  151. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/markdown.qwik.mjs +2 -7
  152. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/marko.qwik.mjs +12 -14
  153. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/matlab.qwik.mjs +2 -7
  154. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mdc.qwik.mjs +10 -12
  155. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mdx.qwik.mjs +2 -7
  156. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mermaid.qwik.mjs +2 -7
  157. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mipsasm.qwik.mjs +2 -7
  158. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mojo.qwik.mjs +2 -7
  159. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/moonbit.qwik.mjs +2 -7
  160. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/move.qwik.mjs +2 -7
  161. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/narrat.qwik.mjs +2 -7
  162. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nextflow-groovy.qwik.mjs +2 -7
  163. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nextflow.qwik.mjs +4 -9
  164. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nginx.qwik.mjs +4 -9
  165. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nim.qwik.mjs +18 -20
  166. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nix.qwik.mjs +4 -9
  167. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nushell.qwik.mjs +2 -7
  168. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/objective-c.qwik.mjs +2 -7
  169. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/objective-cpp.qwik.mjs +2 -7
  170. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ocaml.qwik.mjs +2 -7
  171. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/odin.qwik.mjs +2 -7
  172. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/openscad.qwik.mjs +2 -7
  173. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/pascal.qwik.mjs +2 -7
  174. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/perl.qwik.mjs +14 -16
  175. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/php.qwik.mjs +16 -18
  176. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/pkl.qwik.mjs +2 -7
  177. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/plsql.qwik.mjs +2 -7
  178. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/po.qwik.mjs +2 -7
  179. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/polar.qwik.mjs +2 -7
  180. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/postcss.qwik.mjs +2 -7
  181. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/powerquery.qwik.mjs +2 -7
  182. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/powershell.qwik.mjs +2 -7
  183. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/prisma.qwik.mjs +2 -7
  184. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/prolog.qwik.mjs +2 -7
  185. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/proto.qwik.mjs +2 -7
  186. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/pug.qwik.mjs +10 -12
  187. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/puppet.qwik.mjs +2 -7
  188. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/purescript.qwik.mjs +2 -7
  189. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/python.qwik.mjs +2 -7
  190. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/qml.qwik.mjs +4 -9
  191. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/qmldir.qwik.mjs +2 -7
  192. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/qss.qwik.mjs +2 -7
  193. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/r.qwik.mjs +2 -7
  194. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/racket.qwik.mjs +2 -7
  195. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/raku.qwik.mjs +2 -7
  196. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/razor.qwik.mjs +8 -10
  197. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/reg.qwik.mjs +2 -7
  198. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/regexp.qwik.mjs +2 -7
  199. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rel.qwik.mjs +2 -7
  200. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/riscv.qwik.mjs +2 -7
  201. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ron.qwik.mjs +2 -7
  202. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rosmsg.qwik.mjs +2 -7
  203. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rst.qwik.mjs +20 -22
  204. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ruby.qwik.mjs +28 -30
  205. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rust.qwik.mjs +2 -7
  206. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sas.qwik.mjs +4 -9
  207. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sass.qwik.mjs +2 -7
  208. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/scala.qwik.mjs +2 -7
  209. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/scheme.qwik.mjs +2 -7
  210. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/scss.qwik.mjs +4 -9
  211. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sdbl.qwik.mjs +2 -7
  212. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/shaderlab.qwik.mjs +4 -9
  213. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/shellscript.qwik.mjs +2 -7
  214. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/shellsession.qwik.mjs +4 -9
  215. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/smalltalk.qwik.mjs +2 -7
  216. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/solidity.qwik.mjs +2 -7
  217. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/soy.qwik.mjs +4 -9
  218. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sparql.qwik.mjs +4 -9
  219. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/splunk.qwik.mjs +2 -7
  220. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sql.qwik.mjs +2 -7
  221. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ssh-config.qwik.mjs +2 -7
  222. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/stata.qwik.mjs +4 -9
  223. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/stylus.qwik.mjs +2 -7
  224. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/surrealql.qwik.mjs +4 -9
  225. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/svelte.qwik.mjs +12 -14
  226. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/swift.qwik.mjs +2 -7
  227. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/system-verilog.qwik.mjs +2 -7
  228. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/systemd.qwik.mjs +2 -7
  229. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/talonscript.qwik.mjs +2 -7
  230. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tasl.qwik.mjs +2 -7
  231. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tcl.qwik.mjs +2 -7
  232. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/templ.qwik.mjs +10 -12
  233. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/terraform.qwik.mjs +2 -7
  234. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tex.qwik.mjs +4 -9
  235. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/toml.qwik.mjs +2 -7
  236. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ts-tags.qwik.mjs +16 -18
  237. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tsv.qwik.mjs +2 -7
  238. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tsx.qwik.mjs +2 -7
  239. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/turtle.qwik.mjs +2 -7
  240. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/twig.qwik.mjs +16 -18
  241. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/typescript.qwik.mjs +2 -7
  242. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/typespec.qwik.mjs +2 -7
  243. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/typst.qwik.mjs +2 -7
  244. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/v.qwik.mjs +2 -7
  245. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vala.qwik.mjs +2 -7
  246. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vb.qwik.mjs +2 -7
  247. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/verilog.qwik.mjs +2 -7
  248. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vhdl.qwik.mjs +2 -7
  249. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/viml.qwik.mjs +2 -7
  250. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-directives.qwik.mjs +2 -7
  251. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-html.qwik.mjs +4 -9
  252. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-interpolations.qwik.mjs +2 -7
  253. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.qwik.mjs +4 -9
  254. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-vine.qwik.mjs +16 -18
  255. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue.qwik.mjs +24 -26
  256. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vyper.qwik.mjs +2 -7
  257. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wasm.qwik.mjs +2 -7
  258. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wenyan.qwik.mjs +2 -7
  259. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wgsl.qwik.mjs +2 -7
  260. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wikitext.qwik.mjs +2 -7
  261. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wit.qwik.mjs +2 -7
  262. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wolfram.qwik.mjs +2 -7
  263. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/xml.qwik.mjs +4 -9
  264. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/xsl.qwik.mjs +4 -9
  265. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/yaml.qwik.mjs +2 -7
  266. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/zenscript.qwik.mjs +2 -7
  267. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/zig.qwik.mjs +2 -7
  268. package/dist/ui/node_modules/.pnpm/@shikijs_primitive@4.0.2/node_modules/@shikijs/primitive/dist/index.qwik.mjs +728 -661
  269. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/andromeeda.qwik.mjs +2 -4
  270. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/aurora-x.qwik.mjs +2 -4
  271. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/ayu-dark.qwik.mjs +2 -4
  272. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/ayu-light.qwik.mjs +2 -4
  273. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/ayu-mirage.qwik.mjs +2 -4
  274. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-frappe.qwik.mjs +2 -4
  275. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-latte.qwik.mjs +2 -4
  276. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-macchiato.qwik.mjs +2 -4
  277. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-mocha.qwik.mjs +2 -4
  278. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/dark-plus.qwik.mjs +2 -4
  279. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/dracula-soft.qwik.mjs +2 -4
  280. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/dracula.qwik.mjs +2 -4
  281. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/everforest-dark.qwik.mjs +2 -4
  282. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/everforest-light.qwik.mjs +2 -4
  283. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark-default.qwik.mjs +2 -4
  284. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark-dimmed.qwik.mjs +2 -4
  285. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark-high-contrast.qwik.mjs +2 -4
  286. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark.qwik.mjs +2 -4
  287. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-light-default.qwik.mjs +2 -4
  288. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-light-high-contrast.qwik.mjs +2 -4
  289. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-light.qwik.mjs +2 -4
  290. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.qwik.mjs +2 -4
  291. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.qwik.mjs +2 -4
  292. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.qwik.mjs +2 -4
  293. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-light-hard.qwik.mjs +2 -4
  294. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-light-medium.qwik.mjs +2 -4
  295. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-light-soft.qwik.mjs +2 -4
  296. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/horizon-bright.qwik.mjs +2 -4
  297. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/horizon.qwik.mjs +2 -4
  298. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/houston.qwik.mjs +2 -4
  299. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/kanagawa-dragon.qwik.mjs +2 -4
  300. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/kanagawa-lotus.qwik.mjs +2 -4
  301. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/kanagawa-wave.qwik.mjs +2 -4
  302. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/laserwave.qwik.mjs +2 -4
  303. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/light-plus.qwik.mjs +2 -4
  304. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-darker.qwik.mjs +2 -4
  305. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-lighter.qwik.mjs +2 -4
  306. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-ocean.qwik.mjs +2 -4
  307. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-palenight.qwik.mjs +2 -4
  308. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme.qwik.mjs +2 -4
  309. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/min-dark.qwik.mjs +2 -4
  310. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/min-light.qwik.mjs +2 -4
  311. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/monokai.qwik.mjs +2 -4
  312. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/night-owl-light.qwik.mjs +2 -4
  313. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/night-owl.qwik.mjs +2 -4
  314. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/nord.qwik.mjs +2 -4
  315. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/one-dark-pro.qwik.mjs +2 -4
  316. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/one-light.qwik.mjs +2 -4
  317. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/plastic.qwik.mjs +2 -4
  318. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/poimandres.qwik.mjs +2 -4
  319. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/red.qwik.mjs +2 -4
  320. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/rose-pine-dawn.qwik.mjs +2 -4
  321. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/rose-pine-moon.qwik.mjs +2 -4
  322. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/rose-pine.qwik.mjs +2 -4
  323. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/slack-dark.qwik.mjs +2 -4
  324. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/slack-ochin.qwik.mjs +2 -4
  325. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/snazzy-light.qwik.mjs +2 -4
  326. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/solarized-dark.qwik.mjs +2 -4
  327. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/solarized-light.qwik.mjs +2 -4
  328. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/synthwave-84.qwik.mjs +2 -4
  329. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/tokyo-night.qwik.mjs +2 -4
  330. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vesper.qwik.mjs +2 -4
  331. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vitesse-black.qwik.mjs +2 -4
  332. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vitesse-dark.qwik.mjs +2 -4
  333. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vitesse-light.qwik.mjs +2 -4
  334. package/dist/ui/node_modules/.pnpm/@shikijs_types@4.0.2/node_modules/@shikijs/types/dist/index.qwik.mjs +5 -7
  335. package/dist/ui/node_modules/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.qwik.mjs +2183 -2953
  336. package/dist/ui/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.qwik.mjs +20 -14
  337. package/dist/ui/node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.qwik.mjs +259 -256
  338. package/dist/ui/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.qwik.mjs +113 -110
  339. package/dist/ui/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.qwik.mjs +13 -8
  340. package/dist/ui/node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.qwik.mjs +198 -177
  341. package/dist/ui/node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/common.qwik.mjs +205 -182
  342. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.qwik.mjs +29 -20
  343. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.qwik.mjs +20 -4
  344. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.qwik.mjs +112 -124
  345. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.qwik.mjs +38 -14
  346. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.qwik.mjs +21 -4
  347. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.qwik.mjs +20 -4
  348. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.qwik.mjs +22 -10
  349. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.qwik.mjs +229 -53
  350. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.qwik.mjs +234 -58
  351. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.qwik.mjs +36 -8
  352. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.qwik.mjs +83 -36
  353. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.qwik.mjs +38 -20
  354. package/dist/ui/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.qwik.mjs +22 -6
  355. package/dist/ui/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.qwik.mjs +27 -24
  356. package/dist/ui/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.qwik.mjs +119 -120
  357. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.qwik.mjs +17 -6
  358. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.qwik.mjs +57 -59
  359. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.qwik.mjs +72 -33
  360. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.qwik.mjs +312 -366
  361. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.qwik.mjs +11 -4
  362. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.qwik.mjs +558 -564
  363. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.qwik.mjs +10 -4
  364. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.qwik.mjs +10 -4
  365. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.qwik.mjs +47 -21
  366. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.qwik.mjs +43 -37
  367. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.qwik.mjs +19 -17
  368. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.qwik.mjs +21 -10
  369. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.qwik.mjs +22 -22
  370. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.qwik.mjs +20 -18
  371. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.qwik.mjs +15 -17
  372. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.qwik.mjs +11 -9
  373. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.qwik.mjs +9 -8
  374. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/bundle-full.qwik.mjs +21 -59
  375. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/chunk-CtajNgzt.qwik.mjs +17 -28
  376. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/engine-oniguruma.qwik.mjs +4 -11
  377. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/langs-bundle-full-DfKZStlK.qwik.mjs +1279 -1284
  378. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/themes.qwik.mjs +393 -396
  379. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/wasm.qwik.mjs +2 -6
  380. package/dist/ui/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.qwik.mjs +10 -4
  381. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.qwik.mjs +16 -12
  382. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.qwik.mjs +70 -45
  383. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.qwik.mjs +16 -4
  384. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.qwik.mjs +34 -20
  385. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.qwik.mjs +12 -6
  386. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.qwik.mjs +12 -6
  387. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.qwik.mjs +29 -22
  388. package/dist/ui/node_modules/.pnpm/vite-hot-client@2.1.0_vite@8.2.1_@types_node@24.10.0_esbuild@0.28.2_jiti@2.6.1_terser@5.46.0_tsx@4.21.0_yaml@2.8.3_/node_modules/vite-hot-client/dist/index.qwik.mjs +25 -0
  389. package/dist/ui/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.qwik.mjs +102 -20
  390. package/dist/ui/packages/devtools/kit/src/overlay-paths.qwik.mjs +10 -19
  391. package/dist/ui/packages/devtools/ui/src/components/DevtoolsButton/DevtoolsButton.qwik.mjs +118 -140
  392. package/dist/ui/packages/devtools/ui/src/components/DevtoolsContainer/DevtoolsContainer.qwik.mjs +4 -12
  393. package/dist/ui/packages/devtools/ui/src/components/DevtoolsPanel/DevtoolsPanel.qwik.mjs +360 -470
  394. package/dist/ui/packages/devtools/ui/src/components/IconButton/IconButton.qwik.mjs +13 -15
  395. package/dist/ui/packages/devtools/ui/src/components/Icons/Icons.qwik.mjs +513 -635
  396. package/dist/ui/packages/devtools/ui/src/components/InfoBanner/InfoBanner.qwik.mjs +8 -23
  397. package/dist/ui/packages/devtools/ui/src/components/Tab/Tab.qwik.mjs +13 -20
  398. package/dist/ui/packages/devtools/ui/src/components/TabContent/TabContent.qwik.mjs +7 -20
  399. package/dist/ui/packages/devtools/ui/src/components/TabTitle/TabTitle.qwik.mjs +4 -8
  400. package/dist/ui/packages/devtools/ui/src/components/ThemeToggle/QwikThemeToggle.qwik.mjs +31 -53
  401. package/dist/ui/packages/devtools/ui/src/components/ThemeToggle/theme-script.qwik.mjs +5 -9
  402. package/dist/ui/packages/devtools/ui/src/components/Tree/Tree.qwik.mjs +139 -229
  403. package/dist/ui/packages/devtools/ui/src/components/router-head/theme-script.qwik.mjs +2 -4
  404. package/dist/ui/packages/devtools/ui/src/devtools/CommandPalette.qwik.mjs +188 -278
  405. package/dist/ui/packages/devtools/ui/src/devtools/CustomizeTabsPanel.qwik.mjs +111 -198
  406. package/dist/ui/packages/devtools/ui/src/devtools/DevtoolsContent.qwik.mjs +100 -193
  407. package/dist/ui/packages/devtools/ui/src/devtools/DevtoolsSidebar.qwik.mjs +46 -102
  408. package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtools.qwik.mjs +46 -93
  409. package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtoolsExtension.qwik.mjs +26 -31
  410. package/dist/ui/packages/devtools/ui/src/devtools/command-palette.qwik.mjs +142 -173
  411. package/dist/ui/packages/devtools/ui/src/devtools/page-data-source.qwik.mjs +58 -59
  412. package/dist/ui/packages/devtools/ui/src/devtools/rpc.qwik.mjs +61 -81
  413. package/dist/ui/packages/devtools/ui/src/devtools/sidebar-tabs.qwik.mjs +60 -84
  414. package/dist/ui/packages/devtools/ui/src/devtools/state.qwik.mjs +25 -27
  415. package/dist/ui/packages/devtools/ui/src/devtools/tabs.qwik.mjs +58 -80
  416. package/dist/ui/packages/devtools/ui/src/features/Assets/Assets.qwik.mjs +15 -49
  417. package/dist/ui/packages/devtools/ui/src/features/BuildAnalysis/BuildAnalysis.qwik.mjs +118 -181
  418. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/CodeBreak.qwik.mjs +26 -37
  419. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/HtmlParser.qwik.mjs +82 -145
  420. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/StateParser.qwik.mjs +108 -177
  421. package/dist/ui/packages/devtools/ui/src/features/HookTree/HookTree.qwik.mjs +518 -701
  422. package/dist/ui/packages/devtools/ui/src/features/HookTree/hookTreeHelpers.qwik.mjs +122 -167
  423. package/dist/ui/packages/devtools/ui/src/features/Inspect/Inspect.qwik.mjs +24 -28
  424. package/dist/ui/packages/devtools/ui/src/features/Inspect/constant.qwik.mjs +2 -4
  425. package/dist/ui/packages/devtools/ui/src/features/Inspect/iframe-theme.qwik.mjs +37 -47
  426. package/dist/ui/packages/devtools/ui/src/features/Overview/Overview.qwik.mjs +44 -197
  427. package/dist/ui/packages/devtools/ui/src/features/Packages/Packages.qwik.mjs +246 -289
  428. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyCard/DependencyCard.qwik.mjs +111 -215
  429. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyCard/index.qwik.mjs +2 -0
  430. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyOperationFeedback/DependencyOperationFeedback.qwik.mjs +13 -38
  431. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyOperationFeedback/index.qwik.mjs +2 -0
  432. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyToolbar/DependencyToolbar.qwik.mjs +41 -74
  433. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyToolbar/index.qwik.mjs +2 -0
  434. package/dist/ui/packages/devtools/ui/src/features/Packages/components/InstalledDependencyList/InstalledDependencyList.qwik.mjs +19 -56
  435. package/dist/ui/packages/devtools/ui/src/features/Packages/components/InstalledDependencyList/index.qwik.mjs +2 -0
  436. package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageIcon/PackageIcon.qwik.mjs +20 -28
  437. package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageIcon/index.qwik.mjs +2 -0
  438. package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageSearchResults/PackageSearchResults.qwik.mjs +22 -49
  439. package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageSearchResults/index.qwik.mjs +2 -0
  440. package/dist/ui/packages/devtools/ui/src/features/Packages/components/SearchResultCard/SearchResultCard.qwik.mjs +31 -96
  441. package/dist/ui/packages/devtools/ui/src/features/Packages/components/SearchResultCard/index.qwik.mjs +2 -0
  442. package/dist/ui/packages/devtools/ui/src/features/Packages/package-utils.qwik.mjs +41 -67
  443. package/dist/ui/packages/devtools/ui/src/features/Performance/Performance.qwik.mjs +106 -249
  444. package/dist/ui/packages/devtools/ui/src/features/Performance/components/ComponentCard.qwik.mjs +9 -47
  445. package/dist/ui/packages/devtools/ui/src/features/Performance/components/HookDetailsPanel.qwik.mjs +27 -91
  446. package/dist/ui/packages/devtools/ui/src/features/Performance/components/PerformanceOverview.qwik.mjs +13 -33
  447. package/dist/ui/packages/devtools/ui/src/features/Performance/components/StatCard.qwik.mjs +8 -20
  448. package/dist/ui/packages/devtools/ui/src/features/Performance/computePerfViewModel.qwik.mjs +96 -105
  449. package/dist/ui/packages/devtools/ui/src/features/Performance/transformPerformanceData.qwik.mjs +19 -32
  450. package/dist/ui/packages/devtools/ui/src/features/Performance/utils/formatMs.qwik.mjs +5 -13
  451. package/dist/ui/packages/devtools/ui/src/features/Preloads/Preloads.qwik.mjs +263 -471
  452. package/dist/ui/packages/devtools/ui/src/features/Preloads/computePreloadViewModel.qwik.mjs +120 -158
  453. package/dist/ui/packages/devtools/ui/src/features/RenderTree/RenderTree.qwik.mjs +188 -265
  454. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HighlightedCodeList.qwik.mjs +5 -21
  455. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HookFiltersCard.qwik.mjs +30 -77
  456. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/RenderTreeTabs.qwik.mjs +9 -24
  457. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/StateTreeNodeLabel.qwik.mjs +18 -30
  458. package/dist/ui/packages/devtools/ui/src/features/RenderTree/utils/getCodeLanguage.qwik.mjs +6 -16
  459. package/dist/ui/packages/devtools/ui/src/features/RenderTree/utils/getValueColorClass.qwik.mjs +10 -19
  460. package/dist/ui/packages/devtools/ui/src/features/Routes/Routes.qwik.mjs +27 -50
  461. package/dist/ui/packages/devtools/ui/src/runtime/preloads.qwik.mjs +596 -796
  462. package/dist/ui/packages/devtools/ui/src/utils/shiki.qwik.mjs +15 -22
  463. package/dist/ui/q-manifest.json +1036 -1059
  464. package/dist/ui/styles.css +1 -0
  465. package/package.json +8 -7
  466. package/dist/ui/_virtual/_commonjsHelpers.qwik.mjs +0 -6
  467. package/dist/ui/_virtual/browser.qwik.mjs +0 -7
  468. package/dist/ui/_virtual/browser.qwik2.mjs +0 -4
  469. package/dist/ui/bundle-graph-eeik1E53.json +0 -1
  470. package/dist/ui/node_modules/.pnpm/@shikijs_engine-javascript@4.0.2/node_modules/@shikijs/engine-javascript/dist/engine-compile.qwik.mjs +0 -36
  471. package/dist/ui/node_modules/.pnpm/@shikijs_engine-javascript@4.0.2/node_modules/@shikijs/engine-javascript/dist/scanner-BFcBmQR1.qwik.mjs +0 -78
  472. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/node-utils.qwik.mjs +0 -14
  473. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/parse.qwik.mjs +0 -297
  474. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/tokenizer/tokenize.qwik.mjs +0 -355
  475. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/traverser/traverse.qwik.mjs +0 -79
  476. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/utils.qwik.mjs +0 -19
  477. package/dist/ui/node_modules/.pnpm/oniguruma-to-es@4.3.5/node_modules/oniguruma-to-es/dist/esm/index.qwik.mjs +0 -1878
  478. package/dist/ui/node_modules/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.qwik.mjs +0 -250
  479. package/dist/ui/node_modules/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.qwik.mjs +0 -98
  480. package/dist/ui/node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.qwik.mjs +0 -174
  481. package/dist/ui/node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.qwik.mjs +0 -16
  482. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/index.qwik.mjs +0 -47
  483. package/dist/ui/node_modules/.pnpm/vite-hot-client@2.1.0_vite@7.3.5_@types_node@24.10.0_jiti@2.6.1_lightningcss@1.33.0_terser@5.46.0_tsx@4.21.0_yaml@2.8.3_/node_modules/vite-hot-client/dist/index.qwik.mjs +0 -35
@@ -1,729 +1,796 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
1
  import { ShikiError } from "../../../../../@shikijs_types@4.0.2/node_modules/@shikijs/types/dist/index.qwik.mjs";
5
- import { INITIAL, EncodedTokenMetadata, Registry as Registry$1, Theme } from "../../../../../@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.qwik.mjs";
2
+ import _defineProperty from "../../../../../../../_virtual/_@oxc-project_runtime@0.144.0/helpers/esm/defineProperty.qwik.mjs";
3
+ import { EncodedTokenMetadata, INITIAL, Registry as Registry$1, Theme } from "../../../../../@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.qwik.mjs";
6
4
  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 || {})) if (typeof value === "string") replacements[key] = value;
10
- else if (key === themeName) Object.assign(replacements, value);
11
- return replacements;
5
+ const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
6
+ const themeName = typeof theme === "string" ? theme : theme.name;
7
+ for (const [key, value] of Object.entries(options?.colorReplacements || {})) if (typeof value === "string") replacements[key] = value;
8
+ else if (key === themeName) Object.assign(replacements, value);
9
+ return replacements;
12
10
  }
13
11
  function applyColorReplacements(color, replacements) {
14
- if (!color) return color;
15
- return replacements?.[color?.toLowerCase()] || color;
12
+ if (!color) return color;
13
+ return replacements?.[color?.toLowerCase()] || color;
16
14
  }
17
15
  function toArray(x) {
18
- return Array.isArray(x) ? x : [x];
16
+ return Array.isArray(x) ? x : [x];
19
17
  }
18
+ /**
19
+ * Normalize a getter to a promise.
20
+ */
20
21
  async function normalizeGetter(p) {
21
- return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
22
+ return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
22
23
  }
24
+ /**
25
+ * Check if the language is plaintext that is ignored by Shiki.
26
+ *
27
+ * Hard-coded plain text languages: `plaintext`, `txt`, `text`, `plain`.
28
+ */
23
29
  function isPlainLang(lang) {
24
- return !lang || [
25
- "plaintext",
26
- "txt",
27
- "text",
28
- "plain"
29
- ].includes(lang);
30
+ return !lang || [
31
+ "plaintext",
32
+ "txt",
33
+ "text",
34
+ "plain"
35
+ ].includes(lang);
30
36
  }
37
+ /**
38
+ * Check if the language is specially handled or bypassed by Shiki.
39
+ *
40
+ * Hard-coded languages: `ansi` and plaintexts like `plaintext`, `txt`, `text`, `plain`.
41
+ */
31
42
  function isSpecialLang(lang) {
32
- return lang === "ansi" || isPlainLang(lang);
43
+ return lang === "ansi" || isPlainLang(lang);
33
44
  }
45
+ /**
46
+ * Check if the theme is specially handled or bypassed by Shiki.
47
+ *
48
+ * Hard-coded themes: `none`.
49
+ */
34
50
  function isNoneTheme(theme) {
35
- return theme === "none";
51
+ return theme === "none";
36
52
  }
53
+ /**
54
+ * Check if the theme is specially handled or bypassed by Shiki.
55
+ *
56
+ * Hard-coded themes: `none`.
57
+ */
37
58
  function isSpecialTheme(theme) {
38
- return isNoneTheme(theme);
59
+ return isNoneTheme(theme);
39
60
  }
61
+ /**
62
+ * Split a string into lines, each line preserves the line ending.
63
+ *
64
+ * @param code - The code string to split into lines
65
+ * @param preserveEnding - Whether to preserve line endings in the result
66
+ * @returns Array of tuples containing [line content, offset index]
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * splitLines('hello\nworld', false)
71
+ * // => [['hello', 0], ['world', 6]]
72
+ *
73
+ * splitLines('hello\nworld', true)
74
+ * // => [['hello\n', 0], ['world', 6]]
75
+ * ```
76
+ */
40
77
  function splitLines(code, preserveEnding = false) {
41
- if (code.length === 0) return [["", 0]];
42
- const parts = code.split(/(\r?\n)/g);
43
- let index = 0;
44
- const lines = [];
45
- for (let i = 0; i < parts.length; i += 2) {
46
- const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
47
- lines.push([line, index]);
48
- index += parts[i].length;
49
- index += parts[i + 1]?.length || 0;
50
- }
51
- return lines;
78
+ if (code.length === 0) return [["", 0]];
79
+ const parts = code.split(/(\r?\n)/g);
80
+ let index = 0;
81
+ const lines = [];
82
+ for (let i = 0; i < parts.length; i += 2) {
83
+ const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
84
+ lines.push([line, index]);
85
+ index += parts[i].length;
86
+ index += parts[i + 1]?.length || 0;
87
+ }
88
+ return lines;
52
89
  }
53
- const VSCODE_FALLBACK_EDITOR_FG = {
54
- light: "#333333",
55
- dark: "#bbbbbb"
90
+ /**
91
+ * https://github.com/microsoft/vscode/blob/f7f05dee53fb33fe023db2e06e30a89d3094488f/src/vs/platform/theme/common/colorRegistry.ts#L258-L268
92
+ */
93
+ var VSCODE_FALLBACK_EDITOR_FG = {
94
+ light: "#333333",
95
+ dark: "#bbbbbb"
56
96
  };
57
- const VSCODE_FALLBACK_EDITOR_BG = {
58
- light: "#fffffe",
59
- dark: "#1e1e1e"
97
+ var VSCODE_FALLBACK_EDITOR_BG = {
98
+ light: "#fffffe",
99
+ dark: "#1e1e1e"
60
100
  };
61
- const RESOLVED_KEY = "__shiki_resolved";
101
+ var RESOLVED_KEY = "__shiki_resolved";
102
+ /**
103
+ * Normalize a textmate theme to shiki theme
104
+ */
62
105
  function normalizeTheme(rawTheme) {
63
- if (rawTheme?.[RESOLVED_KEY]) return rawTheme;
64
- const theme = { ...rawTheme };
65
- if (theme.tokenColors && !theme.settings) {
66
- theme.settings = theme.tokenColors;
67
- delete theme.tokenColors;
68
- }
69
- theme.type || (theme.type = "dark");
70
- theme.colorReplacements = { ...theme.colorReplacements };
71
- theme.settings || (theme.settings = []);
72
- let { bg, fg } = theme;
73
- if (!bg || !fg) {
74
- const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
75
- if (globalSetting?.settings?.foreground) fg = globalSetting.settings.foreground;
76
- if (globalSetting?.settings?.background) bg = globalSetting.settings.background;
77
- if (!fg && theme?.colors?.["editor.foreground"]) fg = theme.colors["editor.foreground"];
78
- if (!bg && theme?.colors?.["editor.background"]) bg = theme.colors["editor.background"];
79
- if (!fg) fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
80
- if (!bg) bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
81
- theme.fg = fg;
82
- theme.bg = bg;
83
- }
84
- if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) theme.settings.unshift({ settings: {
85
- foreground: theme.fg,
86
- background: theme.bg
87
- } });
88
- let replacementCount = 0;
89
- const replacementMap = /* @__PURE__ */ new Map();
90
- function getReplacementColor(value) {
91
- if (replacementMap.has(value)) return replacementMap.get(value);
92
- replacementCount += 1;
93
- const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
94
- if (theme.colorReplacements?.[`#${hex}`]) return getReplacementColor(value);
95
- replacementMap.set(value, hex);
96
- return hex;
97
- }
98
- theme.settings = theme.settings.map((setting) => {
99
- const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
100
- const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
101
- if (!replaceFg && !replaceBg) return setting;
102
- const clone = {
103
- ...setting,
104
- settings: { ...setting.settings }
105
- };
106
- if (replaceFg) {
107
- const replacement = getReplacementColor(setting.settings.foreground);
108
- theme.colorReplacements[replacement] = setting.settings.foreground;
109
- clone.settings.foreground = replacement;
110
- }
111
- if (replaceBg) {
112
- const replacement = getReplacementColor(setting.settings.background);
113
- theme.colorReplacements[replacement] = setting.settings.background;
114
- clone.settings.background = replacement;
115
- }
116
- return clone;
117
- });
118
- for (const key of Object.keys(theme.colors || {})) if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
119
- if (!theme.colors[key]?.startsWith("#")) {
120
- const replacement = getReplacementColor(theme.colors[key]);
121
- theme.colorReplacements[replacement] = theme.colors[key];
122
- theme.colors[key] = replacement;
123
- }
124
- }
125
- Object.defineProperty(theme, RESOLVED_KEY, {
126
- enumerable: false,
127
- writable: false,
128
- value: true
129
- });
130
- return theme;
106
+ if (rawTheme?.[RESOLVED_KEY]) return rawTheme;
107
+ const theme = { ...rawTheme };
108
+ if (theme.tokenColors && !theme.settings) {
109
+ theme.settings = theme.tokenColors;
110
+ delete theme.tokenColors;
111
+ }
112
+ theme.type || (theme.type = "dark");
113
+ theme.colorReplacements = { ...theme.colorReplacements };
114
+ theme.settings || (theme.settings = []);
115
+ let { bg, fg } = theme;
116
+ if (!bg || !fg) {
117
+ /**
118
+ * First try:
119
+ * Theme might contain a global `tokenColor` without `name` or `scope`
120
+ * Used as default value for foreground/background
121
+ */
122
+ const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
123
+ if (globalSetting?.settings?.foreground) fg = globalSetting.settings.foreground;
124
+ if (globalSetting?.settings?.background) bg = globalSetting.settings.background;
125
+ /**
126
+ * Second try:
127
+ * If there's no global `tokenColor` without `name` or `scope`
128
+ * Use `editor.foreground` and `editor.background`
129
+ */
130
+ if (!fg && theme?.colors?.["editor.foreground"]) fg = theme.colors["editor.foreground"];
131
+ if (!bg && theme?.colors?.["editor.background"]) bg = theme.colors["editor.background"];
132
+ /**
133
+ * Last try:
134
+ * If there's no fg/bg color specified in theme, use default
135
+ */
136
+ if (!fg) fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
137
+ if (!bg) bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
138
+ theme.fg = fg;
139
+ theme.bg = bg;
140
+ }
141
+ if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) theme.settings.unshift({ settings: {
142
+ foreground: theme.fg,
143
+ background: theme.bg
144
+ } });
145
+ let replacementCount = 0;
146
+ const replacementMap = /* @__PURE__ */ new Map();
147
+ function getReplacementColor(value) {
148
+ if (replacementMap.has(value)) return replacementMap.get(value);
149
+ replacementCount += 1;
150
+ const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
151
+ if (theme.colorReplacements?.[`#${hex}`]) return getReplacementColor(value);
152
+ replacementMap.set(value, hex);
153
+ return hex;
154
+ }
155
+ theme.settings = theme.settings.map((setting) => {
156
+ const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
157
+ const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
158
+ if (!replaceFg && !replaceBg) return setting;
159
+ const clone = {
160
+ ...setting,
161
+ settings: { ...setting.settings }
162
+ };
163
+ if (replaceFg) {
164
+ const replacement = getReplacementColor(setting.settings.foreground);
165
+ theme.colorReplacements[replacement] = setting.settings.foreground;
166
+ clone.settings.foreground = replacement;
167
+ }
168
+ if (replaceBg) {
169
+ const replacement = getReplacementColor(setting.settings.background);
170
+ theme.colorReplacements[replacement] = setting.settings.background;
171
+ clone.settings.background = replacement;
172
+ }
173
+ return clone;
174
+ });
175
+ for (const key of Object.keys(theme.colors || {})) if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
176
+ if (!theme.colors[key]?.startsWith("#")) {
177
+ const replacement = getReplacementColor(theme.colors[key]);
178
+ theme.colorReplacements[replacement] = theme.colors[key];
179
+ theme.colors[key] = replacement;
180
+ }
181
+ }
182
+ Object.defineProperty(theme, RESOLVED_KEY, {
183
+ enumerable: false,
184
+ writable: false,
185
+ value: true
186
+ });
187
+ return theme;
131
188
  }
189
+ /**
190
+ * Resolve
191
+ */
132
192
  async function resolveLangs(langs) {
133
- return Array.from(new Set((await Promise.all(langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r])))).flat()));
193
+ return Array.from(new Set((await Promise.all(langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r])))).flat()));
134
194
  }
135
195
  async function resolveThemes(themes) {
136
- return (await Promise.all(themes.map(async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))))).filter((i) => !!i);
196
+ return (await Promise.all(themes.map(async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))))).filter((i) => !!i);
137
197
  }
138
198
  function resolveLangAlias(name, alias) {
139
- if (!alias) return name;
140
- if (alias[name]) {
141
- const resolved = /* @__PURE__ */ new Set([name]);
142
- while (alias[name]) {
143
- name = alias[name];
144
- if (resolved.has(name)) throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
145
- resolved.add(name);
146
- }
147
- }
148
- return name;
199
+ if (!alias) return name;
200
+ if (alias[name]) {
201
+ const resolved = /* @__PURE__ */ new Set([name]);
202
+ while (alias[name]) {
203
+ name = alias[name];
204
+ if (resolved.has(name)) throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
205
+ resolved.add(name);
206
+ }
207
+ }
208
+ return name;
149
209
  }
150
210
  var Registry = class extends Registry$1 {
151
- constructor(_resolver, _themes, _langs, _alias = {}) {
152
- super(_resolver);
153
- __publicField(this, "_resolvedThemes", /* @__PURE__ */ new Map());
154
- __publicField(this, "_resolvedGrammars", /* @__PURE__ */ new Map());
155
- __publicField(this, "_langMap", /* @__PURE__ */ new Map());
156
- __publicField(this, "_langGraph", /* @__PURE__ */ new Map());
157
- __publicField(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap());
158
- __publicField(this, "_loadedThemesCache", null);
159
- __publicField(this, "_loadedLanguagesCache", null);
160
- this._resolver = _resolver;
161
- this._themes = _themes;
162
- this._langs = _langs;
163
- this._alias = _alias;
164
- this._themes.map((t) => this.loadTheme(t));
165
- this.loadLanguages(this._langs);
166
- }
167
- getTheme(theme) {
168
- if (typeof theme === "string") return this._resolvedThemes.get(theme);
169
- else return this.loadTheme(theme);
170
- }
171
- loadTheme(theme) {
172
- const _theme = normalizeTheme(theme);
173
- if (_theme.name) {
174
- this._resolvedThemes.set(_theme.name, _theme);
175
- this._loadedThemesCache = null;
176
- }
177
- return _theme;
178
- }
179
- getLoadedThemes() {
180
- if (!this._loadedThemesCache) this._loadedThemesCache = [...this._resolvedThemes.keys()];
181
- return this._loadedThemesCache;
182
- }
183
- setTheme(theme) {
184
- let textmateTheme = this._textmateThemeCache.get(theme);
185
- if (!textmateTheme) {
186
- textmateTheme = Theme.createFromRawTheme(theme);
187
- this._textmateThemeCache.set(theme, textmateTheme);
188
- }
189
- this._syncRegistry.setTheme(textmateTheme);
190
- }
191
- getGrammar(name) {
192
- name = resolveLangAlias(name, this._alias);
193
- return this._resolvedGrammars.get(name);
194
- }
195
- loadLanguage(lang) {
196
- if (this.getGrammar(lang.name)) return;
197
- const embeddedLazilyBy = new Set([...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name)));
198
- this._resolver.addLanguage(lang);
199
- const grammarConfig = {
200
- balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
201
- unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
202
- };
203
- this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
204
- const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
205
- g.name = lang.name;
206
- this._resolvedGrammars.set(lang.name, g);
207
- if (lang.aliases) lang.aliases.forEach((alias) => {
208
- this._alias[alias] = lang.name;
209
- });
210
- this._loadedLanguagesCache = null;
211
- if (embeddedLazilyBy.size) for (const e of embeddedLazilyBy) {
212
- this._resolvedGrammars.delete(e.name);
213
- this._loadedLanguagesCache = null;
214
- this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
215
- this._syncRegistry?._grammars?.delete(e.scopeName);
216
- this.loadLanguage(this._langMap.get(e.name));
217
- }
218
- }
219
- dispose() {
220
- super.dispose();
221
- this._resolvedThemes.clear();
222
- this._resolvedGrammars.clear();
223
- this._langMap.clear();
224
- this._langGraph.clear();
225
- this._loadedThemesCache = null;
226
- }
227
- loadLanguages(langs) {
228
- for (const lang of langs) this.resolveEmbeddedLanguages(lang);
229
- const langsGraphArray = Array.from(this._langGraph.entries());
230
- const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
231
- if (missingLangs.length) {
232
- const dependents = langsGraphArray.filter(([_, lang]) => {
233
- if (!lang) return false;
234
- return (lang.embeddedLanguages || lang.embeddedLangs)?.some((l) => missingLangs.map(([name]) => name).includes(l));
235
- }).filter((lang) => !missingLangs.includes(lang));
236
- throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
237
- }
238
- for (const [_, lang] of langsGraphArray) this._resolver.addLanguage(lang);
239
- for (const [_, lang] of langsGraphArray) this.loadLanguage(lang);
240
- }
241
- getLoadedLanguages() {
242
- if (!this._loadedLanguagesCache) this._loadedLanguagesCache = [.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])];
243
- return this._loadedLanguagesCache;
244
- }
245
- resolveEmbeddedLanguages(lang) {
246
- this._langMap.set(lang.name, lang);
247
- this._langGraph.set(lang.name, lang);
248
- const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
249
- if (embedded) for (const embeddedLang of embedded) this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
250
- }
211
+ constructor(_resolver, _themes, _langs, _alias = {}) {
212
+ super(_resolver);
213
+ _defineProperty(this, "_resolvedThemes", /* @__PURE__ */ new Map());
214
+ _defineProperty(this, "_resolvedGrammars", /* @__PURE__ */ new Map());
215
+ _defineProperty(this, "_langMap", /* @__PURE__ */ new Map());
216
+ _defineProperty(this, "_langGraph", /* @__PURE__ */ new Map());
217
+ _defineProperty(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap());
218
+ _defineProperty(this, "_loadedThemesCache", null);
219
+ _defineProperty(this, "_loadedLanguagesCache", null);
220
+ this._resolver = _resolver;
221
+ this._themes = _themes;
222
+ this._langs = _langs;
223
+ this._alias = _alias;
224
+ this._themes.map((t) => this.loadTheme(t));
225
+ this.loadLanguages(this._langs);
226
+ }
227
+ getTheme(theme) {
228
+ if (typeof theme === "string") return this._resolvedThemes.get(theme);
229
+ else return this.loadTheme(theme);
230
+ }
231
+ loadTheme(theme) {
232
+ const _theme = normalizeTheme(theme);
233
+ if (_theme.name) {
234
+ this._resolvedThemes.set(_theme.name, _theme);
235
+ this._loadedThemesCache = null;
236
+ }
237
+ return _theme;
238
+ }
239
+ getLoadedThemes() {
240
+ if (!this._loadedThemesCache) this._loadedThemesCache = [...this._resolvedThemes.keys()];
241
+ return this._loadedThemesCache;
242
+ }
243
+ setTheme(theme) {
244
+ let textmateTheme = this._textmateThemeCache.get(theme);
245
+ if (!textmateTheme) {
246
+ textmateTheme = Theme.createFromRawTheme(theme);
247
+ this._textmateThemeCache.set(theme, textmateTheme);
248
+ }
249
+ this._syncRegistry.setTheme(textmateTheme);
250
+ }
251
+ getGrammar(name) {
252
+ name = resolveLangAlias(name, this._alias);
253
+ return this._resolvedGrammars.get(name);
254
+ }
255
+ loadLanguage(lang) {
256
+ if (this.getGrammar(lang.name)) return;
257
+ const embeddedLazilyBy = new Set([...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name)));
258
+ this._resolver.addLanguage(lang);
259
+ const grammarConfig = {
260
+ balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
261
+ unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
262
+ };
263
+ this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
264
+ const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
265
+ g.name = lang.name;
266
+ this._resolvedGrammars.set(lang.name, g);
267
+ if (lang.aliases) lang.aliases.forEach((alias) => {
268
+ this._alias[alias] = lang.name;
269
+ });
270
+ this._loadedLanguagesCache = null;
271
+ if (embeddedLazilyBy.size) for (const e of embeddedLazilyBy) {
272
+ this._resolvedGrammars.delete(e.name);
273
+ this._loadedLanguagesCache = null;
274
+ this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
275
+ this._syncRegistry?._grammars?.delete(e.scopeName);
276
+ this.loadLanguage(this._langMap.get(e.name));
277
+ }
278
+ }
279
+ dispose() {
280
+ super.dispose();
281
+ this._resolvedThemes.clear();
282
+ this._resolvedGrammars.clear();
283
+ this._langMap.clear();
284
+ this._langGraph.clear();
285
+ this._loadedThemesCache = null;
286
+ }
287
+ loadLanguages(langs) {
288
+ for (const lang of langs) this.resolveEmbeddedLanguages(lang);
289
+ const langsGraphArray = Array.from(this._langGraph.entries());
290
+ const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
291
+ if (missingLangs.length) {
292
+ const dependents = langsGraphArray.filter(([_, lang]) => {
293
+ if (!lang) return false;
294
+ return (lang.embeddedLanguages || lang.embeddedLangs)?.some((l) => missingLangs.map(([name]) => name).includes(l));
295
+ }).filter((lang) => !missingLangs.includes(lang));
296
+ throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
297
+ }
298
+ for (const [_, lang] of langsGraphArray) this._resolver.addLanguage(lang);
299
+ for (const [_, lang] of langsGraphArray) this.loadLanguage(lang);
300
+ }
301
+ getLoadedLanguages() {
302
+ if (!this._loadedLanguagesCache) this._loadedLanguagesCache = [.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])];
303
+ return this._loadedLanguagesCache;
304
+ }
305
+ resolveEmbeddedLanguages(lang) {
306
+ this._langMap.set(lang.name, lang);
307
+ this._langGraph.set(lang.name, lang);
308
+ const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
309
+ if (embedded) for (const embeddedLang of embedded) this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
310
+ }
251
311
  };
252
312
  var Resolver = class {
253
- constructor(engine, langs) {
254
- __publicField(this, "_langs", /* @__PURE__ */ new Map());
255
- __publicField(this, "_scopeToLang", /* @__PURE__ */ new Map());
256
- __publicField(this, "_injections", /* @__PURE__ */ new Map());
257
- __publicField(this, "_onigLib");
258
- this._onigLib = {
259
- createOnigScanner: (patterns) => engine.createScanner(patterns),
260
- createOnigString: (s) => engine.createString(s)
261
- };
262
- langs.forEach((i) => this.addLanguage(i));
263
- }
264
- get onigLib() {
265
- return this._onigLib;
266
- }
267
- getLangRegistration(langIdOrAlias) {
268
- return this._langs.get(langIdOrAlias);
269
- }
270
- loadGrammar(scopeName) {
271
- return this._scopeToLang.get(scopeName);
272
- }
273
- addLanguage(l) {
274
- this._langs.set(l.name, l);
275
- if (l.aliases) l.aliases.forEach((a) => {
276
- this._langs.set(a, l);
277
- });
278
- this._scopeToLang.set(l.scopeName, l);
279
- if (l.injectTo) l.injectTo.forEach((i) => {
280
- if (!this._injections.get(i)) this._injections.set(i, []);
281
- this._injections.get(i).push(l.scopeName);
282
- });
283
- }
284
- getInjections(scopeName) {
285
- const scopeParts = scopeName.split(".");
286
- let injections = [];
287
- for (let i = 1; i <= scopeParts.length; i++) {
288
- const subScopeName = scopeParts.slice(0, i).join(".");
289
- injections = [...injections, ...this._injections.get(subScopeName) || []];
290
- }
291
- return injections;
292
- }
313
+ constructor(engine, langs) {
314
+ _defineProperty(this, "_langs", /* @__PURE__ */ new Map());
315
+ _defineProperty(this, "_scopeToLang", /* @__PURE__ */ new Map());
316
+ _defineProperty(this, "_injections", /* @__PURE__ */ new Map());
317
+ _defineProperty(this, "_onigLib", void 0);
318
+ this._onigLib = {
319
+ createOnigScanner: (patterns) => engine.createScanner(patterns),
320
+ createOnigString: (s) => engine.createString(s)
321
+ };
322
+ langs.forEach((i) => this.addLanguage(i));
323
+ }
324
+ get onigLib() {
325
+ return this._onigLib;
326
+ }
327
+ getLangRegistration(langIdOrAlias) {
328
+ return this._langs.get(langIdOrAlias);
329
+ }
330
+ loadGrammar(scopeName) {
331
+ return this._scopeToLang.get(scopeName);
332
+ }
333
+ addLanguage(l) {
334
+ this._langs.set(l.name, l);
335
+ if (l.aliases) l.aliases.forEach((a) => {
336
+ this._langs.set(a, l);
337
+ });
338
+ this._scopeToLang.set(l.scopeName, l);
339
+ if (l.injectTo) l.injectTo.forEach((i) => {
340
+ if (!this._injections.get(i)) this._injections.set(i, []);
341
+ this._injections.get(i).push(l.scopeName);
342
+ });
343
+ }
344
+ getInjections(scopeName) {
345
+ const scopeParts = scopeName.split(".");
346
+ let injections = [];
347
+ for (let i = 1; i <= scopeParts.length; i++) {
348
+ const subScopeName = scopeParts.slice(0, i).join(".");
349
+ injections = [...injections, ...this._injections.get(subScopeName) || []];
350
+ }
351
+ return injections;
352
+ }
293
353
  };
294
- let instancesCount = 0;
354
+ var instancesCount = 0;
355
+ /**
356
+ * Get the minimal shiki primitive instance.
357
+ *
358
+ * Requires to provide the engine and all themes and languages upfront.
359
+ */
295
360
  function createShikiPrimitive(options) {
296
- instancesCount += 1;
297
- if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0) 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.`);
298
- let isDisposed = false;
299
- if (!options.engine) throw new ShikiError("`engine` option is required for synchronous mode");
300
- const langs = (options.langs || []).flat(1);
301
- const themes = (options.themes || []).flat(1).map(normalizeTheme);
302
- const _registry = new Registry(new Resolver(options.engine, langs), themes, langs, options.langAlias);
303
- let _lastTheme;
304
- function resolveLangAlias$1(name) {
305
- return resolveLangAlias(name, options.langAlias);
306
- }
307
- function getLanguage(name) {
308
- ensureNotDisposed();
309
- const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
310
- if (!_lang) throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
311
- return _lang;
312
- }
313
- function getTheme(name) {
314
- if (name === "none") return {
315
- bg: "",
316
- fg: "",
317
- name: "none",
318
- settings: [],
319
- type: "dark"
320
- };
321
- ensureNotDisposed();
322
- const _theme = _registry.getTheme(name);
323
- if (!_theme) throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
324
- return _theme;
325
- }
326
- function setTheme(name) {
327
- ensureNotDisposed();
328
- const theme = getTheme(name);
329
- if (_lastTheme !== name) {
330
- _registry.setTheme(theme);
331
- _lastTheme = name;
332
- }
333
- return {
334
- theme,
335
- colorMap: _registry.getColorMap()
336
- };
337
- }
338
- function getLoadedThemes() {
339
- ensureNotDisposed();
340
- return _registry.getLoadedThemes();
341
- }
342
- function getLoadedLanguages() {
343
- ensureNotDisposed();
344
- return _registry.getLoadedLanguages();
345
- }
346
- function loadLanguageSync(...langs2) {
347
- ensureNotDisposed();
348
- _registry.loadLanguages(langs2.flat(1));
349
- }
350
- async function loadLanguage(...langs2) {
351
- return loadLanguageSync(await resolveLangs(langs2));
352
- }
353
- function loadThemeSync(...themes2) {
354
- ensureNotDisposed();
355
- for (const theme of themes2.flat(1)) _registry.loadTheme(theme);
356
- }
357
- async function loadTheme(...themes2) {
358
- ensureNotDisposed();
359
- return loadThemeSync(await resolveThemes(themes2));
360
- }
361
- function ensureNotDisposed() {
362
- if (isDisposed) throw new ShikiError("Shiki instance has been disposed");
363
- }
364
- function dispose() {
365
- if (isDisposed) return;
366
- isDisposed = true;
367
- _registry.dispose();
368
- instancesCount -= 1;
369
- }
370
- return {
371
- setTheme,
372
- getTheme,
373
- getLanguage,
374
- getLoadedThemes,
375
- getLoadedLanguages,
376
- resolveLangAlias: resolveLangAlias$1,
377
- loadLanguage,
378
- loadLanguageSync,
379
- loadTheme,
380
- loadThemeSync,
381
- dispose,
382
- [Symbol.dispose]: dispose
383
- };
361
+ instancesCount += 1;
362
+ if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0) 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.`);
363
+ let isDisposed = false;
364
+ if (!options.engine) throw new ShikiError("`engine` option is required for synchronous mode");
365
+ const langs = (options.langs || []).flat(1);
366
+ const themes = (options.themes || []).flat(1).map(normalizeTheme);
367
+ const _registry = new Registry(new Resolver(options.engine, langs), themes, langs, options.langAlias);
368
+ let _lastTheme;
369
+ function resolveLangAlias$1(name) {
370
+ return resolveLangAlias(name, options.langAlias);
371
+ }
372
+ function getLanguage(name) {
373
+ ensureNotDisposed();
374
+ const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
375
+ if (!_lang) throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
376
+ return _lang;
377
+ }
378
+ function getTheme(name) {
379
+ if (name === "none") return {
380
+ bg: "",
381
+ fg: "",
382
+ name: "none",
383
+ settings: [],
384
+ type: "dark"
385
+ };
386
+ ensureNotDisposed();
387
+ const _theme = _registry.getTheme(name);
388
+ if (!_theme) throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
389
+ return _theme;
390
+ }
391
+ function setTheme(name) {
392
+ ensureNotDisposed();
393
+ const theme = getTheme(name);
394
+ if (_lastTheme !== name) {
395
+ _registry.setTheme(theme);
396
+ _lastTheme = name;
397
+ }
398
+ return {
399
+ theme,
400
+ colorMap: _registry.getColorMap()
401
+ };
402
+ }
403
+ function getLoadedThemes() {
404
+ ensureNotDisposed();
405
+ return _registry.getLoadedThemes();
406
+ }
407
+ function getLoadedLanguages() {
408
+ ensureNotDisposed();
409
+ return _registry.getLoadedLanguages();
410
+ }
411
+ function loadLanguageSync(...langs) {
412
+ ensureNotDisposed();
413
+ _registry.loadLanguages(langs.flat(1));
414
+ }
415
+ async function loadLanguage(...langs) {
416
+ return loadLanguageSync(await resolveLangs(langs));
417
+ }
418
+ function loadThemeSync(...themes) {
419
+ ensureNotDisposed();
420
+ for (const theme of themes.flat(1)) _registry.loadTheme(theme);
421
+ }
422
+ async function loadTheme(...themes) {
423
+ ensureNotDisposed();
424
+ return loadThemeSync(await resolveThemes(themes));
425
+ }
426
+ function ensureNotDisposed() {
427
+ if (isDisposed) throw new ShikiError("Shiki instance has been disposed");
428
+ }
429
+ function dispose() {
430
+ if (isDisposed) return;
431
+ isDisposed = true;
432
+ _registry.dispose();
433
+ instancesCount -= 1;
434
+ }
435
+ return {
436
+ setTheme,
437
+ getTheme,
438
+ getLanguage,
439
+ getLoadedThemes,
440
+ getLoadedLanguages,
441
+ resolveLangAlias: resolveLangAlias$1,
442
+ loadLanguage,
443
+ loadLanguageSync,
444
+ loadTheme,
445
+ loadThemeSync,
446
+ dispose,
447
+ [Symbol.dispose]: dispose
448
+ };
384
449
  }
450
+ /**
451
+ * Get the minimal shiki primitive instance.
452
+ */
385
453
  async function createShikiPrimitiveAsync(options) {
386
- if (!options.engine) console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
387
- const [themes, langs, engine] = await Promise.all([
388
- resolveThemes(options.themes || []),
389
- resolveLangs(options.langs || []),
390
- options.engine
391
- ]);
392
- return createShikiPrimitive({
393
- ...options,
394
- themes,
395
- langs,
396
- engine
397
- });
454
+ if (!options.engine) console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
455
+ const [themes, langs, engine] = await Promise.all([
456
+ resolveThemes(options.themes || []),
457
+ resolveLangs(options.langs || []),
458
+ options.engine
459
+ ]);
460
+ return createShikiPrimitive({
461
+ ...options,
462
+ themes,
463
+ langs,
464
+ engine
465
+ });
398
466
  }
399
- const _grammarStateMap = /* @__PURE__ */ new WeakMap();
467
+ var _grammarStateMap = /* @__PURE__ */ new WeakMap();
400
468
  function setLastGrammarStateToMap(keys, state) {
401
- _grammarStateMap.set(keys, state);
469
+ _grammarStateMap.set(keys, state);
402
470
  }
403
471
  function getLastGrammarStateFromMap(keys) {
404
- return _grammarStateMap.get(keys);
472
+ return _grammarStateMap.get(keys);
405
473
  }
406
- var GrammarState = class GrammarState2 {
407
- constructor(...args) {
408
- /**
409
- * Theme to Stack mapping
410
- */
411
- __publicField(this, "_stacks", {});
412
- __publicField(this, "lang");
413
- if (args.length === 2) {
414
- const [stacksMap, lang] = args;
415
- this.lang = lang;
416
- this._stacks = stacksMap;
417
- } else {
418
- const [stack, lang, theme] = args;
419
- this.lang = lang;
420
- this._stacks = { [theme]: stack };
421
- }
422
- }
423
- get themes() {
424
- return Object.keys(this._stacks);
425
- }
426
- get theme() {
427
- return this.themes[0];
428
- }
429
- get _stack() {
430
- return this._stacks[this.theme];
431
- }
432
- /**
433
- * Static method to create a initial grammar state.
434
- */
435
- static initial(lang, themes) {
436
- return new GrammarState2(Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])), lang);
437
- }
438
- /**
439
- * Get the internal stack object.
440
- * @internal
441
- */
442
- getInternalStack(theme = this.theme) {
443
- return this._stacks[theme];
444
- }
445
- getScopes(theme = this.theme) {
446
- return getScopes(this._stacks[theme]);
447
- }
448
- toJSON() {
449
- return {
450
- lang: this.lang,
451
- theme: this.theme,
452
- themes: this.themes,
453
- scopes: this.getScopes()
454
- };
455
- }
474
+ /**
475
+ * GrammarState is a special reference object that holds the state of a grammar.
476
+ *
477
+ * It's used to highlight code snippets that are part of the target language.
478
+ */
479
+ var GrammarState = class GrammarState {
480
+ get themes() {
481
+ return Object.keys(this._stacks);
482
+ }
483
+ get theme() {
484
+ return this.themes[0];
485
+ }
486
+ get _stack() {
487
+ return this._stacks[this.theme];
488
+ }
489
+ /**
490
+ * Static method to create a initial grammar state.
491
+ */
492
+ static initial(lang, themes) {
493
+ return new GrammarState(Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])), lang);
494
+ }
495
+ constructor(...args) {
496
+ _defineProperty(
497
+ this,
498
+ /**
499
+ * Theme to Stack mapping
500
+ */
501
+ "_stacks",
502
+ {}
503
+ );
504
+ _defineProperty(this, "lang", void 0);
505
+ if (args.length === 2) {
506
+ const [stacksMap, lang] = args;
507
+ this.lang = lang;
508
+ this._stacks = stacksMap;
509
+ } else {
510
+ const [stack, lang, theme] = args;
511
+ this.lang = lang;
512
+ this._stacks = { [theme]: stack };
513
+ }
514
+ }
515
+ /**
516
+ * Get the internal stack object.
517
+ * @internal
518
+ */
519
+ getInternalStack(theme = this.theme) {
520
+ return this._stacks[theme];
521
+ }
522
+ getScopes(theme = this.theme) {
523
+ return getScopes(this._stacks[theme]);
524
+ }
525
+ toJSON() {
526
+ return {
527
+ lang: this.lang,
528
+ theme: this.theme,
529
+ themes: this.themes,
530
+ scopes: this.getScopes()
531
+ };
532
+ }
456
533
  };
457
534
  function getScopes(stack) {
458
- const scopes = [];
459
- const visited = /* @__PURE__ */ new Set();
460
- function pushScope(stack2) {
461
- if (visited.has(stack2)) return;
462
- visited.add(stack2);
463
- const name = stack2?.nameScopesList?.scopeName;
464
- if (name) scopes.push(name);
465
- if (stack2.parent) pushScope(stack2.parent);
466
- }
467
- pushScope(stack);
468
- return scopes;
535
+ const scopes = [];
536
+ const visited = /* @__PURE__ */ new Set();
537
+ function pushScope(stack) {
538
+ if (visited.has(stack)) return;
539
+ visited.add(stack);
540
+ const name = stack?.nameScopesList?.scopeName;
541
+ if (name) scopes.push(name);
542
+ if (stack.parent) pushScope(stack.parent);
543
+ }
544
+ pushScope(stack);
545
+ return scopes;
469
546
  }
470
547
  function getGrammarStack(state, theme) {
471
- if (!(state instanceof GrammarState)) throw new ShikiError("Invalid grammar state");
472
- return state.getInternalStack(theme);
548
+ if (!(state instanceof GrammarState)) throw new ShikiError("Invalid grammar state");
549
+ return state.getInternalStack(theme);
473
550
  }
551
+ /**
552
+ * Code to tokens, with a simple theme.
553
+ */
474
554
  function codeToTokensBase(primitive, code, options = {}) {
475
- const { theme: themeName = primitive.getLoadedThemes()[0] } = options;
476
- if (isPlainLang(primitive.resolveLangAlias(options.lang || "text")) || isNoneTheme(themeName)) return splitLines(code).map((line) => [{
477
- content: line[0],
478
- offset: line[1]
479
- }]);
480
- const { theme, colorMap } = primitive.setTheme(themeName);
481
- const _grammar = primitive.getLanguage(options.lang || "text");
482
- if (options.grammarState) {
483
- if (options.grammarState.lang !== _grammar.name) throw new ShikiError(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
484
- if (!options.grammarState.themes.includes(theme.name)) throw new ShikiError(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
485
- }
486
- return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
555
+ const { theme: themeName = primitive.getLoadedThemes()[0] } = options;
556
+ if (isPlainLang(primitive.resolveLangAlias(options.lang || "text")) || isNoneTheme(themeName)) return splitLines(code).map((line) => [{
557
+ content: line[0],
558
+ offset: line[1]
559
+ }]);
560
+ const { theme, colorMap } = primitive.setTheme(themeName);
561
+ const _grammar = primitive.getLanguage(options.lang || "text");
562
+ if (options.grammarState) {
563
+ if (options.grammarState.lang !== _grammar.name) throw new ShikiError(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
564
+ if (!options.grammarState.themes.includes(theme.name)) throw new ShikiError(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
565
+ }
566
+ return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
487
567
  }
488
568
  function getLastGrammarState(...args) {
489
- if (args.length === 2) return getLastGrammarStateFromMap(args[1]);
490
- const [primitive, code, options = {}] = args;
491
- const { lang = "text", theme: themeName = primitive.getLoadedThemes()[0] } = options;
492
- if (isPlainLang(lang) || isNoneTheme(themeName)) throw new ShikiError("Plain language does not have grammar state");
493
- if (lang === "ansi") throw new ShikiError("ANSI language does not have grammar state");
494
- const { theme, colorMap } = primitive.setTheme(themeName);
495
- const _grammar = primitive.getLanguage(lang);
496
- return new GrammarState(_tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack, _grammar.name, theme.name);
569
+ if (args.length === 2) return getLastGrammarStateFromMap(args[1]);
570
+ const [primitive, code, options = {}] = args;
571
+ const { lang = "text", theme: themeName = primitive.getLoadedThemes()[0] } = options;
572
+ if (isPlainLang(lang) || isNoneTheme(themeName)) throw new ShikiError("Plain language does not have grammar state");
573
+ if (lang === "ansi") throw new ShikiError("ANSI language does not have grammar state");
574
+ const { theme, colorMap } = primitive.setTheme(themeName);
575
+ const _grammar = primitive.getLanguage(lang);
576
+ return new GrammarState(_tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack, _grammar.name, theme.name);
497
577
  }
498
578
  function tokenizeWithTheme(code, grammar, theme, colorMap, options) {
499
- const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
500
- const grammarState = new GrammarState(result.stateStack, grammar.name, theme.name);
501
- setLastGrammarStateToMap(result.tokens, grammarState);
502
- return result.tokens;
579
+ const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
580
+ const grammarState = new GrammarState(result.stateStack, grammar.name, theme.name);
581
+ setLastGrammarStateToMap(result.tokens, grammarState);
582
+ return result.tokens;
503
583
  }
504
584
  function _tokenizeWithTheme(code, grammar, theme, colorMap, options) {
505
- const colorReplacements = resolveColorReplacements(theme, options);
506
- const { tokenizeMaxLineLength = 0, tokenizeTimeLimit = 500 } = options;
507
- const lines = splitLines(code);
508
- let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(options.grammarContextCode, grammar, theme, colorMap, {
509
- ...options,
510
- grammarState: void 0,
511
- grammarContextCode: void 0
512
- }).stateStack : INITIAL;
513
- let actual = [];
514
- const final = [];
515
- for (let i = 0, len = lines.length; i < len; i++) {
516
- const [line, lineOffset] = lines[i];
517
- if (line === "") {
518
- actual = [];
519
- final.push([]);
520
- continue;
521
- }
522
- if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
523
- actual = [];
524
- final.push([{
525
- content: line,
526
- offset: lineOffset,
527
- color: "",
528
- fontStyle: 0
529
- }]);
530
- continue;
531
- }
532
- let resultWithScopes;
533
- let tokensWithScopes;
534
- let tokensWithScopesIndex;
535
- if (options.includeExplanation) {
536
- resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
537
- tokensWithScopes = resultWithScopes.tokens;
538
- tokensWithScopesIndex = 0;
539
- }
540
- const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
541
- const tokensLength = result.tokens.length / 2;
542
- for (let j = 0; j < tokensLength; j++) {
543
- const startIndex = result.tokens[2 * j];
544
- const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
545
- if (startIndex === nextStartIndex) continue;
546
- const metadata = result.tokens[2 * j + 1];
547
- const color = applyColorReplacements(colorMap[EncodedTokenMetadata.getForeground(metadata)], colorReplacements);
548
- const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
549
- const token = {
550
- content: line.substring(startIndex, nextStartIndex),
551
- offset: lineOffset + startIndex,
552
- color,
553
- fontStyle
554
- };
555
- if (options.includeExplanation) {
556
- const themeSettingsSelectors = [];
557
- if (options.includeExplanation !== "scopeName") for (const setting of theme.settings) {
558
- let selectors;
559
- switch (typeof setting.scope) {
560
- case "string":
561
- selectors = setting.scope.split(/,/).map((scope) => scope.trim());
562
- break;
563
- case "object":
564
- selectors = setting.scope;
565
- break;
566
- default:
567
- continue;
568
- }
569
- themeSettingsSelectors.push({
570
- settings: setting,
571
- selectors: selectors.map((selector) => selector.split(/ /))
572
- });
573
- }
574
- token.explanation = [];
575
- let offset = 0;
576
- while (startIndex + offset < nextStartIndex) {
577
- const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
578
- const tokenWithScopesText = line.substring(tokenWithScopes.startIndex, tokenWithScopes.endIndex);
579
- offset += tokenWithScopesText.length;
580
- token.explanation.push({
581
- content: tokenWithScopesText,
582
- scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(tokenWithScopes.scopes) : explainThemeScopesFull(themeSettingsSelectors, tokenWithScopes.scopes)
583
- });
584
- tokensWithScopesIndex += 1;
585
- }
586
- }
587
- actual.push(token);
588
- }
589
- final.push(actual);
590
- actual = [];
591
- stateStack = result.ruleStack;
592
- }
593
- return {
594
- tokens: final,
595
- stateStack
596
- };
585
+ const colorReplacements = resolveColorReplacements(theme, options);
586
+ const { tokenizeMaxLineLength = 0, tokenizeTimeLimit = 500 } = options;
587
+ const lines = splitLines(code);
588
+ let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(options.grammarContextCode, grammar, theme, colorMap, {
589
+ ...options,
590
+ grammarState: void 0,
591
+ grammarContextCode: void 0
592
+ }).stateStack : INITIAL;
593
+ let actual = [];
594
+ const final = [];
595
+ for (let i = 0, len = lines.length; i < len; i++) {
596
+ const [line, lineOffset] = lines[i];
597
+ if (line === "") {
598
+ actual = [];
599
+ final.push([]);
600
+ continue;
601
+ }
602
+ if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
603
+ actual = [];
604
+ final.push([{
605
+ content: line,
606
+ offset: lineOffset,
607
+ color: "",
608
+ fontStyle: 0
609
+ }]);
610
+ continue;
611
+ }
612
+ let resultWithScopes;
613
+ let tokensWithScopes;
614
+ let tokensWithScopesIndex;
615
+ if (options.includeExplanation) {
616
+ resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
617
+ tokensWithScopes = resultWithScopes.tokens;
618
+ tokensWithScopesIndex = 0;
619
+ }
620
+ const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
621
+ const tokensLength = result.tokens.length / 2;
622
+ for (let j = 0; j < tokensLength; j++) {
623
+ const startIndex = result.tokens[2 * j];
624
+ const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
625
+ if (startIndex === nextStartIndex) continue;
626
+ const metadata = result.tokens[2 * j + 1];
627
+ const color = applyColorReplacements(colorMap[EncodedTokenMetadata.getForeground(metadata)], colorReplacements);
628
+ const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
629
+ const token = {
630
+ content: line.substring(startIndex, nextStartIndex),
631
+ offset: lineOffset + startIndex,
632
+ color,
633
+ fontStyle
634
+ };
635
+ if (options.includeExplanation) {
636
+ const themeSettingsSelectors = [];
637
+ if (options.includeExplanation !== "scopeName") for (const setting of theme.settings) {
638
+ let selectors;
639
+ switch (typeof setting.scope) {
640
+ case "string":
641
+ selectors = setting.scope.split(/,/).map((scope) => scope.trim());
642
+ break;
643
+ case "object":
644
+ selectors = setting.scope;
645
+ break;
646
+ default: continue;
647
+ }
648
+ themeSettingsSelectors.push({
649
+ settings: setting,
650
+ selectors: selectors.map((selector) => selector.split(/ /))
651
+ });
652
+ }
653
+ token.explanation = [];
654
+ let offset = 0;
655
+ while (startIndex + offset < nextStartIndex) {
656
+ const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
657
+ const tokenWithScopesText = line.substring(tokenWithScopes.startIndex, tokenWithScopes.endIndex);
658
+ offset += tokenWithScopesText.length;
659
+ token.explanation.push({
660
+ content: tokenWithScopesText,
661
+ scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(tokenWithScopes.scopes) : explainThemeScopesFull(themeSettingsSelectors, tokenWithScopes.scopes)
662
+ });
663
+ tokensWithScopesIndex += 1;
664
+ }
665
+ }
666
+ actual.push(token);
667
+ }
668
+ final.push(actual);
669
+ actual = [];
670
+ stateStack = result.ruleStack;
671
+ }
672
+ return {
673
+ tokens: final,
674
+ stateStack
675
+ };
597
676
  }
598
677
  function explainThemeScopesNameOnly(scopes) {
599
- return scopes.map((scope) => ({ scopeName: scope }));
678
+ return scopes.map((scope) => ({ scopeName: scope }));
600
679
  }
601
680
  function explainThemeScopesFull(themeSelectors, scopes) {
602
- const result = [];
603
- for (let i = 0, len = scopes.length; i < len; i++) {
604
- const scope = scopes[i];
605
- result[i] = {
606
- scopeName: scope,
607
- themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
608
- };
609
- }
610
- return result;
681
+ const result = [];
682
+ for (let i = 0, len = scopes.length; i < len; i++) {
683
+ const scope = scopes[i];
684
+ result[i] = {
685
+ scopeName: scope,
686
+ themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
687
+ };
688
+ }
689
+ return result;
611
690
  }
612
691
  function matchesOne(selector, scope) {
613
- return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
692
+ return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
614
693
  }
615
694
  function matches(selectors, scope, parentScopes) {
616
- if (!matchesOne(selectors[selectors.length - 1], scope)) return false;
617
- let selectorParentIndex = selectors.length - 2;
618
- let parentIndex = parentScopes.length - 1;
619
- while (selectorParentIndex >= 0 && parentIndex >= 0) {
620
- if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex])) selectorParentIndex -= 1;
621
- parentIndex -= 1;
622
- }
623
- if (selectorParentIndex === -1) return true;
624
- return false;
695
+ if (!matchesOne(selectors[selectors.length - 1], scope)) return false;
696
+ let selectorParentIndex = selectors.length - 2;
697
+ let parentIndex = parentScopes.length - 1;
698
+ while (selectorParentIndex >= 0 && parentIndex >= 0) {
699
+ if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex])) selectorParentIndex -= 1;
700
+ parentIndex -= 1;
701
+ }
702
+ if (selectorParentIndex === -1) return true;
703
+ return false;
625
704
  }
626
705
  function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
627
- const result = [];
628
- for (const { selectors, settings } of themeSettingsSelectors) for (const selectorPieces of selectors) if (matches(selectorPieces, scope, parentScopes)) {
629
- result.push(settings);
630
- break;
631
- }
632
- return result;
706
+ const result = [];
707
+ for (const { selectors, settings } of themeSettingsSelectors) for (const selectorPieces of selectors) if (matches(selectorPieces, scope, parentScopes)) {
708
+ result.push(settings);
709
+ break;
710
+ }
711
+ return result;
633
712
  }
713
+ /**
714
+ * Get tokens with multiple themes
715
+ */
634
716
  function codeToTokensWithThemes(primitive, code, options, codeToTokensBaseFn = codeToTokensBase) {
635
- const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({
636
- color: i[0],
637
- theme: i[1]
638
- }));
639
- const themedTokens = themes.map((t) => {
640
- const tokens2 = codeToTokensBaseFn(primitive, code, {
641
- ...options,
642
- theme: t.theme
643
- });
644
- return {
645
- tokens: tokens2,
646
- state: getLastGrammarStateFromMap(tokens2),
647
- theme: typeof t.theme === "string" ? t.theme : t.theme.name
648
- };
649
- });
650
- const tokens = alignThemesTokenization(...themedTokens.map((i) => i.tokens));
651
- const mergedTokens = tokens[0].map((line, lineIdx) => line.map((_token, tokenIdx) => {
652
- const mergedToken = {
653
- content: _token.content,
654
- variants: {},
655
- offset: _token.offset
656
- };
657
- if ("includeExplanation" in options && options.includeExplanation) mergedToken.explanation = _token.explanation;
658
- tokens.forEach((t, themeIdx) => {
659
- const { content: _, explanation: __, offset: ___, ...styles } = t[lineIdx][tokenIdx];
660
- mergedToken.variants[themes[themeIdx].color] = styles;
661
- });
662
- return mergedToken;
663
- }));
664
- const mergedGrammarState = themedTokens[0].state ? new GrammarState(Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])), themedTokens[0].state.lang) : void 0;
665
- if (mergedGrammarState) setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
666
- return mergedTokens;
717
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({
718
+ color: i[0],
719
+ theme: i[1]
720
+ }));
721
+ const themedTokens = themes.map((t) => {
722
+ const tokens = codeToTokensBaseFn(primitive, code, {
723
+ ...options,
724
+ theme: t.theme
725
+ });
726
+ return {
727
+ tokens,
728
+ state: getLastGrammarStateFromMap(tokens),
729
+ theme: typeof t.theme === "string" ? t.theme : t.theme.name
730
+ };
731
+ });
732
+ const tokens = alignThemesTokenization(...themedTokens.map((i) => i.tokens));
733
+ const mergedTokens = tokens[0].map((line, lineIdx) => line.map((_token, tokenIdx) => {
734
+ const mergedToken = {
735
+ content: _token.content,
736
+ variants: {},
737
+ offset: _token.offset
738
+ };
739
+ if ("includeExplanation" in options && options.includeExplanation) mergedToken.explanation = _token.explanation;
740
+ tokens.forEach((t, themeIdx) => {
741
+ const { content: _, explanation: __, offset: ___, ...styles } = t[lineIdx][tokenIdx];
742
+ mergedToken.variants[themes[themeIdx].color] = styles;
743
+ });
744
+ return mergedToken;
745
+ }));
746
+ const mergedGrammarState = themedTokens[0].state ? new GrammarState(Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])), themedTokens[0].state.lang) : void 0;
747
+ if (mergedGrammarState) setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
748
+ return mergedTokens;
667
749
  }
750
+ /**
751
+ * Break tokens from multiple themes into same tokenization.
752
+ *
753
+ * For example, given two themes that tokenize `console.log("hello")` as:
754
+ *
755
+ * - `console . log (" hello ")` (6 tokens)
756
+ * - `console .log ( "hello" )` (5 tokens)
757
+ *
758
+ * This function will return:
759
+ *
760
+ * - `console . log ( " hello " )` (8 tokens)
761
+ * - `console . log ( " hello " )` (8 tokens)
762
+ */
668
763
  function alignThemesTokenization(...themes) {
669
- const outThemes = themes.map(() => []);
670
- const count = themes.length;
671
- for (let i = 0; i < themes[0].length; i++) {
672
- const lines = themes.map((t) => t[i]);
673
- const outLines = outThemes.map(() => []);
674
- outThemes.forEach((t, i2) => t.push(outLines[i2]));
675
- const indexes = lines.map(() => 0);
676
- const current = lines.map((l) => l[0]);
677
- while (current.every((t) => t)) {
678
- const minLength = Math.min(...current.map((t) => t.content.length));
679
- for (let n = 0; n < count; n++) {
680
- const token = current[n];
681
- if (token.content.length === minLength) {
682
- outLines[n].push(token);
683
- indexes[n] += 1;
684
- current[n] = lines[n][indexes[n]];
685
- } else {
686
- outLines[n].push({
687
- ...token,
688
- content: token.content.slice(0, minLength)
689
- });
690
- current[n] = {
691
- ...token,
692
- content: token.content.slice(minLength),
693
- offset: token.offset + minLength
694
- };
695
- }
696
- }
697
- }
698
- }
699
- return outThemes;
764
+ const outThemes = themes.map(() => []);
765
+ const count = themes.length;
766
+ for (let i = 0; i < themes[0].length; i++) {
767
+ const lines = themes.map((t) => t[i]);
768
+ const outLines = outThemes.map(() => []);
769
+ outThemes.forEach((t, i) => t.push(outLines[i]));
770
+ const indexes = lines.map(() => 0);
771
+ const current = lines.map((l) => l[0]);
772
+ while (current.every((t) => t)) {
773
+ const minLength = Math.min(...current.map((t) => t.content.length));
774
+ for (let n = 0; n < count; n++) {
775
+ const token = current[n];
776
+ if (token.content.length === minLength) {
777
+ outLines[n].push(token);
778
+ indexes[n] += 1;
779
+ current[n] = lines[n][indexes[n]];
780
+ } else {
781
+ outLines[n].push({
782
+ ...token,
783
+ content: token.content.slice(0, minLength)
784
+ });
785
+ current[n] = {
786
+ ...token,
787
+ content: token.content.slice(minLength),
788
+ offset: token.offset + minLength
789
+ };
790
+ }
791
+ }
792
+ }
793
+ }
794
+ return outThemes;
700
795
  }
701
- export {
702
- GrammarState,
703
- Registry,
704
- Resolver,
705
- ShikiError,
706
- alignThemesTokenization,
707
- applyColorReplacements,
708
- codeToTokensBase,
709
- codeToTokensWithThemes,
710
- createShikiPrimitive,
711
- createShikiPrimitiveAsync,
712
- getGrammarStack,
713
- getLastGrammarState,
714
- getLastGrammarStateFromMap,
715
- isNoneTheme,
716
- isPlainLang,
717
- isSpecialLang,
718
- isSpecialTheme,
719
- normalizeGetter,
720
- normalizeTheme,
721
- resolveColorReplacements,
722
- resolveLangAlias,
723
- resolveLangs,
724
- resolveThemes,
725
- setLastGrammarStateToMap,
726
- splitLines,
727
- toArray,
728
- tokenizeWithTheme
729
- };
796
+ export { GrammarState, Registry, Resolver, ShikiError, alignThemesTokenization, applyColorReplacements, codeToTokensBase, codeToTokensWithThemes, createShikiPrimitive, createShikiPrimitiveAsync, getGrammarStack, getLastGrammarState, getLastGrammarStateFromMap, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, normalizeGetter, normalizeTheme, resolveColorReplacements, resolveLangAlias, resolveLangs, resolveThemes, setLastGrammarStateToMap, splitLines, toArray, tokenizeWithTheme };