vibelet 1.2.237 → 1.2.238

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 (106) hide show
  1. package/README.md +35 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/inventory-scan-worker.cjs +1 -1
  4. package/dist/runtime-version.cjs +1 -1
  5. package/dist/vibelet.mjs +357 -244
  6. package/dist/web/assets/App-C21-MM7L.js +2 -0
  7. package/dist/web/assets/App-CbEM8WX0.css +1 -0
  8. package/dist/web/assets/BrowserControlPanel-CkKIuEsj.js +1 -0
  9. package/dist/web/assets/{ChipGroup-DCvI-4nb.js → ChipGroup-YMpjYR9P.js} +1 -1
  10. package/dist/web/assets/FilesControlPanel-CwbB5lm2.js +1 -0
  11. package/dist/web/assets/GlobalPendingDialog-DqEBvP53.js +1 -0
  12. package/dist/web/assets/{ImageViewer-ChfsVDQe.js → ImageViewer-CK5ZHIVv.js} +1 -1
  13. package/dist/web/assets/{LanguageSettingsPanel-P7H9JLtq.js → LanguageSettingsPanel-BXx4BvyU.js} +1 -1
  14. package/dist/web/assets/{MarkdownModePanel-B4zGnWRC.js → MarkdownModePanel-VRQHdCgq.js} +1 -1
  15. package/dist/web/assets/NewSessionDialog-CuL1-FFv.js +1 -0
  16. package/dist/web/assets/{NotificationSettingsPanel-BAcpsROS.js → NotificationSettingsPanel-D78c9Tv6.js} +1 -1
  17. package/dist/web/assets/{RemoteLifeOSBlock-C46RjZWn.js → RemoteLifeOSBlock-BjYrjRa2.js} +2 -2
  18. package/dist/web/assets/RemoteWorkspaceSettings-7jz8oX59.css +1 -0
  19. package/dist/web/assets/RemoteWorkspaceSettings-B9yBCaSU.js +1 -0
  20. package/dist/web/assets/{SessionTerminalPanel-pCQpIA-I.js → SessionTerminalPanel-D_XqGjcx.js} +1 -1
  21. package/dist/web/assets/{ThemeSettingsPanel-JUF7qFiS.js → ThemeSettingsPanel-BAHOGS0L.js} +1 -1
  22. package/dist/web/assets/{abnfDiagram-VRR7QNED-BUn7dXdz.js → abnfDiagram-VRR7QNED-C_g14JDy.js} +1 -1
  23. package/dist/web/assets/arc-Dlh78dPq.js +1 -0
  24. package/dist/web/assets/{architectureDiagram-ZJ3FMSHR-QlFDuk3c.js → architectureDiagram-ZJ3FMSHR-r6osYFBK.js} +1 -1
  25. package/dist/web/assets/{arrow-right-BkDm1nz1.js → arrow-right-BtC2L5Xy.js} +1 -1
  26. package/dist/web/assets/{blockDiagram-677ZJIJ3-Di1jkO8N.js → blockDiagram-677ZJIJ3-Dt1NkFp6.js} +1 -1
  27. package/dist/web/assets/{c4Diagram-LMCZKHZV-BIE5S3xC.js → c4Diagram-LMCZKHZV-DgzJiNGp.js} +1 -1
  28. package/dist/web/assets/channel-CoeVE6la.js +1 -0
  29. package/dist/web/assets/{chunk-2Q5K7J3B-BZdVpYMm.js → chunk-2Q5K7J3B-CuStQQP5.js} +1 -1
  30. package/dist/web/assets/{chunk-32BRIVSS-DniTjuKD.js → chunk-32BRIVSS-CqcvfQyF.js} +1 -1
  31. package/dist/web/assets/{chunk-5VM5RSS4-zU4WGQUt.js → chunk-5VM5RSS4-ClfzIwi_.js} +1 -1
  32. package/dist/web/assets/{chunk-EX3LRPZG-B_EGZWf3.js → chunk-EX3LRPZG-km8mrFBg.js} +1 -1
  33. package/dist/web/assets/{chunk-JWPE2WC7-8R4xqfzd.js → chunk-JWPE2WC7-CwqQJZta.js} +1 -1
  34. package/dist/web/assets/{chunk-MOJQB5TN-CmpQblce.js → chunk-MOJQB5TN-D6HJ3YLS.js} +1 -1
  35. package/dist/web/assets/{chunk-RYQCIY6F-DrT9S-SZ.js → chunk-RYQCIY6F-DzxL_I7L.js} +1 -1
  36. package/dist/web/assets/{chunk-V7JOEXUC-CEP012wY.js → chunk-V7JOEXUC-Cx4-zn7N.js} +1 -1
  37. package/dist/web/assets/{chunk-VR4S4FIN-DcSau3fK.js → chunk-VR4S4FIN-uFIJLxCS.js} +1 -1
  38. package/dist/web/assets/{chunk-XXDRQBXY-BoXCe4yS.js → chunk-XXDRQBXY-Cg2Q6HPU.js} +1 -1
  39. package/dist/web/assets/classDiagram-OUVF2IWQ-UcfsFNaj.js +1 -0
  40. package/dist/web/assets/classDiagram-v2-EOCWNBFH-UcfsFNaj.js +1 -0
  41. package/dist/web/assets/{clsx-DNJkZJoV.js → clsx-dhsJw0G5.js} +1 -1
  42. package/dist/web/assets/{collectMessageImages-CUMbRGiF.js → collectMessageImages-ZyOAE6id.js} +1 -1
  43. package/dist/web/assets/{cose-bilkent-JH36ORCC-DKrqebqO.js → cose-bilkent-JH36ORCC-CcjvJAJB.js} +1 -1
  44. package/dist/web/assets/{cynefin-VYW2F7L2-bQLn5vS2.js → cynefin-VYW2F7L2-fGkbWpUF.js} +1 -1
  45. package/dist/web/assets/{cynefinDiagram-TSTJHNR4-ezXQFC9o.js → cynefinDiagram-TSTJHNR4-Cvuw_uxU.js} +1 -1
  46. package/dist/web/assets/{dagre-VKFMJZFB-CDV8r_Bq.js → dagre-VKFMJZFB-D07owLRU.js} +1 -1
  47. package/dist/web/assets/{diagram-FQU43EPY-BICapB67.js → diagram-FQU43EPY-C8yKetrQ.js} +1 -1
  48. package/dist/web/assets/{diagram-G47NLZAW-TuVLjwN6.js → diagram-G47NLZAW-CM7slttO.js} +1 -1
  49. package/dist/web/assets/{diagram-NH7WQ7WH-B3dBWl3F.js → diagram-NH7WQ7WH-CAqIaHvI.js} +1 -1
  50. package/dist/web/assets/{diagram-OA4YK3LP-DeIQlN-6.js → diagram-OA4YK3LP-s_8LmV3Y.js} +1 -1
  51. package/dist/web/assets/{diagram-WEI45ONY-DZcwYcod.js → diagram-WEI45ONY-DcL-hbJN.js} +1 -1
  52. package/dist/web/assets/{ebnfDiagram-CCIWWBDH-4KcDP5Zj.js → ebnfDiagram-CCIWWBDH-BiY1-WEY.js} +1 -1
  53. package/dist/web/assets/{erDiagram-Q63AITRT-D4KIuggo.js → erDiagram-Q63AITRT-iIeyBkVv.js} +1 -1
  54. package/dist/web/assets/{file-editor-FileCodeEditor-Dn3f5PUl.js → file-editor-FileCodeEditor-Cc7o0SoW.js} +2 -2
  55. package/dist/web/assets/{file-editor-ObsidianCodeEditor-BgXz3c5Z.js → file-editor-ObsidianCodeEditor-DKHh91wx.js} +2 -2
  56. package/dist/web/assets/{file-editor-ObsidianFileEditor-CM9ucogo.js → file-editor-ObsidianFileEditor-D4DiY_3P.js} +2 -2
  57. package/dist/web/assets/{file-editor-index-C7QHkk3U.js → file-editor-index-BrEnI_H0.js} +1 -1
  58. package/dist/web/assets/{file-editor-index-DIH2DQ5-.js → file-editor-index-DdTlNUV4.js} +1 -1
  59. package/dist/web/assets/{flowDiagram-23GEKE2U-BeHvede_.js → flowDiagram-23GEKE2U-CTWUxjYj.js} +1 -1
  60. package/dist/web/assets/{folder-plus-BVS_Q2fe.js → folder-plus-Cud2L2F4.js} +1 -1
  61. package/dist/web/assets/{ganttDiagram-NO4QXBWP-DrwEUqQX.js → ganttDiagram-NO4QXBWP-wo784lYB.js} +1 -1
  62. package/dist/web/assets/{gitGraphDiagram-IHSO6WYX-Cm7T6TME.js → gitGraphDiagram-IHSO6WYX-BY6lbwzB.js} +1 -1
  63. package/dist/web/assets/{highlighted-body-TPN3WLV5-DJAPujEc.js → highlighted-body-TPN3WLV5-CDeMvzq_.js} +1 -1
  64. package/dist/web/assets/{index-CapF4a8Y.js → index-BTavN9lk.js} +1 -1
  65. package/dist/web/assets/{index-CX8KV6EH.js → index-Dx_1eu1W.js} +2 -2
  66. package/dist/web/assets/{infoDiagram-FWYZ7A6U-CgeulgC-.js → infoDiagram-FWYZ7A6U-CfoivPz9.js} +1 -1
  67. package/dist/web/assets/{ishikawaDiagram-FXEZZL3T-x4glLaWe.js → ishikawaDiagram-FXEZZL3T-Bt6xBkx3.js} +1 -1
  68. package/dist/web/assets/{journeyDiagram-5HDEW3XC-DHGcWBDR.js → journeyDiagram-5HDEW3XC-D_lKOA6h.js} +1 -1
  69. package/dist/web/assets/{kanban-definition-HUTT4EX6-CqYivdRn.js → kanban-definition-HUTT4EX6-Ce_DMiiq.js} +1 -1
  70. package/dist/web/assets/key-round-BgAVbd3A.js +1 -0
  71. package/dist/web/assets/{linear-BKnAjtJN.js → linear-DmQK5Nk3.js} +1 -1
  72. package/dist/web/assets/{mermaid-O7DHMXV3-B3e3pugB.js → mermaid-O7DHMXV3-DKlyhw3K.js} +2 -2
  73. package/dist/web/assets/{mermaid.core-CTf8qcol.js → mermaid.core-jR_k1I8D.js} +2 -2
  74. package/dist/web/assets/{mindmap-definition-LN4V7U3C-NQnwG7IB.js → mindmap-definition-LN4V7U3C-4KSBnEFJ.js} +1 -1
  75. package/dist/web/assets/{pegDiagram-2B236MQR-jfLjzzsG.js → pegDiagram-2B236MQR-rZKZ-HjO.js} +1 -1
  76. package/dist/web/assets/{pieDiagram-ENE6RG2P-CgxRYPCf.js → pieDiagram-ENE6RG2P-Fz-HbF4X.js} +1 -1
  77. package/dist/web/assets/{quadrantDiagram-ABIIQ3AL-0zHgV223.js → quadrantDiagram-ABIIQ3AL-G8TsEkFM.js} +1 -1
  78. package/dist/web/assets/{railroadDiagram-RFXS5EU6-CQqf55Rk.js → railroadDiagram-RFXS5EU6-ztb7MjCm.js} +1 -1
  79. package/dist/web/assets/{requirementDiagram-TGXJPOKE-Dm9cKzLN.js → requirementDiagram-TGXJPOKE-4Y2Rvrbc.js} +1 -1
  80. package/dist/web/assets/{sankeyDiagram-HTMAVEWB-BRBxR71X.js → sankeyDiagram-HTMAVEWB-BfX7WEmV.js} +1 -1
  81. package/dist/web/assets/{sequenceDiagram-DBY2YBRQ-DxVBmbfg.js → sequenceDiagram-DBY2YBRQ-BMavjnNv.js} +1 -1
  82. package/dist/web/assets/{sizeCapture-X5ZJPWSS-DNNwG-Sh.js → sizeCapture-X5ZJPWSS-DGkFWUNW.js} +1 -1
  83. package/dist/web/assets/{stateDiagram-2N3HPSRC-C8KGcqhJ.js → stateDiagram-2N3HPSRC-Bu42YWoA.js} +1 -1
  84. package/dist/web/assets/stateDiagram-v2-6OUMAXLB-BwgU75NJ.js +1 -0
  85. package/dist/web/assets/{swimlanes-5IMT3BWC-CRe3WzWn.js → swimlanes-5IMT3BWC-BGb3og3u.js} +2 -2
  86. package/dist/web/assets/swimlanesDiagram-G3AALYLV-D2gngEsl.js +1 -0
  87. package/dist/web/assets/{timeline-definition-FHXFAJF6-CQqiFe9j.js → timeline-definition-FHXFAJF6-Bvzb38qw.js} +1 -1
  88. package/dist/web/assets/{ts-tags-Chlpw95x.js → ts-tags-DAT_GLYZ.js} +1 -1
  89. package/dist/web/assets/{vennDiagram-L72KCM5P-C_5c80TB.js → vennDiagram-L72KCM5P-n0xgqOqd.js} +1 -1
  90. package/dist/web/assets/{wardleyDiagram-EHGQE667-DJ2RRwLP.js → wardleyDiagram-EHGQE667-CwAxqpRk.js} +1 -1
  91. package/dist/web/assets/{xychartDiagram-FW5EYKEG-MgVCQknE.js → xychartDiagram-FW5EYKEG-B6f2c1Rw.js} +1 -1
  92. package/dist/web/index.html +1 -1
  93. package/dist/web/obsidian-editor-assets.json +1 -1
  94. package/package.json +1 -1
  95. package/dist/web/assets/App-BY3qcVsa.css +0 -1
  96. package/dist/web/assets/App-CLTYkSvy.js +0 -2
  97. package/dist/web/assets/BrowserControlPanel-DJHj2vwI.js +0 -1
  98. package/dist/web/assets/FilesControlPanel-B-pqZWgH.js +0 -1
  99. package/dist/web/assets/GlobalPendingDialog-M2Dbntba.js +0 -1
  100. package/dist/web/assets/NewSessionDialog-Cw6WvtMR.js +0 -1
  101. package/dist/web/assets/arc-BW2CYTF6.js +0 -1
  102. package/dist/web/assets/channel-CgLW9Jd5.js +0 -1
  103. package/dist/web/assets/classDiagram-OUVF2IWQ-BTbMtdvt.js +0 -1
  104. package/dist/web/assets/classDiagram-v2-EOCWNBFH-BTbMtdvt.js +0 -1
  105. package/dist/web/assets/stateDiagram-v2-6OUMAXLB-Bk6KXy8V.js +0 -1
  106. package/dist/web/assets/swimlanesDiagram-G3AALYLV-DsL6VYKg.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CGDGYtiS.js","assets/html-Z-jPWkqI.js","assets/javascript-DFyEbC5y.js","assets/css-l46fsARh.js","assets/angular-ts-5zO4eZho.js","assets/scss-CHxzYwli.js","assets/apl-DnQuo7r7.js","assets/xml-BsgRw6d1.js","assets/java-DtRXFtDl.js","assets/json-LWN7Ml79.js","assets/astro-B5Br1cQb.js","assets/typescript-DI7mmMRd.js","assets/postcss-CeUBPB2S.js","assets/tsx-DYwE5ssU.js","assets/blade-C76tewJX.js","assets/html-derivative-CUTCBBy5.js","assets/sql-BhJCBb_s.js","assets/bsl-DGicdwC0.js","assets/sdbl-BpucmfEo.js","assets/cairo-Dz8fl918.js","assets/python-DlV7vnVD.js","assets/cobol-DQUyVTuR.js","assets/coffee-BDkVV41o.js","assets/cpp-BmKY377x.js","assets/regexp-CpyjTnFF.js","assets/glsl-BDbjGBhJ.js","assets/c-BmJt9k-y.js","assets/crystal-CaN4TS0s.js","assets/shellscript-B8OHlvmy.js","assets/edge-BEMgb-sr.js","assets/elixir-BkUQLiPT.js","assets/elm-DmpuOW2E.js","assets/erb-paWl6F80.js","assets/ruby-CyNHEA82.js","assets/haml-DvFFb5cL.js","assets/graphql-DTlHKpVh.js","assets/jsx-g2NrEQII.js","assets/lua-DlAioYQl.js","assets/yaml-c2-Vhxho.js","assets/erlang-DAw79KxH.js","assets/markdown-DY93LJPj.js","assets/fortran-fixed-form-BiRvzwyR.js","assets/fortran-free-form-CakU9R0a.js","assets/fsharp-BmLNaTNL.js","assets/gdresource-pHyHNgx5.js","assets/gdshader-BC7WJXp9.js","assets/gdscript-BpxQpKjR.js","assets/git-commit-Bptnmh-c.js","assets/diff-Beq1YlA8.js","assets/git-rebase-CqNhyBhE.js","assets/glimmer-js-Bxt49MuP.js","assets/glimmer-ts-BsGfVpaS.js","assets/hack-B6RDfhIS.js","assets/handlebars--3HEtxsY.js","assets/http-C5yS503b.js","assets/hurl-DX_i18ky.js","assets/csv-DXKU4rRd.js","assets/hxml-DB3_nACV.js","assets/haxe-D-PmAGDa.js","assets/jinja-Dy9dpTFB.js","assets/jison-rKmQmF2-.js","assets/julia-cok74C3v.js","assets/r-EOoB7omE.js","assets/just-BtNYcbKt.js","assets/perl-BemjezQW.js","assets/latex-DfULfDnZ.js","assets/tex-ByCZWQmN.js","assets/liquid-C2bTOIx_.js","assets/marko-CVUQDN1F.js","assets/less-DKKxO4Pm.js","assets/mdc-D3GsoZ_L.js","assets/nextflow-NhKJRLNF.js","assets/nextflow-groovy-CqvLf608.js","assets/nginx-CllVvPGm.js","assets/nim-BDZhFo_A.js","assets/php-CGgrkEf9.js","assets/pug-zcj1uJy9.js","assets/qml-DTv-54bL.js","assets/razor-8J3P2wQs.js","assets/csharp-VAkxddOj.js","assets/rst-yWrgJnVd.js","assets/cmake-BYiqpiH1.js","assets/sas-BBCK0tAG.js","assets/shaderlab-DNyPh2Q6.js","assets/hlsl-B-PjNM4a.js","assets/shellsession-OATBsyRD.js","assets/soy-Dz-Bkr4l.js","assets/sparql-CLNNOQQI.js","assets/turtle-BVy4HXn4.js","assets/stata-G4GYNNPE.js","assets/surrealql-C_6seBBi.js","assets/svelte-BuOg6tJl.js","assets/templ-B_lDaXqj.js","assets/go-Ci1olR0S.js","assets/ts-tags-Chlpw95x.js","assets/twig-4agwRVFz.js","assets/vue-D3w_7BFv.js","assets/vue-html-a8uCr53v.js","assets/vue-vine-2Gx6KHOr.js","assets/stylus-BeJftkpb.js","assets/xsl-DCNnPbrB.js"])))=>i.map(i=>d[i]);
2
- import{_ as e,k as n,r as t,j as i,b as s,d as r,h as o}from"./index-CX8KV6EH.js";import{FileCodeEditor as a}from"./file-editor-FileCodeEditor-Dn3f5PUl.js";import{markdownLanguage as c,markdown as l}from"./file-editor-index-Bg9-IMrE.js";import{S as u,E as h,f as g,s as d,V as p,a as m,F as f,e as y,W as b,aw as w,k as _,ax as k,X as x,P as z,ay as j,T as E}from"./file-editor-index-C6CU7Fik.js";import{be as v,bf as A,bg as S,bh as C,bi as L,bj as T,bk as q,bl as I,bm as P,bn as R,bo as N,bp as O,bd as D,bq as $,br as M,bs as V,bt as F,bu as B,aX as G,aY as U,aW as W,aZ as K,bv as H,bw as Y,bx as X,by as Z,bz as J,bA as Q,bB as ee,bC as ne,bD as te,bE as ie,bF as se,bG as re,bH as oe,aR as ae,bc as ce,bI as le,bJ as ue,bK as he,bL as ge,bM as de,bN as pe,bO as me,bP as fe,bQ as ye,bR as be,bS as we,bT as _e,bU as ke,bV as xe,bW as ze,bX as je,bY as Ee,bZ as ve,b_ as Ae,b$ as Se,c0 as Ce,c1 as Le,c2 as Te,c3 as qe,c4 as Ie,c5 as Pe,c6 as Re,c7 as Ne,c8 as Oe,c9 as De,ca as $e,cb as Me,cc as Ve,cd as Fe,ce as Be,cf as Ge,cg as Ue,ch as We,ci as Ke,cj as He,ck as Ye,cl as Xe,cm as Ze,cn as Je,co as Qe,cp as en,cq as nn,cr as tn,cs as sn,ct as rn,cu as on,cv as an,cw as cn,cx as ln,i as un,o as hn,j as gn,s as dn,e as pn,cy as mn,cz as fn,cA as yn,cB as bn,cC as wn,cD as _n,bb as kn}from"./RemoteLifeOSBlock-C46RjZWn.js";import{w as xn,s as zn,f as jn,a as En,b as vn,h as An,c as Sn}from"./index-1M7_HtDu.js";import{a as Cn,z as Ln}from"./index-CapF4a8Y.js";import{f as Tn,g as qn,h as In,b as Pn}from"./file-editor-index-D5fLCdey.js";import Rn from"./katex-uyR15voz.js";import{x as Nn}from"./marked.esm-BBjA1da9.js";import{Y as On,W as Dn,X as $n,aq as Mn,ar as Vn,O as Fn,ak as Bn,p as Gn,ag as Un,U as Wn,Q as Kn,am as Hn}from"./App-CLTYkSvy.js";import"./file-editor-index-ByGYwqNf.js";import"./file-editor-index-BOi4gj-u.js";import"./file-editor-index-wav2nO7A.js";import"./file-editor-index-DBUZobR-.js";function Yn(e,n,t,i){const s=i[i.length-1],r=e=>[...e].reduce((e,n)=>e+("\t"===n?4-e%4:1),0),o=r(t);for(let a=e.length-1;a>=0;a--){const t=e[a];if(!t.trim())continue;if(!t.startsWith(n))break;const i=t.slice(n.length),c=/^([ \t]*)([-*+]|\d+[.)])(?:[ \t]+|$)/.exec(i);if(!c){if(r(/^[ \t]*/.exec(i)[0])>o)continue;break}const l=r(c[1]);if(!(l>o)){if(l<o||!/^\d+/.test(c[2])||c[2][c[2].length-1]!==s)break;return`${Number.parseInt(c[2],10)+1}${s}`}}return`1${s}`}function Xn(e,n){const t=v(e,n);return t.done?"done":t.cancelled?"cancelled":"IN_PROGRESS"===t.type?"in-progress":">"===t.marker?"deferred":"!"===t.marker?"important":"?"===t.marker?"question":"@"===t.marker?"commissioned":" "===t.marker||t.known?"todo":"custom"}const Zn=/<table\b/i;function Jn(e){return e.replace(/\|/g,"\\|")}function Qn(e){return e.replace(/[\s\n\r]+/g," ").trim()}function et(e){const n=[];for(const t of e.querySelectorAll("td, th")){const e=Number.parseInt(t.getAttribute("colspan")||"1",10)||1,i=Jn(Qn(t.textContent??""));n.push(i);for(let t=1;t<e;t++)n.push("")}return n}function nt(e,n){const t=Math.max(0,Math.min(n,e.length));return e.lineAt(t).text}function tt(e,n,t){if(!e.docChanged)return!1;if(!function(e){if(e.startState.selection.map(e.changes).eq(e.state.selection))return!0;if(e.startState.selection.ranges.length!==e.state.selection.ranges.length)return!1;const n=[];return e.changes.iterChangedRanges((e,t,i,s)=>{n.push({fromA:e,toA:t,fromB:i,toB:s})}),e.startState.selection.ranges.every((t,i)=>{const s=e.state.selection.ranges[i];return n.some(({fromA:e,toA:n,fromB:i,toB:r})=>t.from>=e&&t.to<=n&&s.from>=i&&s.to<=r)})}(e))return!1;let i=!0;return e.changes.iterChangedRanges((s,r,o,a)=>{i&&(n.between(s,r,(e,n)=>{(s===r?e<=s&&n>=s:e<r&&n>s||e===n&&e>=s&&e<r)&&(i=!1)}),i&&[...new Set([nt(e.startState.doc,s),nt(e.startState.doc,r)]),...new Set([nt(e.state.doc,o),nt(e.state.doc,a)])].some(t)&&(i=!1))}),i}const it=g.mark({class:"cm-lp-comment"});function st(e){const n=A(e.doc.toString());return 0===n.length?g.none:g.set(n.map(e=>it.range(e.start,e.end)),!0)}const rt=u.define({create:st,update:(e,n)=>n.docChanged?tt(n,e,e=>e.includes("%%"))?e.map(n.changes):st(n.state):e,provide:e=>h.decorations.from(e)});function ot(e,n){let t=d(e).resolveInner(n,1);for(;t;){if("InlineCode"===t.name||"FencedCode"===t.name||"CodeBlock"===t.name)return!0;t=t.parent}for(t=d(e).resolveInner(n,-1);t;){if("CodeBlock"===t.name)return!0;t=t.parent}return!1}function at(e,n,t){return e.selection.ranges.some(e=>e.empty?!(e.from===t&&e.assoc>0)&&!(e.from===n&&e.assoc<0)&&e.from>=n&&e.from<=t:e.from<=t&&e.to>=n)}function ct(e,n){const t=e.doc.lineAt(n);return at(e,t.from,t.to)}function lt(e,n){let t=d(e).resolveInner(n,1);for(;t;){if("FencedCode"===t.name||"CodeBlock"===t.name)return!0;t=t.parent}return!1}function ut(e){if("---"!==e.doc.line(1).text.trim())return 0;for(let n=2;n<=e.doc.lines;n+=1)if(/^(?:---|\.\.\.)\s*$/.test(e.doc.line(n).text))return n;return e.doc.lines}function ht(e,n){return n<e.doc.lineAt(n).to&&" "===e.doc.sliceString(n,n+1)?n+1:n}function gt(e,n){const t=[];for(let i=e.node.firstChild;i;i=i.nextSibling)i.name===n&&t.push({from:i.from,to:i.to});return t}function dt(e){const n=e.pos,t=e.state.selection.main;if(!t.empty||t.head!==n)return null;const i=e.state.doc.lineAt(n).from,s=e.state.sliceDoc(i,n),r=S(s);return r?{from:i+r.start,to:n,query:r.query}:null}let pt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function mt(e){return Array.isArray(e)?function(e){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=mt(e[t]);return n}(e):e instanceof RegExp?e:"object"==typeof e?function(e){let n={};for(let t in e)n[t]=mt(e[t]);return n}(e):e}function ft(e,...n){return n.forEach(n=>{for(let t in n)e[t]=n[t]}),e}function yt(e){const n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===n?e:~n===e.length-1?yt(e.substring(0,e.length-1)):e.substr(1+~n)}var bt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,wt=class{static hasCaptures(e){return null!==e&&(bt.lastIndex=0,bt.test(e))}static replaceCaptures(e,n,t){return e.replace(bt,(e,i,s,r)=>{let o=t[parseInt(i||s,10)];if(!o)return e;{let e=n.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function _t(e,n){return e<n?-1:e>n?1:0}function kt(e,n){if(null===e&&null===n)return 0;if(!e)return-1;if(!n)return 1;let t=e.length,i=n.length;if(t===i){for(let i=0;i<t;i++){let t=_t(e[i],n[i]);if(0!==t)return t}return 0}return t-i}function xt(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function zt(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var jt=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const n=this.fn(e);return this.cache.set(e,n),n}},Et=class{constructor(e,n,t){this._colorMap=e,this._defaults=n,this._root=t}static createFromRawTheme(e,n){return this.createFromParsedTheme(function(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let n=e.settings,t=[],i=0;for(let s=0,r=n.length;s<r;s++){let e,r=n[s];if(!r.settings)continue;if("string"==typeof r.scope){let n=r.scope;n=n.replace(/^[,]+/,""),n=n.replace(/[,]+$/,""),e=n.split(",")}else e=Array.isArray(r.scope)?r.scope:[""];let o=-1;if("string"==typeof r.settings.fontStyle){o=0;let e=r.settings.fontStyle.split(" ");for(let n=0,t=e.length;n<t;n++)switch(e[n]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let a=null;"string"==typeof r.settings.foreground&&xt(r.settings.foreground)&&(a=r.settings.foreground);let c=null;"string"==typeof r.settings.background&&xt(r.settings.background)&&(c=r.settings.background);for(let n=0,l=e.length;n<l;n++){let r=e[n].trim().split(" "),l=r[r.length-1],u=null;r.length>1&&(u=r.slice(0,r.length-1),u.reverse()),t[i++]=new Ct(l,u,s,o,a,c)}}return t}(e),n)}static createFromParsedTheme(e,n){return function(e,n){e.sort((e,n)=>{let t=_t(e.scope,n.scope);return 0!==t?t:(t=kt(e.parentScopes,n.parentScopes),0!==t?t:e.index-n.index)});let t=0,i="#000000",s="#ffffff";for(;e.length>=1&&""===e[0].scope;){let n=e.shift();-1!==n.fontStyle&&(t=n.fontStyle),null!==n.foreground&&(i=n.foreground),null!==n.background&&(s=n.background)}let r=new Tt(n),o=new St(t,r.getId(i),r.getId(s)),a=new Pt(new It(0,null,-1,0,0),[]);for(let c=0,l=e.length;c<l;c++){let n=e[c];a.insert(0,n.scope,n.parentScopes,n.fontStyle,r.getId(n.foreground),r.getId(n.background))}return new Et(r,o,a)}(e,n)}_cachedMatchRoot=new jt(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const n=e.scopeName,t=this._cachedMatchRoot.get(n).find(n=>function(e,n){if(0===n.length)return!0;for(let t=0;t<n.length;t++){let i=n[t],s=!1;if(">"===i){if(t===n.length-1)return!1;i=n[++t],s=!0}for(;e&&!At(e.scopeName,i);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}(e.parent,n.parentScopes));return t?new St(t.fontStyle,t.foreground,t.background):null}},vt=class e{constructor(e,n){this.parent=e,this.scopeName=n}static push(n,t){for(const i of t)n=new e(n,i);return n}static from(...n){let t=null;for(let i=0;i<n.length;i++)t=new e(t,n[i]);return t}push(n){return new e(this,n)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let t=this;for(;t&&t!==e;)n.push(t.scopeName),t=t.parent;return t===e?n.reverse():void 0}};function At(e,n){return n===e||e.startsWith(n)&&"."===e[n.length]}var St=class{constructor(e,n,t){this.fontStyle=e,this.foregroundId=n,this.backgroundId=t}},Ct=class{constructor(e,n,t,i,s,r){this.scope=e,this.parentScopes=n,this.index=t,this.fontStyle=i,this.foreground=s,this.background=r}},Lt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Lt||{}),Tt=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,t=e.length;n<t;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}},qt=Object.freeze([]),It=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,t,i,s){this.scopeDepth=e,this.parentScopes=n||qt,this.fontStyle=t,this.foreground=i,this.background=s}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].clone();return n}acceptOverwrite(e,n,t,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==n&&(this.fontStyle=n),0!==t&&(this.foreground=t),0!==i&&(this.background=i)}},Pt=class e{constructor(e,n=[],t={}){this._mainRule=e,this._children=t,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let t=0,i=0;for(;">"===e.parentScopes[t]&&t++,">"===n.parentScopes[i]&&i++,!(t>=e.parentScopes.length||i>=n.parentScopes.length);){const s=n.parentScopes[i].length-e.parentScopes[t].length;if(0!==s)return s;t++,i++}return n.parentScopes.length-e.parentScopes.length}match(n){if(""!==n){let e,t,i=n.indexOf(".");if(-1===i?(e=n,t=""):(e=n.substring(0,i),t=n.substring(i+1)),this._children.hasOwnProperty(e))return this._children[e].match(t)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(e._cmpBySpecificity),t}insert(n,t,i,s,r,o){if(""===t)return void this._doInsertHere(n,i,s,r,o);let a,c,l,u=t.indexOf(".");-1===u?(a=t,c=""):(a=t.substring(0,u),c=t.substring(u+1)),this._children.hasOwnProperty(a)?l=this._children[a]:(l=new e(this._mainRule.clone(),It.cloneArr(this._rulesWithParentScopes)),this._children[a]=l),l.insert(n+1,c,i,s,r,o)}_doInsertHere(e,n,t,i,s){if(null!==n){for(let r=0,o=this._rulesWithParentScopes.length;r<o;r++){let o=this._rulesWithParentScopes[r];if(0===kt(o.parentScopes,n))return void o.acceptOverwrite(e,t,i,s)}-1===t&&(t=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===s&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new It(e,n,t,i,s))}else this._mainRule.acceptOverwrite(e,t,i,s)}},Rt=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(n){const t=e.getLanguageId(n),i=e.getTokenType(n),s=e.getFontStyle(n),r=e.getForeground(n),o=e.getBackground(n);console.log({languageId:t,tokenType:i,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(n,t,i,s,r,o,a){let c=e.getLanguageId(n),l=e.getTokenType(n),u=e.containsBalancedBrackets(n)?1:0,h=e.getFontStyle(n),g=e.getForeground(n),d=e.getBackground(n);return 0!==t&&(c=t),8!==i&&(l=i),null!==s&&(u=s?1:0),-1!==r&&(h=r),0!==o&&(g=o),0!==a&&(d=a),(c|l<<8|u<<10|h<<11|g<<15|d<<24)>>>0}};function Nt(e){return e}function Ot(e,n){const t=[],i=function(e){let n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=n.exec(e);return{next:()=>{if(!t)return null;const i=t[0];return t=n.exec(e),i}}}(e);let s=i.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=i.next()}let n=o();if(t.push({matcher:n,priority:e}),","!==s)break;s=i.next()}return t;function r(){if("-"===s){s=i.next();const e=r();return n=>!!e&&!e(n)}if("("===s){s=i.next();const e=function(){const e=[];let n=o();for(;n&&(e.push(n),"|"===s||","===s);){do{s=i.next()}while("|"===s||","===s);n=o()}return n=>e.some(e=>e(n))}();return")"===s&&(s=i.next()),e}if(Dt(s)){const e=[];do{e.push(s),s=i.next()}while(Dt(s));return t=>n(e,t)}return null}function o(){const e=[];let n=r();for(;n;)e.push(n),n=r();return n=>e.every(e=>e(n))}}function Dt(e){return!!e&&!!e.match(/[\w\.:]+/)}function $t(e){"function"==typeof e.dispose&&e.dispose()}var Mt=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Vt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ft=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const n=e.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(e))}},Bt=class{constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Mt(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const n=new Ft;for(const t of e)Gt(t,this.initialScopeName,this.repo,n);for(const t of n.references)if(t instanceof Mt){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName))continue;if(this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Gt(e,n,t,i){const s=t.lookup(e.scopeName);if(!s){if(e.scopeName===n)throw new Error(`No grammar provided for <${n}>`);return}const r=t.lookup(n);e instanceof Mt?Wt({baseGrammar:r,selfGrammar:s},i):Ut(e.ruleName,{baseGrammar:r,selfGrammar:s,repository:s.repository},i);const o=t.injections(e.scopeName);if(o)for(const a of o)i.add(new Mt(a))}function Ut(e,n,t){n.repository&&n.repository[e]&&Kt([n.repository[e]],n,t)}function Wt(e,n){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Kt(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},n),e.selfGrammar.injections&&Kt(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},n)}function Kt(e,n,t){for(const i of e){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const e=i.repository?ft({},n.repository,i.repository):n.repository;Array.isArray(i.patterns)&&Kt(i.patterns,{...n,repository:e},t);const s=i.include;if(!s)continue;const r=Qt(s);switch(r.kind){case 0:Wt({...n,selfGrammar:n.baseGrammar},t);break;case 1:Wt(n,t);break;case 2:Ut(r.ruleName,{...n,repository:e},t);break;case 3:case 4:const i=r.scopeName===n.selfGrammar.scopeName?n.selfGrammar:r.scopeName===n.baseGrammar.scopeName?n.baseGrammar:void 0;if(i){const s={baseGrammar:n.baseGrammar,selfGrammar:i,repository:e};4===r.kind?Ut(r.ruleName,s,t):Wt(s,t)}else 4===r.kind?t.add(new Vt(r.scopeName,r.ruleName)):t.add(new Mt(r.scopeName))}}}var Ht=class{kind=0},Yt=class{kind=1},Xt=class{constructor(e){this.ruleName=e}kind=2},Zt=class{constructor(e){this.scopeName=e}kind=3},Jt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}kind=4};function Qt(e){if("$base"===e)return new Ht;if("$self"===e)return new Yt;const n=e.indexOf("#");if(-1===n)return new Zt(e);if(0===n)return new Xt(e.substring(1));{const t=e.substring(0,n),i=e.substring(n+1);return new Jt(t,i)}}var ei=/\\(\d+)/,ni=/\\(\d+)/g,ti=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,t,i){this.$location=e,this.id=n,this._name=t||null,this._nameIsCapturing=wt.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=wt.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${yt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==n?wt.replaceCaptures(this._name,e,n):this._name}getContentName(e,n){return this._contentNameIsCapturing&&null!==this._contentName?wt.replaceCaptures(this._contentName,e,n):this._contentName}},ii=class extends ti{retokenizeCapturedWithRuleId;constructor(e,n,t,i,s){super(e,n,t,i),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,t,i){throw new Error("Not supported!")}},si=class extends ti{_match;captures;_cachedCompiledPatterns;constructor(e,n,t,i,s){super(e,n,t,null),this._match=new li(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e).compileAG(e,t,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ui,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ri=class extends ti{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,i,s){super(e,n,t,i),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const t of this.patterns)e.getRule(t).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e).compileAG(e,t,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ui,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},oi=class extends ti{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,i,s,r,o,a,c,l){super(e,n,t,i),this._begin=new li(s,this.id),this.beginCaptures=r,this._end=new li(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,t,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ui;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},ai=class extends ti{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,t,i,s,r,o,a,c){super(e,n,t,i),this._begin=new li(s,this.id),this.beginCaptures=r,this.whileCaptures=a,this._while=new li(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e).compileAG(e,t,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ui;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,t,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,t,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ui,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},ci=class e{static createCaptureRule(e,n,t,i,s){return e.registerRule(e=>new ii(n,e,t,i,s))}static getCompiledRuleId(n,t,i){return n.id||t.registerRule(s=>{if(n.id=s,n.match)return new si(n.$vscodeTextmateLocation,n.id,n.name,n.match,e._compileCaptures(n.captures,t,i));if(void 0===n.begin){n.repository&&(i=ft({},i,n.repository));let s=n.patterns;return void 0===s&&n.include&&(s=[{include:n.include}]),new ri(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,e._compilePatterns(s,t,i))}return n.while?new ai(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,i),n.while,e._compileCaptures(n.whileCaptures||n.captures,t,i),e._compilePatterns(n.patterns,t,i)):new oi(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,i),n.end,e._compileCaptures(n.endCaptures||n.captures,t,i),n.applyEndPatternLast,e._compilePatterns(n.patterns,t,i))}),n.id}static _compileCaptures(n,t,i){let s=[];if(n){let r=0;for(const e in n){if("$vscodeTextmateLocation"===e)continue;const n=parseInt(e,10);n>r&&(r=n)}for(let e=0;e<=r;e++)s[e]=null;for(const o in n){if("$vscodeTextmateLocation"===o)continue;const r=parseInt(o,10);let a=0;n[o].patterns&&(a=e.getCompiledRuleId(n[o],t,i)),s[r]=e.createCaptureRule(t,n[o].$vscodeTextmateLocation,n[o].name,n[o].contentName,a)}}return s}static _compilePatterns(n,t,i){let s=[];if(n)for(let r=0,o=n.length;r<o;r++){const o=n[r];let a=-1;if(o.include){const n=Qt(o.include);switch(n.kind){case 0:case 1:a=e.getCompiledRuleId(i[o.include],t,i);break;case 2:let s=i[n.ruleName];s&&(a=e.getCompiledRuleId(s,t,i));break;case 3:case 4:const r=n.scopeName,c=4===n.kind?n.ruleName:null,l=t.getExternalGrammar(r,i);if(l)if(c){let n=l.repository[c];n&&(a=e.getCompiledRuleId(n,t,l.repository))}else a=e.getCompiledRuleId(l.repository.$self,t,l.repository)}}else a=e.getCompiledRuleId(o,t,i);if(-1!==a){const e=t.getRule(a);let n=!1;if((e instanceof ri||e instanceof oi||e instanceof ai)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;s.push(a)}}return{patterns:s,hasMissingPatterns:(n?n.length:0)!==s.length}}},li=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&"string"==typeof e){const n=e.length;let t=0,i=[],s=!1;for(let r=0;r<n;r++)if("\\"===e.charAt(r)&&r+1<n){const n=e.charAt(r+1);"z"===n?(i.push(e.substring(t,r)),i.push("$(?!\\n)(?<!\\n)"),t=r+2):"A"!==n&&"G"!==n||(s=!0),r++}this.hasAnchor=s,0===t?this.source=e:(i.push(e.substring(t,n)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,"string"==typeof this.source?this.hasBackReferences=ei.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let t=n.map(n=>e.substring(n.start,n.end));return ni.lastIndex=0,this.source.replace(ni,(e,n)=>zt(t[parseInt(n,10)]||""))}_buildAnchorCache(){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let e,n,t,i,s=[],r=[],o=[],a=[];for(e=0,n=this.source.length;e<n;e++)t=this.source.charAt(e),s[e]=t,r[e]=t,o[e]=t,a[e]=t,"\\"===t&&e+1<n&&(i=this.source.charAt(e+1),"A"===i?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",a[e+1]="A"):"G"===i?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",a[e+1]="G"):(s[e+1]=i,r[e+1]=i,o[e+1]=i,a[e+1]=i),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(e,n){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},ui=class{_items;_hasAnchors;_cached;_anchorCache;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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){this._items[e].source!==n&&(this._disposeCaches(),this._items[e].setSource(n))}compile(e){if(!this._cached){let n=this._items.map(e=>e.source);this._cached=new hi(e,n,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,n,t){return this._hasAnchors?n?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,n,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,n,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,n,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,n,t)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,n,t){let i=this._items.map(e=>e.resolveAnchors(n,t));return new hi(e,i,this._items.map(e=>e.ruleId))}},hi=class{constructor(e,n,t){this.regExps=n,this.rules=t,this.scanner=e.createOnigScanner(n)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let n=0,t=this.rules.length;n<t;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join("\n")}findNextMatchSync(e,n,t){const i=this.scanner.findNextMatchSync(e,n,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},gi=class{constructor(e,n){this.languageId=e,this.tokenType=n}},di=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new gi(e,8),this._embeddedLanguagesMatcher=new pi(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(n){return null===n?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(n)}static _NULL_SCOPE_METADATA=new gi(0,0);_getBasicScopeAttributes=new jt(e=>{const n=this._scopeToLanguage(e),t=this._toStandardTokenType(e);return new gi(n,t)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(n){const t=n.match(e.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!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},pi=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const n=e.map(([e,n])=>zt(e));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const n=e.match(this.scopesRegExp);return n?this.values.get(n[1]):void 0}},mi=class{constructor(e,n){this.stack=e,this.stoppedEarly=n}};function fi(e,n,t,i,s,r,o,a){const c=n.content.length;let l=!1,u=-1;if(o){const o=function(e,n,t,i,s,r){let o=s.beginRuleCapturedEOL?0:-1;const a=[];for(let c=s;c;c=c.pop()){const n=c.getRule(e);n instanceof ai&&a.push({rule:n,stack:c})}for(let c=a.pop();c;c=a.pop()){const{ruleScanner:a,findOptions:l}=bi(c.rule,e,c.stack.endRule,t,i===o),u=a.findNextMatchSync(n,i,l);if(!u){s=c.stack.pop();break}if(-2!==u.ruleId){s=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(r.produce(c.stack,u.captureIndices[0].start),wi(e,n,t,c.stack,r,c.rule.whileCaptures,u.captureIndices),r.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>i&&(i=u.captureIndices[0].end,t=!1))}return{stack:s,linePos:i,anchorPosition:o,isFirstLine:t}}(e,n,t,i,s,r);s=o.stack,i=o.linePos,t=o.isFirstLine,u=o.anchorPosition}const h=Date.now();for(;!l;){if(0!==a&&Date.now()-h>a)return new mi(s,!0);g()}return new mi(s,!1);function g(){const o=function(e,n,t,i,s,r){const o=function(e,n,t,i,s,r){const o=s.getRule(e),{ruleScanner:a,findOptions:c}=yi(o,e,s.endRule,t,i===r),l=a.findNextMatchSync(n,i,c);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,n,t,i,s,r),a=e.getInjections();if(0===a.length)return o;const c=function(e,n,t,i,s,r,o){let a,c=Number.MAX_VALUE,l=null,u=0;const h=r.contentNameScopesList.getScopeNames();for(let g=0,d=e.length;g<d;g++){const r=e[g];if(!r.matcher(h))continue;const d=n.getRule(r.ruleId),{ruleScanner:p,findOptions:m}=yi(d,n,null,i,s===o),f=p.findNextMatchSync(t,s,m);if(!f)continue;const y=f.captureIndices[0].start;if(!(y>=c)&&(c=y,l=f.captureIndices,a=f.ruleId,u=r.priority,c===s))break}return l?{priorityMatch:-1===u,captureIndices:l,matchedRuleId:a}:null}(a,e,n,t,i,s,r);if(!c)return o;if(!o)return c;const l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}(e,n,t,i,s,u);if(!o)return r.produce(s,c),void(l=!0);const a=o.captureIndices,h=o.matchedRuleId,g=!!(a&&a.length>0)&&a[0].end>i;if(-1===h){const o=s.getRule(e);r.produce(s,a[0].start),s=s.withContentNameScopesList(s.nameScopesList),wi(e,n,t,s,r,o.endCaptures,a),r.produce(s,a[0].end);const h=s;if(s=s.parent,u=h.getAnchorPos(),!g&&h.getEnterPos()===i)return s=h,r.produce(s,c),void(l=!0)}else{const o=e.getRule(h);r.produce(s,a[0].start);const d=s,p=o.getName(n.content,a),m=s.contentNameScopesList.pushAttributed(p,e);if(s=s.push(h,i,u,a[0].end===c,null,m,m),o instanceof oi){const i=o;wi(e,n,t,s,r,i.beginCaptures,a),r.produce(s,a[0].end),u=a[0].end;const h=i.getContentName(n.content,a),p=m.pushAttributed(h,e);if(s=s.withContentNameScopesList(p),i.endHasBackReferences&&(s=s.withEndRule(i.getEndWithResolvedBackReferences(n.content,a))),!g&&d.hasSameRuleAs(s))return s=s.pop(),r.produce(s,c),void(l=!0)}else if(o instanceof ai){const i=o;wi(e,n,t,s,r,i.beginCaptures,a),r.produce(s,a[0].end),u=a[0].end;const h=i.getContentName(n.content,a),p=m.pushAttributed(h,e);if(s=s.withContentNameScopesList(p),i.whileHasBackReferences&&(s=s.withEndRule(i.getWhileWithResolvedBackReferences(n.content,a))),!g&&d.hasSameRuleAs(s))return s=s.pop(),r.produce(s,c),void(l=!0)}else if(wi(e,n,t,s,r,o.captures,a),r.produce(s,a[0].end),s=s.pop(),!g)return s=s.safePop(),r.produce(s,c),void(l=!0)}a[0].end>i&&(i=a[0].end,t=!1)}}function yi(e,n,t,i,s){return{ruleScanner:e.compileAG(n,t,i,s),findOptions:0}}function bi(e,n,t,i,s){return{ruleScanner:e.compileWhileAG(n,t,i,s),findOptions:0}}function wi(e,n,t,i,s,r,o){if(0===r.length)return;const a=n.content,c=Math.min(r.length,o.length),l=[],u=o[0].end;for(let h=0;h<c;h++){const n=r[h];if(null===n)continue;const c=o[h];if(0===c.length)continue;if(c.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=c.start;)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?s.produceFromScopes(l[l.length-1].scopes,c.start):s.produce(i,c.start),n.retokenizeCapturedWithRuleId){const r=n.getName(a,o),l=i.contentNameScopesList.pushAttributed(r,e),u=n.getContentName(a,o),h=l.pushAttributed(u,e),g=i.push(n.retokenizeCapturedWithRuleId,c.start,-1,!1,null,l,h),d=e.createOnigString(a.substring(0,c.end));fi(e,d,t&&0===c.start,c.start,g,s,!1,0),$t(d);continue}const g=n.getName(a,o);if(null!==g){const n=(l.length>0?l[l.length-1].scopes:i.contentNameScopesList).pushAttributed(g,e);l.push(new _i(n,c.end))}}for(;l.length>0;)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var _i=class{scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}};function ki(e,n,t,i,s){const r=Ot(n,xi),o=ci.getCompiledRuleId(t,i,s.repository);for(const a of r)e.push({debugSelector:n,matcher:a.matcher,ruleId:o,grammar:s,priority:a.priority})}function xi(e,n){if(n.length<e.length)return!1;let t=0;return e.every(e=>{for(let i=t;i<n.length;i++)if(zi(n[i],e))return t=i+1,!0;return!1})}function zi(e,n){if(!e)return!1;if(e===n)return!0;const t=n.length;return e.length>t&&e.substr(0,t)===n&&"."===e[t]}var ji=class{constructor(e,n,t,i,s,r,o,a){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=a,this._basicScopeAttributesProvider=new di(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Ei(n,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const c of Object.keys(s)){const e=Ot(c,xi);for(const n of e)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],n=this._rootScopeName,t=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(n);if(t){const i=t.injections;if(i)for(let n in i)ki(e,n,i[n],this,t);const s=this._grammarRepository.injections(n);s&&s.forEach(n=>{const t=this.getExternalGrammar(n);if(t){const n=t.injectionSelector;n&&ki(e,n,t,this,t)}})}return e.sort((e,n)=>e.priority-n.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const n=++this._lastRuleId,t=e(n);return this._ruleId2desc[n]=t,t}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,n){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const t=this._grammarRepository.lookup(e);if(t)return this._includedGrammars[e]=Ei(t,n&&n.$base),this._includedGrammars[e]}}tokenizeLine(e,n,t=0){const i=this._tokenize(e,n,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,n,t=0){const i=this._tokenize(e,n,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,n,t,i){let s;if(-1===this._rootId&&(this._rootId=ci.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),n&&n!==Ai.NULL)s=!1,n.reset();else{s=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),t=this.themeProvider.getDefaults(),i=Rt.set(0,e.languageId,e.tokenType,null,t.fontStyle,t.foregroundId,t.backgroundId),r=this.getRule(this._rootId).getName(null,null);let o;o=r?vi.createRootAndLookUpScopeName(r,i,this):vi.createRoot("unknown",i),n=new Ai(null,this._rootId,-1,-1,!1,null,o,o)}e+="\n";const r=this.createOnigString(e),o=r.content.length,a=new Ci(t,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=fi(this,r,s,0,n,a,!0,i);return $t(r),{lineLength:o,lineTokens:a,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Ei(e,n){return(e=function(e){return mt(e)}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=n||e.repository.$self,e}var vi=class e{constructor(e,n,t){this.parent=e,this.scopePath=n,this.tokenAttributes=t}static fromExtension(n,t){let i=n,s=n?.scopePath??null;for(const r of t)s=vt.push(s,r.scopeNames),i=new e(i,s,r.encodedTokenAttributes);return i}static createRoot(n,t){return new e(null,new vt(null,n),t)}static createRootAndLookUpScopeName(n,t,i){const s=i.getMetadataForScope(n),r=new vt(null,n),o=i.themeProvider.themeMatch(r),a=e.mergeAttributes(t,s,o);return new e(null,r,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(n){return e.equals(this,n)}static equals(e,n){for(;;){if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}}static mergeAttributes(e,n,t){let i=-1,s=0,r=0;return null!==t&&(i=t.fontStyle,s=t.foregroundId,r=t.backgroundId),Rt.set(e,n.languageId,n.tokenType,null,i,s,r)}pushAttributed(n,t){if(null===n)return this;if(-1===n.indexOf(" "))return e._pushAttributed(this,n,t);const i=n.split(/ /g);let s=this;for(const r of i)s=e._pushAttributed(s,r,t);return s}static _pushAttributed(n,t,i){const s=i.getMetadataForScope(t),r=n.scopePath.push(t),o=i.themeProvider.themeMatch(r),a=e.mergeAttributes(n.tokenAttributes,s,o);return new e(n,r,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let t=this;for(;t&&t!==e;)n.push({encodedTokenAttributes:t.tokenAttributes,scopeNames:t.scopePath.getExtensionIfDefined(t.parent?.scopePath??null)}),t=t.parent;return t===e?n.reverse():void 0}},Ai=class e{constructor(e,n,t,i,s,r,o,a){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=t,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(n){return null!==n&&e._equals(this,n)}static _equals(e,n){return e===n||!!this._structuralEquals(e,n)&&vi.equals(e.contentNameScopesList,n.contentNameScopesList)}static _structuralEquals(e,n){for(;;){if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(n,t,i,s,r,o,a){return new e(this,n,t,i,s,r,o,a)}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,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(n){return this.endRule===n?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,n,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(n,t){const i=vi.fromExtension(n?.nameScopesList??null,t.nameScopesList);return new e(n,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,vi.fromExtension(i,t.contentNameScopesList))}},Si=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):Ot(e,xi).map(e=>e.matcher)),this.unbalancedBracketScopes=n.flatMap(e=>Ot(e,xi).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const n of this.unbalancedBracketScopes)if(n(e))return!1;for(const n of this.balancedBracketScopes)if(n(e))return!0;return this.allowAny}},Ci=class{constructor(e,n,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,n){this.produceFromScopes(e.contentNameScopesList,n)}produceFromScopes(e,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let t=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const n=e?.getScopeNames()??[];for(const e of this._tokenTypeOverrides)e.matcher(n)&&(t=Rt.set(t,0,Nt(e.type),null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(n))}return i&&(t=Rt.set(t,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===t||(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(t)),void(this._lastTokenEndIndex=n)}const t=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:t}),this._lastTokenEndIndex=n}getResult(e,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)t[i]=this._binaryTokens[i];return t}},Li=class{constructor(e,n){this._onigLib=n,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,n){this._rawGrammars.set(e.scopeName,e),n&&this._injectionGrammars.set(e.scopeName,n)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,n,t,i,s){if(!this._grammars.has(e)){let r=this._rawGrammars.get(e);if(!r)return null;this._grammars.set(e,function(e,n,t,i,s,r,o,a){return new ji(e,n,t,i,s,r,o,a)}(e,r,n,t,i,s,this,this._onigLib))}return this._grammars.get(e)}},Ti=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Li(Et.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(Et.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,t){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:t})}loadGrammarWithConfiguration(e,n,t){return this._loadGrammar(e,n,t.embeddedLanguages,t.tokenTypes,new Si(t.balancedBracketSelectors||[],t.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,t,i,s){const r=new Bt(this._syncRegistry,e);for(;r.Q.length>0;)r.Q.map(e=>this._loadSingleGrammar(e.scopeName)),r.processQueue();return this._grammarForScopeName(e,n,t,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const t="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,t)}}addGrammar(e,n=[],t=0,i=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,t,i)}_grammarForScopeName(e,n=0,t=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,t,i,s)}},qi=Ai.NULL;const Ii=/["&'<>`]/g,Pi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ri=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ni=/[|\\{}()[\]^$+*?.]/g,Oi=new WeakMap,Di=/[\dA-Fa-f]/,$i=/\d/,Mi=["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"],Vi={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:"€"},Fi=["cent","copy","divide","gt","lt","not","para","times"],Bi={}.hasOwnProperty,Gi={};let Ui;for(Ui in Vi)Bi.call(Vi,Ui)&&(Gi[Vi[Ui]]=Ui);const Wi=/[^\dA-Za-z]/;function Ki(e,n,t){let i,s=function(e,n,t){const i="&#x"+e.toString(16).toUpperCase();return t&&n&&!Di.test(String.fromCharCode(n))?i:i+";"}(e,n,t.omitOptionalSemicolons);if((t.useNamedReferences||t.useShortestReferences)&&(i=function(e,n,t,i){const s=String.fromCharCode(e);if(Bi.call(Gi,s)){const e=Gi[s],r="&"+e;return t&&Mi.includes(e)&&!Fi.includes(e)&&(!i||n&&61!==n&&Wi.test(String.fromCharCode(n)))?r:r+";"}return""}(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const i=function(e,n,t){const i="&#"+String(e);return t&&n&&!$i.test(String.fromCharCode(n))?i:i+";"}(e,n,t.omitOptionalSemicolons);i.length<s.length&&(s=i)}return i&&(!t.useShortestReferences||i.length<s.length)?i:s}function Hi(e,n){return function(e,n){return e=e.replace(n.subset?function(e){let n=Oi.get(e);return n||(n=function(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(Ni,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}(e),Oi.set(e,n)),n}(n.subset):Ii,t),n.subset||n.escapeOnly?e:e.replace(Pi,function(e,t,i){return n.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,i.charCodeAt(t+2),n)}).replace(Ri,t);function t(e,t,i){return n.format(e.charCodeAt(0),i.charCodeAt(t+1),n)}}(e,Object.assign({format:Ki},n))}const Yi=/^>|^->|<!--|-->|--!>|<!-$/g,Xi=[">"],Zi=["<",">"],Ji=ns(1),Qi=ns(-1),es=[];function ns(e){return function(n,t,i){const s=n?n.children:es;let r=(t||0)+e,o=s[r];if(!i)for(;o&&xn(o);)r+=e,o=s[r];return o}}const ts={}.hasOwnProperty;function is(e){return function(n,t,i){return ts.call(e,n.tagName)&&e[n.tagName](n,t,i)}}const ss=is({body:function(e,n,t){const i=Ji(t,n);return!i||"comment"!==i.type},caption:rs,colgroup:rs,dd:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,n,t){const i=Ji(t,n);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:rs,html:function(e,n,t){const i=Ji(t,n);return!i||"comment"!==i.type},li:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,n,t){const i=Ji(t,n);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!t||!("element"===t.type&&("a"===t.tagName||"audio"===t.tagName||"del"===t.tagName||"ins"===t.tagName||"map"===t.tagName||"noscript"===t.tagName||"video"===t.tagName))},rp:os,rt:os,tbody:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:as,tfoot:function(e,n,t){return!Ji(t,n)},th:as,thead:function(e,n,t){const i=Ji(t,n);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&"tr"===i.tagName}});function rs(e,n,t){const i=Ji(t,n,!0);return!i||"comment"!==i.type&&!("text"===i.type&&xn(i.value.charAt(0)))}function os(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function as(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}const cs=is({body:function(e){const n=Ji(e,-1,!0);return!(n&&("comment"===n.type||"text"===n.type&&xn(n.value.charAt(0))||"element"===n.type&&("meta"===n.tagName||"link"===n.tagName||"script"===n.tagName||"style"===n.tagName||"template"===n.tagName)))},colgroup:function(e,n,t){const i=Qi(t,n),s=Ji(e,-1,!0);return!(t&&i&&"element"===i.type&&"colgroup"===i.tagName&&ss(i,t.children.indexOf(i),t))&&Boolean(s&&"element"===s.type&&"col"===s.tagName)},head:function(e){const n=new Set;for(const i of e.children)if("element"===i.type&&("base"===i.tagName||"title"===i.tagName)){if(n.has(i.tagName))return!1;n.add(i.tagName)}const t=e.children[0];return!t||"element"===t.type},html:function(e){const n=Ji(e,-1);return!n||"comment"!==n.type},tbody:function(e,n,t){const i=Qi(t,n),s=Ji(e,-1);return(!t||!i||"element"!==i.type||"thead"!==i.tagName&&"tbody"!==i.tagName||!ss(i,t.children.indexOf(i),t))&&Boolean(s&&"element"===s.type&&"tr"===s.tagName)}}),ls={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function us(e,n,t){const i=jn(e.schema,n),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,r=e.settings.allowDangerousCharacters?0:1;let o,a=e.quote;if(!i.overloadedBoolean||t!==i.attribute&&""!==t?!i.boolean&&!i.overloadedBoolean||"string"==typeof t&&t!==i.attribute&&""!==t||(t=Boolean(t)):t=!0,null==t||!1===t||"number"==typeof t&&Number.isNaN(t))return"";const c=Hi(i.attribute,Object.assign({},e.settings.characterReferences,{subset:ls.name[s][r]}));return!0===t?c:(t=Array.isArray(t)?(i.commaSeparated?En:vn)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t?c:(e.settings.preferUnquoted&&(o=Hi(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ls.unquoted[s][r]}))),o!==t&&(e.settings.quoteSmart&&Cn(t,a)>Cn(t,e.alternative)&&(a=e.alternative),o=a+Hi(t,Object.assign({},e.settings.characterReferences,{subset:("'"===a?ls.single:ls.double)[s][r],attribute:!0}))+a),c+(o?"="+o:o)))}const hs=["<","&"];function gs(e,n,t,i){return!t||"element"!==t.type||"script"!==t.tagName&&"style"!==t.tagName?Hi(e.value,Object.assign({},i.settings.characterReferences,{subset:hs})):e.value}const ds=Ln("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,n,t,i){return i.settings.bogusComments?"<?"+Hi(e.value,Object.assign({},i.settings.characterReferences,{subset:Xi}))+">":"\x3c!--"+e.value.replace(Yi,function(e){return Hi(e,Object.assign({},i.settings.characterReferences,{subset:Zi}))})+"--\x3e"},doctype:function(e,n,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,n,t,i){const s=i.schema,r="svg"!==s.space&&i.settings.omitOptionalTags;let o="svg"===s.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const a=[];let c;"html"===s.space&&"svg"===e.tagName&&(i.schema=zn);const l=function(e,n){const t=[];let i,s=-1;if(n)for(i in n)if(null!==n[i]&&void 0!==n[i]){const s=us(e,i,n[i]);s&&t.push(s)}for(;++s<t.length;){const n=e.settings.tightAttributes?t[s].charAt(t[s].length-1):void 0;s!==t.length-1&&'"'!==n&&"'"!==n&&(t[s]+=" ")}return t.join("")}(i,e.properties),u=i.all("html"===s.space&&"template"===e.tagName?e.content:e);return i.schema=s,u&&(o=!1),!l&&r&&cs(e,n,t)||(a.push("<",e.tagName,l?" "+l:""),o&&("svg"===s.space||i.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!i.settings.tightSelfClosing||"/"===c||c&&'"'!==c&&"'"!==c)&&a.push(" "),a.push("/")),a.push(">")),a.push(u),o||r&&ss(e,n,t)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,n,t,i){return i.settings.allowDangerousHtml?e.value:gs(e,0,t,i)},root:function(e,n,t,i){return i.all(e)},text:gs}}),ps={},ms={},fs=[];function ys(e,n,t){return ds(e,n,t,this)}function bs(e){const n=[],t=e&&e.children||fs;let i=-1;for(;++i<t.length;)n[i]=this.one(t[i],i,e);return n.join("")}function ws(e,n){const t="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(const[s,r]of Object.entries(n?.colorReplacements||{}))"string"==typeof r?t[s]=r:s===i&&Object.assign(t,r);return t}function _s(e,n){return e&&n?.[e?.toLowerCase()]||e}async function ks(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function xs(e){return!e||["plaintext","txt","text","plain"].includes(e)}function zs(e){return"ansi"===e||xs(e)}function js(e){return"none"===e}function Es(e){return js(e)}function vs(e,n){if(!n)return e;e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const t=Array.isArray(n)?n:n.split(/\s+/g);for(const i of t)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function As(e,n=!1){if(0===e.length)return[["",0]];const t=e.split(/(\r?\n)/g);let i=0;const s=[];for(let r=0;r<t.length;r+=2){const e=n?t[r]+(t[r+1]||""):t[r];s.push([e,i]),i+=t[r].length,i+=t[r+1]?.length||0}return s}const Ss="light-dark()",Cs=["color","background-color"];function Ls(e){const n={};if(e.color&&(n.color=e.color),e.bgColor&&(n["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Lt.Italic&&(n["font-style"]="italic"),e.fontStyle&Lt.Bold&&(n["font-weight"]="bold");const t=[];e.fontStyle&Lt.Underline&&t.push("underline"),e.fontStyle&Lt.Strikethrough&&t.push("line-through"),t.length&&(n["text-decoration"]=t.join(" "))}return n}function Ts(e){return"string"==typeof e?e:Object.entries(e).map(([e,n])=>`${e}:${n}`).join(";")}const qs=new WeakMap;function Is(e,n){qs.set(e,n)}function Ps(e){return qs.get(e)}class Rs{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new Rs(Object.fromEntries(function(e){return Array.isArray(e)?e:[e]}(n).map(e=>[e,qi])),e)}constructor(...e){if(2===e.length){const[n,t]=e;this.lang=t,this._stacks=n}else{const[n,t,i]=e;this.lang=t,this._stacks={[i]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){const n=[],t=new Set;return function e(i){if(t.has(i))return;t.add(i);const s=i?.nameScopesList?.scopeName;s&&n.push(s),i.parent&&e(i.parent)}(e),n}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Ns(){const e=new WeakMap;function n(n){if(!e.has(n.meta)){let t=function(e){if("number"==typeof e){if(e<0||e>n.source.length)throw new pt(`Invalid decoration offset: ${e}. Code length: ${n.source.length}`);return{...i.indexToPos(e),offset:e}}{const n=i.lines[e.line];if(void 0===n)throw new pt(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);let t=e.character;if(t<0&&(t=n.length+t),t<0||t>n.length)throw new pt(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${n.length}`);return{...e,character:t,offset:i.posToIndex(e.line,t)}}};const i=function(e){const n=As(e,!0).map(([e])=>e);return{lines:n,indexToPos:function(t){if(t===e.length)return{line:n.length-1,character:n[n.length-1].length};let i=t,s=0;for(const e of n){if(i<e.length)break;i-=e.length,s++}return{line:s,character:i}},posToIndex:function(e,t){let i=0;for(let s=0;s<e;s++)i+=n[s].length;return i+=t,i}}}(n.source),s=(n.options.decorations||[]).map(e=>({...e,start:t(e.start),end:t(e.end)}));!function(e){for(let n=0;n<e.length;n++){const t=e[n];if(t.start.offset>t.end.offset)throw new pt(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let i=n+1;i<e.length;i++){const n=e[i],s=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,r=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset,o=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||r||o||a){if(s&&r)continue;if(o&&a)continue;if(o&&t.start.offset===t.end.offset)continue;if(r&&n.start.offset===n.end.offset)continue;throw new pt(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}(s),e.set(n.meta,{decorations:s,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(e){if(!this.options.decorations?.length)return;const t=function(e,n){const t=Array.from(n instanceof Set?n:new Set(n)).sort((e,n)=>e-n);return t.length?e.map(e=>e.flatMap(e=>{const n=t.filter(n=>e.offset<n&&n<e.offset+e.content.length).map(n=>n-e.offset).sort((e,n)=>e-n);return n.length?function(e,n){let t=0;const i=[];for(const s of n)s>t&&i.push({...e,content:e.content.slice(t,s),offset:e.offset+t}),t=s;return t<e.content.length&&i.push({...e,content:e.content.slice(t),offset:e.offset+t}),i}(e,n):e})):e}(e,n(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]));return t},code(e){if(!this.options.decorations?.length)return;const t=n(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==t.converter.lines.length)throw new pt(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${t.converter.lines.length}). Failed to apply decorations.`);function s(e,n,t,s){const r=i[e];let a="",c=-1,l=-1;if(0===n&&(c=0),0===t&&(l=0),t===Number.POSITIVE_INFINITY&&(l=r.children.length),-1===c||-1===l)for(let i=0;i<r.children.length;i++)a+=Os(r.children[i]),-1===c&&a.length===n&&(c=i+1),-1===l&&a.length===t&&(l=i+1);if(-1===c)throw new pt(`Failed to find start index for decoration ${JSON.stringify(s.start)}`);if(-1===l)throw new pt(`Failed to find end index for decoration ${JSON.stringify(s.end)}`);const u=r.children.slice(c,l);if(s.alwaysWrap||u.length!==r.children.length)if(s.alwaysWrap||1!==u.length||"element"!==u[0].type){const e={type:"element",tagName:"span",properties:{},children:u};o(e,s,"wrapper"),r.children.splice(c,u.length,e)}else o(u[0],s,"token");else o(r,s,"line")}function r(e,n){i[e]=o(i[e],n,"line")}function o(e,n,t){const i=n.properties||{},s=n.transform||(e=>e);return e.tagName=n.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},n.properties?.class&&vs(e,n.properties.class),s(e,t)||e}const a=[],c=t.decorations.sort((e,n)=>n.start.offset-e.start.offset||e.end.offset-n.end.offset);for(const n of c){const{start:e,end:t}=n;if(e.line===t.line)s(e.line,e.character,t.character,n);else if(e.line<t.line){s(e.line,e.character,Number.POSITIVE_INFINITY,n);for(let i=e.line+1;i<t.line;i++)a.unshift(()=>r(i,n));s(t.line,0,t.character,n)}}a.forEach(e=>e())}}}function Os(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(Os).join(""):""}const Ds=[Ns()];function $s(e){const n=function(e){const n=[],t=[],i=[];for(const s of e)switch(s.enforce){case"pre":n.push(s);break;case"post":t.push(s);break;default:i.push(s)}return{pre:n,post:t,normal:i}}(e.transformers||[]);return[...n.pre,...n.normal,...n.post,...Ds]}var Ms=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Vs={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Fs(e,n){const t=e.indexOf("",n);if(-1!==t&&"["===e[t+1]){const n=e.indexOf("m",t);if(-1!==n)return{sequence:e.substring(t+2,n).split(";"),startPosition:t,position:n+1}}return{position:e.length}}function Bs(e){const n=e.shift();if("2"===n){const n=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==n.length||n.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:n}}if("5"===n){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Gs(e){const n=[];for(;e.length>0;){const t=e.shift();if(!t)continue;const i=Number.parseInt(t);if(!Number.isNaN(i))if(0===i)n.push({type:"resetAll"});else if(i<=9)Vs[i]&&n.push({type:"setDecoration",value:Vs[i]});else if(i<=29){const e=Vs[i-20];e&&(n.push({type:"resetDecoration",value:e}),"dim"===e&&n.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)n.push({type:"setForegroundColor",value:{type:"named",name:Ms[i-30]}});else if(38===i){const t=Bs(e);t&&n.push({type:"setForegroundColor",value:t})}else if(39===i)n.push({type:"resetForegroundColor"});else if(i<=47)n.push({type:"setBackgroundColor",value:{type:"named",name:Ms[i-40]}});else if(48===i){const t=Bs(e);t&&n.push({type:"setBackgroundColor",value:t})}else 49===i?n.push({type:"resetBackgroundColor"}):53===i?n.push({type:"setDecoration",value:"overline"}):55===i?n.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?n.push({type:"setForegroundColor",value:{type:"named",name:Ms[i-90+8]}}):i>=100&&i<=107&&n.push({type:"setBackgroundColor",value:{type:"named",name:Ms[i-100+8]}})}return n}var Us={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"};const Ws={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Ks(e,n,t={}){const{theme:i=e.getLoadedThemes()[0]}=t,s=e.resolveLangAlias(t.lang||"text");if(xs(s)||js(i))return As(n).map(e=>[{content:e[0],offset:e[1]}]);const{theme:r,colorMap:o}=e.setTheme(i);if("ansi"===s)return function(e,n,t){const i=ws(e,t),s=As(n),r=function(e=Us){function n(n){return e[n]}function t(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}let i;return{value:function(e){switch(e.type){case"named":return n(e.name);case"rgb":return t(e.rgb);case"table":return function(e){return function(){if(i)return i;i=[];for(let t=0;t<Ms.length;t++)i.push(n(Ms[t]));let e=[0,95,135,175,215,255];for(let n=0;n<6;n++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)i.push(t([e[n],e[s],e[r]]));let s=8;for(let n=0;n<24;n++,s+=10)i.push(t([s,s,s]));return i}()[e]}(e.index)}}}}(Object.fromEntries(Ms.map(n=>{const t=`terminal.ansi${n[0].toUpperCase()}${n.substring(1)}`,i=e.colors?.[t];return[n,i||Ws[n]]}))),o=function(){let e=null,n=null,t=new Set;return{parse(i){const s=[];let r=0;do{const o=Fs(i,r),a=o.sequence?i.substring(r,o.startPosition):i.substring(r);if(a.length>0&&s.push({value:a,foreground:e,background:n,decorations:new Set(t)}),o.sequence){const i=Gs(o.sequence);for(const s of i)"resetAll"===s.type?(e=null,n=null,t.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?n=null:"resetDecoration"===s.type&&t.delete(s.value);for(const s of i)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?n=s.value:"setDecoration"===s.type&&t.add(s.value)}r=o.position}while(r<i.length);return s}}}();return s.map(n=>o.parse(n[0]).map(t=>{let s,o;t.decorations.has("reverse")?(s=t.background?r.value(t.background):e.bg,o=t.foreground?r.value(t.foreground):e.fg):(s=t.foreground?r.value(t.foreground):e.fg,o=t.background?r.value(t.background):void 0),s=_s(s,i),o=_s(o,i),t.decorations.has("dim")&&(s=function(e){const n=e.match(/#([0-9a-f]{3,8})/i);if(n){const e=n[1];if(8===e.length){const n=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${n}`}if(6===e.length)return`#${e}80`;if(4===e.length){const n=e[0],t=e[1],i=e[2],s=e[3];return`#${n}${n}${t}${t}${i}${i}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}if(3===e.length){const n=e[0],t=e[1],i=e[2];return`#${n}${n}${t}${t}${i}${i}80`}}const t=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:e}(s));let a=Lt.None;return t.decorations.has("bold")&&(a|=Lt.Bold),t.decorations.has("italic")&&(a|=Lt.Italic),t.decorations.has("underline")&&(a|=Lt.Underline),t.decorations.has("strikethrough")&&(a|=Lt.Strikethrough),{content:t.value,offset:n[1],color:s,bgColor:o,fontStyle:a}}))}(r,n,t);const a=e.getLanguage(t.lang||"text");if(t.grammarState){if(t.grammarState.lang!==a.name)throw new pt(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${a.name}"`);if(!t.grammarState.themes.includes(r.name))throw new pt(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return function(e,n,t,i,s){const r=Hs(e,n,t,i,s),o=new Rs(r.stateStack,n.name,t.name);return Is(r.tokens,o),r.tokens}(n,a,r,o,t)}function Hs(e,n,t,i,s){const r=ws(t,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500}=s,c=As(e);let l=s.grammarState?function(e,n){if(!(e instanceof Rs))throw new pt("Invalid grammar state");return e.getInternalStack(n)}(s.grammarState,t.name)??qi:null!=s.grammarContextCode?Hs(s.grammarContextCode,n,t,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:qi,u=[];const h=[];for(let g=0,d=c.length;g<d;g++){const[e,d]=c[g];if(""===e){u=[],h.push([]);continue}if(o>0&&e.length>=o){u=[],h.push([{content:e,offset:d,color:"",fontStyle:0}]);continue}let p,m,f;s.includeExplanation&&(p=n.tokenizeLine(e,l,a),m=p.tokens,f=0);const y=n.tokenizeLine2(e,l,a),b=y.tokens.length/2;for(let n=0;n<b;n++){const o=y.tokens[2*n],a=n+1<b?y.tokens[2*n+2]:e.length;if(o===a)continue;const c=y.tokens[2*n+1],l=_s(i[Rt.getForeground(c)],r),h=Rt.getFontStyle(c),g={content:e.substring(o,a),offset:d+o,color:l,fontStyle:h};if(s.includeExplanation){const n=[];if("scopeName"!==s.includeExplanation)for(const e of t.settings){let t;switch(typeof e.scope){case"string":t=e.scope.split(/,/).map(e=>e.trim());break;case"object":t=e.scope;break;default:continue}n.push({settings:e,selectors:t.map(e=>e.split(/ /))})}g.explanation=[];let i=0;for(;o+i<a;){const t=m[f],r=e.substring(t.startIndex,t.endIndex);i+=r.length,g.explanation.push({content:r,scopes:"scopeName"===s.includeExplanation?Ys(t.scopes):Xs(n,t.scopes)}),f+=1}}u.push(g)}h.push(u),u=[],l=y.ruleStack}return{tokens:h,stateStack:l}}function Ys(e){return e.map(e=>({scopeName:e}))}function Xs(e,n){const t=[];for(let i=0,s=n.length;i<s;i++){const s=n[i];t[i]={scopeName:s,themeMatches:Qs(e,s,n.slice(0,i))}}return t}function Zs(e,n){return e===n||n.substring(0,e.length)===e&&"."===n[e.length]}function Js(e,n,t){if(!Zs(e[e.length-1],n))return!1;let i=e.length-2,s=t.length-1;for(;i>=0&&s>=0;)Zs(e[i],t[s])&&(i-=1),s-=1;return-1===i}function Qs(e,n,t){const i=[];for(const{selectors:s,settings:r}of e)for(const e of s)if(Js(e,n,t)){i.push(r);break}return i}function er(e,n,t){const i=Object.entries(t.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),s=i.map(i=>{const s=Ks(e,n,{...t,theme:i.theme});return{tokens:s,state:Ps(s),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),r=function(...e){const n=e.map(()=>[]),t=e.length;for(let i=0;i<e[0].length;i++){const s=e.map(e=>e[i]),r=n.map(()=>[]);n.forEach((e,n)=>e.push(r[n]));const o=s.map(()=>0),a=s.map(e=>e[0]);for(;a.every(e=>e);){const e=Math.min(...a.map(e=>e.content.length));for(let n=0;n<t;n++){const t=a[n];t.content.length===e?(r[n].push(t),o[n]+=1,a[n]=s[n][o[n]]):(r[n].push({...t,content:t.content.slice(0,e)}),a[n]={...t,content:t.content.slice(e),offset:t.offset+e})}}}return n}(...s.map(e=>e.tokens)),o=r[0].map((e,n)=>e.map((e,s)=>{const o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in t&&t.includeExplanation&&(o.explanation=e.explanation),r.forEach((e,t)=>{const{content:r,explanation:a,offset:c,...l}=e[n][s];o.variants[i[t].color]=l}),o})),a=s[0].state?new Rs(Object.fromEntries(s.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),s[0].state.lang):void 0;return a&&Is(o,a),o}function nr(e,n,t){let i,s,r,o,a,c;if("themes"in t){const{defaultColor:l="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=t,g=Object.entries(t.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,n)=>e.color===l?-1:n.color===l?1:0);if(0===g.length)throw new pt("`themes` option must not be empty");const d=er(e,n,t);if(c=Ps(d),l&&Ss!==l&&!g.find(e=>e.color===l))throw new pt(`\`themes\` option must contain the defaultColor key \`${l}\``);const p=g.map(n=>e.getTheme(n.theme)),m=g.map(e=>e.color);r=d.map(e=>e.map(e=>function(e,n,t,i,s="css-vars"){const r={content:e.content,explanation:e.explanation,offset:e.offset},o=n.map(n=>Ls(e.variants[n])),a=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,i)=>{const s="color"===i?"":"background-color"===i?"-bg":`-${i}`;return t+n[e]+("color"===i?"":s)};return o.forEach((e,t)=>{for(const r of a){const a=e[r]||"inherit";if(0===t&&i&&Cs.includes(r))if(i===Ss&&o.length>1){const e=n.findIndex(e=>"light"===e),i=n.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new pt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const u=o[e][r]||"inherit",h=o[i][r]||"inherit";c[r]=`light-dark(${u}, ${h})`,"css-vars"===s&&(c[l(t,r)]=a)}else c[r]=a;else"css-vars"===s&&(c[l(t,r)]=a)}}),r.htmlStyle=c,r}(e,m,u,l,h))),c&&Is(r,c);const f=g.map(e=>ws(e.theme,t));s=tr(g,p,f,u,l,"fg",h),i=tr(g,p,f,u,l,"bg",h),o=`shiki-themes ${p.map(e=>e.name).join(" ")}`,a=l?void 0:[s,i].join(";")}else{if(!("theme"in t))throw new pt("Invalid options, either `theme` or `themes` must be provided");{const a=ws(t.theme,t);r=Ks(e,n,t);const l=e.getTheme(t.theme);i=_s(l.bg,a),s=_s(l.fg,a),o=l.name,c=Ps(r)}}return{tokens:r,fg:s,bg:i,themeName:o,rootStyle:a,grammarState:c}}function tr(e,n,t,i,s,r,o){return e.map((a,c)=>{const l=_s(n[c][r],t[c])||"inherit",u=`${i+a.color}${"bg"===r?"-bg":""}:${l}`;if(0===c&&s){if(s===Ss&&e.length>1){const i=e.findIndex(e=>"light"===e.color),s=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===s)throw new pt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${_s(n[i][r],t[i])||"inherit"}, ${_s(n[s][r],t[s])||"inherit"});${u}`}return l}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function ir(e,n,t,i={meta:{},options:t,codeToHast:(n,t)=>ir(e,n,t),codeToTokens:(n,t)=>nr(e,n,t)}){let s=n;for(const p of $s(t))s=p.preprocess?.call(i,s,t)||s;let{tokens:r,fg:o,bg:a,themeName:c,rootStyle:l,grammarState:u}=nr(e,s,t);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:g=!1}=t;!0===h?r=function(e){return e.map(e=>{const n=[];let t,i="";return e.forEach((s,r)=>{const o=!(s.fontStyle&&(s.fontStyle&Lt.Underline||s.fontStyle&Lt.Strikethrough));o&&s.content.match(/^\s+$/)&&e[r+1]?(void 0===t&&(t=s.offset),i+=s.content):i?(o?n.push({...s,offset:t,content:i+s.content}):n.push({content:i,offset:t},s),t=void 0,i=""):n.push(s)}),n})}(r):"never"===h&&(r=function(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;const n=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return e;const[,t,i,s]=n;if(!t&&!s)return e;const r=[{...e,offset:e.offset+t.length,content:i}];return t&&r.unshift({content:t,offset:e.offset}),s&&r.push({content:s,offset:e.offset+t.length+i.length}),r}))}(r)),g&&(r=function(e){return e.map(e=>{const n=[];for(const t of e){if(0===n.length){n.push({...t});continue}const e=n[n.length-1],i=Ts(e.htmlStyle||Ls(e)),s=Ts(t.htmlStyle||Ls(t)),r=e.fontStyle&&(e.fontStyle&Lt.Underline||e.fontStyle&Lt.Strikethrough),o=t.fontStyle&&(t.fontStyle&Lt.Underline||t.fontStyle&Lt.Strikethrough);r||o||i!==s?n.push({...t}):e.content+=t.content}return n})}(r));const d={...i,get source(){return s}};for(const p of $s(t))r=p.tokens?.call(d,r)||r;return function(e,n,t,i=Ps(e)){const s=$s(n),r=[],o={type:"root",children:[]},{structure:a="classic",tabindex:c="0"}=n,l={class:`shiki ${n.themeName||""}`};!1!==n.rootStyle&&(null!=n.rootStyle?l.style=n.rootStyle:l.style=`background-color:${n.bg};color:${n.fg}`),!1!==c&&null!=c&&(l.tabindex=c.toString());for(const[m,f]of Object.entries(n.meta||{}))m.startsWith("_")||(l[m]=f);let u={type:"element",tagName:"pre",properties:l,children:[],data:n.data},h={type:"element",tagName:"code",properties:{},children:r};const g=[],d={...t,structure:a,addClassToHast:vs,get source(){return t.source},get tokens(){return e},get options(){return n},get root(){return o},get pre(){return u},get code(){return h},get lines(){return g}};if(e.forEach((e,n)=>{n&&("inline"===a?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===a&&r.push({type:"text",value:"\n"}));let t={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(const r of e){let e={type:"element",tagName:"span",properties:{...r.htmlAttrs},children:[{type:"text",value:r.content}]};const c=Ts(r.htmlStyle||Ls(r));c&&(e.properties.style=c);for(const o of s)e=o?.span?.call(d,e,n+1,i,t,r)||e;"inline"===a?o.children.push(e):"classic"===a&&t.children.push(e),i+=r.content.length}if("classic"===a){for(const e of s)t=e?.line?.call(d,t,n+1)||t;g.push(t),r.push(t)}else"inline"===a&&g.push(t)}),"classic"===a){for(const e of s)h=e?.code?.call(d,h)||h;u.children.push(h);for(const e of s)u=e?.pre?.call(d,u)||u;o.children.push(u)}else if("inline"===a){const e=[];let n={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const i of o.children)"element"===i.type&&"br"===i.tagName?(e.push(n),n={type:"element",tagName:"span",properties:{class:"line"},children:[]}):"element"!==i.type&&"text"!==i.type||n.children.push(i);e.push(n);let t={type:"element",tagName:"code",properties:{},children:e};for(const i of s)t=i?.code?.call(d,t)||t;o.children=[];for(let i=0;i<t.children.length;i++){i>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const e=t.children[i];"element"===e.type&&o.children.push(...e.children)}}let p=o;for(const m of s)p=m?.root?.call(d,p)||p;return i&&Is(p,i),p}(r,{...t,fg:o,bg:a,themeName:c,rootStyle:!1!==t.rootStyle&&(t.rootStyle??l)},d,u)}const sr="__shiki_resolved";function rr(e){if(e?.[sr])return e;const n={...e};n.tokenColors&&!n.settings&&(n.settings=n.tokenColors,delete n.tokenColors),n.type||="dark",n.colorReplacements={...n.colorReplacements},n.settings||=[];let{bg:t,fg:i}=n;if(!t||!i){const e=n.settings?n.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(i=e.settings.foreground),e?.settings?.background&&(t=e.settings.background),!i&&n?.colors?.["editor.foreground"]&&(i=n.colors["editor.foreground"]),!t&&n?.colors?.["editor.background"]&&(t=n.colors["editor.background"]),i||(i="light"===n.type?"#333333":"#bbbbbb"),t||(t="light"===n.type?"#fffffe":"#1e1e1e"),n.fg=i,n.bg=t}n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}});let s=0;const r=new Map;function o(e){if(r.has(e))return r.get(e);s+=1;const t=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return n.colorReplacements?.[`#${t}`]?o(e):(r.set(e,t),t)}n.settings=n.settings.map(e=>{const t=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),i=e.settings?.background&&!e.settings.background.startsWith("#");if(!t&&!i)return e;const s={...e,settings:{...e.settings}};if(t){const t=o(e.settings.foreground);n.colorReplacements[t]=e.settings.foreground,s.settings.foreground=t}if(i){const t=o(e.settings.background);n.colorReplacements[t]=e.settings.background,s.settings.background=t}return s});for(const a of Object.keys(n.colors||{}))if(("editor.foreground"===a||"editor.background"===a||a.startsWith("terminal.ansi"))&&!n.colors[a]?.startsWith("#")){const e=o(n.colors[a]);n.colorReplacements[e]=n.colors[a],n.colors[a]=e}return Object.defineProperty(n,sr,{enumerable:!1,writable:!1,value:!0}),n}async function or(e){return Array.from(new Set((await Promise.all(e.filter(e=>!zs(e)).map(async e=>await ks(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function ar(e){return(await Promise.all(e.map(async e=>Es(e)?null:rr(await ks(e))))).filter(e=>!!e)}let cr=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function lr(e,n){if(!n)return e;if(n[e]){const t=new Set([e]);for(;n[e];){if(e=n[e],t.has(e))throw new cr(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return e}class ur extends Ti{constructor(e,n,t,i={}){super(e),this._resolver=e,this._themes=n,this._langs=t,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=rr(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=Et.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=lr(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(n=>n.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const t={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,t);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(n=>{this._alias[n]=e.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),t=n.filter(([e,n])=>!n);if(t.length){const e=n.filter(([e,n])=>{if(!n)return!1;const i=n.embeddedLanguages||n.embeddedLangs;return i?.some(e=>t.map(([e])=>e).includes(e))}).filter(e=>!t.includes(e));throw new cr(`Missing languages ${t.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const n=e.embeddedLanguages??e.embeddedLangs;if(n)for(const t of n)this._langGraph.set(t,this._langMap.get(t))}}class hr{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},n.forEach(e=>this.addLanguage(e))}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(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let t=[];for(let i=1;i<=n.length;i++){const e=n.slice(0,i).join(".");t=[...t,...this._injections.get(e)||[]]}return t}}let gr=0;function dr(e){const n=e.langs,t=e.themes,i=e.engine;return async function(e){function s(t){if("string"==typeof t){if(zs(t=e.langAlias?.[t]||t))return[];const i=n[t];if(!i)throw new pt(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return i}return t}function r(e){if(Es(e))return"none";if("string"==typeof e){const n=t[e];if(!n)throw new pt(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return n}return e}const o=(e.themes??[]).map(e=>r(e)),a=(e.langs??[]).map(e=>s(e)),c=await async function(e){const n=await async function(e){e.engine||function(e,n=3){n>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[n,t,i]=await Promise.all([ar(e.themes||[]),or(e.langs||[]),e.engine]);return function(e){gr+=1,!1!==e.warnings&&gr>=10&&gr%10==0&&console.warn(`[Shiki] ${gr} 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 n=!1;if(!e.engine)throw new cr("`engine` option is required for synchronous mode");const t=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(rr),s=new hr(e.engine,t),r=new ur(s,i,t,e.langAlias);let o;function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();const n=r.getTheme(e);if(!n)throw new cr(`Theme \`${e}\` not found, you may need to load it first`);return n}function c(...e){u(),r.loadLanguages(e.flat(1))}function l(...e){u();for(const n of e.flat(1))r.loadTheme(n)}function u(){if(n)throw new cr("Shiki instance has been disposed")}function h(){n||(n=!0,r.dispose(),gr-=1)}return{setTheme:function(e){u();const n=a(e);return o!==e&&(r.setTheme(n),o=e),{theme:n,colorMap:r.getColorMap()}},getTheme:a,getLanguage:function(e){u();const n=r.getGrammar("string"==typeof e?e:e.name);if(!n)throw new cr(`Language \`${e}\` not found, you may need to load it first`);return n},getLoadedThemes:function(){return u(),r.getLoadedThemes()},getLoadedLanguages:function(){return u(),r.getLoadedLanguages()},resolveLangAlias:function(n){return lr(n,e.langAlias)},loadLanguage:async function(...e){return c(await or(e))},loadLanguageSync:c,loadTheme:async function(...e){return u(),l(await ar(e))},loadThemeSync:l,dispose:h,[Symbol.dispose]:h}}({...e,themes:n,langs:t,engine:i})}(e);return{getLastGrammarState:(...e)=>function(...e){if(2===e.length)return Ps(e[1]);const[n,t,i={}]=e,{lang:s="text",theme:r=n.getLoadedThemes()[0]}=i;if(xs(s)||js(r))throw new pt("Plain language does not have grammar state");if("ansi"===s)throw new pt("ANSI language does not have grammar state");const{theme:o,colorMap:a}=n.setTheme(r),c=n.getLanguage(s);return new Rs(Hs(t,c,o,a,i).stateStack,c.name,o.name)}(n,...e),codeToTokensBase:(e,t)=>Ks(n,e,t),codeToTokensWithThemes:(e,t)=>er(n,e,t),codeToTokens:(e,t)=>nr(n,e,t),codeToHast:(e,t)=>ir(n,e,t),codeToHtml:(e,t)=>function(e,n,t){const i={meta:{},options:t,codeToHast:(n,t)=>ir(e,n,t),codeToTokens:(n,t)=>nr(e,n,t)};let s=function(e){const n=ps,t=n.quote||'"',i='"'===t?"'":'"';if('"'!==t&&"'"!==t)throw new Error("Invalid quote `"+t+"`, expected `'` or `\"`");return{one:ys,all:bs,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Sn,characterReferences:n.characterReferences||ms,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?zn:An,quote:t,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(ir(e,n,t,i));for(const r of $s(t))s=r.postprocess?.call(i,s,t)||s;return s}(n,e,t),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...n,getInternalContext:()=>n}}({engine:e.engine??i(),...e,themes:o,langs:a});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(s)),loadTheme:(...e)=>c.loadTheme(...e.map(r)),getBundledLanguages:()=>n,getBundledThemes:()=>t}}}const pr=[{id:"abap",name:"ABAP",import:()=>e(()=>import("./abap-DnJxzdy9.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>e(()=>import("./actionscript-3-DKotD2Vd.js"),[])},{id:"ada",name:"Ada",import:()=>e(()=>import("./ada-iG1FnIvR.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>e(()=>import("./angular-html-CGDGYtiS.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>e(()=>import("./angular-ts-5zO4eZho.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>e(()=>import("./apache-CdTKWnKT.js"),[])},{id:"apex",name:"Apex",import:()=>e(()=>import("./apex-DPFMkx-R.js"),[])},{id:"apl",name:"APL",import:()=>e(()=>import("./apl-DnQuo7r7.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>e(()=>import("./applescript-BlLNmGTp.js"),[])},{id:"ara",name:"Ara",import:()=>e(()=>import("./ara-Ba3fhlsS.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e(()=>import("./asciidoc-AY8u9WWM.js"),[])},{id:"asm",name:"Assembly",import:()=>e(()=>import("./asm-CHX6lpGW.js"),[])},{id:"astro",name:"Astro",import:()=>e(()=>import("./astro-B5Br1cQb.js"),__vite__mapDeps([10,9,2,11,3,12,13]))},{id:"awk",name:"AWK",import:()=>e(()=>import("./awk-XRrwoikR.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>e(()=>import("./ballerina-Dh0JsEtz.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e(()=>import("./bat-BVu0TwaT.js"),[])},{id:"beancount",name:"Beancount",import:()=>e(()=>import("./beancount-CJl0njO0.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>e(()=>import("./berry-Bmu6i3Vs.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>e(()=>import("./bibtex-CGjxJ4Zd.js"),[])},{id:"bicep",name:"Bicep",import:()=>e(()=>import("./bicep-DSW96mAt.js"),[])},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e(()=>import("./bird2-DECYBE5b.js"),[])},{id:"blade",name:"Blade",import:()=>e(()=>import("./blade-C76tewJX.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e(()=>import("./bsl-DGicdwC0.js"),__vite__mapDeps([17,18]))},{id:"c",name:"C",import:()=>e(()=>import("./c-BmJt9k-y.js"),[])},{id:"c3",name:"C3",import:()=>e(()=>import("./c3-BBJ779-z.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e(()=>import("./cadence-DbDq8SCj.js"),[])},{id:"cairo",name:"Cairo",import:()=>e(()=>import("./cairo-Dz8fl918.js"),__vite__mapDeps([19,20]))},{id:"clarity",name:"Clarity",import:()=>e(()=>import("./clarity-Bb40UnPS.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e(()=>import("./clojure-BjI0Knrv.js"),[])},{id:"cmake",name:"CMake",import:()=>e(()=>import("./cmake-BYiqpiH1.js"),[])},{id:"cobol",name:"COBOL",import:()=>e(()=>import("./cobol-DQUyVTuR.js"),__vite__mapDeps([21,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>e(()=>import("./codeowners-L91meNbn.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e(()=>import("./codeql-Cd-JFsJB.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e(()=>import("./coffee-BDkVV41o.js"),__vite__mapDeps([22,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e(()=>import("./common-lisp-DOi1njVG.js"),[])},{id:"coq",name:"Coq",import:()=>e(()=>import("./coq-BfbrVLCY.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e(()=>import("./cpp-BmKY377x.js"),__vite__mapDeps([23,24,25,26,16]))},{id:"crystal",name:"Crystal",import:()=>e(()=>import("./crystal-CaN4TS0s.js"),__vite__mapDeps([27,1,2,3,16,26,28]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e(()=>import("./csharp-VAkxddOj.js"),[])},{id:"css",name:"CSS",import:()=>e(()=>import("./css-l46fsARh.js"),[])},{id:"csv",name:"CSV",import:()=>e(()=>import("./csv-DXKU4rRd.js"),[])},{id:"cue",name:"CUE",import:()=>e(()=>import("./cue-zmT78Agv.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e(()=>import("./cypher-bkHSskm3.js"),[])},{id:"d",name:"D",import:()=>e(()=>import("./d-vs9xsbRV.js"),[])},{id:"dart",name:"Dart",import:()=>e(()=>import("./dart-BMkYYGiN.js"),[])},{id:"dax",name:"DAX",import:()=>e(()=>import("./dax-D135z3aS.js"),[])},{id:"desktop",name:"Desktop",import:()=>e(()=>import("./desktop-CigPEpQ5.js"),[])},{id:"diff",name:"Diff",import:()=>e(()=>import("./diff-Beq1YlA8.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e(()=>import("./docker-V5Al5bpF.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>e(()=>import("./dotenv-D9G8sA2m.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>e(()=>import("./dream-maker-BsoKROiO.js"),[])},{id:"edge",name:"Edge",import:()=>e(()=>import("./edge-BEMgb-sr.js"),__vite__mapDeps([29,11,1,2,3,15]))},{id:"elixir",name:"Elixir",import:()=>e(()=>import("./elixir-BkUQLiPT.js"),__vite__mapDeps([30,1,2,3]))},{id:"elm",name:"Elm",import:()=>e(()=>import("./elm-DmpuOW2E.js"),__vite__mapDeps([31,25,26]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e(()=>import("./emacs-lisp-BcpYGiHp.js"),[])},{id:"erb",name:"ERB",import:()=>e(()=>import("./erb-paWl6F80.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e(()=>import("./erlang-DAw79KxH.js"),__vite__mapDeps([39,40]))},{id:"fennel",name:"Fennel",import:()=>e(()=>import("./fennel-qzPJJAAI.js"),[])},{id:"fish",name:"Fish",import:()=>e(()=>import("./fish-Cx6My9pS.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e(()=>import("./fluent-BsukS3Co.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e(()=>import("./fortran-fixed-form-BiRvzwyR.js"),__vite__mapDeps([41,42]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e(()=>import("./fortran-free-form-CakU9R0a.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e(()=>import("./fsharp-BmLNaTNL.js"),__vite__mapDeps([43,40]))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e(()=>import("./gdresource-pHyHNgx5.js"),__vite__mapDeps([44,45,46]))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e(()=>import("./gdscript-BpxQpKjR.js"),[])},{id:"gdshader",name:"GDShader",import:()=>e(()=>import("./gdshader-BC7WJXp9.js"),[])},{id:"genie",name:"Genie",import:()=>e(()=>import("./genie-IZOju1hG.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>e(()=>import("./gherkin-DUpgZfGr.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>e(()=>import("./git-commit-Bptnmh-c.js"),__vite__mapDeps([47,48]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>e(()=>import("./git-rebase-CqNhyBhE.js"),__vite__mapDeps([49,28]))},{id:"gleam",name:"Gleam",import:()=>e(()=>import("./gleam-CCCEh_av.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e(()=>import("./glimmer-js-Bxt49MuP.js"),__vite__mapDeps([50,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e(()=>import("./glimmer-ts-BsGfVpaS.js"),__vite__mapDeps([51,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>e(()=>import("./glsl-BDbjGBhJ.js"),__vite__mapDeps([25,26]))},{id:"gn",name:"GN",import:()=>e(()=>import("./gn-BNGDdMfm.js"),[])},{id:"gnuplot",name:"Gnuplot",import:()=>e(()=>import("./gnuplot-D0FoiB-W.js"),[])},{id:"go",name:"Go",import:()=>e(()=>import("./go-Ci1olR0S.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e(()=>import("./graphql-DTlHKpVh.js"),__vite__mapDeps([35,2,11,36,13]))},{id:"groovy",name:"Groovy",import:()=>e(()=>import("./groovy-D9sPn4Z-.js"),[])},{id:"hack",name:"Hack",import:()=>e(()=>import("./hack-B6RDfhIS.js"),__vite__mapDeps([52,1,2,3,16]))},{id:"haml",name:"Ruby Haml",import:()=>e(()=>import("./haml-DvFFb5cL.js"),__vite__mapDeps([34,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e(()=>import("./handlebars--3HEtxsY.js"),__vite__mapDeps([53,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e(()=>import("./haskell-Cp0NQEkn.js"),[])},{id:"haxe",name:"Haxe",import:()=>e(()=>import("./haxe-D-PmAGDa.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>e(()=>import("./hcl-DRMo6eis.js"),[])},{id:"hjson",name:"Hjson",import:()=>e(()=>import("./hjson-BPEpXUFQ.js"),[])},{id:"hlsl",name:"HLSL",import:()=>e(()=>import("./hlsl-B-PjNM4a.js"),[])},{id:"html",name:"HTML",import:()=>e(()=>import("./html-Z-jPWkqI.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e(()=>import("./html-derivative-CUTCBBy5.js"),__vite__mapDeps([15,1,2,3]))},{id:"http",name:"HTTP",import:()=>e(()=>import("./http-C5yS503b.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]))},{id:"hurl",name:"Hurl",import:()=>e(()=>import("./hurl-DX_i18ky.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]))},{id:"hxml",name:"HXML",import:()=>e(()=>import("./hxml-DB3_nACV.js"),__vite__mapDeps([57,58]))},{id:"hy",name:"Hy",import:()=>e(()=>import("./hy-CLIvbAhW.js"),[])},{id:"imba",name:"Imba",import:()=>e(()=>import("./imba-B-tO30Ge.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>e(()=>import("./ini-Bpxu4Zsc.js"),[])},{id:"java",name:"Java",import:()=>e(()=>import("./java-DtRXFtDl.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e(()=>import("./javascript-DFyEbC5y.js"),[])},{id:"jinja",name:"Jinja",import:()=>e(()=>import("./jinja-Dy9dpTFB.js"),__vite__mapDeps([59,1,2,3]))},{id:"jison",name:"Jison",import:()=>e(()=>import("./jison-rKmQmF2-.js"),__vite__mapDeps([60,2]))},{id:"json",name:"JSON",import:()=>e(()=>import("./json-LWN7Ml79.js"),[])},{id:"json5",name:"JSON5",import:()=>e(()=>import("./json5-CgCB487x.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>e(()=>import("./jsonc-BXrjvC_e.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>e(()=>import("./jsonl-D5dm1SHP.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>e(()=>import("./jsonnet-B60UklUs.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e(()=>import("./jssm-CsqlGknB.js"),[])},{id:"jsx",name:"JSX",import:()=>e(()=>import("./jsx-g2NrEQII.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e(()=>import("./julia-cok74C3v.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]))},{id:"just",name:"Just",import:()=>e(()=>import("./just-BtNYcbKt.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38]))},{id:"kdl",name:"KDL",import:()=>e(()=>import("./kdl-DWIPcypl.js"),[])},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e(()=>import("./kotlin-DiV2Dt9D.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e(()=>import("./kusto-BJ51M1bD.js"),[])},{id:"latex",name:"LaTeX",import:()=>e(()=>import("./latex-DfULfDnZ.js"),__vite__mapDeps([65,66,62]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e(()=>import("./lean-BpZurxeZ.js"),[])},{id:"less",name:"Less",import:()=>e(()=>import("./less-DKKxO4Pm.js"),[])},{id:"liquid",name:"Liquid",import:()=>e(()=>import("./liquid-C2bTOIx_.js"),__vite__mapDeps([67,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>e(()=>import("./llvm-w4szIS5k.js"),[])},{id:"log",name:"Log file",import:()=>e(()=>import("./log-CnKjEmrw.js"),[])},{id:"logo",name:"Logo",import:()=>e(()=>import("./logo-BmG1tMr6.js"),[])},{id:"lua",name:"Lua",import:()=>e(()=>import("./lua-DlAioYQl.js"),__vite__mapDeps([37,26]))},{id:"luau",name:"Luau",import:()=>e(()=>import("./luau-BImqhNgT.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e(()=>import("./make-Ccm3NI5i.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e(()=>import("./markdown-DY93LJPj.js"),[])},{id:"marko",name:"Marko",import:()=>e(()=>import("./marko-CVUQDN1F.js"),__vite__mapDeps([68,3,69,5,11]))},{id:"matlab",name:"MATLAB",import:()=>e(()=>import("./matlab-nYX3zffi.js"),[])},{id:"mdc",name:"MDC",import:()=>e(()=>import("./mdc-D3GsoZ_L.js"),__vite__mapDeps([70,40,38,15,1,2,3]))},{id:"mdx",name:"MDX",import:()=>e(()=>import("./mdx-C8C9IGe9.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e(()=>import("./mermaid--Jyu4oWd.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e(()=>import("./mipsasm-BjAqecqh.js"),[])},{id:"mojo",name:"Mojo",import:()=>e(()=>import("./mojo-C2cxD0aZ.js"),[])},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e(()=>import("./moonbit-B4gpyPjt.js"),[])},{id:"move",name:"Move",import:()=>e(()=>import("./move-Dg7rFHVC.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e(()=>import("./narrat-BTSicUR-.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e(()=>import("./nextflow-NhKJRLNF.js"),__vite__mapDeps([71,72]))},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>e(()=>import("./nextflow-groovy-CqvLf608.js"),[])},{id:"nginx",name:"Nginx",import:()=>e(()=>import("./nginx-CllVvPGm.js"),__vite__mapDeps([73,37,26]))},{id:"nim",name:"Nim",import:()=>e(()=>import("./nim-BDZhFo_A.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40]))},{id:"nix",name:"Nix",import:()=>e(()=>import("./nix-_0LqsLde.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e(()=>import("./nushell-Mk45ZIMx.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e(()=>import("./objective-c-DLT9zZoE.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>e(()=>import("./objective-cpp-DKXr-AK_.js"),[])},{id:"ocaml",name:"OCaml",import:()=>e(()=>import("./ocaml-DP9q6K5L.js"),[])},{id:"odin",name:"Odin",import:()=>e(()=>import("./odin-BINPiy40.js"),[])},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e(()=>import("./openscad-CVq2HK1T.js"),[])},{id:"pascal",name:"Pascal",import:()=>e(()=>import("./pascal-DjTTLVNS.js"),[])},{id:"perl",name:"Perl",import:()=>e(()=>import("./perl-BemjezQW.js"),__vite__mapDeps([64,1,2,3,7,8,16]))},{id:"php",name:"PHP",import:()=>e(()=>import("./php-CGgrkEf9.js"),__vite__mapDeps([75,1,2,3,7,8,16,9]))},{id:"pkl",name:"Pkl",import:()=>e(()=>import("./pkl-0Sl31KKD.js"),[])},{id:"plsql",name:"PL/SQL",import:()=>e(()=>import("./plsql-CJrHCTnj.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e(()=>import("./po-y5MdiEbo.js"),[])},{id:"polar",name:"Polar",import:()=>e(()=>import("./polar-Bsx6RkUC.js"),[])},{id:"postcss",name:"PostCSS",import:()=>e(()=>import("./postcss-CeUBPB2S.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>e(()=>import("./powerquery-CW27I574.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e(()=>import("./powershell-DSYJ6xcj.js"),[])},{id:"prisma",name:"Prisma",import:()=>e(()=>import("./prisma-CLoN-gBj.js"),[])},{id:"prolog",name:"Prolog",import:()=>e(()=>import("./prolog-Bgt5DHUA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e(()=>import("./proto-C194Edqz.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e(()=>import("./pug-zcj1uJy9.js"),__vite__mapDeps([76,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>e(()=>import("./puppet-TSkl_nn0.js"),[])},{id:"purescript",name:"PureScript",import:()=>e(()=>import("./purescript-BrDje9qL.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>e(()=>import("./python-DlV7vnVD.js"),[])},{id:"qml",name:"QML",import:()=>e(()=>import("./qml-DTv-54bL.js"),__vite__mapDeps([77,2]))},{id:"qmldir",name:"QML Directory",import:()=>e(()=>import("./qmldir-CSZk7E48.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>e(()=>import("./qss-DACx-k9g.js"),[])},{id:"r",name:"R",import:()=>e(()=>import("./r-EOoB7omE.js"),[])},{id:"racket",name:"Racket",import:()=>e(()=>import("./racket-D1nq-KeH.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e(()=>import("./raku-DocPDKZq.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>e(()=>import("./razor-8J3P2wQs.js"),__vite__mapDeps([78,1,2,3,79]))},{id:"reg",name:"Windows Registry Script",import:()=>e(()=>import("./reg-5ydmJHEw.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e(()=>import("./regexp-CpyjTnFF.js"),[])},{id:"rel",name:"Rel",import:()=>e(()=>import("./rel-D68lwU-3.js"),[])},{id:"riscv",name:"RISC-V",import:()=>e(()=>import("./riscv-Cl4WfXj6.js"),[])},{id:"ron",name:"RON",import:()=>e(()=>import("./ron-DIZViclS.js"),[])},{id:"rosmsg",name:"ROS Interface",import:()=>e(()=>import("./rosmsg-sf_0D22S.js"),[])},{id:"rst",name:"reStructuredText",import:()=>e(()=>import("./rst-yWrgJnVd.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e(()=>import("./ruby-CyNHEA82.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e(()=>import("./rust-DpWcZSqc.js"),[])},{id:"sas",name:"SAS",import:()=>e(()=>import("./sas-BBCK0tAG.js"),__vite__mapDeps([82,16]))},{id:"sass",name:"Sass",import:()=>e(()=>import("./sass-DY_rGA2-.js"),[])},{id:"scala",name:"Scala",import:()=>e(()=>import("./scala-CYRsmRER.js"),[])},{id:"scheme",name:"Scheme",import:()=>e(()=>import("./scheme-C45fPb3F.js"),[])},{id:"scss",name:"SCSS",import:()=>e(()=>import("./scss-CHxzYwli.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e(()=>import("./sdbl-BpucmfEo.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e(()=>import("./shaderlab-DNyPh2Q6.js"),__vite__mapDeps([83,84]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e(()=>import("./shellscript-B8OHlvmy.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e(()=>import("./shellsession-OATBsyRD.js"),__vite__mapDeps([85,28]))},{id:"smalltalk",name:"Smalltalk",import:()=>e(()=>import("./smalltalk-CKvddXL8.js"),[])},{id:"solidity",name:"Solidity",import:()=>e(()=>import("./solidity-XfXaqt9k.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e(()=>import("./soy-Dz-Bkr4l.js"),__vite__mapDeps([86,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>e(()=>import("./sparql-CLNNOQQI.js"),__vite__mapDeps([87,88]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e(()=>import("./splunk-CFtInczE.js"),[])},{id:"sql",name:"SQL",import:()=>e(()=>import("./sql-BhJCBb_s.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>e(()=>import("./ssh-config-Dqsr-I88.js"),[])},{id:"stata",name:"Stata",import:()=>e(()=>import("./stata-G4GYNNPE.js"),__vite__mapDeps([89,16]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e(()=>import("./stylus-BeJftkpb.js"),[])},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e(()=>import("./surrealql-C_6seBBi.js"),__vite__mapDeps([90,2]))},{id:"svelte",name:"Svelte",import:()=>e(()=>import("./svelte-BuOg6tJl.js"),__vite__mapDeps([91,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>e(()=>import("./swift-0qv2hBXI.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>e(()=>import("./system-verilog-B3nElewZ.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>e(()=>import("./systemd-B7SlkmfE.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e(()=>import("./talonscript-BrsbXmRy.js"),[])},{id:"tasl",name:"Tasl",import:()=>e(()=>import("./tasl-CMkPZNj1.js"),[])},{id:"tcl",name:"Tcl",import:()=>e(()=>import("./tcl-CiyEbZSK.js"),[])},{id:"templ",name:"Templ",import:()=>e(()=>import("./templ-B_lDaXqj.js"),__vite__mapDeps([92,93,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e(()=>import("./terraform-BUB-_BlF.js"),[])},{id:"tex",name:"TeX",import:()=>e(()=>import("./tex-ByCZWQmN.js"),__vite__mapDeps([66,62]))},{id:"toml",name:"TOML",import:()=>e(()=>import("./toml-VldhK7iW.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e(()=>import("./ts-tags-Chlpw95x.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8]))},{id:"tsv",name:"TSV",import:()=>e(()=>import("./tsv-BQ9ptESM.js"),[])},{id:"tsx",name:"TSX",import:()=>e(()=>import("./tsx-DYwE5ssU.js"),[])},{id:"turtle",name:"Turtle",import:()=>e(()=>import("./turtle-BVy4HXn4.js"),[])},{id:"twig",name:"Twig",import:()=>e(()=>import("./twig-4agwRVFz.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e(()=>import("./typescript-DI7mmMRd.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e(()=>import("./typespec-BNdhC6HS.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e(()=>import("./typst-JIZTSUoJ.js"),[])},{id:"v",name:"V",import:()=>e(()=>import("./v-B66J5FdL.js"),[])},{id:"vala",name:"Vala",import:()=>e(()=>import("./vala-p2PL1w-1.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e(()=>import("./vb-Dv-GCw1m.js"),[])},{id:"verilog",name:"Verilog",import:()=>e(()=>import("./verilog-DKP7kpC6.js"),[])},{id:"vhdl",name:"VHDL",import:()=>e(()=>import("./vhdl-Cog-DhcW.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e(()=>import("./viml-0AN1aqkP.js"),[])},{id:"vue",name:"Vue",import:()=>e(()=>import("./vue-D3w_7BFv.js"),__vite__mapDeps([96,3,2,11,9,1,15]))},{id:"vue-html",name:"Vue HTML",import:()=>e(()=>import("./vue-html-a8uCr53v.js"),__vite__mapDeps([97,2]))},{id:"vue-vine",name:"Vue Vine",import:()=>e(()=>import("./vue-vine-2Gx6KHOr.js"),__vite__mapDeps([98,3,5,69,99,12,2]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e(()=>import("./vyper-sB2l1MOO.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>e(()=>import("./wasm-CSAWeJiV.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e(()=>import("./wenyan-CLHHXU5e.js"),[])},{id:"wgsl",name:"WGSL",import:()=>e(()=>import("./wgsl-DiTcYanS.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e(()=>import("./wikitext-DT8E9qe0.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>e(()=>import("./wit-CtjT-RdY.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e(()=>import("./wolfram-1xJNnwe2.js"),[])},{id:"xml",name:"XML",import:()=>e(()=>import("./xml-BsgRw6d1.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>e(()=>import("./xsl-DCNnPbrB.js"),__vite__mapDeps([100,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e(()=>import("./yaml-c2-Vhxho.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>e(()=>import("./zenscript-ChP1MlQf.js"),[])},{id:"zig",name:"Zig",import:()=>e(()=>import("./zig-rivS3YQG.js"),[])}],mr={...Object.fromEntries(pr.map(e=>[e.id,e.import])),...Object.fromEntries(pr.flatMap(e=>e.aliases?.map(n=>[n,e.import])||[]))},fr=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e(()=>import("./andromeeda-C4gqWexZ.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e(()=>import("./ayu-dark-DYE7WIF3.js"),[])},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e(()=>import("./ayu-light-BA47KaF1.js"),[])},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e(()=>import("./ayu-mirage-32ctXXKs.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e(()=>import("./catppuccin-frappe-DFWUc33u.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[])},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e(()=>import("./horizon-BUw7H-hv.js"),[])},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>e(()=>import("./horizon-bright-Cn-bp-IR.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>e(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e(()=>import("./night-owl-light-CMTm3GFP.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>e(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>e(()=>import("./one-light-C3Wv6jpd.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>e(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e(()=>import("./rose-pine-qdsjHGoJ.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e(()=>import("./rose-pine-moon-D4_iv3hh.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e(()=>import("./synthwave-84-ChtBzv_y.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e(()=>import("./vesper-DU1UobuO.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],yr=Object.fromEntries(fr.map(e=>[e.id,e.import]));class br extends Error{constructor(e){super(e),this.name="ShikiError"}}function wr(){return"undefined"!=typeof performance?performance.now():Date.now()}const _r=(e,n)=>e+(n-e%n)%n;var kr=Object.defineProperty,xr=(e,n,t)=>((e,n,t)=>n in e?kr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t)(e,"symbol"!=typeof n?n+"":n,t);let zr=null;class jr{constructor(e){xr(this,"utf16Length"),xr(this,"utf8Length"),xr(this,"utf16Value"),xr(this,"utf8Value"),xr(this,"utf16OffsetToUtf8"),xr(this,"utf8OffsetToUtf16");const n=e.length,t=jr._utf8ByteLength(e),i=t!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=t);const r=i?new Uint32Array(t+1):null;i&&(r[t]=n);const o=new Uint8Array(t);let a=0;for(let c=0;c<n;c++){const t=e.charCodeAt(c);let l=t,u=!1;if(t>=55296&&t<=56319&&c+1<n){const n=e.charCodeAt(c+1);n>=56320&&n<=57343&&(l=65536+(t-55296<<10)|n-56320,u=!0)}i&&(s[c]=a,u&&(s[c+1]=a),l<=127?r[a+0]=c:l<=2047?(r[a+0]=c,r[a+1]=c):l<=65535?(r[a+0]=c,r[a+1]=c,r[a+2]=c):(r[a+0]=c,r[a+1]=c,r[a+2]=c,r[a+3]=c)),l<=127?o[a++]=l:l<=2047?(o[a++]=192|(1984&l)>>>6,o[a++]=128|(63&l)>>>0):l<=65535?(o[a++]=224|(61440&l)>>>12,o[a++]=128|(4032&l)>>>6,o[a++]=128|(63&l)>>>0):(o[a++]=240|(1835008&l)>>>18,o[a++]=128|(258048&l)>>>12,o[a++]=128|(4032&l)>>>6,o[a++]=128|(63&l)>>>0),u&&c++}this.utf16Length=n,this.utf8Length=t,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}static _utf8ByteLength(e){let n=0;for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);let r=s,o=!1;if(s>=55296&&s<=56319&&t+1<i){const n=e.charCodeAt(t+1);n>=56320&&n<=57343&&(r=65536+(s-55296<<10)|n-56320,o=!0)}n+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&t++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const Er=class e{constructor(n){if(xr(this,"id",++e.LAST_ID),xr(this,"_onigBinding"),xr(this,"content"),xr(this,"utf16Length"),xr(this,"utf8Length"),xr(this,"utf16OffsetToUtf8"),xr(this,"utf8OffsetToUtf16"),xr(this,"ptr"),!zr)throw new br("Must invoke loadWasm first.");this._onigBinding=zr,this.content=n;const t=new jr(n);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=zr.omalloc(1e4)),e._sharedPtrInUse=!0,zr.HEAPU8.set(t.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=t.createString(zr)}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===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};xr(Er,"LAST_ID",0),xr(Er,"_sharedPtr",0),xr(Er,"_sharedPtrInUse",!1);let vr,Ar=Er;class Sr{constructor(e){if(xr(this,"_onigBinding"),xr(this,"_ptr"),!zr)throw new br("Must invoke loadWasm first.");const n=[],t=[];for(let o=0,a=e.length;o<a;o++){const i=new jr(e[o]);n[o]=i.createString(zr),t[o]=i.utf8Length}const i=zr.omalloc(4*e.length);zr.HEAPU32.set(n,i/4);const s=zr.omalloc(4*e.length);zr.HEAPU32.set(t,s/4);const r=zr.createOnigScanner(i,s,e.length);for(let o=0,a=e.length;o<a;o++)zr.ofree(n[o]);zr.ofree(s),zr.ofree(i),0===r&&function(e){throw new br(e.UTF8ToString(e.getLastOnigError()))}(zr),this._onigBinding=zr,this._ptr=r}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,t){let i=0;if("number"==typeof t&&(i=t),"string"==typeof e){e=new Ar(e);const t=this._findNextMatchSync(e,n,!1,i);return e.dispose(),t}return this._findNextMatchSync(e,n,!1,i)}_findNextMatchSync(e,n,t,i){const s=this._onigBinding,r=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i);if(0===r)return null;const o=s.HEAPU32;let a=r/4;const c=o[a++],l=o[a++],u=[];for(let h=0;h<l;h++){const n=e.convertUtf8OffsetToUtf16(o[a++]),t=e.convertUtf8OffsetToUtf16(o[a++]);u[h]={start:n,end:t,length:t-n}}return{index:c,captureIndices:u}}}function Cr(e){return n=>WebAssembly.instantiate(e,n)}const Lr=dr({langs:mr,themes:yr,engine:()=>async function(e){return e&&await function(e){return vr||(vr=async function(){zr=await async function(){let n,t;const i={};function s(e){t=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}function r(e){try{return n.grow(e-t.byteLength+65535>>>16),s(n.buffer),1}catch{}}const o="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,n){return e?function(e,n,t=1024){const i=n+t;let s=n;for(;e[s]&&!(s>=i);)++s;if(s-n>16&&e.buffer&&o)return o.decode(e.subarray(n,s));let r="";for(;n<s;){let t=e[n++];if(!(128&t)){r+=String.fromCharCode(t);continue}const i=63&e[n++];if(192==(224&t)){r+=String.fromCharCode((31&t)<<6|i);continue}const s=63&e[n++];if(t=224==(240&t)?(15&t)<<12|i<<6|s:(7&t)<<18|i<<12|s<<6|63&e[n++],t<65536)r+=String.fromCharCode(t);else{const e=t-65536;r+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return r}(i.HEAPU8,e,n):""}const c={emscripten_get_now:wr,emscripten_memcpy_big:function(e,n,t){i.HEAPU8.copyWithin(e,n,n+t)},emscripten_resize_heap:function(e){const n=i.HEAPU8.length,t=2147483648;if((e>>>=0)>t)return!1;for(let i=1;i<=4;i*=2){let s=n*(1+.2/i);if(s=Math.min(s,e+100663296),r(Math.min(t,_r(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};return await async function(){const t={env:c,wasi_snapshot_preview1:c},r=await(async n=>{let t=e;return t=await t,"function"==typeof t&&(t=await t(n)),"function"==typeof t&&(t=await t(n)),function(e){return"function"==typeof e.instantiator}(t)?t=await t.instantiator(n):function(e){return"function"==typeof e.default}(t)?t=await t.default(n):(function(e){return void 0!==e.data}(t)&&(t=t.data),function(e){return"undefined"!=typeof Response&&e instanceof Response}(t)?t="function"==typeof WebAssembly.instantiateStreaming?await function(e){return n=>WebAssembly.instantiateStreaming(e,n)}(t)(n):await function(e){return async n=>{const t=await e.arrayBuffer();return WebAssembly.instantiate(t,n)}}(t)(n):function(e){return"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array}(t)||t instanceof WebAssembly.Module?t=await Cr(t)(n):"default"in t&&t.default instanceof WebAssembly.Module&&(t=await Cr(t.default)(n))),"instance"in t&&(t=t.instance),"exports"in t&&(t=t.exports),t})(t);n=r.memory,s(n.buffer),Object.assign(i,r),i.UTF8ToString=a}(),i}()}(),vr)}(e),{createScanner:e=>new Sr(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new Ar(e)}}(e(()=>import("./wasm--yL7jHw-.js"),[]))});function Tr(e){if(1!==[...e].length)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}const qr=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Ir=String.raw;function Pr(e,n){if(null==e)throw new Error(n??"Value expected");return e}const Rr=Ir`\[\^?`,Nr=`c.? | C(?:-.?)?|${Ir`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Ir`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Ir`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Ir`o\{[^\}]*\}?`}|${Ir`\d{1,3}`}`,Or=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Dr=new RegExp(Ir`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CGDGYtiS.js","assets/html-Z-jPWkqI.js","assets/javascript-DFyEbC5y.js","assets/css-l46fsARh.js","assets/angular-ts-5zO4eZho.js","assets/scss-CHxzYwli.js","assets/apl-DnQuo7r7.js","assets/xml-BsgRw6d1.js","assets/java-DtRXFtDl.js","assets/json-LWN7Ml79.js","assets/astro-B5Br1cQb.js","assets/typescript-DI7mmMRd.js","assets/postcss-CeUBPB2S.js","assets/tsx-DYwE5ssU.js","assets/blade-C76tewJX.js","assets/html-derivative-CUTCBBy5.js","assets/sql-BhJCBb_s.js","assets/bsl-DGicdwC0.js","assets/sdbl-BpucmfEo.js","assets/cairo-Dz8fl918.js","assets/python-DlV7vnVD.js","assets/cobol-DQUyVTuR.js","assets/coffee-BDkVV41o.js","assets/cpp-BmKY377x.js","assets/regexp-CpyjTnFF.js","assets/glsl-BDbjGBhJ.js","assets/c-BmJt9k-y.js","assets/crystal-CaN4TS0s.js","assets/shellscript-B8OHlvmy.js","assets/edge-BEMgb-sr.js","assets/elixir-BkUQLiPT.js","assets/elm-DmpuOW2E.js","assets/erb-paWl6F80.js","assets/ruby-CyNHEA82.js","assets/haml-DvFFb5cL.js","assets/graphql-DTlHKpVh.js","assets/jsx-g2NrEQII.js","assets/lua-DlAioYQl.js","assets/yaml-c2-Vhxho.js","assets/erlang-DAw79KxH.js","assets/markdown-DY93LJPj.js","assets/fortran-fixed-form-BiRvzwyR.js","assets/fortran-free-form-CakU9R0a.js","assets/fsharp-BmLNaTNL.js","assets/gdresource-pHyHNgx5.js","assets/gdshader-BC7WJXp9.js","assets/gdscript-BpxQpKjR.js","assets/git-commit-Bptnmh-c.js","assets/diff-Beq1YlA8.js","assets/git-rebase-CqNhyBhE.js","assets/glimmer-js-Bxt49MuP.js","assets/glimmer-ts-BsGfVpaS.js","assets/hack-B6RDfhIS.js","assets/handlebars--3HEtxsY.js","assets/http-C5yS503b.js","assets/hurl-DX_i18ky.js","assets/csv-DXKU4rRd.js","assets/hxml-DB3_nACV.js","assets/haxe-D-PmAGDa.js","assets/jinja-Dy9dpTFB.js","assets/jison-rKmQmF2-.js","assets/julia-cok74C3v.js","assets/r-EOoB7omE.js","assets/just-BtNYcbKt.js","assets/perl-BemjezQW.js","assets/latex-DfULfDnZ.js","assets/tex-ByCZWQmN.js","assets/liquid-C2bTOIx_.js","assets/marko-CVUQDN1F.js","assets/less-DKKxO4Pm.js","assets/mdc-D3GsoZ_L.js","assets/nextflow-NhKJRLNF.js","assets/nextflow-groovy-CqvLf608.js","assets/nginx-CllVvPGm.js","assets/nim-BDZhFo_A.js","assets/php-CGgrkEf9.js","assets/pug-zcj1uJy9.js","assets/qml-DTv-54bL.js","assets/razor-8J3P2wQs.js","assets/csharp-VAkxddOj.js","assets/rst-yWrgJnVd.js","assets/cmake-BYiqpiH1.js","assets/sas-BBCK0tAG.js","assets/shaderlab-DNyPh2Q6.js","assets/hlsl-B-PjNM4a.js","assets/shellsession-OATBsyRD.js","assets/soy-Dz-Bkr4l.js","assets/sparql-CLNNOQQI.js","assets/turtle-BVy4HXn4.js","assets/stata-G4GYNNPE.js","assets/surrealql-C_6seBBi.js","assets/svelte-BuOg6tJl.js","assets/templ-B_lDaXqj.js","assets/go-Ci1olR0S.js","assets/ts-tags-DAT_GLYZ.js","assets/twig-4agwRVFz.js","assets/vue-D3w_7BFv.js","assets/vue-html-a8uCr53v.js","assets/vue-vine-2Gx6KHOr.js","assets/stylus-BeJftkpb.js","assets/xsl-DCNnPbrB.js"])))=>i.map(i=>d[i]);
2
+ import{_ as e,k as n,r as t,j as i,b as s,d as r,h as o}from"./index-Dx_1eu1W.js";import{FileCodeEditor as a}from"./file-editor-FileCodeEditor-Cc7o0SoW.js";import{markdownLanguage as c,markdown as l}from"./file-editor-index-Bg9-IMrE.js";import{S as u,E as h,f as g,s as d,V as p,a as m,F as f,e as y,W as b,aw as w,k as _,ax as k,X as x,P as z,ay as j,T as E}from"./file-editor-index-C6CU7Fik.js";import{be as v,bf as A,bg as S,bh as C,bi as L,bj as T,bk as q,bl as I,bm as P,bn as R,bo as N,bp as O,bd as D,bq as $,br as M,bs as V,bt as F,bu as B,aX as G,aY as U,aW as W,aZ as K,bv as H,bw as Y,bx as X,by as Z,bz as J,bA as Q,bB as ee,bC as ne,bD as te,bE as ie,bF as se,bG as re,bH as oe,aR as ae,bc as ce,bI as le,bJ as ue,bK as he,bL as ge,bM as de,bN as pe,bO as me,bP as fe,bQ as ye,bR as be,bS as we,bT as _e,bU as ke,bV as xe,bW as ze,bX as je,bY as Ee,bZ as ve,b_ as Ae,b$ as Se,c0 as Ce,c1 as Le,c2 as Te,c3 as qe,c4 as Ie,c5 as Pe,c6 as Re,c7 as Ne,c8 as Oe,c9 as De,ca as $e,cb as Me,cc as Ve,cd as Fe,ce as Be,cf as Ge,cg as Ue,ch as We,ci as Ke,cj as He,ck as Ye,cl as Xe,cm as Ze,cn as Je,co as Qe,cp as en,cq as nn,cr as tn,cs as sn,ct as rn,cu as on,cv as an,cw as cn,cx as ln,i as un,o as hn,j as gn,s as dn,e as pn,cy as mn,cz as fn,cA as yn,cB as bn,cC as wn,cD as _n,bb as kn}from"./RemoteLifeOSBlock-BjYrjRa2.js";import{w as xn,s as zn,f as jn,a as En,b as vn,h as An,c as Sn}from"./index-1M7_HtDu.js";import{a as Cn,z as Ln}from"./index-BTavN9lk.js";import{f as Tn,g as qn,h as In,b as Pn}from"./file-editor-index-D5fLCdey.js";import Rn from"./katex-uyR15voz.js";import{x as Nn}from"./marked.esm-BBjA1da9.js";import{$ as On,_ as Dn,X as $n,as as Mn,at as Vn,U as Fn,am as Bn,v as Gn,ai as Un,Y as Wn,V as Kn,ao as Hn}from"./App-C21-MM7L.js";import"./file-editor-index-ByGYwqNf.js";import"./file-editor-index-BOi4gj-u.js";import"./file-editor-index-wav2nO7A.js";import"./file-editor-index-DBUZobR-.js";function Yn(e,n,t,i){const s=i[i.length-1],r=e=>[...e].reduce((e,n)=>e+("\t"===n?4-e%4:1),0),o=r(t);for(let a=e.length-1;a>=0;a--){const t=e[a];if(!t.trim())continue;if(!t.startsWith(n))break;const i=t.slice(n.length),c=/^([ \t]*)([-*+]|\d+[.)])(?:[ \t]+|$)/.exec(i);if(!c){if(r(/^[ \t]*/.exec(i)[0])>o)continue;break}const l=r(c[1]);if(!(l>o)){if(l<o||!/^\d+/.test(c[2])||c[2][c[2].length-1]!==s)break;return`${Number.parseInt(c[2],10)+1}${s}`}}return`1${s}`}function Xn(e,n){const t=v(e,n);return t.done?"done":t.cancelled?"cancelled":"IN_PROGRESS"===t.type?"in-progress":">"===t.marker?"deferred":"!"===t.marker?"important":"?"===t.marker?"question":"@"===t.marker?"commissioned":" "===t.marker||t.known?"todo":"custom"}const Zn=/<table\b/i;function Jn(e){return e.replace(/\|/g,"\\|")}function Qn(e){return e.replace(/[\s\n\r]+/g," ").trim()}function et(e){const n=[];for(const t of e.querySelectorAll("td, th")){const e=Number.parseInt(t.getAttribute("colspan")||"1",10)||1,i=Jn(Qn(t.textContent??""));n.push(i);for(let t=1;t<e;t++)n.push("")}return n}function nt(e,n){const t=Math.max(0,Math.min(n,e.length));return e.lineAt(t).text}function tt(e,n,t){if(!e.docChanged)return!1;if(!function(e){if(e.startState.selection.map(e.changes).eq(e.state.selection))return!0;if(e.startState.selection.ranges.length!==e.state.selection.ranges.length)return!1;const n=[];return e.changes.iterChangedRanges((e,t,i,s)=>{n.push({fromA:e,toA:t,fromB:i,toB:s})}),e.startState.selection.ranges.every((t,i)=>{const s=e.state.selection.ranges[i];return n.some(({fromA:e,toA:n,fromB:i,toB:r})=>t.from>=e&&t.to<=n&&s.from>=i&&s.to<=r)})}(e))return!1;let i=!0;return e.changes.iterChangedRanges((s,r,o,a)=>{i&&(n.between(s,r,(e,n)=>{(s===r?e<=s&&n>=s:e<r&&n>s||e===n&&e>=s&&e<r)&&(i=!1)}),i&&[...new Set([nt(e.startState.doc,s),nt(e.startState.doc,r)]),...new Set([nt(e.state.doc,o),nt(e.state.doc,a)])].some(t)&&(i=!1))}),i}const it=g.mark({class:"cm-lp-comment"});function st(e){const n=A(e.doc.toString());return 0===n.length?g.none:g.set(n.map(e=>it.range(e.start,e.end)),!0)}const rt=u.define({create:st,update:(e,n)=>n.docChanged?tt(n,e,e=>e.includes("%%"))?e.map(n.changes):st(n.state):e,provide:e=>h.decorations.from(e)});function ot(e,n){let t=d(e).resolveInner(n,1);for(;t;){if("InlineCode"===t.name||"FencedCode"===t.name||"CodeBlock"===t.name)return!0;t=t.parent}for(t=d(e).resolveInner(n,-1);t;){if("CodeBlock"===t.name)return!0;t=t.parent}return!1}function at(e,n,t){return e.selection.ranges.some(e=>e.empty?!(e.from===t&&e.assoc>0)&&!(e.from===n&&e.assoc<0)&&e.from>=n&&e.from<=t:e.from<=t&&e.to>=n)}function ct(e,n){const t=e.doc.lineAt(n);return at(e,t.from,t.to)}function lt(e,n){let t=d(e).resolveInner(n,1);for(;t;){if("FencedCode"===t.name||"CodeBlock"===t.name)return!0;t=t.parent}return!1}function ut(e){if("---"!==e.doc.line(1).text.trim())return 0;for(let n=2;n<=e.doc.lines;n+=1)if(/^(?:---|\.\.\.)\s*$/.test(e.doc.line(n).text))return n;return e.doc.lines}function ht(e,n){return n<e.doc.lineAt(n).to&&" "===e.doc.sliceString(n,n+1)?n+1:n}function gt(e,n){const t=[];for(let i=e.node.firstChild;i;i=i.nextSibling)i.name===n&&t.push({from:i.from,to:i.to});return t}function dt(e){const n=e.pos,t=e.state.selection.main;if(!t.empty||t.head!==n)return null;const i=e.state.doc.lineAt(n).from,s=e.state.sliceDoc(i,n),r=S(s);return r?{from:i+r.start,to:n,query:r.query}:null}let pt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function mt(e){return Array.isArray(e)?function(e){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=mt(e[t]);return n}(e):e instanceof RegExp?e:"object"==typeof e?function(e){let n={};for(let t in e)n[t]=mt(e[t]);return n}(e):e}function ft(e,...n){return n.forEach(n=>{for(let t in n)e[t]=n[t]}),e}function yt(e){const n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===n?e:~n===e.length-1?yt(e.substring(0,e.length-1)):e.substr(1+~n)}var bt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,wt=class{static hasCaptures(e){return null!==e&&(bt.lastIndex=0,bt.test(e))}static replaceCaptures(e,n,t){return e.replace(bt,(e,i,s,r)=>{let o=t[parseInt(i||s,10)];if(!o)return e;{let e=n.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function _t(e,n){return e<n?-1:e>n?1:0}function kt(e,n){if(null===e&&null===n)return 0;if(!e)return-1;if(!n)return 1;let t=e.length,i=n.length;if(t===i){for(let i=0;i<t;i++){let t=_t(e[i],n[i]);if(0!==t)return t}return 0}return t-i}function xt(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function zt(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var jt=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const n=this.fn(e);return this.cache.set(e,n),n}},Et=class{constructor(e,n,t){this._colorMap=e,this._defaults=n,this._root=t}static createFromRawTheme(e,n){return this.createFromParsedTheme(function(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let n=e.settings,t=[],i=0;for(let s=0,r=n.length;s<r;s++){let e,r=n[s];if(!r.settings)continue;if("string"==typeof r.scope){let n=r.scope;n=n.replace(/^[,]+/,""),n=n.replace(/[,]+$/,""),e=n.split(",")}else e=Array.isArray(r.scope)?r.scope:[""];let o=-1;if("string"==typeof r.settings.fontStyle){o=0;let e=r.settings.fontStyle.split(" ");for(let n=0,t=e.length;n<t;n++)switch(e[n]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let a=null;"string"==typeof r.settings.foreground&&xt(r.settings.foreground)&&(a=r.settings.foreground);let c=null;"string"==typeof r.settings.background&&xt(r.settings.background)&&(c=r.settings.background);for(let n=0,l=e.length;n<l;n++){let r=e[n].trim().split(" "),l=r[r.length-1],u=null;r.length>1&&(u=r.slice(0,r.length-1),u.reverse()),t[i++]=new Ct(l,u,s,o,a,c)}}return t}(e),n)}static createFromParsedTheme(e,n){return function(e,n){e.sort((e,n)=>{let t=_t(e.scope,n.scope);return 0!==t?t:(t=kt(e.parentScopes,n.parentScopes),0!==t?t:e.index-n.index)});let t=0,i="#000000",s="#ffffff";for(;e.length>=1&&""===e[0].scope;){let n=e.shift();-1!==n.fontStyle&&(t=n.fontStyle),null!==n.foreground&&(i=n.foreground),null!==n.background&&(s=n.background)}let r=new Tt(n),o=new St(t,r.getId(i),r.getId(s)),a=new Pt(new It(0,null,-1,0,0),[]);for(let c=0,l=e.length;c<l;c++){let n=e[c];a.insert(0,n.scope,n.parentScopes,n.fontStyle,r.getId(n.foreground),r.getId(n.background))}return new Et(r,o,a)}(e,n)}_cachedMatchRoot=new jt(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const n=e.scopeName,t=this._cachedMatchRoot.get(n).find(n=>function(e,n){if(0===n.length)return!0;for(let t=0;t<n.length;t++){let i=n[t],s=!1;if(">"===i){if(t===n.length-1)return!1;i=n[++t],s=!0}for(;e&&!At(e.scopeName,i);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}(e.parent,n.parentScopes));return t?new St(t.fontStyle,t.foreground,t.background):null}},vt=class e{constructor(e,n){this.parent=e,this.scopeName=n}static push(n,t){for(const i of t)n=new e(n,i);return n}static from(...n){let t=null;for(let i=0;i<n.length;i++)t=new e(t,n[i]);return t}push(n){return new e(this,n)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let t=this;for(;t&&t!==e;)n.push(t.scopeName),t=t.parent;return t===e?n.reverse():void 0}};function At(e,n){return n===e||e.startsWith(n)&&"."===e[n.length]}var St=class{constructor(e,n,t){this.fontStyle=e,this.foregroundId=n,this.backgroundId=t}},Ct=class{constructor(e,n,t,i,s,r){this.scope=e,this.parentScopes=n,this.index=t,this.fontStyle=i,this.foreground=s,this.background=r}},Lt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Lt||{}),Tt=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,t=e.length;n<t;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}},qt=Object.freeze([]),It=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,t,i,s){this.scopeDepth=e,this.parentScopes=n||qt,this.fontStyle=t,this.foreground=i,this.background=s}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].clone();return n}acceptOverwrite(e,n,t,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==n&&(this.fontStyle=n),0!==t&&(this.foreground=t),0!==i&&(this.background=i)}},Pt=class e{constructor(e,n=[],t={}){this._mainRule=e,this._children=t,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let t=0,i=0;for(;">"===e.parentScopes[t]&&t++,">"===n.parentScopes[i]&&i++,!(t>=e.parentScopes.length||i>=n.parentScopes.length);){const s=n.parentScopes[i].length-e.parentScopes[t].length;if(0!==s)return s;t++,i++}return n.parentScopes.length-e.parentScopes.length}match(n){if(""!==n){let e,t,i=n.indexOf(".");if(-1===i?(e=n,t=""):(e=n.substring(0,i),t=n.substring(i+1)),this._children.hasOwnProperty(e))return this._children[e].match(t)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(e._cmpBySpecificity),t}insert(n,t,i,s,r,o){if(""===t)return void this._doInsertHere(n,i,s,r,o);let a,c,l,u=t.indexOf(".");-1===u?(a=t,c=""):(a=t.substring(0,u),c=t.substring(u+1)),this._children.hasOwnProperty(a)?l=this._children[a]:(l=new e(this._mainRule.clone(),It.cloneArr(this._rulesWithParentScopes)),this._children[a]=l),l.insert(n+1,c,i,s,r,o)}_doInsertHere(e,n,t,i,s){if(null!==n){for(let r=0,o=this._rulesWithParentScopes.length;r<o;r++){let o=this._rulesWithParentScopes[r];if(0===kt(o.parentScopes,n))return void o.acceptOverwrite(e,t,i,s)}-1===t&&(t=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===s&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new It(e,n,t,i,s))}else this._mainRule.acceptOverwrite(e,t,i,s)}},Rt=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(n){const t=e.getLanguageId(n),i=e.getTokenType(n),s=e.getFontStyle(n),r=e.getForeground(n),o=e.getBackground(n);console.log({languageId:t,tokenType:i,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(n,t,i,s,r,o,a){let c=e.getLanguageId(n),l=e.getTokenType(n),u=e.containsBalancedBrackets(n)?1:0,h=e.getFontStyle(n),g=e.getForeground(n),d=e.getBackground(n);return 0!==t&&(c=t),8!==i&&(l=i),null!==s&&(u=s?1:0),-1!==r&&(h=r),0!==o&&(g=o),0!==a&&(d=a),(c|l<<8|u<<10|h<<11|g<<15|d<<24)>>>0}};function Nt(e){return e}function Ot(e,n){const t=[],i=function(e){let n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=n.exec(e);return{next:()=>{if(!t)return null;const i=t[0];return t=n.exec(e),i}}}(e);let s=i.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=i.next()}let n=o();if(t.push({matcher:n,priority:e}),","!==s)break;s=i.next()}return t;function r(){if("-"===s){s=i.next();const e=r();return n=>!!e&&!e(n)}if("("===s){s=i.next();const e=function(){const e=[];let n=o();for(;n&&(e.push(n),"|"===s||","===s);){do{s=i.next()}while("|"===s||","===s);n=o()}return n=>e.some(e=>e(n))}();return")"===s&&(s=i.next()),e}if(Dt(s)){const e=[];do{e.push(s),s=i.next()}while(Dt(s));return t=>n(e,t)}return null}function o(){const e=[];let n=r();for(;n;)e.push(n),n=r();return n=>e.every(e=>e(n))}}function Dt(e){return!!e&&!!e.match(/[\w\.:]+/)}function $t(e){"function"==typeof e.dispose&&e.dispose()}var Mt=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Vt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ft=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const n=e.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(e))}},Bt=class{constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Mt(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const n=new Ft;for(const t of e)Gt(t,this.initialScopeName,this.repo,n);for(const t of n.references)if(t instanceof Mt){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName))continue;if(this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Gt(e,n,t,i){const s=t.lookup(e.scopeName);if(!s){if(e.scopeName===n)throw new Error(`No grammar provided for <${n}>`);return}const r=t.lookup(n);e instanceof Mt?Wt({baseGrammar:r,selfGrammar:s},i):Ut(e.ruleName,{baseGrammar:r,selfGrammar:s,repository:s.repository},i);const o=t.injections(e.scopeName);if(o)for(const a of o)i.add(new Mt(a))}function Ut(e,n,t){n.repository&&n.repository[e]&&Kt([n.repository[e]],n,t)}function Wt(e,n){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Kt(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},n),e.selfGrammar.injections&&Kt(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},n)}function Kt(e,n,t){for(const i of e){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const e=i.repository?ft({},n.repository,i.repository):n.repository;Array.isArray(i.patterns)&&Kt(i.patterns,{...n,repository:e},t);const s=i.include;if(!s)continue;const r=Qt(s);switch(r.kind){case 0:Wt({...n,selfGrammar:n.baseGrammar},t);break;case 1:Wt(n,t);break;case 2:Ut(r.ruleName,{...n,repository:e},t);break;case 3:case 4:const i=r.scopeName===n.selfGrammar.scopeName?n.selfGrammar:r.scopeName===n.baseGrammar.scopeName?n.baseGrammar:void 0;if(i){const s={baseGrammar:n.baseGrammar,selfGrammar:i,repository:e};4===r.kind?Ut(r.ruleName,s,t):Wt(s,t)}else 4===r.kind?t.add(new Vt(r.scopeName,r.ruleName)):t.add(new Mt(r.scopeName))}}}var Ht=class{kind=0},Yt=class{kind=1},Xt=class{constructor(e){this.ruleName=e}kind=2},Zt=class{constructor(e){this.scopeName=e}kind=3},Jt=class{constructor(e,n){this.scopeName=e,this.ruleName=n}kind=4};function Qt(e){if("$base"===e)return new Ht;if("$self"===e)return new Yt;const n=e.indexOf("#");if(-1===n)return new Zt(e);if(0===n)return new Xt(e.substring(1));{const t=e.substring(0,n),i=e.substring(n+1);return new Jt(t,i)}}var ei=/\\(\d+)/,ni=/\\(\d+)/g,ti=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,t,i){this.$location=e,this.id=n,this._name=t||null,this._nameIsCapturing=wt.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=wt.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${yt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==n?wt.replaceCaptures(this._name,e,n):this._name}getContentName(e,n){return this._contentNameIsCapturing&&null!==this._contentName?wt.replaceCaptures(this._contentName,e,n):this._contentName}},ii=class extends ti{retokenizeCapturedWithRuleId;constructor(e,n,t,i,s){super(e,n,t,i),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,t,i){throw new Error("Not supported!")}},si=class extends ti{_match;captures;_cachedCompiledPatterns;constructor(e,n,t,i,s){super(e,n,t,null),this._match=new li(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e).compileAG(e,t,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ui,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ri=class extends ti{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,i,s){super(e,n,t,i),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const t of this.patterns)e.getRule(t).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e).compileAG(e,t,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ui,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},oi=class extends ti{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,t,i,s,r,o,a,c,l){super(e,n,t,i),this._begin=new li(s,this.id),this.beginCaptures=r,this._end=new li(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,t,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ui;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},ai=class extends ti{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,t,i,s,r,o,a,c){super(e,n,t,i),this._begin=new li(s,this.id),this.beginCaptures=r,this.whileCaptures=a,this._while=new li(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,t,i){return this._getCachedCompiledPatterns(e).compileAG(e,t,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ui;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,t,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,t,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ui,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},ci=class e{static createCaptureRule(e,n,t,i,s){return e.registerRule(e=>new ii(n,e,t,i,s))}static getCompiledRuleId(n,t,i){return n.id||t.registerRule(s=>{if(n.id=s,n.match)return new si(n.$vscodeTextmateLocation,n.id,n.name,n.match,e._compileCaptures(n.captures,t,i));if(void 0===n.begin){n.repository&&(i=ft({},i,n.repository));let s=n.patterns;return void 0===s&&n.include&&(s=[{include:n.include}]),new ri(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,e._compilePatterns(s,t,i))}return n.while?new ai(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,i),n.while,e._compileCaptures(n.whileCaptures||n.captures,t,i),e._compilePatterns(n.patterns,t,i)):new oi(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,e._compileCaptures(n.beginCaptures||n.captures,t,i),n.end,e._compileCaptures(n.endCaptures||n.captures,t,i),n.applyEndPatternLast,e._compilePatterns(n.patterns,t,i))}),n.id}static _compileCaptures(n,t,i){let s=[];if(n){let r=0;for(const e in n){if("$vscodeTextmateLocation"===e)continue;const n=parseInt(e,10);n>r&&(r=n)}for(let e=0;e<=r;e++)s[e]=null;for(const o in n){if("$vscodeTextmateLocation"===o)continue;const r=parseInt(o,10);let a=0;n[o].patterns&&(a=e.getCompiledRuleId(n[o],t,i)),s[r]=e.createCaptureRule(t,n[o].$vscodeTextmateLocation,n[o].name,n[o].contentName,a)}}return s}static _compilePatterns(n,t,i){let s=[];if(n)for(let r=0,o=n.length;r<o;r++){const o=n[r];let a=-1;if(o.include){const n=Qt(o.include);switch(n.kind){case 0:case 1:a=e.getCompiledRuleId(i[o.include],t,i);break;case 2:let s=i[n.ruleName];s&&(a=e.getCompiledRuleId(s,t,i));break;case 3:case 4:const r=n.scopeName,c=4===n.kind?n.ruleName:null,l=t.getExternalGrammar(r,i);if(l)if(c){let n=l.repository[c];n&&(a=e.getCompiledRuleId(n,t,l.repository))}else a=e.getCompiledRuleId(l.repository.$self,t,l.repository)}}else a=e.getCompiledRuleId(o,t,i);if(-1!==a){const e=t.getRule(a);let n=!1;if((e instanceof ri||e instanceof oi||e instanceof ai)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;s.push(a)}}return{patterns:s,hasMissingPatterns:(n?n.length:0)!==s.length}}},li=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&"string"==typeof e){const n=e.length;let t=0,i=[],s=!1;for(let r=0;r<n;r++)if("\\"===e.charAt(r)&&r+1<n){const n=e.charAt(r+1);"z"===n?(i.push(e.substring(t,r)),i.push("$(?!\\n)(?<!\\n)"),t=r+2):"A"!==n&&"G"!==n||(s=!0),r++}this.hasAnchor=s,0===t?this.source=e:(i.push(e.substring(t,n)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,"string"==typeof this.source?this.hasBackReferences=ei.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let t=n.map(n=>e.substring(n.start,n.end));return ni.lastIndex=0,this.source.replace(ni,(e,n)=>zt(t[parseInt(n,10)]||""))}_buildAnchorCache(){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let e,n,t,i,s=[],r=[],o=[],a=[];for(e=0,n=this.source.length;e<n;e++)t=this.source.charAt(e),s[e]=t,r[e]=t,o[e]=t,a[e]=t,"\\"===t&&e+1<n&&(i=this.source.charAt(e+1),"A"===i?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",a[e+1]="A"):"G"===i?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",a[e+1]="G"):(s[e+1]=i,r[e+1]=i,o[e+1]=i,a[e+1]=i),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(e,n){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},ui=class{_items;_hasAnchors;_cached;_anchorCache;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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){this._items[e].source!==n&&(this._disposeCaches(),this._items[e].setSource(n))}compile(e){if(!this._cached){let n=this._items.map(e=>e.source);this._cached=new hi(e,n,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,n,t){return this._hasAnchors?n?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,n,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,n,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,n,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,n,t)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,n,t){let i=this._items.map(e=>e.resolveAnchors(n,t));return new hi(e,i,this._items.map(e=>e.ruleId))}},hi=class{constructor(e,n,t){this.regExps=n,this.rules=t,this.scanner=e.createOnigScanner(n)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let n=0,t=this.rules.length;n<t;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join("\n")}findNextMatchSync(e,n,t){const i=this.scanner.findNextMatchSync(e,n,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},gi=class{constructor(e,n){this.languageId=e,this.tokenType=n}},di=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new gi(e,8),this._embeddedLanguagesMatcher=new pi(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(n){return null===n?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(n)}static _NULL_SCOPE_METADATA=new gi(0,0);_getBasicScopeAttributes=new jt(e=>{const n=this._scopeToLanguage(e),t=this._toStandardTokenType(e);return new gi(n,t)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(n){const t=n.match(e.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!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},pi=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const n=e.map(([e,n])=>zt(e));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const n=e.match(this.scopesRegExp);return n?this.values.get(n[1]):void 0}},mi=class{constructor(e,n){this.stack=e,this.stoppedEarly=n}};function fi(e,n,t,i,s,r,o,a){const c=n.content.length;let l=!1,u=-1;if(o){const o=function(e,n,t,i,s,r){let o=s.beginRuleCapturedEOL?0:-1;const a=[];for(let c=s;c;c=c.pop()){const n=c.getRule(e);n instanceof ai&&a.push({rule:n,stack:c})}for(let c=a.pop();c;c=a.pop()){const{ruleScanner:a,findOptions:l}=bi(c.rule,e,c.stack.endRule,t,i===o),u=a.findNextMatchSync(n,i,l);if(!u){s=c.stack.pop();break}if(-2!==u.ruleId){s=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(r.produce(c.stack,u.captureIndices[0].start),wi(e,n,t,c.stack,r,c.rule.whileCaptures,u.captureIndices),r.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>i&&(i=u.captureIndices[0].end,t=!1))}return{stack:s,linePos:i,anchorPosition:o,isFirstLine:t}}(e,n,t,i,s,r);s=o.stack,i=o.linePos,t=o.isFirstLine,u=o.anchorPosition}const h=Date.now();for(;!l;){if(0!==a&&Date.now()-h>a)return new mi(s,!0);g()}return new mi(s,!1);function g(){const o=function(e,n,t,i,s,r){const o=function(e,n,t,i,s,r){const o=s.getRule(e),{ruleScanner:a,findOptions:c}=yi(o,e,s.endRule,t,i===r),l=a.findNextMatchSync(n,i,c);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,n,t,i,s,r),a=e.getInjections();if(0===a.length)return o;const c=function(e,n,t,i,s,r,o){let a,c=Number.MAX_VALUE,l=null,u=0;const h=r.contentNameScopesList.getScopeNames();for(let g=0,d=e.length;g<d;g++){const r=e[g];if(!r.matcher(h))continue;const d=n.getRule(r.ruleId),{ruleScanner:p,findOptions:m}=yi(d,n,null,i,s===o),f=p.findNextMatchSync(t,s,m);if(!f)continue;const y=f.captureIndices[0].start;if(!(y>=c)&&(c=y,l=f.captureIndices,a=f.ruleId,u=r.priority,c===s))break}return l?{priorityMatch:-1===u,captureIndices:l,matchedRuleId:a}:null}(a,e,n,t,i,s,r);if(!c)return o;if(!o)return c;const l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}(e,n,t,i,s,u);if(!o)return r.produce(s,c),void(l=!0);const a=o.captureIndices,h=o.matchedRuleId,g=!!(a&&a.length>0)&&a[0].end>i;if(-1===h){const o=s.getRule(e);r.produce(s,a[0].start),s=s.withContentNameScopesList(s.nameScopesList),wi(e,n,t,s,r,o.endCaptures,a),r.produce(s,a[0].end);const h=s;if(s=s.parent,u=h.getAnchorPos(),!g&&h.getEnterPos()===i)return s=h,r.produce(s,c),void(l=!0)}else{const o=e.getRule(h);r.produce(s,a[0].start);const d=s,p=o.getName(n.content,a),m=s.contentNameScopesList.pushAttributed(p,e);if(s=s.push(h,i,u,a[0].end===c,null,m,m),o instanceof oi){const i=o;wi(e,n,t,s,r,i.beginCaptures,a),r.produce(s,a[0].end),u=a[0].end;const h=i.getContentName(n.content,a),p=m.pushAttributed(h,e);if(s=s.withContentNameScopesList(p),i.endHasBackReferences&&(s=s.withEndRule(i.getEndWithResolvedBackReferences(n.content,a))),!g&&d.hasSameRuleAs(s))return s=s.pop(),r.produce(s,c),void(l=!0)}else if(o instanceof ai){const i=o;wi(e,n,t,s,r,i.beginCaptures,a),r.produce(s,a[0].end),u=a[0].end;const h=i.getContentName(n.content,a),p=m.pushAttributed(h,e);if(s=s.withContentNameScopesList(p),i.whileHasBackReferences&&(s=s.withEndRule(i.getWhileWithResolvedBackReferences(n.content,a))),!g&&d.hasSameRuleAs(s))return s=s.pop(),r.produce(s,c),void(l=!0)}else if(wi(e,n,t,s,r,o.captures,a),r.produce(s,a[0].end),s=s.pop(),!g)return s=s.safePop(),r.produce(s,c),void(l=!0)}a[0].end>i&&(i=a[0].end,t=!1)}}function yi(e,n,t,i,s){return{ruleScanner:e.compileAG(n,t,i,s),findOptions:0}}function bi(e,n,t,i,s){return{ruleScanner:e.compileWhileAG(n,t,i,s),findOptions:0}}function wi(e,n,t,i,s,r,o){if(0===r.length)return;const a=n.content,c=Math.min(r.length,o.length),l=[],u=o[0].end;for(let h=0;h<c;h++){const n=r[h];if(null===n)continue;const c=o[h];if(0===c.length)continue;if(c.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=c.start;)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?s.produceFromScopes(l[l.length-1].scopes,c.start):s.produce(i,c.start),n.retokenizeCapturedWithRuleId){const r=n.getName(a,o),l=i.contentNameScopesList.pushAttributed(r,e),u=n.getContentName(a,o),h=l.pushAttributed(u,e),g=i.push(n.retokenizeCapturedWithRuleId,c.start,-1,!1,null,l,h),d=e.createOnigString(a.substring(0,c.end));fi(e,d,t&&0===c.start,c.start,g,s,!1,0),$t(d);continue}const g=n.getName(a,o);if(null!==g){const n=(l.length>0?l[l.length-1].scopes:i.contentNameScopesList).pushAttributed(g,e);l.push(new _i(n,c.end))}}for(;l.length>0;)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var _i=class{scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}};function ki(e,n,t,i,s){const r=Ot(n,xi),o=ci.getCompiledRuleId(t,i,s.repository);for(const a of r)e.push({debugSelector:n,matcher:a.matcher,ruleId:o,grammar:s,priority:a.priority})}function xi(e,n){if(n.length<e.length)return!1;let t=0;return e.every(e=>{for(let i=t;i<n.length;i++)if(zi(n[i],e))return t=i+1,!0;return!1})}function zi(e,n){if(!e)return!1;if(e===n)return!0;const t=n.length;return e.length>t&&e.substr(0,t)===n&&"."===e[t]}var ji=class{constructor(e,n,t,i,s,r,o,a){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=a,this._basicScopeAttributesProvider=new di(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Ei(n,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const c of Object.keys(s)){const e=Ot(c,xi);for(const n of e)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],n=this._rootScopeName,t=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(n);if(t){const i=t.injections;if(i)for(let n in i)ki(e,n,i[n],this,t);const s=this._grammarRepository.injections(n);s&&s.forEach(n=>{const t=this.getExternalGrammar(n);if(t){const n=t.injectionSelector;n&&ki(e,n,t,this,t)}})}return e.sort((e,n)=>e.priority-n.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const n=++this._lastRuleId,t=e(n);return this._ruleId2desc[n]=t,t}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,n){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const t=this._grammarRepository.lookup(e);if(t)return this._includedGrammars[e]=Ei(t,n&&n.$base),this._includedGrammars[e]}}tokenizeLine(e,n,t=0){const i=this._tokenize(e,n,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,n,t=0){const i=this._tokenize(e,n,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,n,t,i){let s;if(-1===this._rootId&&(this._rootId=ci.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),n&&n!==Ai.NULL)s=!1,n.reset();else{s=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),t=this.themeProvider.getDefaults(),i=Rt.set(0,e.languageId,e.tokenType,null,t.fontStyle,t.foregroundId,t.backgroundId),r=this.getRule(this._rootId).getName(null,null);let o;o=r?vi.createRootAndLookUpScopeName(r,i,this):vi.createRoot("unknown",i),n=new Ai(null,this._rootId,-1,-1,!1,null,o,o)}e+="\n";const r=this.createOnigString(e),o=r.content.length,a=new Ci(t,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=fi(this,r,s,0,n,a,!0,i);return $t(r),{lineLength:o,lineTokens:a,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Ei(e,n){return(e=function(e){return mt(e)}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=n||e.repository.$self,e}var vi=class e{constructor(e,n,t){this.parent=e,this.scopePath=n,this.tokenAttributes=t}static fromExtension(n,t){let i=n,s=n?.scopePath??null;for(const r of t)s=vt.push(s,r.scopeNames),i=new e(i,s,r.encodedTokenAttributes);return i}static createRoot(n,t){return new e(null,new vt(null,n),t)}static createRootAndLookUpScopeName(n,t,i){const s=i.getMetadataForScope(n),r=new vt(null,n),o=i.themeProvider.themeMatch(r),a=e.mergeAttributes(t,s,o);return new e(null,r,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(n){return e.equals(this,n)}static equals(e,n){for(;;){if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}}static mergeAttributes(e,n,t){let i=-1,s=0,r=0;return null!==t&&(i=t.fontStyle,s=t.foregroundId,r=t.backgroundId),Rt.set(e,n.languageId,n.tokenType,null,i,s,r)}pushAttributed(n,t){if(null===n)return this;if(-1===n.indexOf(" "))return e._pushAttributed(this,n,t);const i=n.split(/ /g);let s=this;for(const r of i)s=e._pushAttributed(s,r,t);return s}static _pushAttributed(n,t,i){const s=i.getMetadataForScope(t),r=n.scopePath.push(t),o=i.themeProvider.themeMatch(r),a=e.mergeAttributes(n.tokenAttributes,s,o);return new e(n,r,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let t=this;for(;t&&t!==e;)n.push({encodedTokenAttributes:t.tokenAttributes,scopeNames:t.scopePath.getExtensionIfDefined(t.parent?.scopePath??null)}),t=t.parent;return t===e?n.reverse():void 0}},Ai=class e{constructor(e,n,t,i,s,r,o,a){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=t,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(n){return null!==n&&e._equals(this,n)}static _equals(e,n){return e===n||!!this._structuralEquals(e,n)&&vi.equals(e.contentNameScopesList,n.contentNameScopesList)}static _structuralEquals(e,n){for(;;){if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(n,t,i,s,r,o,a){return new e(this,n,t,i,s,r,o,a)}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,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(n){return this.endRule===n?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,n,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(n,t){const i=vi.fromExtension(n?.nameScopesList??null,t.nameScopesList);return new e(n,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,vi.fromExtension(i,t.contentNameScopesList))}},Si=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):Ot(e,xi).map(e=>e.matcher)),this.unbalancedBracketScopes=n.flatMap(e=>Ot(e,xi).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const n of this.unbalancedBracketScopes)if(n(e))return!1;for(const n of this.balancedBracketScopes)if(n(e))return!0;return this.allowAny}},Ci=class{constructor(e,n,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,n){this.produceFromScopes(e.contentNameScopesList,n)}produceFromScopes(e,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let t=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const n=e?.getScopeNames()??[];for(const e of this._tokenTypeOverrides)e.matcher(n)&&(t=Rt.set(t,0,Nt(e.type),null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(n))}return i&&(t=Rt.set(t,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===t||(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(t)),void(this._lastTokenEndIndex=n)}const t=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:t}),this._lastTokenEndIndex=n}getResult(e,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)t[i]=this._binaryTokens[i];return t}},Li=class{constructor(e,n){this._onigLib=n,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,n){this._rawGrammars.set(e.scopeName,e),n&&this._injectionGrammars.set(e.scopeName,n)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,n,t,i,s){if(!this._grammars.has(e)){let r=this._rawGrammars.get(e);if(!r)return null;this._grammars.set(e,function(e,n,t,i,s,r,o,a){return new ji(e,n,t,i,s,r,o,a)}(e,r,n,t,i,s,this,this._onigLib))}return this._grammars.get(e)}},Ti=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Li(Et.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(Et.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,t){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:t})}loadGrammarWithConfiguration(e,n,t){return this._loadGrammar(e,n,t.embeddedLanguages,t.tokenTypes,new Si(t.balancedBracketSelectors||[],t.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,t,i,s){const r=new Bt(this._syncRegistry,e);for(;r.Q.length>0;)r.Q.map(e=>this._loadSingleGrammar(e.scopeName)),r.processQueue();return this._grammarForScopeName(e,n,t,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const t="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,t)}}addGrammar(e,n=[],t=0,i=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,t,i)}_grammarForScopeName(e,n=0,t=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,t,i,s)}},qi=Ai.NULL;const Ii=/["&'<>`]/g,Pi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ri=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ni=/[|\\{}()[\]^$+*?.]/g,Oi=new WeakMap,Di=/[\dA-Fa-f]/,$i=/\d/,Mi=["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"],Vi={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:"€"},Fi=["cent","copy","divide","gt","lt","not","para","times"],Bi={}.hasOwnProperty,Gi={};let Ui;for(Ui in Vi)Bi.call(Vi,Ui)&&(Gi[Vi[Ui]]=Ui);const Wi=/[^\dA-Za-z]/;function Ki(e,n,t){let i,s=function(e,n,t){const i="&#x"+e.toString(16).toUpperCase();return t&&n&&!Di.test(String.fromCharCode(n))?i:i+";"}(e,n,t.omitOptionalSemicolons);if((t.useNamedReferences||t.useShortestReferences)&&(i=function(e,n,t,i){const s=String.fromCharCode(e);if(Bi.call(Gi,s)){const e=Gi[s],r="&"+e;return t&&Mi.includes(e)&&!Fi.includes(e)&&(!i||n&&61!==n&&Wi.test(String.fromCharCode(n)))?r:r+";"}return""}(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const i=function(e,n,t){const i="&#"+String(e);return t&&n&&!$i.test(String.fromCharCode(n))?i:i+";"}(e,n,t.omitOptionalSemicolons);i.length<s.length&&(s=i)}return i&&(!t.useShortestReferences||i.length<s.length)?i:s}function Hi(e,n){return function(e,n){return e=e.replace(n.subset?function(e){let n=Oi.get(e);return n||(n=function(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(Ni,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}(e),Oi.set(e,n)),n}(n.subset):Ii,t),n.subset||n.escapeOnly?e:e.replace(Pi,function(e,t,i){return n.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,i.charCodeAt(t+2),n)}).replace(Ri,t);function t(e,t,i){return n.format(e.charCodeAt(0),i.charCodeAt(t+1),n)}}(e,Object.assign({format:Ki},n))}const Yi=/^>|^->|<!--|-->|--!>|<!-$/g,Xi=[">"],Zi=["<",">"],Ji=ns(1),Qi=ns(-1),es=[];function ns(e){return function(n,t,i){const s=n?n.children:es;let r=(t||0)+e,o=s[r];if(!i)for(;o&&xn(o);)r+=e,o=s[r];return o}}const ts={}.hasOwnProperty;function is(e){return function(n,t,i){return ts.call(e,n.tagName)&&e[n.tagName](n,t,i)}}const ss=is({body:function(e,n,t){const i=Ji(t,n);return!i||"comment"!==i.type},caption:rs,colgroup:rs,dd:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,n,t){const i=Ji(t,n);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:rs,html:function(e,n,t){const i=Ji(t,n);return!i||"comment"!==i.type},li:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,n,t){const i=Ji(t,n);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!t||!("element"===t.type&&("a"===t.tagName||"audio"===t.tagName||"del"===t.tagName||"ins"===t.tagName||"map"===t.tagName||"noscript"===t.tagName||"video"===t.tagName))},rp:os,rt:os,tbody:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:as,tfoot:function(e,n,t){return!Ji(t,n)},th:as,thead:function(e,n,t){const i=Ji(t,n);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&"tr"===i.tagName}});function rs(e,n,t){const i=Ji(t,n,!0);return!i||"comment"!==i.type&&!("text"===i.type&&xn(i.value.charAt(0)))}function os(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function as(e,n,t){const i=Ji(t,n);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}const cs=is({body:function(e){const n=Ji(e,-1,!0);return!(n&&("comment"===n.type||"text"===n.type&&xn(n.value.charAt(0))||"element"===n.type&&("meta"===n.tagName||"link"===n.tagName||"script"===n.tagName||"style"===n.tagName||"template"===n.tagName)))},colgroup:function(e,n,t){const i=Qi(t,n),s=Ji(e,-1,!0);return!(t&&i&&"element"===i.type&&"colgroup"===i.tagName&&ss(i,t.children.indexOf(i),t))&&Boolean(s&&"element"===s.type&&"col"===s.tagName)},head:function(e){const n=new Set;for(const i of e.children)if("element"===i.type&&("base"===i.tagName||"title"===i.tagName)){if(n.has(i.tagName))return!1;n.add(i.tagName)}const t=e.children[0];return!t||"element"===t.type},html:function(e){const n=Ji(e,-1);return!n||"comment"!==n.type},tbody:function(e,n,t){const i=Qi(t,n),s=Ji(e,-1);return(!t||!i||"element"!==i.type||"thead"!==i.tagName&&"tbody"!==i.tagName||!ss(i,t.children.indexOf(i),t))&&Boolean(s&&"element"===s.type&&"tr"===s.tagName)}}),ls={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function us(e,n,t){const i=jn(e.schema,n),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,r=e.settings.allowDangerousCharacters?0:1;let o,a=e.quote;if(!i.overloadedBoolean||t!==i.attribute&&""!==t?!i.boolean&&!i.overloadedBoolean||"string"==typeof t&&t!==i.attribute&&""!==t||(t=Boolean(t)):t=!0,null==t||!1===t||"number"==typeof t&&Number.isNaN(t))return"";const c=Hi(i.attribute,Object.assign({},e.settings.characterReferences,{subset:ls.name[s][r]}));return!0===t?c:(t=Array.isArray(t)?(i.commaSeparated?En:vn)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t?c:(e.settings.preferUnquoted&&(o=Hi(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ls.unquoted[s][r]}))),o!==t&&(e.settings.quoteSmart&&Cn(t,a)>Cn(t,e.alternative)&&(a=e.alternative),o=a+Hi(t,Object.assign({},e.settings.characterReferences,{subset:("'"===a?ls.single:ls.double)[s][r],attribute:!0}))+a),c+(o?"="+o:o)))}const hs=["<","&"];function gs(e,n,t,i){return!t||"element"!==t.type||"script"!==t.tagName&&"style"!==t.tagName?Hi(e.value,Object.assign({},i.settings.characterReferences,{subset:hs})):e.value}const ds=Ln("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,n,t,i){return i.settings.bogusComments?"<?"+Hi(e.value,Object.assign({},i.settings.characterReferences,{subset:Xi}))+">":"\x3c!--"+e.value.replace(Yi,function(e){return Hi(e,Object.assign({},i.settings.characterReferences,{subset:Zi}))})+"--\x3e"},doctype:function(e,n,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,n,t,i){const s=i.schema,r="svg"!==s.space&&i.settings.omitOptionalTags;let o="svg"===s.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const a=[];let c;"html"===s.space&&"svg"===e.tagName&&(i.schema=zn);const l=function(e,n){const t=[];let i,s=-1;if(n)for(i in n)if(null!==n[i]&&void 0!==n[i]){const s=us(e,i,n[i]);s&&t.push(s)}for(;++s<t.length;){const n=e.settings.tightAttributes?t[s].charAt(t[s].length-1):void 0;s!==t.length-1&&'"'!==n&&"'"!==n&&(t[s]+=" ")}return t.join("")}(i,e.properties),u=i.all("html"===s.space&&"template"===e.tagName?e.content:e);return i.schema=s,u&&(o=!1),!l&&r&&cs(e,n,t)||(a.push("<",e.tagName,l?" "+l:""),o&&("svg"===s.space||i.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!i.settings.tightSelfClosing||"/"===c||c&&'"'!==c&&"'"!==c)&&a.push(" "),a.push("/")),a.push(">")),a.push(u),o||r&&ss(e,n,t)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,n,t,i){return i.settings.allowDangerousHtml?e.value:gs(e,0,t,i)},root:function(e,n,t,i){return i.all(e)},text:gs}}),ps={},ms={},fs=[];function ys(e,n,t){return ds(e,n,t,this)}function bs(e){const n=[],t=e&&e.children||fs;let i=-1;for(;++i<t.length;)n[i]=this.one(t[i],i,e);return n.join("")}function ws(e,n){const t="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(const[s,r]of Object.entries(n?.colorReplacements||{}))"string"==typeof r?t[s]=r:s===i&&Object.assign(t,r);return t}function _s(e,n){return e&&n?.[e?.toLowerCase()]||e}async function ks(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function xs(e){return!e||["plaintext","txt","text","plain"].includes(e)}function zs(e){return"ansi"===e||xs(e)}function js(e){return"none"===e}function Es(e){return js(e)}function vs(e,n){if(!n)return e;e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const t=Array.isArray(n)?n:n.split(/\s+/g);for(const i of t)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function As(e,n=!1){if(0===e.length)return[["",0]];const t=e.split(/(\r?\n)/g);let i=0;const s=[];for(let r=0;r<t.length;r+=2){const e=n?t[r]+(t[r+1]||""):t[r];s.push([e,i]),i+=t[r].length,i+=t[r+1]?.length||0}return s}const Ss="light-dark()",Cs=["color","background-color"];function Ls(e){const n={};if(e.color&&(n.color=e.color),e.bgColor&&(n["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Lt.Italic&&(n["font-style"]="italic"),e.fontStyle&Lt.Bold&&(n["font-weight"]="bold");const t=[];e.fontStyle&Lt.Underline&&t.push("underline"),e.fontStyle&Lt.Strikethrough&&t.push("line-through"),t.length&&(n["text-decoration"]=t.join(" "))}return n}function Ts(e){return"string"==typeof e?e:Object.entries(e).map(([e,n])=>`${e}:${n}`).join(";")}const qs=new WeakMap;function Is(e,n){qs.set(e,n)}function Ps(e){return qs.get(e)}class Rs{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new Rs(Object.fromEntries(function(e){return Array.isArray(e)?e:[e]}(n).map(e=>[e,qi])),e)}constructor(...e){if(2===e.length){const[n,t]=e;this.lang=t,this._stacks=n}else{const[n,t,i]=e;this.lang=t,this._stacks={[i]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){const n=[],t=new Set;return function e(i){if(t.has(i))return;t.add(i);const s=i?.nameScopesList?.scopeName;s&&n.push(s),i.parent&&e(i.parent)}(e),n}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Ns(){const e=new WeakMap;function n(n){if(!e.has(n.meta)){let t=function(e){if("number"==typeof e){if(e<0||e>n.source.length)throw new pt(`Invalid decoration offset: ${e}. Code length: ${n.source.length}`);return{...i.indexToPos(e),offset:e}}{const n=i.lines[e.line];if(void 0===n)throw new pt(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);let t=e.character;if(t<0&&(t=n.length+t),t<0||t>n.length)throw new pt(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${n.length}`);return{...e,character:t,offset:i.posToIndex(e.line,t)}}};const i=function(e){const n=As(e,!0).map(([e])=>e);return{lines:n,indexToPos:function(t){if(t===e.length)return{line:n.length-1,character:n[n.length-1].length};let i=t,s=0;for(const e of n){if(i<e.length)break;i-=e.length,s++}return{line:s,character:i}},posToIndex:function(e,t){let i=0;for(let s=0;s<e;s++)i+=n[s].length;return i+=t,i}}}(n.source),s=(n.options.decorations||[]).map(e=>({...e,start:t(e.start),end:t(e.end)}));!function(e){for(let n=0;n<e.length;n++){const t=e[n];if(t.start.offset>t.end.offset)throw new pt(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let i=n+1;i<e.length;i++){const n=e[i],s=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,r=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset,o=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||r||o||a){if(s&&r)continue;if(o&&a)continue;if(o&&t.start.offset===t.end.offset)continue;if(r&&n.start.offset===n.end.offset)continue;throw new pt(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}(s),e.set(n.meta,{decorations:s,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(e){if(!this.options.decorations?.length)return;const t=function(e,n){const t=Array.from(n instanceof Set?n:new Set(n)).sort((e,n)=>e-n);return t.length?e.map(e=>e.flatMap(e=>{const n=t.filter(n=>e.offset<n&&n<e.offset+e.content.length).map(n=>n-e.offset).sort((e,n)=>e-n);return n.length?function(e,n){let t=0;const i=[];for(const s of n)s>t&&i.push({...e,content:e.content.slice(t,s),offset:e.offset+t}),t=s;return t<e.content.length&&i.push({...e,content:e.content.slice(t),offset:e.offset+t}),i}(e,n):e})):e}(e,n(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]));return t},code(e){if(!this.options.decorations?.length)return;const t=n(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==t.converter.lines.length)throw new pt(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${t.converter.lines.length}). Failed to apply decorations.`);function s(e,n,t,s){const r=i[e];let a="",c=-1,l=-1;if(0===n&&(c=0),0===t&&(l=0),t===Number.POSITIVE_INFINITY&&(l=r.children.length),-1===c||-1===l)for(let i=0;i<r.children.length;i++)a+=Os(r.children[i]),-1===c&&a.length===n&&(c=i+1),-1===l&&a.length===t&&(l=i+1);if(-1===c)throw new pt(`Failed to find start index for decoration ${JSON.stringify(s.start)}`);if(-1===l)throw new pt(`Failed to find end index for decoration ${JSON.stringify(s.end)}`);const u=r.children.slice(c,l);if(s.alwaysWrap||u.length!==r.children.length)if(s.alwaysWrap||1!==u.length||"element"!==u[0].type){const e={type:"element",tagName:"span",properties:{},children:u};o(e,s,"wrapper"),r.children.splice(c,u.length,e)}else o(u[0],s,"token");else o(r,s,"line")}function r(e,n){i[e]=o(i[e],n,"line")}function o(e,n,t){const i=n.properties||{},s=n.transform||(e=>e);return e.tagName=n.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},n.properties?.class&&vs(e,n.properties.class),s(e,t)||e}const a=[],c=t.decorations.sort((e,n)=>n.start.offset-e.start.offset||e.end.offset-n.end.offset);for(const n of c){const{start:e,end:t}=n;if(e.line===t.line)s(e.line,e.character,t.character,n);else if(e.line<t.line){s(e.line,e.character,Number.POSITIVE_INFINITY,n);for(let i=e.line+1;i<t.line;i++)a.unshift(()=>r(i,n));s(t.line,0,t.character,n)}}a.forEach(e=>e())}}}function Os(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(Os).join(""):""}const Ds=[Ns()];function $s(e){const n=function(e){const n=[],t=[],i=[];for(const s of e)switch(s.enforce){case"pre":n.push(s);break;case"post":t.push(s);break;default:i.push(s)}return{pre:n,post:t,normal:i}}(e.transformers||[]);return[...n.pre,...n.normal,...n.post,...Ds]}var Ms=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Vs={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Fs(e,n){const t=e.indexOf("",n);if(-1!==t&&"["===e[t+1]){const n=e.indexOf("m",t);if(-1!==n)return{sequence:e.substring(t+2,n).split(";"),startPosition:t,position:n+1}}return{position:e.length}}function Bs(e){const n=e.shift();if("2"===n){const n=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==n.length||n.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:n}}if("5"===n){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Gs(e){const n=[];for(;e.length>0;){const t=e.shift();if(!t)continue;const i=Number.parseInt(t);if(!Number.isNaN(i))if(0===i)n.push({type:"resetAll"});else if(i<=9)Vs[i]&&n.push({type:"setDecoration",value:Vs[i]});else if(i<=29){const e=Vs[i-20];e&&(n.push({type:"resetDecoration",value:e}),"dim"===e&&n.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)n.push({type:"setForegroundColor",value:{type:"named",name:Ms[i-30]}});else if(38===i){const t=Bs(e);t&&n.push({type:"setForegroundColor",value:t})}else if(39===i)n.push({type:"resetForegroundColor"});else if(i<=47)n.push({type:"setBackgroundColor",value:{type:"named",name:Ms[i-40]}});else if(48===i){const t=Bs(e);t&&n.push({type:"setBackgroundColor",value:t})}else 49===i?n.push({type:"resetBackgroundColor"}):53===i?n.push({type:"setDecoration",value:"overline"}):55===i?n.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?n.push({type:"setForegroundColor",value:{type:"named",name:Ms[i-90+8]}}):i>=100&&i<=107&&n.push({type:"setBackgroundColor",value:{type:"named",name:Ms[i-100+8]}})}return n}var Us={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"};const Ws={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Ks(e,n,t={}){const{theme:i=e.getLoadedThemes()[0]}=t,s=e.resolveLangAlias(t.lang||"text");if(xs(s)||js(i))return As(n).map(e=>[{content:e[0],offset:e[1]}]);const{theme:r,colorMap:o}=e.setTheme(i);if("ansi"===s)return function(e,n,t){const i=ws(e,t),s=As(n),r=function(e=Us){function n(n){return e[n]}function t(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}let i;return{value:function(e){switch(e.type){case"named":return n(e.name);case"rgb":return t(e.rgb);case"table":return function(e){return function(){if(i)return i;i=[];for(let t=0;t<Ms.length;t++)i.push(n(Ms[t]));let e=[0,95,135,175,215,255];for(let n=0;n<6;n++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)i.push(t([e[n],e[s],e[r]]));let s=8;for(let n=0;n<24;n++,s+=10)i.push(t([s,s,s]));return i}()[e]}(e.index)}}}}(Object.fromEntries(Ms.map(n=>{const t=`terminal.ansi${n[0].toUpperCase()}${n.substring(1)}`,i=e.colors?.[t];return[n,i||Ws[n]]}))),o=function(){let e=null,n=null,t=new Set;return{parse(i){const s=[];let r=0;do{const o=Fs(i,r),a=o.sequence?i.substring(r,o.startPosition):i.substring(r);if(a.length>0&&s.push({value:a,foreground:e,background:n,decorations:new Set(t)}),o.sequence){const i=Gs(o.sequence);for(const s of i)"resetAll"===s.type?(e=null,n=null,t.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?n=null:"resetDecoration"===s.type&&t.delete(s.value);for(const s of i)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?n=s.value:"setDecoration"===s.type&&t.add(s.value)}r=o.position}while(r<i.length);return s}}}();return s.map(n=>o.parse(n[0]).map(t=>{let s,o;t.decorations.has("reverse")?(s=t.background?r.value(t.background):e.bg,o=t.foreground?r.value(t.foreground):e.fg):(s=t.foreground?r.value(t.foreground):e.fg,o=t.background?r.value(t.background):void 0),s=_s(s,i),o=_s(o,i),t.decorations.has("dim")&&(s=function(e){const n=e.match(/#([0-9a-f]{3,8})/i);if(n){const e=n[1];if(8===e.length){const n=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${n}`}if(6===e.length)return`#${e}80`;if(4===e.length){const n=e[0],t=e[1],i=e[2],s=e[3];return`#${n}${n}${t}${t}${i}${i}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}if(3===e.length){const n=e[0],t=e[1],i=e[2];return`#${n}${n}${t}${t}${i}${i}80`}}const t=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:e}(s));let a=Lt.None;return t.decorations.has("bold")&&(a|=Lt.Bold),t.decorations.has("italic")&&(a|=Lt.Italic),t.decorations.has("underline")&&(a|=Lt.Underline),t.decorations.has("strikethrough")&&(a|=Lt.Strikethrough),{content:t.value,offset:n[1],color:s,bgColor:o,fontStyle:a}}))}(r,n,t);const a=e.getLanguage(t.lang||"text");if(t.grammarState){if(t.grammarState.lang!==a.name)throw new pt(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${a.name}"`);if(!t.grammarState.themes.includes(r.name))throw new pt(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return function(e,n,t,i,s){const r=Hs(e,n,t,i,s),o=new Rs(r.stateStack,n.name,t.name);return Is(r.tokens,o),r.tokens}(n,a,r,o,t)}function Hs(e,n,t,i,s){const r=ws(t,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500}=s,c=As(e);let l=s.grammarState?function(e,n){if(!(e instanceof Rs))throw new pt("Invalid grammar state");return e.getInternalStack(n)}(s.grammarState,t.name)??qi:null!=s.grammarContextCode?Hs(s.grammarContextCode,n,t,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:qi,u=[];const h=[];for(let g=0,d=c.length;g<d;g++){const[e,d]=c[g];if(""===e){u=[],h.push([]);continue}if(o>0&&e.length>=o){u=[],h.push([{content:e,offset:d,color:"",fontStyle:0}]);continue}let p,m,f;s.includeExplanation&&(p=n.tokenizeLine(e,l,a),m=p.tokens,f=0);const y=n.tokenizeLine2(e,l,a),b=y.tokens.length/2;for(let n=0;n<b;n++){const o=y.tokens[2*n],a=n+1<b?y.tokens[2*n+2]:e.length;if(o===a)continue;const c=y.tokens[2*n+1],l=_s(i[Rt.getForeground(c)],r),h=Rt.getFontStyle(c),g={content:e.substring(o,a),offset:d+o,color:l,fontStyle:h};if(s.includeExplanation){const n=[];if("scopeName"!==s.includeExplanation)for(const e of t.settings){let t;switch(typeof e.scope){case"string":t=e.scope.split(/,/).map(e=>e.trim());break;case"object":t=e.scope;break;default:continue}n.push({settings:e,selectors:t.map(e=>e.split(/ /))})}g.explanation=[];let i=0;for(;o+i<a;){const t=m[f],r=e.substring(t.startIndex,t.endIndex);i+=r.length,g.explanation.push({content:r,scopes:"scopeName"===s.includeExplanation?Ys(t.scopes):Xs(n,t.scopes)}),f+=1}}u.push(g)}h.push(u),u=[],l=y.ruleStack}return{tokens:h,stateStack:l}}function Ys(e){return e.map(e=>({scopeName:e}))}function Xs(e,n){const t=[];for(let i=0,s=n.length;i<s;i++){const s=n[i];t[i]={scopeName:s,themeMatches:Qs(e,s,n.slice(0,i))}}return t}function Zs(e,n){return e===n||n.substring(0,e.length)===e&&"."===n[e.length]}function Js(e,n,t){if(!Zs(e[e.length-1],n))return!1;let i=e.length-2,s=t.length-1;for(;i>=0&&s>=0;)Zs(e[i],t[s])&&(i-=1),s-=1;return-1===i}function Qs(e,n,t){const i=[];for(const{selectors:s,settings:r}of e)for(const e of s)if(Js(e,n,t)){i.push(r);break}return i}function er(e,n,t){const i=Object.entries(t.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),s=i.map(i=>{const s=Ks(e,n,{...t,theme:i.theme});return{tokens:s,state:Ps(s),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),r=function(...e){const n=e.map(()=>[]),t=e.length;for(let i=0;i<e[0].length;i++){const s=e.map(e=>e[i]),r=n.map(()=>[]);n.forEach((e,n)=>e.push(r[n]));const o=s.map(()=>0),a=s.map(e=>e[0]);for(;a.every(e=>e);){const e=Math.min(...a.map(e=>e.content.length));for(let n=0;n<t;n++){const t=a[n];t.content.length===e?(r[n].push(t),o[n]+=1,a[n]=s[n][o[n]]):(r[n].push({...t,content:t.content.slice(0,e)}),a[n]={...t,content:t.content.slice(e),offset:t.offset+e})}}}return n}(...s.map(e=>e.tokens)),o=r[0].map((e,n)=>e.map((e,s)=>{const o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in t&&t.includeExplanation&&(o.explanation=e.explanation),r.forEach((e,t)=>{const{content:r,explanation:a,offset:c,...l}=e[n][s];o.variants[i[t].color]=l}),o})),a=s[0].state?new Rs(Object.fromEntries(s.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),s[0].state.lang):void 0;return a&&Is(o,a),o}function nr(e,n,t){let i,s,r,o,a,c;if("themes"in t){const{defaultColor:l="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=t,g=Object.entries(t.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,n)=>e.color===l?-1:n.color===l?1:0);if(0===g.length)throw new pt("`themes` option must not be empty");const d=er(e,n,t);if(c=Ps(d),l&&Ss!==l&&!g.find(e=>e.color===l))throw new pt(`\`themes\` option must contain the defaultColor key \`${l}\``);const p=g.map(n=>e.getTheme(n.theme)),m=g.map(e=>e.color);r=d.map(e=>e.map(e=>function(e,n,t,i,s="css-vars"){const r={content:e.content,explanation:e.explanation,offset:e.offset},o=n.map(n=>Ls(e.variants[n])),a=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,i)=>{const s="color"===i?"":"background-color"===i?"-bg":`-${i}`;return t+n[e]+("color"===i?"":s)};return o.forEach((e,t)=>{for(const r of a){const a=e[r]||"inherit";if(0===t&&i&&Cs.includes(r))if(i===Ss&&o.length>1){const e=n.findIndex(e=>"light"===e),i=n.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new pt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const u=o[e][r]||"inherit",h=o[i][r]||"inherit";c[r]=`light-dark(${u}, ${h})`,"css-vars"===s&&(c[l(t,r)]=a)}else c[r]=a;else"css-vars"===s&&(c[l(t,r)]=a)}}),r.htmlStyle=c,r}(e,m,u,l,h))),c&&Is(r,c);const f=g.map(e=>ws(e.theme,t));s=tr(g,p,f,u,l,"fg",h),i=tr(g,p,f,u,l,"bg",h),o=`shiki-themes ${p.map(e=>e.name).join(" ")}`,a=l?void 0:[s,i].join(";")}else{if(!("theme"in t))throw new pt("Invalid options, either `theme` or `themes` must be provided");{const a=ws(t.theme,t);r=Ks(e,n,t);const l=e.getTheme(t.theme);i=_s(l.bg,a),s=_s(l.fg,a),o=l.name,c=Ps(r)}}return{tokens:r,fg:s,bg:i,themeName:o,rootStyle:a,grammarState:c}}function tr(e,n,t,i,s,r,o){return e.map((a,c)=>{const l=_s(n[c][r],t[c])||"inherit",u=`${i+a.color}${"bg"===r?"-bg":""}:${l}`;if(0===c&&s){if(s===Ss&&e.length>1){const i=e.findIndex(e=>"light"===e.color),s=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===s)throw new pt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${_s(n[i][r],t[i])||"inherit"}, ${_s(n[s][r],t[s])||"inherit"});${u}`}return l}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function ir(e,n,t,i={meta:{},options:t,codeToHast:(n,t)=>ir(e,n,t),codeToTokens:(n,t)=>nr(e,n,t)}){let s=n;for(const p of $s(t))s=p.preprocess?.call(i,s,t)||s;let{tokens:r,fg:o,bg:a,themeName:c,rootStyle:l,grammarState:u}=nr(e,s,t);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:g=!1}=t;!0===h?r=function(e){return e.map(e=>{const n=[];let t,i="";return e.forEach((s,r)=>{const o=!(s.fontStyle&&(s.fontStyle&Lt.Underline||s.fontStyle&Lt.Strikethrough));o&&s.content.match(/^\s+$/)&&e[r+1]?(void 0===t&&(t=s.offset),i+=s.content):i?(o?n.push({...s,offset:t,content:i+s.content}):n.push({content:i,offset:t},s),t=void 0,i=""):n.push(s)}),n})}(r):"never"===h&&(r=function(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;const n=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return e;const[,t,i,s]=n;if(!t&&!s)return e;const r=[{...e,offset:e.offset+t.length,content:i}];return t&&r.unshift({content:t,offset:e.offset}),s&&r.push({content:s,offset:e.offset+t.length+i.length}),r}))}(r)),g&&(r=function(e){return e.map(e=>{const n=[];for(const t of e){if(0===n.length){n.push({...t});continue}const e=n[n.length-1],i=Ts(e.htmlStyle||Ls(e)),s=Ts(t.htmlStyle||Ls(t)),r=e.fontStyle&&(e.fontStyle&Lt.Underline||e.fontStyle&Lt.Strikethrough),o=t.fontStyle&&(t.fontStyle&Lt.Underline||t.fontStyle&Lt.Strikethrough);r||o||i!==s?n.push({...t}):e.content+=t.content}return n})}(r));const d={...i,get source(){return s}};for(const p of $s(t))r=p.tokens?.call(d,r)||r;return function(e,n,t,i=Ps(e)){const s=$s(n),r=[],o={type:"root",children:[]},{structure:a="classic",tabindex:c="0"}=n,l={class:`shiki ${n.themeName||""}`};!1!==n.rootStyle&&(null!=n.rootStyle?l.style=n.rootStyle:l.style=`background-color:${n.bg};color:${n.fg}`),!1!==c&&null!=c&&(l.tabindex=c.toString());for(const[m,f]of Object.entries(n.meta||{}))m.startsWith("_")||(l[m]=f);let u={type:"element",tagName:"pre",properties:l,children:[],data:n.data},h={type:"element",tagName:"code",properties:{},children:r};const g=[],d={...t,structure:a,addClassToHast:vs,get source(){return t.source},get tokens(){return e},get options(){return n},get root(){return o},get pre(){return u},get code(){return h},get lines(){return g}};if(e.forEach((e,n)=>{n&&("inline"===a?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===a&&r.push({type:"text",value:"\n"}));let t={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(const r of e){let e={type:"element",tagName:"span",properties:{...r.htmlAttrs},children:[{type:"text",value:r.content}]};const c=Ts(r.htmlStyle||Ls(r));c&&(e.properties.style=c);for(const o of s)e=o?.span?.call(d,e,n+1,i,t,r)||e;"inline"===a?o.children.push(e):"classic"===a&&t.children.push(e),i+=r.content.length}if("classic"===a){for(const e of s)t=e?.line?.call(d,t,n+1)||t;g.push(t),r.push(t)}else"inline"===a&&g.push(t)}),"classic"===a){for(const e of s)h=e?.code?.call(d,h)||h;u.children.push(h);for(const e of s)u=e?.pre?.call(d,u)||u;o.children.push(u)}else if("inline"===a){const e=[];let n={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const i of o.children)"element"===i.type&&"br"===i.tagName?(e.push(n),n={type:"element",tagName:"span",properties:{class:"line"},children:[]}):"element"!==i.type&&"text"!==i.type||n.children.push(i);e.push(n);let t={type:"element",tagName:"code",properties:{},children:e};for(const i of s)t=i?.code?.call(d,t)||t;o.children=[];for(let i=0;i<t.children.length;i++){i>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const e=t.children[i];"element"===e.type&&o.children.push(...e.children)}}let p=o;for(const m of s)p=m?.root?.call(d,p)||p;return i&&Is(p,i),p}(r,{...t,fg:o,bg:a,themeName:c,rootStyle:!1!==t.rootStyle&&(t.rootStyle??l)},d,u)}const sr="__shiki_resolved";function rr(e){if(e?.[sr])return e;const n={...e};n.tokenColors&&!n.settings&&(n.settings=n.tokenColors,delete n.tokenColors),n.type||="dark",n.colorReplacements={...n.colorReplacements},n.settings||=[];let{bg:t,fg:i}=n;if(!t||!i){const e=n.settings?n.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(i=e.settings.foreground),e?.settings?.background&&(t=e.settings.background),!i&&n?.colors?.["editor.foreground"]&&(i=n.colors["editor.foreground"]),!t&&n?.colors?.["editor.background"]&&(t=n.colors["editor.background"]),i||(i="light"===n.type?"#333333":"#bbbbbb"),t||(t="light"===n.type?"#fffffe":"#1e1e1e"),n.fg=i,n.bg=t}n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}});let s=0;const r=new Map;function o(e){if(r.has(e))return r.get(e);s+=1;const t=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return n.colorReplacements?.[`#${t}`]?o(e):(r.set(e,t),t)}n.settings=n.settings.map(e=>{const t=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),i=e.settings?.background&&!e.settings.background.startsWith("#");if(!t&&!i)return e;const s={...e,settings:{...e.settings}};if(t){const t=o(e.settings.foreground);n.colorReplacements[t]=e.settings.foreground,s.settings.foreground=t}if(i){const t=o(e.settings.background);n.colorReplacements[t]=e.settings.background,s.settings.background=t}return s});for(const a of Object.keys(n.colors||{}))if(("editor.foreground"===a||"editor.background"===a||a.startsWith("terminal.ansi"))&&!n.colors[a]?.startsWith("#")){const e=o(n.colors[a]);n.colorReplacements[e]=n.colors[a],n.colors[a]=e}return Object.defineProperty(n,sr,{enumerable:!1,writable:!1,value:!0}),n}async function or(e){return Array.from(new Set((await Promise.all(e.filter(e=>!zs(e)).map(async e=>await ks(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function ar(e){return(await Promise.all(e.map(async e=>Es(e)?null:rr(await ks(e))))).filter(e=>!!e)}let cr=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function lr(e,n){if(!n)return e;if(n[e]){const t=new Set([e]);for(;n[e];){if(e=n[e],t.has(e))throw new cr(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return e}class ur extends Ti{constructor(e,n,t,i={}){super(e),this._resolver=e,this._themes=n,this._langs=t,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=rr(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=Et.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=lr(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(n=>n.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const t={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,t);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(n=>{this._alias[n]=e.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),t=n.filter(([e,n])=>!n);if(t.length){const e=n.filter(([e,n])=>{if(!n)return!1;const i=n.embeddedLanguages||n.embeddedLangs;return i?.some(e=>t.map(([e])=>e).includes(e))}).filter(e=>!t.includes(e));throw new cr(`Missing languages ${t.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const n=e.embeddedLanguages??e.embeddedLangs;if(n)for(const t of n)this._langGraph.set(t,this._langMap.get(t))}}class hr{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},n.forEach(e=>this.addLanguage(e))}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(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let t=[];for(let i=1;i<=n.length;i++){const e=n.slice(0,i).join(".");t=[...t,...this._injections.get(e)||[]]}return t}}let gr=0;function dr(e){const n=e.langs,t=e.themes,i=e.engine;return async function(e){function s(t){if("string"==typeof t){if(zs(t=e.langAlias?.[t]||t))return[];const i=n[t];if(!i)throw new pt(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return i}return t}function r(e){if(Es(e))return"none";if("string"==typeof e){const n=t[e];if(!n)throw new pt(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return n}return e}const o=(e.themes??[]).map(e=>r(e)),a=(e.langs??[]).map(e=>s(e)),c=await async function(e){const n=await async function(e){e.engine||function(e,n=3){n>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[n,t,i]=await Promise.all([ar(e.themes||[]),or(e.langs||[]),e.engine]);return function(e){gr+=1,!1!==e.warnings&&gr>=10&&gr%10==0&&console.warn(`[Shiki] ${gr} 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 n=!1;if(!e.engine)throw new cr("`engine` option is required for synchronous mode");const t=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(rr),s=new hr(e.engine,t),r=new ur(s,i,t,e.langAlias);let o;function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();const n=r.getTheme(e);if(!n)throw new cr(`Theme \`${e}\` not found, you may need to load it first`);return n}function c(...e){u(),r.loadLanguages(e.flat(1))}function l(...e){u();for(const n of e.flat(1))r.loadTheme(n)}function u(){if(n)throw new cr("Shiki instance has been disposed")}function h(){n||(n=!0,r.dispose(),gr-=1)}return{setTheme:function(e){u();const n=a(e);return o!==e&&(r.setTheme(n),o=e),{theme:n,colorMap:r.getColorMap()}},getTheme:a,getLanguage:function(e){u();const n=r.getGrammar("string"==typeof e?e:e.name);if(!n)throw new cr(`Language \`${e}\` not found, you may need to load it first`);return n},getLoadedThemes:function(){return u(),r.getLoadedThemes()},getLoadedLanguages:function(){return u(),r.getLoadedLanguages()},resolveLangAlias:function(n){return lr(n,e.langAlias)},loadLanguage:async function(...e){return c(await or(e))},loadLanguageSync:c,loadTheme:async function(...e){return u(),l(await ar(e))},loadThemeSync:l,dispose:h,[Symbol.dispose]:h}}({...e,themes:n,langs:t,engine:i})}(e);return{getLastGrammarState:(...e)=>function(...e){if(2===e.length)return Ps(e[1]);const[n,t,i={}]=e,{lang:s="text",theme:r=n.getLoadedThemes()[0]}=i;if(xs(s)||js(r))throw new pt("Plain language does not have grammar state");if("ansi"===s)throw new pt("ANSI language does not have grammar state");const{theme:o,colorMap:a}=n.setTheme(r),c=n.getLanguage(s);return new Rs(Hs(t,c,o,a,i).stateStack,c.name,o.name)}(n,...e),codeToTokensBase:(e,t)=>Ks(n,e,t),codeToTokensWithThemes:(e,t)=>er(n,e,t),codeToTokens:(e,t)=>nr(n,e,t),codeToHast:(e,t)=>ir(n,e,t),codeToHtml:(e,t)=>function(e,n,t){const i={meta:{},options:t,codeToHast:(n,t)=>ir(e,n,t),codeToTokens:(n,t)=>nr(e,n,t)};let s=function(e){const n=ps,t=n.quote||'"',i='"'===t?"'":'"';if('"'!==t&&"'"!==t)throw new Error("Invalid quote `"+t+"`, expected `'` or `\"`");return{one:ys,all:bs,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Sn,characterReferences:n.characterReferences||ms,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?zn:An,quote:t,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(ir(e,n,t,i));for(const r of $s(t))s=r.postprocess?.call(i,s,t)||s;return s}(n,e,t),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...n,getInternalContext:()=>n}}({engine:e.engine??i(),...e,themes:o,langs:a});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(s)),loadTheme:(...e)=>c.loadTheme(...e.map(r)),getBundledLanguages:()=>n,getBundledThemes:()=>t}}}const pr=[{id:"abap",name:"ABAP",import:()=>e(()=>import("./abap-DnJxzdy9.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>e(()=>import("./actionscript-3-DKotD2Vd.js"),[])},{id:"ada",name:"Ada",import:()=>e(()=>import("./ada-iG1FnIvR.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>e(()=>import("./angular-html-CGDGYtiS.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>e(()=>import("./angular-ts-5zO4eZho.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>e(()=>import("./apache-CdTKWnKT.js"),[])},{id:"apex",name:"Apex",import:()=>e(()=>import("./apex-DPFMkx-R.js"),[])},{id:"apl",name:"APL",import:()=>e(()=>import("./apl-DnQuo7r7.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>e(()=>import("./applescript-BlLNmGTp.js"),[])},{id:"ara",name:"Ara",import:()=>e(()=>import("./ara-Ba3fhlsS.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e(()=>import("./asciidoc-AY8u9WWM.js"),[])},{id:"asm",name:"Assembly",import:()=>e(()=>import("./asm-CHX6lpGW.js"),[])},{id:"astro",name:"Astro",import:()=>e(()=>import("./astro-B5Br1cQb.js"),__vite__mapDeps([10,9,2,11,3,12,13]))},{id:"awk",name:"AWK",import:()=>e(()=>import("./awk-XRrwoikR.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>e(()=>import("./ballerina-Dh0JsEtz.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e(()=>import("./bat-BVu0TwaT.js"),[])},{id:"beancount",name:"Beancount",import:()=>e(()=>import("./beancount-CJl0njO0.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>e(()=>import("./berry-Bmu6i3Vs.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>e(()=>import("./bibtex-CGjxJ4Zd.js"),[])},{id:"bicep",name:"Bicep",import:()=>e(()=>import("./bicep-DSW96mAt.js"),[])},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e(()=>import("./bird2-DECYBE5b.js"),[])},{id:"blade",name:"Blade",import:()=>e(()=>import("./blade-C76tewJX.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e(()=>import("./bsl-DGicdwC0.js"),__vite__mapDeps([17,18]))},{id:"c",name:"C",import:()=>e(()=>import("./c-BmJt9k-y.js"),[])},{id:"c3",name:"C3",import:()=>e(()=>import("./c3-BBJ779-z.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e(()=>import("./cadence-DbDq8SCj.js"),[])},{id:"cairo",name:"Cairo",import:()=>e(()=>import("./cairo-Dz8fl918.js"),__vite__mapDeps([19,20]))},{id:"clarity",name:"Clarity",import:()=>e(()=>import("./clarity-Bb40UnPS.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e(()=>import("./clojure-BjI0Knrv.js"),[])},{id:"cmake",name:"CMake",import:()=>e(()=>import("./cmake-BYiqpiH1.js"),[])},{id:"cobol",name:"COBOL",import:()=>e(()=>import("./cobol-DQUyVTuR.js"),__vite__mapDeps([21,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>e(()=>import("./codeowners-L91meNbn.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e(()=>import("./codeql-Cd-JFsJB.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e(()=>import("./coffee-BDkVV41o.js"),__vite__mapDeps([22,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e(()=>import("./common-lisp-DOi1njVG.js"),[])},{id:"coq",name:"Coq",import:()=>e(()=>import("./coq-BfbrVLCY.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e(()=>import("./cpp-BmKY377x.js"),__vite__mapDeps([23,24,25,26,16]))},{id:"crystal",name:"Crystal",import:()=>e(()=>import("./crystal-CaN4TS0s.js"),__vite__mapDeps([27,1,2,3,16,26,28]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e(()=>import("./csharp-VAkxddOj.js"),[])},{id:"css",name:"CSS",import:()=>e(()=>import("./css-l46fsARh.js"),[])},{id:"csv",name:"CSV",import:()=>e(()=>import("./csv-DXKU4rRd.js"),[])},{id:"cue",name:"CUE",import:()=>e(()=>import("./cue-zmT78Agv.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e(()=>import("./cypher-bkHSskm3.js"),[])},{id:"d",name:"D",import:()=>e(()=>import("./d-vs9xsbRV.js"),[])},{id:"dart",name:"Dart",import:()=>e(()=>import("./dart-BMkYYGiN.js"),[])},{id:"dax",name:"DAX",import:()=>e(()=>import("./dax-D135z3aS.js"),[])},{id:"desktop",name:"Desktop",import:()=>e(()=>import("./desktop-CigPEpQ5.js"),[])},{id:"diff",name:"Diff",import:()=>e(()=>import("./diff-Beq1YlA8.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e(()=>import("./docker-V5Al5bpF.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>e(()=>import("./dotenv-D9G8sA2m.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>e(()=>import("./dream-maker-BsoKROiO.js"),[])},{id:"edge",name:"Edge",import:()=>e(()=>import("./edge-BEMgb-sr.js"),__vite__mapDeps([29,11,1,2,3,15]))},{id:"elixir",name:"Elixir",import:()=>e(()=>import("./elixir-BkUQLiPT.js"),__vite__mapDeps([30,1,2,3]))},{id:"elm",name:"Elm",import:()=>e(()=>import("./elm-DmpuOW2E.js"),__vite__mapDeps([31,25,26]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e(()=>import("./emacs-lisp-BcpYGiHp.js"),[])},{id:"erb",name:"ERB",import:()=>e(()=>import("./erb-paWl6F80.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e(()=>import("./erlang-DAw79KxH.js"),__vite__mapDeps([39,40]))},{id:"fennel",name:"Fennel",import:()=>e(()=>import("./fennel-qzPJJAAI.js"),[])},{id:"fish",name:"Fish",import:()=>e(()=>import("./fish-Cx6My9pS.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e(()=>import("./fluent-BsukS3Co.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e(()=>import("./fortran-fixed-form-BiRvzwyR.js"),__vite__mapDeps([41,42]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e(()=>import("./fortran-free-form-CakU9R0a.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e(()=>import("./fsharp-BmLNaTNL.js"),__vite__mapDeps([43,40]))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e(()=>import("./gdresource-pHyHNgx5.js"),__vite__mapDeps([44,45,46]))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e(()=>import("./gdscript-BpxQpKjR.js"),[])},{id:"gdshader",name:"GDShader",import:()=>e(()=>import("./gdshader-BC7WJXp9.js"),[])},{id:"genie",name:"Genie",import:()=>e(()=>import("./genie-IZOju1hG.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>e(()=>import("./gherkin-DUpgZfGr.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>e(()=>import("./git-commit-Bptnmh-c.js"),__vite__mapDeps([47,48]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>e(()=>import("./git-rebase-CqNhyBhE.js"),__vite__mapDeps([49,28]))},{id:"gleam",name:"Gleam",import:()=>e(()=>import("./gleam-CCCEh_av.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e(()=>import("./glimmer-js-Bxt49MuP.js"),__vite__mapDeps([50,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e(()=>import("./glimmer-ts-BsGfVpaS.js"),__vite__mapDeps([51,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>e(()=>import("./glsl-BDbjGBhJ.js"),__vite__mapDeps([25,26]))},{id:"gn",name:"GN",import:()=>e(()=>import("./gn-BNGDdMfm.js"),[])},{id:"gnuplot",name:"Gnuplot",import:()=>e(()=>import("./gnuplot-D0FoiB-W.js"),[])},{id:"go",name:"Go",import:()=>e(()=>import("./go-Ci1olR0S.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e(()=>import("./graphql-DTlHKpVh.js"),__vite__mapDeps([35,2,11,36,13]))},{id:"groovy",name:"Groovy",import:()=>e(()=>import("./groovy-D9sPn4Z-.js"),[])},{id:"hack",name:"Hack",import:()=>e(()=>import("./hack-B6RDfhIS.js"),__vite__mapDeps([52,1,2,3,16]))},{id:"haml",name:"Ruby Haml",import:()=>e(()=>import("./haml-DvFFb5cL.js"),__vite__mapDeps([34,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e(()=>import("./handlebars--3HEtxsY.js"),__vite__mapDeps([53,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e(()=>import("./haskell-Cp0NQEkn.js"),[])},{id:"haxe",name:"Haxe",import:()=>e(()=>import("./haxe-D-PmAGDa.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>e(()=>import("./hcl-DRMo6eis.js"),[])},{id:"hjson",name:"Hjson",import:()=>e(()=>import("./hjson-BPEpXUFQ.js"),[])},{id:"hlsl",name:"HLSL",import:()=>e(()=>import("./hlsl-B-PjNM4a.js"),[])},{id:"html",name:"HTML",import:()=>e(()=>import("./html-Z-jPWkqI.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e(()=>import("./html-derivative-CUTCBBy5.js"),__vite__mapDeps([15,1,2,3]))},{id:"http",name:"HTTP",import:()=>e(()=>import("./http-C5yS503b.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]))},{id:"hurl",name:"Hurl",import:()=>e(()=>import("./hurl-DX_i18ky.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]))},{id:"hxml",name:"HXML",import:()=>e(()=>import("./hxml-DB3_nACV.js"),__vite__mapDeps([57,58]))},{id:"hy",name:"Hy",import:()=>e(()=>import("./hy-CLIvbAhW.js"),[])},{id:"imba",name:"Imba",import:()=>e(()=>import("./imba-B-tO30Ge.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>e(()=>import("./ini-Bpxu4Zsc.js"),[])},{id:"java",name:"Java",import:()=>e(()=>import("./java-DtRXFtDl.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e(()=>import("./javascript-DFyEbC5y.js"),[])},{id:"jinja",name:"Jinja",import:()=>e(()=>import("./jinja-Dy9dpTFB.js"),__vite__mapDeps([59,1,2,3]))},{id:"jison",name:"Jison",import:()=>e(()=>import("./jison-rKmQmF2-.js"),__vite__mapDeps([60,2]))},{id:"json",name:"JSON",import:()=>e(()=>import("./json-LWN7Ml79.js"),[])},{id:"json5",name:"JSON5",import:()=>e(()=>import("./json5-CgCB487x.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>e(()=>import("./jsonc-BXrjvC_e.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>e(()=>import("./jsonl-D5dm1SHP.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>e(()=>import("./jsonnet-B60UklUs.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e(()=>import("./jssm-CsqlGknB.js"),[])},{id:"jsx",name:"JSX",import:()=>e(()=>import("./jsx-g2NrEQII.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e(()=>import("./julia-cok74C3v.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]))},{id:"just",name:"Just",import:()=>e(()=>import("./just-BtNYcbKt.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38]))},{id:"kdl",name:"KDL",import:()=>e(()=>import("./kdl-DWIPcypl.js"),[])},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e(()=>import("./kotlin-DiV2Dt9D.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e(()=>import("./kusto-BJ51M1bD.js"),[])},{id:"latex",name:"LaTeX",import:()=>e(()=>import("./latex-DfULfDnZ.js"),__vite__mapDeps([65,66,62]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e(()=>import("./lean-BpZurxeZ.js"),[])},{id:"less",name:"Less",import:()=>e(()=>import("./less-DKKxO4Pm.js"),[])},{id:"liquid",name:"Liquid",import:()=>e(()=>import("./liquid-C2bTOIx_.js"),__vite__mapDeps([67,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>e(()=>import("./llvm-w4szIS5k.js"),[])},{id:"log",name:"Log file",import:()=>e(()=>import("./log-CnKjEmrw.js"),[])},{id:"logo",name:"Logo",import:()=>e(()=>import("./logo-BmG1tMr6.js"),[])},{id:"lua",name:"Lua",import:()=>e(()=>import("./lua-DlAioYQl.js"),__vite__mapDeps([37,26]))},{id:"luau",name:"Luau",import:()=>e(()=>import("./luau-BImqhNgT.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e(()=>import("./make-Ccm3NI5i.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e(()=>import("./markdown-DY93LJPj.js"),[])},{id:"marko",name:"Marko",import:()=>e(()=>import("./marko-CVUQDN1F.js"),__vite__mapDeps([68,3,69,5,11]))},{id:"matlab",name:"MATLAB",import:()=>e(()=>import("./matlab-nYX3zffi.js"),[])},{id:"mdc",name:"MDC",import:()=>e(()=>import("./mdc-D3GsoZ_L.js"),__vite__mapDeps([70,40,38,15,1,2,3]))},{id:"mdx",name:"MDX",import:()=>e(()=>import("./mdx-C8C9IGe9.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e(()=>import("./mermaid--Jyu4oWd.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e(()=>import("./mipsasm-BjAqecqh.js"),[])},{id:"mojo",name:"Mojo",import:()=>e(()=>import("./mojo-C2cxD0aZ.js"),[])},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e(()=>import("./moonbit-B4gpyPjt.js"),[])},{id:"move",name:"Move",import:()=>e(()=>import("./move-Dg7rFHVC.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e(()=>import("./narrat-BTSicUR-.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e(()=>import("./nextflow-NhKJRLNF.js"),__vite__mapDeps([71,72]))},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>e(()=>import("./nextflow-groovy-CqvLf608.js"),[])},{id:"nginx",name:"Nginx",import:()=>e(()=>import("./nginx-CllVvPGm.js"),__vite__mapDeps([73,37,26]))},{id:"nim",name:"Nim",import:()=>e(()=>import("./nim-BDZhFo_A.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40]))},{id:"nix",name:"Nix",import:()=>e(()=>import("./nix-_0LqsLde.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e(()=>import("./nushell-Mk45ZIMx.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e(()=>import("./objective-c-DLT9zZoE.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>e(()=>import("./objective-cpp-DKXr-AK_.js"),[])},{id:"ocaml",name:"OCaml",import:()=>e(()=>import("./ocaml-DP9q6K5L.js"),[])},{id:"odin",name:"Odin",import:()=>e(()=>import("./odin-BINPiy40.js"),[])},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e(()=>import("./openscad-CVq2HK1T.js"),[])},{id:"pascal",name:"Pascal",import:()=>e(()=>import("./pascal-DjTTLVNS.js"),[])},{id:"perl",name:"Perl",import:()=>e(()=>import("./perl-BemjezQW.js"),__vite__mapDeps([64,1,2,3,7,8,16]))},{id:"php",name:"PHP",import:()=>e(()=>import("./php-CGgrkEf9.js"),__vite__mapDeps([75,1,2,3,7,8,16,9]))},{id:"pkl",name:"Pkl",import:()=>e(()=>import("./pkl-0Sl31KKD.js"),[])},{id:"plsql",name:"PL/SQL",import:()=>e(()=>import("./plsql-CJrHCTnj.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e(()=>import("./po-y5MdiEbo.js"),[])},{id:"polar",name:"Polar",import:()=>e(()=>import("./polar-Bsx6RkUC.js"),[])},{id:"postcss",name:"PostCSS",import:()=>e(()=>import("./postcss-CeUBPB2S.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>e(()=>import("./powerquery-CW27I574.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e(()=>import("./powershell-DSYJ6xcj.js"),[])},{id:"prisma",name:"Prisma",import:()=>e(()=>import("./prisma-CLoN-gBj.js"),[])},{id:"prolog",name:"Prolog",import:()=>e(()=>import("./prolog-Bgt5DHUA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e(()=>import("./proto-C194Edqz.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e(()=>import("./pug-zcj1uJy9.js"),__vite__mapDeps([76,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>e(()=>import("./puppet-TSkl_nn0.js"),[])},{id:"purescript",name:"PureScript",import:()=>e(()=>import("./purescript-BrDje9qL.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>e(()=>import("./python-DlV7vnVD.js"),[])},{id:"qml",name:"QML",import:()=>e(()=>import("./qml-DTv-54bL.js"),__vite__mapDeps([77,2]))},{id:"qmldir",name:"QML Directory",import:()=>e(()=>import("./qmldir-CSZk7E48.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>e(()=>import("./qss-DACx-k9g.js"),[])},{id:"r",name:"R",import:()=>e(()=>import("./r-EOoB7omE.js"),[])},{id:"racket",name:"Racket",import:()=>e(()=>import("./racket-D1nq-KeH.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e(()=>import("./raku-DocPDKZq.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>e(()=>import("./razor-8J3P2wQs.js"),__vite__mapDeps([78,1,2,3,79]))},{id:"reg",name:"Windows Registry Script",import:()=>e(()=>import("./reg-5ydmJHEw.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e(()=>import("./regexp-CpyjTnFF.js"),[])},{id:"rel",name:"Rel",import:()=>e(()=>import("./rel-D68lwU-3.js"),[])},{id:"riscv",name:"RISC-V",import:()=>e(()=>import("./riscv-Cl4WfXj6.js"),[])},{id:"ron",name:"RON",import:()=>e(()=>import("./ron-DIZViclS.js"),[])},{id:"rosmsg",name:"ROS Interface",import:()=>e(()=>import("./rosmsg-sf_0D22S.js"),[])},{id:"rst",name:"reStructuredText",import:()=>e(()=>import("./rst-yWrgJnVd.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e(()=>import("./ruby-CyNHEA82.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e(()=>import("./rust-DpWcZSqc.js"),[])},{id:"sas",name:"SAS",import:()=>e(()=>import("./sas-BBCK0tAG.js"),__vite__mapDeps([82,16]))},{id:"sass",name:"Sass",import:()=>e(()=>import("./sass-DY_rGA2-.js"),[])},{id:"scala",name:"Scala",import:()=>e(()=>import("./scala-CYRsmRER.js"),[])},{id:"scheme",name:"Scheme",import:()=>e(()=>import("./scheme-C45fPb3F.js"),[])},{id:"scss",name:"SCSS",import:()=>e(()=>import("./scss-CHxzYwli.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e(()=>import("./sdbl-BpucmfEo.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e(()=>import("./shaderlab-DNyPh2Q6.js"),__vite__mapDeps([83,84]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e(()=>import("./shellscript-B8OHlvmy.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e(()=>import("./shellsession-OATBsyRD.js"),__vite__mapDeps([85,28]))},{id:"smalltalk",name:"Smalltalk",import:()=>e(()=>import("./smalltalk-CKvddXL8.js"),[])},{id:"solidity",name:"Solidity",import:()=>e(()=>import("./solidity-XfXaqt9k.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e(()=>import("./soy-Dz-Bkr4l.js"),__vite__mapDeps([86,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>e(()=>import("./sparql-CLNNOQQI.js"),__vite__mapDeps([87,88]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e(()=>import("./splunk-CFtInczE.js"),[])},{id:"sql",name:"SQL",import:()=>e(()=>import("./sql-BhJCBb_s.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>e(()=>import("./ssh-config-Dqsr-I88.js"),[])},{id:"stata",name:"Stata",import:()=>e(()=>import("./stata-G4GYNNPE.js"),__vite__mapDeps([89,16]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e(()=>import("./stylus-BeJftkpb.js"),[])},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e(()=>import("./surrealql-C_6seBBi.js"),__vite__mapDeps([90,2]))},{id:"svelte",name:"Svelte",import:()=>e(()=>import("./svelte-BuOg6tJl.js"),__vite__mapDeps([91,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>e(()=>import("./swift-0qv2hBXI.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>e(()=>import("./system-verilog-B3nElewZ.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>e(()=>import("./systemd-B7SlkmfE.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e(()=>import("./talonscript-BrsbXmRy.js"),[])},{id:"tasl",name:"Tasl",import:()=>e(()=>import("./tasl-CMkPZNj1.js"),[])},{id:"tcl",name:"Tcl",import:()=>e(()=>import("./tcl-CiyEbZSK.js"),[])},{id:"templ",name:"Templ",import:()=>e(()=>import("./templ-B_lDaXqj.js"),__vite__mapDeps([92,93,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e(()=>import("./terraform-BUB-_BlF.js"),[])},{id:"tex",name:"TeX",import:()=>e(()=>import("./tex-ByCZWQmN.js"),__vite__mapDeps([66,62]))},{id:"toml",name:"TOML",import:()=>e(()=>import("./toml-VldhK7iW.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e(()=>import("./ts-tags-DAT_GLYZ.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8]))},{id:"tsv",name:"TSV",import:()=>e(()=>import("./tsv-BQ9ptESM.js"),[])},{id:"tsx",name:"TSX",import:()=>e(()=>import("./tsx-DYwE5ssU.js"),[])},{id:"turtle",name:"Turtle",import:()=>e(()=>import("./turtle-BVy4HXn4.js"),[])},{id:"twig",name:"Twig",import:()=>e(()=>import("./twig-4agwRVFz.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e(()=>import("./typescript-DI7mmMRd.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e(()=>import("./typespec-BNdhC6HS.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e(()=>import("./typst-JIZTSUoJ.js"),[])},{id:"v",name:"V",import:()=>e(()=>import("./v-B66J5FdL.js"),[])},{id:"vala",name:"Vala",import:()=>e(()=>import("./vala-p2PL1w-1.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e(()=>import("./vb-Dv-GCw1m.js"),[])},{id:"verilog",name:"Verilog",import:()=>e(()=>import("./verilog-DKP7kpC6.js"),[])},{id:"vhdl",name:"VHDL",import:()=>e(()=>import("./vhdl-Cog-DhcW.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e(()=>import("./viml-0AN1aqkP.js"),[])},{id:"vue",name:"Vue",import:()=>e(()=>import("./vue-D3w_7BFv.js"),__vite__mapDeps([96,3,2,11,9,1,15]))},{id:"vue-html",name:"Vue HTML",import:()=>e(()=>import("./vue-html-a8uCr53v.js"),__vite__mapDeps([97,2]))},{id:"vue-vine",name:"Vue Vine",import:()=>e(()=>import("./vue-vine-2Gx6KHOr.js"),__vite__mapDeps([98,3,5,69,99,12,2]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e(()=>import("./vyper-sB2l1MOO.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>e(()=>import("./wasm-CSAWeJiV.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e(()=>import("./wenyan-CLHHXU5e.js"),[])},{id:"wgsl",name:"WGSL",import:()=>e(()=>import("./wgsl-DiTcYanS.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e(()=>import("./wikitext-DT8E9qe0.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>e(()=>import("./wit-CtjT-RdY.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e(()=>import("./wolfram-1xJNnwe2.js"),[])},{id:"xml",name:"XML",import:()=>e(()=>import("./xml-BsgRw6d1.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>e(()=>import("./xsl-DCNnPbrB.js"),__vite__mapDeps([100,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e(()=>import("./yaml-c2-Vhxho.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>e(()=>import("./zenscript-ChP1MlQf.js"),[])},{id:"zig",name:"Zig",import:()=>e(()=>import("./zig-rivS3YQG.js"),[])}],mr={...Object.fromEntries(pr.map(e=>[e.id,e.import])),...Object.fromEntries(pr.flatMap(e=>e.aliases?.map(n=>[n,e.import])||[]))},fr=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e(()=>import("./andromeeda-C4gqWexZ.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e(()=>import("./ayu-dark-DYE7WIF3.js"),[])},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e(()=>import("./ayu-light-BA47KaF1.js"),[])},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e(()=>import("./ayu-mirage-32ctXXKs.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e(()=>import("./catppuccin-frappe-DFWUc33u.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[])},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e(()=>import("./horizon-BUw7H-hv.js"),[])},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>e(()=>import("./horizon-bright-Cn-bp-IR.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>e(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e(()=>import("./night-owl-light-CMTm3GFP.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>e(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>e(()=>import("./one-light-C3Wv6jpd.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>e(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e(()=>import("./rose-pine-qdsjHGoJ.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e(()=>import("./rose-pine-moon-D4_iv3hh.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e(()=>import("./synthwave-84-ChtBzv_y.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e(()=>import("./vesper-DU1UobuO.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],yr=Object.fromEntries(fr.map(e=>[e.id,e.import]));class br extends Error{constructor(e){super(e),this.name="ShikiError"}}function wr(){return"undefined"!=typeof performance?performance.now():Date.now()}const _r=(e,n)=>e+(n-e%n)%n;var kr=Object.defineProperty,xr=(e,n,t)=>((e,n,t)=>n in e?kr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t)(e,"symbol"!=typeof n?n+"":n,t);let zr=null;class jr{constructor(e){xr(this,"utf16Length"),xr(this,"utf8Length"),xr(this,"utf16Value"),xr(this,"utf8Value"),xr(this,"utf16OffsetToUtf8"),xr(this,"utf8OffsetToUtf16");const n=e.length,t=jr._utf8ByteLength(e),i=t!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=t);const r=i?new Uint32Array(t+1):null;i&&(r[t]=n);const o=new Uint8Array(t);let a=0;for(let c=0;c<n;c++){const t=e.charCodeAt(c);let l=t,u=!1;if(t>=55296&&t<=56319&&c+1<n){const n=e.charCodeAt(c+1);n>=56320&&n<=57343&&(l=65536+(t-55296<<10)|n-56320,u=!0)}i&&(s[c]=a,u&&(s[c+1]=a),l<=127?r[a+0]=c:l<=2047?(r[a+0]=c,r[a+1]=c):l<=65535?(r[a+0]=c,r[a+1]=c,r[a+2]=c):(r[a+0]=c,r[a+1]=c,r[a+2]=c,r[a+3]=c)),l<=127?o[a++]=l:l<=2047?(o[a++]=192|(1984&l)>>>6,o[a++]=128|(63&l)>>>0):l<=65535?(o[a++]=224|(61440&l)>>>12,o[a++]=128|(4032&l)>>>6,o[a++]=128|(63&l)>>>0):(o[a++]=240|(1835008&l)>>>18,o[a++]=128|(258048&l)>>>12,o[a++]=128|(4032&l)>>>6,o[a++]=128|(63&l)>>>0),u&&c++}this.utf16Length=n,this.utf8Length=t,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}static _utf8ByteLength(e){let n=0;for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);let r=s,o=!1;if(s>=55296&&s<=56319&&t+1<i){const n=e.charCodeAt(t+1);n>=56320&&n<=57343&&(r=65536+(s-55296<<10)|n-56320,o=!0)}n+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&t++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const Er=class e{constructor(n){if(xr(this,"id",++e.LAST_ID),xr(this,"_onigBinding"),xr(this,"content"),xr(this,"utf16Length"),xr(this,"utf8Length"),xr(this,"utf16OffsetToUtf8"),xr(this,"utf8OffsetToUtf16"),xr(this,"ptr"),!zr)throw new br("Must invoke loadWasm first.");this._onigBinding=zr,this.content=n;const t=new jr(n);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=zr.omalloc(1e4)),e._sharedPtrInUse=!0,zr.HEAPU8.set(t.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=t.createString(zr)}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===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};xr(Er,"LAST_ID",0),xr(Er,"_sharedPtr",0),xr(Er,"_sharedPtrInUse",!1);let vr,Ar=Er;class Sr{constructor(e){if(xr(this,"_onigBinding"),xr(this,"_ptr"),!zr)throw new br("Must invoke loadWasm first.");const n=[],t=[];for(let o=0,a=e.length;o<a;o++){const i=new jr(e[o]);n[o]=i.createString(zr),t[o]=i.utf8Length}const i=zr.omalloc(4*e.length);zr.HEAPU32.set(n,i/4);const s=zr.omalloc(4*e.length);zr.HEAPU32.set(t,s/4);const r=zr.createOnigScanner(i,s,e.length);for(let o=0,a=e.length;o<a;o++)zr.ofree(n[o]);zr.ofree(s),zr.ofree(i),0===r&&function(e){throw new br(e.UTF8ToString(e.getLastOnigError()))}(zr),this._onigBinding=zr,this._ptr=r}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,t){let i=0;if("number"==typeof t&&(i=t),"string"==typeof e){e=new Ar(e);const t=this._findNextMatchSync(e,n,!1,i);return e.dispose(),t}return this._findNextMatchSync(e,n,!1,i)}_findNextMatchSync(e,n,t,i){const s=this._onigBinding,r=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i);if(0===r)return null;const o=s.HEAPU32;let a=r/4;const c=o[a++],l=o[a++],u=[];for(let h=0;h<l;h++){const n=e.convertUtf8OffsetToUtf16(o[a++]),t=e.convertUtf8OffsetToUtf16(o[a++]);u[h]={start:n,end:t,length:t-n}}return{index:c,captureIndices:u}}}function Cr(e){return n=>WebAssembly.instantiate(e,n)}const Lr=dr({langs:mr,themes:yr,engine:()=>async function(e){return e&&await function(e){return vr||(vr=async function(){zr=await async function(){let n,t;const i={};function s(e){t=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}function r(e){try{return n.grow(e-t.byteLength+65535>>>16),s(n.buffer),1}catch{}}const o="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,n){return e?function(e,n,t=1024){const i=n+t;let s=n;for(;e[s]&&!(s>=i);)++s;if(s-n>16&&e.buffer&&o)return o.decode(e.subarray(n,s));let r="";for(;n<s;){let t=e[n++];if(!(128&t)){r+=String.fromCharCode(t);continue}const i=63&e[n++];if(192==(224&t)){r+=String.fromCharCode((31&t)<<6|i);continue}const s=63&e[n++];if(t=224==(240&t)?(15&t)<<12|i<<6|s:(7&t)<<18|i<<12|s<<6|63&e[n++],t<65536)r+=String.fromCharCode(t);else{const e=t-65536;r+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return r}(i.HEAPU8,e,n):""}const c={emscripten_get_now:wr,emscripten_memcpy_big:function(e,n,t){i.HEAPU8.copyWithin(e,n,n+t)},emscripten_resize_heap:function(e){const n=i.HEAPU8.length,t=2147483648;if((e>>>=0)>t)return!1;for(let i=1;i<=4;i*=2){let s=n*(1+.2/i);if(s=Math.min(s,e+100663296),r(Math.min(t,_r(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};return await async function(){const t={env:c,wasi_snapshot_preview1:c},r=await(async n=>{let t=e;return t=await t,"function"==typeof t&&(t=await t(n)),"function"==typeof t&&(t=await t(n)),function(e){return"function"==typeof e.instantiator}(t)?t=await t.instantiator(n):function(e){return"function"==typeof e.default}(t)?t=await t.default(n):(function(e){return void 0!==e.data}(t)&&(t=t.data),function(e){return"undefined"!=typeof Response&&e instanceof Response}(t)?t="function"==typeof WebAssembly.instantiateStreaming?await function(e){return n=>WebAssembly.instantiateStreaming(e,n)}(t)(n):await function(e){return async n=>{const t=await e.arrayBuffer();return WebAssembly.instantiate(t,n)}}(t)(n):function(e){return"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array}(t)||t instanceof WebAssembly.Module?t=await Cr(t)(n):"default"in t&&t.default instanceof WebAssembly.Module&&(t=await Cr(t.default)(n))),"instance"in t&&(t=t.instance),"exports"in t&&(t=t.exports),t})(t);n=r.memory,s(n.buffer),Object.assign(i,r),i.UTF8ToString=a}(),i}()}(),vr)}(e),{createScanner:e=>new Sr(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new Ar(e)}}(e(()=>import("./wasm--yL7jHw-.js"),[]))});function Tr(e){if(1!==[...e].length)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}const qr=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Ir=String.raw;function Pr(e,n){if(null==e)throw new Error(n??"Value expected");return e}const Rr=Ir`\[\^?`,Nr=`c.? | C(?:-.?)?|${Ir`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Ir`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Ir`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Ir`o\{[^\}]*\}?`}|${Ir`\d{1,3}`}`,Or=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Dr=new RegExp(Ir`
3
3
  \\ (?:
4
4
  ${Nr}
5
5
  | [gk]<[^>]*>?