-
Notifications
You must be signed in to change notification settings - Fork 0
/
shiki.min.js
1 lines (1 loc) · 123 KB
/
shiki.min.js
1
!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json"},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json"},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",aliases:["batch"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",aliases:["clj"]},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json"},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json"},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json"},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json"},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",aliases:["c#"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json"},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json"},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json"},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",aliases:["f#"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json"},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json"},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json"},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json"},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json"},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json"},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json"},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json"},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",aliases:["tex"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json"},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json"},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",aliases:["md"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json"},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json"},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json"},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json"},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json"},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json"},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json"},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample"},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json"},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json"},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json"},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json"},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json"},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json"},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"}];var u={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n={isSpaceSeparator:e=>"string"==typeof e&&u.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||u.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||u.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)};let r,i,o,s,a,c,l,h,p;function f(e,t,u){const n=e[t];if(null!=n&&"object"==typeof n)for(const e in n){const t=f(n,e,u);void 0===t?delete n[e]:n[e]=t}return u.call(e,t,n)}let D,d,g,m,C;function A(){for(D="default",d="",g=!1,m=1;;){C=F();const e=v[D]();if(e)return e}}function F(){if(r[s])return String.fromCodePoint(r.codePointAt(s))}function y(){const e=F();return"\n"===e?(a++,c=0):e?c+=e.length:c++,e&&(s+=e.length),e}const v={default(){switch(C){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void y();case"/":return y(),void(D="comment");case void 0:return y(),E("eof")}if(!n.isSpaceSeparator(C))return v[i]();y()},comment(){switch(C){case"*":return y(),void(D="multiLineComment");case"/":return y(),void(D="singleLineComment")}throw S(y())},multiLineComment(){switch(C){case"*":return y(),void(D="multiLineCommentAsterisk");case void 0:throw S(y())}y()},multiLineCommentAsterisk(){switch(C){case"*":return void y();case"/":return y(),void(D="default");case void 0:throw S(y())}y(),D="multiLineComment"},singleLineComment(){switch(C){case"\n":case"\r":case"\u2028":case"\u2029":return y(),void(D="default");case void 0:return y(),E("eof")}y()},value(){switch(C){case"{":case"[":return E("punctuator",y());case"n":return y(),_("ull"),E("null",null);case"t":return y(),_("rue"),E("boolean",!0);case"f":return y(),_("alse"),E("boolean",!1);case"-":case"+":return"-"===y()&&(m=-1),void(D="sign");case".":return d=y(),void(D="decimalPointLeading");case"0":return d=y(),void(D="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return d=y(),void(D="decimalInteger");case"I":return y(),_("nfinity"),E("numeric",1/0);case"N":return y(),_("aN"),E("numeric",NaN);case'"':case"'":return g='"'===y(),d="",void(D="string")}throw S(y())},identifierNameStartEscape(){if("u"!==C)throw S(y());y();const e=b();switch(e){case"$":case"_":break;default:if(!n.isIdStartChar(e))throw N()}d+=e,D="identifierName"},identifierName(){switch(C){case"$":case"_":case"":case"":return void(d+=y());case"\\":return y(),void(D="identifierNameEscape")}if(!n.isIdContinueChar(C))return E("identifier",d);d+=y()},identifierNameEscape(){if("u"!==C)throw S(y());y();const e=b();switch(e){case"$":case"_":case"":case"":break;default:if(!n.isIdContinueChar(e))throw N()}d+=e,D="identifierName"},sign(){switch(C){case".":return d=y(),void(D="decimalPointLeading");case"0":return d=y(),void(D="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return d=y(),void(D="decimalInteger");case"I":return y(),_("nfinity"),E("numeric",m*(1/0));case"N":return y(),_("aN"),E("numeric",NaN)}throw S(y())},zero(){switch(C){case".":return d+=y(),void(D="decimalPoint");case"e":case"E":return d+=y(),void(D="decimalExponent");case"x":case"X":return d+=y(),void(D="hexadecimal")}return E("numeric",0*m)},decimalInteger(){switch(C){case".":return d+=y(),void(D="decimalPoint");case"e":case"E":return d+=y(),void(D="decimalExponent")}if(!n.isDigit(C))return E("numeric",m*Number(d));d+=y()},decimalPointLeading(){if(n.isDigit(C))return d+=y(),void(D="decimalFraction");throw S(y())},decimalPoint(){switch(C){case"e":case"E":return d+=y(),void(D="decimalExponent")}return n.isDigit(C)?(d+=y(),void(D="decimalFraction")):E("numeric",m*Number(d))},decimalFraction(){switch(C){case"e":case"E":return d+=y(),void(D="decimalExponent")}if(!n.isDigit(C))return E("numeric",m*Number(d));d+=y()},decimalExponent(){switch(C){case"+":case"-":return d+=y(),void(D="decimalExponentSign")}if(n.isDigit(C))return d+=y(),void(D="decimalExponentInteger");throw S(y())},decimalExponentSign(){if(n.isDigit(C))return d+=y(),void(D="decimalExponentInteger");throw S(y())},decimalExponentInteger(){if(!n.isDigit(C))return E("numeric",m*Number(d));d+=y()},hexadecimal(){if(n.isHexDigit(C))return d+=y(),void(D="hexadecimalInteger");throw S(y())},hexadecimalInteger(){if(!n.isHexDigit(C))return E("numeric",m*Number(d));d+=y()},string(){switch(C){case"\\":return y(),void(d+=function(){switch(F()){case"b":return y(),"\b";case"f":return y(),"\f";case"n":return y(),"\n";case"r":return y(),"\r";case"t":return y(),"\t";case"v":return y(),"\v";case"0":if(y(),n.isDigit(F()))throw S(y());return"\0";case"x":return y(),function(){let e="",t=F();if(!n.isHexDigit(t))throw S(y());if(e+=y(),t=F(),!n.isHexDigit(t))throw S(y());return e+=y(),String.fromCodePoint(parseInt(e,16))}();case"u":return y(),b();case"\n":case"\u2028":case"\u2029":return y(),"";case"\r":return y(),"\n"===F()&&y(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw S(y())}return y()}());case'"':return g?(y(),E("string",d)):void(d+=y());case"'":return g?void(d+=y()):(y(),E("string",d));case"\n":case"\r":throw S(y());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${L(e)}' in strings is not valid ECMAScript; consider escaping`)}(C);break;case void 0:throw S(y())}d+=y()},start(){switch(C){case"{":case"[":return E("punctuator",y())}D="value"},beforePropertyName(){switch(C){case"$":case"_":return d=y(),void(D="identifierName");case"\\":return y(),void(D="identifierNameStartEscape");case"}":return E("punctuator",y());case'"':case"'":return g='"'===y(),void(D="string")}if(n.isIdStartChar(C))return d+=y(),void(D="identifierName");throw S(y())},afterPropertyName(){if(":"===C)return E("punctuator",y());throw S(y())},beforePropertyValue(){D="value"},afterPropertyValue(){switch(C){case",":case"}":return E("punctuator",y())}throw S(y())},beforeArrayValue(){if("]"===C)return E("punctuator",y());D="value"},afterArrayValue(){switch(C){case",":case"]":return E("punctuator",y())}throw S(y())},end(){throw S(y())}};function E(e,t){return{type:e,value:t,line:a,column:c}}function _(e){for(const t of e){if(F()!==t)throw S(y());y()}}function b(){let e="",t=4;for(;t-- >0;){const t=F();if(!n.isHexDigit(t))throw S(y());e+=y()}return String.fromCodePoint(parseInt(e,16))}const B={start(){if("eof"===l.type)throw k();w()},beforePropertyName(){switch(l.type){case"identifier":case"string":return h=l.value,void(i="afterPropertyName");case"punctuator":return void x();case"eof":throw k()}},afterPropertyName(){if("eof"===l.type)throw k();i="beforePropertyValue"},beforePropertyValue(){if("eof"===l.type)throw k();w()},beforeArrayValue(){if("eof"===l.type)throw k();"punctuator"!==l.type||"]"!==l.value?w():x()},afterPropertyValue(){if("eof"===l.type)throw k();switch(l.value){case",":return void(i="beforePropertyName");case"}":x()}},afterArrayValue(){if("eof"===l.type)throw k();switch(l.value){case",":return void(i="beforeArrayValue");case"]":x()}},end(){}};function w(){let e;switch(l.type){case"punctuator":switch(l.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=l.value}if(void 0===p)p=e;else{const t=o[o.length-1];Array.isArray(t)?t.push(e):t[h]=e}if(null!==e&&"object"==typeof e)o.push(e),i=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=o[o.length-1];i=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function x(){o.pop();const e=o[o.length-1];i=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function S(e){return j(void 0===e?`JSON5: invalid end of input at ${a}:${c}`:`JSON5: invalid character '${L(e)}' at ${a}:${c}`)}function k(){return j(`JSON5: invalid end of input at ${a}:${c}`)}function N(){return c-=5,j(`JSON5: invalid identifier character at ${a}:${c}`)}function L(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function j(e){const t=new SyntaxError(e);return t.lineNumber=a,t.columnNumber=c,t}var P={parse:function(e,t){r=String(e),i="start",o=[],s=0,a=1,c=0,l=void 0,h=void 0,p=void 0;do{l=A(),B[i]()}while("eof"!==l.type);return"function"==typeof t?f({"":p},"",t):p},stringify:function(e,t,u){const r=[];let i,o,s,a="",c="";if(null==t||"object"!=typeof t||Array.isArray(t)||(u=t.space,s=t.quote,t=t.replacer),"function"==typeof t)o=t;else if(Array.isArray(t)){i=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&i.indexOf(t)<0&&i.push(t)}}return u instanceof Number?u=Number(u):u instanceof String&&(u=String(u)),"number"==typeof u?u>0&&(u=Math.min(10,Math.floor(u)),c=" ".substr(0,u)):"string"==typeof u&&(c=u.substr(0,10)),l("",{"":e});function l(e,t){let u=t[e];switch(null!=u&&("function"==typeof u.toJSON5?u=u.toJSON5(e):"function"==typeof u.toJSON&&(u=u.toJSON(e))),o&&(u=o.call(t,e,u)),u instanceof Number?u=Number(u):u instanceof String?u=String(u):u instanceof Boolean&&(u=u.valueOf()),u){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof u?h(u):"number"==typeof u?String(u):"object"==typeof u?Array.isArray(u)?function(e){if(r.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");r.push(e);let t=a;a+=c;let u,n=[];for(let t=0;t<e.length;t++){const u=l(String(t),e);n.push(void 0!==u?u:"null")}if(0===n.length)u="[]";else if(""===c){u="["+n.join(",")+"]"}else{let e=",\n"+a,r=n.join(e);u="[\n"+a+r+",\n"+t+"]"}return r.pop(),a=t,u}(u):function(e){if(r.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");r.push(e);let t=a;a+=c;let u,n=i||Object.keys(e),o=[];for(const t of n){const u=l(t,e);if(void 0!==u){let e=p(t)+":";""!==c&&(e+=" "),e+=u,o.push(e)}}if(0===o.length)u="{}";else{let e;if(""===c)e=o.join(","),u="{"+e+"}";else{let n=",\n"+a;e=o.join(n),u="{\n"+a+e+",\n"+t+"}"}}return r.pop(),a=t,u}(u):void 0}function h(e){const t={"'":.1,'"':.2},u={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let r="";for(let i=0;i<e.length;i++){const o=e[i];switch(o){case"'":case'"':t[o]++,r+=o;continue;case"\0":if(n.isDigit(e[i+1])){r+="\\x00";continue}}if(u[o])r+=u[o];else if(o<" "){let e=o.charCodeAt(0).toString(16);r+="\\x"+("00"+e).substring(e.length)}else r+=o}const i=s||Object.keys(t).reduce(((e,u)=>t[e]<t[u]?e:u));return r=r.replace(new RegExp(i,"g"),u[i]),i+r+i}function p(e){if(0===e.length)return h(e);const t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t))return h(e);for(let u=t.length;u<e.length;u++)if(!n.isIdContinueChar(String.fromCodePoint(e.codePointAt(u))))return h(e);return e}}};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function R(e){var t={exports:{}};return e(t,t.exports),t.exports}var T=R((function(e,t){var u=function(){"undefined"!=typeof document&&document.currentScript&&document.currentScript.src;return function(e){var t,u=void 0!==(e=e||{})?e:{},n={};for(t in u)u.hasOwnProperty(t)&&(n[t]=u[t]);var r,i=!1,o="";function s(e){return u.locateFile?u.locateFile(e,o):o+e}r=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(D("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print);var a,c,l=u.print||console.log.bind(console),h=u.printErr||console.warn.bind(console);for(t in n)n.hasOwnProperty(t)&&(u[t]=n[t]);n=null,u.arguments&&u.arguments,u.thisProgram&&u.thisProgram,u.quit&&u.quit,u.wasmBinary&&(a=u.wasmBinary),u.noExitRuntime&&u.noExitRuntime,"object"!=typeof WebAssembly&&h("no native wasm support detected");var p=new WebAssembly.Table({initial:244,maximum:244,element:"anyfunc"}),f=!1;function D(e,t){e||J("Assertion failed: "+t)}function d(e){var t=u["_"+e];return D(t,"Cannot call unknown function "+e+", make sure it is exported"),t}function g(e,t,u,n,r){var i={string:function(e){var t=0;if(null!=e&&0!==e){var u=1+(e.length<<2);y(e,t=me(u),u)}return t},array:function(e){var t=me(e.length);return v(e,t),t}};var o=d(e),s=[],a=0;if(n)for(var c=0;c<n.length;c++){var l=i[u[c]];l?(0===a&&(a=ge()),s[c]=l(n[c])):s[c]=n[c]}var h=o.apply(null,s);return h=function(e){return"string"===t?A(e):"boolean"===t?Boolean(e):e}(h),0!==a&&Ce(a),h}var m="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function C(e,t,u){for(var n=t+u,r=t;e[r]&&!(r>=n);)++r;if(r-t>16&&e.subarray&&m)return m.decode(e.subarray(t,r));for(var i="";t<r;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var a=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|a:(7&o)<<18|s<<12|a<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i}function A(e,t){return e?C(b,e,t):""}function F(e,t,u,n){if(!(n>0))return 0;for(var r=u,i=u+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o);if(s<=127){if(u>=i)break;t[u++]=s}else if(s<=2047){if(u+1>=i)break;t[u++]=192|s>>6,t[u++]=128|63&s}else if(s<=65535){if(u+2>=i)break;t[u++]=224|s>>12,t[u++]=128|s>>6&63,t[u++]=128|63&s}else{if(u+3>=i)break;t[u++]=240|s>>18,t[u++]=128|s>>12&63,t[u++]=128|s>>6&63,t[u++]=128|63&s}}return t[u]=0,u-r}function y(e,t,u){return F(e,b,t,u)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function v(e,t){_.set(e,t)}var E,_,b,B,w=65536;function x(e,t){return e%t>0&&(e+=t-e%t),e}function S(e){E=e,u.HEAP8=_=new Int8Array(e),u.HEAP16=new Int16Array(e),u.HEAP32=B=new Int32Array(e),u.HEAPU8=b=new Uint8Array(e),u.HEAPU16=new Uint16Array(e),u.HEAPU32=new Uint32Array(e),u.HEAPF32=new Float32Array(e),u.HEAPF64=new Float64Array(e)}var k=5507664,N=264624,L=u.TOTAL_MEMORY||157286400;function j(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?u.dynCall_v(n):u.dynCall_vi(n,t.arg):n(void 0===t.arg?null:t.arg)}else t()}}(c=u.wasmMemory?u.wasmMemory:new WebAssembly.Memory({initial:L/w}))&&(E=c.buffer),L=E.byteLength,S(E),B[N>>2]=k;var P=[],R=[],T=[],I=[];function M(){if(u.preRun)for("function"==typeof u.preRun&&(u.preRun=[u.preRun]);u.preRun.length;)H(u.preRun.shift());j(P)}function O(){j(R)}function G(){j(T)}function $(){if(u.postRun)for("function"==typeof u.postRun&&(u.postRun=[u.postRun]);u.postRun.length;)W(u.postRun.shift());j(I)}function H(e){P.unshift(e)}function W(e){I.unshift(e)}var U=0,q=null;function z(e){U++,u.monitorRunDependencies&&u.monitorRunDependencies(U)}function V(e){if(U--,u.monitorRunDependencies&&u.monitorRunDependencies(U),0==U&&q){var t=q;q=null,t()}}function J(e){throw u.onAbort&&u.onAbort(e),l(e+=""),h(e),f=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}u.preloadedImages={},u.preloadedAudios={};var K="data:application/octet-stream;base64,";function X(e){return String.prototype.startsWith?e.startsWith(K):0===e.indexOf(K)}var Y="onigasm.wasm";function Z(){try{if(a)return new Uint8Array(a);if(r)return r(Y);throw"both async and sync fetching of the wasm failed"}catch(e){J(e)}}function Q(){return!a&&i&&"function"==typeof fetch?fetch(Y,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+Y+"'";return e.arrayBuffer()})).catch((function(){return Z()})):new Promise((function(e,t){e(Z())}))}function ee(){var e={env:pe,wasi_unstable:pe};function t(e,t){var n=e.exports;u.asm=n,V()}function n(e){t(e.instance)}function r(t){return Q().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){h("failed to asynchronously prepare wasm: "+e),J(e)}))}if(z(),u.instantiateWasm)try{return u.instantiateWasm(e,t)}catch(e){return h("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(a||"function"!=typeof WebAssembly.instantiateStreaming||X(Y)||"function"!=typeof fetch)return r(n);fetch(Y,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),r(n)}))}))}(),{}}function te(){J()}function ue(){return _.length}function ne(){return 264624}function re(e,t,u){b.set(b.subarray(t,t+u),e)}function ie(e){try{return c.grow(e-E.byteLength+65535>>16),S(c.buffer),1}catch(e){}}function oe(e){var t=ue(),u=65536,n=2147418112;if(e>n)return!1;for(var r=Math.max(t,16777216);r<e;)r=r<=536870912?x(2*r,u):Math.min(x((3*r+2147483648)/4,u),n);return!!ie(r)}X(Y)||(Y=s(Y)),R.push({func:function(){de()}});var se={buffers:[null,[],[]],printChar:function(e,t){var u=se.buffers[e];0===t||10===t?((1===e?l:h)(C(u,0)),u.length=0):u.push(t)},varargs:0,get:function(e){return se.varargs+=4,B[se.varargs-4>>2]},getStr:function(){return A(se.get())},get64:function(){var e=se.get();se.get();return e},getZero:function(){se.get()}};function ae(e){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||J(e),e.errno}}function ce(e,t,u,n,r){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||J(e),e.errno}}function le(e,t,u,n){try{for(var r=0,i=0;i<u;i++){for(var o=B[t+8*i>>2],s=B[t+(8*i+4)>>2],a=0;a<s;a++)se.printChar(e,b[o+a]);r+=s}return B[n>>2]=r,0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||J(e),e.errno}}function he(e){}var pe={abort:te,emscripten_get_sbrk_ptr:ne,emscripten_memcpy_big:re,emscripten_resize_heap:oe,fd_close:ae,fd_seek:ce,fd_write:le,memory:c,setTempRet0:he,table:p},fe=ee();u.asm=fe;var De,de=u.___wasm_call_ctors=function(){return u.asm.__wasm_call_ctors.apply(null,arguments)},ge=(u._malloc=function(){return u.asm.malloc.apply(null,arguments)},u._free=function(){return u.asm.free.apply(null,arguments)},u._getLastError=function(){return u.asm.getLastError.apply(null,arguments)},u._compilePattern=function(){return u.asm.compilePattern.apply(null,arguments)},u._disposeCompiledPatterns=function(){return u.asm.disposeCompiledPatterns.apply(null,arguments)},u._findBestMatch=function(){return u.asm.findBestMatch.apply(null,arguments)},u.___cxa_demangle=function(){return u.asm.__cxa_demangle.apply(null,arguments)},u._setThrew=function(){return u.asm.setThrew.apply(null,arguments)},u.stackSave=function(){return u.asm.stackSave.apply(null,arguments)}),me=u.stackAlloc=function(){return u.asm.stackAlloc.apply(null,arguments)},Ce=u.stackRestore=function(){return u.asm.stackRestore.apply(null,arguments)};u.__growWasmMemory=function(){return u.asm.__growWasmMemory.apply(null,arguments)},u.dynCall_vi=function(){return u.asm.dynCall_vi.apply(null,arguments)},u.dynCall_iiii=function(){return u.asm.dynCall_iiii.apply(null,arguments)},u.dynCall_iiiii=function(){return u.asm.dynCall_iiiii.apply(null,arguments)},u.dynCall_iii=function(){return u.asm.dynCall_iii.apply(null,arguments)},u.dynCall_iidiiii=function(){return u.asm.dynCall_iidiiii.apply(null,arguments)},u.dynCall_vii=function(){return u.asm.dynCall_vii.apply(null,arguments)},u.dynCall_ii=function(){return u.asm.dynCall_ii.apply(null,arguments)},u.dynCall_i=function(){return u.asm.dynCall_i.apply(null,arguments)},u.dynCall_v=function(){return u.asm.dynCall_v.apply(null,arguments)},u.dynCall_viiiiii=function(){return u.asm.dynCall_viiiiii.apply(null,arguments)},u.dynCall_viiiii=function(){return u.asm.dynCall_viiiii.apply(null,arguments)},u.dynCall_viiii=function(){return u.asm.dynCall_viiii.apply(null,arguments)},u.dynCall_jiji=function(){return u.asm.dynCall_jiji.apply(null,arguments)};function Ae(e){function t(){De||(De=!0,f||(O(),G(),u.onRuntimeInitialized&&u.onRuntimeInitialized(),$()))}U>0||(M(),U>0||(u.setStatus?(u.setStatus("Running..."),setTimeout((function(){setTimeout((function(){u.setStatus("")}),1),t()}),1)):t()))}if(u.asm=fe,u.ccall=g,u.then=function(e){if(De)e(u);else{var t=u.onRuntimeInitialized;u.onRuntimeInitialized=function(){t&&t(),e(u)}}return u},q=function e(){De||Ae(),De||(q=e)},u.run=Ae,u.preInit)for("function"==typeof u.preInit&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return!0,Ae(),e}}();e.exports=u})),I=R((function(e,t){async function u(e){return new Promise(((u,n)=>{const{log:r,warn:i,error:o}=console;T({instantiateWasm:(t,u)=>(WebAssembly.instantiate(e,t).then((e=>{u(e.instance)})).catch((e=>{throw e})),{})}).then((e=>{t.onigasmH=e,u()})),"undefined"!=typeof print&&(console.log=r,console.error=o,console.warn=i)}))}Object.defineProperty(t,"__esModule",{value:!0});let n=!1;t.loadWASM=async function(e){if(n)throw new Error("Onigasm#init has been called and was succesful, subsequent calls are not allowed once initialized");if("string"==typeof e){const t=await(await fetch(e)).arrayBuffer();await u(t)}else{if(!(e instanceof ArrayBuffer))throw new TypeError("Expected a string (URL of .wasm file) or ArrayBuffer (.wasm file itself) as first parameter");await u(e)}n=!0}})),M=O;function O(e){var t=this;if(t instanceof O||(t=new O),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var u=0,n=arguments.length;u<n;u++)t.push(arguments[u]);return t}function G(e,t,u){var n=t===e.head?new W(u,null,t,e):new W(u,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function $(e,t){e.tail=new W(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function H(e,t){e.head=new W(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function W(e,t,u,n){if(!(this instanceof W))return new W(e,t,u,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,u?(u.prev=this,this.next=u):this.next=null}O.Node=W,O.create=O,O.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,u=e.prev;return t&&(t.prev=u),u&&(u.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=u),e.list.length--,e.next=null,e.prev=null,e.list=null,t},O.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},O.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},O.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)$(this,arguments[e]);return this.length},O.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)H(this,arguments[e]);return this.length},O.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},O.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},O.prototype.forEach=function(e,t){t=t||this;for(var u=this.head,n=0;null!==u;n++)e.call(t,u.value,n,this),u=u.next},O.prototype.forEachReverse=function(e,t){t=t||this;for(var u=this.tail,n=this.length-1;null!==u;n--)e.call(t,u.value,n,this),u=u.prev},O.prototype.get=function(e){for(var t=0,u=this.head;null!==u&&t<e;t++)u=u.next;if(t===e&&null!==u)return u.value},O.prototype.getReverse=function(e){for(var t=0,u=this.tail;null!==u&&t<e;t++)u=u.prev;if(t===e&&null!==u)return u.value},O.prototype.map=function(e,t){t=t||this;for(var u=new O,n=this.head;null!==n;)u.push(e.call(t,n.value,this)),n=n.next;return u},O.prototype.mapReverse=function(e,t){t=t||this;for(var u=new O,n=this.tail;null!==n;)u.push(e.call(t,n.value,this)),n=n.prev;return u},O.prototype.reduce=function(e,t){var u,n=this.head;if(arguments.length>1)u=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,u=this.head.value}for(var r=0;null!==n;r++)u=e(u,n.value,r),n=n.next;return u},O.prototype.reduceReverse=function(e,t){var u,n=this.tail;if(arguments.length>1)u=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,u=this.tail.value}for(var r=this.length-1;null!==n;r--)u=e(u,n.value,r),n=n.prev;return u},O.prototype.toArray=function(){for(var e=new Array(this.length),t=0,u=this.head;null!==u;t++)e[t]=u.value,u=u.next;return e},O.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,u=this.tail;null!==u;t++)e[t]=u.value,u=u.prev;return e},O.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var u=new O;if(t<e||t<0)return u;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;for(;null!==r&&n<t;n++,r=r.next)u.push(r.value);return u},O.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var u=new O;if(t<e||t<0)return u;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,r=this.tail;null!==r&&n>t;n--)r=r.prev;for(;null!==r&&n>e;n--,r=r.prev)u.push(r.value);return u},O.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var u=0,n=this.head;null!==n&&u<e;u++)n=n.next;var r=[];for(u=0;n&&u<t;u++)r.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(u=2;u<arguments.length;u++)n=G(this,n,arguments[u]);return r},O.prototype.reverse=function(){for(var e=this.head,t=this.tail,u=e;null!==u;u=u.prev){var n=u.prev;u.prev=u.next,u.next=n}return this.head=t,this.tail=e,this};try{!function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}(O)}catch(e){}const U=Symbol("max"),q=Symbol("length"),z=Symbol("lengthCalculator"),V=Symbol("allowStale"),J=Symbol("maxAge"),K=Symbol("dispose"),X=Symbol("noDisposeOnSet"),Y=Symbol("lruList"),Z=Symbol("cache"),Q=Symbol("updateAgeOnGet"),ee=()=>1;const te=(e,t,u)=>{const n=e[Z].get(t);if(n){const t=n.value;if(ue(e,t)){if(re(e,n),!e[V])return}else u&&(e[Q]&&(n.value.now=Date.now()),e[Y].unshiftNode(n));return t.value}},ue=(e,t)=>{if(!t||!t.maxAge&&!e[J])return!1;const u=Date.now()-t.now;return t.maxAge?u>t.maxAge:e[J]&&u>e[J]},ne=e=>{if(e[q]>e[U])for(let t=e[Y].tail;e[q]>e[U]&&null!==t;){const u=t.prev;re(e,t),t=u}},re=(e,t)=>{if(t){const u=t.value;e[K]&&e[K](u.key,u.value),e[q]-=u.length,e[Z].delete(u.key),e[Y].removeNode(t)}};class ie{constructor(e,t,u,n,r){this.key=e,this.value=t,this.length=u,this.now=n,this.maxAge=r||0}}const oe=(e,t,u,n)=>{let r=u.value;ue(e,r)&&(re(e,u),e[V]||(r=void 0)),r&&t.call(n,r.value,r.key,e)};var se=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[U]=e.max||1/0;const t=e.length||ee;if(this[z]="function"!=typeof t?ee:t,this[V]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[J]=e.maxAge||0,this[K]=e.dispose,this[X]=e.noDisposeOnSet||!1,this[Q]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[U]=e||1/0,ne(this)}get max(){return this[U]}set allowStale(e){this[V]=!!e}get allowStale(){return this[V]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[J]=e,ne(this)}get maxAge(){return this[J]}set lengthCalculator(e){"function"!=typeof e&&(e=ee),e!==this[z]&&(this[z]=e,this[q]=0,this[Y].forEach((e=>{e.length=this[z](e.value,e.key),this[q]+=e.length}))),ne(this)}get lengthCalculator(){return this[z]}get length(){return this[q]}get itemCount(){return this[Y].length}rforEach(e,t){t=t||this;for(let u=this[Y].tail;null!==u;){const n=u.prev;oe(this,e,u,t),u=n}}forEach(e,t){t=t||this;for(let u=this[Y].head;null!==u;){const n=u.next;oe(this,e,u,t),u=n}}keys(){return this[Y].toArray().map((e=>e.key))}values(){return this[Y].toArray().map((e=>e.value))}reset(){this[K]&&this[Y]&&this[Y].length&&this[Y].forEach((e=>this[K](e.key,e.value))),this[Z]=new Map,this[Y]=new M,this[q]=0}dump(){return this[Y].map((e=>!ue(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Y]}set(e,t,u){if((u=u||this[J])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const n=u?Date.now():0,r=this[z](t,e);if(this[Z].has(e)){if(r>this[U])return re(this,this[Z].get(e)),!1;const i=this[Z].get(e).value;return this[K]&&(this[X]||this[K](e,i.value)),i.now=n,i.maxAge=u,i.value=t,this[q]+=r-i.length,i.length=r,this.get(e),ne(this),!0}const i=new ie(e,t,r,n,u);return i.length>this[U]?(this[K]&&this[K](e,t),!1):(this[q]+=i.length,this[Y].unshift(i),this[Z].set(e,this[Y].head),ne(this),!0)}has(e){if(!this[Z].has(e))return!1;const t=this[Z].get(e).value;return!ue(this,t)}get(e){return te(this,e,!0)}peek(e){return te(this,e,!1)}pop(){const e=this[Y].tail;return e?(re(this,e),e.value):null}del(e){re(this,this[Z].get(e))}load(e){this.reset();const t=Date.now();for(let u=e.length-1;u>=0;u--){const n=e[u],r=n.e||0;if(0===r)this.set(n.k,n.v);else{const e=r-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[Z].forEach(((e,t)=>te(this,t,!1)))}};var ae=class{constructor(e){if(this.substring=(e,t)=>this.source.substring(e,t),this.toString=(e,t)=>this.source,"string"!=typeof e)throw new TypeError("Argument must be a string");this.source=e,this._utf8Bytes=null,this._utf8Indexes=null}get utf8Bytes(){return this._utf8Bytes||this.encode(),this._utf8Bytes}get utf8Indexes(){return this._utf8Bytes||this.encode(),this._utf8Indexes}get content(){return this.source}get length(){return this.source.length}get hasMultiByteCharacters(){return null!==this.utf8Indexes}convertUtf8OffsetToUtf16(e){if(e<0)return 0;if(e>=this._utf8Bytes.length-1)return this.source.length;const t=this.utf8Indexes;return t&&e>=this._mappingTableStartOffset?function(e,t){let u=0,n=e.length;if(0===n)return 0;for(;u<n;){const r=Math.floor((u+n)/2);e[r]>=t?n=r:u=r+1}for(;u>0&&(u>=e.length||e[u]>t);)u--;u>0&&e[u]===e[u-1]&&u--;return u}(t,e-this._mappingTableStartOffset)+this._mappingTableStartOffset:e}convertUtf16OffsetToUtf8(e){if(e<0)return 0;const t=this._utf8Bytes;if(e>=this.source.length)return t.length-1;const u=this.utf8Indexes;return u&&e>=this._mappingTableStartOffset?u[e-this._mappingTableStartOffset]+this._mappingTableStartOffset:e}encode(){const e=this.source,t=e.length;let u,n=0,r=0;function i(e){const i=3*(t-e);u=i<=255?new Uint8Array(t-e):i<=65535?new Uint16Array(t-e):new Uint32Array(t-e),r=e,u[n++]=0}const o=new Uint8Array(3*t+1);let s=0,a=0;for(;a<e.length;){let c;const l=e.charCodeAt(a);if(u&&(u[n++]=s-r),l<55296||l>57343)c=l;else if(l>=56320)c=65533;else if(a===t-1)c=65533;else{const t=e.charCodeAt(a+1);if(56320<=t&&t<=57343){u||i(a);c=65536+((1023&l)<<10)+(1023&t),a+=1,u[n++]=s-r}else c=65533}let h,p;if(c<=127?(h=1,p=0):c<=2047?(h=2,p=192):c<=65535?(h=3,p=224):(h=4,p=240),1===h)o[s++]=c;else for(u||i(s),o[s++]=(c>>6*--h)+p;h>0;){const e=c>>6*(h-1);o[s++]=128|63&e,h-=1}a+=1}const c=o.slice(0,s+1);c[s]=0,this._utf8Bytes=c,u&&(this._utf8Indexes=u,this._mappingTableStartOffset=r)}},ce=Object.defineProperty({default:ae},"__esModule",{value:!0});function le(e){const t=I.onigasmH._malloc(e.utf8Bytes.length);return I.onigasmH.HEAPU8.set(e.utf8Bytes,t),t}function he(e){const t=[];let u=0;for(;0!==I.onigasmH.HEAPU8[e];)t[u++]=I.onigasmH.HEAPU8[e++];return t.join()}const pe=new se({dispose:(e,t)=>{const u=I.onigasmH._malloc(t.regexTPtrs.length);I.onigasmH.HEAPU8.set(t.regexTPtrs,u);if(0!==I.onigasmH._disposeCompiledPatterns(u,e.patterns.length)){const e=he(I.onigasmH._getLastError());throw new Error(e)}I.onigasmH._free(u)},max:1e3});class fe{constructor(e){if(null===I.onigasmH)throw new Error("Onigasm has not been initialized, call loadWASM from 'onigasm' exports before using any other API");for(let t=0;t<e.length;t++){if("string"!=typeof e[t])throw new TypeError("First parameter to OnigScanner constructor must be array of (pattern) strings")}this.sources=e.slice()}get patterns(){return this.sources.slice()}findNextMatch(e,t,u){null==t&&(t=0),"function"==typeof t&&(u=t,t=0);try{u(null,this.findNextMatchSync(e,t))}catch(e){u(e)}}findNextMatchSync(e,t){null==t&&(t=0),t=this.convertToNumber(t);let u=pe.get(this),n=0;if(!u){const e=I.onigasmH._malloc(4),t=[];for(let u=0;u<this.sources.length;u++){const r=this.sources[u],i=le(new ce.default(r));if(n=I.onigasmH._compilePattern(i,e),0!==n){const e=he(I.onigasmH._getLastError());throw new Error(e)}const o=I.onigasmH.HEAP32[e/4];t.push(o),I.onigasmH._free(i)}u={regexTPtrs:new Uint8Array(Uint32Array.from(t).buffer)},I.onigasmH._free(e),pe.set(this,u)}const r=e instanceof ce.default?e:new ce.default(this.convertToString(e)),i=le(r),o=I.onigasmH._malloc(8),s=I.onigasmH._malloc(u.regexTPtrs.length);if(I.onigasmH.HEAPU8.set(u.regexTPtrs,s),n=I.onigasmH._findBestMatch(s,this.sources.length,i,r.utf8Bytes.length-1,r.convertUtf16OffsetToUtf8(t),o),0!==n){const e=he(I.onigasmH._getLastError());throw new Error(e)}const[a,c,l]=new Uint32Array(I.onigasmH.HEAPU32.buffer,o,3);if(I.onigasmH._free(i),I.onigasmH._free(o),I.onigasmH._free(s),l>0){const e=new Uint32Array(I.onigasmH.HEAPU32.buffer,c,l),t=[];let u=0,n=0;for(;u<l;){const i=n++;let o=e[u++],s=e[u++];r.hasMultiByteCharacters&&(o=r.convertUtf8OffsetToUtf16(o),s=r.convertUtf8OffsetToUtf16(s)),t.push({end:s,index:i,length:s-o,start:o})}return I.onigasmH._free(c),{captureIndices:t,index:a,scanner:this}}return null}convertToString(e){return void 0===e?"undefined":null===e?"null":e instanceof ce.default?e.content:e.toString()}convertToNumber(e){return e=parseInt(e,10),isFinite(e)||(e=0),e=Math.max(e,0)}}var De=fe,de=fe,ge=Object.defineProperty({OnigScanner:De,default:de},"__esModule",{value:!0});var me=class{constructor(e){this.source=e;try{this.scanner=new ge.default([this.source])}catch(e){}}searchSync(e,t){let u;return null==t&&(t=0),u=this.scanner.findNextMatchSync(e,t),this.captureIndicesForMatch(e,u)}search(e,t,u){null==t&&(t=0),"function"==typeof t&&(u=t,t=0);try{u(null,this.searchSync(e,t))}catch(e){u(e)}}testSync(e){return"boolean"==typeof this.source||"boolean"==typeof e?this.source===e:null!=this.searchSync(e)}test(e,t){"function"!=typeof t&&(t=()=>{});try{t(null,this.testSync(e))}catch(e){t(e)}}captureIndicesForMatch(e,t){if(null!=t){const{captureIndices:u}=t;let n;e=this.scanner.convertToString(e);for(let t=0;t<u.length;t++)n=u[t],n.match=e.slice(n.start,n.end);return u}return null}},Ce=Object.defineProperty({default:me},"__esModule",{value:!0}),Ae=I.loadWASM,Fe=(Ce.default,ge.default),ye=ce.default;function ve(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Ee(e){return e.startsWith("./")?e.slice(2):e}const _e="undefined"!=typeof window&&void 0!==window.document&&"undefined"!=typeof fetch;let be="https://unpkg.com/[email protected]/",Be="";let we=null;function xe(e){if(_e)return be||console.warn("[Shiki] no CDN provider found, use `setCDN()` to specify the CDN for loading the resources before calling `getHighlighter()`"),`${be}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function Se(e){return P.parse(await async function(e){const t=xe(e);if(_e)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e))}async function ke(e){const t=Ne(await Se(e));if(t.include){const u=await ke(function(...e){return e.map(ve).map(Ee).join("/")}(function(e){const t=e.split(/[\/\\]/g);return t[t.length-2]}(e),t.include));u.settings&&(t.settings=u.settings.concat(t.settings)),u.bg&&!t.bg&&(t.bg=u.bg),u.colors&&(t.colors=Object.assign(Object.assign({},u.colors),t.colors)),delete t.include}return t}function Ne(e){const t=e.type||"dark",u=Object.assign(Object.assign({type:t},e),function(e){var t,u,n,r,i,o;let s,a,c=e.settings?e.settings:e.tokenColors;const l=c?c.find((e=>!e.name&&!e.scope)):void 0;(null===(t=null==l?void 0:l.settings)||void 0===t?void 0:t.foreground)&&(s=l.settings.foreground);(null===(u=null==l?void 0:l.settings)||void 0===u?void 0:u.background)&&(a=l.settings.background);!s&&(null===(r=null===(n=e)||void 0===n?void 0:n.colors)||void 0===r?void 0:r["editor.foreground"])&&(s=e.colors["editor.foreground"]);!a&&(null===(o=null===(i=e)||void 0===i?void 0:i.colors)||void 0===o?void 0:o["editor.background"])&&(a=e.colors["editor.background"]);s||(s="light"===e.type?Le:je);a||(a="light"===e.type?Pe:Re);return{fg:s,bg:a}}(e));var n;return e.include&&(u.include=e.include),e.tokenColors&&(u.settings=e.tokenColors,delete u.tokenColors),(n=u).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),u}const Le="#333333",je="#bbbbbb",Pe="#fffffe",Re="#1e1e1e";class Te{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const u=this.scopeToLangMap[e];if(!u)return null;if(u.grammar)return u.grammar;const n=await async function(e){return await Se(e)}(t.includes(u)?`${this.languagesPath}${u.path}`:u.path);return u.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}class Ie{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=Ie.getLanguageId(e),u=Ie.getTokenType(e),n=Ie.getFontStyle(e),r=Ie.getForeground(e),i=Ie.getBackground(e);console.log({languageId:t,tokenType:u,fontStyle:n,foreground:r,background:i})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static set(e,t,u,n,r,i){let o=Ie.getLanguageId(e),s=Ie.getTokenType(e),a=Ie.getFontStyle(e),c=Ie.getForeground(e),l=Ie.getBackground(e);return 0!==t&&(o=t),0!==u&&(s=8===u?0:u),-1!==n&&(a=n),0!==r&&(c=r),0!==i&&(l=i),(o<<0|s<<8|a<<11|c<<14|l<<23)>>>0}}function Me(e,t){let u=[];for(let n=0,r=t.length;n<r;n++){let r=t.slice(0,n),i=t[n];u[n]={scopeName:i,themeMatches:$e(e,i,r)}}return u}function Oe(e,t){let u=e+".";return e===t||t.substring(0,u.length)===u}function Ge(e,t,u,n){if(!Oe(e,u))return!1;let r=t.length-1,i=n.length-1;for(;r>=0&&i>=0;)Oe(t[r],n[i])&&r--,i--;return-1===r}function $e(e,t,u){let n=[],r=0;for(let i=0,o=e.settings.length;i<o;i++){let o,s=e.settings[i];if("string"==typeof s.scope)o=s.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(s.scope))continue;o=s.scope}for(let e=0,i=o.length;e<i;e++){let a=o[e].split(/ /);Ge(a[a.length-1],a.slice(0,a.length-1),t,u)&&(n[r++]=s,e=i)}}return n}const He={1:"font-style: italic",2:"font-weight: bold",4:"text-decoration: underline"};function We(e,t={}){const u=t.bg||"#fff";let n="";return n+=`<pre class="shiki" style="background-color: ${u}">`,t.langId&&(n+=`<div class="language-id">${t.langId}</div>`),n+="<code>",e.forEach((e=>{n+='<span class="line">',e.forEach((e=>{const u=[`color: ${e.color||t.fg}`];e.fontStyle>0&&u.push(He[e.fontStyle]),n+=`<span style="${u.join("; ")}">${function(e){return e.replace(/[&<>"']/g,(e=>Ue[e]))}(e.content)}</span>`})),n+="</span>\n"})),n=n.replace(/\n*$/,""),n+="</code></pre>",n}const Ue={"&":"&","<":"<",">":">",'"':""","'":"'"};var qe=R((function(e,t){e.exports=function(e){var t={};function u(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,u),r.l=!0,r.exports}return u.m=e,u.c=t,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u(u.s=3)}([function(e,t,u){Object.defineProperty(t,"__esModule",{value:!0});var n=u(1),r=u(5),i=u(6),o=u(2),s="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()};t.createGrammar=function(e,t,u,n,r,i){return new A(e,t,u,n,r,i)};var a=function(e){this.scopeName=e};t.FullScopeDependency=a;var c=function(){function e(e,t){this.scopeName=e,this.include=t}return e.prototype.toKey=function(){return this.scopeName+"#"+this.include},e}();t.PartialScopeDependency=c;var l=function(){function e(){this.full=[],this.partial=[],this.visitedRule=new Set,this._seenFull=new Set,this._seenPartial=new Set}return e.prototype.add=function(e){e instanceof a?this._seenFull.has(e.scopeName)||(this._seenFull.add(e.scopeName),this.full.push(e)):this._seenPartial.has(e.toKey())||(this._seenPartial.add(e.toKey()),this.partial.push(e))},e}();function h(e,t,u,r,i){for(var o=0,s=r;o<s.length;o++){var l=s[o];if(!e.visitedRule.has(l)){e.visitedRule.add(l);var D=l.repository?n.mergeObjects({},i,l.repository):i;Array.isArray(l.patterns)&&h(e,t,u,l.patterns,D);var d=l.include;if(d)if("$base"===d||d===t.scopeName)f(e,t,t);else if("$self"===d||d===u.scopeName)f(e,t,u);else if("#"===d.charAt(0))p(e,t,u,d.substring(1),D);else{var g=d.indexOf("#");if(g>=0){var m=d.substring(0,g),C=d.substring(g+1);m===t.scopeName?p(e,t,t,C,D):m===u.scopeName?p(e,t,u,C,D):e.add(new c(m,d.substring(g+1)))}else e.add(new a(d))}}}}function p(e,t,u,n,r){void 0===r&&(r=u.repository),r&&r[n]&&h(e,t,u,[r[n]],r)}function f(e,t,u){if(u.patterns&&Array.isArray(u.patterns)&&h(e,t,u,u.patterns,u.repository),u.injections){var n=[];for(var r in u.injections)n.push(u.injections[r]);h(e,t,u,n,u.repository)}}function D(e,t){if(!e)return!1;if(e===t)return!0;var u=t.length;return e.length>u&&e.substr(0,u)===t&&"."===e[u]}function d(e,t){if(t.length<e.length)return!1;var u=0;return e.every((function(e){for(var n=u;n<t.length;n++)if(D(t[n],e))return u=n+1,!0;return!1}))}function g(e,t,u,n,o){for(var s=i.createMatchers(t,d),a=r.RuleFactory.getCompiledRuleId(u,n,o.repository),c=0,l=s;c<l.length;c++){var h=l[c];e.push({matcher:h.matcher,ruleId:a,grammar:o,priority:h.priority})}}t.ScopeDependencyCollector=l,t.collectSpecificDependencies=p,t.collectDependencies=f;var m=function(e,t,u,n){this.scopeName=e,this.languageId=t,this.tokenType=u,this.themeData=n};t.ScopeMetadata=m;var C=function(){function e(t,u,n){if(this._initialLanguage=t,this._themeProvider=u,this._cache=new Map,this._defaultMetaData=new m("",this._initialLanguage,0,[this._themeProvider.getDefaults()]),this._embeddedLanguages=Object.create(null),n)for(var r=Object.keys(n),i=0,o=r.length;i<o;i++){var s=r[i],a=n[s];"number"==typeof a&&0!==a?this._embeddedLanguages[s]=a:console.warn("Invalid embedded language found at scope "+s+": <<"+a+">>")}var c=Object.keys(this._embeddedLanguages).map((function(t){return e._escapeRegExpCharacters(t)}));0===c.length?this._embeddedLanguagesRegex=null:(c.sort(),c.reverse(),this._embeddedLanguagesRegex=new RegExp("^(("+c.join(")|(")+"))($|\\.)",""))}return e.prototype.onDidChangeTheme=function(){this._cache=new Map,this._defaultMetaData=new m("",this._initialLanguage,0,[this._themeProvider.getDefaults()])},e.prototype.getDefaultMetadata=function(){return this._defaultMetaData},e._escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},e.prototype.getMetadataForScope=function(t){if(null===t)return e._NULL_SCOPE_METADATA;var u=this._cache.get(t);return u||(u=this._doGetMetadataForScope(t),this._cache.set(t,u),u)},e.prototype._doGetMetadataForScope=function(e){var t=this._scopeToLanguage(e),u=this._toStandardTokenType(e),n=this._themeProvider.themeMatch(e);return new m(e,t,u,n)},e.prototype._scopeToLanguage=function(e){if(!e)return 0;if(!this._embeddedLanguagesRegex)return 0;var t=e.match(this._embeddedLanguagesRegex);return t&&(this._embeddedLanguages[t[1]]||0)||0},e.prototype._toStandardTokenType=function(t){var u=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!u)return 0;switch(u[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"meta.embedded":return 8}throw new Error("Unexpected match for standard token type!")},e._NULL_SCOPE_METADATA=new m("",0,0,null),e.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/,e}(),A=function(){function e(e,t,u,n,r,o){if(this._scopeMetadataProvider=new C(t,r,u),this._onigLib=o,this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=r,this._grammar=y(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(var s=0,a=Object.keys(n);s<a.length;s++)for(var c=a[s],l=0,h=i.createMatchers(c,d);l<h.length;l++){var p=h[l];this._tokenTypeMatchers.push({matcher:p.matcher,type:n[c]})}}return e.prototype.dispose=function(){for(var e=0,t=this._ruleId2desc;e<t.length;e++){var u=t[e];u&&u.dispose()}},e.prototype.createOnigScanner=function(e){return this._onigLib.createOnigScanner(e)},e.prototype.createOnigString=function(e){return this._onigLib.createOnigString(e)},e.prototype.onDidChangeTheme=function(){this._scopeMetadataProvider.onDidChangeTheme()},e.prototype.getMetadataForScope=function(e){return this._scopeMetadataProvider.getMetadataForScope(e)},e.prototype.getInjections=function(){var e=this;if(null===this._injections){this._injections=[];var t=this._grammar.injections;if(t)for(var u in t)g(this._injections,u,t[u],this,this._grammar);if(this._grammarRepository){var n=this._grammarRepository.injections(this._grammar.scopeName);n&&n.forEach((function(t){var u=e.getExternalGrammar(t);if(u){var n=u.injectionSelector;n&&g(e._injections,n,u,e,u)}}))}this._injections.sort((function(e,t){return e.priority-t.priority}))}return this._injections},e.prototype.registerRule=function(e){var t=++this._lastRuleId,u=e(t);return this._ruleId2desc[t]=u,u},e.prototype.getRule=function(e){return this._ruleId2desc[e]},e.prototype.getExternalGrammar=function(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){var u=this._grammarRepository.lookup(e);if(u)return this._includedGrammars[e]=y(u,t&&t.$base),this._includedGrammars[e]}return null},e.prototype.tokenizeLine=function(e,t){var u=this._tokenize(e,t,!1);return{tokens:u.lineTokens.getResult(u.ruleStack,u.lineLength),ruleStack:u.ruleStack}},e.prototype.tokenizeLine2=function(e,t){var u=this._tokenize(e,t,!0);return{tokens:u.lineTokens.getBinaryResult(u.ruleStack,u.lineLength),ruleStack:u.ruleStack}},e.prototype._tokenize=function(e,t,u){var n;if(-1===this._rootId&&(this._rootId=r.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==x.NULL)n=!1,t.reset();else{n=!0;var i=this._scopeMetadataProvider.getDefaultMetadata(),o=i.themeData[0],s=B.set(0,i.languageId,i.tokenType,o.fontStyle,o.foreground,o.background),a=this.getRule(this._rootId).getName(null,null),c=this._scopeMetadataProvider.getMetadataForScope(a),l=w.mergeMetadata(s,null,c),h=new w(null,null===a?"unknown":a,l);t=new x(null,this._rootId,-1,-1,!1,null,h,h)}e+="\n";var p=this.createOnigString(e),f=p.content.length,D=new k(u,e,this._tokenTypeMatchers),d=b(this,p,n,0,t,D,!0);return F(p),{lineLength:f,lineTokens:D,ruleStack:d}},e}();function F(e){"function"==typeof e.dispose&&e.dispose()}function y(e,t){return(e=n.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}function v(e,t,u,n,r,i,o){if(0!==i.length){for(var s=t.content,a=Math.min(i.length,o.length),c=[],l=o[0].end,h=0;h<a;h++){var p=i[h];if(null!==p){var f=o[h];if(0!==f.length){if(f.start>l)break;for(;c.length>0&&c[c.length-1].endPos<=f.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,f.start):r.produce(n,f.start),p.retokenizeCapturedWithRuleId){var D=p.getName(s,o),d=n.contentNameScopesList.push(e,D),g=p.getContentName(s,o),m=d.push(e,g),C=n.push(p.retokenizeCapturedWithRuleId,f.start,-1,!1,null,d,m),A=e.createOnigString(s.substring(0,f.end));b(e,A,u&&0===f.start,f.start,C,r,!1),F(A)}else{var y=p.getName(s,o);if(null!==y){var v=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).push(e,y);c.push(new S(v,f.end))}}}}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}}function E(e){for(var t=[],u=0,n=e.rules.length;u<n;u++)t.push(" - "+e.rules[u]+": "+e.debugRegExps[u]);return t.join("\n")}function _(e,t,u,n,r,i){var a=function(e,t,u,n,r,i){var a=r.getRule(e),c=a.compile(e,r.endRule,u,n===i),l=0;o.DebugFlags.InDebugMode&&(l=s());var h=c.scanner.findNextMatchSync(t,n);if(o.DebugFlags.InDebugMode){var p=s()-l;p>5&&console.warn("Rule "+a.debugName+" ("+a.id+") matching took "+p+" against '"+t+"'"),h&&console.log("matched rule id: "+c.rules[h.index]+" from "+h.captureIndices[0].start+" to "+h.captureIndices[0].end)}return h?{captureIndices:h.captureIndices,matchedRuleId:c.rules[h.index]}:null}(e,t,u,n,r,i),c=e.getInjections();if(0===c.length)return a;var l=function(e,t,u,n,r,i,s){for(var a,c=Number.MAX_VALUE,l=null,h=0,p=i.contentNameScopesList.generateScopes(),f=0,D=e.length;f<D;f++){var d=e[f];if(d.matcher(p)){var g=t.getRule(d.ruleId).compile(t,null,n,r===s),m=g.scanner.findNextMatchSync(u,r);if(o.DebugFlags.InDebugMode&&(console.log(" scanning for injections"),console.log(E(g))),m){var C=m.captureIndices[0].start;if(!(C>=c)&&(c=C,l=m.captureIndices,a=g.rules[m.index],h=d.priority,c===r))break}}}return l?{priorityMatch:-1===h,captureIndices:l,matchedRuleId:a}:null}(c,e,t,u,n,r,i);if(!l)return a;if(!a)return l;var h=a.captureIndices[0].start,p=l.captureIndices[0].start;return p<h||l.priorityMatch&&p===h?l:a}function b(e,t,u,n,i,s,a){var c=t.content.length,l=!1,h=-1;if(a){var p=function(e,t,u,n,i,s){for(var a=i.beginRuleCapturedEOL?0:-1,c=[],l=i;l;l=l.pop()){var h=l.getRule(e);h instanceof r.BeginWhileRule&&c.push({rule:h,stack:l})}for(var p=c.pop();p;p=c.pop()){var f=p.rule.compileWhile(e,p.stack.endRule,u,a===n),D=f.scanner.findNextMatchSync(t,n);if(o.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(E(f))),!D){o.DebugFlags.InDebugMode&&console.log(" popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),i=p.stack.pop();break}if(-2!==f.rules[D.index]){i=p.stack.pop();break}D.captureIndices&&D.captureIndices.length&&(s.produce(p.stack,D.captureIndices[0].start),v(e,t,u,p.stack,s,p.rule.whileCaptures,D.captureIndices),s.produce(p.stack,D.captureIndices[0].end),a=D.captureIndices[0].end,D.captureIndices[0].end>n&&(n=D.captureIndices[0].end,u=!1))}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:u}}(e,t,u,n,i,s);i=p.stack,n=p.linePos,u=p.isFirstLine,h=p.anchorPosition}for(;!l;)f();function f(){o.DebugFlags.InDebugMode&&(console.log(""),console.log("@@scanNext "+n+": |"+t.content.substr(n).replace(/\n$/,"\\n")+"|"));var a=_(e,t,u,n,i,h);if(!a)return o.DebugFlags.InDebugMode&&console.log(" no more matches."),s.produce(i,c),void(l=!0);var p=a.captureIndices,f=a.matchedRuleId,D=!!(p&&p.length>0)&&p[0].end>n;if(-1===f){var d=i.getRule(e);o.DebugFlags.InDebugMode&&console.log(" popping "+d.debugName+" - "+d.debugEndRegExp),s.produce(i,p[0].start),i=i.setContentNameScopesList(i.nameScopesList),v(e,t,u,i,s,d.endCaptures,p),s.produce(i,p[0].end);var g=i;if(i=i.pop(),h=g.getAnchorPos(),!D&&g.getEnterPos()===n)return o.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),i=g,s.produce(i,c),void(l=!0)}else{var m=e.getRule(f);s.produce(i,p[0].start);var C=i,A=m.getName(t.content,p),F=i.contentNameScopesList.push(e,A);if(i=i.push(f,n,h,p[0].end===c,null,F,F),m instanceof r.BeginEndRule){var y=m;o.DebugFlags.InDebugMode&&console.log(" pushing "+y.debugName+" - "+y.debugBeginRegExp),v(e,t,u,i,s,y.beginCaptures,p),s.produce(i,p[0].end),h=p[0].end;var E=y.getContentName(t.content,p),b=F.push(e,E);if(i=i.setContentNameScopesList(b),y.endHasBackReferences&&(i=i.setEndRule(y.getEndWithResolvedBackReferences(t.content,p))),!D&&C.hasSameRuleAs(i))return o.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),i=i.pop(),s.produce(i,c),void(l=!0)}else if(m instanceof r.BeginWhileRule){if(y=m,o.DebugFlags.InDebugMode&&console.log(" pushing "+y.debugName),v(e,t,u,i,s,y.beginCaptures,p),s.produce(i,p[0].end),h=p[0].end,E=y.getContentName(t.content,p),b=F.push(e,E),i=i.setContentNameScopesList(b),y.whileHasBackReferences&&(i=i.setEndRule(y.getWhileWithResolvedBackReferences(t.content,p))),!D&&C.hasSameRuleAs(i))return o.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),i=i.pop(),s.produce(i,c),void(l=!0)}else{var B=m;if(o.DebugFlags.InDebugMode&&console.log(" matched "+B.debugName+" - "+B.debugMatchRegExp),v(e,t,u,i,s,B.captures,p),s.produce(i,p[0].end),i=i.pop(),!D)return o.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),i=i.safePop(),s.produce(i,c),void(l=!0)}}p[0].end>n&&(n=p[0].end,u=!1)}return i}t.Grammar=A;var B=function(){function e(){}return e.toBinaryStr=function(e){for(var t=e.toString(2);t.length<32;)t="0"+t;return t},e.printMetadata=function(t){var u=e.getLanguageId(t),n=e.getTokenType(t),r=e.getFontStyle(t),i=e.getForeground(t),o=e.getBackground(t);console.log({languageId:u,tokenType:n,fontStyle:r,foreground:i,background:o})},e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.set=function(t,u,n,r,i,o){var s=e.getLanguageId(t),a=e.getTokenType(t),c=e.getFontStyle(t),l=e.getForeground(t),h=e.getBackground(t);return 0!==u&&(s=u),0!==n&&(a=8===n?0:n),-1!==r&&(c=r),0!==i&&(l=i),0!==o&&(h=o),(s<<0|a<<8|c<<11|l<<14|h<<23)>>>0},e}();t.StackElementMetadata=B;var w=function(){function e(e,t,u){this.parent=e,this.scope=t,this.metadata=u}return e._equals=function(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scope!==t.scope||e.metadata!==t.metadata)return!1;e=e.parent,t=t.parent}},e.prototype.equals=function(t){return e._equals(this,t)},e._matchesScope=function(e,t,u){return t===e||e.substring(0,u.length)===u},e._matches=function(e,t){if(null===t)return!0;for(var u=t.length,n=0,r=t[n],i=r+".";e;){if(this._matchesScope(e.scope,r,i)){if(++n===u)return!0;i=(r=t[n])+"."}e=e.parent}return!1},e.mergeMetadata=function(e,t,u){if(null===u)return e;var n=-1,r=0,i=0;if(null!==u.themeData)for(var o=0,s=u.themeData.length;o<s;o++){var a=u.themeData[o];if(this._matches(t,a.parentScopes)){n=a.fontStyle,r=a.foreground,i=a.background;break}}return B.set(e,u.languageId,u.tokenType,n,r,i)},e._push=function(t,u,n){for(var r=0,i=n.length;r<i;r++){var o=n[r],s=u.getMetadataForScope(o),a=e.mergeMetadata(t.metadata,t,s);t=new e(t,o,a)}return t},e.prototype.push=function(t,u){return null===u?this:u.indexOf(" ")>=0?e._push(this,t,u.split(/ /g)):e._push(this,t,[u])},e._generateScopes=function(e){for(var t=[],u=0;e;)t[u++]=e.scope,e=e.parent;return t.reverse(),t},e.prototype.generateScopes=function(){return e._generateScopes(this)},e}();t.ScopeListElement=w;var x=function(){function e(e,t,u,n,r,i,o,s){this.parent=e,this.depth=this.parent?this.parent.depth+1:1,this.ruleId=t,this._enterPos=u,this._anchorPos=n,this.beginRuleCapturedEOL=r,this.endRule=i,this.nameScopesList=o,this.contentNameScopesList=s}return e._structuralEquals=function(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}},e._equals=function(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)},e.prototype.clone=function(){return this},e.prototype.equals=function(t){return null!==t&&e._equals(this,t)},e._reset=function(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent},e.prototype.reset=function(){e._reset(this)},e.prototype.pop=function(){return this.parent},e.prototype.safePop=function(){return this.parent?this.parent:this},e.prototype.push=function(t,u,n,r,i,o,s){return new e(this,t,u,n,r,i,o,s)},e.prototype.getEnterPos=function(){return this._enterPos},e.prototype.getAnchorPos=function(){return this._anchorPos},e.prototype.getRule=function(e){return e.getRule(this.ruleId)},e.prototype._writeString=function(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]="("+this.ruleId+", TODO-"+this.nameScopesList+", TODO-"+this.contentNameScopesList+")",t},e.prototype.toString=function(){var e=[];return this._writeString(e,0),"["+e.join(",")+"]"},e.prototype.setContentNameScopesList=function(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)},e.prototype.setEndRule=function(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)},e.prototype.hasSameRuleAs=function(e){return this.ruleId===e.ruleId},e.NULL=new e(null,0,0,0,!1,null,null,null),e}();t.StackElement=x;var S=function(e,t){this.scopes=e,this.endPos=t};t.LocalStackElement=S;var k=function(){function e(e,t,u){this._emitBinaryTokens=e,this._tokenTypeOverrides=u,o.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}return e.prototype.produce=function(e,t){this.produceFromScopes(e.contentNameScopesList,t)},e.prototype.produceFromScopes=function(e,t){if(!(this._lastTokenEndIndex>=t)){if(this._emitBinaryTokens){for(var u=e.metadata,n=0,r=this._tokenTypeOverrides;n<r.length;n++){var i=r[n];i.matcher(e.generateScopes())&&(u=B.set(u,0,N(i.type),-1,0,0))}return this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u||(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u)),void(this._lastTokenEndIndex=t)}var s=e.generateScopes();if(o.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(var a=0;a<s.length;a++)console.log(" * "+s[a])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),this._lastTokenEndIndex=t}},e.prototype.getResult=function(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens},e.prototype.getBinaryResult=function(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);for(var u=new Uint32Array(this._binaryTokens.length),n=0,r=this._binaryTokens.length;n<r;n++)u[n]=this._binaryTokens[n];return u},e}();function N(e){switch(e){case 4:return 4;case 2:return 2;case 1:return 1;case 0:default:return 8}}},function(e,t,u){function n(e){return Array.isArray(e)?function(e){for(var t=[],u=0,r=e.length;u<r;u++)t[u]=n(e[u]);return t}(e):"object"==typeof e?function(e){var t={};for(var u in e)t[u]=n(e[u]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=function(e){return n(e)},t.mergeObjects=function(e){for(var t=[],u=1;u<arguments.length;u++)t[u-1]=arguments[u];return t.forEach((function(t){for(var u in t)e[u]=t[u]})),e},t.basename=function e(t){var u=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===u?t:~u==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~u)};var r=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/,i=function(){function e(){}return e.hasCaptures=function(e){return null!==e&&r.test(e)},e.replaceCaptures=function(e,t,u){return e.replace(r,(function(e,n,r,i){var o=u[parseInt(n||r,10)];if(!o)return e;for(var s=t.substring(o.start,o.end);"."===s[0];)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}))},e}();t.RegexSource=i},function(e,t,u){(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.DebugFlags={InDebugMode:void 0!==e&&!!e.env.VSCODE_TEXTMATE_DEBUG}}).call(this,u(7))},function(e,t,u){var n=this&&this.__awaiter||function(e,t,u,n){return new(u||(u=Promise))((function(r,i){function o(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof u?t:new u((function(e){e(t)}))).then(o,s)}a((n=n.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var u,n,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(u)throw new TypeError("Generator is already executing.");for(;o;)try{if(u=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{u=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=u(4),o=u(8),s=u(11),a=u(0),c=function(){function e(e){this._options=e,this._syncRegistry=new i.SyncRegistry(s.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}return e.prototype.dispose=function(){this._syncRegistry.dispose()},e.prototype.setTheme=function(e,t){this._syncRegistry.setTheme(s.Theme.createFromRawTheme(e,t))},e.prototype.getColorMap=function(){return this._syncRegistry.getColorMap()},e.prototype.loadGrammarWithEmbeddedLanguages=function(e,t,u){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:u})},e.prototype.loadGrammarWithConfiguration=function(e,t,u){return this._loadGrammar(e,t,u.embeddedLanguages,u.tokenTypes)},e.prototype.loadGrammar=function(e){return this._loadGrammar(e,0,null,null)},e.prototype._doLoadSingleGrammar=function(e){return n(this,void 0,void 0,(function(){var t,u;return r(this,(function(n){switch(n.label){case 0:return[4,this._options.loadGrammar(e)];case 1:return(t=n.sent())&&(u="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0,this._syncRegistry.addGrammar(t,u)),[2]}}))}))},e.prototype._loadSingleGrammar=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),[2,this._ensureGrammarCache.get(e)]}))}))},e.prototype._collectDependenciesForDep=function(e,t,u){var n=this._syncRegistry.lookup(u.scopeName);if(n){u instanceof a.FullScopeDependency?a.collectDependencies(t,this._syncRegistry.lookup(e),n):a.collectSpecificDependencies(t,this._syncRegistry.lookup(e),n,u.include);var r=this._syncRegistry.injections(u.scopeName);if(r)for(var i=0,o=r;i<o.length;i++){var s=o[i];t.add(new a.FullScopeDependency(s))}}else if(u.scopeName===e)throw new Error("No grammar provided for <"+e+">")},e.prototype._loadGrammar=function(e,t,u,i){return n(this,void 0,void 0,(function(){var n,o,s,c,l,h,p,f,D,d,g,m,C=this;return r(this,(function(r){switch(r.label){case 0:n=new Set,o=new Set,n.add(e),s=[new a.FullScopeDependency(e)],r.label=1;case 1:return s.length>0?(c=s,s=[],[4,Promise.all(c.map((function(e){return C._loadSingleGrammar(e.scopeName)})))]):[3,3];case 2:for(r.sent(),l=new a.ScopeDependencyCollector,h=0,p=c;h<p.length;h++)m=p[h],this._collectDependenciesForDep(e,l,m);for(f=0,D=l.full;f<D.length;f++)m=D[f],n.has(m.scopeName)||(n.add(m.scopeName),s.push(m));for(d=0,g=l.partial;d<g.length;d++)m=g[d],n.has(m.scopeName)||o.has(m.toKey())||(o.add(m.toKey()),s.push(m));return[3,1];case 3:return[2,this.grammarForScopeName(e,t,u,i)]}}))}))},e.prototype.addGrammar=function(e,t,u,i){return void 0===t&&(t=[]),void 0===u&&(u=0),void 0===i&&(i=null),n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return this._syncRegistry.addGrammar(e,t),[4,this.grammarForScopeName(e.scopeName,u,i)];case 1:return[2,n.sent()]}}))}))},e.prototype.grammarForScopeName=function(e,t,u,n){return void 0===t&&(t=0),void 0===u&&(u=null),void 0===n&&(n=null),this._syncRegistry.grammarForScopeName(e,t,u,n)},e}();t.Registry=c,t.INITIAL=a.StackElement.NULL,t.parseRawGrammar=o.parseRawGrammar},function(e,t,u){var n=this&&this.__awaiter||function(e,t,u,n){return new(u||(u=Promise))((function(r,i){function o(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof u?t:new u((function(e){e(t)}))).then(o,s)}a((n=n.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var u,n,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(u)throw new TypeError("Generator is already executing.");for(;o;)try{if(u=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],n=0}finally{u=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=u(0),o=function(){function e(e,t){this._theme=e,this._grammars={},this._rawGrammars={},this._injectionGrammars={},this._onigLibPromise=t}return e.prototype.dispose=function(){for(var e in this._grammars)this._grammars.hasOwnProperty(e)&&this._grammars[e].dispose()},e.prototype.setTheme=function(e){var t=this;this._theme=e,Object.keys(this._grammars).forEach((function(e){t._grammars[e].onDidChangeTheme()}))},e.prototype.getColorMap=function(){return this._theme.getColorMap()},e.prototype.addGrammar=function(e,t){this._rawGrammars[e.scopeName]=e,t&&(this._injectionGrammars[e.scopeName]=t)},e.prototype.lookup=function(e){return this._rawGrammars[e]},e.prototype.injections=function(e){return this._injectionGrammars[e]},e.prototype.getDefaults=function(){return this._theme.getDefaults()},e.prototype.themeMatch=function(e){return this._theme.match(e)},e.prototype.grammarForScopeName=function(e,t,u,o){return n(this,void 0,void 0,(function(){var n,s,a,c,l;return r(this,(function(r){switch(r.label){case 0:return this._grammars[e]?[3,2]:(n=this._rawGrammars[e])?(s=this._grammars,a=e,c=i.createGrammar,l=[n,t,u,o,this],[4,this._onigLibPromise]):[2,null];case 1:s[a]=c.apply(void 0,l.concat([r.sent()])),r.label=2;case 2:return[2,this._grammars[e]]}}))}))},e}();t.SyncRegistry=o},function(e,t,u){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])})(e,t)},function(e,t){function u(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(u.prototype=t.prototype,new u)});Object.defineProperty(t,"__esModule",{value:!0});var i=u(1),o=/\\(\d+)/,s=/\\(\d+)/g,a=function(){function e(e,t,u){this.debugRegExps=t,this.rules=u,this.scanner=e.createOnigScanner(t)}return e.prototype.dispose=function(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()},e}();t.CompiledRule=a;var c=function(){function e(e,t,u,n){this.$location=e,this.id=t,this._name=u||null,this._nameIsCapturing=i.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=i.RegexSource.hasCaptures(this._contentName)}return Object.defineProperty(e.prototype,"debugName",{get:function(){var e=this.$location?i.basename(this.$location.filename)+":"+this.$location.line:"unknown";return this.constructor.name+"#"+this.id+" @ "+e},enumerable:!0,configurable:!0}),e.prototype.getName=function(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?i.RegexSource.replaceCaptures(this._name,e,t):this._name},e.prototype.getContentName=function(e,t){return this._contentNameIsCapturing&&null!==this._contentName?i.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName},e}();t.Rule=c;var l=function(e){function t(t,u,n,r,i){var o=e.call(this,t,u,n,r)||this;return o.retokenizeCapturedWithRuleId=i,o}return r(t,e),t.prototype.dispose=function(){},t.prototype.collectPatternsRecursive=function(e,t,u){throw new Error("Not supported!")},t.prototype.compile=function(e,t,u,n){throw new Error("Not supported!")},t}(c);t.CaptureRule=l;var h=function(){function e(e,t,u){if(void 0===u&&(u=!0),u)if(e){for(var n=e.length,r=0,i=[],s=!1,a=0;a<n;a++)if("\\"===e.charAt(a)&&a+1<n){var c=e.charAt(a+1);"z"===c?(i.push(e.substring(r,a)),i.push("$(?!\\n)(?<!\\n)"),r=a+2):"A"!==c&&"G"!==c||(s=!0),a++}this.hasAnchor=s,0===r?this.source=e:(i.push(e.substring(r,n)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=o.test(this.source)}return e.prototype.clone=function(){return new e(this.source,this.ruleId,!0)},e.prototype.setSource=function(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))},e.prototype.resolveBackReferences=function(e,t){var u=t.map((function(t){return e.substring(t.start,t.end)}));return s.lastIndex=0,this.source.replace(s,(function(e,t){return(u[parseInt(t,10)]||"").replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}))},e.prototype._buildAnchorCache=function(){var e,t,u,n,r=[],i=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)u=this.source.charAt(e),r[e]=u,i[e]=u,o[e]=u,s[e]=u,"\\"===u&&e+1<t&&("A"===(n=this.source.charAt(e+1))?(r[e+1]="",i[e+1]="",o[e+1]="A",s[e+1]="A"):"G"===n?(r[e+1]="",i[e+1]="G",o[e+1]="",s[e+1]="G"):(r[e+1]=n,i[e+1]=n,o[e+1]=n,s[e+1]=n),e++);return{A0_G0:r.join(""),A0_G1:i.join(""),A1_G0:o.join(""),A1_G1:s.join("")}},e.prototype.resolveAnchors=function(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source},e}();t.RegExpSource=h;var p=function(){function e(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}return e.prototype.dispose=function(){this._disposeCaches()},e.prototype._disposeCaches=function(){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)},e.prototype.push=function(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor},e.prototype.unshift=function(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor},e.prototype.length=function(){return this._items.length},e.prototype.setSource=function(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))},e.prototype.compile=function(e,t,u){if(this._hasAnchors)return t?u?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,u)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,u)),this._anchorCache.A1_G0):u?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,u)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,u)),this._anchorCache.A0_G0);if(!this._cached){var n=this._items.map((function(e){return e.source}));this._cached=new a(e,n,this._items.map((function(e){return e.ruleId})))}return this._cached},e.prototype._resolveAnchors=function(e,t,u){var n=this._items.map((function(e){return e.resolveAnchors(t,u)}));return new a(e,n,this._items.map((function(e){return e.ruleId})))},e}();t.RegExpSourceList=p;var f=function(e){function t(t,u,n,r,i){var o=e.call(this,t,u,n,null)||this;return o._match=new h(r,o.id),o.captures=i,o._cachedCompiledPatterns=null,o}return r(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},Object.defineProperty(t.prototype,"debugMatchRegExp",{get:function(){return""+this._match.source},enumerable:!0,configurable:!0}),t.prototype.collectPatternsRecursive=function(e,t,u){t.push(this._match)},t.prototype.compile=function(e,t,u,n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new p,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns.compile(e,u,n)},t}(c);t.MatchRule=f;var D=function(e){function t(t,u,n,r,i){var o=e.call(this,t,u,n,r)||this;return o.patterns=i.patterns,o.hasMissingPatterns=i.hasMissingPatterns,o._cachedCompiledPatterns=null,o}return r(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},t.prototype.collectPatternsRecursive=function(e,t,u){var n,r;for(n=0,r=this.patterns.length;n<r;n++)e.getRule(this.patterns[n]).collectPatternsRecursive(e,t,!1)},t.prototype.compile=function(e,t,u,n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new p,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns.compile(e,u,n)},t}(c);t.IncludeOnlyRule=D;var d=function(e){function t(t,u,n,r,i,o,s,a,c,l){var p=e.call(this,t,u,n,r)||this;return p._begin=new h(i,p.id),p.beginCaptures=o,p._end=new h(s||"",-1),p.endHasBackReferences=p._end.hasBackReferences,p.endCaptures=a,p.applyEndPatternLast=c||!1,p.patterns=l.patterns,p.hasMissingPatterns=l.hasMissingPatterns,p._cachedCompiledPatterns=null,p}return r(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},Object.defineProperty(t.prototype,"debugBeginRegExp",{get:function(){return""+this._begin.source},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debugEndRegExp",{get:function(){return""+this._end.source},enumerable:!0,configurable:!0}),t.prototype.getEndWithResolvedBackReferences=function(e,t){return this._end.resolveBackReferences(e,t)},t.prototype.collectPatternsRecursive=function(e,t,u){if(u){var n,r=void 0;for(r=0,n=this.patterns.length;r<n;r++)e.getRule(this.patterns[r]).collectPatternsRecursive(e,t,!1)}else t.push(this._begin)},t.prototype.compile=function(e,t,u,n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new p,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0),this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)),this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns.compile(e,u,n)},t}(c);t.BeginEndRule=d;var g=function(e){function t(t,u,n,r,i,o,s,a,c){var l=e.call(this,t,u,n,r)||this;return l._begin=new h(i,l.id),l.beginCaptures=o,l.whileCaptures=a,l._while=new h(s,-2),l.whileHasBackReferences=l._while.hasBackReferences,l.patterns=c.patterns,l.hasMissingPatterns=c.hasMissingPatterns,l._cachedCompiledPatterns=null,l._cachedCompiledWhilePatterns=null,l}return r(t,e),t.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)},Object.defineProperty(t.prototype,"debugBeginRegExp",{get:function(){return""+this._begin.source},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debugWhileRegExp",{get:function(){return""+this._while.source},enumerable:!0,configurable:!0}),t.prototype.getWhileWithResolvedBackReferences=function(e,t){return this._while.resolveBackReferences(e,t)},t.prototype.collectPatternsRecursive=function(e,t,u){if(u){var n,r=void 0;for(r=0,n=this.patterns.length;r<n;r++)e.getRule(this.patterns[r]).collectPatternsRecursive(e,t,!1)}else t.push(this._begin)},t.prototype.compile=function(e,t,u,n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new p,this.collectPatternsRecursive(e,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns.compile(e,u,n)},t.prototype.compileWhile=function(e,t,u,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new p,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns.compile(e,u,n)},t}(c);t.BeginWhileRule=g;var m=function(){function e(){}return e.createCaptureRule=function(e,t,u,n,r){return e.registerRule((function(e){return new l(t,e,u,n,r)}))},e.getCompiledRuleId=function(t,u,n){return t.id||u.registerRule((function(r){if(t.id=r,t.match)return new f(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,u,n));if(void 0===t.begin){t.repository&&(n=i.mergeObjects({},n,t.repository));var o=t.patterns;return void 0===o&&t.include&&(o=[{include:t.include}]),new D(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(o,u,n))}return t.while?new g(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,u,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,u,n),e._compilePatterns(t.patterns,u,n)):new d(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,u,n),t.end,e._compileCaptures(t.endCaptures||t.captures,u,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,u,n))})),t.id},e._compileCaptures=function(t,u,n){var r=[];if(t){var i=0;for(var o in t)"$vscodeTextmateLocation"!==o&&(a=parseInt(o,10))>i&&(i=a);for(var s=0;s<=i;s++)r[s]=null;for(var o in t)if("$vscodeTextmateLocation"!==o){var a=parseInt(o,10),c=0;t[o].patterns&&(c=e.getCompiledRuleId(t[o],u,n)),r[a]=e.createCaptureRule(u,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,c)}}return r},e._compilePatterns=function(t,u,n){var r=[];if(t)for(var i=0,o=t.length;i<o;i++){var s=t[i],a=-1;if(s.include)if("#"===s.include.charAt(0)){var c=n[s.include.substr(1)];c&&(a=e.getCompiledRuleId(c,u,n))}else if("$base"===s.include||"$self"===s.include)a=e.getCompiledRuleId(n[s.include],u,n);else{var l=null,h=null,p=s.include.indexOf("#");p>=0?(l=s.include.substring(0,p),h=s.include.substring(p+1)):l=s.include;var f=u.getExternalGrammar(l,n);if(f)if(h){var m=f.repository[h];m&&(a=e.getCompiledRuleId(m,u,f.repository))}else a=e.getCompiledRuleId(f.repository.$self,u,f.repository)}else a=e.getCompiledRuleId(s,u,n);if(-1!==a){var C=u.getRule(a),A=!1;if((C instanceof D||C instanceof d||C instanceof g)&&C.hasMissingPatterns&&0===C.patterns.length&&(A=!0),A)continue;r.push(a)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}},e}();t.RuleFactory=m},function(e,t,u){function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=function(e,t){for(var u,r,i,o=[],s=(i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(u=e),{next:function(){if(!i)return null;var e=i[0];return i=r.exec(u),e}}),a=s.next();null!==a;){var c=0;if(2===a.length&&":"===a.charAt(1)){switch(a.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log("Unknown priority "+a+" in scope selector")}a=s.next()}var l=p();if(o.push({matcher:l,priority:c}),","!==a)break;a=s.next()}return o;function h(){if("-"===a){a=s.next();var e=h();return function(t){return!!e&&!e(t)}}if("("===a){a=s.next();var u=function(){for(var e=[],t=p();t&&(e.push(t),"|"===a||","===a);){do{a=s.next()}while("|"===a||","===a);t=p()}return function(t){return e.some((function(e){return e(t)}))}}();return")"===a&&(a=s.next()),u}if(n(a)){var r=[];do{r.push(a),a=s.next()}while(n(a));return function(e){return t(r,e)}}return null}function p(){for(var e=[],t=h();t;)e.push(t),t=h();return function(t){return e.every((function(e){return e(t)}))}}}},function(e,t){var u,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(u===setTimeout)return setTimeout(e,0);if((u===i||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:i}catch(e){u=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,c=[],l=!1,h=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):h=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++h<t;)a&&a[h].run();h=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function D(e,t){this.fun=e,this.array=t}function d(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)t[u-1]=arguments[u];c.push(new D(e,t)),1!==c.length||l||s(f)},D.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,u){Object.defineProperty(t,"__esModule",{value:!0});var n=u(9),r=u(2),i=u(10);t.parseRawGrammar=function(e,t){return void 0===t&&(t=null),null!==t&&/\.json$/.test(t)?function(e,t){return r.DebugFlags.InDebugMode?i.parse(e,t,!0):JSON.parse(e)}(e,t):function(e,t){return r.DebugFlags.InDebugMode?n.parseWithLocation(e,t,"$vscodeTextmateLocation"):n.parse(e)}(e,t)}},function(e,t,u){function n(e,t,u){var n=e.length,r=0,i=1,o=0;function s(t){if(null===u)r+=t;else for(;t>0;)10===e.charCodeAt(r)?(r++,i++,o=0):(r++,o++),t--}function a(e){null===u?r=e:s(e-r)}function c(){for(;r<n;){var t=e.charCodeAt(r);if(32!==t&&9!==t&&13!==t&&10!==t)break;s(1)}}function l(t){return e.substr(r,t.length)===t&&(s(t.length),!0)}function h(t){var u=e.indexOf(t,r);a(-1!==u?u+t.length:n)}function p(t){var u=e.indexOf(t,r);if(-1!==u){var i=e.substring(r,u);return a(u+t.length),i}return i=e.substr(r),a(n),i}n>0&&65279===e.charCodeAt(0)&&(r=1);var f=0,D=null,d=[],g=[],m=null;function C(e,t){d.push(f),g.push(D),f=e,D=t}function A(){if(0===d.length)return F("illegal state stack");f=d.pop(),D=g.pop()}function F(t){throw new Error("Near offset "+r+": "+t+" ~~~"+e.substr(r,50)+"~~~")}var y,v,E,_=function(){if(null===m)return F("missing <key>");var e={};null!==u&&(e[u]={filename:t,line:i,char:o}),D[m]=e,m=null,C(1,e)},b=function(){if(null===m)return F("missing <key>");var e=[];D[m]=e,m=null,C(2,e)},B=function(){var e={};null!==u&&(e[u]={filename:t,line:i,char:o}),D.push(e),C(1,e)},w=function(){var e=[];D.push(e),C(2,e)};function x(){if(1!==f)return F("unexpected </dict>");A()}function S(){return 1===f||2!==f?F("unexpected </array>"):void A()}function k(e){if(1===f){if(null===m)return F("missing <key>");D[m]=e,m=null}else 2===f?D.push(e):D=e}function N(e){if(isNaN(e))return F("cannot parse float");if(1===f){if(null===m)return F("missing <key>");D[m]=e,m=null}else 2===f?D.push(e):D=e}function L(e){if(isNaN(e))return F("cannot parse integer");if(1===f){if(null===m)return F("missing <key>");D[m]=e,m=null}else 2===f?D.push(e):D=e}function j(e){if(1===f){if(null===m)return F("missing <key>");D[m]=e,m=null}else 2===f?D.push(e):D=e}function P(e){if(1===f){if(null===m)return F("missing <key>");D[m]=e,m=null}else 2===f?D.push(e):D=e}function R(e){if(1===f){if(null===m)return F("missing <key>");D[m]=e,m=null}else 2===f?D.push(e):D=e}function T(e){if(e.isClosed)return"";var t=p("</");return h(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}for(;r<n&&(c(),!(r>=n));){var I=e.charCodeAt(r);if(s(1),60!==I)return F("expected <");if(r>=n)return F("unexpected end of input");var M=e.charCodeAt(r);if(63!==M)if(33!==M){if(47===M){if(s(1),c(),l("plist")){h(">");continue}if(l("dict")){h(">"),x();continue}if(l("array")){h(">"),S();continue}return F("unexpected closed tag")}var O=(v=void 0,E=void 0,E=!1,47===(v=p(">")).charCodeAt(v.length-1)&&(E=!0,v=v.substring(0,v.length-1)),{name:v.trim(),isClosed:E});switch(O.name){case"dict":1===f?_():2===f?B():(D={},null!==u&&(D[u]={filename:t,line:i,char:o}),C(1,D)),O.isClosed&&x();continue;case"array":1===f?b():2===f?w():C(2,D=[]),O.isClosed&&S();continue;case"key":y=T(O),1!==f?F("unexpected <key>"):null!==m?F("too many <key>"):m=y;continue;case"string":k(T(O));continue;case"real":N(parseFloat(T(O)));continue;case"integer":L(parseInt(T(O),10));continue;case"date":j(new Date(T(O)));continue;case"data":P(T(O));continue;case"true":T(O),R(!0);continue;case"false":T(O),R(!1);continue}if(!/^plist/.test(O.name))return F("unexpected opened tag "+O.name)}else{if(s(1),l("--")){h("--\x3e");continue}h(">")}else s(1),h("?>")}return D}Object.defineProperty(t,"__esModule",{value:!0}),t.parseWithLocation=function(e,t,u){return n(e,t,u)},t.parse=function(e){return n(e,null,null)}},function(e,t,u){function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t,u){var s=new r(e),a=new i,c=0,l=null,h=[],p=[];function f(){h.push(c),p.push(l)}function D(){c=h.pop(),l=p.pop()}function d(e){n(s,e)}for(;o(s,a);){if(0===c){if(null!==l&&d("too many constructs in root"),3===a.type){l={},u&&(l.$vscodeTextmateLocation=a.toLocation(t)),f(),c=1;continue}if(2===a.type){l=[],f(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===a.type){D();continue}if(7===a.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===a.type){D();continue}if(1===a.type){var g=a.value;if(o(s,a)&&6===a.type||d("expected colon"),o(s,a)||d("expected value"),c=2,1===a.type){l[g]=a.value;continue}if(8===a.type){l[g]=null;continue}if(9===a.type){l[g]=!0;continue}if(10===a.type){l[g]=!1;continue}if(11===a.type){l[g]=parseFloat(a.value);continue}if(2===a.type){var m=[];l[g]=m,f(),c=4,l=m;continue}if(3===a.type){var C={};u&&(C.$vscodeTextmateLocation=a.toLocation(t)),l[g]=C,f(),c=1,l=C;continue}}d("unexpected token in dict")}if(5===c){if(4===a.type){D();continue}if(7===a.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===a.type){D();continue}if(c=5,1===a.type){l.push(a.value);continue}if(8===a.type){l.push(null);continue}if(9===a.type){l.push(!0);continue}if(10===a.type){l.push(!1);continue}if(11===a.type){l.push(parseFloat(a.value));continue}if(2===a.type){m=[],l.push(m),f(),c=4,l=m;continue}if(3===a.type){C={},u&&(C.$vscodeTextmateLocation=a.toLocation(t)),l.push(C),f(),c=1,l=C;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),l};var r=function(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0},i=function(){function e(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}return e.prototype.toLocation=function(e){return{filename:e,line:this.line,char:this.char}},e}();function o(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;for(var u,r=e.source,i=e.pos,o=e.len,s=e.line,a=e.char;;){if(i>=o)return!1;if(32!==(u=r.charCodeAt(i))&&9!==u&&13!==u){if(10!==u)break;i++,s++,a=0}else i++,a++}if(t.offset=i,t.line=s,t.char=a,34===u){for(t.type=1,i++,a++;;){if(i>=o)return!1;if(u=r.charCodeAt(i),i++,a++,92!==u){if(34===u)break}else i++,a++}t.value=r.substring(t.offset+1,i-1).replace(/\\u([0-9A-Fa-f]{4})/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/\\(.)/g,(function(t,u){switch(u){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===u)t.type=2,i++,a++;else if(123===u)t.type=3,i++,a++;else if(93===u)t.type=4,i++,a++;else if(125===u)t.type=5,i++,a++;else if(58===u)t.type=6,i++,a++;else if(44===u)t.type=7,i++,a++;else if(110===u){if(t.type=8,i++,a++,117!==(u=r.charCodeAt(i)))return!1;if(i++,a++,108!==(u=r.charCodeAt(i)))return!1;if(i++,a++,108!==(u=r.charCodeAt(i)))return!1;i++,a++}else if(116===u){if(t.type=9,i++,a++,114!==(u=r.charCodeAt(i)))return!1;if(i++,a++,117!==(u=r.charCodeAt(i)))return!1;if(i++,a++,101!==(u=r.charCodeAt(i)))return!1;i++,a++}else if(102===u){if(t.type=10,i++,a++,97!==(u=r.charCodeAt(i)))return!1;if(i++,a++,108!==(u=r.charCodeAt(i)))return!1;if(i++,a++,115!==(u=r.charCodeAt(i)))return!1;if(i++,a++,101!==(u=r.charCodeAt(i)))return!1;i++,a++}else for(t.type=11;;){if(i>=o)return!1;if(!(46===(u=r.charCodeAt(i))||u>=48&&u<=57||101===u||69===u||45===u||43===u))break;i++,a++}return t.len=i-t.offset,null===t.value&&(t.value=r.substr(t.offset,t.len)),e.pos=i,e.line=s,e.char=a,!0}},function(e,t,u){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,u,n,r,i){this.scope=e,this.parentScopes=t,this.index=u,this.fontStyle=n,this.foreground=r,this.background=i};function r(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function i(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];for(var t=e.settings,u=[],i=0,o=0,s=t.length;o<s;o++){var a=t[o];if(a.settings){var c=void 0;c="string"==typeof a.scope?a.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(","):Array.isArray(a.scope)?a.scope:[""];var l=-1;if("string"==typeof a.settings.fontStyle){l=0;for(var h=0,p=(d=a.settings.fontStyle.split(" ")).length;h<p;h++)switch(d[h]){case"italic":l|=1;break;case"bold":l|=2;break;case"underline":l|=4}}var f=null;"string"==typeof a.settings.foreground&&r(a.settings.foreground)&&(f=a.settings.foreground);var D=null;for("string"==typeof a.settings.background&&r(a.settings.background)&&(D=a.settings.background),h=0,p=c.length;h<p;h++){var d,g=(d=c[h].trim().split(" "))[d.length-1],m=null;d.length>1&&(m=d.slice(0,d.length-1)).reverse(),u[i++]=new n(g,m,o,l,f,D)}}}return u}function o(e,t){e.sort((function(e,t){var u=c(e.scope,t.scope);return 0!==u||0!==(u=l(e.parentScopes,t.parentScopes))?u:e.index-t.index}));for(var u=0,n="#000000",r="#ffffff";e.length>=1&&""===e[0].scope;){var i=e.shift();-1!==i.fontStyle&&(u=i.fontStyle),null!==i.foreground&&(n=i.foreground),null!==i.background&&(r=i.background)}for(var o=new s(t),f=new h(0,null,u,o.getId(n),o.getId(r)),D=new p(new h(0,null,-1,0,0),[]),d=0,g=e.length;d<g;d++){var m=e[d];D.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new a(o,f,D)}t.ParsedThemeRule=n,t.parseTheme=i;var s=function(){function e(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(var t=0,u=e.length;t<u;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}return e.prototype.getId=function(e){if(null===e)return 0;e=e.toUpperCase();var t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error("Missing color in color map - "+e);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}();t.ColorMap=s;var a=function(){function e(e,t,u){this._colorMap=e,this._root=u,this._defaults=t,this._cache={}}return e.createFromRawTheme=function(e,t){return this.createFromParsedTheme(i(e),t)},e.createFromParsedTheme=function(e,t){return o(e,t)},e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype.getDefaults=function(){return this._defaults},e.prototype.match=function(e){return this._cache.hasOwnProperty(e)||(this._cache[e]=this._root.match(e)),this._cache[e]},e}();function c(e,t){return e<t?-1:e>t?1:0}function l(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;var u=e.length,n=t.length;if(u===n){for(var r=0;r<u;r++){var i=c(e[r],t[r]);if(0!==i)return i}return 0}return u-n}t.Theme=a,t.strcmp=c,t.strArrCmp=l;var h=function(){function e(e,t,u,n,r){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=u,this.foreground=n,this.background=r}return e.prototype.clone=function(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)},e.cloneArr=function(e){for(var t=[],u=0,n=e.length;u<n;u++)t[u]=e[u].clone();return t},e.prototype.acceptOverwrite=function(e,t,u,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==u&&(this.foreground=u),0!==n&&(this.background=n)},e}();t.ThemeTrieElementRule=h;var p=function(){function e(e,t,u){void 0===t&&(t=[]),void 0===u&&(u={}),this._mainRule=e,this._rulesWithParentScopes=t,this._children=u}return e._sortBySpecificity=function(e){return 1===e.length||e.sort(this._cmpBySpecificity),e},e._cmpBySpecificity=function(e,t){if(e.scopeDepth===t.scopeDepth){var u=e.parentScopes,n=t.parentScopes,r=null===u?0:u.length,i=null===n?0:n.length;if(r===i)for(var o=0;o<r;o++){var s=u[o].length,a=n[o].length;if(s!==a)return a-s}return i-r}return t.scopeDepth-e.scopeDepth},e.prototype.match=function(t){if(""===t)return e._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));var u,n,r=t.indexOf(".");return-1===r?(u=t,n=""):(u=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(u)?this._children[u].match(n):e._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))},e.prototype.insert=function(t,u,n,r,i,o){if(""!==u){var s,a,c,l=u.indexOf(".");-1===l?(s=u,a=""):(s=u.substring(0,l),a=u.substring(l+1)),this._children.hasOwnProperty(s)?c=this._children[s]:(c=new e(this._mainRule.clone(),h.cloneArr(this._rulesWithParentScopes)),this._children[s]=c),c.insert(t+1,a,n,r,i,o)}else this._doInsertHere(t,n,r,i,o)},e.prototype._doInsertHere=function(e,t,u,n,r){if(null!==t){for(var i=0,o=this._rulesWithParentScopes.length;i<o;i++){var s=this._rulesWithParentScopes[i];if(0===l(s.parentScopes,t))return void s.acceptOverwrite(e,u,n,r)}-1===u&&(u=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new h(e,t,u,n,r))}else this._mainRule.acceptOverwrite(e,u,n,r)},e}();t.ThemeTrieElement=p}])}));class ze extends qe.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={}}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await ke(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=Ne(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammer(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=await this.loadGrammar(e.scopeName);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const t of e)this._resolver.addLanguage(t);for(const t of e)await this.loadLanguage(t)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}}function Ve(e){return"string"==typeof e?t.find((t=>{var u;return t.id===e||(null===(u=t.aliases)||void 0===u?void 0:u.includes(e))})):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["dark-plus","github-dark","github-light","light-plus","material-darker","material-default","material-lighter","material-ocean","material-palenight","min-dark","min-light","monokai","nord","slack-dark","slack-ochin","solarized-dark","solarized-light"],e.getHighlighter=async function(e){var u,n;const{_languages:r,_themes:i}=function(e){var u;let n=t,r=e.themes||[];return(null===(u=e.langs)||void 0===u?void 0:u.length)&&(n=e.langs.map(Ve)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r}}(e),o=new Te(async function(){if(!we){let e;if(_e)e=Ae(Be||xe("dist/onigasm.wasm"));else{const t=require("path").join(require.resolve("onigasm"),"../onigasm.wasm"),u=require("fs").readFileSync(t).buffer;e=Ae(u)}we=e.then((()=>({createOnigScanner:e=>new Fe(e),createOnigString:e=>new ye(e)})))}return we}(),"onigasm"),s=new ze(o);(null===(u=e.paths)||void 0===u?void 0:u.themes)&&(s.themesPath=e.paths.themes),(null===(n=e.paths)||void 0===n?void 0:n.languages)&&(o.languagesPath=e.paths.languages);const a=(await s.loadThemes(i))[0];let c;function l(e){const t=e?s.getTheme(e):a;if(!t)throw Error(`No theme registration for ${e}`);c!==t&&(s.setTheme(t),c=t);return{_theme:t,_colorMap:s.getColorMap()}}function h(e,t="text",u,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[[{content:e}]];const{_grammer:r}=function(e){const t=s.getGrammer(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammer:t}}(t),{_theme:i,_colorMap:o}=l(u);return function(e,t,u,n,r){let i=u.split(/\r\n|\r|\n/),o=null,s=[],a=[];for(let u=0,c=i.length;u<c;u++){let c,l,h,p=i[u];if(""===p){s=[],a.push([]);continue}r.includeExplanation&&(c=n.tokenizeLine(p,o),l=c.tokens,h=0);let f=n.tokenizeLine2(p,o),D=f.tokens.length/2;for(let u=0;u<D;u++){let n=f.tokens[2*u],i=u+1<D?f.tokens[2*u+2]:p.length;if(n===i)continue;let o=f.tokens[2*u+1],a=t[Ie.getForeground(o)],c=Ie.getFontStyle(o),d=[];if(r.includeExplanation){let t=0;for(;n+t<i;){let u=l[h],n=p.substring(u.startIndex,u.endIndex);t+=n.length,d.push({content:n,scopes:Me(e,u.scopes)}),h++}}s.push({content:p.substring(n,i),color:a,fontStyle:c,explanation:d})}a.push(s),s=[],o=f.ruleStack}return a}(i,o,e,r,n)}return await s.loadLanguages(r),{codeToThemedTokens:h,codeToHtml:function(e,t="text",u){const n=h(e,t,u,{includeExplanation:!1}),{_theme:r}=l(u);return We(n,{fg:r.fg,bg:r.bg})},getTheme:e=>l(e)._theme,loadTheme:async function(e){await s.loadTheme(e)},loadLanguage:async function(e){const t=Ve(e);o.addLanguage(t),await s.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=l(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=l(e);return t.fg},getLoadedThemes:function(){return s.getLoadedThemes()},getLoadedLanguages:function(){return s.getLoadedLanguages()}}},e.loadTheme=ke,e.renderToHtml=We,e.setCDN=function(e){be=e},e.setOnigasmWASM=function(e){Be=e},Object.defineProperty(e,"__esModule",{value:!0})}(this.shiki=this.shiki||{});