1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B1rsb5QC.js","./dwbxrGt_.js","./DNgb01dh.js","./u4bm_LMz.js","./gOa3Yz9U.js","./eACALr6E.js","./CyEc264g.js","./CkqQx3Va.js","./BN40hmum.js","./DWmkr0yC.js","./vocl-2a6.js","./CVESyXxo.js","./DmF4-xLG.js","./Bmb0A568.js","./D8nBeWSR.js","./Bu73EIfS.js","./BLhTXw86.js","./XF954dHc.js","./CK56Z9cH.js","./BA1ndEPy.js","./Cv3cJnDV.js","./CcPoRNJz.js","./DoiKbUTj.js","./CbUnruJU.js","./BhsLqr-4.js","./W2lx4xae.js","./HNM5thJl.js","./Bv_sPlCv.js","./FMvz1E70.js","./DhqJCFIX.js","./BzAMEn9Z.js","./5Vw9JATd.js","./DhG9BCpW.js","./BKbjiiqg.js","./IqKf4WGj.js","./B3Z_eaxm.js","./BaLI2h1d.js","./CNXuF1yM.js","./BJGgnGWZ.js","./BSHf-0eb.js","./BIguuW30.js","./BSPpinrx.js","./Dnfm4U7b.js","./s1PdnzAn.js","./BhC5s0V7.js","./DvA-6Bhw.js","./ClV7KpCc.js","./CM4fc1WH.js","./DqpEK-75.js","./CeZwWGti.js","./BbalPOsb.js","./BYqZ7etr.js","./CIiI48o2.js","./DRhUEtVu.js","./L9-HYnaW.js","./BgqZeg96.js","./BoZcIFWd.js","./BCawSwWi.js","./CK7S-5jS.js","./DUdzsfxe.js","./Cqv5JV-q.js","./DFW6HATB.js","./BJNXdUBN.js","./DL4Dju3v.js","./CodIOJDM.js","./Dk1rBueR.js","./CMnybHwx.js","./BjXeLqNd.js","./CuIYtGag.js","./D2O4HAMr.js","./CI15r38m.js","./i22b9gbM.js","./xfgw03QH.js","./KUYRHWK4.js","./D7v6OrNy.js","./CnsmiicP.js","./DbXoA79R.js","./i5HCB2tm.js","./bGS5FTDY.js","./DkpUthgY.js","./BTbGKmhu.js","./CY2R9RuK.js","./8Uu6eIa-.js","./C0hdQUNN.js","./-ALZ4IvE.js","./DhRVplvY.js","./BnfnAR_u.js","./C5-9kuJc.js","./Db-JQHi3.js","./CWJejSyX.js","./CBzZD_Xh.js","./CKfqYE_r.js","./Bnbw1zOw.js"])))=>i.map(i=>d[i]); 2var nr=Object.defineProperty;var or=(r,e,t)=>e in r?nr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var A=(r,e,t)=>or(r,typeof e!="symbol"?e+"":e,t);import{E as sr}from"./DrQEbvzs.js";import{s as et}from"./D37nSCL8.js";import{a3 as c,e as ar,f as lr,g as cr,o as tt,c as rt,a as be,m as Pe,h as te,r as it,a6 as ur}from"./BbEaBO5h.js";import{s as bt,f as mr,h as pr}from"./BGMNvqfX.js";function hr(r,e,t,i=!1){return{name:r,code(n){const o=n.children.filter(l=>l.type==="element"),s=[];o.forEach((l,a)=>{let u;for(const m of l.children){if(m.type!=="element")continue;const p=m.children[0];if(p.type!=="text")continue;let d=!1;p.value=p.value.replace(e,(...h)=>t.call(this,h,l,m,o,a)?(d=!0,""):h[0]),d&&!p.value.trim()&&(u=m)}if(u&&(l.children.splice(l.children.indexOf(u),1),l.children.length===0&&(s.push(l),i))){const m=n.children[n.children.indexOf(l)+1];m&&m.type==="text"&&m.value===` 3`&&s.push(m)}});for(const l of s)n.children.splice(n.children.indexOf(l),1)}}}function dr(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _r(r={},e="@shikijs/transformers:notation-map"){const{classMap:t={},classActivePre:i=void 0}=r;return hr(e,new RegExp(`\\s*(?://|/\\*|<!--|#|--|%{1,2}|;{1,2}|"|')\\s+\\[!code (${Object.keys(t).map(dr).join("|")})(:\\d+)?\\]\\s*(?:\\*/|-->)?\\s*$`),function([n,o,s=":1"],l,a,u,m){const p=Number.parseInt(s.slice(1),10);return u.slice(m,m+p).forEach(d=>{this.addClassToHast(d,t[o])}),i&&this.addClassToHast(this.pre,i),!0})}function fr(r={}){const{classActiveLine:e="highlighted",classActivePre:t="has-highlighted"}=r;return _r({classMap:{highlight:e,hl:e},classActivePre:t},"@shikijs/transformers:notation-highlight")}const Pt=[{id:"abap",name:"ABAP",import:()=>c(()=>import("./BwpQXVS2.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>c(()=>import("./Ci-La1BS.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>c(()=>import("./DOAn35dn.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>c(()=>import("./B1rsb5QC.js").then(r=>r.f),__vite__mapDeps([0,1,2,3]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>c(()=>import("./gOa3Yz9U.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>c(()=>import("./Dn00JSTd.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>c(()=>import("./BzwtH5UL.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>c(()=>import("./CyEc264g.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>c(()=>import("./DIt9OTko.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>c(()=>import("./CJxt7p29.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c(()=>import("./CcSEeikT.js"),[],import.meta.url)},{id:"asm",name:"Assembly",import:()=>c(()=>import("./DPTZissz.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>c(()=>import("./vocl-2a6.js"),__vite__mapDeps([10,9,2,11,3,12]),import.meta.url)},{id:"awk",name:"AWK",import:()=>c(()=>import("./BINKOAKH.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>c(()=>import("./DCcCncrU.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>c(()=>import("./B9Vj0mJK.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>c(()=>import("./DDUKAZWS.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>c(()=>import("./DnyWjya5.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>c(()=>import("./CpWBKVjh.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>c(()=>import("./BWkuYGGO.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>c(()=>import("./Bmb0A568.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]),import.meta.url)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c(()=>import("./Bu73EIfS.js"),__vite__mapDeps([15,16]),import.meta.url)},{id:"c",name:"C",import:()=>c(()=>import("./BhsLqr-4.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c(()=>import("./CEjiMJLT.js"),[],import.meta.url)},{id:"cairo",name:"Cairo",import:()=>c(()=>import("./XF954dHc.js"),__vite__mapDeps([17,18]),import.meta.url)},{id:"clarity",name:"Clarity",import:()=>c(()=>import("./CXmV_HiI.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c(()=>import("./mLcCfA0-.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>c(()=>import("./DbXoA79R.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>c(()=>import("./BA1ndEPy.js"),__vite__mapDeps([19,1,2,3,8]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>c(()=>import("./Bp6g37R7.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c(()=>import("./Bdprqoiu.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>c(()=>import("./Cv3cJnDV.js"),__vite__mapDeps([20,2]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c(()=>import("./CQO4gZEw.js"),[],import.meta.url)},{id:"coq",name:"Coq",import:()=>c(()=>import("./BCzYJAay.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>c(()=>import("./CcPoRNJz.js"),__vite__mapDeps([21,22,23,24,14]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>c(()=>import("./W2lx4xae.js"),__vite__mapDeps([25,1,2,3,14,24,26]),import.meta.url)}
3,{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c(()=>import("./D7v6OrNy.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>c(()=>import("./u4bm_LMz.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>c(()=>import("./B0qRVHPH.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>c(()=>import("./DmZ-uG0V.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c(()=>import("./DfpIq38s.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>c(()=>import("./B5L7zzq-.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>c(()=>import("./C4Ro8ZjH.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>c(()=>import("./yA8e6OR-.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>c(()=>import("./DEIpsLCJ.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>c(()=>import("./Dnfm4U7b.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c(()=>import("./COcR7UxN.js"),[],import.meta.url)},{id:"dotenv",name:"dotEnv",import:()=>c(()=>import("./DQxx3LPD.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>c(()=>import("./BMwgFBEQ.js"),[],import.meta.url)},{id:"edge",name:"Edge",import:()=>c(()=>import("./Bv_sPlCv.js"),__vite__mapDeps([27,11,1,2,3,28]),import.meta.url)},{id:"elixir",name:"Elixir",import:()=>c(()=>import("./DhqJCFIX.js"),__vite__mapDeps([29,1,2,3]),import.meta.url)},{id:"elm",name:"Elm",import:()=>c(()=>import("./BzAMEn9Z.js"),__vite__mapDeps([30,23,24]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c(()=>import("./CMz7PuSU.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>c(()=>import("./5Vw9JATd.js"),__vite__mapDeps([31,1,2,3,32,7,8,14,24,26,33]),import.meta.url)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>c(()=>import("./CMOi41r9.js"),[],import.meta.url)},{id:"fennel",name:"Fennel",import:()=>c(()=>import("./dZn0vQkf.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>c(()=>import("./CQzXS8_C.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c(()=>import("./CNRQ974Q.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>c(()=>import("./IqKf4WGj.js"),__vite__mapDeps([34,35]),import.meta.url)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c(()=>import("./B3Z_eaxm.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>c(()=>import("./BaLI2h1d.js"),__vite__mapDeps([36,37]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>c(()=>import("./BJGgnGWZ.js"),__vite__mapDeps([38,39,40]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>c(()=>import("./BIguuW30.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>c(()=>import("./BSHf-0eb.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>c(()=>import("./DJEtsjbi.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>c(()=>import("./-30QC5Em.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>c(()=>import("./BSPpinrx.js"),__vite__mapDeps([41,42]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>c(()=>import("./s1PdnzAn.js"),__vite__mapDeps([43,26]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>c(()=>import("./C30t_gpS.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>c(()=>import("./BhC5s0V7.js"),__vite__mapDeps([44,2,11,3,1]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>c(()=>import("./DvA-6Bhw.js"),__vite__mapDeps([45,11,3,2,1]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>c(()=>import("./CbUnruJU.js"),__vite__mapDeps([23,24]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>c(()=>import("./CmWLV2bY.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>c(()=>import("./C5-9kuJc.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>c(()=>import("./ClV7KpCc.js"),__vite__mapDeps([46,2,11,47,48]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>c(()=>import("./BWslPs4p.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>c(()=>import("./CeZwWGti.js"),__vite__mapDeps([49,1,2,3,14]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>c(()=>import("./BbalPOsb.js"),__vite__mapDeps([50,2,3]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>c(()=>import("./BYqZ7etr.js"),__vite__mapDeps([51,1,2,3,52]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c(()=>import("./ChDww4um.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>c(()=>import("./BgqZeg96.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>c(()=>import("./Cztwc-HH.js"),[],import.meta.url)}
3,{id:"hjson",name:"Hjson",import:()=>c(()=>import("./D9Bn7OQI.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>c(()=>import("./DkpUthgY.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>c(()=>import("./dwbxrGt_.js"),__vite__mapDeps([1,2,3]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>c(()=>import("./FMvz1E70.js"),__vite__mapDeps([28,1,2,3]),import.meta.url)},{id:"http",name:"HTTP",import:()=>c(()=>import("./DRhUEtVu.js"),__vite__mapDeps([53,26,9,7,8,46,2,11,47,48]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>c(()=>import("./L9-HYnaW.js"),__vite__mapDeps([54,55]),import.meta.url)},{id:"hy",name:"Hy",import:()=>c(()=>import("./YurBl9Qv.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>c(()=>import("./BoZcIFWd.js"),__vite__mapDeps([56,11]),import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>c(()=>import("./BjABl1g7.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>c(()=>import("./BN40hmum.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>c(()=>import("./DNgb01dh.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>c(()=>import("./BCawSwWi.js"),__vite__mapDeps([57,1,2,3]),import.meta.url)},{id:"jison",name:"Jison",import:()=>c(()=>import("./CK7S-5jS.js"),__vite__mapDeps([58,2]),import.meta.url)},{id:"json",name:"JSON",import:()=>c(()=>import("./DWmkr0yC.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>c(()=>import("./BDjtpMT8.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>c(()=>import("./B8E-_56i.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>c(()=>import("./NKd-Y1zG.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>c(()=>import("./CpRrwcwt.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c(()=>import("./DlYXzDlu.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>c(()=>import("./CM4fc1WH.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>c(()=>import("./DUdzsfxe.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]),import.meta.url)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c(()=>import("./BZRbnyjI.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c(()=>import("./plSVBvJQ.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>c(()=>import("./DFW6HATB.js"),__vite__mapDeps([61,62,60]),import.meta.url)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c(()=>import("./yLioyJ2E.js"),[],import.meta.url)},{id:"less",name:"Less",import:()=>c(()=>import("./Dk1rBueR.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>c(()=>import("./DL4Dju3v.js"),__vite__mapDeps([63,1,2,3,9]),import.meta.url)},{id:"log",name:"Log file",import:()=>c(()=>import("./B4_rEpOs.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>c(()=>import("./Dtn98rcr.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>c(()=>import("./BKbjiiqg.js"),__vite__mapDeps([33,24]),import.meta.url)},{id:"luau",name:"Luau",import:()=>c(()=>import("./DepYB8Ml.js"),[],import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c(()=>import("./DNDvMORL.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c(()=>import("./CNXuF1yM.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>c(()=>import("./CodIOJDM.js"),__vite__mapDeps([64,3,65,5,2]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>c(()=>import("./Kxp7UmFj.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>c(()=>import("./CMnybHwx.js"),__vite__mapDeps([66,37,52,28,1,2,3]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>c(()=>import("./Bcw97oti.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c(()=>import("./BZ3P6AVf.js"),[],import.meta.url)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c(()=>import("./BzaEo2Du.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>c(()=>import("./B2bjgU-v.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>c(()=>import("./EZUUsui8.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c(()=>import("./DLbgOhZU.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c(()=>import("./B2uSYIFn.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>c(()=>import("./BjXeLqNd.js"),__vite__mapDeps([67,33,24]),import.meta.url)},{id:"nim",name:"Nim",import:()=>c(()=>import("./CuIYtGag.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,37]),import.meta.url)},{id:"nix",name:"Nix",import:()=>c(()=>import("./DVWcdiGS.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c(()=>import("./ZJvK9Z2N.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c(()=>import("./B6NdQBKR.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>c(()=>import("./BkG9CdHo.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>c(()=>import("./CLmbwNS9.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>c(()=>import("./JqZropPD.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>c(()=>import("./D2O4HAMr.js"),__vite__mapDeps([69,1,2,3,7,8,14]),import.meta.url)},{id:"php",name:"PHP",import:()=>c(()=>import("./CI15r38m.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>c(()=>import("./LKU2TuZ1.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c(()=>import("./BFLt1xDp.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>c(()=>import("./DmF4-xLG.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>c(()=>import("./ByY1Guvr.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>c(()=>import("./DES0gjzB.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>c(()=>import("./DFIOpqzz.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>c(()=>import("./BNxDCkIA.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c(()=>
3import("./hdsyEllQ.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>c(()=>import("./i22b9gbM.js"),__vite__mapDeps([71,2,3,1]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>c(()=>import("./DWMP3yrW.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>c(()=>import("./DvQyZZSe.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>c(()=>import("./CK56Z9cH.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>c(()=>import("./xfgw03QH.js"),__vite__mapDeps([72,2]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>c(()=>import("./C8lEn-DE.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>c(()=>import("./DhMKtDLN.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>c(()=>import("./Cqv5JV-q.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>c(()=>import("./CwIbMU3B.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c(()=>import("./DZ4hUExO.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>c(()=>import("./KUYRHWK4.js"),__vite__mapDeps([73,1,2,3,74]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>c(()=>import("./CrOfvjVs.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c(()=>import("./DoiKbUTj.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>c(()=>import("./Dzwn3p-3.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>c(()=>import("./BGct0Hx7.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>c(()=>import("./CnsmiicP.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,52,76,32,7,8,33]),import.meta.url)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>c(()=>import("./DhG9BCpW.js"),__vite__mapDeps([32,1,2,3,7,8,14,24,26,33]),import.meta.url)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c(()=>import("./Bjs2cL5p.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>c(()=>import("./i5HCB2tm.js"),__vite__mapDeps([77,14]),import.meta.url)},{id:"sass",name:"Sass",import:()=>c(()=>import("./BrbOHqWv.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>c(()=>import("./Lp17StYA.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>c(()=>import("./BbccZ3y2.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>c(()=>import("./eACALr6E.js"),__vite__mapDeps([5,3]),import.meta.url)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c(()=>import("./BLhTXw86.js"),[],import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c(()=>import("./bGS5FTDY.js"),__vite__mapDeps([78,79]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c(()=>import("./HNM5thJl.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>c(()=>import("./BTbGKmhu.js"),__vite__mapDeps([80,26]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>c(()=>import("./DsCg8CPl.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>c(()=>import("./DymQr0nX.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>c(()=>import("./CY2R9RuK.js"),__vite__mapDeps([81,1,2,3]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>c(()=>import("./8Uu6eIa-.js"),__vite__mapDeps([82,83]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c(()=>import("./j_FrBdja.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>c(()=>import("./D8nBeWSR.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>c(()=>import("./D-RymO5g.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>c(()=>import("./-ALZ4IvE.js"),__vite__mapDeps([84,14]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c(()=>import("./DwU8c_yx.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>c(()=>import("./DhRVplvY.js"),__vite__mapDeps([85,2,11,3,12]),import.meta.url)},{id:"swift",name:"Swift",import:()=>c(()=>import("./D2TqM893.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>c(()=>import("./DFQ4Xr-4.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>c(()=>import("./DA0ESIWO.js"),[],import.meta.url)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c(()=>import("./CGXjegLJ.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>c(()=>import("./CQjiPCtT.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>c(()=>import("./NUI3YrRW.js"),[],import.meta.url)}
3,{id:"templ",name:"Templ",import:()=>c(()=>import("./BnfnAR_u.js"),__vite__mapDeps([86,87,2,3]),import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c(()=>import("./rf8nNrOk.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>c(()=>import("./BJNXdUBN.js"),__vite__mapDeps([62,60]),import.meta.url)},{id:"toml",name:"TOML",import:()=>c(()=>import("./Dwo6uFCY.js"),[],import.meta.url)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>c(()=>import("./Db-JQHi3.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]),import.meta.url)},{id:"tsv",name:"TSV",import:()=>c(()=>import("./B_m7g4N7.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>c(()=>import("./DqpEK-75.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>c(()=>import("./C0hdQUNN.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>c(()=>import("./CWJejSyX.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,24,26,33]),import.meta.url)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>c(()=>import("./CVESyXxo.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c(()=>import("./B_R80ZlN.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c(()=>import("./F89DG-fP.js"),[],import.meta.url)}
3,{id:"v",name:"V",import:()=>c(()=>import("./DH4N8IuU.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>c(()=>import("./C8pgRvQH.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>c(()=>import("./Bv-mwDEg.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>c(()=>import("./6RUVFG9U.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>c(()=>import("./IBB5Tl9j.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c(()=>import("./CIxipgmy.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>c(()=>import("./CBzZD_Xh.js"),__vite__mapDeps([90,1,2,3,11,9,28]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>c(()=>import("./CKfqYE_r.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c(()=>import("./DzaHHFTY.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>c(()=>import("./sH2JAGjN.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>c(()=>import("./7A4Fjokl.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>c(()=>import("./CSoQzgif.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c(()=>import("./BqtQrzRp.js"),[],import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c(()=>import("./aeT0-ak7.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>c(()=>import("./CkqQx3Va.js"),__vite__mapDeps([7,8]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>c(()=>import("./Bnbw1zOw.js"),__vite__mapDeps([92,7,8]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c(()=>import("./CIiI48o2.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>c(()=>import("./NgWrSVUg.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>c(()=>import("./D44NvAEk.js"),[],import.meta.url)}],gr=Object.fromEntries(Pt.map(r=>[r.id,r.import])),Er=Object.fromEntries(Pt.flatMap(r=>{var e;return((e=r.aliases)==null?void 0:e.map(t=>[t,r.import]))||[]})),yr={...gr,...Er},vr=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c(()=>import("./C3khCPGq.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c(()=>import("./D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c(()=>import("./Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>c(()=>import("./CD_QflpE.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c(()=>import("./DRW-0cLl.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c(()=>import("./C-_shW-Y.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c(()=>import("./LGGdnPYs.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c(()=>import("./B74Y8nHz.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c(()=>import("./BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c(()=>import("./BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c(()=>import("./BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c(()=>import("./C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c(()=>import("./DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c(()=>import("./Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c(()=>import("./DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c(()=>import("./E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c(()=>import("./DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c(()=>import("./D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c(()=>import("./BfjtVDDH.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>c(()=>import("./DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c(()=>import("./RXHOmnpW.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c(()=>import("./zchoCBdH.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c(()=>import("./2aygx1xg.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c(()=>import("./DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c(()=>import("./w1el_4yc.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c(()=>import("./D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c(()=>import("./BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c(()=>import("./B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c(()=>import("./CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c(()=>import("./Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c(()=>import("./CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c(()=>import("./CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c(()=>import("./CQWsIgnU.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c(()=>import("./DdAYiE08.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>c(()=>import("./Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c(()=>import("./GBQ2dnAY.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>c(()=>import("./PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c(()=>import("./3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c(()=>import("./CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>c(()=>import("./2pWuV6-S.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>c(()=>import("./CmCqftbK.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>c(()=>import("./Ds-gbosJ.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>c(()=>import("./CjDtw9vr.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c(()=>import("./BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c(()=>import("./DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c(()=>import("./Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c(()=>import("./CmY0Y6Yh.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c(()=>import("./DZQMDcrx.js"),[],import.meta.url)}
3,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c(()=>import("./CbfX1IO0.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c(()=>import("./DBQeEorK.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c(()=>import("./BEBZ7ncR.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c(()=>import("./Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c(()=>import("./D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c(()=>import("./CVO1_9PV.js"),[],import.meta.url)}],Rr=Object.fromEntries(vr.map(r=>[r.id,r.import]));let x=class extends Error{constructor(e){super(e),this.name="ShikiError"}},He=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Tr(){return 2147483648}function Ar(){return typeof performance<"u"?performance.now():Date.now()}const Lr=(r,e)=>r+(e-r%e)%e;async function br(r){let e,t;const i={};function n(h){t=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,_,v){i.HEAPU8.copyWithin(h,_,_+v)}function s(h){try{return e.grow(h-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function l(h){const _=i.HEAPU8.length;h=h>>>0;const v=Tr();if(h>v)return!1;for(let g=1;g<=4;g*=2){let f=_*(1+.2/g);f=Math.min(f,h+100663296);const E=Math.min(v,Lr(Math.max(h,f),65536));if(s(E))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,_,v=1024){const g=_+v;let f=_;for(;h[f]&&!(f>=g);)++f;if(f-_>16&&h.buffer&&a)return a.decode(h.subarray(_,f));let E="";for(;_<f;){let y=h[_++];if(!(y&128)){E+=String.fromCharCode(y);continue}const R=h[_++]&63;if((y&224)===192){E+=String.fromCharCode((y&31)<<6|R);continue}const T=h[_++]&63;if((y&240)===224?y=(y&15)<<12|R<<6|T:y=(y&7)<<18|R<<12|T<<6|h[_++]&63,y<65536)E+=String.fromCharCode(y);else{const O=y-65536;E+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return E}function m(h,_){return h?u(i.HEAPU8,h,_):""}const p={emscripten_get_now:Ar,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function d(){const _=await r({env:p,wasi_snapshot_preview1:p});e=_.memory,n(e.buffer),Object.assign(i,_),i.UTF8ToString=m}return await d(),i}let P=null;function Pr(r){throw new He(r.UTF8ToString(r.getLastOnigError()))}class ve{constructor(e){A(this,"utf16Length");A(this,"utf8Length");A(this,"utf16Value");A(this,"utf8Value");A(this,"utf16OffsetToUtf8");A(this,"utf8OffsetToUtf16");const t=e.length,i=ve._utf8ByteLength(e),n=i!==t,o=n?new Uint32Array(t+1):null;n&&(o[t]=i);const s=n?new Uint32Array(i+1):null;n&&(s[i]=t);const l=new Uint8Array(i);let a=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let p=m,d=!1;if(m>=55296&&m<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(p=(m-55296<<10)+65536|h-56320,d=!0)}n&&(o[u]=a,d&&(o[u+1]=a),p<=127?s[a+0]=u:p<=2047?(s[a+0]=u,s[a+1]=u):p<=65535?(s[a+0]=u,s[a+1]=u,s[a+2]=u):(s[a+0]=u,s[a+1]=u,s[a+2]=u,s[a+3]=u)),p<=127?l[a++]=p:p<=2047?(l[a++]=192|(p&1984)>>>6,l[a++]=128|(p&63)>>>0):p<=65535?(l[a++]=224|(p&61440)>>>12,l[a++]=128|(p&4032)>>>6,l[a++]=128|(p&63)>>>0):(l[a++]=240|(p&1835008)>>>18,l[a++]=128|(p&258048)>>>12,l[a++]=128|(p&4032)>>>6,l[a++]=128|(p&63)>>>0),d&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const o=e.charCodeAt(i);let s=o,l=!1;if(o>=55296&&o<=56319&&i+1<n){const a=e.charCodeAt(i+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,l&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const w=class w{constructor(e){A(this,"id",++w.LAST_ID);A(this,"_onigBinding");A(this,"content");A(this,"utf16Length");A(this,"utf8Length");A(this,"utf16OffsetToUtf8");A(this,"utf8OffsetToUtf16");A(this,"ptr");if(!P)throw new He("Must invoke loadWasm first.");this._onigBinding=P,this.content=e;const t=new ve(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8Off
vendor: 38,074 bytes, lines 3-5
3setToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse?(w._sharedPtr||(w._sharedPtr=P.omalloc(1e4)),w._sharedPtrInUse=!0,P.HEAPU8.set(t.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr):this.ptr=t.createString(P)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===w._sharedPtr?w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};A(w,"LAST_ID",0),A(w,"_sharedPtr",0),A(w,"_sharedPtrInUse",!1);let ce=w;class Ir{constructor(e){A(this,"_onigBinding");A(this,"_ptr");if(!P)throw new He("Must invoke loadWasm first.");const t=[],i=[];for(let l=0,a=e.length;l<a;l++){const u=new ve(e[l]);t[l]=u.createString(P),i[l]=u.utf8Length}const n=P.omalloc(4*e.length);P.HEAPU32.set(t,n/4);const o=P.omalloc(4*e.length);P.HEAPU32.set(i,o/4);const s=P.createOnigScanner(n,o,e.length);for(let l=0,a=e.length;l<a;l++)P.ofree(t[l]);P.ofree(o),P.ofree(n),s===0&&Pr(P),this._onigBinding=P,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let n=0;if(typeof i=="number"&&(n=i),typeof e=="string"){e=new ce(e);const o=this._findNextMatchSync(e,t,!1,n);return e.dispose(),o}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const u=l[a++],m=l[a++],p=[];for(let d=0;d<m;d++){const h=e.convertUtf8OffsetToUtf16(l[a++]),_=e.convertUtf8OffsetToUtf16(l[a++]);p[d]={start:h,end:_,length:_-h}}return{index:u,captureIndices:p}}}function Sr(r){return typeof r.instantiator=="function"}function Or(r){return typeof r.default=="function"}function wr(r){return typeof r.data<"u"}function Cr(r){return typeof Response<"u"&&r instanceof Response}function Dr(r){var e;return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,r))||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let re;function kr(r){if(re)return re;async function e(){P=await br(async t=>{let i=r;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),Sr(i)?i=await i.instantiator(t):Or(i)?i=await i.default(t):(wr(i)&&(i=i.data),Cr(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await Nr(i)(t):i=await Vr(i)(t):Dr(i)?i=await Ie(i)(t):i instanceof WebAssembly.Module?i=await Ie(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Ie(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return re=e(),re}function Ie(r){return e=>WebAssembly.instantiate(r,e)}function Nr(r){return e=>WebAssembly.instantiateStreaming(r,e)}function Vr(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let xr;function Gr(){return xr}async function It(r){return r&&await kr(r),{createScanner(e){return new Ir(e)},createString(e){return new ce(e)}}}function Mr(r){return We(r)}function We(r){return Array.isArray(r)?Br(r):typeof r=="object"?jr(r):r}function Br(r){let e=[];for(let t=0,i=r.length;t<i;t++)e[t]=We(r[t]);return e}function jr(r){let e={};for(let t in r)e[t]=We(r[t]);return e}function St(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function Ot(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?Ot(r.substring(0,r.length-1)):r.substr(~e+1)}var Se=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ie=class{static hasCaptures(r){return r===null?!1:(Se.lastIndex=0,Se.test(r))}static replaceCaptures(r,e,t){return r.replace(Se,(i,n,o,s)=>{let l=t[parseInt(n||o,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return i})}};function wt(r,e){return r<e?-1:r>e?1:0}function Ct(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,i=e.length;if(t===i){for(let n=0;n<t;n++){let o=wt(r[n],e[n]);if(o!==0)return o}return 0}return t-i}function nt(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function Dt(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var kt=class{constructor(r){this.fn=r,this.cache=new Map}get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},ue=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t,this._cachedMatchRoot=new kt(i=>this._root.match(i))}static createFromRawTheme(r,e){return this.createFromParsedTheme(Hr(r),e)}static createFromParsedTheme(r,e){return Ur(r,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(n=>$r(r.parent,n.parentScopes));return i?new Nt(i.fontStyle,i.foreground,i.background):null}},Oe=class ae{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new ae(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new ae(t,e[i]);return t}push(e){return new ae(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function $r(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],n=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],n=!0}for(;r&&!Fr(r.scopeName,i);){if(n)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Fr(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var Nt=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function Hr(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],i=0;for(let n=0,o=e.length;n<o;n++){let s=e[n];if(!s.settings)continue;let l;if(typeof s.scope=="string"){let p=s.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),l=p.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let p=s.settings.fontStyle.split(" ");for(let d=0,h=p.length;d<h;d++)switch(p[d]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof s.settings.foreground=="string"&&nt(s.settings.foreground)&&(u=s.settings.foreground);let m=null;typeof s.settings.background=="string"&&nt(s.settings.background)&&(m=s.settings.background);for(let p=0,d=l.length;p<d;p++){let _=l[p].trim().split(" "),v=_[_.length-1],g=null;_.length>1&&(g=_.slice(0,_.length-1),g.reverse()),t[i++]=new Wr(v,g,n,a,u,m)}}return t}var Wr=class{constructor(r,e,t,i,n,o){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}},V=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(V||{});function Ur(r,e){r.sort((a,u)=>{let m=wt(a.scope,u.scope);return m!==0||(m=Ct(a.parentScopes,u.parentScopes),m!==0)?m:a.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let a=r.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(i=a.foreground),a.background!==null&&(n=a.background)}let o=new qr(e),s=new Nt(t,o.getId(i),o.getId(n)),l=new Jr(new ke(0,null,-1,0,0),[]);for(let a=0,u=r.length;a<u;a++){let m=r[a];l.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new ue(o,s,l)}var qr=class{constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},zr=Object.freeze([]),ke=class Vt{constructor(e,t,i,n,o){this.scopeDepth=e,this.parentScopes=t||zr,this.fontStyle=i,this.foreground=n,this.background=o}clone(){return new Vt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),n!==0&&(this.background=n)}},Jr=class Ne{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,n=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[n]===">"&&n++,!(i>=e.parentScopes.length||n>=t.parentScopes.length);){const o=t.parentScopes[n].length-e.parentScopes[i].length;if(o!==0)return o;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,o;if(i===-1?(n=e,o=""):(n=e.substring(0,i),o=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Ne._cmpBySpecificity),t}insert(e,t,i,n,o,s){if(t===""){this._doInsertHere(e,i,n,o,s);return}let l=t.indexOf("."),a,u;l===-1?(a=t,u=""):(a=t.substring(0,l),u=t.substring(l+1));let m;this._children.hasOwnProperty(a)?m=this._children[a]:(m=new Ne(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=m),m.insert(e+1,u,i,n,o,s)}_doInsertHere(e,t,i,n,o){if(t===null){this._mainRule.acceptOverwrite(e,i,n,o);return}for(let s=0,l=this._rulesWithParentScopes.length;s<l;s++){let a=this._rulesWithParentScopes[s];if(Ct(a.parentScopes,t)===0){a.acceptOverwrite(e,i,n,o);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,i,n,o))}},H=class C{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=C.getLanguageId(e),i=C.getTokenType(e),n=C.getFontStyle(e),o=C.getForeground(e),s=C.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,n,o,s,l){let a=C.getLanguageId(e),u=C.getTokenType(e),m=C.containsBalancedBrackets(e)?1:0,p=C.getFontStyle(e),d=C.getForeground(e),h=C.getBackground(e);return t!==0&&(a=t),i!==8&&(u=i),n!==null&&(m=n?1:0),o!==-1&&(p=o),s!==0&&(d=s),l!==0&&(h=l),(a<<0|u<<8|m<<10|p<<11|d<<15|h<<24)>>>0}};function me(r,e){const t=[],i=Kr(r);let n=i.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=s();if(t.push({matcher:u,priority:a}),n!==",")break;n=i.next()}return t;function o(){if(n==="-"){n=i.next();const a=o();return u=>!!a&&!a(u)}if(n==="("){n=i.next();const a=l();return n===")"&&(n=i.next()),a}if(ot(n)){const a=[];do a.push(n),n=i.next();while(ot(n));return u=>e(a,u)}return null}function s(){const a=[];let u=o();for(;u;)a.push(u),u=o();return m=>a.every(p=>p(m))}function l(){const a=[];let u=s();for(;u&&(a.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=s()}return m=>a.some(p=>p(m))}}function ot(r){return!!r&&!!r.match(/[\w\.:]+/)}function Kr(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(r),i}}}function xt(r){typeof r.dispose=="function"&&r.dispose()}var K=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},Qr=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Xr=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},Yr=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new K(this.initialScopeName)]}processQueue(){const r=this.Q;this.Q=[];const e=new Xr;for(const t of r)Zr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof K){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Zr(r,e,t,i){const n=t.lookup(r.scopeName);if(!n){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);r instanceof K?le({baseGrammar:o,selfGrammar:n},i):Ve(r.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},i);const s=t.injections(r.scopeName);if(s)for(const l of s)i.add(new K(l))}function Ve(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];pe([i],e,t)}}function le(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&pe(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&pe(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function pe(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?St({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&pe(i.patterns,{...e,repository:n},t);const o=i.include;if(!o)continue;const s=Gt(o);switch(s.kind){case 0:le({...e,selfGrammar:e.baseGrammar},t);break;case 1:le(e,t);break;case 2:Ve(s.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};s.kind===4?Ve(s.ruleName,a,t):le(a,t)}else s.kind===4?t.add(new Qr(s.scopeName,s.ruleName)):t.add(new K(s.scopeName));break}}}var ei=class{constructor(){this.kind=0}},ti=class{constructor(){this.kind=1}},ri=class{constructor(r){this.ruleName=r,this.kind=2}},ii=class{constructor(r){this.scopeName=r,this.kind=3}},ni=class{constructor(r,e){this.scopeName=r,this.ruleName=e,this.kind=4}};function Gt(r){if(r==="$base")return new ei;if(r==="$self")return new ti;const e=r.indexOf("#");if(e===-1)return new ii(r);if(e===0)return new ri(r.substring(1));{const t=r.substring(0,e),i=r.substring(e+1);return new ni(t,i)}}var oi=/\\(\d+)/,st=/\\(\d+)/g,si=-1,Mt=-2;var Z=class{constructor(r,e,t,i){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=ie.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=ie.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${Ot(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:ie.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ie.replaceCaptures(this._contentName,r,e)}},ai=class extends Z{constructor(r,e,t,i,n){super(r,e,t,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,i){throw new Error("Not supported!")}},li=class extends Z{constructor(r,e,t,i,n){super(r,e,t,null),this._match=new Q(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},at=class extends Z{constructor(r,e,t,i,n){super(r,e,t,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},xe=class extends Z{constructor(r,e,t,i,n,o,s,l,a,u){super(r,e,t,i),this._begin=new Q(n,this.id),this.beginCaptures=o,this._end=new Q(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new X;for(const t of this.patterns)r.getRule(t).collectPatterns(r,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},he=class extends Z{constructor(r,e,t,i,n,o,s,l,a){super(r,e,t,i),this._begin=new Q(n,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new Q(s,Mt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new X;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new X,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"ï¿¿"),this._cachedCompiledWhilePatterns}},Bt=class I{static createCaptureRule(e,t,i,n,o){return e.registerRule(s=>new ai(t,s,i,n,o))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new li(e.$vscodeTextmateLocation,e.id,e.name,e.match,I._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=St({},i,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new at(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,I._compilePatterns(o,t,i))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,I._compileCaptures(e.whileCaptures||e.captures,t,i),I._compilePatterns(e.patterns,t,i)):new xe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,I._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,I._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let n=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);l>o&&(o=l)}for(let s=0;s<=o;s++)n[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let a=0;e[s].patterns&&(a=I.getCompiledRuleId(e[s],t,i)),n[l]=I.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let o=0,s=e.length;o<s;o++){const l=e[o];let a=-1;if(l.include){const u=Gt(l.include);switch(u.kind){case 0:case 1:a=I.getCompiledRuleId(i[l.include],t,i);break;case 2:let m=i[u.ruleName];m&&(a=I.getCompiledRuleId(m,t,i));break;case 3:case 4:const p=u.scopeName,d=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(p,i);if(h)if(d){let _=h.repository[d];_&&(a=I.getCompiledRuleId(_,t,h.repository))}else a=I.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else a=I.getCompiledRuleId(l,t,i);if(a!==-1){const u=t.getRule(a);let m=!1;if((u instanceof at||u instanceof xe||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},Q=class jt{constructor(e,t){if(e){const i=e.length;let n=0,o=[],s=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(n,l)),o.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(s=!0),l++}this.hasAnchor=s,n===0?this.source=e:(o.push(e.substring(n,i)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=oi.test(this.source)}clone(){return new jt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let i=t.map(n=>e.substring(n.start,n.end));return st.lastIndex=0,this.source.replace(st,(n,o)=>Dt(i[parseInt(o,10)]||""))}_buildAnchorCache(){let e=[],t=[],i=[],n=[],o,s,l,a;for(o=0,s=this.source.length;o<s;o++)l=this.source.charAt(o),e[o]=l,t[o]=l,i[o]=l,n[o]=l,l==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="ï¿¿",t[o+1]="ï¿¿",i[o+1]="A",n[o+1]="A"):a==="G"?(e[o+1]="ï¿¿",t[o+1]="G",i[o+1]="ï¿¿",n[o+1]="G"):(e[o+1]=a,t[o+1]=a,i[o+1]=a,n[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},X=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new lt(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let i=this._items.map(n=>n.resolveAnchors(e,t));return new lt(r,i,this._items.map(n=>n.ruleId))}},lt=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(` 4`)}findNextMatchSync(r,e,t){const i=this.scanner.findNextMatchSync(r,e,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Ge=class{constructor(r,e){this.languageId=r,this.tokenType=e}},Ue=class Me{constructor(e,t){this._getBasicScopeAttributes=new kt(i=>{const n=this._scopeToLanguage(i),o=this._toStandardTokenType(i);return new Ge(n,o)}),this._defaultAttributes=new Ge(e,8),this._embeddedLanguagesMatcher=new ui(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Me._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Me.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!")}};Ue._NULL_SCOPE_METADATA=new Ge(0,0);Ue.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var ci=Ue,ui=class{constructor(r){if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,i])=>Dt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},ct=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function $t(r,e,t,i,n,o,s,l){const a=e.content.length;let u=!1,m=-1;if(s){const h=mi(r,e,t,i,n,o);n=h.stack,i=h.linePos,t=h.isFirstLine,m=h.anchorPosition}const p=Date.now();for(;!u;){if(l!==0&&Date.now()-p>l)return new ct(n,!0);d()}return new ct(n,!1);function d(){const h=pi(r,e,t,i,n,m);if(!h){o.produce(n,a),u=!0;return}const _=h.captureIndices,v=h.matchedRuleId,g=_&&_.length>0?_[0].end>i:!1;if(v===si){const f=n.getRule(r);o.produce(n,_[0].start),n=n.withContentNameScopesList(n.nameScopesList),z(r,e,t,n,o,f.endCaptures,_),o.produce(n,_[0].end);const E=n;if(n=n.parent,m=E.getAnchorPos(),!g&&E.getEnterPos()===i){n=E,o.produce(n,a),u=!0;return}}else{const f=r.getRule(v);o.produce(n,_[0].start);const E=n,y=f.getName(e.content,_),R=n.contentNameScopesList.pushAttributed(y,r);if(n=n.push(v,i,m,_[0].end===a,null,R,R),f instanceof xe){const T=f;z(r,e,t,n,o,T.beginCaptures,_),o.produce(n,_[0].end),m=_[0].end;const O=T.getContentName(e.content,_),L=R.pushAttributed(O,r);if(n=n.withContentNameScopesList(L),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,_))),!g&&E.hasSameRuleAs(n)){n=n.pop(),o.produce(n,a),u=!0;return}}else if(f instanceof he){const T=f;z(r,e,t,n,o,T.beginCaptures,_),o.produce(n,_[0].end),m=_[0].end;const O=T.getContentName(e.content,_),L=R.pushAttributed(O,r);if(n=n.withContentNameScopesList(L),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,_))),!g&&E.hasSameRuleAs(n)){n=n.pop(),o.produce(n,a),u=!0;return}}else if(z(r,e,t,n,o,f.captures,_),o.produce(n,_[0].end),n=n.pop(),!g){n=n.safePop(),o.produce(n,a),u=!0;return}}_[0].end>i&&(i=_[0].end,t=!1)}}function mi(r,e,t,i,n,o){let s=n.beginRuleCapturedEOL?0:-1;const l=[];for(let a=n;a;a=a.pop()){const u=a.getRule(r);u instanceof he&&l.push({rule:u,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:u,findOptions:m}=_i(a.rule,r,a.stack.endRule,t,i===s),p=u.findNextMatchSync(e,i,m);if(p){if(p.ruleId!==Mt){n=a.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(a.stack,p.captureIndices[0].start),z(r,e,t,a.stack,o,a.rule.whileCaptures,p.captureIndices),o.produce(a.stack,p.captureIndices[0].end),s=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,t=!1))}else{n=a.stack.pop();break}}return{stack:n,linePos:i,anchorPosition:s,isFirstLine:t}}function pi(r,e,t,i,n,o){const s=hi(r,e,t,i,n,o),l=r.getInjections();if(l.length===0)return s;const a=di(l,r,e,t,i,n,o);if(!a)return s;if(!s)return a;const u=s.captureIndices[0].start,m=a.captureIndices[0].start;return m<u||a.priorityMatch&&m===u?a:s}function hi(r,e,t,i,n,o){const s=n.getRule(r),{ruleScanner:l,findOptions:a}=Ft(s,r,n.endRule,t,i===o),u=l.findNextMatchSync(e,i,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function di(r,e,t,i,n,o,s){let l=Number.MAX_VALUE,a=null,u,m=0;const p=o.contentNameScopesList.getScopeNames();for(let d=0,h=r.length;d<h;d++){const _=r[d];if(!_.matcher(p))continue;const v=e.getRule(_.ruleId),{ruleScanner:g,findOptions:f}=Ft(v,e,null,i,n===s),E=g.findNextMatchSync(t,n,f);if(!E)continue;const y=E.captureIndices[0].start;if(!(y>=l)&&(l=y,a=E.captureIndices,u=E.ruleId,m=_.priority,l===n))break}return a?{priorityMatch:m===-1,captureIndices:a,matchedRuleId:u}:null}function Ft(r,e,t,i,n){return{ruleScanner:r.compileAG(e,t,i,n),findOptions:0}}function _i(r,e,t,i,n){return{ruleScanner:r.compileWhileAG(e,t,i,n),findOptions:0}}function z(r,e,t,i,n,o,s){if(o.length===0)return;const l=e.content,a=Math.min(o.length,s.length),u=[],m=s[0].end;for(let p=0;p<a;p++){const d=o[p];if(d===null)continue;const h=s[p];if(h.length===0)continue;if(h.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,h.start):n.produce(i,h.start),d.retokenizeCapturedWithRuleId){const v=d.getName(l,s),g=i.contentNameScopesList.pushAttributed(v,r),f=d.getContentName(l,s),E=g.pushAttributed(f,r),y=i.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,g,E),R=r.createOnigString(l.substring(0,h.end));$t(r,R,t&&h.start===0,h.start,y,n,!1,0),xt(R);continue}const _=d.getName(l,s);if(_!==null){const g=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(_,r);u.push(new fi(g,h.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var fi=class{constructor(r,e){this.scopes=r,this.endPos=e}};function gi(r,e,t,i,n,o,s,l){return new yi(r,e,t,i,n,o,s,l)}function ut(r,e,t,i,n){const o=me(e,de),s=Bt.getCompiledRuleId(t,i,n.repository);for(const l of o)r.push({debugSelector:e,matcher:l.matcher,ruleId:s,grammar:n,priority:l.priority})}function de(r,e){if(e.length<r.length)return!1;let t=0;return r.every(i=>{for(let n=t;n<e.length;n++)if(Ei(e[n],i))return t=n+1,!0;return!1})}function Ei(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var yi=class{constructor(r,e,t,i,n,o,s,l){if(this._rootScopeName=r,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ci(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=mt(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const a of Object.keys(n)){const u=me(a,de);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:n[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,i=r.lookup(t);if(i){const n=i.injections;if(n)for(let s in n)ut(e,s,n[s],this,i);const o=this._grammarRepository.injections(t);o&&o.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const a=l.injectionSelector;a&&ut(e,a,l,this,l)}})}return e.sort((n,o)=>n.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=mt(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const i=this._tokenize(r,e,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(r,e,t=0){const i=this._tokenize(r,e,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(r,e,t,i){this._rootId===-1&&(this._rootId=Bt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===je.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),p=H.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=J.createRootAndLookUpScopeName(d,p,this):h=J.createRoot("unknown",p),e=new je(null,this._rootId,-1,-1,!1,null,h,h)}else n=!1,e.reset();r=r+` 5`;const o=this.createOnigString(r),s=o.content.length,l=new Ri(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),a=$t(this,o,n,0,e,l,!0,i);return xt(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function mt(r,e){return r=Mr(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var J=class D{constructor(e,t,i){this.parent=e,this.scopePath=t,this.tokenAttributes=i}static fromExtension(e,t){let i=e,n=(e==null?void 0:e.scopePath)??null;for(const o of t)n=Oe.push(n,o.scopeNames),i=new D(i,n,o.encodedTokenAttributes);return i}static createRoot(e,t){return new D(null,new Oe(null,e),t)}static createRootAndLookUpScopeName(e,t,i){const n=i.getMetadataForScope(e),o=new Oe(null,e),s=i.themeProvider.themeMatch(o),l=D.mergeAttributes(t,n,s);return new D(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return D.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,i){let n=-1,o=0,s=0;return i!==null&&(n=i.fontStyle,o=i.foregroundId,s=i.backgroundId),H.set(e,t.languageId,t.tokenType,null,n,o,s)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return D._pushAttributed(this,e,t);const i=e.split(/ /g);let n=this;for(const o of i)n=D._pushAttributed(n,o,t);return n}static _pushAttributed(e,t,i){const n=i.getMetadataForScope(t),o=e.scopePath.push(t),s=i.themeProvider.themeMatch(o),l=D.mergeAttributes(e.tokenAttributes,n,s);return new D(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var n;const t=[];let i=this;for(;i&&i!==e;)t.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((n=i.parent)==null?void 0:n.scopePath)??null)}),i=i.parent;return i===e?t.reverse():void 0}},Be=class ${constructor(e,t,i,n,o,s,l,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=a,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=n}equals(e){return e===null?!1:$._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?J.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;
5if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){$._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,i,n,o,s,l){return new $(this,e,t,i,n,o,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var i,n;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new $(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const i=J.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new $(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,J.fromExtension(i,t.contentNameScopesList))}};Be.NULL=new Be(null,0,0,0,!1,null,null,null);var je=Be,vi=class{constructor(r,e){this.allowAny=!1,this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):me(t,de).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>me(t,de).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},Ri=class{constructor(r,e,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){var i;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(r==null?void 0:r.tokenAttributes)??0,o=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>
50||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(r==null?void 0:r.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(s)&&(n=H.set(n,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(n=H.set(n,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=(r==null?void 0:r.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,n=this._binaryTokens.length;i<n;i++)t[i]=this._binaryTokens[i];return t}},Ti=class{constructor(r,e){this._onigLib=e,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=r}dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,i,n){if(!this._grammars.has(r)){let o=this._rawGrammars.get(r);if(!o)return null;this._grammars.set(r,gi(r,o,e,t,i,n,this,this._onigLib))}return this._grammars.get(r)}},Ai=class{constructor(e){this._options=e,this._syncRegistry=new Ti(ue.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ue.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,i){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,t,i){return this._loadGrammar(e,t,i.embeddedLanguages,i.tokenTypes,new vi(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,i,n,o){const s=new Yr(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(l=>this._loadSingleGrammar(l.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,i,n,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,i)}}addGrammar(e,t=[],i=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,i,n)}_grammarForScopeName(e,t=0,i=null,n=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,i,n,o)}},$e=je.NULL;const Li=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],pt={}.hasOwnProperty;function bi(r,e){const t=e||{};function i(n,...o){let s=i.invalid;const l=i.handlers;if(n&&pt.call(n,r)){const a=String(n[r]);s=pt.call(l,a)?l[a]:i.unknown}if(s)return s.call(this,n,...o)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const Pi=/["&'<>`]/g,Ii=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Si=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Oi=/[|\\{}()[\]^$+*?.]/g,ht=new WeakMap;function wi(r,e){if(r=r.replace(e.subset?Ci(e.subset):Pi,i),e.subset||e.escapeOnly)return r;return r.replace(Ii,t).replace(Si,i);function t(n,o,s){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,s.charCo
vendor: 1,271 bytes, line 5
5deAt(o+2),e)}function i(n,o,s){return e.format(n.charCodeAt(0),s.charCodeAt(o+1),e)}}function Ci(r){let e=ht.get(r);return e||(e=Di(r),ht.set(r,e)),e}function Di(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(Oi,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const ki=/[\dA-Fa-f]/;function Ni(r,e,t){const i="&#x"+r.toString(16).toUpperCase();return t&&e&&!ki.test(String.fromCharCode(e))?i:i+";"}const Vi=/\d/;function xi(r,e,t){const i="&#"+String(r);return t&&e&&!Vi.test(String.fromCharCode(e))?i:i+";"}const Gi=["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","
5sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],we={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
5:"â",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:"â¬"},Mi=["cent","copy","divide","gt","lt","not","para","times"],Ht={}.hasOwnProperty,Fe={};let ne;for(ne in we)Ht.call(we,ne)&&(Fe[we[ne]]=ne);const Bi=/[^\dA-Za-z]/;function ji(r,e,t,i){const n=String.fromCharCode(r);if(Ht.call(Fe,n)){const o=Fe[n],s="&"+o;return t&&Gi.includes(o)&&!Mi.includes(o)&&(!i||e&&e!==61&&Bi.test(String.fromCharCode(e)))?s:s+";"}return""}function $i(r,e,t){let i=Ni(r,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=ji(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const o=xi(r,e,t.omitOptionalSemicolons);o.length<i.length&&(i=o)}return n&&(!t.useShortestReferences||n.length<i.length)?n:i}function F(r,e){return wi(r,Object.assign({format:$i},e))}const Fi=/^>|^->|<!--|-->|--!>|<!-$/g,Hi=[">"],Wi=["<",">"];function Ui(r,e,t,i){return i.settings.bogusComments?"<?"+F(r.value,Object.assign({},i.settings.characterReferences,{subset:Hi}))+">":"<!--"+r.value.replace(Fi,n)+"-->";function n(o){return F(o,Object.assign({},i.settings.characterReferences,{subset:Wi}))}}function qi(r,e,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function dt(r,e){const t=String(r);if(typeof e!="string")throw new TypeError("Expected character");let i=0,n=t.indexOf(e);for(;n!==-1;)i++,n=t.indexOf(e,n+e.length);return i}function zi(r,e){const t=e||{};return(r[r.length-1]===""?[...r,""]:r).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function Ji(r){return r.join(" ").trim()}const Ki=/[ \t\n\f\r]/g;function qe(r){return typeof r=="object"?r.type==="text"?_t(r.value):!1:_t(r)}function _t(r){return r.replace(Ki,"")===""}const b=Ut(1),Wt=Ut(-1),Qi=[];function Ut(r){return e;function e(t,i,n){const o=t?t.children:Qi;let s=(i||0)+r,l=o[s];if(!n)for(;l&&qe(l);)s+=r,l=o[s];return l}}const Xi={}.hasOwnProperty;function qt(r){return e;function e(t,i,n){return Xi.call(r,t.tagName)&&r[t.tagName](t,i,n)}}const ze=qt({body:Zi,caption:Ce,colgroup:Ce,dd:nn,dt:rn,head:Ce,html:Yi,li:tn,optgroup:on,option:sn,p:en,rp:ft,rt:ft,tbody:ln,td:gt,tfoot:cn,th:gt,thead:an,tr:un});function Ce(r,e,t){const i=b(t,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&qe(i.value.charAt(0)))}function Yi(r,e,t){const i=b(t,e);return!i||i.type!=="comment"}function Zi(r,e,t){const i=b(t,e);return!i||i.type!=="comment"}function en(r,e,t){const i=b(t,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function tn(r,e,t){const i=b(t,e);return!i||i.type==="element"&&i.tagName==="li"}function rn(r,e,t){const i=b(t,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function nn(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function ft(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function on(r,e,t){const i=b(t,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function sn(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function an(r,e,t){const i=b(t,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function ln(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function cn(r,e,t){return!b(t,e)}function un(r,e,t){const i=b(t,e);return!i||i.type==="element"&&i.tagName==="tr"}function gt(r,e,t){const i=b(t,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const mn=qt({body:dn,colgroup:_n,head:hn,html:pn,tbody:fn});function pn(r){const e=b(r,-1);return!e||e.type!=="comment"}function hn(r){const e=new Set;for(const i of r.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const t=r.children[0];return!t||t.type==="element"}function dn(r){const e=b(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&qe(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function _n(r,e,t){const i=Wt(t,e),n=b(r,-1,!0);return t&&i&&i.type==="element"&&i.tagName==="colgroup"&&ze(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function fn(r,e,t){const i=Wt(t,e),n=b(r,-1);return t&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&ze(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const oe={name:[[` 6\f\r &/=>`.split(""),` 7\f\r "&'/=>
vendor: 5,277 bytes, lines 7-13
7\``.split("")],[`\0 8\f\r "&'/<=>`.split(""),`\0 9\f\r "&'/<=>\``.split("")]],unquoted:[[` 10\f\r &>`.split(""),`\0 11\f\r "&'<=>\``.split("")],[`\0 12\f\r "&'<=>\``.split(""),`\0 13\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function gn(r,e,t,i){const n=i.schema,o=n.space==="svg"?!1:i.settings.omitOptionalTags;let s=n.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(r.tagName.toLowerCase());const l=[];let a;n.space==="html"&&r.tagName==="svg"&&(i.schema=bt);const u=En(i,r.properties),m=i.all(n.space==="html"&&r.tagName==="template"?r.content:r);return i.schema=n,m&&(s=!1),(u||!o||!mn(r,e,t))&&(l.push("<",r.tagName,u?" "+u:""),s&&(n.space==="svg"||i.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!i.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(m),!s&&(!o||!ze(r,e,t))&&l.push("</"+r.tagName+">"),l.join("")}function En(r,e){const t=[];let i=-1,n;if(e){for(n in e)if(e[n]!==null&&e[n]!==void 0){const o=yn(r,n,e[n]);o&&t.push(o)}}for(;++i<t.length;){const o=r.settings.tightAttributes?t[i].charAt(t[i].length-1):void 0;i!==t.length-1&&o!=='"'&&o!=="'"&&(t[i]+=" ")}return t.join("")}function yn(r,e,t){const i=mr(r.schema,e),n=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,o=r.settings.allowDangerousCharacters?0:1;let s=r.quote,l;if(i.overloadedBoolean&&(t===i.attribute||t==="")?t=!0:(i.boolean||i.overloadedBoolean)&&(typeof t!="string"||t===i.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=F(i.attribute,Object.assign({},r.settings.characterReferences,{subset:oe.name[n][o]}));return t===!0||(t=Array.isArray(t)?(i.commaSeparated?zi:Ji)(t,{padLeft:!r.settings.tightCommaSeparatedLists}):String(t),r.settings.collapseEmptyAttributes&&!t)?a:(r.settings.preferUnquoted&&(l=F(t,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:oe.unquoted[n][o]}))),l!==t&&(r.settings.quoteSmart&&dt(t,s)>dt(t,r.alternative)&&(s=r.alternative),l=s+F(t,Object.assign({},r.settings.characterReferences,{subset:(s==="'"?oe.single:oe.double)[n][o],attribute:!0}))+s),a+(l&&"="+l))}const vn=["<","&"];function zt(r,e,t,i){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?r.value:F(r.value,Object.assign({},i.settings.characterReferences,{subset:vn}))}function Rn(r,e,t,i){return i.settings.allowDangerousHtml?r.value:zt(r,e,t,i)}function Tn(r,e,t,i){return i.all(r)}const An=bi("type",{invalid:Ln,unknown:bn,handlers:{comment:Ui,doctype:qi,element:gn,raw:Rn,root:Tn,text:zt}});function Ln(r){throw new Error("Expected node, not `"+r+"`")}function bn(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Pn={},In={},Sn=[];function On(r,e){const t=Pn,i=t.quote||'"',n=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:wn,all:Cn,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Li,characterReferences:t.characterReferences||In,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?bt:pr,quote:i,alternative:n}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function wn(r,e,t){return An(r,e,t,this)}function Cn(r){const e=[],t=r&&r.children||Sn;let i=-1;for(;++i<t.length;)e[i]=this.one(t[i],i,r);return e.join("")}function Dn(r){return Array.isArray(r)?r:[r]}function Re(r,e=!1){var o;const t=r.split(/(\r?\n)/g);let i=0;const n=[];for(let s=0;s<t.length;s+=2){const l=e?t[s]+(t[s+1]||""):t[s];n.push([l,i]),i+=t[s].length,i+=((o=t[s+1])==null?void 0:o.length)||0}return n}function Je(r){return!r||["plaintext","txt","text","plain"].includes(r)}function Jt(r){return r==="ansi"||Je(r)}function Ke(r){return r==="none"}function Kt(r){return Ke(r)}function Qt(r,e){var t;if(!e)return r;r.properties||(r.properties={}),(t=r.properties).class||(t.class=[]),typeof r.properties.class=="string"&&(r.properties.class=r.properties.class.split(/\s+/g)),Array.isArray(r.properties.class)||(r.properties.class=[]);const i=Array.isArray(e)?e:e.split(/\s+/g);for(const n of i)n&&!r.properties.class.includes(n)&&r.properties.class.push(n);return r}function kn(r,e){let t=0;const i=[];for(const n of e)n>t&&i.push({...r,content:r.content.slice(t,n),offset:r.offset+t}),t=n;return t<r.content.length&&i.push({...r,content:r.content.slice(t),offset:r.offset+t}),i}function Nn(r,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((i,n)=>i-n);return t.length?r.map(i=>i.flatMap(n=>{const o=t.filter(s=>n.offset<s&&s<n.offset+n.content.length).map(s=>s-n.offset).sort((s,l)=>s-l);return o.length?kn(n,o):n}
13)):r}async function Xt(r){return Promise.resolve(typeof r=="function"?r():r).then(e=>e.default||e)}function _e(r,e){const t=typeof r=="string"?{}:{...r.colorReplacements},i=typeof r=="string"?r:r.name;for(const[n,o]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof o=="string"?t[n]=o:n===i&&Object.assign(t,o);return t}function M(r,e){return r&&((e==null?void 0:e[r==null?void 0:r.toLowerCase()])||r)}function Yt(r){const e={};return r.color&&(e.color=r.color),r.bgColor&&(e["background-color"]=r.bgColor),r.fontStyle&&(r.fontStyle&V.Italic&&(e["font-style"]="italic"),r.fontStyle&V.Bold&&(e["font-weight"]="bold"),r.fontStyle&V.Underline&&(e["text-decoration"]="underline")),e}function Vn(r){return typeof r=="string"?r:Object.entries(r).map(([e,t])=>`${e}:${t}`).join(";")}function xn(r){const e=Re(r,!0).map(([n])=>n);function t(n){if(n===r.length)return{line:e.length-1,character:e[e.length-1].length};let o=n,s=0;for(const l of e){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function i(n,o){let s=0;for(let l=0;l<n;l++)s+=e[l].length;return s+=o,s}return{lines:e,indexToPos:t,posToIndex:i}}class S extends Error{constructor(e){super(e),this.name="ShikiError"}}var Gn=Object.defineProperty,Mn=(r,e,t)=>e in r?Gn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Et=(r,e,t)=>(Mn(r,typeof e!="symbol"?e+"":e,t),t);const Zt=new WeakMap;function Te(r,e){Zt.set(r,e)}function Y(r){return Zt.get(r)}class W{constructor(...e){if(Et(this,"_stacks",{}),Et(this,"lang"),e.length===2){const[t,i]=e;this.lang=i,this._stacks=t}else{const[t,i,n]=e;this.lang=i,this._stacks={[n]:t}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new W(Object.fromEntries(Dn(t).map(i=>[i,$e])),e)}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return yt(this._stacks[this.theme])}getScopes(e=this.theme){return yt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function yt(r){const e=[],t=new Set;function i(n){var s;if(t.has(n))return;t.add(n);const o=(s=n==null?void 0:n.nameScopesList)==null?void 0:s.scopeName;o&&e.push(o),n.parent&&i(n.parent)}return i(r),e}function Bn(r,e){if(!(r instanceof W))throw new S("Invalid grammar state");return r.getInternalStack(e)}function jn(){const r=new WeakMap;function e(t){if(!r.has(t.meta)){let i=function(s){if(typeof s=="number"){if(s<0||s>t.source.length)throw new S(`Invalid decoration offset: ${s}. Code length: ${t.source.length}`);return{...n.indexToPos(s),offset:s}}else{const l=n.lines[s.line];if(l===void 0)throw new S(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);if(s.character<0||s.character>l.length)throw new S(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,offset:n.posToIndex(s.line,s.character)}}};const n=xn(t.source),o=(t.options.decorations||[]).map(s=>({...s,start:i(s.start),end:i(s.end)}));$n(o),r.set(t.meta,{decorations:o,converter:n,source:t.source})}return r.get(t.meta)}return{name:"shiki:decorations",tokens(t){var s;if(!((s=this.options.decorations)!=null&&s.length))return;const n=e(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return Nn(t,n)},code(t){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const i=e(this),n=Array.from(t.children).filter(p=>p.type==="element"&&p.tagName==="span");if(n.length!==i.converter.lines.length)throw new S(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(p,d,h,_){const v=n[p];let g="",f=-1,E=-1;
13if(d===0&&(f=0),h===0&&(E=0),h===Number.POSITIVE_INFINITY&&(E=v.children.length),f===-1||E===-1)for(let R=0;R<v.children.length;R++)g+=er(v.children[R]),f===-1&&g.length===d&&(f=R+1),E===-1&&g.length===h&&(E=R+1);if(f===-1)throw new S(`Failed to find start index for decoration ${JSON.stringify(_.start)}`);if(E===-1)throw new S(`Failed to find end index for decoration ${JSON.stringify(_.end)}`);const y=v.children.slice(f,E);if(!_.alwaysWrap&&y.length===v.children.length)l(v,_,"line");else if(!_.alwaysWrap&&y.length===1&&y[0].type==="element")l(y[0],_,"token");else{const R={type:"element",tagName:"span",properties:{},children:y};l(R,_,"wrapper"),v.children.splice(f,y.length,R)}}function s(p,d){n[p]=l(n[p],d,"line")}function l(p,d,h){var g;const _=d.properties||{},v=d.transform||(f=>f);return p.tagName=d.tagName||"span",p.properties={...p.properties,..._,class:p.properties.class},(g=d.properties)!=null&&g.class&&Qt(p,d.properties.class),p=v(p,h)||p,p}const a=[],u=i.decorations.sort((p,d)=>d.start.offset-p.start.offset);for(const p of u){const{start:d,end:h}=p;if(d.line===h.line)o(d.line,d.character,h.character,p);else if(d.line<h.line){o(d.line,d.character,Number.POSITIVE_INFINITY,p);for(let _=d.line+1;_<h.line;_++)a.unshift(()=>s(_,p));o(h.line,0,h.character,p)}}a.forEach(p=>p())}}}function $n(r){for(let e=0;e<r.length;e++){const t=r[e];if(t.start.offset>t.end.offset)throw new S(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let i=e+1;i<r.length;i++){const n=r[i],o=t.start.offset<n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<t.end.offset,l=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(o||s||l||a){if(s&&s||l&&a)continue;throw new S(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function er(r){return r.type==="text"?r.value:r.type==="element"?r.children.map(er).join(""):""}const Fn=[jn()];function fe(r){return[...r.transformers||[],...Fn]}var B=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],De={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Hn(r,e){const t=r.indexOf("\x1B[",e);if(t!==-1){const i=r.indexOf("m",t);return{sequence:r.substring(t+2,i).split(";"),startPosition:t,position:i+1}}return{position:r.length}}function vt(r,e){let t=1;const i=r[e+t++];let n;if(i==="2"){const o=[r[e+t++],r[e+t++],r[e+t]].map(s=>Number.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(n={type:"rgb",rgb:o})}else if(i==="5"){const o=Number.parseInt(r[e+t]);Number.isNaN(o)||(n={type:"table",index:Number(o)})}return[t,n]}function Wn(r){const e=[];for(let t=0;t<r.length;t++){const i=r[t],n=Number.parseInt(i);if(!Number.isNaN(n))if(n===0)e.push({type:"resetAll"});else if(n<=9)De[n]&&e.push({type:"setDecoration",value:De[n]});else if(n<=29){const o=De[n-20];o&&e.push({type:"resetDecoration",value:o})}else if(n<=37)e.push({type:"setForegroundColor",value:{type:"named",name:B[n-30]}});else if(n===38){const[o,s]=vt(r,t);s&&e.push({type:"setForegroundColor",value:s}),t+=o}else if(n===39)e.push({type:"resetForegroundColor"});else if(n<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:B[n-40]}});else if(n===48){const[o,s]=vt(r,t);s&&e.push({type:"setBackgroundColor",value:s}),t+=o}else n===49?e.push({type:"resetBackgroundColor"}):n>=90&&n<=97?e.push({type:"setForegroundColor",value:{type:"named",name:B[n-90+8]}}):n>=100&&n<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:B[n-100+8]}})}return e}function Un(){let r=null,e=null,t=new Set;return{parse(i){const n=[];let o=0;do{const s=Hn(i,o),l=s.sequence?i.substring(o,s.startPosition):i.substring(o);if(l.length>0&&n.push({value:l,foreground:r,background:e,decorations:new Set(t)}),s.sequence){const a=Wn(s.sequence);for(const u of a)u.type==="resetAll"?(r=null,e=null,t.clear()):u.type==="resetForegroundColor"?r=null:u.type==="resetBackgroun
13dColor"?e=null:u.type==="resetDecoration"&&t.delete(u.value);for(const u of a)u.type==="setForegroundColor"?r=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&t.add(u.value)}o=s.position}while(o<i.length);return n}}}var qn={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function zn(r=qn){function e(l){return r[l]}function t(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let i;function n(){if(i)return i;i=[];for(let u=0;u<B.length;u++)i.push(e(B[u]));let l=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let m=0;m<6;m++)for(let p=0;p<6;p++)i.push(t([l[u],l[m],l[p]]));let a=8;for(let u=0;u<24;u++,a+=10)i.push(t([a,a,a]));return i}function o(l){return n()[l]}function s(l){switch(l.type){case"named":return e(l.name);case"rgb":return t(l.rgb);case"table":return o(l.index)}}return{value:s}}function Jn(r,e,t){const i=_e(r,t),n=Re(e),o=zn(Object.fromEntries(B.map(l=>{var a;return[l,(a=r.colors)==null?void 0:a[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]}))),s=Un();return n.map(l=>s.parse(l[0]).map(a=>{let u,m;a.decorations.has("reverse")?(u=a.background?o.value(a.background):r.bg,m=a.foreground?o.value(a.foreground):r.fg):(u=a.foreground?o.value(a.foreground):r.fg,m=a.background?o.value(a.background):void 0),u=M(u,i),m=M(m,i),a.decorations.has("dim")&&(u=Kn(u));let p=V.None;return a.decorations.has("bold")&&(p|=V.Bold),a.decorations.has("italic")&&(p|=V.Italic),a.decorations.has("underline")&&(p|=V.Underline),{content:a.value,offset:l[1],color:u,bgColor:m,fontStyle:p}}))}function Kn(r){const e=r.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const i=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${i}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(i=>`${i}${i}`).join("")}80`;const t=r.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:r}function Qe(r,e,t={}){const{lang:i="text",theme:n=r.getLoadedThemes()[0]}=t;if(Je(i)||Ke(n))return Re(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:o,colorMap:s}=r.setTheme(n);if(i==="ansi")return Jn(o,e,t);const l=r.getLanguage(i);if(t.grammarState){if(t.grammarState.lang!==l.name)throw new x(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${l.name}"`);if(!t.grammarState.themes.includes(o.name))throw new x(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return Xn(e,l,o,s,t)}function Qn(...r){if(r.length===2)return Y(r[1]);const[e,t,i={}]=r,{lang:n="text",theme:o=e.getLoadedThemes()[0]}=i;if(Je(n)||Ke(o))throw new x("Plain language does not have grammar state");if(n==="ansi")throw new x("ANSI language does not have grammar state");const{theme:s,colorMap:l}=e.setTheme(o),a=e.getLanguage(n);return new W(ge(t,a,s,l,i).stateStack,a.name,s.name)}function Xn(r,e,t,i,n){const o=ge(r,e,t,i,n),s=new W(ge(r,e,t,i,n).stateStack,e.name,t.name);return Te(o.tokens,s),o.tokens}function ge(r,e,t,i,n){const o=_e(t,n),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=n,a=Re(r);let u=n.grammarState?Bn(n.grammarState,t.name)??$e:n.grammarContextCode!=null?ge(n.grammarContextCode,e,t,i,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:$e,m=[];const p=[];for(let d=0,h=a.length;d<h;d++){const[_,v]=a[d];if(_===""){m=[],p.push([]);continue}if(s>0&&_.length>=s){m=[],p.push([{content:_,offset:v,color:"",fontStyle:0}]);continue}let g,f,E;n.includeExplanation&&(g=e.tokenizeLine(_,u),f=g.tokens,E=0);const y=e.tokenizeLine2(_,u,l),R=y.tokens.length/2;for(let T=0;T<R;T++){const O=y.tokens[2*T],L=T+1<R?y.tokens[2*T+2]:_.length;if(O===L)continue;const k=y.tokens[2*T+1],ee=M(i[H.getForeground(k)],o),U=H.getFontStyle(k),Ae={content:_.substring(O,L),offset:v+O,color:ee,fontStyle:U};if(n.includeExplanation){const Ye=[];
13if(n.includeExplanation!=="scopeName")for(const N of t.settings){let j;switch(typeof N.scope){case"string":j=N.scope.split(/,/).map(Le=>Le.trim());break;case"object":j=N.scope;break;default:continue}Ye.push({settings:N,selectors:j.map(Le=>Le.split(/ /))})}Ae.explanation=[];let Ze=0;for(;O+Ze<L;){const N=f[E],j=_.substring(N.startIndex,N.endIndex);Ze+=j.length,Ae.explanation.push({content:j,scopes:n.includeExplanation==="scopeName"?Yn(N.scopes):Zn(Ye,N.scopes)}),E+=1}}m.push(Ae)}p.push(m),m=[],u=y.ruleStack}return{tokens:p,stateStack:u}}function Yn(r){return r.map(e=>({scopeName:e}))}function Zn(r,e){const t=[];for(let i=0,n=e.length;i<n;i++){const o=e[i];t[i]={scopeName:o,themeMatches:to(r,o,e.slice(0,i))}}return t}function Rt(r,e){return r===e||e.substring(0,r.length)===r&&e[r.length]==="."}function eo(r,e,t){if(!Rt(r[r.length-1],e))return!1;let i=r.length-2,n=t.length-1;for(;i>=0&&n>=0;)Rt(r[i],t[n])&&(i-=1),n-=1;return i===-1}function to(r,e,t){const i=[];for(const{selectors:n,settings:o}of r)for(const s of n)if(eo(s,e,t)){i.push(o);break}return i}function tr(r,e,t){const i=Object.entries(t.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),n=i.map(a=>{const u=Qe(r,e,{...t,theme:a.theme}),m=Y(u),p=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:u,state:m,theme:p}}),o=ro(...n.map(a=>a.tokens)),s=o[0].map((a,u)=>a.map((m,p)=>{const d={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in t&&t.includeExplanation&&(d.explanation=m.explanation),o.forEach((h,_)=>{const{content:v,explanation:g,offset:f,...E}=h[u][p];d.variants[i[_].color]=E}),d})),l=n[0].state?new W(Object.fromEntries(n.map(a=>{var u;return[a.theme,(u=a.state)==null?void 0:u.getInternalStack(a.theme)]})),n[0].state.lang):void 0;return l&&Te(s,l),s}function ro(...r){const e=r.map(()=>[]),t=r.length;for(let i=0;i<r[0].length;i++){const n=r.map(a=>a[i]),o=e.map(()=>[]);e.forEach((a,u)=>a.push(o[u]));const s=n.map(()=>0),l=n.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(u=>u.content.length));for(let u=0;u<t;u++){const m=l[u];m.content.length===a?(o[u].push(m),s[u]+=1,l[u]=n[u][s[u]]):(o[u].push({...m,content:m.content.slice(0,a)}),l[u]={...m,content:m.content.slice(a),offset:m.offset+a})}}}return e}function Ee(r,e,t){let i,n,o,s,l,a;if("themes"in t){const{defaultColor:u="light",cssVariablePrefix:m="--shiki-"}=t,p=Object.entries(t.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,f)=>g.color===u?-1:f.color===u?1:0);if(p.length===0)throw new x("`themes` option must not be empty");const d=tr(r,e,t);if(a=Y(d),u&&!p.find(g=>g.color===u))throw new x(`\`themes\` option must contain the defaultColor key \`${u}\``);const h=p.map(g=>r.getTheme(g.theme)),_=p.map(g=>g.color);o=d.map(g=>g.map(f=>io(f,_,m,u))),a&&Te(o,a);const v=p.map(g=>_e(g.theme,t));n=p.map((g,f)=>(f===0&&u?"":`${m+g.color}:`)+(M(h[f].fg,v[f])||"inherit")).join(";"),i=p.map((g,f)=>(f===0&&u?"":`${m+g.color}-bg:`)+(M(h[f].bg,v[f])||"inherit")).join(";"),s=`shiki-themes ${h.map(g=>g.name).join(" ")}`,l=u?void 0:[n,i].join(";")}else if("theme"in t){const u=_e(t.theme,t);o=Qe(r,e,t);const m=r.getTheme(t.theme);i=M(m.bg,u),n=M(m.fg,u),s=m.name,a=Y(o)}else throw new x("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:n,bg:i,themeName:s,rootStyle:l,grammarState:a}}function io(r,e,t,i){const n={content:r.content,explanation:r.explanation,offset:r.offset},o=e.map(a=>Yt(r.variants[a])),s=new Set(o.flatMap(a=>Object.keys(a))),l={};return o.forEach((a,u)=>{for(const m of s){const p=a[m]||"inherit";if(u===0&&i)l[m]=p;else{const d=m==="color"?"":m==="background-color"?"-bg":`-${m}`,h=t+e[u]+(m==="color"?"":d);l[h]=p}}}),n.htmlStyle=l,n}function ye(r,e,t,i={meta:{},options:t,codeToHast:(n,o)=>ye(r,n,o),codeToTokens:(n,o)=>Ee(r,n,o)}){var h,_;let n=e;for(const v of fe(t))n=((h=v.preprocess)==null?void 0:h.call(i,n,t))||n;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:u,grammarState:m}=Ee(r,n,t);const{mergeWhitespaces:p=!0}=t;p===!0?o=oo(o):p==="never"&&(o=so(o));const d={...i,get source(){return n}};for(const v of fe(t))o=((_=v.tokens)==null?void 0:_.call(d,o))||o;return no(o,{...t,fg:s,bg:l,themeName:a,rootStyle:u},d,m)}function no(r,e,t,i=Y(r)){var _,v,g;const n=fe(e),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=e;let u={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...a!==!1&&a!=null?{tabindex:a.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([f])=>!f.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:o};const p=[],d={...t,structure:l,addClassToHast:Qt,get source(){return t.source},get tokens(){return r},get options(){return e},get root(){return s},get pre(){return u},get code(){return m},get lines(){return p}};if(r.forEach((f,E)=>{var T,O;E&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:` 14`}));let y={type:"element",tagName:"span",properties:{class:"line"}
14,children:[]},R=0;for(const L of f){let k={type:"element",tagName:"span",properties:{...L.htmlAttrs},children:[{type:"text",value:L.content}]};L.htmlStyle;const ee=Vn(L.htmlStyle||Yt(L));ee&&(k.properties.style=ee);for(const U of n)k=((T=U==null?void 0:U.span)==null?void 0:T.call(d,k,E+1,R,y,L))||k;l==="inline"?s.children.push(k):l==="classic"&&y.children.push(k),R+=L.content.length}if(l==="classic"){for(const L of n)y=((O=L==null?void 0:L.line)==null?void 0:O.call(d,y,E+1))||y;p.push(y),o.push(y)}}),l==="classic"){for(const f of n)m=((_=f==null?void 0:f.code)==null?void 0:_.call(d,m))||m;u.children.push(m);for(const f of n)u=((v=f==null?void 0:f.pre)==null?void 0:v.call(d,u))||u;s.children.push(u)}let h=s;for(const f of n)h=((g=f==null?void 0:f.root)==null?void 0:g.call(d,h))||h;return i&&Te(h,i),h}function oo(r){return r.map(e=>{const t=[];let i="",n=0;return e.forEach((o,s)=>{const a=!(o.fontStyle&&o.fontStyle&V.Underline);a&&o.content.match(/^\s+$/)&&e[s+1]?(n||(n=o.offset),i+=o.content):i?(a?t.push({...o,offset:n,content:i+o.content}):t.push({content:i,offset:n},o),n=0,i=""):t.push(o)}),t})}function so(r){return r.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const i=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return t;const[,n,o,s]=i;if(!n&&!s)return t;const l=[{...t,offset:t.offset+n.length,content:o}];return n&&l.unshift({content:n,offset:t.offset}),s&&l.push({content:s,offset:t.offset+n.length+o.length}),l}))}function ao(r,e,t){var o;const i={meta:{},options:t,codeToHast:(s,l)=>ye(r,s,l),codeToTokens:(s,l)=>Ee(r,s,l)};let n=On(ye(r,e,t,i));for(const s of fe(t))n=((o=s.postprocess)==null?void 0:o.call(i,n,t))||n;return n}const Tt={light:"#333333",dark:"#bbbbbb"},At={light:"#fffffe",dark:"#1e1e1e"},Lt="__shiki_resolved";function Xe(r){var l,a,u,m,p;if(r!=null&&r[Lt])return r;const e={...r};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:t,fg:i}=e;if(!t||!i){const d=e.settings?e.settings.find(h=>!h.name&&!h.scope):void 0;(l=d==null?void 0:d.settings)!=null&&l.foreground&&(i=d.settings.foreground),(a=d==null?void 0:d.settings)!=null&&a.background&&(t=d.settings.background),!i&&((u=e==null?void 0:e.colors)!=null&&u["editor.foreground"])&&(i=e.colors["editor.foreground"]),!t&&((m=e==null?void 0:e.colors)!=null&&m["editor.background"])&&(t=e.colors["editor.background"]),i||(i=e.type==="light"?Tt.light:Tt.dark),t||(t=e.type==="light"?At.light:At.dark),e.fg=i,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let n=0;const o=new Map;function s(d){var _;if(o.has(d))return o.get(d);n+=1;const h=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return(_=e.colorReplacements)!=null&&_[`#${h}`]?s(d):(o.set(d,h),h)}e.settings=e.settings.map(d=>{var g,f;const h=((g=d.settings)==null?void 0:g.foreground)&&!d.settings.foreground.startsWith("#"),_=((f=d.settings)==null?void 0:f.background)&&!d.settings.background.startsWith("#");if(!h&&!_)return d;const v={...d,settings:{...d.settings}};if(h){const E=s(d.settings.foreground);e.colorReplacements[E]=d.settings.foreground,v.settings.foreground=E}if(_){const E=s(d.settings.background);e.colorReplacements[E]=d.settings.background,v.settings.background=E}return v});for(const d of Object.keys(e.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((p=e.colors[d])!=null&&p.startsWith("#"))){const h=s(e.colors[d]);e.colorReplacements[h]=e.colors[d],e.colors[d]=h}return Object.defineProperty(e,Lt,{enumerable:!1,writable:!1,value:!0}),e}async function rr(r){return Array.from(new Set((await Promise.all(r.filter(e=>!Jt(e)).map(async e=>await Xt(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function ir(r){return(await Promise.all(r.map(async t=>Kt(t)?null:Xe(await Xt(t))))).filter(t=>!!t)}var lo=Object.defineProperty,co=(r,e,t)=>e in r?lo(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,G=(r,e,t)=>(co(r,typeof e!="symbol"?e+"":e,t),t);class uo extends Ai{constructor(e,t,i,n={}){super(e),this._resolver=e,this._themes=t,this._langs=i,this._alias=n,G(this,"_resolvedThemes",new Map),G(this,"_resolvedGrammars",new Map),G(this,"_langMap",new Map),G(this,"_langGraph",new Map),G(this,"_textmateThemeCache",new WeakMap),G(this,"_loadedThemesCache",null),G(this,"_loadedLanguagesCache",null),this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=Xe(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=ue.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];
14){if(e=this._alias[e],t.has(e))throw new S(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){var o,s,l,a;if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(u=>{var m;return(m=u.embeddedLangsLazy)==null?void 0:m.includes(e.name)}));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const n=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(u=>{this._alias[u]=e.name}),this._loadedLanguagesCache=null,t.size)for(const u of t)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(s=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||s.delete(u.scopeName),(a=(l=this._syncRegistry)==null?void 0:l._grammars)==null||a.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.entries()),i=t.filter(([n,o])=>!o);if(i.length){const n=t.filter(([o,s])=>{var l;return s&&((l=s.embeddedLangs)==null?void 0:l.some(a=>i.map(([u])=>u).includes(a)))}).filter(o=>!i.includes(o));throw new S(`Missing languages ${i.map(([o])=>`\`${o}\``).join(", ")}, required by ${n.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[n,o]of t)this._resolver.addLanguage(o);for(const[n,o]of t)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}var mo=Object.defineProperty,po=(r,e,t)=>e in r?mo(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,se=(r,e,t)=>(po(r,typeof e!="symbol"?e+"":e,t),t);class ho{constructor(e,t){se(this,"_langs",new Map),se(this,"_scopeToLang",new Map),se(this,"_injections",new Map),se(this,"_onigLib"),this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},t.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let i=[];for(let n=1;n<=t.length;n++){const o=t.slice(0,n).join(".");i=[...i,...this._injections.get(o)||[]]}return i}}let q=0;function _o(r){q+=1,r.warnings!==!1&&q>=10&&q%10===0&&console.warn(`[Shiki] ${q} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!r.engine)throw new S("`engine` option is required for synchronous mode");const t=(r.langs||[]).flat(1),i=(r.themes||[]).flat(1).map(Xe),n=new ho(r.engine,t),o=new uo(n,i,t,r.langAlias);let s;function l(E){g();const y=o.getGrammar(typeof E=="string"?E:E.name);if(!y)throw new S(`Language \`${E}\` not found, you may need to load it first`);return y}function a(E){if(E==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const y=o.getTheme(E);if(!y)throw new S(`Theme \`${E}\` not found, you may need to load it first`);return y}function u(E){g();const y=a(E);s!==E&&(o.setTheme(y),s=E);const R=o.getColorMap();return{theme:y,colorMap:R}}function m(){return g(),o.getLoadedThemes()}function p(){return g(),o.getLoadedLanguages()}function d(...E){g(),o.loadLanguages(E.flat(1))}async function h(...E){return d(await rr(E))}function _(...E){g();for(const y of E.flat(1))o.loadTheme(y)}async function v(...E){return g(),_(await ir(E))}function g(){if(e)throw new S("Shiki instance has been disposed")}function f(){e||(e=!0,o.dispose(),q-=1)}return{setTheme:u,getTheme:a,getLanguage:l,getLoadedThemes:m,getLoadedLanguages:p,loadLanguage:h,loadLanguageSync:d,loadTheme:v,loadThemeSync:_,dispose:f,[Symbol.dispose]:f}}async function fo(r={}){r.loadWasm;const[e,t,i]=await Promise.all([ir(r.themes||[]),rr(r.langs||[]),r.engine||It(r.loadWasm||Gr())]);return _o({...r,loadWasm:void 0,themes:e,langs:t,engine:i})}async function go(r={}){const e=await fo(r);return{getLastGrammarState:(...t)=>Qn(e,...t),codeToTokensBase:(t,i)=>Qe(e,t,i),codeToTokensWithThemes:(t,i)=>tr(e,t,i),codeToTokens:(t,i)=>Ee(e,t,i),codeToHast:(t,i)=>ye(e,t,i),codeToHtml:(t,i)=>ao(e,t,i),...e,getInternalContext:()=>e}}function Eo(r,e,t){let i,n,o;{const l=r;i=l.langs,n=l.themes,o=l.engine}async function s(l){function a(h){if(typeof h=="string"){if(Jt(h))return[];const _=i[h];if(!_)throw new x(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return _}return h}function u(h){if(Kt(h))return"none";if(typeof h=="string"){const _=n[h];if(!_)throw new x(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return _}return h}const m=(l.themes??[]).map(h=>u(h)),p=(l.langs??[]).map(h=>a(h)),d=await go({engine:l.engine??o(),...l,themes:m,langs:p});return{...d,loadLanguage(...h){return d.loadLanguage(...h.map(a))},loadTheme(...h){return d.loadTheme(...h.map(u))}}}return s}function yo(r){let e;async function t(i={}){if(e){const n=await e;return await Promise.all([n.loadTheme(...i.themes||[]),n.loadLanguage(...i.langs||[])]),n}else return e=r({...i,themes:i.themes||[],langs:i.langs||[]}),e}return t}function vo(r){const e=yo(r);return{getSingletonHighlighter(t){return e(t)},async codeToHtml(t,i){return(await e({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)})).codeToHtml(t,i)},async codeToHast(t,i){return(await e({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)})).codeToHast(t,i)},async codeToTokens(t,i){return(await e({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)})).codeToTokens(t,i)},async codeToTokensBase(t,i){return(await e({langs:[i.lang],themes:[i.theme]})).codeToTokensBase(t,i)},async codeToTokensWithThemes(t,i){return(await e({langs:[i.lang],themes:Object.values(i.themes).filter(
14Boolean)})).codeToTokensWithThemes(t,i)},async getLastGrammarState(t,i){return(await e({langs:[i.lang],themes:[i.theme]})).getLastGrammarState(t,i)}}}const Ro=Eo({langs:yr,themes:Rr,engine:()=>It(c(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:ko,codeToHast:No,codeToTokens:Vo,codeToTokensBase:xo,codeToTokensWithThemes:Go,getSingletonHighlighter:To,getLastGrammarState:Mo}=vo(Ro),Ao={key:0,class:"flex items-center px-6 py-4"},Lo=["innerHTML"],Bo=ar({__name:"Demo",props:{code:{default:""}},async setup(r){let e,t;const i=r,n=([e,t]=lr(()=>To({themes:["vitesse-dark"],langs:["vue","tsx"]})),e=await e,t(),e),o=cr(()=>n.codeToHtml(i.code,{lang:"vue",theme:"vitesse-dark",transformers:[fr()]})),s=sr();return(l,a)=>(tt(),rt("div",Pe({class:"overflow-hidden border rounded-xl"},te(s)),[be("div",Pe({class:"flex border-b"},te(et)),[be("div",Pe({class:[{"border-r":l.$slots.form},"gird-paper-background min-h-56 w-full flex flex-grow items-center justify-center"]},te(et)),[it(l.$slots,"preview")],16),l.$slots.form?(tt(),rt("div",Ao,[it(l.$slots,"form")])):ur("",!0)],16),be("div",{class:"not-prose overflow-hidden rounded-b-xl text-sm children:overflow-auto children:p-2 children:outline-none!",innerHTML:te(o)},null,8,Lo)],16))}});export{Bo as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.