mastra 0.1.57-unstable.56 → 0.1.57-unstable.88

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 (94) hide show
  1. package/dist/commands/create/create.d.ts +8 -0
  2. package/dist/commands/create/create.d.ts.map +1 -0
  3. package/dist/commands/create/create.js +35 -0
  4. package/dist/commands/create/utils.d.ts +4 -0
  5. package/dist/commands/create/utils.d.ts.map +1 -0
  6. package/dist/commands/create/utils.js +58 -0
  7. package/dist/commands/deploy/cloudflare/index.d.ts.map +1 -1
  8. package/dist/commands/deploy/cloudflare/index.js +2 -0
  9. package/dist/commands/deploy/deployer.d.ts +4 -2
  10. package/dist/commands/deploy/deployer.d.ts.map +1 -1
  11. package/dist/commands/deploy/deployer.js +4 -4
  12. package/dist/commands/deploy/index.d.ts +2 -1
  13. package/dist/commands/deploy/index.d.ts.map +1 -1
  14. package/dist/commands/deploy/index.js +2 -2
  15. package/dist/commands/deploy/netlify/index.d.ts.map +1 -1
  16. package/dist/commands/deploy/netlify/index.js +2 -0
  17. package/dist/commands/deploy/vercel/index.d.ts +2 -1
  18. package/dist/commands/deploy/vercel/index.d.ts.map +1 -1
  19. package/dist/commands/deploy/vercel/index.js +4 -1
  20. package/dist/commands/dev.d.ts +1 -7
  21. package/dist/commands/dev.d.ts.map +1 -1
  22. package/dist/commands/dev.js +117 -12
  23. package/dist/commands/engine/down.d.ts +1 -1
  24. package/dist/commands/engine/down.d.ts.map +1 -1
  25. package/dist/commands/engine/down.js +3 -2
  26. package/dist/commands/engine/up.d.ts +1 -1
  27. package/dist/commands/engine/up.d.ts.map +1 -1
  28. package/dist/commands/engine/up.js +3 -2
  29. package/dist/commands/init/init.d.ts +2 -2
  30. package/dist/commands/init/init.d.ts.map +1 -1
  31. package/dist/commands/init/init.js +33 -9
  32. package/dist/commands/init/utils.d.ts +21 -9
  33. package/dist/commands/init/utils.d.ts.map +1 -1
  34. package/dist/commands/init/utils.js +64 -74
  35. package/dist/index.d.ts +2 -1
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +57 -57
  38. package/dist/services/service.deps.d.ts +1 -0
  39. package/dist/services/service.deps.d.ts.map +1 -1
  40. package/dist/services/service.deps.js +8 -0
  41. package/dist/services/service.docker.d.ts +1 -0
  42. package/dist/services/service.docker.d.ts.map +1 -1
  43. package/dist/services/service.docker.js +20 -0
  44. package/dist/src/starter-files/config.ts +28 -0
  45. package/dist/src/starter-files/mastra-pg.docker-compose.yaml +15 -0
  46. package/dist/src/starter-files/tools.ts +95 -0
  47. package/dist/src/starter-files/workflow.ts +173 -0
  48. package/dist/templates/express-server.d.ts.map +1 -1
  49. package/dist/templates/express-server.js +70 -43
  50. package/dist/templates/netlify.d.ts.map +1 -1
  51. package/dist/templates/netlify.js +199 -34
  52. package/dist/templates/worker.d.ts.map +1 -1
  53. package/dist/templates/worker.js +255 -35
  54. package/dist/utils/bundle.d.ts +4 -1
  55. package/dist/utils/bundle.d.ts.map +1 -1
  56. package/dist/utils/bundle.js +28 -13
  57. package/package.json +7 -3
  58. package/src/playground/dist/assets/dark-plus-C3mMm8J8.js +1 -0
  59. package/src/playground/dist/assets/erb-BgreK6rt.js +1 -0
  60. package/src/playground/dist/assets/{gdresource-D_y5yz_M.js → gdresource-NFcQ0Q3Z.js} +1 -1
  61. package/src/playground/dist/assets/gdscript-BVlVXSjx.js +1 -0
  62. package/src/playground/dist/assets/{hcl-Cztwc-HH.js → hcl-_Zu0RE-q.js} +1 -1
  63. package/src/playground/dist/assets/index-BiEU7Tmg.js +389 -0
  64. package/src/playground/dist/assets/index-Cke4BidO.js +13 -0
  65. package/src/playground/dist/assets/light-plus-B7mTdjB0.js +1 -0
  66. package/src/playground/dist/assets/{monokai-CQWsIgnU.js → monokai-D4h5O-jR.js} +1 -1
  67. package/src/playground/dist/assets/prisma-CZzQMiei.js +1 -0
  68. package/src/playground/dist/assets/red-bN70gL4F.js +1 -0
  69. package/src/playground/dist/assets/rst-BCmapc_q.js +1 -0
  70. package/src/playground/dist/assets/ruby-DsC6krmi.js +1 -0
  71. package/src/playground/dist/assets/{solarized-dark-CmY0Y6Yh.js → solarized-dark-DXbdFlpD.js} +1 -1
  72. package/src/playground/dist/assets/{solarized-light-DZQMDcrx.js → solarized-light-L9t79GZl.js} +1 -1
  73. package/src/playground/dist/assets/style-7CS44jOg.css +1 -0
  74. package/src/playground/dist/assets/twig-CvAdjvFj.js +1 -0
  75. package/src/playground/dist/assets/{vue-html-x3hEOujm.js → vue-html-59TQSa_j.js} +1 -1
  76. package/src/playground/dist/assets/vue-srE0XGv_.js +1 -0
  77. package/src/playground/dist/index.html +2 -2
  78. package/src/starter-files/tools.ts +88 -14
  79. package/src/starter-files/workflow.ts +160 -21
  80. package/src/playground/dist/assets/dark-plus-B74Y8nHz.js +0 -1
  81. package/src/playground/dist/assets/erb-DuefeV9w.js +0 -1
  82. package/src/playground/dist/assets/gdscript-BIguuW30.js +0 -1
  83. package/src/playground/dist/assets/index-CzqDlQul.js +0 -13
  84. package/src/playground/dist/assets/index-qFy09kRJ.js +0 -360
  85. package/src/playground/dist/assets/light-plus-w1el_4yc.js +0 -1
  86. package/src/playground/dist/assets/prisma-DFIOpqzz.js +0 -1
  87. package/src/playground/dist/assets/red-2pWuV6-S.js +0 -1
  88. package/src/playground/dist/assets/rst-BtGMdPX_.js +0 -1
  89. package/src/playground/dist/assets/ruby-C8Yez0Ov.js +0 -1
  90. package/src/playground/dist/assets/style-x_8NJ6Q9.css +0 -1
  91. package/src/playground/dist/assets/twig-DN6YEzOP.js +0 -1
  92. package/src/playground/dist/assets/vue-xldAUJov.js +0 -1
  93. package/src/starter-files/api.ts +0 -11
  94. package/src/starter-files/framework-utils.ts +0 -33
@@ -1,13 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-GqBVQ6Dm.js","assets/html-DG1TtFnM.js","assets/javascript-DNgb01dh.js","assets/css-u4bm_LMz.js","assets/angular-ts-MKs4dlu_.js","assets/scss-BfMQ58X7.js","assets/apl-C6GBNg32.js","assets/xml-BOQ9RtXF.js","assets/java-BN40hmum.js","assets/json-DWmkr0yC.js","assets/astro-DTSlZd1t.js","assets/typescript-CVESyXxo.js","assets/postcss-DmF4-xLG.js","assets/blade-CPEzV-UE.js","assets/sql-D8nBeWSR.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo-BM1Freo3.js","assets/python-CK56Z9cH.js","assets/cobol-NX_YbRMJ.js","assets/coffee-CXcjgkhu.js","assets/cpp-IRqjNdQP.js","assets/regexp-DoiKbUTj.js","assets/glsl-bwZ1_LLM.js","assets/c-BhsLqr-4.js","assets/crystal-DFEzbmK1.js","assets/shellscript-HNM5thJl.js","assets/edge-Cq_6DOij.js","assets/html-derivative-CDVwFiY1.js","assets/elixir-BoNJ9vXU.js","assets/elm-CTr_twwF.js","assets/erb-DuefeV9w.js","assets/ruby-C8Yez0Ov.js","assets/lua-B2--UKVN.js","assets/fortran-fixed-form-C9lV_GL-.js","assets/fortran-free-form-B3Z_eaxm.js","assets/fsharp-Vw5t3P44.js","assets/markdown-CNXuF1yM.js","assets/gdresource-D_y5yz_M.js","assets/gdshader-BSHf-0eb.js","assets/gdscript-BIguuW30.js","assets/git-commit-C0WNX4K0.js","assets/diff-Dnfm4U7b.js","assets/git-rebase-3YLVFLpI.js","assets/glimmer-js-D4fdoRWd.js","assets/glimmer-ts-DFoQQgBS.js","assets/graphql-DqgCZ2sd.js","assets/jsx-CM4fc1WH.js","assets/tsx-DqpEK-75.js","assets/hack-BV5LM4CS.js","assets/haml-B1jT_oKV.js","assets/handlebars-HtVeTy3a.js","assets/yaml-CIiI48o2.js","assets/http-CYnz8shJ.js","assets/hxml-BfFmssGd.js","assets/haxe-BgqZeg96.js","assets/imba-C6vdFTm2.js","assets/jinja-BORjBBXU.js","assets/jison-Ct8rtT8R.js","assets/julia-Czdw582_.js","assets/r-Cqv5JV-q.js","assets/latex-BpoAco4y.js","assets/tex-Dej6pUpk.js","assets/liquid-DlGqZaOj.js","assets/marko-BxSrAFJn.js","assets/less-Dk1rBueR.js","assets/mdc-DfEMzj3F.js","assets/nginx-Dw0nYz9L.js","assets/nim-NHYZZDnF.js","assets/perl-DLffUHFU.js","assets/php-D3VTUn6x.js","assets/pug-BbGfWiEl.js","assets/qml-Dhho_E4W.js","assets/razor-CDyaIOPG.js","assets/csharp-D7v6OrNy.js","assets/rst-BtGMdPX_.js","assets/cmake-DbXoA79R.js","assets/sas-K_Wwm3IX.js","assets/shaderlab-CsYUIUcf.js","assets/hlsl-DkpUthgY.js","assets/shellsession-DU_2P5ZA.js","assets/soy-aWhPD8Nq.js","assets/sparql-B5YtT9lV.js","assets/turtle-C0hdQUNN.js","assets/stata-bRt97scT.js","assets/svelte-B94b8dMa.js","assets/templ-MrK5mfgg.js","assets/go-C5-9kuJc.js","assets/ts-tags-CiO5kd_m.js","assets/twig-DN6YEzOP.js","assets/vue-xldAUJov.js","assets/vue-html-x3hEOujm.js","assets/xsl-BqG2VzO2.js"])))=>i.map(i=>d[i]);
2
- var Qt=Object.defineProperty;var Xt=(r,e,t)=>e in r?Qt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var A=(r,e,t)=>Xt(r,typeof e!="symbol"?e+"":e,t);import{_ as l,w as je,s as gt,f as Yt,a as Zt,b as er,c as Xe,h as tr}from"./index-qFy09kRJ.js";const Ye={}.hasOwnProperty;function rr(r,e){const t=e||{};function i(n,...s){let o=i.invalid;const c=i.handlers;if(n&&Ye.call(n,r)){const a=String(n[r]);o=Ye.call(c,a)?c[a]:i.unknown}if(o)return o.call(this,n,...s)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Et=[{id:"abap",name:"ABAP",import:()=>l(()=>import("./abap-BwpQXVS2.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>l(()=>import("./actionscript-3-Ci-La1BS.js"),[])},{id:"ada",name:"Ada",import:()=>l(()=>import("./ada-DOAn35dn.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>l(()=>import("./angular-html-GqBVQ6Dm.js").then(r=>r.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>l(()=>import("./angular-ts-MKs4dlu_.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>l(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>l(()=>import("./apex-BzwtH5UL.js"),[])},{id:"apl",name:"APL",import:()=>l(()=>import("./apl-C6GBNg32.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>l(()=>import("./applescript-DIt9OTko.js"),[])},{id:"ara",name:"Ara",import:()=>l(()=>import("./ara-CJxt7p29.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>l(()=>import("./asciidoc-CcSEeikT.js"),[])},{id:"asm",name:"Assembly",import:()=>l(()=>import("./asm-DPTZissz.js"),[])},{id:"astro",name:"Astro",import:()=>l(()=>import("./astro-DTSlZd1t.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>l(()=>import("./awk-BINKOAKH.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>l(()=>import("./ballerina-DCcCncrU.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>l(()=>import("./bat-B9Vj0mJK.js"),[])},{id:"beancount",name:"Beancount",import:()=>l(()=>import("./beancount-DDUKAZWS.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>l(()=>import("./berry-DnyWjya5.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>l(()=>import("./bibtex-CpWBKVjh.js"),[])},{id:"bicep",name:"Bicep",import:()=>l(()=>import("./bicep-BWkuYGGO.js"),[])},{id:"blade",name:"Blade",import:()=>l(()=>import("./blade-CPEzV-UE.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>l(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>l(()=>import("./c-BhsLqr-4.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>l(()=>import("./cadence-CEjiMJLT.js"),[])},{id:"cairo",name:"Cairo",import:()=>l(()=>import("./cairo-BM1Freo3.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>l(()=>import("./clarity-CXmV_HiI.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>l(()=>import("./clojure-mLcCfA0-.js"),[])},{id:"cmake",name:"CMake",import:()=>l(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>l(()=>import("./cobol-NX_YbRMJ.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>l(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>l(()=>import("./codeql-Bdprqoiu.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>l(()=>import("./coffee-CXcjgkhu.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>l(()=>import("./common-lisp-CQO4gZEw.js"),[])},{id:"coq",name:"Coq",import:()=>l(()=>import("./coq-BCzYJAay.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>l(()=>import("./cpp-IRqjNdQP.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>l(()=>import("./crystal-DFEzbmK1.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>l(()=>import("./csharp-D7v6OrNy.js"),[])},{id:"css",name:"CSS",import:()=>l(()=>import("./css-u4bm_LMz.js"),[])},{id:"csv",name:"CSV",import:()=>l(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>l(()=>import("./cue-DmZ-uG0V.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>l(()=>import("./cypher-DfpIq38s.js"),[])},{id:"d",name:"D",import:()=>l(()=>import("./d-B5L7zzq-.js"),[])},{id:"dart",name:"Dart",import:()=>l(()=>import("./dart-C4Ro8ZjH.js"),[])},{id:"dax",name:"DAX",import:()=>l(()=>import("./dax-yA8e6OR-.js"),[])},{id:"desktop",name:"Desktop",import:()=>l(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>l(()=>import("./diff-Dnfm4U7b.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>l(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>l(()=>import("./dotenv-DQxx3LPD.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>l(()=>import("./dream-maker-BMwgFBEQ.js"),[])},{id:"edge",name:"Edge",import:()=>l(()=>import("./edge-Cq_6DOij.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>l(()=>import("./elixir-BoNJ9vXU.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>l(()=>import("./elm-CTr_twwF.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>l(()=>import("./emacs-lisp-CMz7PuSU.js"),[])},{id:"erb",name:"ERB",import:()=>l(()=>import("./erb-DuefeV9w.js"),__vite__mapDeps([31,1,2,3,32,7,8,14,24,26,33]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>l(()=>import("./erlang-CMOi41r9.js"),[])},{id:"fennel",name:"Fennel",import:()=>l(()=>import("./fennel-dZn0vQkf.js"),[])},{id:"fish",name:"Fish",import:()=>l(()=>import("./fish-CQzXS8_C.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>l(()=>import("./fluent-CNRQ974Q.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>l(()=>import("./fortran-fixed-form-C9lV_GL-.js"),__vite__mapDeps([34,35]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>l(()=>import("./fortran-free-form-B3Z_eaxm.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>l(()=>import("./fsharp-Vw5t3P44.js"),__vite__mapDeps([36,37]))},{id:"gdresource",name:"GDResource",import:()=>l(()=>import("./gdresource-D_y5yz_M.js"),__vite__mapDeps([38,39,40]))},{id:"gdscript",name:"GDScript",import:()=>l(()=>import("./gdscript-BIguuW30.js"),[])},{id:"gdshader",name:"GDShader",import:()=>l(()=>import("./gdshader-BSHf-0eb.js"),[])},{id:"genie",name:"Genie",import:()=>l(()=>import("./genie-DJEtsjbi.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>l(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>l(()=>import("./git-commit-C0WNX4K0.js"),__vite__mapDeps([41,42]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>l(()=>import("./git-rebase-3YLVFLpI.js"),__vite__mapDeps([43,26]))},{id:"gleam",name:"Gleam",import:()=>l(()=>import("./gleam-C30t_gpS.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>l(()=>import("./glimmer-js-D4fdoRWd.js"),__vite__mapDeps([44,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>l(()=>import("./glimmer-ts-DFoQQgBS.js"),__vite__mapDeps([45,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>l(()=>import("./glsl-bwZ1_LLM.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>l(()=>import("./gnuplot-CmWLV2bY.js"),[])},{id:"go",name:"Go",import:()=>l(()=>import("./go-C5-9kuJc.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>l(()=>import("./graphql-DqgCZ2sd.js"),__vite__mapDeps([46,2,11,47,48]))},{id:"groovy",name:"Groovy",import:()=>l(()=>import("./groovy-BWslPs4p.js"),[])},{id:"hack",name:"Hack",import:()=>l(()=>import("./hack-BV5LM4CS.js"),__vite__mapDeps([49,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>l(()=>import("./haml-B1jT_oKV.js"),__vite__mapDeps([50,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>l(()=>import("./handlebars-HtVeTy3a.js"),__vite__mapDeps([51,1,2,3,52]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>l(()=>import("./haskell-ChDww4um.js"),[])},{id:"haxe",name:"Haxe",import:()=>l(()=>import("./haxe-BgqZeg96.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>l(()=>import("./hcl-Cztwc-HH.js"),[])},{id:"hjson",name:"Hjson",import:()=>l(()=>import("./hjson-D9Bn7OQI.js"),[])},{id:"hlsl",name:"HLSL",import:()=>l(()=>import("./hlsl-DkpUthgY.js"),[])},{id:"html",name:"HTML",import:()=>l(()=>import("./html-DG1TtFnM.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>l(()=>import("./html-derivative-CDVwFiY1.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>l(()=>import("./http-CYnz8shJ.js"),__vite__mapDeps([53,26,9,7,8,46,2,11,47,48]))},{id:"hxml",name:"HXML",import:()=>l(()=>import("./hxml-BfFmssGd.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>l(()=>import("./hy-YurBl9Qv.js"),[])},{id:"imba",name:"Imba",import:()=>l(()=>import("./imba-C6vdFTm2.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>l(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>l(()=>import("./java-BN40hmum.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>l(()=>import("./javascript-DNgb01dh.js"),[])},{id:"jinja",name:"Jinja",import:()=>l(()=>import("./jinja-BORjBBXU.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>l(()=>import("./jison-Ct8rtT8R.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>l(()=>import("./json-DWmkr0yC.js"),[])},{id:"json5",name:"JSON5",import:()=>l(()=>import("./json5-BDjtpMT8.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>l(()=>import("./jsonc-B8E-_56i.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>l(()=>import("./jsonl-NKd-Y1zG.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>l(()=>import("./jsonnet-CpRrwcwt.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>l(()=>import("./jssm-DlYXzDlu.js"),[])},{id:"jsx",name:"JSX",import:()=>l(()=>import("./jsx-CM4fc1WH.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>l(()=>import("./julia-Czdw582_.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>l(()=>import("./kotlin-BZRbnyjI.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>l(()=>import("./kusto-plSVBvJQ.js"),[])},{id:"latex",name:"LaTeX",import:()=>l(()=>import("./latex-BpoAco4y.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>l(()=>import("./lean-yLioyJ2E.js"),[])},{id:"less",name:"Less",import:()=>l(()=>import("./less-Dk1rBueR.js"),[])},{id:"liquid",name:"Liquid",import:()=>l(()=>import("./liquid-DlGqZaOj.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>l(()=>import("./log-B4_rEpOs.js"),[])},{id:"logo",name:"Logo",import:()=>l(()=>import("./logo-Dtn98rcr.js"),[])},{id:"lua",name:"Lua",import:()=>l(()=>import("./lua-B2--UKVN.js"),__vite__mapDeps([33,24]))},{id:"luau",name:"Luau",import:()=>l(()=>import("./luau-DepYB8Ml.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>l(()=>import("./make-DNDvMORL.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>l(()=>import("./markdown-CNXuF1yM.js"),[])},{id:"marko",name:"Marko",import:()=>l(()=>import("./marko-BxSrAFJn.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>l(()=>import("./matlab-Kxp7UmFj.js"),[])},{id:"mdc",name:"MDC",import:()=>l(()=>import("./mdc-DfEMzj3F.js"),__vite__mapDeps([66,37,52,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>l(()=>import("./mdx-Bcw97oti.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>l(()=>import("./mermaid-BZ3P6AVf.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>l(()=>import("./mipsasm-BzaEo2Du.js"),[])},{id:"mojo",name:"Mojo",import:()=>l(()=>import("./mojo-B2bjgU-v.js"),[])},{id:"move",name:"Move",import:()=>l(()=>import("./move-EZUUsui8.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>l(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>l(()=>import("./nextflow-B2uSYIFn.js"),[])},{id:"nginx",name:"Nginx",import:()=>l(()=>import("./nginx-Dw0nYz9L.js"),__vite__mapDeps([67,33,24]))},{id:"nim",name:"Nim",import:()=>l(()=>import("./nim-NHYZZDnF.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,37]))},{id:"nix",name:"Nix",import:()=>l(()=>import("./nix-DVWcdiGS.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>l(()=>import("./nushell-ZJvK9Z2N.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>l(()=>import("./objective-c-B6NdQBKR.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>l(()=>import("./objective-cpp-BkG9CdHo.js"),[])},{id:"ocaml",name:"OCaml",import:()=>l(()=>import("./ocaml-CLmbwNS9.js"),[])},{id:"pascal",name:"Pascal",import:()=>l(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>l(()=>import("./perl-DLffUHFU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>l(()=>import("./php-D3VTUn6x.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>l(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>l(()=>import("./po-BFLt1xDp.js"),[])},{id:"postcss",name:"PostCSS",import:()=>l(()=>import("./postcss-DmF4-xLG.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>l(()=>import("./powerquery-ByY1Guvr.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>l(()=>import("./powershell-DES0gjzB.js"),[])},{id:"prisma",name:"Prisma",import:()=>l(()=>import("./prisma-DFIOpqzz.js"),[])},{id:"prolog",name:"Prolog",import:()=>l(()=>import("./prolog-BNxDCkIA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>l(()=>import("./proto-hdsyEllQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>l(()=>import("./pug-BbGfWiEl.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>l(()=>import("./puppet-DWMP3yrW.js"),[])},{id:"purescript",name:"PureScript",import:()=>l(()=>import("./purescript-DvQyZZSe.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>l(()=>import("./python-CK56Z9cH.js"),[])},{id:"qml",name:"QML",import:()=>l(()=>import("./qml-Dhho_E4W.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>l(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>l(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>l(()=>import("./r-Cqv5JV-q.js"),[])},{id:"racket",name:"Racket",import:()=>l(()=>import("./racket-CwIbMU3B.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>l(()=>import("./raku-DZ4hUExO.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>l(()=>import("./razor-CDyaIOPG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>l(()=>import("./reg-CrOfvjVs.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>l(()=>import("./regexp-DoiKbUTj.js"),[])},{id:"rel",name:"Rel",import:()=>l(()=>import("./rel-Dzwn3p-3.js"),[])},{id:"riscv",name:"RISC-V",import:()=>l(()=>import("./riscv-BGct0Hx7.js"),[])},{id:"rst",name:"reStructuredText",import:()=>l(()=>import("./rst-BtGMdPX_.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,52,76,32,7,8,33]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>l(()=>import("./ruby-C8Yez0Ov.js"),__vite__mapDeps([32,1,2,3,7,8,14,24,26,33]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>l(()=>import("./rust-Bjs2cL5p.js"),[])},{id:"sas",name:"SAS",import:()=>l(()=>import("./sas-K_Wwm3IX.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>l(()=>import("./sass-BrbOHqWv.js"),[])},{id:"scala",name:"Scala",import:()=>l(()=>import("./scala-Lp17StYA.js"),[])},{id:"scheme",name:"Scheme",import:()=>l(()=>import("./scheme-BbccZ3y2.js"),[])},{id:"scss",name:"SCSS",import:()=>l(()=>import("./scss-BfMQ58X7.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>l(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>l(()=>import("./shaderlab-CsYUIUcf.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>l(()=>import("./shellscript-HNM5thJl.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>l(()=>import("./shellsession-DU_2P5ZA.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>l(()=>import("./smalltalk-DsCg8CPl.js"),[])},{id:"solidity",name:"Solidity",import:()=>l(()=>import("./solidity-DymQr0nX.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>l(()=>import("./soy-aWhPD8Nq.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>l(()=>import("./sparql-B5YtT9lV.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>l(()=>import("./splunk-j_FrBdja.js"),[])},{id:"sql",name:"SQL",import:()=>l(()=>import("./sql-D8nBeWSR.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>l(()=>import("./ssh-config-D-RymO5g.js"),[])},{id:"stata",name:"Stata",import:()=>l(()=>import("./stata-bRt97scT.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>l(()=>import("./stylus-DwU8c_yx.js"),[])},{id:"svelte",name:"Svelte",import:()=>l(()=>import("./svelte-B94b8dMa.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>l(()=>import("./swift-D2TqM893.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>l(()=>import("./system-verilog-DFQ4Xr-4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>l(()=>import("./systemd-DA0ESIWO.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>l(()=>import("./talonscript-CGXjegLJ.js"),[])},{id:"tasl",name:"Tasl",import:()=>l(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>l(()=>import("./tcl-NUI3YrRW.js"),[])},{id:"templ",name:"Templ",import:()=>l(()=>import("./templ-MrK5mfgg.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>l(()=>import("./terraform-rf8nNrOk.js"),[])},{id:"tex",name:"TeX",import:()=>l(()=>import("./tex-Dej6pUpk.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>l(()=>import("./toml-Dwo6uFCY.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>l(()=>import("./ts-tags-CiO5kd_m.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>l(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>l(()=>import("./tsx-DqpEK-75.js"),[])},{id:"turtle",name:"Turtle",import:()=>l(()=>import("./turtle-C0hdQUNN.js"),[])},{id:"twig",name:"Twig",import:()=>l(()=>import("./twig-DN6YEzOP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,24,26,33]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>l(()=>import("./typescript-CVESyXxo.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>l(()=>import("./typespec-B_R80ZlN.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>l(()=>import("./typst-F89DG-fP.js"),[])},{id:"v",name:"V",import:()=>l(()=>import("./v-DH4N8IuU.js"),[])},{id:"vala",name:"Vala",import:()=>l(()=>import("./vala-C8pgRvQH.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>l(()=>import("./vb-Bv-mwDEg.js"),[])},{id:"verilog",name:"Verilog",import:()=>l(()=>import("./verilog-6RUVFG9U.js"),[])},{id:"vhdl",name:"VHDL",import:()=>l(()=>import("./vhdl-IBB5Tl9j.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>l(()=>import("./viml-CIxipgmy.js"),[])},{id:"vue",name:"Vue",import:()=>l(()=>import("./vue-xldAUJov.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>l(()=>import("./vue-html-x3hEOujm.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>l(()=>import("./vyper-DzaHHFTY.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>l(()=>import("./wasm-sH2JAGjN.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>l(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>l(()=>import("./wgsl-CSoQzgif.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>l(()=>import("./wikitext-BqtQrzRp.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>l(()=>import("./wolfram-aeT0-ak7.js"),[])},{id:"xml",name:"XML",import:()=>l(()=>import("./xml-BOQ9RtXF.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>l(()=>import("./xsl-BqG2VzO2.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>l(()=>import("./yaml-CIiI48o2.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>l(()=>import("./zenscript-NgWrSVUg.js"),[])},{id:"zig",name:"Zig",import:()=>l(()=>import("./zig-D44NvAEk.js"),[])}],ir=Object.fromEntries(Et.map(r=>[r.id,r.import])),nr=Object.fromEntries(Et.flatMap(r=>{var e;return((e=r.aliases)==null?void 0:e.map(t=>[t,r.import]))||[]})),sr={...ir,...nr},or=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-B74Y8nHz.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-RXHOmnpW.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-zchoCBdH.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-2aygx1xg.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-w1el_4yc.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-CQWsIgnU.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-DdAYiE08.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-2pWuV6-S.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-CmY0Y6Yh.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-DZQMDcrx.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],ar=Object.fromEntries(or.map(r=>[r.id,r.import]));let x=class extends Error{constructor(e){super(e),this.name="ShikiError"}},$e=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function cr(){return 2147483648}function lr(){return typeof performance<"u"?performance.now():Date.now()}const ur=(r,e)=>r+(e-r%e)%e;async function mr(r){let e,t;const i={};function n(m){t=m,i.HEAPU8=new Uint8Array(m),i.HEAPU32=new Uint32Array(m)}function s(m,_,R){i.HEAPU8.copyWithin(m,_,_+R)}function o(m){try{return e.grow(m-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function c(m){const _=i.HEAPU8.length;m=m>>>0;const R=cr();if(m>R)return!1;for(let g=1;g<=4;g*=2){let f=_*(1+.2/g);f=Math.min(f,m+100663296);const E=Math.min(R,ur(Math.max(m,f),65536));if(o(E))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(m,_,R=1024){const g=_+R;let f=_;for(;m[f]&&!(f>=g);)++f;if(f-_>16&&m.buffer&&a)return a.decode(m.subarray(_,f));let E="";for(;_<f;){let y=m[_++];if(!(y&128)){E+=String.fromCharCode(y);continue}const v=m[_++]&63;if((y&224)===192){E+=String.fromCharCode((y&31)<<6|v);continue}const T=m[_++]&63;if((y&240)===224?y=(y&15)<<12|v<<6|T:y=(y&7)<<18|v<<12|T<<6|m[_++]&63,y<65536)E+=String.fromCharCode(y);else{const O=y-65536;E+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return E}function d(m,_){return m?u(i.HEAPU8,m,_):""}const h={emscripten_get_now:lr,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function p(){const _=await r({env:h,wasi_snapshot_preview1:h});e=_.memory,n(e.buffer),Object.assign(i,_),i.UTF8ToString=d}return await p(),i}let P=null;function hr(r){throw new $e(r.UTF8ToString(r.getLastOnigError()))}class ye{constructor(e){A(this,"utf16Length");A(this,"utf8Length");A(this,"utf16Value");A(this,"utf8Value");A(this,"utf16OffsetToUtf8");A(this,"utf8OffsetToUtf16");const t=e.length,i=ye._utf8ByteLength(e),n=i!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=i);const o=n?new Uint32Array(i+1):null;n&&(o[i]=t);const c=new Uint8Array(i);let a=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let h=d,p=!1;if(d>=55296&&d<=56319&&u+1<t){const m=e.charCodeAt(u+1);m>=56320&&m<=57343&&(h=(d-55296<<10)+65536|m-56320,p=!0)}n&&(s[u]=a,p&&(s[u+1]=a),h<=127?o[a+0]=u:h<=2047?(o[a+0]=u,o[a+1]=u):h<=65535?(o[a+0]=u,o[a+1]=u,o[a+2]=u):(o[a+0]=u,o[a+1]=u,o[a+2]=u,o[a+3]=u)),h<=127?c[a++]=h:h<=2047?(c[a++]=192|(h&1984)>>>6,c[a++]=128|(h&63)>>>0):h<=65535?(c[a++]=224|(h&61440)>>>12,c[a++]=128|(h&4032)>>>6,c[a++]=128|(h&63)>>>0):(c[a++]=240|(h&1835008)>>>18,c[a++]=128|(h&258048)>>>12,c[a++]=128|(h&4032)>>>6,c[a++]=128|(h&63)>>>0),p&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const s=e.charCodeAt(i);let o=s,c=!1;if(s>=55296&&s<=56319&&i+1<n){const a=e.charCodeAt(i+1);a>=56320&&a<=57343&&(o=(s-55296<<10)+65536|a-56320,c=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,c&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const w=class w{constructor(e){A(this,"id",++w.LAST_ID);A(this,"_onigBinding");A(this,"content");A(this,"utf16Length");A(this,"utf8Length");A(this,"utf16OffsetToUtf8");A(this,"utf8OffsetToUtf16");A(this,"ptr");if(!P)throw new $e("Must invoke loadWasm first.");this._onigBinding=P,this.content=e;const t=new ye(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse?(w._sharedPtr||(w._sharedPtr=P.omalloc(1e4)),w._sharedPtrInUse=!0,P.HEAPU8.set(t.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr):this.ptr=t.createString(P)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===w._sharedPtr?w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};A(w,"LAST_ID",0),A(w,"_sharedPtr",0),A(w,"_sharedPtrInUse",!1);let ce=w;class dr{constructor(e){A(this,"_onigBinding");A(this,"_ptr");if(!P)throw new $e("Must invoke loadWasm first.");const t=[],i=[];for(let c=0,a=e.length;c<a;c++){const u=new ye(e[c]);t[c]=u.createString(P),i[c]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const s=P.omalloc(4*e.length);P.HEAPU32.set(i,s/4);const o=P.createOnigScanner(n,s,e.length);for(let c=0,a=e.length;c<a;c++)P.ofree(t[c]);P.ofree(s),P.ofree(n),o===0&&hr(P),this._onigBinding=P,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let n=0;if(typeof i=="number"&&(n=i),typeof e=="string"){e=new ce(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(o===0)return null;const c=s.HEAPU32;let a=o/4;const u=c[a++],d=c[a++],h=[];for(let p=0;p<d;p++){const m=e.convertUtf8OffsetToUtf16(c[a++]),_=e.convertUtf8OffsetToUtf16(c[a++]);h[p]={start:m,end:_,length:_-m}}return{index:u,captureIndices:h}}}function pr(r){return typeof r.instantiator=="function"}function _r(r){return typeof r.default=="function"}function fr(r){return typeof r.data<"u"}function gr(r){return typeof Response<"u"&&r instanceof Response}function Er(r){var e;return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,r))||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let te;function yr(r){if(te)return te;async function e(){P=await mr(async t=>{let i=r;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),pr(i)?i=await i.instantiator(t):_r(i)?i=await i.default(t):(fr(i)&&(i=i.data),gr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await Rr(i)(t):i=await vr(i)(t):Er(i)?i=await Le(i)(t):i instanceof WebAssembly.Module?i=await Le(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Le(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return te=e(),te}function Le(r){return e=>WebAssembly.instantiate(r,e)}function Rr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function vr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Tr;function Ar(){return Tr}async function yt(r){return r&&await yr(r),{createScanner(e){return new dr(e)},createString(e){return new ce(e)}}}function Lr(r){return Fe(r)}function Fe(r){return Array.isArray(r)?br(r):typeof r=="object"?Pr(r):r}function br(r){let e=[];for(let t=0,i=r.length;t<i;t++)e[t]=Fe(r[t]);return e}function Pr(r){let e={};for(let t in r)e[t]=Fe(r[t]);return e}function Rt(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function vt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?vt(r.substring(0,r.length-1)):r.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,re=class{static hasCaptures(r){return r===null?!1:(be.lastIndex=0,be.test(r))}static replaceCaptures(r,e,t){return r.replace(be,(i,n,s,o)=>{let c=t[parseInt(n||s,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return i})}};function Tt(r,e){return r<e?-1:r>e?1:0}function At(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,i=e.length;if(t===i){for(let n=0;n<t;n++){let s=Tt(r[n],e[n]);if(s!==0)return s}return 0}return t-i}function Ze(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function Lt(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var bt=class{constructor(r){this.fn=r,this.cache=new Map}get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},le=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t,this._cachedMatchRoot=new bt(i=>this._root.match(i))}static createFromRawTheme(r,e){return this.createFromParsedTheme(Or(r),e)}static createFromParsedTheme(r,e){return Cr(r,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(n=>Ir(r.parent,n.parentScopes));return i?new Pt(i.fontStyle,i.foreground,i.background):null}},Pe=class oe{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new oe(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new oe(t,e[i]);return t}push(e){return new oe(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function Ir(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],n=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],n=!0}for(;r&&!Sr(r.scopeName,i);){if(n)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Sr(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Pt=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Or(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],i=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let h=o.settings.fontStyle.split(" ");for(let p=0,m=h.length;p<m;p++)switch(h[p]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Ze(o.settings.foreground)&&(u=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&Ze(o.settings.background)&&(d=o.settings.background);for(let h=0,p=c.length;h<p;h++){let _=c[h].trim().split(" "),R=_[_.length-1],g=null;_.length>1&&(g=_.slice(0,_.length-1),g.reverse()),t[i++]=new wr(R,g,n,a,u,d)}}return t}var wr=class{constructor(r,e,t,i,n,s){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}},V=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(V||{});function Cr(r,e){r.sort((a,u)=>{let d=Tt(a.scope,u.scope);return d!==0||(d=At(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let a=r.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(i=a.foreground),a.background!==null&&(n=a.background)}let s=new Dr(e),o=new Pt(t,s.getId(i),s.getId(n)),c=new Nr(new we(0,null,-1,0,0),[]);for(let a=0,u=r.length;a<u;a++){let d=r[a];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new le(s,o,c)}var Dr=class{constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},kr=Object.freeze([]),we=class It{constructor(e,t,i,n,s){this.scopeDepth=e,this.parentScopes=t||kr,this.fontStyle=i,this.foreground=n,this.background=s}clone(){return new It(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),n!==0&&(this.background=n)}},Nr=class Ce{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,n=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[n]===">"&&n++,!(i>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[i].length;if(s!==0)return s;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,s;if(i===-1?(n=e,s=""):(n=e.substring(0,i),s=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ce._cmpBySpecificity),t}insert(e,t,i,n,s,o){if(t===""){this._doInsertHere(e,i,n,s,o);return}let c=t.indexOf("."),a,u;c===-1?(a=t,u=""):(a=t.substring(0,c),u=t.substring(c+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new Ce(this._mainRule.clone(),we.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,i,n,s,o)}_doInsertHere(e,t,i,n,s){if(t===null){this._mainRule.acceptOverwrite(e,i,n,s);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let a=this._rulesWithParentScopes[o];if(At(a.parentScopes,t)===0){a.acceptOverwrite(e,i,n,s);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new we(e,t,i,n,s))}},W=class C{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=C.getLanguageId(e),i=C.getTokenType(e),n=C.getFontStyle(e),s=C.getForeground(e),o=C.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,n,s,o,c){let a=C.getLanguageId(e),u=C.getTokenType(e),d=C.containsBalancedBrackets(e)?1:0,h=C.getFontStyle(e),p=C.getForeground(e),m=C.getBackground(e);return t!==0&&(a=t),i!==8&&(u=i),n!==null&&(d=n?1:0),s!==-1&&(h=s),o!==0&&(p=o),c!==0&&(m=c),(a<<0|u<<8|d<<10|h<<11|p<<15|m<<24)>>>0}};function ue(r,e){const t=[],i=Vr(r);let n=i.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=i.next()}return t;function s(){if(n==="-"){n=i.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=i.next();const a=c();return n===")"&&(n=i.next()),a}if(et(n)){const a=[];do a.push(n),n=i.next();while(et(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return d=>a.every(h=>h(d))}function c(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=o()}return d=>a.some(h=>h(d))}}function et(r){return!!r&&!!r.match(/[\w\.:]+/)}function Vr(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(r),i}}}function St(r){typeof r.dispose=="function"&&r.dispose()}var K=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},xr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Gr=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},Mr=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new K(this.initialScopeName)]}processQueue(){const r=this.Q;this.Q=[];const e=new Gr;for(const t of r)Br(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof K){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Br(r,e,t,i){const n=t.lookup(r.scopeName);if(!n){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);r instanceof K?ae({baseGrammar:s,selfGrammar:n},i):De(r.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},i);const o=t.injections(r.scopeName);if(o)for(const c of o)i.add(new K(c))}function De(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];me([i],e,t)}}function ae(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&me(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&me(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function me(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?Rt({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&me(i.patterns,{...e,repository:n},t);const s=i.include;if(!s)continue;const o=Ot(s);switch(o.kind){case 0:ae({...e,selfGrammar:e.baseGrammar},t);break;case 1:ae(e,t);break;case 2:De(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const c=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:n};o.kind===4?De(o.ruleName,a,t):ae(a,t)}else o.kind===4?t.add(new xr(o.scopeName,o.ruleName)):t.add(new K(o.scopeName));break}}}var jr=class{constructor(){this.kind=0}},$r=class{constructor(){this.kind=1}},Fr=class{constructor(r){this.ruleName=r,this.kind=2}},Wr=class{constructor(r){this.scopeName=r,this.kind=3}},Ur=class{constructor(r,e){this.scopeName=r,this.ruleName=e,this.kind=4}};function Ot(r){if(r==="$base")return new jr;if(r==="$self")return new $r;const e=r.indexOf("#");if(e===-1)return new Wr(r);if(e===0)return new Fr(r.substring(1));{const t=r.substring(0,e),i=r.substring(e+1);return new Ur(t,i)}}var Hr=/\\(\d+)/,tt=/\\(\d+)/g,qr=-1,wt=-2;var Z=class{constructor(r,e,t,i){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=re.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=re.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${vt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:re.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:re.replaceCaptures(this._contentName,r,e)}},zr=class extends Z{constructor(r,e,t,i,n){super(r,e,t,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,i){throw new Error("Not supported!")}},Jr=class extends Z{constructor(r,e,t,i,n){super(r,e,t,null),this._match=new Q(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends Z{constructor(r,e,t,i,n){super(r,e,t,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ke=class extends Z{constructor(r,e,t,i,n,s,o,c,a,u){super(r,e,t,i),this._begin=new Q(n,this.id),this.beginCaptures=s,this._end=new Q(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=a||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new X;for(const t of this.patterns)r.getRule(t).collectPatterns(r,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},he=class extends Z{constructor(r,e,t,i,n,s,o,c,a){super(r,e,t,i),this._begin=new Q(n,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new Q(o,wt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new X;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new X,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Ct=class I{static createCaptureRule(e,t,i,n,s){return e.registerRule(o=>new zr(t,o,i,n,s))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Jr(e.$vscodeTextmateLocation,e.id,e.name,e.match,I._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=Rt({},i,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,I._compilePatterns(s,t,i))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,I._compileCaptures(e.whileCaptures||e.captures,t,i),I._compilePatterns(e.patterns,t,i)):new ke(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,I._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,I._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>s&&(s=c)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let a=0;e[o].patterns&&(a=I.getCompiledRuleId(e[o],t,i)),n[c]=I.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const c=e[s];let a=-1;if(c.include){const u=Ot(c.include);switch(u.kind){case 0:case 1:a=I.getCompiledRuleId(i[c.include],t,i);break;case 2:let d=i[u.ruleName];d&&(a=I.getCompiledRuleId(d,t,i));break;case 3:case 4:const h=u.scopeName,p=u.kind===4?u.ruleName:null,m=t.getExternalGrammar(h,i);if(m)if(p){let _=m.repository[p];_&&(a=I.getCompiledRuleId(_,t,m.repository))}else a=I.getCompiledRuleId(m.repository.$self,t,m.repository);break}}else a=I.getCompiledRuleId(c,t,i);if(a!==-1){const u=t.getRule(a);let d=!1;if((u instanceof rt||u instanceof ke||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},Q=class Dt{constructor(e,t){if(e){const i=e.length;let n=0,s=[],o=!1;for(let c=0;c<i;c++)if(e.charAt(c)==="\\"&&c+1<i){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(n,c)),s.push("$(?!\\n)(?<!\\n)"),n=c+2):(u==="A"||u==="G")&&(o=!0),c++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=Hr.test(this.source)}clone(){return new Dt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let i=t.map(n=>e.substring(n.start,n.end));return tt.lastIndex=0,this.source.replace(tt,(n,s)=>Lt(i[parseInt(s,10)]||""))}_buildAnchorCache(){let e=[],t=[],i=[],n=[],s,o,c,a;for(s=0,o=this.source.length;s<o;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,i[s]=c,n[s]=c,c==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="￿",t[s+1]="￿",i[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="￿",t[s+1]="G",i[s+1]="￿",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,i[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},X=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let i=this._items.map(n=>n.resolveAnchors(e,t));return new it(r,i,this._items.map(n=>n.ruleId))}},it=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
3
- `)}findNextMatchSync(r,e,t){const i=this.scanner.findNextMatchSync(r,e,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Ne=class{constructor(r,e){this.languageId=r,this.tokenType=e}},We=class Ve{constructor(e,t){this._getBasicScopeAttributes=new bt(i=>{const n=this._scopeToLanguage(i),s=this._toStandardTokenType(i);return new Ne(n,s)}),this._defaultAttributes=new Ne(e,8),this._embeddedLanguagesMatcher=new Qr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ve._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Ve.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};We._NULL_SCOPE_METADATA=new Ne(0,0);We.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var Kr=We,Qr=class{constructor(r){if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,i])=>Lt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},nt=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function kt(r,e,t,i,n,s,o,c){const a=e.content.length;let u=!1,d=-1;if(o){const m=Xr(r,e,t,i,n,s);n=m.stack,i=m.linePos,t=m.isFirstLine,d=m.anchorPosition}const h=Date.now();for(;!u;){if(c!==0&&Date.now()-h>c)return new nt(n,!0);p()}return new nt(n,!1);function p(){const m=Yr(r,e,t,i,n,d);if(!m){s.produce(n,a),u=!0;return}const _=m.captureIndices,R=m.matchedRuleId,g=_&&_.length>0?_[0].end>i:!1;if(R===qr){const f=n.getRule(r);s.produce(n,_[0].start),n=n.withContentNameScopesList(n.nameScopesList),z(r,e,t,n,s,f.endCaptures,_),s.produce(n,_[0].end);const E=n;if(n=n.parent,d=E.getAnchorPos(),!g&&E.getEnterPos()===i){n=E,s.produce(n,a),u=!0;return}}else{const f=r.getRule(R);s.produce(n,_[0].start);const E=n,y=f.getName(e.content,_),v=n.contentNameScopesList.pushAttributed(y,r);if(n=n.push(R,i,d,_[0].end===a,null,v,v),f instanceof ke){const T=f;z(r,e,t,n,s,T.beginCaptures,_),s.produce(n,_[0].end),d=_[0].end;const O=T.getContentName(e.content,_),L=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(L),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,_))),!g&&E.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(f instanceof he){const T=f;z(r,e,t,n,s,T.beginCaptures,_),s.produce(n,_[0].end),d=_[0].end;const O=T.getContentName(e.content,_),L=v.pushAttributed(O,r);if(n=n.withContentNameScopesList(L),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,_))),!g&&E.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(z(r,e,t,n,s,f.captures,_),s.produce(n,_[0].end),n=n.pop(),!g){n=n.safePop(),s.produce(n,a),u=!0;return}}_[0].end>i&&(i=_[0].end,t=!1)}}function Xr(r,e,t,i,n,s){let o=n.beginRuleCapturedEOL?0:-1;const c=[];for(let a=n;a;a=a.pop()){const u=a.getRule(r);u instanceof he&&c.push({rule:u,stack:a})}for(let a=c.pop();a;a=c.pop()){const{ruleScanner:u,findOptions:d}=ti(a.rule,r,a.stack.endRule,t,i===o),h=u.findNextMatchSync(e,i,d);if(h){if(h.ruleId!==wt){n=a.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(s.produce(a.stack,h.captureIndices[0].start),z(r,e,t,a.stack,s,a.rule.whileCaptures,h.captureIndices),s.produce(a.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>i&&(i=h.captureIndices[0].end,t=!1))}else{n=a.stack.pop();break}}return{stack:n,linePos:i,anchorPosition:o,isFirstLine:t}}function Yr(r,e,t,i,n,s){const o=Zr(r,e,t,i,n,s),c=r.getInjections();if(c.length===0)return o;const a=ei(c,r,e,t,i,n,s);if(!a)return o;if(!o)return a;const u=o.captureIndices[0].start,d=a.captureIndices[0].start;return d<u||a.priorityMatch&&d===u?a:o}function Zr(r,e,t,i,n,s){const o=n.getRule(r),{ruleScanner:c,findOptions:a}=Nt(o,r,n.endRule,t,i===s),u=c.findNextMatchSync(e,i,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function ei(r,e,t,i,n,s,o){let c=Number.MAX_VALUE,a=null,u,d=0;const h=s.contentNameScopesList.getScopeNames();for(let p=0,m=r.length;p<m;p++){const _=r[p];if(!_.matcher(h))continue;const R=e.getRule(_.ruleId),{ruleScanner:g,findOptions:f}=Nt(R,e,null,i,n===o),E=g.findNextMatchSync(t,n,f);if(!E)continue;const y=E.captureIndices[0].start;if(!(y>=c)&&(c=y,a=E.captureIndices,u=E.ruleId,d=_.priority,c===n))break}return a?{priorityMatch:d===-1,captureIndices:a,matchedRuleId:u}:null}function Nt(r,e,t,i,n){return{ruleScanner:r.compileAG(e,t,i,n),findOptions:0}}function ti(r,e,t,i,n){return{ruleScanner:r.compileWhileAG(e,t,i,n),findOptions:0}}function z(r,e,t,i,n,s,o){if(s.length===0)return;const c=e.content,a=Math.min(s.length,o.length),u=[],d=o[0].end;for(let h=0;h<a;h++){const p=s[h];if(p===null)continue;const m=o[h];if(m.length===0)continue;if(m.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=m.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,m.start):n.produce(i,m.start),p.retokenizeCapturedWithRuleId){const R=p.getName(c,o),g=i.contentNameScopesList.pushAttributed(R,r),f=p.getContentName(c,o),E=g.pushAttributed(f,r),y=i.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,g,E),v=r.createOnigString(c.substring(0,m.end));kt(r,v,t&&m.start===0,m.start,y,n,!1,0),St(v);continue}const _=p.getName(c,o);if(_!==null){const g=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(_,r);u.push(new ri(g,m.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ri=class{constructor(r,e){this.scopes=r,this.endPos=e}};function ii(r,e,t,i,n,s,o,c){return new si(r,e,t,i,n,s,o,c)}function st(r,e,t,i,n){const s=ue(e,de),o=Ct.getCompiledRuleId(t,i,n.repository);for(const c of s)r.push({debugSelector:e,matcher:c.matcher,ruleId:o,grammar:n,priority:c.priority})}function de(r,e){if(e.length<r.length)return!1;let t=0;return r.every(i=>{for(let n=t;n<e.length;n++)if(ni(e[n],i))return t=n+1,!0;return!1})}function ni(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var si=class{constructor(r,e,t,i,n,s,o,c){if(this._rootScopeName=r,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new Kr(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ot(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const a of Object.keys(n)){const u=ue(a,de);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:n[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,i=r.lookup(t);if(i){const n=i.injections;if(n)for(let o in n)st(e,o,n[o],this,i);const s=this._grammarRepository.injections(t);s&&s.forEach(o=>{const c=this.getExternalGrammar(o);if(c){const a=c.injectionSelector;a&&st(e,a,c,this,c)}})}return e.sort((n,s)=>n.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=ot(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const i=this._tokenize(r,e,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(r,e,t=0){const i=this._tokenize(r,e,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(r,e,t,i){this._rootId===-1&&(this._rootId=Ct.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===Ge.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),h=W.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),p=this.getRule(this._rootId).getName(null,null);let m;p?m=J.createRootAndLookUpScopeName(p,h,this):m=J.createRoot("unknown",h),e=new Ge(null,this._rootId,-1,-1,!1,null,m,m)}else n=!1,e.reset();r=r+`
4
- `;const s=this.createOnigString(r),o=s.content.length,c=new ai(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),a=kt(this,s,n,0,e,c,!0,i);return St(s),{lineLength:o,lineTokens:c,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function ot(r,e){return r=Lr(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var J=class D{constructor(e,t,i){this.parent=e,this.scopePath=t,this.tokenAttributes=i}static fromExtension(e,t){let i=e,n=(e==null?void 0:e.scopePath)??null;for(const s of t)n=Pe.push(n,s.scopeNames),i=new D(i,n,s.encodedTokenAttributes);return i}static createRoot(e,t){return new D(null,new Pe(null,e),t)}static createRootAndLookUpScopeName(e,t,i){const n=i.getMetadataForScope(e),s=new Pe(null,e),o=i.themeProvider.themeMatch(s),c=D.mergeAttributes(t,n,o);return new D(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return D.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,i){let n=-1,s=0,o=0;return i!==null&&(n=i.fontStyle,s=i.foregroundId,o=i.backgroundId),W.set(e,t.languageId,t.tokenType,null,n,s,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return D._pushAttributed(this,e,t);const i=e.split(/ /g);let n=this;for(const s of i)n=D._pushAttributed(n,s,t);return n}static _pushAttributed(e,t,i){const n=i.getMetadataForScope(t),s=e.scopePath.push(t),o=i.themeProvider.themeMatch(s),c=D.mergeAttributes(e.tokenAttributes,n,o);return new D(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var n;const t=[];let i=this;for(;i&&i!==e;)t.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((n=i.parent)==null?void 0:n.scopePath)??null)}),i=i.parent;return i===e?t.reverse():void 0}},xe=class ${constructor(e,t,i,n,s,o,c,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=c,this.contentNameScopesList=a,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=n}equals(e){return e===null?!1:$._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?J.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){$._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,i,n,s,o,c){return new $(this,e,t,i,n,s,o,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var i,n;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new $(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const i=J.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new $(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,J.fromExtension(i,t.contentNameScopesList))}};xe.NULL=new xe(null,0,0,0,!1,null,null,null);var Ge=xe,oi=class{constructor(r,e){this.allowAny=!1,this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):ue(t,de).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>ue(t,de).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},ai=class{constructor(r,e,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){var i;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(r==null?void 0:r.tokenAttributes)??0,s=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(r==null?void 0:r.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(o)&&(n=W.set(n,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(n=W.set(n,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=(r==null?void 0:r.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,n=this._binaryTokens.length;i<n;i++)t[i]=this._binaryTokens[i];return t}},ci=class{constructor(r,e){this._onigLib=e,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=r}dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,i,n){if(!this._grammars.has(r)){let s=this._rawGrammars.get(r);if(!s)return null;this._grammars.set(r,ii(r,s,e,t,i,n,this,this._onigLib))}return this._grammars.get(r)}},li=class{constructor(e){this._options=e,this._syncRegistry=new ci(le.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(le.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,i){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,t,i){return this._loadGrammar(e,t,i.embeddedLanguages,i.tokenTypes,new oi(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,i,n,s){const o=new Mr(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(c=>this._loadSingleGrammar(c.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,i,n,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,i)}}addGrammar(e,t=[],i=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,i,n)}_grammarForScopeName(e,t=0,i=null,n=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,i,n,s)}},Me=Ge.NULL;const ui=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],mi=/["&'<>`]/g,hi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,di=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,pi=/[|\\{}()[\]^$+*?.]/g,at=new WeakMap;function _i(r,e){if(r=r.replace(e.subset?fi(e.subset):mi,i),e.subset||e.escapeOnly)return r;return r.replace(hi,t).replace(di,i);function t(n,s,o){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function i(n,s,o){return e.format(n.charCodeAt(0),o.charCodeAt(s+1),e)}}function fi(r){let e=at.get(r);return e||(e=gi(r),at.set(r,e)),e}function gi(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(pi,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Ei=/[\dA-Fa-f]/;function yi(r,e,t){const i="&#x"+r.toString(16).toUpperCase();return t&&e&&!Ei.test(String.fromCharCode(e))?i:i+";"}const Ri=/\d/;function vi(r,e,t){const i="&#"+String(r);return t&&e&&!Ri.test(String.fromCharCode(e))?i:i+";"}const Ti=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ie={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ai=["cent","copy","divide","gt","lt","not","para","times"],Vt={}.hasOwnProperty,Be={};let ie;for(ie in Ie)Vt.call(Ie,ie)&&(Be[Ie[ie]]=ie);const Li=/[^\dA-Za-z]/;function bi(r,e,t,i){const n=String.fromCharCode(r);if(Vt.call(Be,n)){const s=Be[n],o="&"+s;return t&&Ti.includes(s)&&!Ai.includes(s)&&(!i||e&&e!==61&&Li.test(String.fromCharCode(e)))?o:o+";"}return""}function Pi(r,e,t){let i=yi(r,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=bi(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const s=vi(r,e,t.omitOptionalSemicolons);s.length<i.length&&(i=s)}return n&&(!t.useShortestReferences||n.length<i.length)?n:i}function F(r,e){return _i(r,Object.assign({format:Pi},e))}const Ii=/^>|^->|<!--|-->|--!>|<!-$/g,Si=[">"],Oi=["<",">"];function wi(r,e,t,i){return i.settings.bogusComments?"<?"+F(r.value,Object.assign({},i.settings.characterReferences,{subset:Si}))+">":"<!--"+r.value.replace(Ii,n)+"-->";function n(s){return F(s,Object.assign({},i.settings.characterReferences,{subset:Oi}))}}function Ci(r,e,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const b=Gt(1),xt=Gt(-1),Di=[];function Gt(r){return e;function e(t,i,n){const s=t?t.children:Di;let o=(i||0)+r,c=s[o];if(!n)for(;c&&je(c);)o+=r,c=s[o];return c}}const ki={}.hasOwnProperty;function Mt(r){return e;function e(t,i,n){return ki.call(r,t.tagName)&&r[t.tagName](t,i,n)}}const Ue=Mt({body:Vi,caption:Se,colgroup:Se,dd:Bi,dt:Mi,head:Se,html:Ni,li:Gi,optgroup:ji,option:$i,p:xi,rp:ct,rt:ct,tbody:Wi,td:lt,tfoot:Ui,th:lt,thead:Fi,tr:Hi});function Se(r,e,t){const i=b(t,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&je(i.value.charAt(0)))}function Ni(r,e,t){const i=b(t,e);return!i||i.type!=="comment"}function Vi(r,e,t){const i=b(t,e);return!i||i.type!=="comment"}function xi(r,e,t){const i=b(t,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Gi(r,e,t){const i=b(t,e);return!i||i.type==="element"&&i.tagName==="li"}function Mi(r,e,t){const i=b(t,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Bi(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function ct(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function ji(r,e,t){const i=b(t,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function $i(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function Fi(r,e,t){const i=b(t,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Wi(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function Ui(r,e,t){return!b(t,e)}function Hi(r,e,t){const i=b(t,e);return!i||i.type==="element"&&i.tagName==="tr"}function lt(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const qi=Mt({body:Ki,colgroup:Qi,head:Ji,html:zi,tbody:Xi});function zi(r){const e=b(r,-1);return!e||e.type!=="comment"}function Ji(r){const e=new Set;for(const i of r.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const t=r.children[0];return!t||t.type==="element"}function Ki(r){const e=b(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&je(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Qi(r,e,t){const i=xt(t,e),n=b(r,-1,!0);return t&&i&&i.type==="element"&&i.tagName==="colgroup"&&Ue(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Xi(r,e,t){const i=xt(t,e),n=b(r,-1);return t&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Ue(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const ne={name:[[`
5
- \f\r &/=>`.split(""),`
6
- \f\r "&'/=>\``.split("")],[`\0
7
- \f\r "&'/<=>`.split(""),`\0
8
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
9
- \f\r &>`.split(""),`\0
10
- \f\r "&'<=>\``.split("")],[`\0
11
- \f\r "&'<=>\``.split(""),`\0
12
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Yi(r,e,t,i){const n=i.schema,s=n.space==="svg"?!1:i.settings.omitOptionalTags;let o=n.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(r.tagName.toLowerCase());const c=[];let a;n.space==="html"&&r.tagName==="svg"&&(i.schema=gt);const u=Zi(i,r.properties),d=i.all(n.space==="html"&&r.tagName==="template"?r.content:r);return i.schema=n,d&&(o=!1),(u||!s||!qi(r,e,t))&&(c.push("<",r.tagName,u?" "+u:""),o&&(n.space==="svg"||i.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!i.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(d),!o&&(!s||!Ue(r,e,t))&&c.push("</"+r.tagName+">"),c.join("")}function Zi(r,e){const t=[];let i=-1,n;if(e){for(n in e)if(e[n]!==null&&e[n]!==void 0){const s=en(r,n,e[n]);s&&t.push(s)}}for(;++i<t.length;){const s=r.settings.tightAttributes?t[i].charAt(t[i].length-1):void 0;i!==t.length-1&&s!=='"'&&s!=="'"&&(t[i]+=" ")}return t.join("")}function en(r,e,t){const i=Yt(r.schema,e),n=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,s=r.settings.allowDangerousCharacters?0:1;let o=r.quote,c;if(i.overloadedBoolean&&(t===i.attribute||t==="")?t=!0:(i.boolean||i.overloadedBoolean)&&(typeof t!="string"||t===i.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=F(i.attribute,Object.assign({},r.settings.characterReferences,{subset:ne.name[n][s]}));return t===!0||(t=Array.isArray(t)?(i.commaSeparated?Zt:er)(t,{padLeft:!r.settings.tightCommaSeparatedLists}):String(t),r.settings.collapseEmptyAttributes&&!t)?a:(r.settings.preferUnquoted&&(c=F(t,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:ne.unquoted[n][s]}))),c!==t&&(r.settings.quoteSmart&&Xe(t,o)>Xe(t,r.alternative)&&(o=r.alternative),c=o+F(t,Object.assign({},r.settings.characterReferences,{subset:(o==="'"?ne.single:ne.double)[n][s],attribute:!0}))+o),a+(c&&"="+c))}const tn=["<","&"];function Bt(r,e,t,i){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?r.value:F(r.value,Object.assign({},i.settings.characterReferences,{subset:tn}))}function rn(r,e,t,i){return i.settings.allowDangerousHtml?r.value:Bt(r,e,t,i)}function nn(r,e,t,i){return i.all(r)}const sn=rr("type",{invalid:on,unknown:an,handlers:{comment:wi,doctype:Ci,element:Yi,raw:rn,root:nn,text:Bt}});function on(r){throw new Error("Expected node, not `"+r+"`")}function an(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const cn={},ln={},un=[];function mn(r,e){const t=cn,i=t.quote||'"',n=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:hn,all:dn,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||ui,characterReferences:t.characterReferences||ln,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?gt:tr,quote:i,alternative:n}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function hn(r,e,t){return sn(r,e,t,this)}function dn(r){const e=[],t=r&&r.children||un;let i=-1;for(;++i<t.length;)e[i]=this.one(t[i],i,r);return e.join("")}function pn(r){return Array.isArray(r)?r:[r]}function Re(r,e=!1){var s;const t=r.split(/(\r?\n)/g);let i=0;const n=[];for(let o=0;o<t.length;o+=2){const c=e?t[o]+(t[o+1]||""):t[o];n.push([c,i]),i+=t[o].length,i+=((s=t[o+1])==null?void 0:s.length)||0}return n}function He(r){return!r||["plaintext","txt","text","plain"].includes(r)}function jt(r){return r==="ansi"||He(r)}function qe(r){return r==="none"}function $t(r){return qe(r)}function Ft(r,e){var t;if(!e)return r;r.properties||(r.properties={}),(t=r.properties).class||(t.class=[]),typeof r.properties.class=="string"&&(r.properties.class=r.properties.class.split(/\s+/g)),Array.isArray(r.properties.class)||(r.properties.class=[]);const i=Array.isArray(e)?e:e.split(/\s+/g);for(const n of i)n&&!r.properties.class.includes(n)&&r.properties.class.push(n);return r}function _n(r,e){let t=0;const i=[];for(const n of e)n>t&&i.push({...r,content:r.content.slice(t,n),offset:r.offset+t}),t=n;return t<r.content.length&&i.push({...r,content:r.content.slice(t),offset:r.offset+t}),i}function fn(r,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((i,n)=>i-n);return t.length?r.map(i=>i.flatMap(n=>{const s=t.filter(o=>n.offset<o&&o<n.offset+n.content.length).map(o=>o-n.offset).sort((o,c)=>o-c);return s.length?_n(n,s):n})):r}async function Wt(r){return Promise.resolve(typeof r=="function"?r():r).then(e=>e.default||e)}function pe(r,e){const t=typeof r=="string"?{}:{...r.colorReplacements},i=typeof r=="string"?r:r.name;for(const[n,s]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof s=="string"?t[n]=s:n===i&&Object.assign(t,s);return t}function M(r,e){return r&&((e==null?void 0:e[r==null?void 0:r.toLowerCase()])||r)}function Ut(r){const e={};return r.color&&(e.color=r.color),r.bgColor&&(e["background-color"]=r.bgColor),r.fontStyle&&(r.fontStyle&V.Italic&&(e["font-style"]="italic"),r.fontStyle&V.Bold&&(e["font-weight"]="bold"),r.fontStyle&V.Underline&&(e["text-decoration"]="underline")),e}function gn(r){return typeof r=="string"?r:Object.entries(r).map(([e,t])=>`${e}:${t}`).join(";")}function En(r){const e=Re(r,!0).map(([n])=>n);function t(n){if(n===r.length)return{line:e.length-1,character:e[e.length-1].length};let s=n,o=0;for(const c of e){if(s<c.length)break;s-=c.length,o++}return{line:o,character:s}}function i(n,s){let o=0;for(let c=0;c<n;c++)o+=e[c].length;return o+=s,o}return{lines:e,indexToPos:t,posToIndex:i}}class S extends Error{constructor(e){super(e),this.name="ShikiError"}}var yn=Object.defineProperty,Rn=(r,e,t)=>e in r?yn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ut=(r,e,t)=>(Rn(r,typeof e!="symbol"?e+"":e,t),t);const Ht=new WeakMap;function ve(r,e){Ht.set(r,e)}function Y(r){return Ht.get(r)}class U{constructor(...e){if(ut(this,"_stacks",{}),ut(this,"lang"),e.length===2){const[t,i]=e;this.lang=i,this._stacks=t}else{const[t,i,n]=e;this.lang=i,this._stacks={[n]:t}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new U(Object.fromEntries(pn(t).map(i=>[i,Me])),e)}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return mt(this._stacks[this.theme])}getScopes(e=this.theme){return mt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function mt(r){const e=[],t=new Set;function i(n){var o;if(t.has(n))return;t.add(n);const s=(o=n==null?void 0:n.nameScopesList)==null?void 0:o.scopeName;s&&e.push(s),n.parent&&i(n.parent)}return i(r),e}function vn(r,e){if(!(r instanceof U))throw new S("Invalid grammar state");return r.getInternalStack(e)}function Tn(){const r=new WeakMap;function e(t){if(!r.has(t.meta)){let i=function(o){if(typeof o=="number"){if(o<0||o>t.source.length)throw new S(`Invalid decoration offset: ${o}. Code length: ${t.source.length}`);return{...n.indexToPos(o),offset:o}}else{const c=n.lines[o.line];if(c===void 0)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${n.lines.length}`);if(o.character<0||o.character>c.length)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${c.length}`);return{...o,offset:n.posToIndex(o.line,o.character)}}};const n=En(t.source),s=(t.options.decorations||[]).map(o=>({...o,start:i(o.start),end:i(o.end)}));An(s),r.set(t.meta,{decorations:s,converter:n,source:t.source})}return r.get(t.meta)}return{name:"shiki:decorations",tokens(t){var o;if(!((o=this.options.decorations)!=null&&o.length))return;const n=e(this).decorations.flatMap(c=>[c.start.offset,c.end.offset]);return fn(t,n)},code(t){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const i=e(this),n=Array.from(t.children).filter(h=>h.type==="element"&&h.tagName==="span");if(n.length!==i.converter.lines.length)throw new S(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function s(h,p,m,_){const R=n[h];let g="",f=-1,E=-1;if(p===0&&(f=0),m===0&&(E=0),m===Number.POSITIVE_INFINITY&&(E=R.children.length),f===-1||E===-1)for(let v=0;v<R.children.length;v++)g+=qt(R.children[v]),f===-1&&g.length===p&&(f=v+1),E===-1&&g.length===m&&(E=v+1);if(f===-1)throw new S(`Failed to find start index for decoration ${JSON.stringify(_.start)}`);if(E===-1)throw new S(`Failed to find end index for decoration ${JSON.stringify(_.end)}`);const y=R.children.slice(f,E);if(!_.alwaysWrap&&y.length===R.children.length)c(R,_,"line");else if(!_.alwaysWrap&&y.length===1&&y[0].type==="element")c(y[0],_,"token");else{const v={type:"element",tagName:"span",properties:{},children:y};c(v,_,"wrapper"),R.children.splice(f,y.length,v)}}function o(h,p){n[h]=c(n[h],p,"line")}function c(h,p,m){var g;const _=p.properties||{},R=p.transform||(f=>f);return h.tagName=p.tagName||"span",h.properties={...h.properties,..._,class:h.properties.class},(g=p.properties)!=null&&g.class&&Ft(h,p.properties.class),h=R(h,m)||h,h}const a=[],u=i.decorations.sort((h,p)=>p.start.offset-h.start.offset);for(const h of u){const{start:p,end:m}=h;if(p.line===m.line)s(p.line,p.character,m.character,h);else if(p.line<m.line){s(p.line,p.character,Number.POSITIVE_INFINITY,h);for(let _=p.line+1;_<m.line;_++)a.unshift(()=>o(_,h));s(m.line,0,m.character,h)}}a.forEach(h=>h())}}}function An(r){for(let e=0;e<r.length;e++){const t=r[e];if(t.start.offset>t.end.offset)throw new S(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let i=e+1;i<r.length;i++){const n=r[i],s=t.start.offset<n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<t.end.offset,c=n.start.offset<t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<n.end.offset;if(s||o||c||a){if(o&&o||c&&a)continue;throw new S(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function qt(r){return r.type==="text"?r.value:r.type==="element"?r.children.map(qt).join(""):""}const Ln=[Tn()];function _e(r){return[...r.transformers||[],...Ln]}var B=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Oe={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function bn(r,e){const t=r.indexOf("\x1B[",e);if(t!==-1){const i=r.indexOf("m",t);return{sequence:r.substring(t+2,i).split(";"),startPosition:t,position:i+1}}return{position:r.length}}function ht(r,e){let t=1;const i=r[e+t++];let n;if(i==="2"){const s=[r[e+t++],r[e+t++],r[e+t]].map(o=>Number.parseInt(o));s.length===3&&!s.some(o=>Number.isNaN(o))&&(n={type:"rgb",rgb:s})}else if(i==="5"){const s=Number.parseInt(r[e+t]);Number.isNaN(s)||(n={type:"table",index:Number(s)})}return[t,n]}function Pn(r){const e=[];for(let t=0;t<r.length;t++){const i=r[t],n=Number.parseInt(i);if(!Number.isNaN(n))if(n===0)e.push({type:"resetAll"});else if(n<=9)Oe[n]&&e.push({type:"setDecoration",value:Oe[n]});else if(n<=29){const s=Oe[n-20];s&&e.push({type:"resetDecoration",value:s})}else if(n<=37)e.push({type:"setForegroundColor",value:{type:"named",name:B[n-30]}});else if(n===38){const[s,o]=ht(r,t);o&&e.push({type:"setForegroundColor",value:o}),t+=s}else if(n===39)e.push({type:"resetForegroundColor"});else if(n<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:B[n-40]}});else if(n===48){const[s,o]=ht(r,t);o&&e.push({type:"setBackgroundColor",value:o}),t+=s}else n===49?e.push({type:"resetBackgroundColor"}):n>=90&&n<=97?e.push({type:"setForegroundColor",value:{type:"named",name:B[n-90+8]}}):n>=100&&n<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:B[n-100+8]}})}return e}function In(){let r=null,e=null,t=new Set;return{parse(i){const n=[];let s=0;do{const o=bn(i,s),c=o.sequence?i.substring(s,o.startPosition):i.substring(s);if(c.length>0&&n.push({value:c,foreground:r,background:e,decorations:new Set(t)}),o.sequence){const a=Pn(o.sequence);for(const u of a)u.type==="resetAll"?(r=null,e=null,t.clear()):u.type==="resetForegroundColor"?r=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&t.delete(u.value);for(const u of a)u.type==="setForegroundColor"?r=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&t.add(u.value)}s=o.position}while(s<i.length);return n}}}var Sn={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function On(r=Sn){function e(c){return r[c]}function t(c){return`#${c.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let i;function n(){if(i)return i;i=[];for(let u=0;u<B.length;u++)i.push(e(B[u]));let c=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let d=0;d<6;d++)for(let h=0;h<6;h++)i.push(t([c[u],c[d],c[h]]));let a=8;for(let u=0;u<24;u++,a+=10)i.push(t([a,a,a]));return i}function s(c){return n()[c]}function o(c){switch(c.type){case"named":return e(c.name);case"rgb":return t(c.rgb);case"table":return s(c.index)}}return{value:o}}function wn(r,e,t){const i=pe(r,t),n=Re(e),s=On(Object.fromEntries(B.map(c=>{var a;return[c,(a=r.colors)==null?void 0:a[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]}))),o=In();return n.map(c=>o.parse(c[0]).map(a=>{let u,d;a.decorations.has("reverse")?(u=a.background?s.value(a.background):r.bg,d=a.foreground?s.value(a.foreground):r.fg):(u=a.foreground?s.value(a.foreground):r.fg,d=a.background?s.value(a.background):void 0),u=M(u,i),d=M(d,i),a.decorations.has("dim")&&(u=Cn(u));let h=V.None;return a.decorations.has("bold")&&(h|=V.Bold),a.decorations.has("italic")&&(h|=V.Italic),a.decorations.has("underline")&&(h|=V.Underline),{content:a.value,offset:c[1],color:u,bgColor:d,fontStyle:h}}))}function Cn(r){const e=r.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const i=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${i}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(i=>`${i}${i}`).join("")}80`;const t=r.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:r}function ze(r,e,t={}){const{lang:i="text",theme:n=r.getLoadedThemes()[0]}=t;if(He(i)||qe(n))return Re(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:s,colorMap:o}=r.setTheme(n);if(i==="ansi")return wn(s,e,t);const c=r.getLanguage(i);if(t.grammarState){if(t.grammarState.lang!==c.name)throw new x(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${c.name}"`);if(!t.grammarState.themes.includes(s.name))throw new x(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return kn(e,c,s,o,t)}function Dn(...r){if(r.length===2)return Y(r[1]);const[e,t,i={}]=r,{lang:n="text",theme:s=e.getLoadedThemes()[0]}=i;if(He(n)||qe(s))throw new x("Plain language does not have grammar state");if(n==="ansi")throw new x("ANSI language does not have grammar state");const{theme:o,colorMap:c}=e.setTheme(s),a=e.getLanguage(n);return new U(fe(t,a,o,c,i).stateStack,a.name,o.name)}function kn(r,e,t,i,n){const s=fe(r,e,t,i,n),o=new U(fe(r,e,t,i,n).stateStack,e.name,t.name);return ve(s.tokens,o),s.tokens}function fe(r,e,t,i,n){const s=pe(t,n),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:c=500}=n,a=Re(r);let u=n.grammarState?vn(n.grammarState,t.name)??Me:n.grammarContextCode!=null?fe(n.grammarContextCode,e,t,i,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:Me,d=[];const h=[];for(let p=0,m=a.length;p<m;p++){const[_,R]=a[p];if(_===""){d=[],h.push([]);continue}if(o>0&&_.length>=o){d=[],h.push([{content:_,offset:R,color:"",fontStyle:0}]);continue}let g,f,E;n.includeExplanation&&(g=e.tokenizeLine(_,u),f=g.tokens,E=0);const y=e.tokenizeLine2(_,u,c),v=y.tokens.length/2;for(let T=0;T<v;T++){const O=y.tokens[2*T],L=T+1<v?y.tokens[2*T+2]:_.length;if(O===L)continue;const k=y.tokens[2*T+1],ee=M(i[W.getForeground(k)],s),H=W.getFontStyle(k),Te={content:_.substring(O,L),offset:R+O,color:ee,fontStyle:H};if(n.includeExplanation){const Ke=[];if(n.includeExplanation!=="scopeName")for(const N of t.settings){let j;switch(typeof N.scope){case"string":j=N.scope.split(/,/).map(Ae=>Ae.trim());break;case"object":j=N.scope;break;default:continue}Ke.push({settings:N,selectors:j.map(Ae=>Ae.split(/ /))})}Te.explanation=[];let Qe=0;for(;O+Qe<L;){const N=f[E],j=_.substring(N.startIndex,N.endIndex);Qe+=j.length,Te.explanation.push({content:j,scopes:n.includeExplanation==="scopeName"?Nn(N.scopes):Vn(Ke,N.scopes)}),E+=1}}d.push(Te)}h.push(d),d=[],u=y.ruleStack}return{tokens:h,stateStack:u}}function Nn(r){return r.map(e=>({scopeName:e}))}function Vn(r,e){const t=[];for(let i=0,n=e.length;i<n;i++){const s=e[i];t[i]={scopeName:s,themeMatches:Gn(r,s,e.slice(0,i))}}return t}function dt(r,e){return r===e||e.substring(0,r.length)===r&&e[r.length]==="."}function xn(r,e,t){if(!dt(r[r.length-1],e))return!1;let i=r.length-2,n=t.length-1;for(;i>=0&&n>=0;)dt(r[i],t[n])&&(i-=1),n-=1;return i===-1}function Gn(r,e,t){const i=[];for(const{selectors:n,settings:s}of r)for(const o of n)if(xn(o,e,t)){i.push(s);break}return i}function zt(r,e,t){const i=Object.entries(t.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),n=i.map(a=>{const u=ze(r,e,{...t,theme:a.theme}),d=Y(u),h=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:u,state:d,theme:h}}),s=Mn(...n.map(a=>a.tokens)),o=s[0].map((a,u)=>a.map((d,h)=>{const p={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in t&&t.includeExplanation&&(p.explanation=d.explanation),s.forEach((m,_)=>{const{content:R,explanation:g,offset:f,...E}=m[u][h];p.variants[i[_].color]=E}),p})),c=n[0].state?new U(Object.fromEntries(n.map(a=>{var u;return[a.theme,(u=a.state)==null?void 0:u.getInternalStack(a.theme)]})),n[0].state.lang):void 0;return c&&ve(o,c),o}function Mn(...r){const e=r.map(()=>[]),t=r.length;for(let i=0;i<r[0].length;i++){const n=r.map(a=>a[i]),s=e.map(()=>[]);e.forEach((a,u)=>a.push(s[u]));const o=n.map(()=>0),c=n.map(a=>a[0]);for(;c.every(a=>a);){const a=Math.min(...c.map(u=>u.content.length));for(let u=0;u<t;u++){const d=c[u];d.content.length===a?(s[u].push(d),o[u]+=1,c[u]=n[u][o[u]]):(s[u].push({...d,content:d.content.slice(0,a)}),c[u]={...d,content:d.content.slice(a),offset:d.offset+a})}}}return e}function ge(r,e,t){let i,n,s,o,c,a;if("themes"in t){const{defaultColor:u="light",cssVariablePrefix:d="--shiki-"}=t,h=Object.entries(t.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,f)=>g.color===u?-1:f.color===u?1:0);if(h.length===0)throw new x("`themes` option must not be empty");const p=zt(r,e,t);if(a=Y(p),u&&!h.find(g=>g.color===u))throw new x(`\`themes\` option must contain the defaultColor key \`${u}\``);const m=h.map(g=>r.getTheme(g.theme)),_=h.map(g=>g.color);s=p.map(g=>g.map(f=>Bn(f,_,d,u))),a&&ve(s,a);const R=h.map(g=>pe(g.theme,t));n=h.map((g,f)=>(f===0&&u?"":`${d+g.color}:`)+(M(m[f].fg,R[f])||"inherit")).join(";"),i=h.map((g,f)=>(f===0&&u?"":`${d+g.color}-bg:`)+(M(m[f].bg,R[f])||"inherit")).join(";"),o=`shiki-themes ${m.map(g=>g.name).join(" ")}`,c=u?void 0:[n,i].join(";")}else if("theme"in t){const u=pe(t.theme,t);s=ze(r,e,t);const d=r.getTheme(t.theme);i=M(d.bg,u),n=M(d.fg,u),o=d.name,a=Y(s)}else throw new x("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:n,bg:i,themeName:o,rootStyle:c,grammarState:a}}function Bn(r,e,t,i){const n={content:r.content,explanation:r.explanation,offset:r.offset},s=e.map(a=>Ut(r.variants[a])),o=new Set(s.flatMap(a=>Object.keys(a))),c={};return s.forEach((a,u)=>{for(const d of o){const h=a[d]||"inherit";if(u===0&&i)c[d]=h;else{const p=d==="color"?"":d==="background-color"?"-bg":`-${d}`,m=t+e[u]+(d==="color"?"":p);c[m]=h}}}),n.htmlStyle=c,n}function Ee(r,e,t,i={meta:{},options:t,codeToHast:(n,s)=>Ee(r,n,s),codeToTokens:(n,s)=>ge(r,n,s)}){var m,_;let n=e;for(const R of _e(t))n=((m=R.preprocess)==null?void 0:m.call(i,n,t))||n;let{tokens:s,fg:o,bg:c,themeName:a,rootStyle:u,grammarState:d}=ge(r,n,t);const{mergeWhitespaces:h=!0}=t;h===!0?s=$n(s):h==="never"&&(s=Fn(s));const p={...i,get source(){return n}};for(const R of _e(t))s=((_=R.tokens)==null?void 0:_.call(p,s))||s;return jn(s,{...t,fg:o,bg:c,themeName:a,rootStyle:u},p,d)}function jn(r,e,t,i=Y(r)){var _,R,g;const n=_e(e),s=[],o={type:"root",children:[]},{structure:c="classic",tabindex:a="0"}=e;let u={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...a!==!1&&a!=null?{tabindex:a.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([f])=>!f.startsWith("_")))},children:[]},d={type:"element",tagName:"code",properties:{},children:s};const h=[],p={...t,structure:c,addClassToHast:Ft,get source(){return t.source},get tokens(){return r},get options(){return e},get root(){return o},get pre(){return u},get code(){return d},get lines(){return h}};if(r.forEach((f,E)=>{var T,O;E&&(c==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&s.push({type:"text",value:`
13
- `}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const L of f){let k={type:"element",tagName:"span",properties:{...L.htmlAttrs},children:[{type:"text",value:L.content}]};L.htmlStyle;const ee=gn(L.htmlStyle||Ut(L));ee&&(k.properties.style=ee);for(const H of n)k=((T=H==null?void 0:H.span)==null?void 0:T.call(p,k,E+1,v,y,L))||k;c==="inline"?o.children.push(k):c==="classic"&&y.children.push(k),v+=L.content.length}if(c==="classic"){for(const L of n)y=((O=L==null?void 0:L.line)==null?void 0:O.call(p,y,E+1))||y;h.push(y),s.push(y)}}),c==="classic"){for(const f of n)d=((_=f==null?void 0:f.code)==null?void 0:_.call(p,d))||d;u.children.push(d);for(const f of n)u=((R=f==null?void 0:f.pre)==null?void 0:R.call(p,u))||u;o.children.push(u)}let m=o;for(const f of n)m=((g=f==null?void 0:f.root)==null?void 0:g.call(p,m))||m;return i&&ve(m,i),m}function $n(r){return r.map(e=>{const t=[];let i="",n=0;return e.forEach((s,o)=>{const a=!(s.fontStyle&&s.fontStyle&V.Underline);a&&s.content.match(/^\s+$/)&&e[o+1]?(n||(n=s.offset),i+=s.content):i?(a?t.push({...s,offset:n,content:i+s.content}):t.push({content:i,offset:n},s),n=0,i=""):t.push(s)}),t})}function Fn(r){return r.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const i=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return t;const[,n,s,o]=i;if(!n&&!o)return t;const c=[{...t,offset:t.offset+n.length,content:s}];return n&&c.unshift({content:n,offset:t.offset}),o&&c.push({content:o,offset:t.offset+n.length+s.length}),c}))}function Wn(r,e,t){var s;const i={meta:{},options:t,codeToHast:(o,c)=>Ee(r,o,c),codeToTokens:(o,c)=>ge(r,o,c)};let n=mn(Ee(r,e,t,i));for(const o of _e(t))n=((s=o.postprocess)==null?void 0:s.call(i,n,t))||n;return n}const pt={light:"#333333",dark:"#bbbbbb"},_t={light:"#fffffe",dark:"#1e1e1e"},ft="__shiki_resolved";function Je(r){var c,a,u,d,h;if(r!=null&&r[ft])return r;const e={...r};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:t,fg:i}=e;if(!t||!i){const p=e.settings?e.settings.find(m=>!m.name&&!m.scope):void 0;(c=p==null?void 0:p.settings)!=null&&c.foreground&&(i=p.settings.foreground),(a=p==null?void 0:p.settings)!=null&&a.background&&(t=p.settings.background),!i&&((u=e==null?void 0:e.colors)!=null&&u["editor.foreground"])&&(i=e.colors["editor.foreground"]),!t&&((d=e==null?void 0:e.colors)!=null&&d["editor.background"])&&(t=e.colors["editor.background"]),i||(i=e.type==="light"?pt.light:pt.dark),t||(t=e.type==="light"?_t.light:_t.dark),e.fg=i,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let n=0;const s=new Map;function o(p){var _;if(s.has(p))return s.get(p);n+=1;const m=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return(_=e.colorReplacements)!=null&&_[`#${m}`]?o(p):(s.set(p,m),m)}e.settings=e.settings.map(p=>{var g,f;const m=((g=p.settings)==null?void 0:g.foreground)&&!p.settings.foreground.startsWith("#"),_=((f=p.settings)==null?void 0:f.background)&&!p.settings.background.startsWith("#");if(!m&&!_)return p;const R={...p,settings:{...p.settings}};if(m){const E=o(p.settings.foreground);e.colorReplacements[E]=p.settings.foreground,R.settings.foreground=E}if(_){const E=o(p.settings.background);e.colorReplacements[E]=p.settings.background,R.settings.background=E}return R});for(const p of Object.keys(e.colors||{}))if((p==="editor.foreground"||p==="editor.background"||p.startsWith("terminal.ansi"))&&!((h=e.colors[p])!=null&&h.startsWith("#"))){const m=o(e.colors[p]);e.colorReplacements[m]=e.colors[p],e.colors[p]=m}return Object.defineProperty(e,ft,{enumerable:!1,writable:!1,value:!0}),e}async function Jt(r){return Array.from(new Set((await Promise.all(r.filter(e=>!jt(e)).map(async e=>await Wt(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function Kt(r){return(await Promise.all(r.map(async t=>$t(t)?null:Je(await Wt(t))))).filter(t=>!!t)}var Un=Object.defineProperty,Hn=(r,e,t)=>e in r?Un(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,G=(r,e,t)=>(Hn(r,typeof e!="symbol"?e+"":e,t),t);class qn extends li{constructor(e,t,i,n={}){super(e),this._resolver=e,this._themes=t,this._langs=i,this._alias=n,G(this,"_resolvedThemes",new Map),G(this,"_resolvedGrammars",new Map),G(this,"_langMap",new Map),G(this,"_langGraph",new Map),G(this,"_textmateThemeCache",new WeakMap),G(this,"_loadedThemesCache",null),G(this,"_loadedLanguagesCache",null),this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=Je(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=le.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new S(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){var s,o,c,a;if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(u=>{var d;return(d=u.embeddedLangsLazy)==null?void 0:d.includes(e.name)}));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const n=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(u=>{this._alias[u]=e.name}),this._loadedLanguagesCache=null,t.size)for(const u of t)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(o=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||o.delete(u.scopeName),(a=(c=this._syncRegistry)==null?void 0:c._grammars)==null||a.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.entries()),i=t.filter(([n,s])=>!s);if(i.length){const n=t.filter(([s,o])=>{var c;return o&&((c=o.embeddedLangs)==null?void 0:c.some(a=>i.map(([u])=>u).includes(a)))}).filter(s=>!i.includes(s));throw new S(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${n.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[n,s]of t)this._resolver.addLanguage(s);for(const[n,s]of t)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}var zn=Object.defineProperty,Jn=(r,e,t)=>e in r?zn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,se=(r,e,t)=>(Jn(r,typeof e!="symbol"?e+"":e,t),t);class Kn{constructor(e,t){se(this,"_langs",new Map),se(this,"_scopeToLang",new Map),se(this,"_injections",new Map),se(this,"_onigLib"),this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},t.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let i=[];for(let n=1;n<=t.length;n++){const s=t.slice(0,n).join(".");i=[...i,...this._injections.get(s)||[]]}return i}}let q=0;function Qn(r){q+=1,r.warnings!==!1&&q>=10&&q%10===0&&console.warn(`[Shiki] ${q} 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.`);let e=!1;if(!r.engine)throw new S("`engine` option is required for synchronous mode");const t=(r.langs||[]).flat(1),i=(r.themes||[]).flat(1).map(Je),n=new Kn(r.engine,t),s=new qn(n,i,t,r.langAlias);let o;function c(E){g();const y=s.getGrammar(typeof E=="string"?E:E.name);if(!y)throw new S(`Language \`${E}\` not found, you may need to load it first`);return y}function a(E){if(E==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const y=s.getTheme(E);if(!y)throw new S(`Theme \`${E}\` not found, you may need to load it first`);return y}function u(E){g();const y=a(E);o!==E&&(s.setTheme(y),o=E);const v=s.getColorMap();return{theme:y,colorMap:v}}function d(){return g(),s.getLoadedThemes()}function h(){return g(),s.getLoadedLanguages()}function p(...E){g(),s.loadLanguages(E.flat(1))}async function m(...E){return p(await Jt(E))}function _(...E){g();for(const y of E.flat(1))s.loadTheme(y)}async function R(...E){return g(),_(await Kt(E))}function g(){if(e)throw new S("Shiki instance has been disposed")}function f(){e||(e=!0,s.dispose(),q-=1)}return{setTheme:u,getTheme:a,getLanguage:c,getLoadedThemes:d,getLoadedLanguages:h,loadLanguage:m,loadLanguageSync:p,loadTheme:R,loadThemeSync:_,dispose:f,[Symbol.dispose]:f}}async function Xn(r={}){r.loadWasm;const[e,t,i]=await Promise.all([Kt(r.themes||[]),Jt(r.langs||[]),r.engine||yt(r.loadWasm||Ar())]);return Qn({...r,loadWasm:void 0,themes:e,langs:t,engine:i})}async function Yn(r={}){const e=await Xn(r);return{getLastGrammarState:(...t)=>Dn(e,...t),codeToTokensBase:(t,i)=>ze(e,t,i),codeToTokensWithThemes:(t,i)=>zt(e,t,i),codeToTokens:(t,i)=>ge(e,t,i),codeToHast:(t,i)=>Ee(e,t,i),codeToHtml:(t,i)=>Wn(e,t,i),...e,getInternalContext:()=>e}}function Zn(r,e,t){let i,n,s;{const c=r;i=c.langs,n=c.themes,s=c.engine}async function o(c){function a(m){if(typeof m=="string"){if(jt(m))return[];const _=i[m];if(!_)throw new x(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return _}return m}function u(m){if($t(m))return"none";if(typeof m=="string"){const _=n[m];if(!_)throw new x(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return _}return m}const d=(c.themes??[]).map(m=>u(m)),h=(c.langs??[]).map(m=>a(m)),p=await Yn({engine:c.engine??s(),...c,themes:d,langs:h});return{...p,loadLanguage(...m){return p.loadLanguage(...m.map(a))},loadTheme(...m){return p.loadTheme(...m.map(u))}}}return o}function es(r){let e;async function t(i={}){if(e){const n=await e;return await Promise.all([n.loadTheme(...i.themes||[]),n.loadLanguage(...i.langs||[])]),n}else return e=r({...i,themes:i.themes||[],langs:i.langs||[]}),e}return t}function ts(r){const e=es(r);return{getSingletonHighlighter(t){return e(t)},async codeToHtml(t,i){return(await e({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)})).codeToHtml(t,i)},async codeToHast(t,i){return(await e({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)})).codeToHast(t,i)},async codeToTokens(t,i){return(await e({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)})).codeToTokens(t,i)},async codeToTokensBase(t,i){return(await e({langs:[i.lang],themes:[i.theme]})).codeToTokensBase(t,i)},async codeToTokensWithThemes(t,i){return(await e({langs:[i.lang],themes:Object.values(i.themes).filter(Boolean)})).codeToTokensWithThemes(t,i)},async getLastGrammarState(t,i){return(await e({langs:[i.lang],themes:[i.theme]})).getLastGrammarState(t,i)}}}const rs=Zn({langs:sr,themes:ar,engine:()=>yt(l(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:cs,codeToHast:ls,codeToTokens:us,codeToTokensBase:ms,codeToTokensWithThemes:hs,getSingletonHighlighter:ds,getLastGrammarState:ps}=ts(rs);export{V as FontStyle,x as ShikiError,W as StackElementMetadata,Ft as addClassToHast,M as applyColorReplacements,sr as bundledLanguages,nr as bundledLanguagesAlias,ir as bundledLanguagesBase,Et as bundledLanguagesInfo,ar as bundledThemes,or as bundledThemesInfo,ls as codeToHast,cs as codeToHtml,us as codeToTokens,ms as codeToTokensBase,hs as codeToTokensWithThemes,rs as createHighlighter,Yn as createHighlighterCore,yt as createOnigurumaEngine,En as createPositionConverter,Xn as createShikiInternal,Qn as createShikiInternalSync,ts as createSingletonShorthands,Zn as createdBundledHighlighter,ps as getLastGrammarState,ds as getSingletonHighlighter,Ut as getTokenStyleObject,mn as hastToHtml,qe as isNoneTheme,He as isPlainLang,jt as isSpecialLang,$t as isSpecialTheme,yr as loadWasm,es as makeSingletonHighlighter,Wt as normalizeGetter,Je as normalizeTheme,pe as resolveColorReplacements,Re as splitLines,_n as splitToken,fn as splitTokens,gn as stringifyTokenStyle,pn as toArray,wn as tokenizeAnsiWithTheme,kn as tokenizeWithTheme,jn as tokensToHast,Tn as transformerDecorations};