@ccview/server 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var ki=Object.defineProperty;var En=t=>{throw TypeError(t)};var Si=(t,e,n)=>e in t?ki(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var g=(t,e,n)=>Si(t,typeof e!="symbol"?e+"":e,n),Cn=(t,e,n)=>e.has(t)||En("Cannot "+n);var At=(t,e,n)=>(Cn(t,e,"read from private field"),n?n.call(t):e.get(t)),vn=(t,e,n)=>e.has(t)?En("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),He=(t,e,n,r)=>(Cn(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);import{_ as u}from"./index-DgaYf6Ds.js";const sr=[{id:"abap",name:"ABAP",import:()=>u(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>u(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>u(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>u(()=>import("./angular-html-LfdN0zeE.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>u(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>u(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>u(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>u(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>u(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>u(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>u(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>u(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>u(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>u(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>u(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>u(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>u(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>u(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>u(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>u(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>u(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>u(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>u(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>u(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>u(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>u(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>u(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>u(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>u(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>u(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>u(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>u(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>u(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>u(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>u(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>u(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>u(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>u(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>u(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>u(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>u(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>u(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>u(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>u(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>u(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>u(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>u(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>u(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>u(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>u(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>u(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>u(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>u(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>u(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>u(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>u(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>u(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>u(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>u(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>u(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>u(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>u(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>u(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>u(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>u(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>u(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>u(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>u(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>u(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>u(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>u(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>u(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>u(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>u(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>u(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>u(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>u(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>u(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>u(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>u(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>u(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>u(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>u(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>u(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>u(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>u(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>u(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>u(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>u(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>u(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>u(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>u(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>u(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>u(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>u(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>u(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>u(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>u(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>u(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>u(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>u(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>u(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>u(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>u(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>u(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>u(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>u(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>u(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>u(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>u(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>u(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>u(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>u(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>u(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>u(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>u(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>u(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>u(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>u(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>u(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>u(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>u(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>u(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>u(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>u(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>u(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>u(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>u(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>u(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>u(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>u(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>u(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>u(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>u(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>u(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>u(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>u(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>u(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>u(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>u(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>u(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>u(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>u(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>u(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>u(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>u(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>u(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>u(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>u(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>u(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>u(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>u(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>u(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>u(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>u(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>u(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>u(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>u(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>u(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>u(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>u(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>u(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>u(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>u(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>u(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>u(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>u(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>u(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>u(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>u(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>u(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>u(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>u(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>u(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>u(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>u(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>u(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>u(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>u(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>u(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>u(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>u(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>u(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>u(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>u(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>u(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>u(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>u(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>u(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>u(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>u(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>u(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>u(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>u(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>u(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>u(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>u(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>u(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>u(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>u(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>u(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>u(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>u(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>u(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>u(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>u(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>u(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>u(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>u(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>u(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>u(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>u(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>u(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>u(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>u(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>u(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>u(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>u(()=>import("./zig-BVz_zdnA.js"),[])}],wi=Object.fromEntries(sr.map(t=>[t.id,t.import])),Ri=Object.fromEntries(sr.flatMap(t=>{var e;return((e=t.aliases)==null?void 0:e.map(n=>[n,t.import]))||[]})),Ii={...wi,...Ri},Ti=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>u(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>u(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>u(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>u(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>u(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>u(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>u(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>u(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>u(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>u(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>u(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>u(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>u(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>u(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>u(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>u(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>u(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>u(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>u(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>u(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>u(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>u(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>u(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>u(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>u(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>u(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>u(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>u(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>u(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>u(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>u(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>u(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>u(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>u(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>u(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>u(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>u(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>u(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>u(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>u(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>u(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>u(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>u(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>u(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>u(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>u(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>u(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>u(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>u(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>u(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>u(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>u(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>u(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>u(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Pi=Object.fromEntries(Ti.map(t=>[t.id,t.import]));let ae=class extends Error{constructor(e){super(e),this.name="ShikiError"}},tn=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Li(){return 2147483648}function Oi(){return typeof performance<"u"?performance.now():Date.now()}const Di=(t,e)=>t+(e-t%e)%e;async function xi(t){let e,n;const r={};function i(h){n=h,r.HEAPU8=new Uint8Array(h),r.HEAPU32=new Uint32Array(h)}function s(h,m,v){r.HEAPU8.copyWithin(h,m,m+v)}function o(h){try{return e.grow(h-n.byteLength+65535>>>16),i(e.buffer),1}catch{}}function a(h){const m=r.HEAPU8.length;h=h>>>0;const v=Li();if(h>v)return!1;for(let E=1;E<=4;E*=2){let C=m*(1+.2/E);C=Math.min(C,h+100663296);const b=Math.min(v,Di(Math.max(h,C),65536));if(o(b))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(h,m,v=1024){const E=m+v;let C=m;for(;h[C]&&!(C>=E);)++C;if(C-m>16&&h.buffer&&l)return l.decode(h.subarray(m,C));let b="";for(;m<C;){let S=h[m++];if(!(S&128)){b+=String.fromCharCode(S);continue}const T=h[m++]&63;if((S&224)===192){b+=String.fromCharCode((S&31)<<6|T);continue}const L=h[m++]&63;if((S&240)===224?S=(S&15)<<12|T<<6|L:S=(S&7)<<18|T<<12|L<<6|h[m++]&63,S<65536)b+=String.fromCharCode(S);else{const B=S-65536;b+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return b}function p(h,m){return h?c(r.HEAPU8,h,m):""}const d={emscripten_get_now:Oi,emscripten_memcpy_big:s,emscripten_resize_heap:a,fd_write:()=>0};async function f(){const m=await t({env:d,wasi_snapshot_preview1:d});e=m.memory,i(e.buffer),Object.assign(r,m),r.UTF8ToString=p}return await f(),r}var Ni=Object.defineProperty,Vi=(t,e,n)=>e in t?Ni(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N=(t,e,n)=>(Vi(t,typeof e!="symbol"?e+"":e,n),n);let $=null;function Mi(t){throw new tn(t.UTF8ToString(t.getLastOnigError()))}class dt{constructor(e){N(this,"utf16Length"),N(this,"utf8Length"),N(this,"utf16Value"),N(this,"utf8Value"),N(this,"utf16OffsetToUtf8"),N(this,"utf8OffsetToUtf16");const n=e.length,r=dt._utf8ByteLength(e),i=r!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const a=new Uint8Array(r);let l=0;for(let c=0;c<n;c++){const p=e.charCodeAt(c);let d=p,f=!1;if(p>=55296&&p<=56319&&c+1<n){const h=e.charCodeAt(c+1);h>=56320&&h<=57343&&(d=(p-55296<<10)+65536|h-56320,f=!0)}i&&(s[c]=l,f&&(s[c+1]=l),d<=127?o[l+0]=c:d<=2047?(o[l+0]=c,o[l+1]=c):d<=65535?(o[l+0]=c,o[l+1]=c,o[l+2]=c):(o[l+0]=c,o[l+1]=c,o[l+2]=c,o[l+3]=c)),d<=127?a[l++]=d:d<=2047?(a[l++]=192|(d&1984)>>>6,a[l++]=128|(d&63)>>>0):d<=65535?(a[l++]=224|(d&61440)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0):(a[l++]=240|(d&1835008)>>>18,a[l++]=128|(d&258048)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0),f&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let n=0;for(let r=0,i=e.length;r<i;r++){const s=e.charCodeAt(r);let o=s,a=!1;if(s>=55296&&s<=56319&&r+1<i){const l=e.charCodeAt(r+1);l>=56320&&l<=57343&&(o=(s-55296<<10)+65536|l-56320,a=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,a&&r++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const J=class{constructor(t){if(N(this,"id",++J.LAST_ID),N(this,"_onigBinding"),N(this,"content"),N(this,"utf16Length"),N(this,"utf8Length"),N(this,"utf16OffsetToUtf8"),N(this,"utf8OffsetToUtf16"),N(this,"ptr"),!$)throw new tn("Must invoke loadWasm first.");this._onigBinding=$,this.content=t;const e=new dt(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!J._sharedPtrInUse?(J._sharedPtr||(J._sharedPtr=$.omalloc(1e4)),J._sharedPtrInUse=!0,$.HEAPU8.set(e.utf8Value,J._sharedPtr),this.ptr=J._sharedPtr):this.ptr=e.createString($)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===J._sharedPtr?J._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Ge=J;N(Ge,"LAST_ID",0);N(Ge,"_sharedPtr",0);N(Ge,"_sharedPtrInUse",!1);class $i{constructor(e){if(N(this,"_onigBinding"),N(this,"_ptr"),!$)throw new tn("Must invoke loadWasm first.");const n=[],r=[];for(let a=0,l=e.length;a<l;a++){const c=new dt(e[a]);n[a]=c.createString($),r[a]=c.utf8Length}const i=$.omalloc(4*e.length);$.HEAPU32.set(n,i/4);const s=$.omalloc(4*e.length);$.HEAPU32.set(r,s/4);const o=$.createOnigScanner(i,s,e.length);for(let a=0,l=e.length;a<l;a++)$.ofree(n[a]);$.ofree(s),$.ofree(i),o===0&&Mi($),this._onigBinding=$,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new Ge(e);const s=this._findNextMatchSync(e,n,!1,i);return e.dispose(),s}return this._findNextMatchSync(e,n,!1,i)}_findNextMatchSync(e,n,r,i){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i);if(o===0)return null;const a=s.HEAPU32;let l=o/4;const c=a[l++],p=a[l++],d=[];for(let f=0;f<p;f++){const h=e.convertUtf8OffsetToUtf16(a[l++]),m=e.convertUtf8OffsetToUtf16(a[l++]);d[f]={start:h,end:m,length:m-h}}return{index:c,captureIndices:d}}}function Gi(t){return typeof t.instantiator=="function"}function Bi(t){return typeof t.default=="function"}function Fi(t){return typeof t.data<"u"}function Ui(t){return typeof Response<"u"&&t instanceof Response}function ji(t){var e;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let We;function Hi(t){if(We)return We;async function e(){$=await xi(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Gi(r)?r=await r.instantiator(n):Bi(r)?r=await r.default(n):(Fi(r)&&(r=r.data),Ui(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Wi(r)(n):r=await zi(r)(n):ji(r)?r=await kt(r)(n):r instanceof WebAssembly.Module?r=await kt(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await kt(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return We=e(),We}function kt(t){return e=>WebAssembly.instantiate(t,e)}function Wi(t){return e=>WebAssembly.instantiateStreaming(t,e)}function zi(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}let qi;function Ki(){return qi}async function ht(t){return t&&await Hi(t),{createScanner(e){return new $i(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new Ge(e)}}}let Je=!1,or=!1;function Cc(t=!0,e=!1){Je=t,or=e}function ee(t,e=3){if(Je&&!(typeof Je=="number"&&e>Je)){if(or)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}function Xi(t){return nn(t)}function nn(t){return Array.isArray(t)?Qi(t):t instanceof RegExp?t:typeof t=="object"?Ji(t):t}function Qi(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=nn(t[n]);return e}function Ji(t){let e={};for(let n in t)e[n]=nn(t[n]);return e}function ar(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function lr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?lr(t.substring(0,t.length-1)):t.substr(~e+1)}var St=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ze=class{static hasCaptures(t){return t===null?!1:(St.lastIndex=0,St.test(t))}static replaceCaptures(t,e,n){return t.replace(St,(r,i,s,o)=>{let a=n[parseInt(i||s,10)];if(a){let l=e.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(o){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function cr(t,e){return t<e?-1:t>e?1:0}function ur(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let s=cr(t[i],e[i]);if(s!==0)return s}return 0}return n-r}function bn(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function pr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var dr=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},tt=class{constructor(t,e,n){g(this,"_cachedMatchRoot",new dr(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(es(t),e)}static createFromParsedTheme(t,e){return ns(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,r=this._cachedMatchRoot.get(e).find(i=>Zi(t.parent,i.parentScopes));return r?new hr(r.fontStyle,r.foreground,r.background):null}},wt=class Ze{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const r of n)e=new Ze(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new Ze(n,e[r]);return n}push(e){return new Ze(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function Zi(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],i=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],i=!0}for(;t&&!Yi(t.scopeName,r);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Yi(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var hr=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function es(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let a;if(typeof o.scope=="string"){let d=o.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),a=d.split(",")}else Array.isArray(o.scope)?a=o.scope:a=[""];let l=-1;if(typeof o.settings.fontStyle=="string"){l=0;let d=o.settings.fontStyle.split(" ");for(let f=0,h=d.length;f<h;f++)switch(d[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof o.settings.foreground=="string"&&bn(o.settings.foreground)&&(c=o.settings.foreground);let p=null;typeof o.settings.background=="string"&&bn(o.settings.background)&&(p=o.settings.background);for(let d=0,f=a.length;d<f;d++){let m=a[d].trim().split(" "),v=m[m.length-1],E=null;m.length>1&&(E=m.slice(0,m.length-1),E.reverse()),n[r++]=new ts(v,E,i,l,c,p)}}return n}var ts=class{constructor(t,e,n,r,i,s){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=i,this.background=s}},oe=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(oe||{});function ns(t,e){t.sort((l,c)=>{let p=cr(l.scope,c.scope);return p!==0||(p=ur(l.parentScopes,c.parentScopes),p!==0)?p:l.index-c.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let s=new rs(e),o=new hr(n,s.getId(r),s.getId(i)),a=new ss(new Gt(0,null,-1,0,0),[]);for(let l=0,c=t.length;l<c;l++){let p=t[l];a.insert(0,p.scope,p.parentScopes,p.fontStyle,s.getId(p.foreground),s.getId(p.background))}return new tt(s,o,a)}var rs=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},is=Object.freeze([]),Gt=class fr{constructor(e,n,r,i,s){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=n||is,this.fontStyle=r,this.foreground=i,this.background=s}clone(){return new fr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},ss=class Bt{constructor(e,n=[],r={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=n.parentScopes.length);){const s=n.parentScopes[i].length-e.parentScopes[r].length;if(s!==0)return s;r++,i++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,s;if(r===-1?(i=e,s=""):(i=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Bt._cmpBySpecificity),n}insert(e,n,r,i,s,o){if(n===""){this._doInsertHere(e,r,i,s,o);return}let a=n.indexOf("."),l,c;a===-1?(l=n,c=""):(l=n.substring(0,a),c=n.substring(a+1));let p;this._children.hasOwnProperty(l)?p=this._children[l]:(p=new Bt(this._mainRule.clone(),Gt.cloneArr(this._rulesWithParentScopes)),this._children[l]=p),p.insert(e+1,c,r,i,s,o)}_doInsertHere(e,n,r,i,s){if(n===null){this._mainRule.acceptOverwrite(e,r,i,s);return}for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let l=this._rulesWithParentScopes[o];if(ur(l.parentScopes,n)===0){l.acceptOverwrite(e,r,i,s);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Gt(e,n,r,i,s))}},ke=class q{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=q.getLanguageId(e),r=q.getTokenType(e),i=q.getFontStyle(e),s=q.getForeground(e),o=q.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,i,s,o,a){let l=q.getLanguageId(e),c=q.getTokenType(e),p=q.containsBalancedBrackets(e)?1:0,d=q.getFontStyle(e),f=q.getForeground(e),h=q.getBackground(e);return n!==0&&(l=n),r!==8&&(c=r),i!==null&&(p=i?1:0),s!==-1&&(d=s),o!==0&&(f=o),a!==0&&(h=a),(l<<0|c<<8|p<<10|d<<11|f<<15|h<<24)>>>0}};function nt(t,e){const n=[],r=os(t);let i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=o();if(n.push({matcher:c,priority:l}),i!==",")break;i=r.next()}return n;function s(){if(i==="-"){i=r.next();const l=s();return c=>!!l&&!l(c)}if(i==="("){i=r.next();const l=a();return i===")"&&(i=r.next()),l}if(An(i)){const l=[];do l.push(i),i=r.next();while(An(i));return c=>e(l,c)}return null}function o(){const l=[];let c=s();for(;c;)l.push(c),c=s();return p=>l.every(d=>d(p))}function a(){const l=[];let c=o();for(;c&&(l.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=o()}return p=>l.some(d=>d(p))}}function An(t){return!!t&&!!t.match(/[\w\.:]+/)}function os(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}function mr(t){typeof t.dispose=="function"&&t.dispose()}var Oe=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},as=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},ls=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},cs=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Oe(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new ls;for(const n of t)us(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof Oe){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function us(t,e,n,r){const i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=n.lookup(e);t instanceof Oe?Ye({baseGrammar:s,selfGrammar:i},r):Ft(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const o=n.injections(t.scopeName);if(o)for(const a of o)r.add(new Oe(a))}function Ft(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];rt([r],e,n)}}function Ye(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&rt(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&rt(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function rt(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?ar({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&rt(r.patterns,{...e,repository:i},n);const s=r.include;if(!s)continue;const o=gr(s);switch(o.kind){case 0:Ye({...e,selfGrammar:e.baseGrammar},n);break;case 1:Ye(e,n);break;case 2:Ft(o.ruleName,{...e,repository:i},n);break;case 3:case 4:const a=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const l={baseGrammar:e.baseGrammar,selfGrammar:a,repository:i};o.kind===4?Ft(o.ruleName,l,n):Ye(l,n)}else o.kind===4?n.add(new as(o.scopeName,o.ruleName)):n.add(new Oe(o.scopeName));break}}}var ps=class{constructor(){g(this,"kind",0)}},ds=class{constructor(){g(this,"kind",1)}},hs=class{constructor(t){g(this,"kind",2);this.ruleName=t}},fs=class{constructor(t){g(this,"kind",3);this.scopeName=t}},ms=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function gr(t){if(t==="$base")return new ps;if(t==="$self")return new ds;const e=t.indexOf("#");if(e===-1)return new fs(t);if(e===0)return new hs(t.substring(1));{const n=t.substring(0,e),r=t.substring(e+1);return new ms(n,r)}}var gs=/\\(\d+)/,kn=/\\(\d+)/g,_s=-1,_r=-2;var Be=class{constructor(t,e,n,r){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=ze.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ze.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${lr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:ze.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ze.replaceCaptures(this._contentName,t,e)}},ys=class extends Be{constructor(e,n,r,i,s){super(e,n,r,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,i){throw new Error("Not supported!")}},Es=class extends Be{constructor(e,n,r,i,s){super(e,n,r,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new De(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new xe,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Sn=class extends Be{constructor(e,n,r,i,s){super(e,n,r,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new xe,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ut=class extends Be{constructor(e,n,r,i,s,o,a,l,c,p){super(e,n,r,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new De(s,this.id),this.beginCaptures=o,this._end=new De(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new xe;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},it=class extends Be{constructor(e,n,r,i,s,o,a,l,c){super(e,n,r,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new De(s,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new De(a,_r),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new xe;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new xe,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},yr=class F{static createCaptureRule(e,n,r,i,s){return e.registerRule(o=>new ys(n,o,r,i,s))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new Es(e.$vscodeTextmateLocation,e.id,e.name,e.match,F._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=ar({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Sn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,F._compilePatterns(s,n,r))}return e.while?new it(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,F._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,F._compileCaptures(e.whileCaptures||e.captures,n,r),F._compilePatterns(e.patterns,n,r)):new Ut(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,F._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,F._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,F._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);a>s&&(s=a)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);let l=0;e[o].patterns&&(l=F.getCompiledRuleId(e[o],n,r)),i[a]=F.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,l)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const a=e[s];let l=-1;if(a.include){const c=gr(a.include);switch(c.kind){case 0:case 1:l=F.getCompiledRuleId(r[a.include],n,r);break;case 2:let p=r[c.ruleName];p&&(l=F.getCompiledRuleId(p,n,r));break;case 3:case 4:const d=c.scopeName,f=c.kind===4?c.ruleName:null,h=n.getExternalGrammar(d,r);if(h)if(f){let m=h.repository[f];m&&(l=F.getCompiledRuleId(m,n,h.repository))}else l=F.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=F.getCompiledRuleId(a,n,r);if(l!==-1){const c=n.getRule(l);let p=!1;if((c instanceof Sn||c instanceof Ut||c instanceof it)&&c.hasMissingPatterns&&c.patterns.length===0&&(p=!0),p)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},De=class Er{constructor(e,n){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let i=0,s=[],o=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"&&a+1<r){const c=e.charAt(a+1);c==="z"?(s.push(e.substring(i,a)),s.push("$(?!\\n)(?<!\\n)"),i=a+2):(c==="A"||c==="G")&&(o=!0),a++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=gs.test(this.source):this.hasBackReferences=!1}clone(){return new Er(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>e.substring(i.start,i.end));return kn.lastIndex=0,this.source.replace(kn,(i,s)=>pr(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],i=[],s,o,a,l;for(s=0,o=this.source.length;s<o;s++)a=this.source.charAt(s),e[s]=a,n[s]=a,r[s]=a,i[s]=a,a==="\\"&&s+1<o&&(l=this.source.charAt(s+1),l==="A"?(e[s+1]="",n[s+1]="",r[s+1]="A",i[s+1]="A"):l==="G"?(e[s+1]="",n[s+1]="G",r[s+1]="",i[s+1]="G"):(e[s+1]=l,n[s+1]=l,r[s+1]=l,i[s+1]=l),s++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},xe=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new wn(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(i=>i.resolveAnchors(e,n));return new wn(t,r,this._items.map(i=>i.ruleId))}},wn=class{constructor(t,e,n){g(this,"scanner");this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
3
|
+
`)}findNextMatchSync(t,e,n){const r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Rt=class{constructor(t,e){this.languageId=t,this.tokenType=e}},se,Cs=(se=class{constructor(e,n){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new dr(e=>{const n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Rt(n,r)}));this._defaultAttributes=new Rt(e,8),this._embeddedLanguagesMatcher=new vs(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?se._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(se.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[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!")}},g(se,"_NULL_SCOPE_METADATA",new Rt(0,0)),g(se,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),se),vs=class{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([n,r])=>pr(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},Rn=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Cr(t,e,n,r,i,s,o,a){const l=e.content.length;let c=!1,p=-1;if(o){const h=bs(t,e,n,r,i,s);i=h.stack,r=h.linePos,n=h.isFirstLine,p=h.anchorPosition}const d=Date.now();for(;!c;){if(a!==0&&Date.now()-d>a)return new Rn(i,!0);f()}return new Rn(i,!1);function f(){const h=As(t,e,n,r,i,p);if(!h){s.produce(i,l),c=!0;return}const m=h.captureIndices,v=h.matchedRuleId,E=m&&m.length>0?m[0].end>r:!1;if(v===_s){const C=i.getRule(t);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),Te(t,e,n,i,s,C.endCaptures,m),s.produce(i,m[0].end);const b=i;if(i=i.parent,p=b.getAnchorPos(),!E&&b.getEnterPos()===r){i=b,s.produce(i,l),c=!0;return}}else{const C=t.getRule(v);s.produce(i,m[0].start);const b=i,S=C.getName(e.content,m),T=i.contentNameScopesList.pushAttributed(S,t);if(i=i.push(v,r,p,m[0].end===l,null,T,T),C instanceof Ut){const L=C;Te(t,e,n,i,s,L.beginCaptures,m),s.produce(i,m[0].end),p=m[0].end;const B=L.getContentName(e.content,m),O=T.pushAttributed(B,t);if(i=i.withContentNameScopesList(O),L.endHasBackReferences&&(i=i.withEndRule(L.getEndWithResolvedBackReferences(e.content,m))),!E&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,l),c=!0;return}}else if(C instanceof it){const L=C;Te(t,e,n,i,s,L.beginCaptures,m),s.produce(i,m[0].end),p=m[0].end;const B=L.getContentName(e.content,m),O=T.pushAttributed(B,t);if(i=i.withContentNameScopesList(O),L.whileHasBackReferences&&(i=i.withEndRule(L.getWhileWithResolvedBackReferences(e.content,m))),!E&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,l),c=!0;return}}else if(Te(t,e,n,i,s,C.captures,m),s.produce(i,m[0].end),i=i.pop(),!E){i=i.safePop(),s.produce(i,l),c=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function bs(t,e,n,r,i,s){let o=i.beginRuleCapturedEOL?0:-1;const a=[];for(let l=i;l;l=l.pop()){const c=l.getRule(t);c instanceof it&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:c,findOptions:p}=ws(l.rule,t,l.stack.endRule,n,r===o),d=c.findNextMatchSync(e,r,p);if(d){if(d.ruleId!==_r){i=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(s.produce(l.stack,d.captureIndices[0].start),Te(t,e,n,l.stack,s,l.rule.whileCaptures,d.captureIndices),s.produce(l.stack,d.captureIndices[0].end),o=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function As(t,e,n,r,i,s){const o=ks(t,e,n,r,i,s),a=t.getInjections();if(a.length===0)return o;const l=Ss(a,t,e,n,r,i,s);if(!l)return o;if(!o)return l;const c=o.captureIndices[0].start,p=l.captureIndices[0].start;return p<c||l.priorityMatch&&p===c?l:o}function ks(t,e,n,r,i,s){const o=i.getRule(t),{ruleScanner:a,findOptions:l}=vr(o,t,i.endRule,n,r===s),c=a.findNextMatchSync(e,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Ss(t,e,n,r,i,s,o){let a=Number.MAX_VALUE,l=null,c,p=0;const d=s.contentNameScopesList.getScopeNames();for(let f=0,h=t.length;f<h;f++){const m=t[f];if(!m.matcher(d))continue;const v=e.getRule(m.ruleId),{ruleScanner:E,findOptions:C}=vr(v,e,null,r,i===o),b=E.findNextMatchSync(n,i,C);if(!b)continue;const S=b.captureIndices[0].start;if(!(S>=a)&&(a=S,l=b.captureIndices,c=b.ruleId,p=m.priority,a===i))break}return l?{priorityMatch:p===-1,captureIndices:l,matchedRuleId:c}:null}function vr(t,e,n,r,i){return{ruleScanner:t.compileAG(e,n,r,i),findOptions:0}}function ws(t,e,n,r,i){return{ruleScanner:t.compileWhileAG(e,n,r,i),findOptions:0}}function Te(t,e,n,r,i,s,o){if(s.length===0)return;const a=e.content,l=Math.min(s.length,o.length),c=[],p=o[0].end;for(let d=0;d<l;d++){const f=s[d];if(f===null)continue;const h=o[d];if(h.length===0)continue;if(h.start>p)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,h.start):i.produce(r,h.start),f.retokenizeCapturedWithRuleId){const v=f.getName(a,o),E=r.contentNameScopesList.pushAttributed(v,t),C=f.getContentName(a,o),b=E.pushAttributed(C,t),S=r.push(f.retokenizeCapturedWithRuleId,h.start,-1,!1,null,E,b),T=t.createOnigString(a.substring(0,h.end));Cr(t,T,n&&h.start===0,h.start,S,i,!1,0),mr(T);continue}const m=f.getName(a,o);if(m!==null){const E=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);c.push(new Rs(E,h.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Rs=class{constructor(t,e){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=e}};function Is(t,e,n,r,i,s,o,a){return new Ps(t,e,n,r,i,s,o,a)}function In(t,e,n,r,i){const s=nt(e,st),o=yr.getCompiledRuleId(n,r,i.repository);for(const a of s)t.push({debugSelector:e,matcher:a.matcher,ruleId:o,grammar:i,priority:a.priority})}function st(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let i=n;i<e.length;i++)if(Ts(e[i],r))return n=i+1,!0;return!1})}function Ts(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var Ps=class{constructor(t,e,n,r,i,s,o,a){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=a,this._basicScopeAttributesProvider=new Cs(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Tn(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const c=nt(l,st);for(const p of c)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){const i=r.injections;if(i)for(let o in i)In(e,o,i[o],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(o=>{const a=this.getExternalGrammar(o);if(a){const l=a.injectionSelector;l&&In(e,l,a,this,a)}})}return e.sort((i,s)=>i.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=Tn(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){const r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=yr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===jt.NULL){i=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),d=ke.set(0,c.languageId,c.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),f=this.getRule(this._rootId).getName(null,null);let h;f?h=Pe.createRootAndLookUpScopeName(f,d,this):h=Pe.createRoot("unknown",d),e=new jt(null,this._rootId,-1,-1,!1,null,h,h)}else i=!1,e.reset();t=t+`
|
|
4
|
+
`;const s=this.createOnigString(t),o=s.content.length,a=new Os(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Cr(this,s,i,0,e,a,!0,r);return mr(s),{lineLength:o,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Tn(t,e){return t=Xi(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Pe=class Z{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,i=(e==null?void 0:e.scopePath)??null;for(const s of n)i=wt.push(i,s.scopeNames),r=new Z(r,i,s.encodedTokenAttributes);return r}static createRoot(e,n){return new Z(null,new wt(null,e),n)}static createRootAndLookUpScopeName(e,n,r){const i=r.getMetadataForScope(e),s=new wt(null,e),o=r.themeProvider.themeMatch(s),a=Z.mergeAttributes(n,i,o);return new Z(null,s,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return Z.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let i=-1,s=0,o=0;return r!==null&&(i=r.fontStyle,s=r.foregroundId,o=r.backgroundId),ke.set(e,n.languageId,n.tokenType,null,i,s,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return Z._pushAttributed(this,e,n);const r=e.split(/ /g);let i=this;for(const s of r)i=Z._pushAttributed(i,s,n);return i}static _pushAttributed(e,n,r){const i=r.getMetadataForScope(n),s=e.scopePath.push(n),o=r.themeProvider.themeMatch(s),a=Z.mergeAttributes(e.tokenAttributes,i,o);return new Z(e,s,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((i=r.parent)==null?void 0:i.scopePath)??null)}),r=r.parent;return r===e?n.reverse():void 0}},K,jt=(K=class{constructor(e,n,r,i,s,o,a,l){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(e){return e===null?!1:K._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?Pe.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){K._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,i,s,o,a){return new K(this,e,n,r,i,s,o,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){var r,i;return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new K(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var e,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,n){const r=Pe.fromExtension((e==null?void 0:e.nameScopesList)??null,n.nameScopesList);return new K(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Pe.fromExtension(r,n.contentNameScopesList))}},g(K,"NULL",new K(null,0,0,0,!1,null,null,null)),K),Ls=class{constructor(t,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):nt(n,st).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>nt(n,st).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Os=class{constructor(t,e,n,r){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(t==null?void 0:t.tokenAttributes)??0,s=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(t==null?void 0:t.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(i=ke.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(i=ke.set(i,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const n=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,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(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,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(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},Ds=class{constructor(t,e){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=e,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,i){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,Is(t,s,e,n,r,i,this,this._onigLib))}return this._grammars.get(t)}},xs=class{constructor(e){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new Ds(tt.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(tt.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,r){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,n,r){return this._loadGrammar(e,n,r.embeddedLanguages,r.tokenTypes,new Ls(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,r,i,s){const o=new cs(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(a=>this._loadSingleGrammar(a.scopeName)),o.processQueue();return this._grammarForScopeName(e,n,r,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(e,n=[],r=0,i=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,n=0,r=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,r,i,s)}},Ht=jt.NULL;const Ns=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Fe{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}Fe.prototype.normal={};Fe.prototype.property={};Fe.prototype.space=void 0;function br(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new Fe(n,r,e)}function Wt(t){return t.toLowerCase()}class H{constructor(e,n){this.attribute=n,this.property=e}}H.prototype.attribute="";H.prototype.booleanish=!1;H.prototype.boolean=!1;H.prototype.commaOrSpaceSeparated=!1;H.prototype.commaSeparated=!1;H.prototype.defined=!1;H.prototype.mustUseProperty=!1;H.prototype.number=!1;H.prototype.overloadedBoolean=!1;H.prototype.property="";H.prototype.spaceSeparated=!1;H.prototype.space=void 0;let Vs=0;const w=ge(),x=ge(),zt=ge(),y=ge(),P=ge(),Ce=ge(),W=ge();function ge(){return 2**++Vs}const qt=Object.freeze(Object.defineProperty({__proto__:null,boolean:w,booleanish:x,commaOrSpaceSeparated:W,commaSeparated:Ce,number:y,overloadedBoolean:zt,spaceSeparated:P},Symbol.toStringTag,{value:"Module"})),It=Object.keys(qt);class rn extends H{constructor(e,n,r,i){let s=-1;if(super(e,n),Pn(this,"space",i),typeof r=="number")for(;++s<It.length;){const o=It[s];Pn(this,It[s],(r&qt[o])===qt[o])}}}rn.prototype.defined=!0;function Pn(t,e,n){n&&(t[e]=n)}function Se(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const s=new rn(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[Wt(r)]=r,n[Wt(s.attribute)]=r}return new Fe(e,n,t.space)}const Ar=Se({properties:{ariaActiveDescendant:null,ariaAtomic:x,ariaAutoComplete:null,ariaBusy:x,ariaChecked:x,ariaColCount:y,ariaColIndex:y,ariaColSpan:y,ariaControls:P,ariaCurrent:null,ariaDescribedBy:P,ariaDetails:null,ariaDisabled:x,ariaDropEffect:P,ariaErrorMessage:null,ariaExpanded:x,ariaFlowTo:P,ariaGrabbed:x,ariaHasPopup:null,ariaHidden:x,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:P,ariaLevel:y,ariaLive:null,ariaModal:x,ariaMultiLine:x,ariaMultiSelectable:x,ariaOrientation:null,ariaOwns:P,ariaPlaceholder:null,ariaPosInSet:y,ariaPressed:x,ariaReadOnly:x,ariaRelevant:null,ariaRequired:x,ariaRoleDescription:P,ariaRowCount:y,ariaRowIndex:y,ariaRowSpan:y,ariaSelected:x,ariaSetSize:y,ariaSort:null,ariaValueMax:y,ariaValueMin:y,ariaValueNow:y,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function kr(t,e){return e in t?t[e]:e}function Sr(t,e){return kr(t,e.toLowerCase())}const Ms=Se({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ce,acceptCharset:P,accessKey:P,action:null,allow:null,allowFullScreen:w,allowPaymentRequest:w,allowUserMedia:w,alt:null,as:null,async:w,autoCapitalize:null,autoComplete:P,autoFocus:w,autoPlay:w,blocking:P,capture:null,charSet:null,checked:w,cite:null,className:P,cols:y,colSpan:null,content:null,contentEditable:x,controls:w,controlsList:P,coords:y|Ce,crossOrigin:null,data:null,dateTime:null,decoding:null,default:w,defer:w,dir:null,dirName:null,disabled:w,download:zt,draggable:x,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:w,formTarget:null,headers:P,height:y,hidden:zt,high:y,href:null,hrefLang:null,htmlFor:P,httpEquiv:P,id:null,imageSizes:null,imageSrcSet:null,inert:w,inputMode:null,integrity:null,is:null,isMap:w,itemId:null,itemProp:P,itemRef:P,itemScope:w,itemType:P,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:w,low:y,manifest:null,max:null,maxLength:y,media:null,method:null,min:null,minLength:y,multiple:w,muted:w,name:null,nonce:null,noModule:w,noValidate:w,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:w,optimum:y,pattern:null,ping:P,placeholder:null,playsInline:w,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:w,referrerPolicy:null,rel:P,required:w,reversed:w,rows:y,rowSpan:y,sandbox:P,scope:null,scoped:w,seamless:w,selected:w,shadowRootClonable:w,shadowRootDelegatesFocus:w,shadowRootMode:null,shape:null,size:y,sizes:null,slot:null,span:y,spellCheck:x,src:null,srcDoc:null,srcLang:null,srcSet:null,start:y,step:null,style:null,tabIndex:y,target:null,title:null,translate:null,type:null,typeMustMatch:w,useMap:null,value:x,width:y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:P,axis:null,background:null,bgColor:null,border:y,borderColor:null,bottomMargin:y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:w,declare:w,event:null,face:null,frame:null,frameBorder:null,hSpace:y,leftMargin:y,link:null,longDesc:null,lowSrc:null,marginHeight:y,marginWidth:y,noResize:w,noHref:w,noShade:w,noWrap:w,object:null,profile:null,prompt:null,rev:null,rightMargin:y,rules:null,scheme:null,scrolling:x,standby:null,summary:null,text:null,topMargin:y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:w,disableRemotePlayback:w,prefix:null,property:null,results:y,security:null,unselectable:null},space:"html",transform:Sr}),$s=Se({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:W,accentHeight:y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:y,amplitude:y,arabicForm:null,ascent:y,attributeName:null,attributeType:null,azimuth:y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:y,by:null,calcMode:null,capHeight:y,className:P,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:y,diffuseConstant:y,direction:null,display:null,dur:null,divisor:y,dominantBaseline:null,download:w,dx:null,dy:null,edgeMode:null,editable:null,elevation:y,enableBackground:null,end:null,event:null,exponent:y,externalResourcesRequired:null,fill:null,fillOpacity:y,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ce,g2:Ce,glyphName:Ce,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:y,horizOriginX:y,horizOriginY:y,id:null,ideographic:y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:y,k:y,k1:y,k2:y,k3:y,k4:y,kernelMatrix:W,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:y,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:y,overlineThickness:y,paintOrder:null,panose1:null,path:null,pathLength:y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:P,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:y,pointsAtY:y,pointsAtZ:y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:W,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:W,rev:W,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:W,requiredFeatures:W,requiredFonts:W,requiredFormats:W,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:y,specularExponent:y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:y,strikethroughThickness:y,string:null,stroke:null,strokeDashArray:W,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:y,strokeOpacity:y,strokeWidth:null,style:null,surfaceScale:y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:W,tabIndex:y,tableValues:null,target:null,targetX:y,targetY:y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:W,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:y,underlineThickness:y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:y,values:null,vAlphabetic:y,vMathematical:y,vectorEffect:null,vHanging:y,vIdeographic:y,version:null,vertAdvY:y,vertOriginX:y,vertOriginY:y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kr}),wr=Se({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Rr=Se({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sr}),Ir=Se({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),Gs=/[A-Z]/g,Ln=/-[a-z]/g,Bs=/^data[-\w.:]+$/i;function Fs(t,e){const n=Wt(e);let r=e,i=H;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Bs.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(Ln,js);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!Ln.test(s)){let o=s.replace(Gs,Us);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=rn}return new i(r,e)}function Us(t){return"-"+t.toLowerCase()}function js(t){return t.charAt(1).toUpperCase()}const Hs=br([Ar,Ms,wr,Rr,Ir],"html"),Tr=br([Ar,$s,wr,Rr,Ir],"svg"),On={}.hasOwnProperty;function Ws(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const a=r.handlers;if(i&&On.call(i,t)){const l=String(i[t]);o=On.call(a,l)?a[l]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const zs=/["&'<>`]/g,qs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ks=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Xs=/[|\\{}()[\]^$+*?.]/g,Dn=new WeakMap;function Qs(t,e){if(t=t.replace(e.subset?Js(e.subset):zs,r),e.subset||e.escapeOnly)return t;return t.replace(qs,n).replace(Ks,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}function Js(t){let e=Dn.get(t);return e||(e=Zs(t),Dn.set(t,e)),e}function Zs(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(Xs,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Ys=/[\dA-Fa-f]/;function eo(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!Ys.test(String.fromCharCode(e))?r:r+";"}const to=/\d/;function no(t,e,n){const r="&#"+String(t);return n&&e&&!to.test(String.fromCharCode(e))?r:r+";"}const ro=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Tt={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},io=["cent","copy","divide","gt","lt","not","para","times"],Pr={}.hasOwnProperty,Kt={};let qe;for(qe in Tt)Pr.call(Tt,qe)&&(Kt[Tt[qe]]=qe);const so=/[^\dA-Za-z]/;function oo(t,e,n,r){const i=String.fromCharCode(t);if(Pr.call(Kt,i)){const s=Kt[i],o="&"+s;return n&&ro.includes(s)&&!io.includes(s)&&(!r||e&&e!==61&&so.test(String.fromCharCode(e)))?o:o+";"}return""}function ao(t,e,n){let r=eo(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=oo(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=no(t,e,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function ve(t,e){return Qs(t,Object.assign({format:ao},e))}const lo=/^>|^->|<!--|-->|--!>|<!-$/g,co=[">"],uo=["<",">"];function po(t,e,n,r){return r.settings.bogusComments?"<?"+ve(t.value,Object.assign({},r.settings.characterReferences,{subset:co}))+">":"<!--"+t.value.replace(lo,i)+"-->";function i(s){return ve(s,Object.assign({},r.settings.characterReferences,{subset:uo}))}}function ho(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function xn(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function fo(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function mo(t){return t.join(" ").trim()}const go=/[ \t\n\f\r]/g;function sn(t){return typeof t=="object"?t.type==="text"?Nn(t.value):!1:Nn(t)}function Nn(t){return t.replace(go,"")===""}const M=Or(1),Lr=Or(-1),_o=[];function Or(t){return e;function e(n,r,i){const s=n?n.children:_o;let o=(r||0)+t,a=s[o];if(!i)for(;a&&sn(a);)o+=t,a=s[o];return a}}const yo={}.hasOwnProperty;function Dr(t){return e;function e(n,r,i){return yo.call(t,n.tagName)&&t[n.tagName](n,r,i)}}const on=Dr({body:Co,caption:Pt,colgroup:Pt,dd:ko,dt:Ao,head:Pt,html:Eo,li:bo,optgroup:So,option:wo,p:vo,rp:Vn,rt:Vn,tbody:Io,td:Mn,tfoot:To,th:Mn,thead:Ro,tr:Po});function Pt(t,e,n){const r=M(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&sn(r.value.charAt(0)))}function Eo(t,e,n){const r=M(n,e);return!r||r.type!=="comment"}function Co(t,e,n){const r=M(n,e);return!r||r.type!=="comment"}function vo(t,e,n){const r=M(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function bo(t,e,n){const r=M(n,e);return!r||r.type==="element"&&r.tagName==="li"}function Ao(t,e,n){const r=M(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function ko(t,e,n){const r=M(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Vn(t,e,n){const r=M(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function So(t,e,n){const r=M(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function wo(t,e,n){const r=M(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Ro(t,e,n){const r=M(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Io(t,e,n){const r=M(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function To(t,e,n){return!M(n,e)}function Po(t,e,n){const r=M(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function Mn(t,e,n){const r=M(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Lo=Dr({body:xo,colgroup:No,head:Do,html:Oo,tbody:Vo});function Oo(t){const e=M(t,-1);return!e||e.type!=="comment"}function Do(t){const e=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const n=t.children[0];return!n||n.type==="element"}function xo(t){const e=M(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&sn(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function No(t,e,n){const r=Lr(n,e),i=M(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&on(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Vo(t,e,n){const r=Lr(n,e),i=M(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&on(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ke={name:[[`
|
|
5
|
+
\f\r &/=>`.split(""),`
|
|
6
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
7
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
8
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
9
|
+
\f\r &>`.split(""),`\0
|
|
10
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
11
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Mo(t,e,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const a=[];let l;i.space==="html"&&t.tagName==="svg"&&(r.schema=Tr);const c=$o(r,t.properties),p=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,p&&(o=!1),(c||!s||!Lo(t,e,n))&&(a.push("<",t.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(p),!o&&(!s||!on(t,e,n))&&a.push("</"+t.tagName+">"),a.join("")}function $o(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=Go(t,i,e[i]);s&&n.push(s)}}for(;++r<n.length;){const s=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function Go(t,e,n){const r=Fs(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let o=t.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=ve(r.attribute,Object.assign({},t.settings.characterReferences,{subset:Ke.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?fo:mo)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(a=ve(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Ke.unquoted[i][s]}))),a!==n&&(t.settings.quoteSmart&&xn(n,o)>xn(n,t.alternative)&&(o=t.alternative),a=o+ve(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?Ke.single:Ke.double)[i][s],attribute:!0}))+o),l+(a&&"="+a))}const Bo=["<","&"];function xr(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:ve(t.value,Object.assign({},r.settings.characterReferences,{subset:Bo}))}function Fo(t,e,n,r){return r.settings.allowDangerousHtml?t.value:xr(t,e,n,r)}function Uo(t,e,n,r){return r.all(t)}const jo=Ws("type",{invalid:Ho,unknown:Wo,handlers:{comment:po,doctype:ho,element:Mo,raw:Fo,root:Uo,text:xr}});function Ho(t){throw new Error("Expected node, not `"+t+"`")}function Wo(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const zo={},qo={},Ko=[];function Xo(t,e){const n=e||zo,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Qo,all:Jo,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ns,characterReferences:n.characterReferences||qo,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Tr:Hs,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Qo(t,e,n){return jo(t,e,n,this)}function Jo(t){const e=[],n=t&&t.children||Ko;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}const an=String.raw,$n=an`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,Gn=an`\u{E0061}-\u{E007A}`,Zo=()=>new RegExp(an`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${Gn}]{2}[\u{E0030}-\u{E0039}${Gn}]{1,3}\u{E007F}|${$n}(?:\u200D${$n})*`,"gu"),X=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ft(t,e,n,r){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let o=0,a="";for(const l of t.matchAll(i)){const{0:c,groups:{$skip:p}}=l;if(!p&&(!r||r===X.DEFAULT==!o)){n instanceof Function?a+=n(l,{context:o?X.CHAR_CLASS:X.DEFAULT,negated:s[s.length-1]}):a+=n;continue}c[0]==="["?(o++,s.push(c[1]==="^")):c==="]"&&o&&(o--,s.pop()),a+=c}return a}function Yo(t,e,n,r){ft(t,e,n,r)}function ea(t,e,n=0,r){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let s=0,o;for(;o=i.exec(t);){const{0:a,groups:{$skip:l}}=o;if(!l&&(!r||r===X.DEFAULT==!s))return o;a==="["?s++:a==="]"&&s&&s--,i.lastIndex==o.index&&i.lastIndex++}return null}function Xe(t,e,n){return!!ea(t,e,0,n)}function ta(t,e){const n=/\\?./gsu;n.lastIndex=e;let r=t.length,i=0,s=1,o;for(;o=n.exec(t);){const[a]=o;if(a==="[")i++;else if(i)a==="]"&&i--;else if(a==="(")s++;else if(a===")"&&(s--,!s)){r=o.index;break}}return t.slice(e,r)}const me="$E$";class ln extends RegExp{constructor(n,r,i){if(n instanceof RegExp&&i)throw new Error("Cannot provide options when copying a regexp");const s=!!(i!=null&&i.useEmulationGroups),o=s?na(n):null;super((o==null?void 0:o.expression)||n,r);g(this,"_captureMap");g(this,"_namesByIndex");const a=s?o:n instanceof ln?n:null;a&&(this._captureMap=a._captureMap,this._namesByIndex=a._namesByIndex)}exec(n){const r=RegExp.prototype.exec.call(this,n);if(!r||!this._captureMap)return r;const i=[...r];r.length=1;let s;this.hasIndices&&(s=[...r.indices],r.indices.length=1);for(let o=1;o<i.length;o++)if(this._captureMap[o].exclude){const a=this._captureMap[o].transfer;if(a&&r.length>a){r[a]=i[o];const l=this._namesByIndex[a];l&&(r.groups[l]=i[o],this.hasIndices&&(r.indices.groups[l]=s[o])),this.hasIndices&&(r.indices[a]=s[o])}}else r.push(i[o]),this.hasIndices&&r.indices.push(s[o]);return r}}function na(t){const e=me.replace(/\$/g,"\\$"),n=[{exclude:!1}],r={0:""};let i=0;return t=ft(t,String.raw`\((?:(?!\?)|\?<(?![=!])(?<name>[^>]+)>)(?<mark>(?:\$(?<transfer>[1-9]\d*))?${e})?`,({0:s,groups:{name:o,mark:a,transfer:l}})=>a?(n.push({exclude:!0,transfer:l&&+l}),s.slice(0,-a.length)):(i++,o&&(r[i]=o),n.push({exclude:!1}),s),X.DEFAULT),{_captureMap:n,_namesByIndex:r,expression:t}}const ra=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function ia(t,e,n,r){return t.slice(0,e)+r+t.slice(e+n.length)}const Bn=new RegExp(String.raw`(?<noncapturingStart>${ra})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function sa(t,e){if(!/\(\?>/.test(t))return t;const n="(?>",r=`(?:(?=(${e!=null&&e.useEmulationGroups?me:""}`,i=[0];let s=0,o=0,a=NaN,l;do{l=!1;let c=0,p=0,d=!1,f;for(Bn.lastIndex=Number.isNaN(a)?0:a+r.length;f=Bn.exec(t);){const{0:h,index:m,groups:{capturingStart:v,noncapturingStart:E}}=f;if(h==="[")c++;else if(c)h==="]"&&c--;else if(h===n&&!d)a=m,d=!0;else if(d&&E)p++;else if(v)d?p++:(s++,i.push(s+o));else if(h===")"&&d){if(!p){o++,t=`${t.slice(0,a)}${r}${t.slice(a+n.length,m)}))<$$${o+s}>)${t.slice(m+1)}`,l=!0;break}p--}}}while(l);return t=ft(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:c,groups:{backrefNum:p,wrappedBackrefNum:d}})=>{if(p){const f=+p;if(f>i.length-1)throw new Error(`Backref "${c}" greater than number of captures`);return`\\${i[f]}`}return`\\${d}`},X.DEFAULT),t}const Nr=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Lt=new RegExp(String.raw`
|
|
13
|
+
\\(?: \d+
|
|
14
|
+
| c[A-Za-z]
|
|
15
|
+
| [gk]<[^>]+>
|
|
16
|
+
| [pPu]\{[^\}]+\}
|
|
17
|
+
| u[A-Fa-f\d]{4}
|
|
18
|
+
| x[A-Fa-f\d]{2}
|
|
19
|
+
)
|
|
20
|
+
| \((?: \? (?: [:=!>]
|
|
21
|
+
| <(?:[=!]|[^>]+>)
|
|
22
|
+
| [A-Za-z\-]+:
|
|
23
|
+
| \(DEFINE\)
|
|
24
|
+
))?
|
|
25
|
+
| (?<qBase>${Nr})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
26
|
+
| \\?.
|
|
27
|
+
`.replace(/\s+/g,""),"gsu");function oa(t){if(!new RegExp(`${Nr}\\+`).test(t))return t;const e=[];let n=null,r=null,i="",s=0,o;for(Lt.lastIndex=0;o=Lt.exec(t);){const{0:a,index:l,groups:{qBase:c,qMod:p,invalidQ:d}}=o;if(a==="[")s||(r=l),s++;else if(a==="]")s?s--:r=null;else if(!s)if(p==="+"&&i&&!i.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${a}"`);let f=-1;if(/^\{\d+\}$/.test(c))t=ia(t,l+c.length,p,"");else{if(i===")"||i==="]"){const h=i===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,h)}(?>${t.slice(h,l)}${c})${t.slice(l+a.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${c})${t.slice(l+a.length)}`;f+=4}Lt.lastIndex+=f}else a[0]==="("?e.push(l):a===")"&&(n=e.length?e.pop():null);i=a}return t}const z=String.raw,aa=z`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Xt=z`\(\?R=(?<rDepth>[^\)]+)\)|${aa}`,mt=z`\(\?<(?![=!])(?<captureName>[^>]+)>`,ce=new RegExp(z`${mt}|${Xt}|\(\?|\\?.`,"gsu"),Ot="Cannot use multiple overlapping recursions",Qt=new RegExp(z`(?:\$[1-9]\d*)?${me.replace(/\$/g,z`\$`)}`,"y");function la(t,e){if(!new RegExp(Xt,"su").test(t))return t;if(Xe(t,z`\(\?\(DEFINE\)`,X.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const n=!!(e!=null&&e.useEmulationGroups),r=Xe(t,z`\\[1-9]`,X.DEFAULT),i=new Map,s=[];let o=!1,a=0,l=0,c;for(ce.lastIndex=0;c=ce.exec(t);){const{0:p,groups:{captureName:d,rDepth:f,gRNameOrNum:h,gRDepth:m}}=c;if(p==="[")a++;else if(a)p==="]"&&a--;else if(f){if(Fn(f),o)throw new Error(Ot);if(r)throw new Error("Numbered backrefs cannot be used with global recursion");const v=t.slice(0,c.index),E=t.slice(ce.lastIndex);if(Xe(E,Xt,X.DEFAULT))throw new Error(Ot);return Un(v,E,+f,!1,n)}else if(h){Fn(m);let v=!1;for(const O of s)if(O.name===h||O.num===+h){if(v=!0,O.hasRecursedWithin)throw new Error(Ot);break}if(!v)throw new Error(z`Recursive \g cannot be used outside the referenced group "\g<${h}&R=${m}>"`);const E=i.get(h),C=ta(t,E);if(r&&Xe(C,z`${mt}|\((?!\?)`,X.DEFAULT))throw new Error("Numbered backrefs cannot be used with recursion of capturing groups");const b=t.slice(E,c.index),S=C.slice(b.length+p.length),T=Un(b,S,+m,!0,n),L=t.slice(0,E),B=t.slice(E+C.length);t=`${L}${T}${B}`,ce.lastIndex+=T.length-p.length-b.length-S.length,s.forEach(O=>O.hasRecursedWithin=!0),o=!0}else if(d)l++,i.set(String(l),ce.lastIndex),i.set(d,ce.lastIndex),s.push({num:l,name:d});else if(p.startsWith("(")){const v=p==="(";v&&(l++,i.set(String(l),ce.lastIndex+(n?ca(t,ce.lastIndex):0))),s.push(v?{num:l}:{})}else p===")"&&s.pop()}return t}function Fn(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function Un(t,e,n,r,i){const s=new Set;r&&Yo(t+e,mt,({groups:{captureName:a}})=>{s.add(a)},X.DEFAULT);const o=n-1;return`${t}${jn(`(?:${t}`,o,r?s:null,"forward",i)}(?:)${jn(`${e})`,o,r?s:null,"backward",i)}${e}`}function jn(t,e,n,r,i){const o=l=>r==="backward"?e-l+2-1:l+2;let a="";for(let l=0;l<e;l++){const c=o(l);a+=ft(t,z`${mt}|\\k<(?<backref>[^>]+)>${i?z`|(?<unnamed>\()(?!\?)(?:${Qt.source})?`:""}`,({0:p,index:d,groups:{captureName:f,backref:h,unnamed:m}})=>{if(h&&n&&!n.has(h))return p;if(m)return`(${me}`;const v=`_$${c}`;return f?`(?<${f}${v}>${i?me:""}`:z`\k<${h}${v}>`},X.DEFAULT)}return a}function ca(t,e){Qt.lastIndex=e;const n=Qt.exec(t);return n?n[0].length:0}var V=String.fromCodePoint,k=String.raw,ua=(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),pa=(()=>{try{new RegExp("","v")}catch{return!1}return!0})();function ot(t,{enable:e,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(e!=null&&e.dotAll||t.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(e!=null&&e.ignoreCase||t.ignoreCase)}}function at(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function Jt(t,e){return Hn[t]>=Hn[e]}function le(t,e){if(!t)throw new Error(e??"Value expected");return t}var Hn={ES2025:2025,ES2024:2024,ES2018:2018},da={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Vr(t){if((t==null?void 0:t.target)!==void 0&&!da[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t==null?void 0:t.rules}};return e.target==="auto"&&(e.target=ua?"ES2025":pa?"ES2024":"ES2018"),e}var ha=new Set([V(304),V(305)]);function Mr(t){if(ha.has(t))return[t];const e=new Set,n=t.toLowerCase(),r=n.toUpperCase(),i=_a.get(n),s=ma.get(n),o=ga.get(n);return[...r].length===1&&e.add(r),o&&e.add(o),i&&e.add(i),e.add(n),s&&e.add(s),[...e]}var $r=new Set(`C Other
|
|
28
|
+
Cc Control cntrl
|
|
29
|
+
Cf Format
|
|
30
|
+
Cn Unassigned
|
|
31
|
+
Co Private_Use
|
|
32
|
+
Cs Surrogate
|
|
33
|
+
L Letter
|
|
34
|
+
LC Cased_Letter
|
|
35
|
+
Ll Lowercase_Letter
|
|
36
|
+
Lm Modifier_Letter
|
|
37
|
+
Lo Other_Letter
|
|
38
|
+
Lt Titlecase_Letter
|
|
39
|
+
Lu Uppercase_Letter
|
|
40
|
+
M Mark Combining_Mark
|
|
41
|
+
Mc Spacing_Mark
|
|
42
|
+
Me Enclosing_Mark
|
|
43
|
+
Mn Nonspacing_Mark
|
|
44
|
+
N Number
|
|
45
|
+
Nd Decimal_Number digit
|
|
46
|
+
Nl Letter_Number
|
|
47
|
+
No Other_Number
|
|
48
|
+
P Punctuation punct
|
|
49
|
+
Pc Connector_Punctuation
|
|
50
|
+
Pd Dash_Punctuation
|
|
51
|
+
Pe Close_Punctuation
|
|
52
|
+
Pf Final_Punctuation
|
|
53
|
+
Pi Initial_Punctuation
|
|
54
|
+
Po Other_Punctuation
|
|
55
|
+
Ps Open_Punctuation
|
|
56
|
+
S Symbol
|
|
57
|
+
Sc Currency_Symbol
|
|
58
|
+
Sk Modifier_Symbol
|
|
59
|
+
Sm Math_Symbol
|
|
60
|
+
So Other_Symbol
|
|
61
|
+
Z Separator
|
|
62
|
+
Zl Line_Separator
|
|
63
|
+
Zp Paragraph_Separator
|
|
64
|
+
Zs Space_Separator
|
|
65
|
+
ASCII
|
|
66
|
+
ASCII_Hex_Digit AHex
|
|
67
|
+
Alphabetic Alpha
|
|
68
|
+
Any
|
|
69
|
+
Assigned
|
|
70
|
+
Bidi_Control Bidi_C
|
|
71
|
+
Bidi_Mirrored Bidi_M
|
|
72
|
+
Case_Ignorable CI
|
|
73
|
+
Cased
|
|
74
|
+
Changes_When_Casefolded CWCF
|
|
75
|
+
Changes_When_Casemapped CWCM
|
|
76
|
+
Changes_When_Lowercased CWL
|
|
77
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
78
|
+
Changes_When_Titlecased CWT
|
|
79
|
+
Changes_When_Uppercased CWU
|
|
80
|
+
Dash
|
|
81
|
+
Default_Ignorable_Code_Point DI
|
|
82
|
+
Deprecated Dep
|
|
83
|
+
Diacritic Dia
|
|
84
|
+
Emoji
|
|
85
|
+
Emoji_Component EComp
|
|
86
|
+
Emoji_Modifier EMod
|
|
87
|
+
Emoji_Modifier_Base EBase
|
|
88
|
+
Emoji_Presentation EPres
|
|
89
|
+
Extended_Pictographic ExtPict
|
|
90
|
+
Extender Ext
|
|
91
|
+
Grapheme_Base Gr_Base
|
|
92
|
+
Grapheme_Extend Gr_Ext
|
|
93
|
+
Hex_Digit Hex
|
|
94
|
+
IDS_Binary_Operator IDSB
|
|
95
|
+
IDS_Trinary_Operator IDST
|
|
96
|
+
ID_Continue IDC
|
|
97
|
+
ID_Start IDS
|
|
98
|
+
Ideographic Ideo
|
|
99
|
+
Join_Control Join_C
|
|
100
|
+
Logical_Order_Exception LOE
|
|
101
|
+
Lowercase Lower
|
|
102
|
+
Math
|
|
103
|
+
Noncharacter_Code_Point NChar
|
|
104
|
+
Pattern_Syntax Pat_Syn
|
|
105
|
+
Pattern_White_Space Pat_WS
|
|
106
|
+
Quotation_Mark QMark
|
|
107
|
+
Radical
|
|
108
|
+
Regional_Indicator RI
|
|
109
|
+
Sentence_Terminal STerm
|
|
110
|
+
Soft_Dotted SD
|
|
111
|
+
Terminal_Punctuation Term
|
|
112
|
+
Unified_Ideograph UIdeo
|
|
113
|
+
Uppercase Upper
|
|
114
|
+
Variation_Selector VS
|
|
115
|
+
White_Space space
|
|
116
|
+
XID_Continue XIDC
|
|
117
|
+
XID_Start XIDS`.split(/\s/)),Gr=new Map;for(const t of $r)Gr.set(gt(t),t);var fa=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji","RGI_Emoji_Flag_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence"]),Br=new Map;for(const t of fa)Br.set(gt(t),t);var ma=new Map([["s",V(383)],[V(383),"s"]]),ga=new Map([[V(223),V(7838)],[V(107),V(8490)],[V(229),V(8491)],[V(969),V(8486)]]),_a=new Map([ue(453),ue(456),ue(459),ue(498),...Dt(8072,8079),...Dt(8088,8095),...Dt(8104,8111),ue(8124),ue(8140),ue(8188)]),Fr=new Map([["alnum",k`[\p{Alpha}\p{Nd}]`],["alpha",k`\p{Alpha}`],["ascii",k`\p{ASCII}`],["blank",k`[\p{Zs}\t]`],["cntrl",k`\p{cntrl}`],["digit",k`\p{Nd}`],["graph",k`[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]`],["lower",k`\p{Lower}`],["print",k`[[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",k`[\p{P}\p{S}]`],["space",k`\p{space}`],["upper",k`\p{Upper}`],["word",k`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",k`\p{AHex}`]]),ya=new Set(["alnum","blank","graph","print","word","xdigit"]);function Ea(t,e){const n=[];for(let r=t;r<=e;r++)n.push(r);return n}function gt(t){return t.replace(/[- _]+/g,"").toLowerCase()}function ue(t){const e=V(t);return[e.toLowerCase(),e]}function Dt(t,e){return Ea(t,e).map(n=>ue(n))}var Ur=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),A={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",VariableLengthCharacterSet:"VariableLengthCharacterSet",EscapedNumber:"EscapedNumber"},G={any:"any",digit:"digit",dot:"dot",hex:"hex",non_newline:"non_newline",posix:"posix",property:"property",space:"space",word:"word"},_t={flags:"flags",keep:"keep"},U={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Wn=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),jr=k`\[\^?`,Hr=`c.? | C(?:-.?)?|${k`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${k`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${k`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${k`o\{[^\}]*\}?`}|${k`\d{1,3}`}`,Wr=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Qe=new RegExp(k`
|
|
118
|
+
\\ (?:
|
|
119
|
+
${Hr}
|
|
120
|
+
| [gk]<[^>]*>?
|
|
121
|
+
| [gk]'[^']*'?
|
|
122
|
+
| .
|
|
123
|
+
)
|
|
124
|
+
| \( (?: \? (?:
|
|
125
|
+
[:=!>(]
|
|
126
|
+
| <[=!]
|
|
127
|
+
| <[^>]*>
|
|
128
|
+
| '[^']*'
|
|
129
|
+
| ~\|?
|
|
130
|
+
| # (?:[^)\\] | \\.?)*
|
|
131
|
+
| [imx\-]+[:)]
|
|
132
|
+
)?)?
|
|
133
|
+
| ${Wr.source}
|
|
134
|
+
| ${jr}
|
|
135
|
+
| .
|
|
136
|
+
`.replace(/\s+/g,""),"gsu"),xt=new RegExp(k`
|
|
137
|
+
\\ (?:
|
|
138
|
+
${Hr}
|
|
139
|
+
| .
|
|
140
|
+
)
|
|
141
|
+
| \[:[^:]*:\]
|
|
142
|
+
| ${jr}
|
|
143
|
+
| &&
|
|
144
|
+
| .
|
|
145
|
+
`.replace(/\s+/g,""),"gsu");function zr(t,e="",n){if(n={captureGroup:!1,singleline:!1,...n},typeof t!="string")throw new Error("String expected as pattern");if(!/^[imxDSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const r=e.includes("x"),i=[r],s={captureGroup:n.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(d){i.push(d)},replaceCurrentModX(d){i[i.length-1]=d},singleline:n.singleline};let o=[],a;for(Qe.lastIndex=0;a=Qe.exec(t);){const d=Ca(s,t,a[0],Qe.lastIndex);d.tokens?o.push(...d.tokens):d.token&&o.push(d.token),d.lastIndex!==void 0&&(Qe.lastIndex=d.lastIndex)}const l=[];let c=0;o.forEach(d=>{d.type===A.GroupOpen&&(d.kind===U.capturing?d.number=++c:d.raw==="("&&l.push(d))}),c||l.forEach((d,f)=>{d.kind=U.capturing,d.number=f+1});const p=c||l.length;return o=o.map(d=>d.type===A.EscapedNumber?Ta(d,p):d).flat(),{tokens:o,flags:{ignoreCase:e.includes("i"),dotAll:e.includes("m"),extended:r,digitIsAscii:e.includes("D"),spaceIsAscii:e.includes("S"),wordIsAscii:e.includes("W")},rules:n}}function Ca(t,e,n,r){const[i,s,o]=n;if(i==="["){const a=va(e,n,r);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGzZ".includes(s))return{token:R(A.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:R(A.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:R(A.Backreference,n)}}if(s==="K")return{token:R(A.Directive,n,{kind:_t.keep})};if(s==="N")return{token:R(A.CharacterSet,n,{kind:G.non_newline})};if(s==="O")return{token:R(A.CharacterSet,n,{kind:G.any})};if("RX".includes(s))return{token:R(A.VariableLengthCharacterSet,n,{kind:n})};if("yY".includes(s))throw new Error(`Unsupported grapheme boundary "${n}"`);const a=qr(n,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(o==="#"){if(e[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if("-imx".includes(o))return{token:ka(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:R(A.GroupOpen,n,{kind:U.group})};if(n==="(?>")return{token:R(A.GroupOpen,n,{kind:U.atomic})};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:R(A.GroupOpen,n,{kind:o==="<"?U.lookbehind:U.lookahead,negate:n.endsWith("!")})};if(o==="<"||o==="'"||n==="("&&t.captureGroup){const a=R(A.GroupOpen,n,{kind:U.capturing});return n!=="("&&(a.name=n.slice(3,-1)),{token:a}}if(o==="~"){if(n==="(?~|")throw new Error(`Unsupported absent function kind "${n}"`);return{token:R(A.GroupOpen,n,{kind:U.absent_repeater})}}throw o==="("?new Error(`Unsupported conditional "${n}"`):n==="(?"?new Error("Invalid group"):new Error(`Unexpected group "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:R(A.GroupClose,n)}}if(n==="#"&&t.getCurrentModX()){const a=e.indexOf(`
|
|
146
|
+
`,r);return{lastIndex:a===-1?e.length:a}}if(/^\s$/.test(n)&&t.getCurrentModX()){const a=/\s+/y;return a.lastIndex=r,{lastIndex:a.exec(e)?a.lastIndex:r}}if(n===".")return{token:R(A.CharacterSet,n,{kind:G.dot})};if(n==="^"||n==="$"){const a=t.singleline?{"^":k`\A`,$:k`\Z`}[n]:n;return{token:R(A.Assertion,n,{kind:a})}}return n==="|"?{token:R(A.Alternator,n)}:Wr.test(n)?{token:Sa(n)}:(Kr(n),{token:R(A.Character,n,{value:n.codePointAt(0)})})}function va(t,e,n){const r=[R(A.CharacterClassOpen,e,{negate:e[1]==="^"})];let i=1,s;for(xt.lastIndex=n;s=xt.exec(t);){const o=s[0];if(o[0]==="["&&o[1]!==":")i++,r.push(R(A.CharacterClassOpen,o,{negate:o[1]==="^"}));else if(o==="]"){if(r.at(-1).type===A.CharacterClassOpen)r.push(R(A.Character,o,{value:93}));else if(i--,r.push(R(A.CharacterClassClose,o)),!i)break}else{const a=ba(o);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:xt.lastIndex||t.length}}function ba(t){if(t[0]==="\\")return qr(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!Fr.get(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return R(A.CharacterSet,t,{kind:G.posix,negate:!!e.groups.negate,value:e.groups.name})}return t==="-"?R(A.CharacterClassHyphen,t):t==="&&"?R(A.CharacterClassIntersector,t):(Kr(t),R(A.Character,t,{value:t.codePointAt(0)}))}function qr(t,{inCharClass:e}){const n=t[1];if(n==="c"||n==="C")return Aa(t);if("dDhHsSwW".includes(n))return wa(t);if(t.startsWith(k`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return Ra(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const r=t.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),s=new TextEncoder;return[...i].map(a=>{const l=[...s.encode(a)].map(c=>`\\x${c.toString(16)}`).join("");return R(A.Character,l,{value:a.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return R(A.Character,t,{value:Ia(t)});if(Wn.has(n))return R(A.Character,t,{value:Wn.get(n)});if(/\d/.test(n))return R(A.EscapedNumber,t,{inCharClass:e});if(t==="\\")throw new Error(k`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return R(A.Character,t,{value:t.codePointAt(1)});throw new Error(`Unexpected escape "${t}"`)}function R(t,e,n){return{type:t,raw:e,...n}}function Aa(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return R(A.Character,t,{value:e.toUpperCase().codePointAt(0)-64})}function ka(t,e){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[imx\-]*))?/.exec(t).groups;r??(r="");const i=(e.getCurrentModX()||n.includes("x"))&&!r.includes("x"),s=zn(n),o=zn(r),a={};if(s&&(a.enable=s),o&&(a.disable=o),t.endsWith(")"))return e.replaceCurrentModX(i),R(A.Directive,t,{kind:_t.flags,flags:a});if(t.endsWith(":")){e.pushModX(i),e.numOpenGroups++;const l=R(A.GroupOpen,t,{kind:U.group});return(s||o)&&(l.flags=a),l}throw new Error(`Unexpected flag modifier "${t}"`)}function Sa(t){const e={};if(t[0]==="{"){const{min:n,max:r}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(t).groups,i=1e5;if(+n>i||+r>i)throw new Error("Quantifier value unsupported in Oniguruma");e.min=+n,e.max=r===void 0?+n:r===""?1/0:+r,e.greedy=!t.endsWith("?"),e.possessive=!1}else e.min=t[0]==="+"?1:0,e.max=t[0]==="?"?1:1/0,e.greedy=t[1]!=="?",e.possessive=t[1]==="+";return R(A.Quantifier,t,e)}function wa(t){const e=t[1].toLowerCase();return R(A.CharacterSet,t,{kind:{d:G.digit,h:G.hex,s:G.space,w:G.word}[e],negate:t[1]!==e})}function Ra(t){const{p:e,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups,i=e==="P"&&!n||e==="p"&&!!n;return R(A.CharacterSet,t,{kind:G.property,negate:i,value:r})}function zn(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function Ia(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function Ta(t,e){const{raw:n,inCharClass:r}=t,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[R(A.Backreference,n)];const s=[],o=i.match(/^[0-7]+|\d/g);for(let a=0;a<o.length;a++){const l=o[a];let c;if(a===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(k`Octal encoded byte above 177 unsupported "${n}"`)}else c=l.codePointAt(0);s.push(R(A.Character,(a===0?"\\":"")+l,{value:c}))}return s}function Kr(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`)}function cn({alternatives:t},e){return t.length===1&&t[0].elements.length===1&&(!e||e(t[0].elements[0]))}function Pa({type:t}){return t===_.Assertion||t===_.Directive}function La(t){const e=[_.Character,_.CharacterClass,_.CharacterSet];return e.includes(t.type)||t.type===_.Quantifier&&t.min&&e.includes(t.element.type)}function Xr({type:t}){return t===_.CapturingGroup||t===_.Group}function Ue({type:t,kind:e}){return t===_.Assertion&&(e===I.lookahead||e===I.lookbehind)}function be(t,e,n){let r=t.node;for(;r.parent;)r=r.parent;function i(o,a){for(let l=0;l<o.length;l++){const c=s(o[l],a,l,o);l=Math.max(-1,l+c)}}function s(o,a=null,l=null,c=null){let p=0,d=!1;const f={node:o,parent:a,key:l,container:c,ast:r,remove(){le(c,"Container expected").splice(Math.max(0,l+p),1),p-=1},removeAllNextSiblings(){return le(c,"Container expected").splice(l+1)},removeAllPrevSiblings(){const C=l+p;return p-=C,le(c,"Container expected").splice(0,Math.max(0,C))},replaceWith(C){Da(C,a),c?c[Math.max(0,l+p)]=C:a[l]=C},skip(){d=!0}},h=Oa(o).find(C=>!!n[C]),m=h&&n[h],v=typeof m=="function"?m:m==null?void 0:m.enter,E=m==null?void 0:m.exit;if(v==null||v(f,e),!d)switch(o.type){case _.Regex:s(o.pattern,o,"pattern"),s(o.flags,o,"flags");break;case _.Alternative:case _.CharacterClass:i(o.elements,o);break;case _.Assertion:Ue(o)&&i(o.alternatives,o);break;case _.Backreference:case _.Character:case _.CharacterSet:case _.Directive:case _.Flags:case _.Recursion:case _.Subroutine:case _.VariableLengthCharacterSet:break;case _.AbsentFunction:case _.CapturingGroup:case _.Group:case _.Pattern:i(o.alternatives,o);break;case _.CharacterClassIntersection:i(o.classes,o);break;case _.CharacterClassRange:s(o.min,o,"min"),s(o.max,o,"max");break;case _.Quantifier:s(o.element,o,"element");break;default:throw new Error(`Unexpected node type "${o.type}"`)}return E==null||E(f,e),p}s(t.node,t.parent,t.key,t.container)}var qn={AnyGroup:"AnyGroup",AnyNode:"AnyNode"};function Oa(t){const e=[qn.AnyNode];return(Xr(t)||Ue(t))&&e.push(qn.AnyGroup),e.push(t.type),e}function Da(t,e){"parent"in e&&(t.parent=e)}var _={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassIntersection:"CharacterClassIntersection",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",VariableLengthCharacterSet:"VariableLengthCharacterSet",Recursion:"Recursion"},xa={repeater:"repeater"},I={line_end:"line_end",line_start:"line_start",lookahead:"lookahead",lookbehind:"lookbehind",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},D=G,et=_t,lt={grapheme:"grapheme",newline:"newline"};function Qr({tokens:t,flags:e,rules:n},r){const i={skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,verbose:!1,...r},s={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,parent:null,skipBackrefValidation:i.skipBackrefValidation,skipLookbehindValidation:i.skipLookbehindValidation,skipPropertyNameValidation:i.skipPropertyNameValidation,subroutines:[],token:null,tokens:t,verbose:i.verbose,walk:o};function o(h,m){const v=t[s.current];switch(s.parent=h,s.token=v,s.current++,v.type){case A.Alternator:return de();case A.Assertion:return ja(v);case A.Backreference:return Na(s);case A.Character:return Yr(v.value,{useLastValid:!!m.isCheckingRangeEnd});case A.CharacterClassHyphen:return Va(s,m);case A.CharacterClassOpen:return Ma(s,m);case A.CharacterSet:return $a(s);case A.Directive:return qa(v);case A.GroupOpen:return Ga(s,m);case A.Quantifier:return Ba(s);case A.Subroutine:return Fa(s);case A.VariableLengthCharacterSet:return Za(v.kind);default:throw new Error(`Unexpected token type "${v.type}"`)}}const a=Qa(Xa(),Ka(e));let l=a.pattern.alternatives[0];for(;s.current<t.length;){const h=o(l,{});h.type===_.Alternative?(a.pattern.alternatives.push(h),l=h):l.elements.push(h)}const{capturingGroups:c,hasNumberedRef:p,namedGroupsByName:d,subroutines:f}=s;if(p&&d.size&&!n.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:h}of f)if(typeof h=="number"){if(h>c.length)throw new Error("Subroutine uses a group number that's not defined")}else if(d.has(h)){if(d.get(h).length>1)throw new Error(k`Subroutine uses a duplicate group name "\g<${h}>"`)}else throw new Error(k`Subroutine uses a group name that's not defined "\g<${h}>"`);return be({node:a},null,{AnyNode({node:h,parent:m}){h.parent=m}}),a}function Na(t){const{raw:e}=t.token,n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(s,o=!1)=>{const a=t.capturingGroups.length;let l=!1;if(s>a)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Zt(o?a+1-s:s,{orphan:l})};if(n){const s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(s)return i(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return Zt(r)}return i(+r)}function Va(t,e){const{parent:n,tokens:r,walk:i}=t,s=n.elements.at(-1),o=r[t.current];if(!e.isCheckingRangeEnd&&s&&s.type!==_.CharacterClass&&s.type!==_.CharacterClassRange&&o&&o.type!==A.CharacterClassOpen&&o.type!==A.CharacterClassClose&&o.type!==A.CharacterClassIntersector){const a=i(n,{...e,isCheckingRangeEnd:!0});if(s.type===_.Character&&a.type===_.Character)return n.elements.pop(),za(s,a);throw new Error("Invalid character class range")}return Yr(45)}function Ma(t,e){const{token:n,tokens:r,verbose:i,walk:s}=t,o=r[t.current];let a=Yt({negate:n.negate});const l=a.elements[0];let c=Kn(o);for(;c.type!==A.CharacterClassClose;){if(c.type===A.CharacterClassIntersector)l.classes.push(Yt({negate:!1,baseOnly:!0})),t.current++;else{const p=l.classes.at(-1);p.elements.push(s(p,e))}c=Kn(r[t.current],o)}if(i||nl(l),l.classes.length===1){const p=l.classes[0];p.negate=a.negate!==p.negate,a=p}return t.current++,a}function $a({token:t,skipPropertyNameValidation:e}){let{kind:n,negate:r,value:i}=t;if(n===G.property){const s=gt(i);if(ya.has(s))n=G.posix,i=s;else return ye(i,{negate:r,skipPropertyNameValidation:e})}return n===G.posix?{type:_.CharacterSet,kind:D.posix,negate:r,value:i}:en(n,{negate:r})}function Ga(t,e){const{token:n,tokens:r,capturingGroups:i,namedGroupsByName:s,skipLookbehindValidation:o,verbose:a,walk:l}=t;let c=Ha(n);const p=c.type===_.AbsentFunction,d=c.kind===I.lookbehind,f=d&&c.negate;if(c.type===_.CapturingGroup&&(i.push(c),c.name&&at(s,c.name,[]).push(c)),p&&e.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let h=Xn(r[t.current]);for(;h.type!==A.GroupClose;){if(h.type===A.Alternator)c.alternatives.push(de()),t.current++;else{const m=c.alternatives.at(-1),v=l(m,{...e,isInAbsentFunction:e.isInAbsentFunction||p,isInLookbehind:e.isInLookbehind||d,isInNegLookbehind:e.isInNegLookbehind||f});if(m.elements.push(v),(d||e.isInLookbehind)&&!o){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(f||e.isInNegLookbehind){if(v.kind===I.lookahead||v.type===_.CapturingGroup)throw new Error(E)}else if(v.kind===I.lookahead||v.kind===I.lookbehind&&v.negate)throw new Error(E)}}h=Xn(r[t.current])}return a||(c=el(c)),t.current++,c}function Ba({token:t,parent:e}){const{min:n,max:r,greedy:i,possessive:s}=t,o=e.elements.at(-1);if(!o||o.type===_.Assertion||o.type===_.Directive)throw new Error("Quantifier requires a repeatable token");const a=ei(o,n,r,i,s);return e.elements.pop(),a}function Fa(t){const{token:e,capturingGroups:n,subroutines:r}=t;let i=e.raw.slice(3,-1);const s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(s){const a=+s.groups.num,l=n.length;if(t.hasNumberedRef=!0,i={"":a,"+":l+a,"-":l+1-a}[s.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const o=Ja(i);return r.push(o),o}function Ua(t){return{type:_.AbsentFunction,kind:t,alternatives:[de()]}}function de(){return{type:_.Alternative,elements:[]}}function Jr(t,e){const n=!!(e!=null&&e.negate);return{type:_.Assertion,kind:t,...t===I.word_boundary&&{negate:n}}}function ja({kind:t}){return Jr(le({"^":I.line_start,$:I.line_end,"\\A":I.string_start,"\\b":I.word_boundary,"\\B":I.word_boundary,"\\G":I.search_start,"\\z":I.string_end,"\\Z":I.string_end_newline}[t],`Unexpected assertion kind "${t}"`),{negate:t===k`\B`})}function Zt(t,e){const n=!!(e!=null&&e.orphan);return{type:_.Backreference,...n&&{orphan:n},ref:t}}function Ha({flags:t,kind:e,name:n,negate:r,number:i}){switch(e){case U.absent_repeater:return Ua(xa.repeater);case U.atomic:return Y({atomic:!0});case U.capturing:return Zr(i,n);case U.group:return Y({flags:t});case U.lookahead:case U.lookbehind:return Le({behind:e===U.lookbehind,negate:r});default:throw new Error(`Unexpected group kind "${e}"`)}}function Zr(t,e){const n=e!==void 0;if(n&&!tl(e))throw new Error(`Group name "${e}" invalid in Oniguruma`);return{type:_.CapturingGroup,number:t,...n&&{name:e},alternatives:[de()]}}function Yr(t,e){const n={useLastValid:!1,...e};if(t>1114111){const r=t.toString(16);if(n.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:_.Character,value:t}}function Yt(t){const e={baseOnly:!1,negate:!1,...t};return{type:_.CharacterClass,negate:e.negate,elements:e.baseOnly?[]:[Wa()]}}function Wa(){return{type:_.CharacterClassIntersection,classes:[Yt({negate:!1,baseOnly:!0})]}}function za(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:_.CharacterClassRange,min:t,max:e}}function en(t,{negate:e}){const n={type:_.CharacterSet,kind:le(D[t],`Unexpected character set kind "${t}"`)};return(t===G.digit||t===G.hex||t===G.space||t===G.word)&&(n.negate=e),n}function qa({kind:t,flags:e}){const n={type:_.Directive,kind:le(et[t],`Unexpected directive kind "${t}"`)};return t===_t.flags&&(n.flags=e),n}function Ka({ignoreCase:t,dotAll:e,extended:n,digitIsAscii:r,spaceIsAscii:i,wordIsAscii:s}){return{type:_.Flags,ignoreCase:t,dotAll:e,extended:n,digitIsAscii:r,spaceIsAscii:i,wordIsAscii:s}}function Y(t){const e=t==null?void 0:t.atomic,n=t==null?void 0:t.flags;return{type:_.Group,...e&&{atomic:e},...n&&{flags:n},alternatives:[de()]}}function Le(t){const e={behind:!1,negate:!1,...t};return{type:_.Assertion,kind:e.behind?I.lookbehind:I.lookahead,negate:e.negate,alternatives:[de()]}}function Xa(){return{type:_.Pattern,alternatives:[de()]}}function ei(t,e,n,r=!0,i=!1){const s={type:_.Quantifier,min:e,max:n,greedy:r,possessive:i,element:t};return n<e?{...s,min:n,max:e,possessive:!0}:s}function Qa(t,e){return{type:_.Regex,pattern:t,flags:e}}function Ja(t){return{type:_.Subroutine,ref:t}}function ye(t,e){const n={negate:!1,skipPropertyNameValidation:!1,...e};return{type:_.CharacterSet,kind:D.property,value:n.skipPropertyNameValidation?t:Ya(t),negate:n.negate}}function Za(t){return{type:_.VariableLengthCharacterSet,kind:le({"\\R":lt.newline,"\\X":lt.grapheme}[t],`Unexpected varcharset kind "${t}"`)}}function Ya(t){const e=gt(t);if(Br.has(e))throw new Error(k`Unicode property "\p{${t}}" unsupported in Oniguruma`);const n=Gr.get(e);return n||t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}function el(t){const e=t.alternatives[0].elements[0];return t.type===_.Group&&cn(t,n=>n.type===_.Group)&&!(t.atomic&&e.flags)&&!(t.flags&&(e.atomic||e.flags))?(t.atomic?e.atomic=!0:t.flags&&(e.flags=t.flags),e):t}function tl(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function nl(t){for(let e=0;e<t.classes.length;e++){const n=t.classes[e],r=n.elements[0];n.elements.length===1&&r.type===_.CharacterClass&&(t.classes[e]=r,r.negate=n.negate!==r.negate)}}function Kn(t,e){return le(t,`${(e==null?void 0:e.value)===93?"Empty":"Unclosed"} character class`)}function Xn(t){return le(t,"Unclosed group")}function rl(t,e){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e},r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Jt(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};be({node:t},r,ti);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},s={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};be({node:t},s,ni);const o={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return be({node:t},o,il),t._strategy=r.strategy,t}var ti={AbsentFunction({node:t,replaceWith:e}){const n=ie(Y(),[Ne(Le({negate:!0}),t.alternatives),ye("Any")]),r=ei(n,0,1/0);n.parent=r,e(ie(Y(),[r]))},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:r}){const i=t.elements.filter(s=>s.kind===et.flags);for(let s=n+1;s<e.alternatives.length;s++){const o=e.alternatives[s];at(r,o,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){var n;if((n=e.get(t))!=null&&n.length){const r=ii(e.get(t));if(r){const i=ie(Y({flags:r}),t.elements);i.parent=t,t.elements=[i]}}}},Assertion({node:t,key:e,container:n,ast:r,remove:i,replaceWith:s},o){const{kind:a,negate:l}=t,{asciiWordBoundaries:c,avoidSubclass:p,supportedGNodes:d,wordIsAscii:f}=o;if(a===I.line_end)s(Q(k`(?=\z|\n)`));else if(a===I.line_start)s(Q(k`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}));else if(a===I.lookbehind)o.passedLookbehind=!0;else if(a===I.search_start)if(d.has(t))r.flags.sticky=!0,i();else{const h=n[e-1];if(h&&La(h))s(ie(Le({negate:!0})));else{if(p)throw new Error(k`Uses "\G" in a way that requires a subclass`);s(Jr(I.string_start)),o.strategy="search_start_clip"}}else if(a===I.string_end_newline)s(Q(k`(?=\n?\z)`));else if(a===I.word_boundary&&!f&&!c){const h=`(?:(?<=${re})(?!${re})|(?<!${re})(?=${re}))`,m=`(?:(?<=${re})(?=${re})|(?<!${re})(?!${re}))`;s(Q(l?m:h))}},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!Vt(n)&&(n=Nt(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:r}=t;r&&!Vt(r)&&(r=Nt(r,e),t.name=r),n.set(t.number,t),r&&n.set(r,t)},CharacterSet({node:t,replaceWith:e},{accuracy:n,minTargetEs2024:r,digitIsAscii:i,spaceIsAscii:s,wordIsAscii:o}){const{kind:a,negate:l,value:c}=t;if(i&&(a===D.digit||c==="digit")){e(en(D.digit,{negate:l}));return}if(s&&(a===D.space||c==="space")){e(Mt(Q(sl),l));return}if(o&&(a===D.word||c==="word")){e(en(D.word,{negate:l}));return}if(a===D.any)e(ye("Any"));else if(a===D.digit)e(ye("Nd",{negate:l}));else if(a===D.hex)e(ye("AHex",{negate:l}));else if(a===D.non_newline)e(Q(k`[^\n]`));else if(a===D.space)e(ye("space",{negate:l}));else if(a===D.word)e(Mt(Q(re),l));else if(a===D.property)$r.has(c)||(t.key="sc");else if(a===D.posix)if(!r&&(c==="graph"||c==="print")){if(n==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[c];l&&(p=`\0-${V(p.codePointAt(0)-1)}${V(p.codePointAt(2)+1)}-`),e(Q(`[${p}]`))}else e(Mt(Q(Fr.get(c)),l))},Directive(t,e){const{node:n,parent:r,ast:i,remove:s,replaceWith:o,removeAllPrevSiblings:a,removeAllNextSiblings:l}=t,{kind:c,flags:p}=n;if(c===et.flags)if(!p.enable&&!p.disable)s();else{const d=ie(Y({flags:p}),l());o(d),li(d,t,e,ti)}else if(c===et.keep){const d=i.pattern.alternatives[0].elements[0],h=cn(i.pattern,m=>m.type===_.Group)&&d.alternatives.length===1?d:i.pattern;if(r.parent!==h||h.alternatives.length>1)throw new Error(k`Uses "\K" in a way that's unsupported`);o(ie(Le({behind:!0}),a()))}},Flags({node:t,parent:e}){["digitIsAscii","extended","spaceIsAscii","wordIsAscii"].forEach(n=>delete t[n]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:n}=t.flags;e!=null&&e.extended&&delete e.extended,n!=null&&n.extended&&delete n.extended,e!=null&&e.dotAll&&(n!=null&&n.dotAll)&&delete e.dotAll,e!=null&&e.ignoreCase&&(n!=null&&n.ignoreCase)&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},Pattern:{enter({node:t},{supportedGNodes:e}){const n=[];let r=!1,i=!1;for(const s of t.alternatives)if(s.elements.length===1&&s.elements[0].kind===I.search_start)s.elements.pop();else{const o=oi(s.elements);o?(r=!0,Array.isArray(o)?n.push(...o):n.push(o)):i=!0}r&&!i&&n.forEach(s=>e.add(s))},exit(t,{accuracy:e,passedLookbehind:n,strategy:r}){if(e==="strict"&&n&&r)throw new Error(k`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:t}){if(t.element.type===_.Quantifier){const e=ie(Y(),[t.element]);e.parent=t,t.element=e}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!Vt(n)&&(n=Nt(n,e),t.ref=n)},VariableLengthCharacterSet({node:t,replaceWith:e},{accuracy:n,minTargetEs2024:r}){const{kind:i}=t;if(i===lt.newline)e(Q(`(?>\r
|
|
147
|
+
?|[
|
|
148
|
+
\v\f
\u2028\u2029])`));else if(i===lt.grapheme){if(n==="strict")throw new Error(k`Use of "\X" requires non-strict accuracy`);const s=r?k`\p{RGI_Emoji}`:Zo().source.replace(/\\u\{/g,"\\x{");e(Q(k`(?>\r\n|${s}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}))}else throw new Error(`Unexpected varcharset kind "${i}"`)}},ni={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=t;r||n.set(t,[...e.get(i).map(({node:s})=>s)])},CapturingGroup:{enter({node:t,replaceWith:e,skip:n},{groupOriginByCopy:r,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:a}){const l=r.get(t);if(l&&o.has(t.number)){const p=Qn(t.number);a.set(p,o.get(t.number)),e(p),n();return}o.set(t.number,t),s.set(t.number,[]),t.name&&at(s,t.name,[]);const c=s.get(t.name??t.number);for(let p=0;p<c.length;p++){const d=c[p];if(l===d.node||l&&l===d.origin||t===d.origin){c.splice(p,1);break}}if(s.get(t.number).push({node:t,origin:l}),t.name&&s.get(t.name).push({node:t,origin:l}),t.name){const p=at(i,t.name,new Map);let d=!1;if(l)d=!0;else for(const f of p.values())if(!f.hasDuplicateNameToRemove){d=!0;break}i.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:d})}l&&(t._originNumber=l.number)},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=ot(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Recursion({node:t,parent:e},{reffedNodesByReferencer:n}){const{ref:r}=t;let i=e;for(;(i=i.parent)&&!(i.type===_.CapturingGroup&&(i.name===r||i.number===r)););n.set(t,i)},Subroutine(t,e){const{node:n,replaceWith:r}=t,{ref:i}=n,s=e.subroutineRefMap.get(i),o=i===0,a=o?Qn(0):ri(s,e.groupOriginByCopy,null);let l=a;if(!o){const c=ii(ll(s,d=>d.type===_.Group&&!!d.flags)),p=c?ot(e.globalFlags,c):e.globalFlags;ol(p,e.currentFlags)||(l=ie(Y({flags:cl(p)}),[a]))}r(l),o||li(l,t,e,ni)}},il={Backreference({node:t,replaceWith:e},n){if(t.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,t.ref);return}const i=n.reffedNodesByReferencer.get(t).filter(s=>al(s,t));if(!i.length)e(ie(Le({negate:!0})));else if(i.length>1){const s=i.map(o=>Ne(de(),[Zt(o.number)]));e(Ne(Y(),s))}else t.ref=i[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Recursion({node:t},e){t.ref!==0&&(t.ref=e.reffedNodesByReferencer.get(t).number)},Regex:{exit({node:t},e){const n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let r=0;r<n;r++){const i=Zr();t.pattern.alternatives.at(-1).elements.push(i)}}}},sl="[ -\r ]",re=k`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ne(t,e){return e.forEach(n=>n.parent=t),t[un(t)]=e,t}function ol(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function al(t,e){let n=e;do{if(n.type===_.Pattern)return!1;if(n.type===_.Alternative)continue;if(n===t)return!1;const r=si(n.parent);for(const i of r){if(i===n)break;if(i===t||ai(i,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function ri(t,e,n,r){const i=Array.isArray(t)?[]:{};for(const[s,o]of Object.entries(t))s==="parent"?i.parent=Array.isArray(n)?r:n:o&&typeof o=="object"?i[s]=ri(o,e,i,n):(s==="type"&&o===_.CapturingGroup&&e.set(i,e.get(t)??t),i[s]=o);return i}function Qn(t){return{type:_.Recursion,ref:t}}function ll(t,e){const n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function Nt(t,e){if(e.has(t))return e.get(t);const n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function un(t){for(const e of["alternatives","classes","elements"])if(t[e])return e;return null}function ii(t){const e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:r})=>{e.forEach(i=>{var s,o;(s=r.enable)!=null&&s[i]&&(delete n.disable[i],n.enable[i]=!0),(o=r.disable)!=null&&o[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function cl({dotAll:t,ignoreCase:e}){const n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function si(t){if(!t)throw new Error("Node expected");if(t.type===_.Quantifier)return[t.element];const e=un(t);return e&&t[e]}function oi(t){const e=t.find(n=>n.kind===I.search_start||ul(n,{negate:!1})||!Pa(n));if(!e)return null;if(e.kind===I.search_start)return e;if(Ue(e))return e.alternatives[0].elements[0];if(Xr(e)){const n=[];for(const r of e.alternatives){const i=oi(r.elements);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function ai(t,e){const n=si(t)??[];for(const r of n)if(r===e||ai(r,e))return!0;return!1}function ul(t,e){const n={negate:null,...e};return Ue(t)&&(n.negate===null||t.negate===n.negate)&&cn(t,r=>r.kind===I.search_start)}function Vt(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function Q(t,e){const r=Qr(zr(t),e).pattern.alternatives;return r.length>1||r[0].elements.length>1?Ne(Y(),r):r[0].elements[0]}function ie(t,e){const n=un(t);return t[n][0].parent=t,e&&Ne(t[n][0],e),t}function Mt(t,e){return t.negate=e,t}function li(t,{parent:e,key:n,container:r},i,s){be({node:t,parent:e,key:n,container:r},i,s)}function pl(t,e){const n=Vr(e),r=Jt(n.target,"ES2024"),i=Jt(n.target,"ES2025"),s=n.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let o=null,a=null;if(!i){const h=[t.flags.ignoreCase];be({node:t},{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(m){h.push(m)},setHasCasedChar(){h.at(-1)?o=!0:a=!0}},dl)}const l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||o)&&!a)};let c=null;const p={accuracy:n.accuracy,appliedGlobalFlags:l,avoidSubclass:n.avoidSubclass,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:c,recursionLimit:s,useAppliedIgnoreCase:!!(!i&&o&&a),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(h){switch(p.lastNode=c,c=h,h.type){case _.Regex:return{pattern:d(h.pattern),flags:d(h.flags),options:{...h.options}};case _.Alternative:return h.elements.map(d).join("");case _.Assertion:return _l(h,p,d);case _.Backreference:return yl(h,p);case _.CapturingGroup:return El(h,p,d);case _.Character:return Cl(h,p);case _.CharacterClass:return vl(h,p,d);case _.CharacterClassIntersection:if(!p.useFlagV)throw new Error("Use of class intersection requires min target ES2024");return h.classes.map(d).join("&&");case _.CharacterClassRange:return bl(h,p);case _.CharacterSet:return Al(h,p);case _.Flags:return kl(h,p);case _.Group:return Sl(h,p,d);case _.Pattern:return h.alternatives.map(d).join("|");case _.Quantifier:return d(h.element)+Tl(h);case _.Recursion:return wl(h,p);default:throw new Error(`Unexpected node type "${h.type}"`)}}const f=d(t);return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f}var dl={AnyGroup:{enter({node:t},e){const n=e.getCurrentModI();e.pushModI(t.flags?ot({ignoreCase:n},t.flags).ignoreCase:n)},exit(t,e){e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){pn(V(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),ci(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind===D.property&&Ur.has(t.value)&&e.setHasCasedChar()}},hl=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),fl=new Set(["-","\\","]","^","["]),ml=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Jn=new Map([[9,k`\t`],[10,k`\n`],[11,k`\v`],[12,k`\f`],[13,k`\r`],[8232,k`\u2028`],[8233,k`\u2029`],[65279,k`\uFEFF`]]),gl=new RegExp("^\\p{Cased}$","u");function pn(t){return gl.test(t)}function _l(t,e,n){const{kind:r,negate:i,alternatives:s}=t;if(Ue(t))return`(?${`${r===I.lookahead?"":"<"}${i?"!":"="}`}${s.map(n).join("|")})`;if(r===I.string_end)return"$";if(r===I.string_start)return"^";if(r===I.word_boundary)return i?k`\B`:k`\b`;throw new Error(`Unexpected assertion kind "${r}"`)}function yl({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t}function El({name:t,number:e,alternatives:n,_originNumber:r},i,s){return i.captureMap.set(e,{ignoreCase:i.currentFlags.ignoreCase}),`(${t?`?<${t}>`:""}${!i.avoidSubclass&&r?`${r<e?`$${r}`:""}${me}`:""}${n.map(s).join("|")})`}function Cl({value:t},e){const n=V(t),r=Ee(t,{isAfterBackref:e.lastNode.type===_.Backreference,inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(r!==n)return r;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&pn(n)){const i=Mr(n);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n}function vl({negate:t,parent:e,elements:n},r,i){var a;const s=()=>`[${t?"^":""}${n.map(i).join("")}]`;if(!r.inCharClass){r.inCharClass=!0;const l=s();return r.inCharClass=!1,l}const o=(a=n[0])==null?void 0:a.type;if(!t&&o&&((!r.useFlagV||!r.verbose)&&e.type===_.CharacterClass&&o!==_.CharacterClassIntersection||!r.verbose&&e.type===_.CharacterClassIntersection&&n.length===1&&o!==_.CharacterClass&&o!==_.CharacterClassRange))return n.map(i).join("");if(!r.useFlagV&&e.type===_.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return s()}function bl(t,e){const n=t.min.value,r=t.max.value,i={isAfterBackref:!1,inCharClass:!0,useFlagV:e.useFlagV},s=Ee(n,i),o=Ee(r,i),a=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const l=ci(t);Rl(l).forEach(p=>{a.add(Array.isArray(p)?`${Ee(p[0],i)}-${Ee(p[1],i)}`:Ee(p,i))})}return`${s}-${o}${[...a].join("")}`}function Al({kind:t,negate:e,value:n,key:r},i){if(t===D.dot)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":k`[^\n]`;if(t===D.digit)return e?k`\D`:k`\d`;if(t===D.property){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Ur.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?k`\P`:k`\p`}{${r?`${r}=`:""}${n}}`}if(t===D.word)return e?k`\W`:k`\w`;throw new Error(`Unexpected character set kind "${t}"`)}function kl(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")}function Sl({atomic:t,flags:e,parent:n,alternatives:r},i,s){const o=i.currentFlags;e&&(i.currentFlags=ot(o,e));const a=r.map(s).join("|"),l=!i.verbose&&r.length===1&&n.type!==_.Quantifier&&!t&&(!i.useFlagMods||!e)?a:`(?${Il(t,e,i.useFlagMods)}${a})`;return i.currentFlags=o,l}function wl({ref:t},e){const n=e.recursionLimit;return t===0?`(?R=${n})`:k`\g<${t}&R=${n}>`}function ci(t,e){const n=!!(e!=null&&e.firstOnly),r=t.min.value,i=t.max.value,s=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return s;for(let o=r;o<=i;o++){const a=V(o);if(!pn(a))continue;const l=Mr(a).filter(c=>{const p=c.codePointAt(0);return p<r||p>i});if(l.length&&(s.push(...l),n))break}return s}function Ee(t,{isAfterBackref:e,inCharClass:n,useFlagV:r}){if(Jn.has(t))return Jn.get(t);if(t<32||t>126&&t<160||t>262143||e&&Pl(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=n?r?ml:fl:hl,s=V(t);return(i.has(s)?"\\":"")+s}function Rl(t){const e=t.map(i=>i.codePointAt(0)).sort((i,s)=>i-s),n=[];let r=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?r??(r=e[i]):r===null?n.push(e[i]):(n.push([r,e[i]]),r=null);return n}function Il(t,e,n){if(t)return">";let r="";if(e&&n){const{enable:i,disable:s}=e;r=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(s?"-":"")+(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")}return`${r}:`}function Tl({min:t,max:e,greedy:n,possessive:r}){let i;return!t&&e===1?i="?":!t&&e===1/0?i="*":t===1&&e===1/0?i="+":t===e?i=`{${t}}`:i=`{${t},${e===1/0?"":e}}`,i+(r?"+":n?"":"?")}function Pl(t){return t>47&&t<58}var pe,Ae,Ll=(Ae=class extends ln{constructor(n,r,i){var e=(..._u)=>(super(..._u),vn(this,pe),g(this,"rawArgs"),this);if(n instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");e(n,r),n instanceof Ae?(He(this,pe,At(n,pe)),this.rawArgs=n.rawArgs):(He(this,pe,null),this.rawArgs={pattern:n.source,flags:n.flags,options:{}}),r!==void 0&&(this.rawArgs.flags=r)}else{const s={strategy:null,useEmulationGroups:!1,...i};e(n,r,{useEmulationGroups:s.useEmulationGroups}),He(this,pe,s.strategy),this.rawArgs={pattern:n,flags:r??"",options:{...s.strategy&&{strategy:s.strategy},...s.useEmulationGroups&&{useEmulationGroups:!0}}}}}exec(n){const r=super.exec,i=this.global||this.sticky,s=this.lastIndex;if(At(this,pe)==="search_start_clip"&&i&&s){this.lastIndex=0;const o=r.call(this,n.slice(s));return o&&(Ol(o,this,n,s),this.lastIndex+=s),o}return r.call(this,n)}},pe=new WeakMap,Ae);function Ol(t,e,n,r){if(t.input=n,t.index+=r,e.hasIndices){const i=t.indices;for(let o=0;o<i.length;o++){const a=i[o];a&&(i[o]=[a[0]+r,a[1]+r])}const s=i.groups;s&&Object.keys(s).forEach(o=>{const a=s[o];a&&(s[o]=[a[0]+r,a[1]+r])})}}function Dl(t,e){const n=Vr(e),r=n.avoidSubclass,i=zr(t,n.flags,{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}),s=Qr(i,{skipBackrefValidation:n.rules.allowOrphanBackrefs,verbose:n.verbose}),o=rl(s,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:r,bestEffortTarget:n.target}),a=pl(o,n),l={useEmulationGroups:!r},c={pattern:sa(oa(la(a.pattern,l)),l),flags:`${n.hasIndices?"d":""}${n.global?"g":""}${a.flags}${a.options.disable.v?"u":"v"}`},p=!r&&c.pattern.includes(me),d=o._strategy;return(p||d)&&(c.options={...d&&{strategy:d},...p&&{useEmulationGroups:p}}),c}function xl(t,e){const n=Dl(t,e);return n.options?new Ll(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}const Zn=4294967295;class Nl{constructor(e,n={}){g(this,"regexps");this.patterns=e,this.options=n;const{forgiving:r=!1,cache:i,regexConstructor:s}=n;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const a=i==null?void 0:i.get(o);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=s(o);return i==null||i.set(o,l),l}catch(l){if(i==null||i.set(o,l),r)return null;throw l}})}findNextMatchSync(e,n,r){const i=typeof e=="string"?e:e.content,s=[];function o(a,l,c=0){return{index:a,captureIndices:l.indices.map(p=>p==null?{start:Zn,end:Zn,length:0}:{start:p[0]+c,end:p[1]+c,length:p[1]-p[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const c=l.exec(i);if(!c)continue;if(c.index===n)return o(a,c,0);s.push([a,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(s.length){const a=Math.min(...s.map(l=>l[1].index));for(const[l,c,p]of s)if(c.index===a)return o(l,c,p)}return null}}function Vl(t,e){return xl(t,{global:!0,hasIndices:!0,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function bc(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||(e.regexConstructor=n=>Vl(n,{target:e.target})),{createScanner(n){return new Nl(n,e)},createString(n){return{content:n}}}}function Ml(t){return ee("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),ht(t)}function Ac(t){return ee("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),ht(t)}function $l(t){return Array.isArray(t)?t:[t]}function yt(t,e=!1){var s;const n=t.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<n.length;o+=2){const a=e?n[o]+(n[o+1]||""):n[o];i.push([a,r]),r+=n[o].length,r+=((s=n[o+1])==null?void 0:s.length)||0}return i}function dn(t){return!t||["plaintext","txt","text","plain"].includes(t)}function ui(t){return t==="ansi"||dn(t)}function hn(t){return t==="none"}function pi(t){return hn(t)}function di(t,e){var r;if(!e)return t;t.properties||(t.properties={}),(r=t.properties).class||(r.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const i of n)i&&!t.properties.class.includes(i)&&t.properties.class.push(i);return t}function Gl(t,e){let n=0;const r=[];for(const i of e)i>n&&r.push({...t,content:t.content.slice(n,i),offset:t.offset+n}),n=i;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function Bl(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return n.length?t.map(r=>r.flatMap(i=>{const s=n.filter(o=>i.offset<o&&o<i.offset+i.content.length).map(o=>o-i.offset).sort((o,a)=>o-a);return s.length?Gl(i,s):i})):t}async function hi(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function ct(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[i,s]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof s=="string"?n[i]=s:i===r&&Object.assign(n,s);return n}function he(t,e){return t&&((e==null?void 0:e[t==null?void 0:t.toLowerCase()])||t)}function fi(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&oe.Italic&&(e["font-style"]="italic"),t.fontStyle&oe.Bold&&(e["font-weight"]="bold"),t.fontStyle&oe.Underline&&(e["text-decoration"]="underline")),e}function Fl(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function Ul(t){const e=yt(t,!0).map(([i])=>i);function n(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let s=i,o=0;for(const a of e){if(s<a.length)break;s-=a.length,o++}return{line:o,character:s}}function r(i,s){let o=0;for(let a=0;a<i;a++)o+=e[a].length;return o+=s,o}return{lines:e,indexToPos:n,posToIndex:r}}class j extends Error{constructor(e){super(e),this.name="ShikiError"}}const mi=new WeakMap;function Et(t,e){mi.set(t,e)}function Ve(t){return mi.get(t)}class we{constructor(...e){g(this,"_stacks",{});g(this,"lang");if(e.length===2){const[n,r]=e;this.lang=r,this._stacks=n}else{const[n,r,i]=e;this.lang=r,this._stacks={[i]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new we(Object.fromEntries($l(n).map(r=>[r,Ht])),e)}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return ee("GrammarState.scopes is deprecated, use GrammarState.getScopes() instead"),Yn(this._stacks[this.theme])}getScopes(e=this.theme){return Yn(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Yn(t){const e=[],n=new Set;function r(i){var o;if(n.has(i))return;n.add(i);const s=(o=i==null?void 0:i.nameScopesList)==null?void 0:o.scopeName;s&&e.push(s),i.parent&&r(i.parent)}return r(t),e}function jl(t,e){if(!(t instanceof we))throw new j("Invalid grammar state");return t.getInternalStack(e)}function Hl(){const t=new WeakMap;function e(n){if(!t.has(n.meta)){let r=function(o){if(typeof o=="number"){if(o<0||o>n.source.length)throw new j(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...i.indexToPos(o),offset:o}}else{const a=i.lines[o.line];if(a===void 0)throw new j(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${i.lines.length}`);if(o.character<0||o.character>a.length)throw new j(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);return{...o,offset:i.posToIndex(o.line,o.character)}}};const i=Ul(n.source),s=(n.options.decorations||[]).map(o=>({...o,start:r(o.start),end:r(o.end)}));Wl(s),t.set(n.meta,{decorations:s,converter:i,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){var o;if(!((o=this.options.decorations)!=null&&o.length))return;const i=e(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Bl(n,i)},code(n){var p;if(!((p=this.options.decorations)!=null&&p.length))return;const r=e(this),i=Array.from(n.children).filter(d=>d.type==="element"&&d.tagName==="span");if(i.length!==r.converter.lines.length)throw new j(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(d,f,h,m){const v=i[d];let E="",C=-1,b=-1;if(f===0&&(C=0),h===0&&(b=0),h===Number.POSITIVE_INFINITY&&(b=v.children.length),C===-1||b===-1)for(let T=0;T<v.children.length;T++)E+=gi(v.children[T]),C===-1&&E.length===f&&(C=T+1),b===-1&&E.length===h&&(b=T+1);if(C===-1)throw new j(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(b===-1)throw new j(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const S=v.children.slice(C,b);if(!m.alwaysWrap&&S.length===v.children.length)a(v,m,"line");else if(!m.alwaysWrap&&S.length===1&&S[0].type==="element")a(S[0],m,"token");else{const T={type:"element",tagName:"span",properties:{},children:S};a(T,m,"wrapper"),v.children.splice(C,S.length,T)}}function o(d,f){i[d]=a(i[d],f,"line")}function a(d,f,h){var E;const m=f.properties||{},v=f.transform||(C=>C);return d.tagName=f.tagName||"span",d.properties={...d.properties,...m,class:d.properties.class},(E=f.properties)!=null&&E.class&&di(d,f.properties.class),d=v(d,h)||d,d}const l=[],c=r.decorations.sort((d,f)=>f.start.offset-d.start.offset);for(const d of c){const{start:f,end:h}=d;if(f.line===h.line)s(f.line,f.character,h.character,d);else if(f.line<h.line){s(f.line,f.character,Number.POSITIVE_INFINITY,d);for(let m=f.line+1;m<h.line;m++)l.unshift(()=>o(m,d));s(h.line,0,h.character,d)}}l.forEach(d=>d())}}}function Wl(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new j(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){const i=t[r],s=n.start.offset<i.start.offset&&i.start.offset<n.end.offset,o=n.start.offset<i.end.offset&&i.end.offset<n.end.offset,a=i.start.offset<n.start.offset&&n.start.offset<i.end.offset,l=i.start.offset<n.end.offset&&n.end.offset<i.end.offset;if(s||o||a||l){if(o&&o||a&&l)continue;throw new j(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function gi(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(gi).join(""):""}const zl=[Hl()];function ut(t){return[...t.transformers||[],...zl]}var fe=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],$t={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function ql(t,e){const n=t.indexOf("\x1B[",e);if(n!==-1){const r=t.indexOf("m",n);return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function er(t,e){let n=1;const r=t[e+n++];let i;if(r==="2"){const s=[t[e+n++],t[e+n++],t[e+n]].map(o=>Number.parseInt(o));s.length===3&&!s.some(o=>Number.isNaN(o))&&(i={type:"rgb",rgb:s})}else if(r==="5"){const s=Number.parseInt(t[e+n]);Number.isNaN(s)||(i={type:"table",index:Number(s)})}return[n,i]}function Kl(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=Number.parseInt(r);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)$t[i]&&e.push({type:"setDecoration",value:$t[i]});else if(i<=29){const s=$t[i-20];s&&e.push({type:"resetDecoration",value:s})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:fe[i-30]}});else if(i===38){const[s,o]=er(t,n);o&&e.push({type:"setForegroundColor",value:o}),n+=s}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:fe[i-40]}});else if(i===48){const[s,o]=er(t,n);o&&e.push({type:"setBackgroundColor",value:o}),n+=s}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:fe[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:fe[i-100+8]}})}return e}function Xl(){let t=null,e=null,n=new Set;return{parse(r){const i=[];let s=0;do{const o=ql(r,s),a=o.sequence?r.substring(s,o.startPosition):r.substring(s);if(a.length>0&&i.push({value:a,foreground:t,background:e,decorations:new Set(n)}),o.sequence){const l=Kl(o.sequence);for(const c of l)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}s=o.position}while(s<r.length);return i}}}var Ql={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 Jl(t=Ql){function e(a){return t[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let c=0;c<fe.length;c++)r.push(e(fe[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let p=0;p<6;p++)for(let d=0;d<6;d++)r.push(n([a[c],a[p],a[d]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function s(a){return i()[a]}function o(a){switch(a.type){case"named":return e(a.name);case"rgb":return n(a.rgb);case"table":return s(a.index)}}return{value:o}}function Zl(t,e,n){const r=ct(t,n),i=yt(e),s=Jl(Object.fromEntries(fe.map(a=>{var l;return[a,(l=t.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),o=Xl();return i.map(a=>o.parse(a[0]).map(l=>{let c,p;l.decorations.has("reverse")?(c=l.background?s.value(l.background):t.bg,p=l.foreground?s.value(l.foreground):t.fg):(c=l.foreground?s.value(l.foreground):t.fg,p=l.background?s.value(l.background):void 0),c=he(c,r),p=he(p,r),l.decorations.has("dim")&&(c=Yl(c));let d=oe.None;return l.decorations.has("bold")&&(d|=oe.Bold),l.decorations.has("italic")&&(d|=oe.Italic),l.decorations.has("underline")&&(d|=oe.Underline),{content:l.value,offset:a[1],color:c,bgColor:p,fontStyle:d}}))}function Yl(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}function Ct(t,e,n={}){const{lang:r="text",theme:i=t.getLoadedThemes()[0]}=n;if(dn(r)||hn(i))return yt(e).map(l=>[{content:l[0],offset:l[1]}]);const{theme:s,colorMap:o}=t.setTheme(i);if(r==="ansi")return Zl(s,e,n);const a=t.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new ae(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(s.name))throw new ae(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return ec(e,a,s,o,n)}function _i(...t){if(t.length===2)return Ve(t[1]);const[e,n,r={}]=t,{lang:i="text",theme:s=e.getLoadedThemes()[0]}=r;if(dn(i)||hn(s))throw new ae("Plain language does not have grammar state");if(i==="ansi")throw new ae("ANSI language does not have grammar state");const{theme:o,colorMap:a}=e.setTheme(s),l=e.getLanguage(i);return new we(pt(n,l,o,a,r).stateStack,l.name,o.name)}function ec(t,e,n,r,i){const s=pt(t,e,n,r,i),o=new we(pt(t,e,n,r,i).stateStack,e.name,n.name);return Et(s.tokens,o),s.tokens}function pt(t,e,n,r,i){const s=ct(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500}=i,l=yt(t);let c=i.grammarState?jl(i.grammarState,n.name)??Ht:i.grammarContextCode!=null?pt(i.grammarContextCode,e,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ht,p=[];const d=[];for(let f=0,h=l.length;f<h;f++){const[m,v]=l[f];if(m===""){p=[],d.push([]);continue}if(o>0&&m.length>=o){p=[],d.push([{content:m,offset:v,color:"",fontStyle:0}]);continue}let E,C,b;i.includeExplanation&&(E=e.tokenizeLine(m,c),C=E.tokens,b=0);const S=e.tokenizeLine2(m,c,a),T=S.tokens.length/2;for(let L=0;L<T;L++){const B=S.tokens[2*L],O=L+1<T?S.tokens[2*L+2]:m.length;if(B===O)continue;const te=S.tokens[2*L+1],je=he(r[ke.getForeground(te)],s),Re=ke.getFontStyle(te),vt={content:m.substring(B,O),offset:v+B,color:je,fontStyle:Re};if(i.includeExplanation){const _n=[];if(i.includeExplanation!=="scopeName")for(const ne of n.settings){let _e;switch(typeof ne.scope){case"string":_e=ne.scope.split(/,/).map(bt=>bt.trim());break;case"object":_e=ne.scope;break;default:continue}_n.push({settings:ne,selectors:_e.map(bt=>bt.split(/ /))})}vt.explanation=[];let yn=0;for(;B+yn<O;){const ne=C[b],_e=m.substring(ne.startIndex,ne.endIndex);yn+=_e.length,vt.explanation.push({content:_e,scopes:i.includeExplanation==="scopeName"?tc(ne.scopes):nc(_n,ne.scopes)}),b+=1}}p.push(vt)}d.push(p),p=[],c=S.ruleStack}return{tokens:d,stateStack:c}}function tc(t){return t.map(e=>({scopeName:e}))}function nc(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const s=e[r];n[r]={scopeName:s,themeMatches:ic(t,s,e.slice(0,r))}}return n}function tr(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function rc(t,e,n){if(!tr(t[t.length-1],e))return!1;let r=t.length-2,i=n.length-1;for(;r>=0&&i>=0;)tr(t[r],n[i])&&(r-=1),i-=1;return r===-1}function ic(t,e,n){const r=[];for(const{selectors:i,settings:s}of t)for(const o of i)if(rc(o,e,n)){r.push(s);break}return r}function fn(t,e,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{const c=Ct(t,e,{...n,theme:l.theme}),p=Ve(c),d=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:p,theme:d}}),s=sc(...i.map(l=>l.tokens)),o=s[0].map((l,c)=>l.map((p,d)=>{const f={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(f.explanation=p.explanation),s.forEach((h,m)=>{const{content:v,explanation:E,offset:C,...b}=h[c][d];f.variants[r[m].color]=b}),f})),a=i[0].state?new we(Object.fromEntries(i.map(l=>{var c;return[l.theme,(c=l.state)==null?void 0:c.getInternalStack(l.theme)]})),i[0].state.lang):void 0;return a&&Et(o,a),o}function sc(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const i=t.map(l=>l[r]),s=e.map(()=>[]);e.forEach((l,c)=>l.push(s[c]));const o=i.map(()=>0),a=i.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const p=a[c];p.content.length===l?(s[c].push(p),o[c]+=1,a[c]=i[c][o[c]]):(s[c].push({...p,content:p.content.slice(0,l)}),a[c]={...p,content:p.content.slice(l),offset:p.offset+l})}}}return e}function Me(t,e,n){let r,i,s,o,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:p="--shiki-"}=n,d=Object.entries(n.themes).filter(E=>E[1]).map(E=>({color:E[0],theme:E[1]})).sort((E,C)=>E.color===c?-1:C.color===c?1:0);if(d.length===0)throw new ae("`themes` option must not be empty");const f=fn(t,e,n);if(l=Ve(f),c&&!d.find(E=>E.color===c))throw new ae(`\`themes\` option must contain the defaultColor key \`${c}\``);const h=d.map(E=>t.getTheme(E.theme)),m=d.map(E=>E.color);s=f.map(E=>E.map(C=>oc(C,m,p,c))),l&&Et(s,l);const v=d.map(E=>ct(E.theme,n));i=d.map((E,C)=>(C===0&&c?"":`${p+E.color}:`)+(he(h[C].fg,v[C])||"inherit")).join(";"),r=d.map((E,C)=>(C===0&&c?"":`${p+E.color}-bg:`)+(he(h[C].bg,v[C])||"inherit")).join(";"),o=`shiki-themes ${h.map(E=>E.name).join(" ")}`,a=c?void 0:[i,r].join(";")}else if("theme"in n){const c=ct(n.theme,n);s=Ct(t,e,n);const p=t.getTheme(n.theme);r=he(p.bg,c),i=he(p.fg,c),o=p.name,l=Ve(s)}else throw new ae("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:a,grammarState:l}}function oc(t,e,n,r){const i={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(l=>fi(t.variants[l])),o=new Set(s.flatMap(l=>Object.keys(l))),a={};return s.forEach((l,c)=>{for(const p of o){const d=l[p]||"inherit";if(c===0&&r)a[p]=d;else{const f=p==="color"?"":p==="background-color"?"-bg":`-${p}`,h=n+e[c]+(p==="color"?"":f);a[h]=d}}}),i.htmlStyle=a,i}function $e(t,e,n,r={meta:{},options:n,codeToHast:(i,s)=>$e(t,i,s),codeToTokens:(i,s)=>Me(t,i,s)}){var h,m;let i=e;for(const v of ut(n))i=((h=v.preprocess)==null?void 0:h.call(r,i,n))||i;let{tokens:s,fg:o,bg:a,themeName:l,rootStyle:c,grammarState:p}=Me(t,i,n);const{mergeWhitespaces:d=!0}=n;d===!0?s=lc(s):d==="never"&&(s=cc(s));const f={...r,get source(){return i}};for(const v of ut(n))s=((m=v.tokens)==null?void 0:m.call(f,s))||s;return ac(s,{...n,fg:o,bg:a,themeName:l,rootStyle:c},f,p)}function ac(t,e,n,r=Ve(t)){var m,v,E;const i=ut(e),s=[],o={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=e;let c={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([C])=>!C.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:s};const d=[],f={...n,structure:a,addClassToHast:di,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return c},get code(){return p},get lines(){return d}};if(t.forEach((C,b)=>{var L,B;b&&(a==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&s.push({type:"text",value:`
|
|
149
|
+
`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(const O of C){let te={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};typeof O.htmlStyle=="string"&&ee("`htmlStyle` as a string is deprecated. Use an object instead.");const je=Fl(O.htmlStyle||fi(O));je&&(te.properties.style=je);for(const Re of i)te=((L=Re==null?void 0:Re.span)==null?void 0:L.call(f,te,b+1,T,S,O))||te;a==="inline"?o.children.push(te):a==="classic"&&S.children.push(te),T+=O.content.length}if(a==="classic"){for(const O of i)S=((B=O==null?void 0:O.line)==null?void 0:B.call(f,S,b+1))||S;d.push(S),s.push(S)}}),a==="classic"){for(const C of i)p=((m=C==null?void 0:C.code)==null?void 0:m.call(f,p))||p;c.children.push(p);for(const C of i)c=((v=C==null?void 0:C.pre)==null?void 0:v.call(f,c))||c;o.children.push(c)}let h=o;for(const C of i)h=((E=C==null?void 0:C.root)==null?void 0:E.call(f,h))||h;return r&&Et(h,r),h}function lc(t){return t.map(e=>{const n=[];let r="",i=0;return e.forEach((s,o)=>{const l=!(s.fontStyle&&s.fontStyle&oe.Underline);l&&s.content.match(/^\s+$/)&&e[o+1]?(i||(i=s.offset),r+=s.content):r?(l?n.push({...s,offset:i,content:r+s.content}):n.push({content:r,offset:i},s),i=0,r=""):n.push(s)}),n})}function cc(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,s,o]=r;if(!i&&!o)return n;const a=[{...n,offset:n.offset+i.length,content:s}];return i&&a.unshift({content:i,offset:n.offset}),o&&a.push({content:o,offset:n.offset+i.length+s.length}),a}))}function yi(t,e,n){var s;const r={meta:{},options:n,codeToHast:(o,a)=>$e(t,o,a),codeToTokens:(o,a)=>Me(t,o,a)};let i=Xo($e(t,e,n,r));for(const o of ut(n))i=((s=o.postprocess)==null?void 0:s.call(r,i,n))||i;return i}const nr={light:"#333333",dark:"#bbbbbb"},rr={light:"#fffffe",dark:"#1e1e1e"},ir="__shiki_resolved";function mn(t){var a,l,c,p,d;if(t!=null&&t[ir])return t;const e={...t};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:n,fg:r}=e;if(!n||!r){const f=e.settings?e.settings.find(h=>!h.name&&!h.scope):void 0;(a=f==null?void 0:f.settings)!=null&&a.foreground&&(r=f.settings.foreground),(l=f==null?void 0:f.settings)!=null&&l.background&&(n=f.settings.background),!r&&((c=e==null?void 0:e.colors)!=null&&c["editor.foreground"])&&(r=e.colors["editor.foreground"]),!n&&((p=e==null?void 0:e.colors)!=null&&p["editor.background"])&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?nr.light:nr.dark),n||(n=e.type==="light"?rr.light:rr.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const s=new Map;function o(f){var m;if(s.has(f))return s.get(f);i+=1;const h=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(m=e.colorReplacements)!=null&&m[`#${h}`]?o(f):(s.set(f,h),h)}e.settings=e.settings.map(f=>{var E,C;const h=((E=f.settings)==null?void 0:E.foreground)&&!f.settings.foreground.startsWith("#"),m=((C=f.settings)==null?void 0:C.background)&&!f.settings.background.startsWith("#");if(!h&&!m)return f;const v={...f,settings:{...f.settings}};if(h){const b=o(f.settings.foreground);e.colorReplacements[b]=f.settings.foreground,v.settings.foreground=b}if(m){const b=o(f.settings.background);e.colorReplacements[b]=f.settings.background,v.settings.background=b}return v});for(const f of Object.keys(e.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!((d=e.colors[f])!=null&&d.startsWith("#"))){const h=o(e.colors[f]);e.colorReplacements[h]=e.colors[f],e.colors[f]=h}return Object.defineProperty(e,ir,{enumerable:!1,writable:!1,value:!0}),e}async function Ei(t){return Array.from(new Set((await Promise.all(t.filter(e=>!ui(e)).map(async e=>await hi(e).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Ci(t){return(await Promise.all(t.map(async n=>pi(n)?null:mn(await hi(n))))).filter(n=>!!n)}class uc extends xs{constructor(n,r,i,s={}){super(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._resolver=n,this._themes=r,this._langs=i,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=mn(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=tt.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new j(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var o,a,l,c;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(p=>{var d;return(d=p.embeddedLangsLazy)==null?void 0:d.includes(n.name)}));this._resolver.addLanguage(n);const i={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const s=this.loadGrammarWithConfiguration(n.scopeName,1,i);if(s.name=n.name,this._resolvedGrammars.set(n.name,s),n.aliases&&n.aliases.forEach(p=>{this._alias[p]=n.name}),this._loadedLanguagesCache=null,r.size)for(const p of r)this._resolvedGrammars.delete(p.name),this._loadedLanguagesCache=null,(a=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||a.delete(p.scopeName),(c=(l=this._syncRegistry)==null?void 0:l._grammars)==null||c.delete(p.scopeName),this.loadLanguage(this._langMap.get(p.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const s of n)this.resolveEmbeddedLanguages(s);const r=Array.from(this._langGraph.entries()),i=r.filter(([s,o])=>!o);if(i.length){const s=r.filter(([o,a])=>{var l;return a&&((l=a.embeddedLangs)==null?void 0:l.some(c=>i.map(([p])=>p).includes(c)))}).filter(o=>!i.includes(o));throw new j(`Missing languages ${i.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of r)this._resolver.addLanguage(o);for(const[s,o]of r)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class pc{constructor(e,n){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let r=[];for(let i=1;i<=n.length;i++){const s=n.slice(0,i).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Ie=0;function vi(t){Ie+=1,t.warnings!==!1&&Ie>=10&&Ie%10===0&&console.warn(`[Shiki] ${Ie} 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(!t.engine)throw new j("`engine` option is required for synchronous mode");const n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(mn),i=new pc(t.engine,n),s=new uc(i,r,n,t.langAlias);let o;function a(b){E();const S=s.getGrammar(typeof b=="string"?b:b.name);if(!S)throw new j(`Language \`${b}\` not found, you may need to load it first`);return S}function l(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const S=s.getTheme(b);if(!S)throw new j(`Theme \`${b}\` not found, you may need to load it first`);return S}function c(b){E();const S=l(b);o!==b&&(s.setTheme(S),o=b);const T=s.getColorMap();return{theme:S,colorMap:T}}function p(){return E(),s.getLoadedThemes()}function d(){return E(),s.getLoadedLanguages()}function f(...b){E(),s.loadLanguages(b.flat(1))}async function h(...b){return f(await Ei(b))}function m(...b){E();for(const S of b.flat(1))s.loadTheme(S)}async function v(...b){return E(),m(await Ci(b))}function E(){if(e)throw new j("Shiki instance has been disposed")}function C(){e||(e=!0,s.dispose(),Ie-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:p,getLoadedLanguages:d,loadLanguage:h,loadLanguageSync:f,loadTheme:v,loadThemeSync:m,dispose:C,[Symbol.dispose]:C}}async function bi(t={}){t.loadWasm&&ee("`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead.");const[e,n,r]=await Promise.all([Ci(t.themes||[]),Ei(t.langs||[]),t.engine||ht(t.loadWasm||Ki())]);return vi({...t,themes:e,langs:n,engine:r})}function kc(t={}){return ee("`getShikiInternal` is deprecated. Use `createShikiInternal` instead."),bi(t)}async function gn(t={}){const e=await bi(t);return{getLastGrammarState:(...n)=>_i(e,...n),codeToTokensBase:(n,r)=>Ct(e,n,r),codeToTokensWithThemes:(n,r)=>fn(e,n,r),codeToTokens:(n,r)=>Me(e,n,r),codeToHast:(n,r)=>$e(e,n,r),codeToHtml:(n,r)=>yi(e,n,r),...e,getInternalContext:()=>e}}function Sc(t={}){const e=vi(t);return{getLastGrammarState:(...n)=>_i(e,...n),codeToTokensBase:(n,r)=>Ct(e,n,r),codeToTokensWithThemes:(n,r)=>fn(e,n,r),codeToTokens:(n,r)=>Me(e,n,r),codeToHast:(n,r)=>$e(e,n,r),codeToHtml:(n,r)=>yi(e,n,r),...e,getInternalContext:()=>e}}function dc(t){let e;async function n(r={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else return e=t({...r,themes:r.themes||[],langs:r.langs||[]}),e}return n}const wc=dc(gn);function Rc(t={}){return ee("`getHighlighterCore` is deprecated. Use `createHighlighterCore` or `getSingletonHighlighterCore` instead."),gn(t)}function hc(t,e,n){let r,i,s;if(e)ee("`createdBundledHighlighter` signature with `bundledLanguages` and `bundledThemes` is deprecated. Use the options object signature instead."),r=t,i=e,s=()=>Ml(n);else{const a=t;r=a.langs,i=a.themes,s=a.engine}async function o(a){function l(h){if(typeof h=="string"){if(ui(h))return[];const m=r[h];if(!m)throw new ae(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return m}return h}function c(h){if(pi(h))return"none";if(typeof h=="string"){const m=i[h];if(!m)throw new ae(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return m}return h}const p=(a.themes??[]).map(h=>c(h)),d=(a.langs??[]).map(h=>l(h)),f=await gn({engine:a.engine??s(),...a,themes:p,langs:d});return{...f,loadLanguage(...h){return f.loadLanguage(...h.map(l))},loadTheme(...h){return f.loadTheme(...h.map(c))}}}return o}function fc(t){let e;async function n(r={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else return e=t({...r,themes:r.themes||[],langs:r.langs||[]}),e}return n}function mc(t){const e=fc(t);return{getSingletonHighlighter(n){return e(n)},async codeToHtml(n,r){return(await e({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHtml(n,r)},async codeToHast(n,r){return(await e({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHast(n,r)},async codeToTokens(n,r){return(await e({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToTokens(n,r)},async codeToTokensBase(n,r){return(await e({langs:[r.lang],themes:[r.theme]})).codeToTokensBase(n,r)},async codeToTokensWithThemes(n,r){return(await e({langs:[r.lang],themes:Object.values(r.themes).filter(Boolean)})).codeToTokensWithThemes(n,r)},async getLastGrammarState(n,r){return(await e({langs:[r.lang],themes:[r.theme]})).getLastGrammarState(n,r)}}}function Ic(t={}){var o;const{name:e="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=t,i=a=>{var l;return(l=t.variableDefaults)!=null&&l[a]?`var(${n}${a}, ${t.variableDefaults[a]})`:`var(${n}${a})`},s={name:e,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return r||(s.tokenColors=(o=s.tokenColors)==null?void 0:o.map(a=>{var l;return(l=a.settings)!=null&&l.fontStyle&&delete a.settings.fontStyle,a})),s}const Tc=async t=>(ee('`getWasmInlined` is deprecated. Use `import("shiki/wasm")` instead.'),u(()=>import("./wasm-CG6Dc4jp.js"),[]).then(e=>e.default(t))),Ai=hc({langs:Ii,themes:Pi,engine:()=>ht(u(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Pc,codeToHast:Lc,codeToTokens:Oc,codeToTokensBase:Dc,codeToTokensWithThemes:xc,getSingletonHighlighter:Nc,getLastGrammarState:Vc}=mc(Ai),Mc=t=>(ee("`getHighlighter` is deprecated. Use `createHighlighter` or `getSingletonHighlighter` instead."),Ai(t));export{oe as FontStyle,ae as ShikiError,ke as StackElementMetadata,di as addClassToHast,he as applyColorReplacements,Ii as bundledLanguages,Ri as bundledLanguagesAlias,wi as bundledLanguagesBase,sr as bundledLanguagesInfo,Pi as bundledThemes,Ti as bundledThemesInfo,Lc as codeToHast,Pc as codeToHtml,Oc as codeToTokens,Dc as codeToTokensBase,xc as codeToTokensWithThemes,Ic as createCssVariablesTheme,Ai as createHighlighter,gn as createHighlighterCore,Sc as createHighlighterCoreSync,bc as createJavaScriptRegexEngine,ht as createOnigurumaEngine,Ul as createPositionConverter,bi as createShikiInternal,vi as createShikiInternalSync,mc as createSingletonShorthands,Ac as createWasmOnigEngine,hc as createdBundledHighlighter,Vl as defaultJavaScriptRegexConstructor,Cc as enableDeprecationWarnings,Mc as getHighlighter,Rc as getHighlighterCore,Vc as getLastGrammarState,kc as getShikiInternal,Nc as getSingletonHighlighter,wc as getSingletonHighlighterCore,fi as getTokenStyleObject,Tc as getWasmInlined,Xo as hastToHtml,hn as isNoneTheme,dn as isPlainLang,ui as isSpecialLang,pi as isSpecialTheme,Hi as loadWasm,fc as makeSingletonHighlighter,dc as makeSingletonHighlighterCore,hi as normalizeGetter,mn as normalizeTheme,ct as resolveColorReplacements,yt as splitLines,Gl as splitToken,Bl as splitTokens,Fl as stringifyTokenStyle,$l as toArray,Zl as tokenizeAnsiWithTheme,ec as tokenizeWithTheme,ac as tokensToHast,Hl as transformerDecorations,ee as warnDeprecated};
|