yanki 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var L=Object.defineProperty;var f=(e,t)=>L(e,"name",{value:t,configurable:!0});import{w as h,v as M,x as S,n as z,m as D,l as H,b as j,c as W,f as q,s as B,i as G}from"../sync-files-
|
|
2
|
+
var L=Object.defineProperty;var f=(e,t)=>L(e,"name",{value:t,configurable:!0});import{w as h,v as M,x as S,n as z,m as D,l as H,b as j,c as W,f as q,s as B,i as G}from"../sync-files-CPK7aXvm.js";import s from"chalk";import{globby as $}from"globby";import V from"node:fs/promises";import K from"node:path";import Q from"node:os";import X from"yargs";import{hideBin as Z}from"yargs/helpers";import"process";import"rehype-parse";import"entities/lib/decode.js";import"entities/lib/escape.js";import"node:crypto";var _="0.12.1";const E=process?.versions?.node!==void 0,c={verbose:!1,log(...e){if(!this.verbose)return;const t=s.gray("[Log]");E?console.warn(t,...e):console.log(t,...e)},logPrefixed(e,...t){this.info(s.blue(`[${e}]`),...t)},info(...e){if(!this.verbose)return;const t=s.green("[Info]");E?console.warn(t,...e):console.info(t,...e)},infoPrefixed(e,...t){this.info(s.blue(`[${e}]`),...t)},warn(...e){console.warn(s.yellow("[Warning]"),...e)},warnPrefixed(e,...t){this.warn(s.blue(`[${e}]`),...t)},error(...e){console.error(s.red("[Error]"),...e)},errorPrefixed(e,...t){this.error(s.blue(`[${e}]`),...t)}},y={"anki-auto-launch":{alias:"l",default:!1,describe:"Attempt to open the Anki desktop app if it's not already running. (Experimental, macOS only.)",type:"boolean"}},C={"anki-web":{alias:"w",default:!0,describe:'Automatically sync any changes to AnkiWeb after Yanki has finished syncing locally. If false, only local Anki data is updated and you must manually invoke a sync to AnkiWeb. This is the equivalent of pushing the "sync" button in the Anki app.',type:"boolean"}},w={"anki-connect":{default:"http://127.0.0.1:8765",describe:"Host and port of the Anki-Connect server. The default is usually fine. See the Anki-Connect documentation for more information.",type:"string"}},O={verbose:{default:!1,describe:"Enable verbose logging.",type:"boolean"}};function g(e){return{json:{default:!1,describe:e,type:"boolean"}}}f(g,"jsonOption");const R={"dry-run":{alias:"d",default:!1,describe:"Run without making any changes to the Anki database. See a report of what would have been done.",type:"boolean"}};function x(e){return{namespace:{alias:"n",default:h.namespace,describe:e,type:"string"}}}f(x,"namespaceOption");function k(e){const t=M(e);if(t===void 0)throw new Error(`Invalid AnkiConnect URL: "${e}"`);return t}f(k,"urlToHostAndPortValidated");const F=Q.homedir();function ee(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return F?e.replace(/^~(?=$|\/|\\)/,F):e}f(ee,"untildify");const b=f(e=>{throw e instanceof Error?(e.cause?.code==="ECONNREFUSED"&&(c.error("Failed to connect to Anki. Make sure Anki is running and AnkiConnect is installed."),process.exitCode=1,process.exit()),e):new Error("Unknown error")},"ankiNotRunningErrorHandler"),T=X(Z(process.argv));await T.scriptName("yanki").usage("$0 [command]","Run a Yanki command. Defaults to `sync` if a command is not provided.").command(["$0 <directory> [options]","sync <directory> [options]"],"Perform a one-way synchronization from a local directory of Markdown files to the Anki database. Any Markdown files in subdirectories are included as well.",e=>e.positional("directory",{demandOption:!0,describe:"The path to the local directory of Markdown files to sync.",type:"string"}).option(R).option(x("Advanced option for managing multiple Yanki synchronization groups. Case insensitive. See the readme for more information.")).option(w).option(y).option(C).option("manage-filenames",{alias:"m",choices:["off","prompt","response"],default:h.manageFilenames,describe:'Rename local note files to match their content. Useful if you want to feel have semantically reasonable note file names without managing them by hand. The `"prompt"` option will attempt to create the filename based on the "front" of the card, while `"response"` will prioritize the "back", "Cloze", or "type in the answer" portions of the card. Truncation, sanitization, and deduplication are taken care of.',type:"string"}).option("max-filename-length",{default:void 0,defaultDescription:String(h.maxFilenameLength),describe:"If `manage-filenames` is enabled, this option specifies the maximum length of the filename in characters.",type:"number"}).option("sync-media",{alias:"s",choices:["off","all","local","remote"],default:h.syncMediaAssets,describe:"Sync image, video, and audio assets to Anki's media storage system. Clean up is managed automatically. The `all` argument will save both local and remote assets to Anki, while `local` will only save local assets, `remote` will only save remote assets, and `off` will not save any assets.",type:"string"}).option(g("Output the sync report as JSON.")).option(O),async({ankiAutoLaunch:e,ankiConnect:t,ankiWeb:a,directory:o,dryRun:i,json:r,manageFilenames:n,maxFilenameLength:d,namespace:u,recursive:l=!0,syncMedia:m,verbose:p})=>{c.verbose=p;const v=S(ee(o)),Y=l?`${v}/**/*.md`:`${v}/*.md`,P=(await $(Y,{absolute:!0})).map(A=>S(A)),U=(await $(`${v}/**/*`,{absolute:!0})).map(A=>S(A));if(P.length===0){c.error(`No Markdown files found in "${o}".`),process.exitCode=1;return}n==="off"&&d!==void 0&&c.warn("Ignoring `max-filename-length` option because `manage-filenames` is not enabled.");const{host:I,port:J}=k(t),N=await z(P,{allFilePaths:U,ankiConnectOptions:{autoLaunch:e,host:I,port:J},ankiWeb:a,dryRun:i,manageFilenames:n,maxFilenameLength:d,namespace:u,syncMediaAssets:m}).catch(b);r?(process.stdout.write(JSON.stringify(N,void 0,2)),process.stdout.write(`
|
|
3
3
|
`)):(process.stderr.write(D(N,p)),process.stderr.write(`
|
|
4
4
|
`))}).command("list [options]","Utility command to list Yanki-created notes in the Anki database.",e=>e.option(x("Advanced option to list notes in a specific namespace. Case insensitive. Notes from the default internal namespace are listed by default. Pass `'*'` to list all Yanki-created notes in the Anki database.")).options(w).options(y).option(g("Output the list of notes as JSON to stdout.")),async({ankiAutoLaunch:e,ankiConnect:t,json:a,namespace:o})=>{const{host:i,port:r}=k(t),n=await H({ankiConnectOptions:{autoLaunch:e,host:i,port:r},namespace:o}).catch(b);a?(process.stdout.write(JSON.stringify(n,void 0,2)),process.stdout.write(`
|
|
5
5
|
`)):(process.stdout.write(j(n)),process.stdout.write(`
|
package/dist/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,d as m,q as p,g as f,a as u,e as d,h as y,k as S,o as O,f as c,b as F,i as N,m as R,t as g,j as k,u as h,l as w,r as A,s as C,n as G,p as L,v as M}from"../sync-files-
|
|
1
|
+
import{c as r,d as m,q as p,g as f,a as u,e as d,h as y,k as S,o as O,f as c,b as F,i as N,m as R,t as g,j as k,u as h,l as w,r as A,s as C,n as G,p as L,v as M}from"../sync-files-CPK7aXvm.js";import"process";import"rehype-parse";import"entities/lib/decode.js";import"entities/lib/escape.js";import"node:path";import"node:crypto";export{r as cleanNotes,m as defaultCleanOptions,p as defaultGetNoteFromMarkdownOptions,f as defaultGetStyleOptions,u as defaultListOptions,d as defaultRenameFilesOptions,y as defaultSetStyleOptions,S as defaultSyncFilesOptions,O as defaultSyncNotesOptions,c as formatCleanResult,F as formatListResult,N as formatSetStyleResult,R as formatSyncFilesResult,g as getNoteFromMarkdown,k as getStyle,h as hostAndPortToUrl,w as listNotes,A as renameFiles,C as setStyle,G as syncFiles,L as syncNotes,M as urlToHostAndPort};
|
|
@@ -729,7 +729,7 @@ var Km=Object.defineProperty;var s=(e,t)=>Km(e,"name",{value:t,configurable:!0})
|
|
|
729
729
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
730
730
|
* See the License for the specific language governing permissions and
|
|
731
731
|
* limitations under the License.
|
|
732
|
-
*/var Fl=Ll,XE=Qg,Bl=VE,Ul=QE,Zn;XE?Zn=Ul:Zn=Bl,Fl(Zn,"posix",Bl),Fl(Zn,"win32",Ul);var JE=Zn,Hl=Qr(JE);function ZE(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}s(ZE,"slash");function Zr(e){return Hl.posix(e)||Hl.win32(e)}s(Zr,"isAbsolute");const eT=/^\\\\\?\\.+/;function tt(e){if(eT.test(e))return console.warn(`Unsupported extended length path detected: ${e}`),e;const t=ZE(e),n=ee.normalize(t);return t.startsWith("./")?`./${n}`:n}s(tt,"normalize$3");function $l(e,t){const{basePath:n,compoundBase:r=!1,cwd:i}=t;return n!==void 0&&(Zr(n)||console.warn(`Base path "${n}" is not absolute`),i.startsWith(n)||console.warn(`CWD "${i}" does not start with base path "${n}"`)),Zr(i)||console.warn(`CWD "${i}" is not absolute`),Zr(e)?n===void 0||/^[A-Za-z]:/.test(e)||!r&&e.startsWith(n)?e:ee.join(n,e):ee.join(i,e)}s($l,"resolveWithBasePath");function tT(e,t){const n=new RegExp(`^${t}`,"i");return e.replace(n,"")}s(tT,"stripBasePath");function ei(e){const t=ee.dirname(e),n=ee.basename(e),[r,i]=sp(n,/[#?^]/);return[ee.join(t,r),i]}s(ei,"getBaseAndQueryParts");function er(e){return ei(e)[0]}s(er,"getBase");function nT(e){return ei(e).at(1)??""}s(nT,"getQuery");function rT(e){return zl(e)!==""}s(rT,"hasExtension");function zl(e){return ee.extname(er(e))}s(zl,"getExtension");function ql(e,t){if(rT(e))return e;const[n,r]=ei(e);return`${n}.${t}${r??""}`}s(ql,"addExtensionIfMissing");function jl(e){try{return decodeURI(e)}catch(t){console.warn(`Error decoding URI text: "${e}"`,t);return}}s(jl,"safeDecodeURI");function tr(e){try{const t=new URL(e),n=/^[a-z]:/i,r=/^file:/i;return(r.test(t.protocol)||n.test(t.protocol))&&!r.test(e)?void 0:t}catch{return}}s(tr,"safeParseUrl");function Bt(e){return tr(e)!==void 0}s(Bt,"isUrl$1");function iT(e){const t=tr(e);return t?.protocol==="file:"?t.pathname:e}s(iT,"fileUrlToPath");function ti(e){const t=tr(e);if(t===void 0){const n=tt(e);return Zr(n)||n.startsWith("./")||n.startsWith("../")?"localFilePath":"localFileName"}return t.protocol==="file:"?"localFileUrl":t.protocol==="obsidian:"?"obsidianVaultUrl":t.protocol==="http:"||t.protocol==="https:"?"remoteHttpUrl":"unsupportedProtocolUrl"}s(ti,"getSrcType");function Yl(e,t){if(e===void 0)return;e instanceof Headers||(e=sT(e));const n=(e instanceof Headers?t.map(r=>e.get(r)):t.map(r=>e[r])).filter(r=>r!=null).join("");if(n!=="")return n}s(Yl,"getHeadersString");function sT(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}s(sT,"convertKeysToLowercase");async function aT(e,t){try{return(await t(e,{method:"HEAD"}))?.status===200}catch{return!1}}s(aT,"urlExists");async function Ds(e,t,n=hp){switch(n){case"metadata":{if(t===void 0)return Ds(e,t,"name");try{const r=await t(e,{method:"HEAD"}),i=Yl(r?.headers,["content-type"]);if(i===void 0)throw new Error("No content-type header found");return Lp(i)}catch{return Ds(e,t,"name")}}case"name":{let r;const i=tr(e);if(i===void 0){console.warn(`Could not parse URL: ${e}`);return}const a=i.pathname.split(".");return a.length>1?r=a.at(-1):r=i.search.split(".").at(-1),cl.includes(r??"")?r:void 0}}}s(Ds,"getFileExtensionFromUrl");async function xs(e,t,n=up){switch(n){case"content":return console.warn("`content` hash mode is not yet implemented for URLs"),xs(e,t,"metadata");case"metadata":try{const r=await t(e,{method:"HEAD"}),i=Yl(r?.headers,["etag","last-modified","content-length"]);if(i===void 0)throw new Error("No headers found");return Gr(i,16)}catch{return xs(e,t,"name")}case"name":return Gr(e,16)}}s(xs,"getUrlContentHash");function oT(e){const t=tr(e);return t===void 0?void 0:{host:`${t.protocol}//${t.hostname}`,port:Number.parseInt(t.port,10)}}s(oT,"urlToHostAndPort");function lT(e,t){return`${e}:${t}`}s(lT,"hostAndPortToUrl");async function cT(e,t){const n=Bt(e)?await Ds(e,t):ee.extname(e).slice(1);if(!(n===void 0||!cl.includes(n)))return n}s(cT,"getAnkiMediaFilenameExtension");async function uT(e,t,n){return Bt(e)?aT(e,n):yp(e,t)}s(uT,"mediaAssetExists");async function hT(e,t,n,r,i){if(!await uT(e,r,i))return;const o=gl(t),l=await fT(e,r,i),c=n===void 0?"":`.${n}`;let u;if(u=`${o}-${l}${c}`,u.length>sl)throw new Error(`Filename too long: ${u}`);return u}s(hT,"getSafeAnkiMediaFilename");async function fT(e,t,n){return Bt(e)?xs(e,n):ml(e,t)}s(fT,"getContentHash");const Tt=s(function(e){if(e==null)return gT;if(typeof e=="function")return ni(e);if(typeof e=="object")return Array.isArray(e)?dT(e):mT(e);if(typeof e=="string")return pT(e);throw new Error("Expected function, string, or object as test")},"convert");function dT(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Tt(e[n]);return ni(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}s(dT,"anyFactory$1");function mT(e){const t=e;return ni(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}s(mT,"propsFactory");function pT(e){return ni(t);function t(n){return n&&n.type===e}}s(pT,"typeFactory");function ni(e){return t;function t(n,r,i){return!!(ET(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}s(ni,"castFactory$1");function gT(){return!0}s(gT,"ok$1");function ET(e){return e!==null&&typeof e=="object"&&"type"in e}s(ET,"looksLikeANode");function kM(e){return e}s(kM,"color");const Gl=[],ze=!0,Be=!1,ri="skip";function Ps(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Tt(i),o=r?-1:1;l(e,void 0,[])();function l(c,u,f){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=Gl,g,E,T;if((!t||a(c,u,f[f.length-1]||void 0))&&(m=TT(n(c,f)),m[0]===Be))return m;if("children"in c&&c.children){const _=c;if(_.children&&m[0]!==ri)for(E=(r?_.children.length:-1)+o,T=f.concat(_);E>-1&&E<_.children.length;){const b=_.children[E];if(g=l(b,E,T)(),g[0]===Be)return g;E=typeof g[1]=="number"?g[1]:E+o}}return m}}s(l,"factory")}s(Ps,"visitParents");function TT(e){return Array.isArray(e)?e:typeof e=="number"?[ze,e]:e==null?Gl:[e]}s(TT,"toResult");function se(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Ps(e,a,l,i);function l(c,u){const f=u[u.length-1],h=f?f.children.indexOf(c):void 0;return o(c,h,f)}s(l,"overload")}s(se,"visit$1");const yT=s(function(){return function(e){let t=!1;se(e,(n,r,i)=>{if(i===void 0||r===void 0||n.type!=="element")return ze;n.tagName==="pre"&&n.children.length===1&&n.children[0].type==="element"&&n.children[0].tagName==="code"&&Array.isArray(n.children[0].properties.className)&&n.children[0].properties.className.includes("language-math")&&(t=!0,i.children.splice(r,1,n.children[0])),n.tagName==="code"&&Array.isArray(n.properties.className)&&n.properties.className.includes("language-math")&&(n.tagName="anki-mathjax",n.properties=n.properties.className.includes("math-display")||t?{block:"true"}:{},t=!1)})}},"plugin$4"),Vl=[{id:"abap",name:"ABAP",import:s(()=>import("./abap-DXFkqnOI.js"),"import")},{id:"actionscript-3",name:"ActionScript",import:s(()=>import("./actionscript-3-BigF1UXR.js"),"import")},{id:"ada",name:"Ada",import:s(()=>import("./ada-CowR2XfX.js"),"import")},{id:"angular-html",name:"Angular HTML",import:s(()=>import("./angular-html-DFAh1LEj.js").then(function(e){return e.f}),"import")},{id:"angular-ts",name:"Angular TypeScript",import:s(()=>import("./angular-ts-BVxS86PS.js"),"import")},{id:"apache",name:"Apache Conf",import:s(()=>import("./apache-rS0jd3Ly.js"),"import")},{id:"apex",name:"Apex",import:s(()=>import("./apex-Sfo2eW0G.js"),"import")},{id:"apl",name:"APL",import:s(()=>import("./apl-DPLNWaKG.js"),"import")},{id:"applescript",name:"AppleScript",import:s(()=>import("./applescript-BXKAgOFh.js"),"import")},{id:"ara",name:"Ara",import:s(()=>import("./ara-CG4fK2Nq.js"),"import")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:s(()=>import("./asciidoc-BLovOSPv.js"),"import")},{id:"asm",name:"Assembly",import:s(()=>import("./asm-PWN5J14X.js"),"import")},{id:"astro",name:"Astro",import:s(()=>import("./astro-sm0BqYJo.js"),"import")},{id:"awk",name:"AWK",import:s(()=>import("./awk-i0IPvypD.js"),"import")},{id:"ballerina",name:"Ballerina",import:s(()=>import("./ballerina-T9ysyp6P.js"),"import")},{id:"bat",name:"Batch File",aliases:["batch"],import:s(()=>import("./bat-BPiaQZfK.js"),"import")},{id:"beancount",name:"Beancount",import:s(()=>import("./beancount-Urb1RsFe.js"),"import")},{id:"berry",name:"Berry",aliases:["be"],import:s(()=>import("./berry-CxrokwfH.js"),"import")},{id:"bibtex",name:"BibTeX",import:s(()=>import("./bibtex-BaedD2tq.js"),"import")},{id:"bicep",name:"Bicep",import:s(()=>import("./bicep-Bym0hRiG.js"),"import")},{id:"blade",name:"Blade",import:s(()=>import("./blade-D3A5GssZ.js"),"import")},{id:"c",name:"C",import:s(()=>import("./c-RCJZWN-0.js"),"import")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:s(()=>import("./cadence-Bgpqy2XC.js"),"import")},{id:"clarity",name:"Clarity",import:s(()=>import("./clarity-DV9JwLIa.js"),"import")},{id:"clojure",name:"Clojure",aliases:["clj"],import:s(()=>import("./clojure-BF6G6X0H.js"),"import")},{id:"cmake",name:"CMake",import:s(()=>import("./cmake-DXZpi2gR.js"),"import")},{id:"cobol",name:"COBOL",import:s(()=>import("./cobol-Bi0pgIzz.js"),"import")},{id:"codeowners",name:"CODEOWNERS",import:s(()=>import("./codeowners-CGmujMTu.js"),"import")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:s(()=>import("./codeql-BOpLLL-w.js"),"import")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:s(()=>import("./coffee-Cp6Hkwsd.js"),"import")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:s(()=>import("./common-lisp-C3qUB5O8.js"),"import")},{id:"cpp",name:"C++",aliases:["c++"],import:s(()=>import("./cpp-CUhoJbwx.js"),"import")},{id:"crystal",name:"Crystal",import:s(()=>import("./crystal-DnbhN0Ng.js"),"import")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:s(()=>import("./csharp-Bdt_eLrj.js"),"import")},{id:"css",name:"CSS",import:s(()=>import("./css-CbYhyuC0.js"),"import")},{id:"csv",name:"CSV",import:s(()=>import("./csv-B2DkETJQ.js"),"import")},{id:"cue",name:"CUE",import:s(()=>import("./cue-C6Aznpr-.js"),"import")},{id:"cypher",name:"Cypher",aliases:["cql"],import:s(()=>import("./cypher-ByMv4Xf1.js"),"import")},{id:"d",name:"D",import:s(()=>import("./d-PifQWv0n.js"),"import")},{id:"dart",name:"Dart",import:s(()=>import("./dart-DZLoTQm4.js"),"import")},{id:"dax",name:"DAX",import:s(()=>import("./dax-DsfXcHUZ.js"),"import")},{id:"desktop",name:"Desktop",import:s(()=>import("./desktop-D71BffLY.js"),"import")},{id:"diff",name:"Diff",import:s(()=>import("./diff-DvyTQcux.js"),"import")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:s(()=>import("./docker-DNR26wTC.js"),"import")},{id:"dotenv",name:"dotEnv",import:s(()=>import("./dotenv-BgSQePf4.js"),"import")},{id:"dream-maker",name:"Dream Maker",import:s(()=>import("./dream-maker-Eh5U-gDp.js"),"import")},{id:"edge",name:"Edge",import:s(()=>import("./edge-Bs6MViUR.js"),"import")},{id:"elixir",name:"Elixir",import:s(()=>import("./elixir-Exce1dLy.js"),"import")},{id:"elm",name:"Elm",import:s(()=>import("./elm-D7CfdsEG.js"),"import")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:s(()=>import("./emacs-lisp-51pKhIDe.js"),"import")},{id:"erb",name:"ERB",import:s(()=>import("./erb-BiKJTpVc.js"),"import")},{id:"erlang",name:"Erlang",aliases:["erl"],import:s(()=>import("./erlang-DS9ZWoKD.js"),"import")},{id:"fennel",name:"Fennel",import:s(()=>import("./fennel-DuK7IM-L.js"),"import")},{id:"fish",name:"Fish",import:s(()=>import("./fish-DfeQjIbs.js"),"import")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:s(()=>import("./fluent-KPqz0Sb3.js"),"import")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:s(()=>import("./fortran-fixed-form-6v7-xzYY.js"),"import")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:s(()=>import("./fortran-free-form-D6pmzCqS.js"),"import")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:s(()=>import("./fsharp-y4j4y45-.js"),"import")},{id:"gdresource",name:"GDResource",import:s(()=>import("./gdresource-FATN5FtX.js"),"import")},{id:"gdscript",name:"GDScript",import:s(()=>import("./gdscript-cw46T5ID.js"),"import")},{id:"gdshader",name:"GDShader",import:s(()=>import("./gdshader-B_SUYfiV.js"),"import")},{id:"genie",name:"Genie",import:s(()=>import("./genie-DAfrLhwG.js"),"import")},{id:"gherkin",name:"Gherkin",import:s(()=>import("./gherkin-B0PjAhci.js"),"import")},{id:"git-commit",name:"Git Commit Message",import:s(()=>import("./git-commit-XY8bXq83.js"),"import")},{id:"git-rebase",name:"Git Rebase Message",import:s(()=>import("./git-rebase-BFV-2sWx.js"),"import")},{id:"gleam",name:"Gleam",import:s(()=>import("./gleam-Dd6f7Z5P.js"),"import")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:s(()=>import("./glimmer-js-I0TZ3_O1.js"),"import")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:s(()=>import("./glimmer-ts-CY38hlIb.js"),"import")},{id:"glsl",name:"GLSL",import:s(()=>import("./glsl-tOUOXML3.js"),"import")},{id:"gnuplot",name:"Gnuplot",import:s(()=>import("./gnuplot-nclm9rTJ.js"),"import")},{id:"go",name:"Go",import:s(()=>import("./go-DM4HHECw.js"),"import")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:s(()=>import("./graphql-DwwLrXH1.js"),"import")},{id:"groovy",name:"Groovy",import:s(()=>import("./groovy-wChcbJ1V.js"),"import")},{id:"hack",name:"Hack",import:s(()=>import("./hack-DmjQSZc3.js"),"import")},{id:"haml",name:"Ruby Haml",import:s(()=>import("./haml-CUc9j7k4.js"),"import")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:s(()=>import("./handlebars-1qhD0hZI.js"),"import")},{id:"haskell",name:"Haskell",aliases:["hs"],import:s(()=>import("./haskell-DOVD4hs_.js"),"import")},{id:"haxe",name:"Haxe",import:s(()=>import("./haxe-Dit6kIrv.js"),"import")},{id:"hcl",name:"HashiCorp HCL",import:s(()=>import("./hcl-CpAANOdC.js"),"import")},{id:"hjson",name:"Hjson",import:s(()=>import("./hjson-DZqG9GXz.js"),"import")},{id:"hlsl",name:"HLSL",import:s(()=>import("./hlsl-DmDrTTlz.js"),"import")},{id:"html",name:"HTML",import:s(()=>import("./html-NmvpQUfQ.js"),"import")},{id:"html-derivative",name:"HTML (Derivative)",import:s(()=>import("./html-derivative-QphQoco-.js"),"import")},{id:"http",name:"HTTP",import:s(()=>import("./http-BGHyW0yz.js"),"import")},{id:"hxml",name:"HXML",import:s(()=>import("./hxml-4EC8aR1F.js"),"import")},{id:"hy",name:"Hy",import:s(()=>import("./hy-y-6HuL9l.js"),"import")},{id:"imba",name:"Imba",import:s(()=>import("./imba-CyaA9484.js"),"import")},{id:"ini",name:"INI",aliases:["properties"],import:s(()=>import("./ini-DeVv6D4_.js"),"import")},{id:"java",name:"Java",import:s(()=>import("./java-ClXEvkw9.js"),"import")},{id:"javascript",name:"JavaScript",aliases:["js"],import:s(()=>import("./javascript-Dch3xQiY.js"),"import")},{id:"jinja",name:"Jinja",import:s(()=>import("./jinja-BrXMjE5a.js"),"import")},{id:"jison",name:"Jison",import:s(()=>import("./jison-DlEKeWyG.js"),"import")},{id:"json",name:"JSON",import:s(()=>import("./json-CupVZNk8.js"),"import")},{id:"json5",name:"JSON5",import:s(()=>import("./json5-Bh8mriwU.js"),"import")},{id:"jsonc",name:"JSON with Comments",import:s(()=>import("./jsonc-DYI1rfmx.js"),"import")},{id:"jsonl",name:"JSON Lines",import:s(()=>import("./jsonl-BUpeXbsf.js"),"import")},{id:"jsonnet",name:"Jsonnet",import:s(()=>import("./jsonnet-C9d3aiqh.js"),"import")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:s(()=>import("./jssm-Dble9ECP.js"),"import")},{id:"jsx",name:"JSX",import:s(()=>import("./jsx-CsyrCbsw.js"),"import")},{id:"julia",name:"Julia",aliases:["jl"],import:s(()=>import("./julia-Cb2KZaUl.js"),"import")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:s(()=>import("./kotlin-BspO9hSn.js"),"import")},{id:"kusto",name:"Kusto",aliases:["kql"],import:s(()=>import("./kusto-DGEpfOTx.js"),"import")},{id:"latex",name:"LaTeX",import:s(()=>import("./latex-DqQU8kbd.js"),"import")},{id:"lean",name:"Lean 4",aliases:["lean4"],import:s(()=>import("./lean-kIfwnVJd.js"),"import")},{id:"less",name:"Less",import:s(()=>import("./less-CX3ZWouj.js"),"import")},{id:"liquid",name:"Liquid",import:s(()=>import("./liquid-DHpvaAyy.js"),"import")},{id:"log",name:"Log file",import:s(()=>import("./log-Ksn5IXup.js"),"import")},{id:"logo",name:"Logo",import:s(()=>import("./logo-DdacRhvC.js"),"import")},{id:"lua",name:"Lua",import:s(()=>import("./lua-Cy9U1SwF.js"),"import")},{id:"luau",name:"Luau",import:s(()=>import("./luau-VQMr7AbF.js"),"import")},{id:"make",name:"Makefile",aliases:["makefile"],import:s(()=>import("./make-B9S9BZZh.js"),"import")},{id:"markdown",name:"Markdown",aliases:["md"],import:s(()=>import("./markdown-Bpum8voz.js"),"import")},{id:"marko",name:"Marko",import:s(()=>import("./marko-DYPSvNC1.js"),"import")},{id:"matlab",name:"MATLAB",import:s(()=>import("./matlab-Btshr8M_.js"),"import")},{id:"mdc",name:"MDC",import:s(()=>import("./mdc-DiX1CJaT.js"),"import")},{id:"mdx",name:"MDX",import:s(()=>import("./mdx-Br9pa-sp.js"),"import")},{id:"mermaid",name:"Mermaid",import:s(()=>import("./mermaid-Cb-F_BZP.js"),"import")},{id:"mojo",name:"Mojo",import:s(()=>import("./mojo--7WWnkdy.js"),"import")},{id:"move",name:"Move",import:s(()=>import("./move-COBxEbHI.js"),"import")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:s(()=>import("./narrat-B9CT-1u6.js"),"import")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:s(()=>import("./nextflow-DBxHOdLe.js"),"import")},{id:"nginx",name:"Nginx",import:s(()=>import("./nginx-C3DmzmOp.js"),"import")},{id:"nim",name:"Nim",import:s(()=>import("./nim-CexEzMMx.js"),"import")},{id:"nix",name:"Nix",import:s(()=>import("./nix-B7rNE5kf.js"),"import")},{id:"nushell",name:"nushell",aliases:["nu"],import:s(()=>import("./nushell-CrgTADc5.js"),"import")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:s(()=>import("./objective-c-DHmGyzbM.js"),"import")},{id:"objective-cpp",name:"Objective-C++",import:s(()=>import("./objective-cpp-BWKJ1FCf.js"),"import")},{id:"ocaml",name:"OCaml",import:s(()=>import("./ocaml-RqY_Nz63.js"),"import")},{id:"pascal",name:"Pascal",import:s(()=>import("./pascal-BvCdDh2R.js"),"import")},{id:"perl",name:"Perl",import:s(()=>import("./perl-PZnu_VA7.js"),"import")},{id:"php",name:"PHP",import:s(()=>import("./php-m9Z3qs_k.js"),"import")},{id:"plsql",name:"PL/SQL",import:s(()=>import("./plsql-BbJj1K1w.js"),"import")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:s(()=>import("./po-HrnDn_2Q.js"),"import")},{id:"postcss",name:"PostCSS",import:s(()=>import("./postcss-DXT9h7v2.js"),"import")},{id:"powerquery",name:"PowerQuery",import:s(()=>import("./powerquery-CApMHEaB.js"),"import")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:s(()=>import("./powershell-9ZOzOPqN.js"),"import")},{id:"prisma",name:"Prisma",import:s(()=>import("./prisma-BBJYjQ0k.js"),"import")},{id:"prolog",name:"Prolog",import:s(()=>import("./prolog-BH_RS3WO.js"),"import")},{id:"proto",name:"Protocol Buffer 3",import:s(()=>import("./proto-DOtRmeXT.js"),"import")},{id:"pug",name:"Pug",aliases:["jade"],import:s(()=>import("./pug-jyQP1XtO.js"),"import")},{id:"puppet",name:"Puppet",import:s(()=>import("./puppet-37ic6j3l.js"),"import")},{id:"purescript",name:"PureScript",import:s(()=>import("./purescript-Bm5O5oLm.js"),"import")},{id:"python",name:"Python",aliases:["py"],import:s(()=>import("./python-DwuVtWc2.js"),"import")},{id:"qml",name:"QML",import:s(()=>import("./qml-DM3j-f55.js"),"import")},{id:"qmldir",name:"QML Directory",import:s(()=>import("./qmldir-MS3qTAOR.js"),"import")},{id:"qss",name:"Qt Style Sheets",import:s(()=>import("./qss-FJDVp-XM.js"),"import")},{id:"r",name:"R",import:s(()=>import("./r-BXfENWL6.js"),"import")},{id:"racket",name:"Racket",import:s(()=>import("./racket-BbLA0SU8.js"),"import")},{id:"raku",name:"Raku",aliases:["perl6"],import:s(()=>import("./raku-D384ylkT.js"),"import")},{id:"razor",name:"ASP.NET Razor",import:s(()=>import("./razor-C6l8l7uE.js"),"import")},{id:"reg",name:"Windows Registry Script",import:s(()=>import("./reg-CrhH3_Og.js"),"import")},{id:"regexp",name:"RegExp",aliases:["regex"],import:s(()=>import("./regexp-C_ZPRiAj.js"),"import")},{id:"rel",name:"Rel",import:s(()=>import("./rel-BuawaRXJ.js"),"import")},{id:"riscv",name:"RISC-V",import:s(()=>import("./riscv-D-aEEwJo.js"),"import")},{id:"rst",name:"reStructuredText",import:s(()=>import("./rst-T7EQb_Bl.js"),"import")},{id:"ruby",name:"Ruby",aliases:["rb"],import:s(()=>import("./ruby-Dl3UAuky.js"),"import")},{id:"rust",name:"Rust",aliases:["rs"],import:s(()=>import("./rust-DGxQkqYo.js"),"import")},{id:"sas",name:"SAS",import:s(()=>import("./sas-BhBoFsCt.js"),"import")},{id:"sass",name:"Sass",import:s(()=>import("./sass-CMDmr8et.js"),"import")},{id:"scala",name:"Scala",import:s(()=>import("./scala-Cd0cRMx9.js"),"import")},{id:"scheme",name:"Scheme",import:s(()=>import("./scheme-BTeww-4z.js"),"import")},{id:"scss",name:"SCSS",import:s(()=>import("./scss-DoQ2ojfq.js"),"import")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:s(()=>import("./shaderlab-Bb-6Dmi7.js"),"import")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:s(()=>import("./shellscript-DOv5BRyJ.js"),"import")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:s(()=>import("./shellsession-FAdI92wp.js"),"import")},{id:"smalltalk",name:"Smalltalk",import:s(()=>import("./smalltalk-DSsji4Hu.js"),"import")},{id:"solidity",name:"Solidity",import:s(()=>import("./solidity-CThH5sBG.js"),"import")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:s(()=>import("./soy-rVg8SA9F.js"),"import")},{id:"sparql",name:"SPARQL",import:s(()=>import("./sparql-Cmp61EUJ.js"),"import")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:s(()=>import("./splunk-6XBPEST2.js"),"import")},{id:"sql",name:"SQL",import:s(()=>import("./sql-DxR2xW-a.js"),"import")},{id:"ssh-config",name:"SSH Config",import:s(()=>import("./ssh-config-BH1M7C1g.js"),"import")},{id:"stata",name:"Stata",import:s(()=>import("./stata-DGeqZgIM.js"),"import")},{id:"stylus",name:"Stylus",aliases:["styl"],import:s(()=>import("./stylus-DSrLtGYv.js"),"import")},{id:"svelte",name:"Svelte",import:s(()=>import("./svelte-KN4GH9Aw.js"),"import")},{id:"swift",name:"Swift",import:s(()=>import("./swift-C_vL8trm.js"),"import")},{id:"system-verilog",name:"SystemVerilog",import:s(()=>import("./system-verilog-BscxmKrE.js"),"import")},{id:"systemd",name:"Systemd Units",import:s(()=>import("./systemd-IQPSIA3x.js"),"import")},{id:"tasl",name:"Tasl",import:s(()=>import("./tasl-BxwAa5i0.js"),"import")},{id:"tcl",name:"Tcl",import:s(()=>import("./tcl-C_8Fx7bH.js"),"import")},{id:"templ",name:"Templ",import:s(()=>import("./templ-DHsMVtNJ.js"),"import")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:s(()=>import("./terraform-DBeuZS66.js"),"import")},{id:"tex",name:"TeX",import:s(()=>import("./tex-BqVuN0dX.js"),"import")},{id:"toml",name:"TOML",import:s(()=>import("./toml-BT9ZzGyQ.js"),"import")},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:s(()=>import("./ts-tags-CrowQU1l.js"),"import")},{id:"tsv",name:"TSV",import:s(()=>import("./tsv-DnLUQrgA.js"),"import")},{id:"tsx",name:"TSX",import:s(()=>import("./tsx-BlxWTfDV.js"),"import")},{id:"turtle",name:"Turtle",import:s(()=>import("./turtle-C15OxdQ5.js"),"import")},{id:"twig",name:"Twig",import:s(()=>import("./twig-3vSE8NKn.js"),"import")},{id:"typescript",name:"TypeScript",aliases:["ts"],import:s(()=>import("./typescript-DC8MraHL.js"),"import")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:s(()=>import("./typespec-D47volHK.js"),"import")},{id:"typst",name:"Typst",aliases:["typ"],import:s(()=>import("./typst-I4qd5QHW.js"),"import")},{id:"v",name:"V",import:s(()=>import("./v-C2TBxDwV.js"),"import")},{id:"vala",name:"Vala",import:s(()=>import("./vala-CO5hpdkB.js"),"import")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:s(()=>import("./vb-beD-FUib.js"),"import")},{id:"verilog",name:"Verilog",import:s(()=>import("./verilog-DVfdqzEq.js"),"import")},{id:"vhdl",name:"VHDL",import:s(()=>import("./vhdl-QZ3jNtnE.js"),"import")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:s(()=>import("./viml-BLluXI4E.js"),"import")},{id:"vue",name:"Vue",import:s(()=>import("./vue-Bz3QV-3Z.js"),"import")},{id:"vue-html",name:"Vue HTML",import:s(()=>import("./vue-html-BhJI9suT.js"),"import")},{id:"vyper",name:"Vyper",aliases:["vy"],import:s(()=>import("./vyper-CBWrHyXe.js"),"import")},{id:"wasm",name:"WebAssembly",import:s(()=>import("./wasm-Cicx_DS6.js"),"import")},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:s(()=>import("./wenyan-Cavfe_d0.js"),"import")},{id:"wgsl",name:"WGSL",import:s(()=>import("./wgsl-BZz1Hhek.js"),"import")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:s(()=>import("./wikitext-CEQyRnAI.js"),"import")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:s(()=>import("./wolfram-BICIrM8O.js"),"import")},{id:"xml",name:"XML",import:s(()=>import("./xml-sp2Egr0Z.js"),"import")},{id:"xsl",name:"XSL",import:s(()=>import("./xsl-BQYvujlj.js"),"import")},{id:"yaml",name:"YAML",aliases:["yml"],import:s(()=>import("./yaml-DK4oFTHQ.js"),"import")},{id:"zenscript",name:"ZenScript",import:s(()=>import("./zenscript-B1nm99XP.js"),"import")},{id:"zig",name:"Zig",import:s(()=>import("./zig-yX2IItqj.js"),"import")}],bT=Object.fromEntries(Vl.map(e=>[e.id,e.import])),_T=Object.fromEntries(Vl.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Wl={...bT,..._T},AT=s(async e=>import("./wasm-2oxoyaYy.js").then(t=>t.default(e)),"getWasmInlined"),kT=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:s(()=>import("./andromeeda-YxQm0tCS.js"),"import")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:s(()=>import("./aurora-x-BaWyeHV_.js"),"import")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:s(()=>import("./ayu-dark-Bn5gmY5k.js"),"import")},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:s(()=>import("./catppuccin-frappe-D7opz6Hv.js"),"import")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:s(()=>import("./catppuccin-latte-DQ-rpzxz.js"),"import")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:s(()=>import("./catppuccin-macchiato-CPw9RxLe.js"),"import")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:s(()=>import("./catppuccin-mocha-DV9_Ze0W.js"),"import")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:s(()=>import("./dark-plus-KEYLhlmT.js"),"import")},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:s(()=>import("./dracula-BpDWT_aG.js"),"import")},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:s(()=>import("./dracula-soft-D46m5Xd3.js"),"import")},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:s(()=>import("./everforest-dark-D5lQfeOG.js"),"import")},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:s(()=>import("./everforest-light-D8V69RRQ.js"),"import")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:s(()=>import("./github-dark-CzPA46E-.js"),"import")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:s(()=>import("./github-dark-default-BXF7Vm5l.js"),"import")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:s(()=>import("./github-dark-dimmed-CRDKj6ck.js"),"import")},{id:"github-light",displayName:"GitHub Light",type:"light",import:s(()=>import("./github-light-CRlnGVMD.js"),"import")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:s(()=>import("./github-light-default-UREJT2Bw.js"),"import")},{id:"houston",displayName:"Houston",type:"dark",import:s(()=>import("./houston-CZZ6oYdA.js"),"import")},{id:"laserwave",displayName:"LaserWave",type:"dark",import:s(()=>import("./laserwave-cW9vKj3g.js"),"import")},{id:"light-plus",displayName:"Light Plus",type:"light",import:s(()=>import("./light-plus-BsvsQ1iS.js"),"import")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:s(()=>import("./material-theme-CgwOUXSn.js"),"import")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:s(()=>import("./material-theme-darker-CO7HdiM_.js"),"import")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:s(()=>import("./material-theme-lighter-qxoleWdb.js"),"import")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:s(()=>import("./material-theme-ocean-ChH25C4w.js"),"import")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:s(()=>import("./material-theme-palenight-DOqtC9FP.js"),"import")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:s(()=>import("./min-dark-iSbrOpM4.js"),"import")},{id:"min-light",displayName:"Min Light",type:"light",import:s(()=>import("./min-light-BITGhEdf.js"),"import")},{id:"monokai",displayName:"Monokai",type:"dark",import:s(()=>import("./monokai-sMI-pExk.js"),"import")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:s(()=>import("./night-owl-BeocmOPF.js"),"import")},{id:"nord",displayName:"Nord",type:"dark",import:s(()=>import("./nord-CsyjKwr8.js"),"import")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:s(()=>import("./one-dark-pro-BTtaZsq5.js"),"import")},{id:"one-light",displayName:"One Light",type:"light",import:s(()=>import("./one-light-alpzPJ78.js"),"import")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:s(()=>import("./poimandres-Cda-MJFk.js"),"import")},{id:"red",displayName:"Red",type:"dark",import:s(()=>import("./red-jaXbsbtS.js"),"import")},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:s(()=>import("./rose-pine-DBqw-ob8.js"),"import")},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:s(()=>import("./rose-pine-dawn-hFkjxiNL.js"),"import")},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:s(()=>import("./rose-pine-moon-DNhm1ofJ.js"),"import")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:s(()=>import("./slack-dark-C7oZ9nno.js"),"import")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:s(()=>import("./slack-ochin-hXH8Gyq8.js"),"import")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:s(()=>import("./snazzy-light-CA9nliXM.js"),"import")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:s(()=>import("./solarized-dark-C86elO-m.js"),"import")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:s(()=>import("./solarized-light-xPNGhBYe.js"),"import")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:s(()=>import("./synthwave-84-BBDuFDsq.js"),"import")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:s(()=>import("./tokyo-night-BMRpS3Xo.js"),"import")},{id:"vesper",displayName:"Vesper",type:"dark",import:s(()=>import("./vesper-BSB_bK09.js"),"import")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:s(()=>import("./vitesse-black-BHqu4VKd.js"),"import")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:s(()=>import("./vitesse-dark-EQHFthT6.js"),"import")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:s(()=>import("./vitesse-light-NrGJGX17.js"),"import")}],CT=Object.fromEntries(kT.map(e=>[e.id,e.import]));var nt;(function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"})(nt||(nt={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var mn;(function(e){function t(f){return f.toString(2).padStart(32,"0")}s(t,"toBinaryStr"),e.toBinaryStr=t;function n(f){const h=e.getLanguageId(f),p=e.getTokenType(f),m=e.getFontStyle(f),g=e.getForeground(f),E=e.getBackground(f);console.log({languageId:h,tokenType:p,fontStyle:m,foreground:g,background:E})}s(n,"print"),e.print=n;function r(f){return(f&255)>>>0}s(r,"getLanguageId"),e.getLanguageId=r;function i(f){return(f&768)>>>8}s(i,"getTokenType"),e.getTokenType=i;function a(f){return(f&1024)!==0}s(a,"containsBalancedBrackets"),e.containsBalancedBrackets=a;function o(f){return(f&30720)>>>11}s(o,"getFontStyle"),e.getFontStyle=o;function l(f){return(f&16744448)>>>15}s(l,"getForeground"),e.getForeground=l;function c(f){return(f&4278190080)>>>24}s(c,"getBackground"),e.getBackground=c;function u(f,h,p,m,g,E,T){let _=e.getLanguageId(f),b=e.getTokenType(f),k=e.containsBalancedBrackets(f)?1:0,N=e.getFontStyle(f),L=e.getForeground(f),S=e.getBackground(f);return h!==0&&(_=h),p!==8&&(b=p),m!==null&&(k=m?1:0),g!==-1&&(N=g),E!==0&&(L=E),T!==0&&(S=T),(_<<0|b<<8|k<<10|N<<11|L<<15|S<<24)>>>0}s(u,"set"),e.set=u})(mn||(mn={}));function CM(e){return e}s(CM,"toOptionalTokenType");function SM(e){return e}s(SM,"fromOptionalTokenType");function ii(e,t){const n=[],r=ST(e);let i=r.next();for(;i!==null;){let c=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=o();if(n.push({matcher:u,priority:c}),i!==",")break;i=r.next()}return n;function a(){if(i==="-"){i=r.next();const c=a();return u=>!!c&&!c(u)}if(i==="("){i=r.next();const c=l();return i===")"&&(i=r.next()),c}if(Kl(i)){const c=[];do c.push(i),i=r.next();while(Kl(i));return u=>t(c,u)}return null}function o(){const c=[];let u=a();for(;u;)c.push(u),u=a();return f=>c.every(h=>h(f))}function l(){const c=[];let u=o();for(;u&&(c.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=o()}return f=>c.some(h=>h(f))}}s(ii,"createMatchers");function Kl(e){return!!e&&!!e.match(/[\w\.:]+/)}s(Kl,"isIdentifier");function ST(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:s(()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r},"next")}}s(ST,"newTokenizer");function Ql(e){typeof e.dispose=="function"&&e.dispose()}s(Ql,"disposeOnigString");function NT(e){return vs(e)}s(NT,"clone");function vs(e){return Array.isArray(e)?wT(e):typeof e=="object"?IT(e):e}s(vs,"doClone");function wT(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=vs(e[n]);return t}s(wT,"cloneArray");function IT(e){let t={};for(let n in e)t[n]=vs(e[n]);return t}s(IT,"cloneObj");function Xl(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}s(Xl,"mergeObjects");function Jl(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Jl(e.substring(0,e.length-1)):e.substr(~t+1)}s(Jl,"basename$1");let Ms=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class si{static{s(this,"RegexSource")}static hasCaptures(t){return t===null?!1:(Ms.lastIndex=0,Ms.test(t))}static replaceCaptures(t,n,r){return t.replace(Ms,(i,a,o,l)=>{let c=r[parseInt(a||o,10)];if(c){let u=n.substring(c.start,c.end);for(;u[0]===".";)u=u.substring(1);switch(l){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return i})}}function Zl(e,t){return e<t?-1:e>t?1:0}s(Zl,"strcmp");function ec(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;i<n;i++){let a=Zl(e[i],t[i]);if(a!==0)return a}return 0}return n-r}s(ec,"strArrCmp");function tc(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))}s(tc,"isValidHexColor");function nc(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}s(nc,"escapeRegExpCharacters");class rc{static{s(this,"CachedFn")}fn;cache=new Map;constructor(t){this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}}class nr{static{s(this,"TopLevelRuleReference")}scopeName;constructor(t){this.scopeName=t}toKey(){return this.scopeName}}class LT{static{s(this,"TopLevelRepositoryRuleReference")}scopeName;ruleName;constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}class OT{static{s(this,"ExternalReferenceCollector")}_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}}class RT{static{s(this,"ScopeDependencyProcessor")}repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new nr(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const n=new OT;for(const r of t)DT(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof nr){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}}function DT(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof nr?ai({baseGrammar:a,selfGrammar:i},r):Fs(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);const o=n.injections(e.scopeName);if(o)for(const l of o)r.add(new nr(l))}s(DT,"collectReferencesOfReference");function Fs(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];oi([r],t,n)}}s(Fs,"collectExternalReferencesInTopLevelRepositoryRule");function ai(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&oi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&oi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}s(ai,"collectExternalReferencesInTopLevelRule");function oi(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Xl({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&oi(r.patterns,{...t,repository:i},n);const a=r.include;if(!a)continue;const o=ic(a);switch(o.kind){case 0:ai({...t,selfGrammar:t.baseGrammar},n);break;case 1:ai(t,n);break;case 2:Fs(o.ruleName,{...t,repository:i},n);break;case 3:case 4:const l=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const c={baseGrammar:t.baseGrammar,selfGrammar:l,repository:i};o.kind===4?Fs(o.ruleName,c,n):ai(c,n)}else o.kind===4?n.add(new LT(o.scopeName,o.ruleName)):n.add(new nr(o.scopeName));break}}}s(oi,"collectExternalReferencesInRules");class xT{static{s(this,"BaseReference")}kind=0}class PT{static{s(this,"SelfReference")}kind=1}class vT{static{s(this,"RelativeReference")}ruleName;kind=2;constructor(t){this.ruleName=t}}class MT{static{s(this,"TopLevelReference")}scopeName;kind=3;constructor(t){this.scopeName=t}}class FT{static{s(this,"TopLevelRepositoryReference")}scopeName;ruleName;kind=4;constructor(t,n){this.scopeName=t,this.ruleName=n}}function ic(e){if(e==="$base")return new xT;if(e==="$self")return new PT;const t=e.indexOf("#");if(t===-1)return new MT(e);if(t===0)return new vT(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new FT(n,r)}}s(ic,"parseInclude");const BT=/\\(\d+)/,sc=/\\(\d+)/g,UT=-1,ac=-2;function NM(e){return e}s(NM,"ruleIdFromNumber");function wM(e){return e}s(wM,"ruleIdToNumber");class rr{static{s(this,"Rule")}$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,i){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=si.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=si.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Jl(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:si.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:si.replaceCaptures(this._contentName,t,n)}}class HT extends rr{static{s(this,"CaptureRule")}retokenizeCapturedWithRuleId;constructor(t,n,r,i,a){super(t,n,r,i),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,i){throw new Error("Not supported!")}}class $T extends rr{static{s(this,"MatchRule")}_match;captures;_cachedCompiledPatterns;constructor(t,n,r,i,a){super(t,n,r,null),this._match=new an(i,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ir,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class oc extends rr{static{s(this,"IncludeOnlyRule")}hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,i,a){super(t,n,r,i),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ir,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Bs extends rr{static{s(this,"BeginEndRule")}_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,i,a,o,l,c,u,f){super(t,n,r,i),this._begin=new an(a,this.id),this.beginCaptures=o,this._end=new an(l||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=u||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,i)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ir;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}class li extends rr{static{s(this,"BeginWhileRule")}_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,i,a,o,l,c,u){super(t,n,r,i),this._begin=new an(a,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new an(l,ac),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ir;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,i){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,i)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ir,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}}class _e{static{s(this,"RuleFactory")}static createCaptureRule(t,n,r,i,a){return t.registerRule(o=>new HT(n,o,r,i,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new $T(t.$vscodeTextmateLocation,t.id,t.name,t.match,_e._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Xl({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new oc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,_e._compilePatterns(a,n,r))}return t.while?new li(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,_e._compileCaptures(t.whileCaptures||t.captures,n,r),_e._compilePatterns(t.patterns,n,r)):new Bs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,_e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,_e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>a&&(a=l)}for(let o=0;o<=a;o++)i[o]=null;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let c=0;t[o].patterns&&(c=_e.getCompiledRuleId(t[o],n,r)),i[l]=_e.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,c)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){const l=t[a];let c=-1;if(l.include){const u=ic(l.include);switch(u.kind){case 0:case 1:c=_e.getCompiledRuleId(r[l.include],n,r);break;case 2:let f=r[u.ruleName];f&&(c=_e.getCompiledRuleId(f,n,r));break;case 3:case 4:const h=u.scopeName,p=u.kind===4?u.ruleName:null,m=n.getExternalGrammar(h,r);if(m)if(p){let g=m.repository[p];g&&(c=_e.getCompiledRuleId(g,n,m.repository))}else c=_e.getCompiledRuleId(m.repository.$self,n,m.repository);break}}else c=_e.getCompiledRuleId(l,n,r);if(c!==-1){const u=n.getRule(c);let f=!1;if((u instanceof oc||u instanceof Bs||u instanceof li)&&u.hasMissingPatterns&&u.patterns.length===0&&(f=!0),f)continue;i.push(c)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}}class an{static{s(this,"RegExpSource")}source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t){const r=t.length;let i=0,a=[],o=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const u=t.charAt(l+1);u==="z"?(a.push(t.substring(i,l)),a.push("$(?!\\n)(?<!\\n)"),i=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,i===0?this.source=t:(a.push(t.substring(i,r)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=BT.test(this.source)}clone(){return new an(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){let r=n.map(i=>t.substring(i.start,i.end));return sc.lastIndex=0,this.source.replace(sc,(i,a)=>nc(r[parseInt(a,10)]||""))}_buildAnchorCache(){let t=[],n=[],r=[],i=[],a,o,l,c;for(a=0,o=this.source.length;a<o;a++)l=this.source.charAt(a),t[a]=l,n[a]=l,r[a]=l,i[a]=l,l==="\\"&&a+1<o&&(c=this.source.charAt(a+1),c==="A"?(t[a+1]="\uFFFF",n[a+1]="\uFFFF",r[a+1]="A",i[a+1]="A"):c==="G"?(t[a+1]="\uFFFF",n[a+1]="G",r[a+1]="\uFFFF",i[a+1]="G"):(t[a+1]=c,n[a+1]=c,r[a+1]=c,i[a+1]=c),a++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class ir{static{s(this,"RegExpSourceList")}_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new lc(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let i=this._items.map(a=>a.resolveAnchors(n,r));return new lc(t,i,this._items.map(a=>a.ruleId))}}class lc{static{s(this,"CompiledRule")}regExps;rules;scanner;constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
732
|
+
*/var Fl=Ll,XE=Qg,Bl=VE,Ul=QE,Zn;XE?Zn=Ul:Zn=Bl,Fl(Zn,"posix",Bl),Fl(Zn,"win32",Ul);var JE=Zn,Hl=Qr(JE);function ZE(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}s(ZE,"slash");function Zr(e){return Hl.posix(e)||Hl.win32(e)}s(Zr,"isAbsolute");const eT=/^\\\\\?\\.+/;function tt(e){if(eT.test(e))return console.warn(`Unsupported extended length path detected: ${e}`),e;const t=ZE(e),n=ee.normalize(t);return t.startsWith("./")?`./${n}`:n}s(tt,"normalize$3");function $l(e,t){const{basePath:n,compoundBase:r=!1,cwd:i}=t;return n!==void 0&&(Zr(n)||console.warn(`Base path "${n}" is not absolute`),i.startsWith(n)||console.warn(`CWD "${i}" does not start with base path "${n}"`)),Zr(i)||console.warn(`CWD "${i}" is not absolute`),Zr(e)?n===void 0||/^[A-Za-z]:/.test(e)||!r&&e.startsWith(n)?e:ee.join(n,e):ee.join(i,e)}s($l,"resolveWithBasePath");function tT(e,t){const n=new RegExp(`^${t}`,"i");return e.replace(n,"")}s(tT,"stripBasePath");function ei(e){const t=ee.dirname(e),n=ee.basename(e),[r,i]=sp(n,/[#?^]/);return[ee.join(t,r),i]}s(ei,"getBaseAndQueryParts");function er(e){return ei(e)[0]}s(er,"getBase");function nT(e){return ei(e).at(1)??""}s(nT,"getQuery");function rT(e){return zl(e)!==""}s(rT,"hasExtension");function zl(e){return ee.extname(er(e))}s(zl,"getExtension");function ql(e,t){if(rT(e))return e;const[n,r]=ei(e);return`${n}.${t}${r??""}`}s(ql,"addExtensionIfMissing");function jl(e){try{return decodeURI(e)}catch(t){console.warn(`Error decoding URI text: "${e}"`,t);return}}s(jl,"safeDecodeURI");function tr(e){try{const t=new URL(e),n=/^[a-z]:/i,r=/^file:/i;return(r.test(t.protocol)||n.test(t.protocol))&&!r.test(e)?void 0:t}catch{return}}s(tr,"safeParseUrl");function Bt(e){return tr(e)!==void 0}s(Bt,"isUrl$1");function iT(e){const t=tr(e);return t?.protocol==="file:"?t.pathname:e}s(iT,"fileUrlToPath");function ti(e){const t=tr(e);if(t===void 0){const n=tt(e);return Zr(n)||n.startsWith("./")||n.startsWith("../")?"localFilePath":"localFileName"}return t.protocol==="file:"?"localFileUrl":t.protocol==="obsidian:"?"obsidianVaultUrl":t.protocol==="http:"||t.protocol==="https:"?"remoteHttpUrl":"unsupportedProtocolUrl"}s(ti,"getSrcType");function Yl(e,t){if(e===void 0)return;e instanceof Headers||(e=sT(e));const n=(e instanceof Headers?t.map(r=>e.get(r)):t.map(r=>e[r])).filter(r=>r!=null).join("");if(n!=="")return n}s(Yl,"getHeadersString");function sT(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}s(sT,"convertKeysToLowercase");async function aT(e,t){try{return(await t(e,{method:"HEAD"}))?.status===200}catch{return!1}}s(aT,"urlExists");async function Ds(e,t,n=hp){switch(n){case"metadata":{if(t===void 0)return Ds(e,t,"name");try{const r=await t(e,{method:"HEAD"}),i=Yl(r?.headers,["content-type"]);if(i===void 0)throw new Error("No content-type header found");return Lp(i)}catch{return Ds(e,t,"name")}}case"name":{let r;const i=tr(e);if(i===void 0){console.warn(`Could not parse URL: ${e}`);return}const a=i.pathname.split(".");return a.length>1?r=a.at(-1):r=i.search.split(".").at(-1),cl.includes(r??"")?r:void 0}}}s(Ds,"getFileExtensionFromUrl");async function xs(e,t,n=up){switch(n){case"content":return console.warn("`content` hash mode is not yet implemented for URLs"),xs(e,t,"metadata");case"metadata":try{const r=await t(e,{method:"HEAD"}),i=Yl(r?.headers,["etag","last-modified","content-length"]);if(i===void 0)throw new Error("No headers found");return Gr(i,16)}catch{return xs(e,t,"name")}case"name":return Gr(e,16)}}s(xs,"getUrlContentHash");function oT(e){const t=tr(e);return t===void 0?void 0:{host:`${t.protocol}//${t.hostname}`,port:Number.parseInt(t.port,10)}}s(oT,"urlToHostAndPort");function lT(e,t){return`${e}:${t}`}s(lT,"hostAndPortToUrl");async function cT(e,t){const n=Bt(e)?await Ds(e,t):ee.extname(e).slice(1);if(!(n===void 0||!cl.includes(n)))return n}s(cT,"getAnkiMediaFilenameExtension");async function uT(e,t,n){return Bt(e)?aT(e,n):yp(e,t)}s(uT,"mediaAssetExists");async function hT(e,t,n,r,i){if(!await uT(e,r,i))return;const o=gl(t),l=await fT(e,r,i),c=n===void 0?"":`.${n}`;let u;if(u=`${o}-${l}${c}`,u.length>sl)throw new Error(`Filename too long: ${u}`);return u}s(hT,"getSafeAnkiMediaFilename");async function fT(e,t,n){return Bt(e)?xs(e,n):ml(e,t)}s(fT,"getContentHash");const Tt=s(function(e){if(e==null)return gT;if(typeof e=="function")return ni(e);if(typeof e=="object")return Array.isArray(e)?dT(e):mT(e);if(typeof e=="string")return pT(e);throw new Error("Expected function, string, or object as test")},"convert");function dT(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Tt(e[n]);return ni(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}s(dT,"anyFactory$1");function mT(e){const t=e;return ni(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}s(mT,"propsFactory");function pT(e){return ni(t);function t(n){return n&&n.type===e}}s(pT,"typeFactory");function ni(e){return t;function t(n,r,i){return!!(ET(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}s(ni,"castFactory$1");function gT(){return!0}s(gT,"ok$1");function ET(e){return e!==null&&typeof e=="object"&&"type"in e}s(ET,"looksLikeANode");function kM(e){return e}s(kM,"color");const Gl=[],ze=!0,Be=!1,ri="skip";function Ps(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Tt(i),o=r?-1:1;l(e,void 0,[])();function l(c,u,f){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=Gl,g,E,T;if((!t||a(c,u,f[f.length-1]||void 0))&&(m=TT(n(c,f)),m[0]===Be))return m;if("children"in c&&c.children){const _=c;if(_.children&&m[0]!==ri)for(E=(r?_.children.length:-1)+o,T=f.concat(_);E>-1&&E<_.children.length;){const b=_.children[E];if(g=l(b,E,T)(),g[0]===Be)return g;E=typeof g[1]=="number"?g[1]:E+o}}return m}}s(l,"factory")}s(Ps,"visitParents");function TT(e){return Array.isArray(e)?e:typeof e=="number"?[ze,e]:e==null?Gl:[e]}s(TT,"toResult");function se(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Ps(e,a,l,i);function l(c,u){const f=u[u.length-1],h=f?f.children.indexOf(c):void 0;return o(c,h,f)}s(l,"overload")}s(se,"visit$1");const yT=s(function(){return function(e){let t=!1;se(e,(n,r,i)=>{if(i===void 0||r===void 0||n.type!=="element")return ze;if(n.tagName==="pre"&&n.children.length===1&&n.children[0].type==="element"&&n.children[0].tagName==="code"&&Array.isArray(n.children[0].properties.className)&&n.children[0].properties.className.includes("language-math")&&(t=!0,i.children.splice(r,1,n.children[0])),n.tagName==="code"&&Array.isArray(n.properties.className)&&n.properties.className.includes("language-math")){const a=n.properties.className.includes("math-display")||t;t=!1,n.tagName=a?"div":"span",n.children=[{type:"text",value:a?String.raw`\[`:String.raw`\(`},...n.children,{type:"text",value:a?String.raw`\]`:String.raw`\)`}]}})}},"plugin$4"),Vl=[{id:"abap",name:"ABAP",import:s(()=>import("./abap-DXFkqnOI.js"),"import")},{id:"actionscript-3",name:"ActionScript",import:s(()=>import("./actionscript-3-BigF1UXR.js"),"import")},{id:"ada",name:"Ada",import:s(()=>import("./ada-CowR2XfX.js"),"import")},{id:"angular-html",name:"Angular HTML",import:s(()=>import("./angular-html-DFAh1LEj.js").then(function(e){return e.f}),"import")},{id:"angular-ts",name:"Angular TypeScript",import:s(()=>import("./angular-ts-BVxS86PS.js"),"import")},{id:"apache",name:"Apache Conf",import:s(()=>import("./apache-rS0jd3Ly.js"),"import")},{id:"apex",name:"Apex",import:s(()=>import("./apex-Sfo2eW0G.js"),"import")},{id:"apl",name:"APL",import:s(()=>import("./apl-DPLNWaKG.js"),"import")},{id:"applescript",name:"AppleScript",import:s(()=>import("./applescript-BXKAgOFh.js"),"import")},{id:"ara",name:"Ara",import:s(()=>import("./ara-CG4fK2Nq.js"),"import")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:s(()=>import("./asciidoc-BLovOSPv.js"),"import")},{id:"asm",name:"Assembly",import:s(()=>import("./asm-PWN5J14X.js"),"import")},{id:"astro",name:"Astro",import:s(()=>import("./astro-sm0BqYJo.js"),"import")},{id:"awk",name:"AWK",import:s(()=>import("./awk-i0IPvypD.js"),"import")},{id:"ballerina",name:"Ballerina",import:s(()=>import("./ballerina-T9ysyp6P.js"),"import")},{id:"bat",name:"Batch File",aliases:["batch"],import:s(()=>import("./bat-BPiaQZfK.js"),"import")},{id:"beancount",name:"Beancount",import:s(()=>import("./beancount-Urb1RsFe.js"),"import")},{id:"berry",name:"Berry",aliases:["be"],import:s(()=>import("./berry-CxrokwfH.js"),"import")},{id:"bibtex",name:"BibTeX",import:s(()=>import("./bibtex-BaedD2tq.js"),"import")},{id:"bicep",name:"Bicep",import:s(()=>import("./bicep-Bym0hRiG.js"),"import")},{id:"blade",name:"Blade",import:s(()=>import("./blade-D3A5GssZ.js"),"import")},{id:"c",name:"C",import:s(()=>import("./c-RCJZWN-0.js"),"import")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:s(()=>import("./cadence-Bgpqy2XC.js"),"import")},{id:"clarity",name:"Clarity",import:s(()=>import("./clarity-DV9JwLIa.js"),"import")},{id:"clojure",name:"Clojure",aliases:["clj"],import:s(()=>import("./clojure-BF6G6X0H.js"),"import")},{id:"cmake",name:"CMake",import:s(()=>import("./cmake-DXZpi2gR.js"),"import")},{id:"cobol",name:"COBOL",import:s(()=>import("./cobol-Bi0pgIzz.js"),"import")},{id:"codeowners",name:"CODEOWNERS",import:s(()=>import("./codeowners-CGmujMTu.js"),"import")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:s(()=>import("./codeql-BOpLLL-w.js"),"import")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:s(()=>import("./coffee-Cp6Hkwsd.js"),"import")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:s(()=>import("./common-lisp-C3qUB5O8.js"),"import")},{id:"cpp",name:"C++",aliases:["c++"],import:s(()=>import("./cpp-CUhoJbwx.js"),"import")},{id:"crystal",name:"Crystal",import:s(()=>import("./crystal-DnbhN0Ng.js"),"import")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:s(()=>import("./csharp-Bdt_eLrj.js"),"import")},{id:"css",name:"CSS",import:s(()=>import("./css-CbYhyuC0.js"),"import")},{id:"csv",name:"CSV",import:s(()=>import("./csv-B2DkETJQ.js"),"import")},{id:"cue",name:"CUE",import:s(()=>import("./cue-C6Aznpr-.js"),"import")},{id:"cypher",name:"Cypher",aliases:["cql"],import:s(()=>import("./cypher-ByMv4Xf1.js"),"import")},{id:"d",name:"D",import:s(()=>import("./d-PifQWv0n.js"),"import")},{id:"dart",name:"Dart",import:s(()=>import("./dart-DZLoTQm4.js"),"import")},{id:"dax",name:"DAX",import:s(()=>import("./dax-DsfXcHUZ.js"),"import")},{id:"desktop",name:"Desktop",import:s(()=>import("./desktop-D71BffLY.js"),"import")},{id:"diff",name:"Diff",import:s(()=>import("./diff-DvyTQcux.js"),"import")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:s(()=>import("./docker-DNR26wTC.js"),"import")},{id:"dotenv",name:"dotEnv",import:s(()=>import("./dotenv-BgSQePf4.js"),"import")},{id:"dream-maker",name:"Dream Maker",import:s(()=>import("./dream-maker-Eh5U-gDp.js"),"import")},{id:"edge",name:"Edge",import:s(()=>import("./edge-Bs6MViUR.js"),"import")},{id:"elixir",name:"Elixir",import:s(()=>import("./elixir-Exce1dLy.js"),"import")},{id:"elm",name:"Elm",import:s(()=>import("./elm-D7CfdsEG.js"),"import")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:s(()=>import("./emacs-lisp-51pKhIDe.js"),"import")},{id:"erb",name:"ERB",import:s(()=>import("./erb-BiKJTpVc.js"),"import")},{id:"erlang",name:"Erlang",aliases:["erl"],import:s(()=>import("./erlang-DS9ZWoKD.js"),"import")},{id:"fennel",name:"Fennel",import:s(()=>import("./fennel-DuK7IM-L.js"),"import")},{id:"fish",name:"Fish",import:s(()=>import("./fish-DfeQjIbs.js"),"import")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:s(()=>import("./fluent-KPqz0Sb3.js"),"import")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:s(()=>import("./fortran-fixed-form-6v7-xzYY.js"),"import")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:s(()=>import("./fortran-free-form-D6pmzCqS.js"),"import")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:s(()=>import("./fsharp-y4j4y45-.js"),"import")},{id:"gdresource",name:"GDResource",import:s(()=>import("./gdresource-FATN5FtX.js"),"import")},{id:"gdscript",name:"GDScript",import:s(()=>import("./gdscript-cw46T5ID.js"),"import")},{id:"gdshader",name:"GDShader",import:s(()=>import("./gdshader-B_SUYfiV.js"),"import")},{id:"genie",name:"Genie",import:s(()=>import("./genie-DAfrLhwG.js"),"import")},{id:"gherkin",name:"Gherkin",import:s(()=>import("./gherkin-B0PjAhci.js"),"import")},{id:"git-commit",name:"Git Commit Message",import:s(()=>import("./git-commit-XY8bXq83.js"),"import")},{id:"git-rebase",name:"Git Rebase Message",import:s(()=>import("./git-rebase-BFV-2sWx.js"),"import")},{id:"gleam",name:"Gleam",import:s(()=>import("./gleam-Dd6f7Z5P.js"),"import")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:s(()=>import("./glimmer-js-I0TZ3_O1.js"),"import")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:s(()=>import("./glimmer-ts-CY38hlIb.js"),"import")},{id:"glsl",name:"GLSL",import:s(()=>import("./glsl-tOUOXML3.js"),"import")},{id:"gnuplot",name:"Gnuplot",import:s(()=>import("./gnuplot-nclm9rTJ.js"),"import")},{id:"go",name:"Go",import:s(()=>import("./go-DM4HHECw.js"),"import")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:s(()=>import("./graphql-DwwLrXH1.js"),"import")},{id:"groovy",name:"Groovy",import:s(()=>import("./groovy-wChcbJ1V.js"),"import")},{id:"hack",name:"Hack",import:s(()=>import("./hack-DmjQSZc3.js"),"import")},{id:"haml",name:"Ruby Haml",import:s(()=>import("./haml-CUc9j7k4.js"),"import")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:s(()=>import("./handlebars-1qhD0hZI.js"),"import")},{id:"haskell",name:"Haskell",aliases:["hs"],import:s(()=>import("./haskell-DOVD4hs_.js"),"import")},{id:"haxe",name:"Haxe",import:s(()=>import("./haxe-Dit6kIrv.js"),"import")},{id:"hcl",name:"HashiCorp HCL",import:s(()=>import("./hcl-CpAANOdC.js"),"import")},{id:"hjson",name:"Hjson",import:s(()=>import("./hjson-DZqG9GXz.js"),"import")},{id:"hlsl",name:"HLSL",import:s(()=>import("./hlsl-DmDrTTlz.js"),"import")},{id:"html",name:"HTML",import:s(()=>import("./html-NmvpQUfQ.js"),"import")},{id:"html-derivative",name:"HTML (Derivative)",import:s(()=>import("./html-derivative-QphQoco-.js"),"import")},{id:"http",name:"HTTP",import:s(()=>import("./http-BGHyW0yz.js"),"import")},{id:"hxml",name:"HXML",import:s(()=>import("./hxml-4EC8aR1F.js"),"import")},{id:"hy",name:"Hy",import:s(()=>import("./hy-y-6HuL9l.js"),"import")},{id:"imba",name:"Imba",import:s(()=>import("./imba-CyaA9484.js"),"import")},{id:"ini",name:"INI",aliases:["properties"],import:s(()=>import("./ini-DeVv6D4_.js"),"import")},{id:"java",name:"Java",import:s(()=>import("./java-ClXEvkw9.js"),"import")},{id:"javascript",name:"JavaScript",aliases:["js"],import:s(()=>import("./javascript-Dch3xQiY.js"),"import")},{id:"jinja",name:"Jinja",import:s(()=>import("./jinja-BrXMjE5a.js"),"import")},{id:"jison",name:"Jison",import:s(()=>import("./jison-DlEKeWyG.js"),"import")},{id:"json",name:"JSON",import:s(()=>import("./json-CupVZNk8.js"),"import")},{id:"json5",name:"JSON5",import:s(()=>import("./json5-Bh8mriwU.js"),"import")},{id:"jsonc",name:"JSON with Comments",import:s(()=>import("./jsonc-DYI1rfmx.js"),"import")},{id:"jsonl",name:"JSON Lines",import:s(()=>import("./jsonl-BUpeXbsf.js"),"import")},{id:"jsonnet",name:"Jsonnet",import:s(()=>import("./jsonnet-C9d3aiqh.js"),"import")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:s(()=>import("./jssm-Dble9ECP.js"),"import")},{id:"jsx",name:"JSX",import:s(()=>import("./jsx-CsyrCbsw.js"),"import")},{id:"julia",name:"Julia",aliases:["jl"],import:s(()=>import("./julia-Cb2KZaUl.js"),"import")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:s(()=>import("./kotlin-BspO9hSn.js"),"import")},{id:"kusto",name:"Kusto",aliases:["kql"],import:s(()=>import("./kusto-DGEpfOTx.js"),"import")},{id:"latex",name:"LaTeX",import:s(()=>import("./latex-DqQU8kbd.js"),"import")},{id:"lean",name:"Lean 4",aliases:["lean4"],import:s(()=>import("./lean-kIfwnVJd.js"),"import")},{id:"less",name:"Less",import:s(()=>import("./less-CX3ZWouj.js"),"import")},{id:"liquid",name:"Liquid",import:s(()=>import("./liquid-DHpvaAyy.js"),"import")},{id:"log",name:"Log file",import:s(()=>import("./log-Ksn5IXup.js"),"import")},{id:"logo",name:"Logo",import:s(()=>import("./logo-DdacRhvC.js"),"import")},{id:"lua",name:"Lua",import:s(()=>import("./lua-Cy9U1SwF.js"),"import")},{id:"luau",name:"Luau",import:s(()=>import("./luau-VQMr7AbF.js"),"import")},{id:"make",name:"Makefile",aliases:["makefile"],import:s(()=>import("./make-B9S9BZZh.js"),"import")},{id:"markdown",name:"Markdown",aliases:["md"],import:s(()=>import("./markdown-Bpum8voz.js"),"import")},{id:"marko",name:"Marko",import:s(()=>import("./marko-DYPSvNC1.js"),"import")},{id:"matlab",name:"MATLAB",import:s(()=>import("./matlab-Btshr8M_.js"),"import")},{id:"mdc",name:"MDC",import:s(()=>import("./mdc-DiX1CJaT.js"),"import")},{id:"mdx",name:"MDX",import:s(()=>import("./mdx-Br9pa-sp.js"),"import")},{id:"mermaid",name:"Mermaid",import:s(()=>import("./mermaid-Cb-F_BZP.js"),"import")},{id:"mojo",name:"Mojo",import:s(()=>import("./mojo--7WWnkdy.js"),"import")},{id:"move",name:"Move",import:s(()=>import("./move-COBxEbHI.js"),"import")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:s(()=>import("./narrat-B9CT-1u6.js"),"import")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:s(()=>import("./nextflow-DBxHOdLe.js"),"import")},{id:"nginx",name:"Nginx",import:s(()=>import("./nginx-C3DmzmOp.js"),"import")},{id:"nim",name:"Nim",import:s(()=>import("./nim-CexEzMMx.js"),"import")},{id:"nix",name:"Nix",import:s(()=>import("./nix-B7rNE5kf.js"),"import")},{id:"nushell",name:"nushell",aliases:["nu"],import:s(()=>import("./nushell-CrgTADc5.js"),"import")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:s(()=>import("./objective-c-DHmGyzbM.js"),"import")},{id:"objective-cpp",name:"Objective-C++",import:s(()=>import("./objective-cpp-BWKJ1FCf.js"),"import")},{id:"ocaml",name:"OCaml",import:s(()=>import("./ocaml-RqY_Nz63.js"),"import")},{id:"pascal",name:"Pascal",import:s(()=>import("./pascal-BvCdDh2R.js"),"import")},{id:"perl",name:"Perl",import:s(()=>import("./perl-PZnu_VA7.js"),"import")},{id:"php",name:"PHP",import:s(()=>import("./php-m9Z3qs_k.js"),"import")},{id:"plsql",name:"PL/SQL",import:s(()=>import("./plsql-BbJj1K1w.js"),"import")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:s(()=>import("./po-HrnDn_2Q.js"),"import")},{id:"postcss",name:"PostCSS",import:s(()=>import("./postcss-DXT9h7v2.js"),"import")},{id:"powerquery",name:"PowerQuery",import:s(()=>import("./powerquery-CApMHEaB.js"),"import")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:s(()=>import("./powershell-9ZOzOPqN.js"),"import")},{id:"prisma",name:"Prisma",import:s(()=>import("./prisma-BBJYjQ0k.js"),"import")},{id:"prolog",name:"Prolog",import:s(()=>import("./prolog-BH_RS3WO.js"),"import")},{id:"proto",name:"Protocol Buffer 3",import:s(()=>import("./proto-DOtRmeXT.js"),"import")},{id:"pug",name:"Pug",aliases:["jade"],import:s(()=>import("./pug-jyQP1XtO.js"),"import")},{id:"puppet",name:"Puppet",import:s(()=>import("./puppet-37ic6j3l.js"),"import")},{id:"purescript",name:"PureScript",import:s(()=>import("./purescript-Bm5O5oLm.js"),"import")},{id:"python",name:"Python",aliases:["py"],import:s(()=>import("./python-DwuVtWc2.js"),"import")},{id:"qml",name:"QML",import:s(()=>import("./qml-DM3j-f55.js"),"import")},{id:"qmldir",name:"QML Directory",import:s(()=>import("./qmldir-MS3qTAOR.js"),"import")},{id:"qss",name:"Qt Style Sheets",import:s(()=>import("./qss-FJDVp-XM.js"),"import")},{id:"r",name:"R",import:s(()=>import("./r-BXfENWL6.js"),"import")},{id:"racket",name:"Racket",import:s(()=>import("./racket-BbLA0SU8.js"),"import")},{id:"raku",name:"Raku",aliases:["perl6"],import:s(()=>import("./raku-D384ylkT.js"),"import")},{id:"razor",name:"ASP.NET Razor",import:s(()=>import("./razor-C6l8l7uE.js"),"import")},{id:"reg",name:"Windows Registry Script",import:s(()=>import("./reg-CrhH3_Og.js"),"import")},{id:"regexp",name:"RegExp",aliases:["regex"],import:s(()=>import("./regexp-C_ZPRiAj.js"),"import")},{id:"rel",name:"Rel",import:s(()=>import("./rel-BuawaRXJ.js"),"import")},{id:"riscv",name:"RISC-V",import:s(()=>import("./riscv-D-aEEwJo.js"),"import")},{id:"rst",name:"reStructuredText",import:s(()=>import("./rst-T7EQb_Bl.js"),"import")},{id:"ruby",name:"Ruby",aliases:["rb"],import:s(()=>import("./ruby-Dl3UAuky.js"),"import")},{id:"rust",name:"Rust",aliases:["rs"],import:s(()=>import("./rust-DGxQkqYo.js"),"import")},{id:"sas",name:"SAS",import:s(()=>import("./sas-BhBoFsCt.js"),"import")},{id:"sass",name:"Sass",import:s(()=>import("./sass-CMDmr8et.js"),"import")},{id:"scala",name:"Scala",import:s(()=>import("./scala-Cd0cRMx9.js"),"import")},{id:"scheme",name:"Scheme",import:s(()=>import("./scheme-BTeww-4z.js"),"import")},{id:"scss",name:"SCSS",import:s(()=>import("./scss-DoQ2ojfq.js"),"import")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:s(()=>import("./shaderlab-Bb-6Dmi7.js"),"import")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:s(()=>import("./shellscript-DOv5BRyJ.js"),"import")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:s(()=>import("./shellsession-FAdI92wp.js"),"import")},{id:"smalltalk",name:"Smalltalk",import:s(()=>import("./smalltalk-DSsji4Hu.js"),"import")},{id:"solidity",name:"Solidity",import:s(()=>import("./solidity-CThH5sBG.js"),"import")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:s(()=>import("./soy-rVg8SA9F.js"),"import")},{id:"sparql",name:"SPARQL",import:s(()=>import("./sparql-Cmp61EUJ.js"),"import")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:s(()=>import("./splunk-6XBPEST2.js"),"import")},{id:"sql",name:"SQL",import:s(()=>import("./sql-DxR2xW-a.js"),"import")},{id:"ssh-config",name:"SSH Config",import:s(()=>import("./ssh-config-BH1M7C1g.js"),"import")},{id:"stata",name:"Stata",import:s(()=>import("./stata-DGeqZgIM.js"),"import")},{id:"stylus",name:"Stylus",aliases:["styl"],import:s(()=>import("./stylus-DSrLtGYv.js"),"import")},{id:"svelte",name:"Svelte",import:s(()=>import("./svelte-KN4GH9Aw.js"),"import")},{id:"swift",name:"Swift",import:s(()=>import("./swift-C_vL8trm.js"),"import")},{id:"system-verilog",name:"SystemVerilog",import:s(()=>import("./system-verilog-BscxmKrE.js"),"import")},{id:"systemd",name:"Systemd Units",import:s(()=>import("./systemd-IQPSIA3x.js"),"import")},{id:"tasl",name:"Tasl",import:s(()=>import("./tasl-BxwAa5i0.js"),"import")},{id:"tcl",name:"Tcl",import:s(()=>import("./tcl-C_8Fx7bH.js"),"import")},{id:"templ",name:"Templ",import:s(()=>import("./templ-DHsMVtNJ.js"),"import")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:s(()=>import("./terraform-DBeuZS66.js"),"import")},{id:"tex",name:"TeX",import:s(()=>import("./tex-BqVuN0dX.js"),"import")},{id:"toml",name:"TOML",import:s(()=>import("./toml-BT9ZzGyQ.js"),"import")},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:s(()=>import("./ts-tags-CrowQU1l.js"),"import")},{id:"tsv",name:"TSV",import:s(()=>import("./tsv-DnLUQrgA.js"),"import")},{id:"tsx",name:"TSX",import:s(()=>import("./tsx-BlxWTfDV.js"),"import")},{id:"turtle",name:"Turtle",import:s(()=>import("./turtle-C15OxdQ5.js"),"import")},{id:"twig",name:"Twig",import:s(()=>import("./twig-3vSE8NKn.js"),"import")},{id:"typescript",name:"TypeScript",aliases:["ts"],import:s(()=>import("./typescript-DC8MraHL.js"),"import")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:s(()=>import("./typespec-D47volHK.js"),"import")},{id:"typst",name:"Typst",aliases:["typ"],import:s(()=>import("./typst-I4qd5QHW.js"),"import")},{id:"v",name:"V",import:s(()=>import("./v-C2TBxDwV.js"),"import")},{id:"vala",name:"Vala",import:s(()=>import("./vala-CO5hpdkB.js"),"import")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:s(()=>import("./vb-beD-FUib.js"),"import")},{id:"verilog",name:"Verilog",import:s(()=>import("./verilog-DVfdqzEq.js"),"import")},{id:"vhdl",name:"VHDL",import:s(()=>import("./vhdl-QZ3jNtnE.js"),"import")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:s(()=>import("./viml-BLluXI4E.js"),"import")},{id:"vue",name:"Vue",import:s(()=>import("./vue-Bz3QV-3Z.js"),"import")},{id:"vue-html",name:"Vue HTML",import:s(()=>import("./vue-html-BhJI9suT.js"),"import")},{id:"vyper",name:"Vyper",aliases:["vy"],import:s(()=>import("./vyper-CBWrHyXe.js"),"import")},{id:"wasm",name:"WebAssembly",import:s(()=>import("./wasm-Cicx_DS6.js"),"import")},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:s(()=>import("./wenyan-Cavfe_d0.js"),"import")},{id:"wgsl",name:"WGSL",import:s(()=>import("./wgsl-BZz1Hhek.js"),"import")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:s(()=>import("./wikitext-CEQyRnAI.js"),"import")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:s(()=>import("./wolfram-BICIrM8O.js"),"import")},{id:"xml",name:"XML",import:s(()=>import("./xml-sp2Egr0Z.js"),"import")},{id:"xsl",name:"XSL",import:s(()=>import("./xsl-BQYvujlj.js"),"import")},{id:"yaml",name:"YAML",aliases:["yml"],import:s(()=>import("./yaml-DK4oFTHQ.js"),"import")},{id:"zenscript",name:"ZenScript",import:s(()=>import("./zenscript-B1nm99XP.js"),"import")},{id:"zig",name:"Zig",import:s(()=>import("./zig-yX2IItqj.js"),"import")}],bT=Object.fromEntries(Vl.map(e=>[e.id,e.import])),_T=Object.fromEntries(Vl.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Wl={...bT,..._T},AT=s(async e=>import("./wasm-2oxoyaYy.js").then(t=>t.default(e)),"getWasmInlined"),kT=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:s(()=>import("./andromeeda-YxQm0tCS.js"),"import")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:s(()=>import("./aurora-x-BaWyeHV_.js"),"import")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:s(()=>import("./ayu-dark-Bn5gmY5k.js"),"import")},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:s(()=>import("./catppuccin-frappe-D7opz6Hv.js"),"import")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:s(()=>import("./catppuccin-latte-DQ-rpzxz.js"),"import")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:s(()=>import("./catppuccin-macchiato-CPw9RxLe.js"),"import")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:s(()=>import("./catppuccin-mocha-DV9_Ze0W.js"),"import")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:s(()=>import("./dark-plus-KEYLhlmT.js"),"import")},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:s(()=>import("./dracula-BpDWT_aG.js"),"import")},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:s(()=>import("./dracula-soft-D46m5Xd3.js"),"import")},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:s(()=>import("./everforest-dark-D5lQfeOG.js"),"import")},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:s(()=>import("./everforest-light-D8V69RRQ.js"),"import")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:s(()=>import("./github-dark-CzPA46E-.js"),"import")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:s(()=>import("./github-dark-default-BXF7Vm5l.js"),"import")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:s(()=>import("./github-dark-dimmed-CRDKj6ck.js"),"import")},{id:"github-light",displayName:"GitHub Light",type:"light",import:s(()=>import("./github-light-CRlnGVMD.js"),"import")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:s(()=>import("./github-light-default-UREJT2Bw.js"),"import")},{id:"houston",displayName:"Houston",type:"dark",import:s(()=>import("./houston-CZZ6oYdA.js"),"import")},{id:"laserwave",displayName:"LaserWave",type:"dark",import:s(()=>import("./laserwave-cW9vKj3g.js"),"import")},{id:"light-plus",displayName:"Light Plus",type:"light",import:s(()=>import("./light-plus-BsvsQ1iS.js"),"import")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:s(()=>import("./material-theme-CgwOUXSn.js"),"import")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:s(()=>import("./material-theme-darker-CO7HdiM_.js"),"import")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:s(()=>import("./material-theme-lighter-qxoleWdb.js"),"import")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:s(()=>import("./material-theme-ocean-ChH25C4w.js"),"import")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:s(()=>import("./material-theme-palenight-DOqtC9FP.js"),"import")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:s(()=>import("./min-dark-iSbrOpM4.js"),"import")},{id:"min-light",displayName:"Min Light",type:"light",import:s(()=>import("./min-light-BITGhEdf.js"),"import")},{id:"monokai",displayName:"Monokai",type:"dark",import:s(()=>import("./monokai-sMI-pExk.js"),"import")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:s(()=>import("./night-owl-BeocmOPF.js"),"import")},{id:"nord",displayName:"Nord",type:"dark",import:s(()=>import("./nord-CsyjKwr8.js"),"import")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:s(()=>import("./one-dark-pro-BTtaZsq5.js"),"import")},{id:"one-light",displayName:"One Light",type:"light",import:s(()=>import("./one-light-alpzPJ78.js"),"import")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:s(()=>import("./poimandres-Cda-MJFk.js"),"import")},{id:"red",displayName:"Red",type:"dark",import:s(()=>import("./red-jaXbsbtS.js"),"import")},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:s(()=>import("./rose-pine-DBqw-ob8.js"),"import")},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:s(()=>import("./rose-pine-dawn-hFkjxiNL.js"),"import")},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:s(()=>import("./rose-pine-moon-DNhm1ofJ.js"),"import")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:s(()=>import("./slack-dark-C7oZ9nno.js"),"import")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:s(()=>import("./slack-ochin-hXH8Gyq8.js"),"import")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:s(()=>import("./snazzy-light-CA9nliXM.js"),"import")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:s(()=>import("./solarized-dark-C86elO-m.js"),"import")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:s(()=>import("./solarized-light-xPNGhBYe.js"),"import")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:s(()=>import("./synthwave-84-BBDuFDsq.js"),"import")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:s(()=>import("./tokyo-night-BMRpS3Xo.js"),"import")},{id:"vesper",displayName:"Vesper",type:"dark",import:s(()=>import("./vesper-BSB_bK09.js"),"import")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:s(()=>import("./vitesse-black-BHqu4VKd.js"),"import")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:s(()=>import("./vitesse-dark-EQHFthT6.js"),"import")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:s(()=>import("./vitesse-light-NrGJGX17.js"),"import")}],CT=Object.fromEntries(kT.map(e=>[e.id,e.import]));var nt;(function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"})(nt||(nt={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var mn;(function(e){function t(f){return f.toString(2).padStart(32,"0")}s(t,"toBinaryStr"),e.toBinaryStr=t;function n(f){const h=e.getLanguageId(f),p=e.getTokenType(f),m=e.getFontStyle(f),g=e.getForeground(f),E=e.getBackground(f);console.log({languageId:h,tokenType:p,fontStyle:m,foreground:g,background:E})}s(n,"print"),e.print=n;function r(f){return(f&255)>>>0}s(r,"getLanguageId"),e.getLanguageId=r;function i(f){return(f&768)>>>8}s(i,"getTokenType"),e.getTokenType=i;function a(f){return(f&1024)!==0}s(a,"containsBalancedBrackets"),e.containsBalancedBrackets=a;function o(f){return(f&30720)>>>11}s(o,"getFontStyle"),e.getFontStyle=o;function l(f){return(f&16744448)>>>15}s(l,"getForeground"),e.getForeground=l;function c(f){return(f&4278190080)>>>24}s(c,"getBackground"),e.getBackground=c;function u(f,h,p,m,g,E,T){let _=e.getLanguageId(f),b=e.getTokenType(f),k=e.containsBalancedBrackets(f)?1:0,N=e.getFontStyle(f),L=e.getForeground(f),S=e.getBackground(f);return h!==0&&(_=h),p!==8&&(b=p),m!==null&&(k=m?1:0),g!==-1&&(N=g),E!==0&&(L=E),T!==0&&(S=T),(_<<0|b<<8|k<<10|N<<11|L<<15|S<<24)>>>0}s(u,"set"),e.set=u})(mn||(mn={}));function CM(e){return e}s(CM,"toOptionalTokenType");function SM(e){return e}s(SM,"fromOptionalTokenType");function ii(e,t){const n=[],r=ST(e);let i=r.next();for(;i!==null;){let c=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=o();if(n.push({matcher:u,priority:c}),i!==",")break;i=r.next()}return n;function a(){if(i==="-"){i=r.next();const c=a();return u=>!!c&&!c(u)}if(i==="("){i=r.next();const c=l();return i===")"&&(i=r.next()),c}if(Kl(i)){const c=[];do c.push(i),i=r.next();while(Kl(i));return u=>t(c,u)}return null}function o(){const c=[];let u=a();for(;u;)c.push(u),u=a();return f=>c.every(h=>h(f))}function l(){const c=[];let u=o();for(;u&&(c.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=o()}return f=>c.some(h=>h(f))}}s(ii,"createMatchers");function Kl(e){return!!e&&!!e.match(/[\w\.:]+/)}s(Kl,"isIdentifier");function ST(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:s(()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r},"next")}}s(ST,"newTokenizer");function Ql(e){typeof e.dispose=="function"&&e.dispose()}s(Ql,"disposeOnigString");function NT(e){return vs(e)}s(NT,"clone");function vs(e){return Array.isArray(e)?wT(e):typeof e=="object"?IT(e):e}s(vs,"doClone");function wT(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=vs(e[n]);return t}s(wT,"cloneArray");function IT(e){let t={};for(let n in e)t[n]=vs(e[n]);return t}s(IT,"cloneObj");function Xl(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}s(Xl,"mergeObjects");function Jl(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Jl(e.substring(0,e.length-1)):e.substr(~t+1)}s(Jl,"basename$1");let Ms=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class si{static{s(this,"RegexSource")}static hasCaptures(t){return t===null?!1:(Ms.lastIndex=0,Ms.test(t))}static replaceCaptures(t,n,r){return t.replace(Ms,(i,a,o,l)=>{let c=r[parseInt(a||o,10)];if(c){let u=n.substring(c.start,c.end);for(;u[0]===".";)u=u.substring(1);switch(l){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return i})}}function Zl(e,t){return e<t?-1:e>t?1:0}s(Zl,"strcmp");function ec(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;i<n;i++){let a=Zl(e[i],t[i]);if(a!==0)return a}return 0}return n-r}s(ec,"strArrCmp");function tc(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))}s(tc,"isValidHexColor");function nc(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}s(nc,"escapeRegExpCharacters");class rc{static{s(this,"CachedFn")}fn;cache=new Map;constructor(t){this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}}class nr{static{s(this,"TopLevelRuleReference")}scopeName;constructor(t){this.scopeName=t}toKey(){return this.scopeName}}class LT{static{s(this,"TopLevelRepositoryRuleReference")}scopeName;ruleName;constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}class OT{static{s(this,"ExternalReferenceCollector")}_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}}class RT{static{s(this,"ScopeDependencyProcessor")}repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new nr(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const n=new OT;for(const r of t)DT(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof nr){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}}function DT(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof nr?ai({baseGrammar:a,selfGrammar:i},r):Fs(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);const o=n.injections(e.scopeName);if(o)for(const l of o)r.add(new nr(l))}s(DT,"collectReferencesOfReference");function Fs(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];oi([r],t,n)}}s(Fs,"collectExternalReferencesInTopLevelRepositoryRule");function ai(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&oi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&oi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}s(ai,"collectExternalReferencesInTopLevelRule");function oi(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Xl({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&oi(r.patterns,{...t,repository:i},n);const a=r.include;if(!a)continue;const o=ic(a);switch(o.kind){case 0:ai({...t,selfGrammar:t.baseGrammar},n);break;case 1:ai(t,n);break;case 2:Fs(o.ruleName,{...t,repository:i},n);break;case 3:case 4:const l=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const c={baseGrammar:t.baseGrammar,selfGrammar:l,repository:i};o.kind===4?Fs(o.ruleName,c,n):ai(c,n)}else o.kind===4?n.add(new LT(o.scopeName,o.ruleName)):n.add(new nr(o.scopeName));break}}}s(oi,"collectExternalReferencesInRules");class xT{static{s(this,"BaseReference")}kind=0}class PT{static{s(this,"SelfReference")}kind=1}class vT{static{s(this,"RelativeReference")}ruleName;kind=2;constructor(t){this.ruleName=t}}class MT{static{s(this,"TopLevelReference")}scopeName;kind=3;constructor(t){this.scopeName=t}}class FT{static{s(this,"TopLevelRepositoryReference")}scopeName;ruleName;kind=4;constructor(t,n){this.scopeName=t,this.ruleName=n}}function ic(e){if(e==="$base")return new xT;if(e==="$self")return new PT;const t=e.indexOf("#");if(t===-1)return new MT(e);if(t===0)return new vT(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new FT(n,r)}}s(ic,"parseInclude");const BT=/\\(\d+)/,sc=/\\(\d+)/g,UT=-1,ac=-2;function NM(e){return e}s(NM,"ruleIdFromNumber");function wM(e){return e}s(wM,"ruleIdToNumber");class rr{static{s(this,"Rule")}$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,i){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=si.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=si.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Jl(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:si.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:si.replaceCaptures(this._contentName,t,n)}}class HT extends rr{static{s(this,"CaptureRule")}retokenizeCapturedWithRuleId;constructor(t,n,r,i,a){super(t,n,r,i),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,i){throw new Error("Not supported!")}}class $T extends rr{static{s(this,"MatchRule")}_match;captures;_cachedCompiledPatterns;constructor(t,n,r,i,a){super(t,n,r,null),this._match=new an(i,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ir,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class oc extends rr{static{s(this,"IncludeOnlyRule")}hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,i,a){super(t,n,r,i),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ir,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Bs extends rr{static{s(this,"BeginEndRule")}_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,i,a,o,l,c,u,f){super(t,n,r,i),this._begin=new an(a,this.id),this.beginCaptures=o,this._end=new an(l||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=u||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,i)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ir;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}class li extends rr{static{s(this,"BeginWhileRule")}_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,i,a,o,l,c,u){super(t,n,r,i),this._begin=new an(a,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new an(l,ac),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ir;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,i){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,i)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ir,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}}class _e{static{s(this,"RuleFactory")}static createCaptureRule(t,n,r,i,a){return t.registerRule(o=>new HT(n,o,r,i,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new $T(t.$vscodeTextmateLocation,t.id,t.name,t.match,_e._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Xl({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new oc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,_e._compilePatterns(a,n,r))}return t.while?new li(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,_e._compileCaptures(t.whileCaptures||t.captures,n,r),_e._compilePatterns(t.patterns,n,r)):new Bs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,_e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,_e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>a&&(a=l)}for(let o=0;o<=a;o++)i[o]=null;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let c=0;t[o].patterns&&(c=_e.getCompiledRuleId(t[o],n,r)),i[l]=_e.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,c)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){const l=t[a];let c=-1;if(l.include){const u=ic(l.include);switch(u.kind){case 0:case 1:c=_e.getCompiledRuleId(r[l.include],n,r);break;case 2:let f=r[u.ruleName];f&&(c=_e.getCompiledRuleId(f,n,r));break;case 3:case 4:const h=u.scopeName,p=u.kind===4?u.ruleName:null,m=n.getExternalGrammar(h,r);if(m)if(p){let g=m.repository[p];g&&(c=_e.getCompiledRuleId(g,n,m.repository))}else c=_e.getCompiledRuleId(m.repository.$self,n,m.repository);break}}else c=_e.getCompiledRuleId(l,n,r);if(c!==-1){const u=n.getRule(c);let f=!1;if((u instanceof oc||u instanceof Bs||u instanceof li)&&u.hasMissingPatterns&&u.patterns.length===0&&(f=!0),f)continue;i.push(c)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}}class an{static{s(this,"RegExpSource")}source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t){const r=t.length;let i=0,a=[],o=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const u=t.charAt(l+1);u==="z"?(a.push(t.substring(i,l)),a.push("$(?!\\n)(?<!\\n)"),i=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,i===0?this.source=t:(a.push(t.substring(i,r)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=BT.test(this.source)}clone(){return new an(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){let r=n.map(i=>t.substring(i.start,i.end));return sc.lastIndex=0,this.source.replace(sc,(i,a)=>nc(r[parseInt(a,10)]||""))}_buildAnchorCache(){let t=[],n=[],r=[],i=[],a,o,l,c;for(a=0,o=this.source.length;a<o;a++)l=this.source.charAt(a),t[a]=l,n[a]=l,r[a]=l,i[a]=l,l==="\\"&&a+1<o&&(c=this.source.charAt(a+1),c==="A"?(t[a+1]="\uFFFF",n[a+1]="\uFFFF",r[a+1]="A",i[a+1]="A"):c==="G"?(t[a+1]="\uFFFF",n[a+1]="G",r[a+1]="\uFFFF",i[a+1]="G"):(t[a+1]=c,n[a+1]=c,r[a+1]=c,i[a+1]=c),a++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class ir{static{s(this,"RegExpSourceList")}_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new lc(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let i=this._items.map(a=>a.resolveAnchors(n,r));return new lc(t,i,this._items.map(a=>a.ruleId))}}class lc{static{s(this,"CompiledRule")}regExps;rules;scanner;constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
733
733
|
`)}findNextMatchSync(t,n,r){const i=this.scanner.findNextMatchSync(t,n,r);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}}class ci{static{s(this,"Theme")}_colorMap;_defaults;_root;static createFromRawTheme(t,n){return this.createFromParsedTheme(jT(t),n)}static createFromParsedTheme(t,n){return GT(t,n)}_cachedMatchRoot=new rc(t=>this._root.match(t));constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,i=this._cachedMatchRoot.get(n).find(a=>zT(t.parent,a.parentScopes));return i?new cc(i.fontStyle,i.foreground,i.background):null}}class on{static{s(this,"ScopeStack")}parent;scopeName;static push(t,n){for(const r of n)t=new on(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new on(n,t[r]);return n}constructor(t,n){this.parent=t,this.scopeName=n}push(t){return new on(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}}function zT(e,t){if(t===null)return!0;let n=0,r=t[n];for(;e;){if(qT(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}s(zT,"_scopePathMatchesParentScopes");function qT(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}s(qT,"_matchesScope");class cc{static{s(this,"StyleAttributes")}fontStyle;foregroundId;backgroundId;constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}}function jT(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,a=t.length;i<a;i++){let o=t[i];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let c=-1;if(typeof o.settings.fontStyle=="string"){c=0;let h=o.settings.fontStyle.split(" ");for(let p=0,m=h.length;p<m;p++)switch(h[p]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let u=null;typeof o.settings.foreground=="string"&&tc(o.settings.foreground)&&(u=o.settings.foreground);let f=null;typeof o.settings.background=="string"&&tc(o.settings.background)&&(f=o.settings.background);for(let h=0,p=l.length;h<p;h++){let g=l[h].trim().split(" "),E=g[g.length-1],T=null;g.length>1&&(T=g.slice(0,g.length-1),T.reverse()),n[r++]=new YT(E,T,i,c,u,f)}}return n}s(jT,"parseTheme");class YT{static{s(this,"ParsedThemeRule")}scope;parentScopes;index;fontStyle;foreground;background;constructor(t,n,r,i,a,o){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=i,this.foreground=a,this.background=o}}function GT(e,t){e.sort((c,u)=>{let f=Zl(c.scope,u.scope);return f!==0||(f=ec(c.parentScopes,u.parentScopes),f!==0)?f:c.index-u.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(r=c.foreground),c.background!==null&&(i=c.background)}let a=new VT(t),o=new cc(n,a.getId(r),a.getId(i)),l=new qr(new zr(0,null,-1,0,0),[]);for(let c=0,u=e.length;c<u;c++){let f=e[c];l.insert(0,f.scope,f.parentScopes,f.fontStyle,a.getId(f.foreground),a.getId(f.background))}return new ci(a,o,l)}s(GT,"resolveParsedThemeRules");class VT{static{s(this,"ColorMap")}_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}}class zr{static{s(this,"ThemeTrieElementRule")}scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,i,a){this.scopeDepth=t,this.parentScopes=n,this.fontStyle=r,this.foreground=i,this.background=a}clone(){return new zr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}}class qr{static{s(this,"ThemeTrieElement")}_mainRule;_children;_rulesWithParentScopes;constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _sortBySpecificity(t){return t.length===1||t.sort(this._cmpBySpecificity),t}static _cmpBySpecificity(t,n){if(t.scopeDepth===n.scopeDepth){const r=t.parentScopes,i=n.parentScopes;let a=r===null?0:r.length,o=i===null?0:i.length;if(a===o)for(let l=0;l<a;l++){const c=r[l].length,u=i[l].length;if(c!==u)return u-c}return o-a}return n.scopeDepth-t.scopeDepth}match(t){if(t==="")return qr._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let n=t.indexOf("."),r,i;return n===-1?(r=t,i=""):(r=t.substring(0,n),i=t.substring(n+1)),this._children.hasOwnProperty(r)?this._children[r].match(i):qr._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(t,n,r,i,a,o){if(n===""){this._doInsertHere(t,r,i,a,o);return}let l=n.indexOf("."),c,u;l===-1?(c=n,u=""):(c=n.substring(0,l),u=n.substring(l+1));let f;this._children.hasOwnProperty(c)?f=this._children[c]:(f=new qr(this._mainRule.clone(),zr.cloneArr(this._rulesWithParentScopes)),this._children[c]=f),f.insert(t+1,u,r,i,a,o)}_doInsertHere(t,n,r,i,a){if(n===null){this._mainRule.acceptOverwrite(t,r,i,a);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let c=this._rulesWithParentScopes[o];if(ec(c.parentScopes,n)===0){c.acceptOverwrite(t,r,i,a);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new zr(t,n,r,i,a))}}class Us{static{s(this,"BasicScopeAttributes")}languageId;tokenType;constructor(t,n){this.languageId=t,this.tokenType=n}}class Ts{static{s(this,"BasicScopeAttributesProvider")}_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Us(t,8),this._embeddedLanguagesMatcher=new WT(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ts._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Us(0,0);_getBasicScopeAttributes=new rc(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Us(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ts.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class WT{static{s(this,"ScopeMatcher")}values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,i])=>nc(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}}class uc{static{s(this,"TokenizeStringResult")}stack;stoppedEarly;constructor(t,n){this.stack=t,this.stoppedEarly=n}}function hc(e,t,n,r,i,a,o,l){const c=t.content.length;let u=!1,f=-1;if(o){const m=KT(e,t,n,r,i,a);i=m.stack,r=m.linePos,n=m.isFirstLine,f=m.anchorPosition}const h=Date.now();for(;!u;){if(l!==0&&Date.now()-h>l)return new uc(i,!0);p()}return new uc(i,!1);function p(){const m=QT(e,t,n,r,i,f);if(!m){a.produce(i,c),u=!0;return}const g=m.captureIndices,E=m.matchedRuleId,T=g&&g.length>0?g[0].end>r:!1;if(E===UT){const _=i.getRule(e);a.produce(i,g[0].start),i=i.withContentNameScopesList(i.nameScopesList),sr(e,t,n,i,a,_.endCaptures,g),a.produce(i,g[0].end);const b=i;if(i=i.parent,f=b.getAnchorPos(),!T&&b.getEnterPos()===r){i=b,a.produce(i,c),u=!0;return}}else{const _=e.getRule(E);a.produce(i,g[0].start);const b=i,k=_.getName(t.content,g),N=i.contentNameScopesList.pushAttributed(k,e);if(i=i.push(E,r,f,g[0].end===c,null,N,N),_ instanceof Bs){const L=_;sr(e,t,n,i,a,L.beginCaptures,g),a.produce(i,g[0].end),f=g[0].end;const S=L.getContentName(t.content,g),R=N.pushAttributed(S,e);if(i=i.withContentNameScopesList(R),L.endHasBackReferences&&(i=i.withEndRule(L.getEndWithResolvedBackReferences(t.content,g))),!T&&b.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),u=!0;return}}else if(_ instanceof li){const L=_;sr(e,t,n,i,a,L.beginCaptures,g),a.produce(i,g[0].end),f=g[0].end;const S=L.getContentName(t.content,g),R=N.pushAttributed(S,e);if(i=i.withContentNameScopesList(R),L.whileHasBackReferences&&(i=i.withEndRule(L.getWhileWithResolvedBackReferences(t.content,g))),!T&&b.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),u=!0;return}}else if(sr(e,t,n,i,a,_.captures,g),a.produce(i,g[0].end),i=i.pop(),!T){i=i.safePop(),a.produce(i,c),u=!0;return}}g[0].end>r&&(r=g[0].end,n=!1)}}s(hc,"_tokenizeString");function KT(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1;const l=[];for(let c=i;c;c=c.pop()){const u=c.getRule(e);u instanceof li&&l.push({rule:u,stack:c})}for(let c=l.pop();c;c=l.pop()){const{ruleScanner:u,findOptions:f}=ZT(c.rule,e,c.stack.endRule,n,r===o),h=u.findNextMatchSync(t,r,f);if(h){if(h.ruleId!==ac){i=c.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(a.produce(c.stack,h.captureIndices[0].start),sr(e,t,n,c.stack,a,c.rule.whileCaptures,h.captureIndices),a.produce(c.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}s(KT,"_checkWhileConditions");function QT(e,t,n,r,i,a){const o=XT(e,t,n,r,i,a),l=e.getInjections();if(l.length===0)return o;const c=JT(l,e,t,n,r,i,a);if(!c)return o;if(!o)return c;const u=o.captureIndices[0].start,f=c.captureIndices[0].start;return f<u||c.priorityMatch&&f===u?c:o}s(QT,"matchRuleOrInjections");function XT(e,t,n,r,i,a){const o=i.getRule(e),{ruleScanner:l,findOptions:c}=fc(o,e,i.endRule,n,r===a),u=l.findNextMatchSync(t,r,c);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}s(XT,"matchRule");function JT(e,t,n,r,i,a,o){let l=Number.MAX_VALUE,c=null,u,f=0;const h=a.contentNameScopesList.getScopeNames();for(let p=0,m=e.length;p<m;p++){const g=e[p];if(!g.matcher(h))continue;const E=t.getRule(g.ruleId),{ruleScanner:T,findOptions:_}=fc(E,t,null,r,i===o),b=T.findNextMatchSync(n,i,_);if(!b)continue;const k=b.captureIndices[0].start;if(!(k>=l)&&(l=k,c=b.captureIndices,u=b.ruleId,f=g.priority,l===i))break}return c?{priorityMatch:f===-1,captureIndices:c,matchedRuleId:u}:null}s(JT,"matchInjections");function fc(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}s(fc,"prepareRuleSearch");function ZT(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}s(ZT,"prepareRuleWhileSearch");function sr(e,t,n,r,i,a,o){if(a.length===0)return;const l=t.content,c=Math.min(a.length,o.length),u=[],f=o[0].end;for(let h=0;h<c;h++){const p=a[h];if(p===null)continue;const m=o[h];if(m.length===0)continue;if(m.start>f)break;for(;u.length>0&&u[u.length-1].endPos<=m.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,m.start):i.produce(r,m.start),p.retokenizeCapturedWithRuleId){const E=p.getName(l,o),T=r.contentNameScopesList.pushAttributed(E,e),_=p.getContentName(l,o),b=T.pushAttributed(_,e),k=r.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,T,b),N=e.createOnigString(l.substring(0,m.end));hc(e,N,n&&m.start===0,m.start,k,i,!1,0),Ql(N);continue}const g=p.getName(l,o);if(g!==null){const T=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);u.push(new ey(T,m.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}s(sr,"handleCaptures");class ey{static{s(this,"LocalStackElement")}scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}}function ty(e,t,n,r,i,a,o,l){return new ry(e,t,n,r,i,a,o,l)}s(ty,"createGrammar");function dc(e,t,n,r,i){const a=ii(t,ui),o=_e.getCompiledRuleId(n,r,i.repository);for(const l of a)e.push({debugSelector:t,matcher:l.matcher,ruleId:o,grammar:i,priority:l.priority})}s(dc,"collectInjections");function ui(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(ny(t[i],r))return n=i+1,!0;return!1})}s(ui,"nameMatcher");function ny(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}s(ny,"scopesAreMatching");class ry{static{s(this,"Grammar")}_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(t,n,r,i,a,o,l,c){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new Ts(r,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=mc(n,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const u of Object.keys(a)){const f=ii(u,ui);for(const h of f)this._tokenTypeMatchers.push({matcher:h.matcher,type:a[u]})}}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:s(a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),"lookup"),injections:s(a=>this._grammarRepository.injections(a),"injections")},n=[],r=this._rootScopeName,i=t.lookup(r);if(i){const a=i.injections;if(a)for(let l in a)dc(n,l,a[l],this,i);const o=this._grammarRepository.injections(r);o&&o.forEach(l=>{const c=this.getExternalGrammar(l);if(c){const u=c.injectionSelector;u&&dc(n,u,c,this,c)}})}return n.sort((a,o)=>a.priority-o.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=mc(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const i=this._tokenize(t,n,!1,r);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(t,n,r=0){const i=this._tokenize(t,n,!0,r);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(t,n,r,i){this._rootId===-1&&(this._rootId=_e.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!n||n===dt.NULL){a=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),p=mn.set(0,f.languageId,f.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),m=this.getRule(this._rootId).getName(null,null);let g;m?g=Oe.createRootAndLookUpScopeName(m,p,this):g=Oe.createRoot("unknown",p),n=new dt(null,this._rootId,-1,-1,!1,null,g,g)}else a=!1,n.reset();t=t+`
|
|
734
734
|
`;const o=this.createOnigString(t),l=o.content.length,c=new sy(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),u=hc(this,o,a,0,n,c,!0,i);return Ql(o),{lineLength:l,lineTokens:c,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}}function mc(e,t){return e=NT(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}s(mc,"initGrammar");class Oe{static{s(this,"AttributedScopeStack")}parent;scopePath;tokenAttributes;static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(const a of n)i=on.push(i,a.scopeNames),r=new Oe(r,i,a.encodedTokenAttributes);return r}static createRoot(t,n){return new Oe(null,new on(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),a=new on(null,t),o=r.themeProvider.themeMatch(a),l=Oe.mergeAttributes(n,i,o);return new Oe(null,a,l)}get scopeName(){return this.scopePath.scopeName}constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}toString(){return this.getScopeNames().join(" ")}equals(t){return Oe.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let i=-1,a=0,o=0;return r!==null&&(i=r.fontStyle,a=r.foregroundId,o=r.backgroundId),mn.set(t,n.languageId,n.tokenType,null,i,a,o)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Oe._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const a of r)i=Oe._pushAttributed(i,a,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),l=Oe.mergeAttributes(t.tokenAttributes,i,o);return new Oe(t,a,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}}class dt{static{s(this,"StateStackImpl")}parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new dt(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(t,n,r,i,a,o,l,c){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(t){return t===null?!1:dt._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Oe.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){dt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,l){return new dt(this,t,n,r,i,a,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new dt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Oe.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new dt(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Oe.fromExtension(r,n.contentNameScopesList))}}class iy{static{s(this,"BalancedBracketSelectors")}balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ii(r,ui).map(i=>i.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>ii(r,ui).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}}class sy{static{s(this,"LineTokens")}balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(t,n,r,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let i=t?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(i=mn.set(i,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(o))}if(a&&(i=mn.set(i,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let i=0,a=this._binaryTokens.length;i<a;i++)r[i]=this._binaryTokens[i];return r}}class ay{static{s(this,"SyncRegistry")}_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(t,n){this._onigLibPromise=n,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}async grammarForScopeName(t,n,r,i,a){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,ty(t,o,n,r,i,a,this,await this._onigLibPromise))}return this._grammars.get(t)}}let oy=class{static{s(this,"Registry")}_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new ay(ci.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ci.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new iy(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}async _loadGrammar(t,n,r,i,a){const o=new RT(this._syncRegistry,t);for(;o.Q.length>0;)await Promise.all(o.Q.map(l=>this._loadSingleGrammar(l.scopeName))),o.processQueue();return this._grammarForScopeName(t,n,r,i,a)}async _loadSingleGrammar(t){return this._ensureGrammarCache.has(t)||this._ensureGrammarCache.set(t,this._doLoadSingleGrammar(t)),this._ensureGrammarCache.get(t)}async _doLoadSingleGrammar(t){const n=await this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}async addGrammar(t,n=[],r=0,i=null){return this._syncRegistry.addGrammar(t,n),await this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,a=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,a)}};const pc=dt.NULL,Ce={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class kt{static{s(this,"StackElementMetadata")}static toBinaryStr(t){let n=t.toString(2);for(;n.length<32;)n=`0${n}`;return n}static getLanguageId(t){return(t&Ce.LANGUAGEID_MASK)>>>Ce.LANGUAGEID_OFFSET}static getTokenType(t){return(t&Ce.TOKEN_TYPE_MASK)>>>Ce.TOKEN_TYPE_OFFSET}static getFontStyle(t){return(t&Ce.FONT_STYLE_MASK)>>>Ce.FONT_STYLE_OFFSET}static getForeground(t){return(t&Ce.FOREGROUND_MASK)>>>Ce.FOREGROUND_OFFSET}static getBackground(t){return(t&Ce.BACKGROUND_MASK)>>>Ce.BACKGROUND_OFFSET}static containsBalancedBrackets(t){return(t&Ce.BALANCED_BRACKETS_MASK)!==0}static set(t,n,r,i,a,o){let l=kt.getLanguageId(t),c=kt.getTokenType(t),u=kt.getFontStyle(t),f=kt.getForeground(t),h=kt.getBackground(t);const p=kt.containsBalancedBrackets(t)?1:0;return n!==0&&(l=n),r!==0&&(c=r===8?0:r),i!==nt.NotSet&&(u=i),a!==0&&(f=a),o!==0&&(h=o),(l<<Ce.LANGUAGEID_OFFSET|c<<Ce.TOKEN_TYPE_OFFSET|u<<Ce.FONT_STYLE_OFFSET|p<<Ce.BALANCED_BRACKETS_OFFSET|f<<Ce.FOREGROUND_OFFSET|h<<Ce.BACKGROUND_OFFSET)>>>0}}function hi(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let a=0;a<n.length;a+=2){const o=t?n[a]+(n[a+1]||""):n[a];i.push([o,r]),r+=n[a].length,r+=n[a+1]?.length||0}return i}s(hi,"splitLines$1");function Hs(e){return!e||["plaintext","txt","text","plain"].includes(e)}s(Hs,"isPlainLang");function gc(e){return e==="ansi"||Hs(e)}s(gc,"isSpecialLang");function $s(e){return e==="none"}s($s,"isNoneTheme");function Ec(e){return $s(e)}s(Ec,"isSpecialTheme");function Tc(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}s(Tc,"addClassToHast");function ly(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}s(ly,"splitToken");function cy(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const a=n.filter(o=>i.offset<o&&o<i.offset+i.content.length).map(o=>o-i.offset).sort((o,l)=>o-l);return a.length?ly(i,a):i})):e}s(cy,"splitTokens");function fi(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,a]of Object.entries(t?.colorReplacements||{}))typeof a=="string"?n[i]=a:i===r&&Object.assign(n,a);return n}s(fi,"resolveColorReplacements");function Ut(e,t){return e&&(t?.[e?.toLowerCase()]||e)}s(Ut,"applyColorReplacements");function yc(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&nt.Italic&&(t["font-style"]="italic"),e.fontStyle&nt.Bold&&(t["font-weight"]="bold"),e.fontStyle&nt.Underline&&(t["text-decoration"]="underline")),t}s(yc,"getTokenStyleObject");function bc(e){return Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}s(bc,"stringifyTokenStyle");function uy(e){const t=hi(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=i,o=0;for(const l of t){if(a<l.length)break;a-=l.length,o++}return{line:o,character:a}}s(n,"indexToPos");function r(i,a){let o=0;for(let l=0;l<i;l++)o+=t[l].length;return o+=a,o}return s(r,"posToIndex"),{lines:t,indexToPos:n,posToIndex:r}}s(uy,"createPositionConverter");var Ht=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],zs={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function hy(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}s(hy,"findSequence");function _c(e,t){let n=1;const r=e[t+n++];let i;if(r==="2"){const a=[e[t+n++],e[t+n++],e[t+n]].map(o=>Number.parseInt(o));a.length===3&&!a.some(o=>Number.isNaN(o))&&(i={type:"rgb",rgb:a})}else if(r==="5"){const a=Number.parseInt(e[t+n]);Number.isNaN(a)||(i={type:"table",index:Number(a)})}return[n,i]}s(_c,"parseColor");function fy(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=Number.parseInt(r);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)zs[i]&&t.push({type:"setDecoration",value:zs[i]});else if(i<=29){const a=zs[i-20];a&&t.push({type:"resetDecoration",value:a})}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ht[i-30]}});else if(i===38){const[a,o]=_c(e,n);o&&t.push({type:"setForegroundColor",value:o}),n+=a}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ht[i-40]}});else if(i===48){const[a,o]=_c(e,n);o&&t.push({type:"setBackgroundColor",value:o}),n+=a}else i===49?t.push({type:"resetBackgroundColor"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ht[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ht[i-100+8]}})}return t}s(fy,"parseSequence");function dy(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let a=0;do{const o=hy(r,a),l=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(l.length>0&&i.push({value:l,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const c=fy(o.sequence);for(const u of c)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of c)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}a=o.position}while(a<r.length);return i}}}s(dy,"createAnsiSequenceParser");var my={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function py(e=my){function t(l){return e[l]}s(t,"namedColor");function n(l){return`#${l.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}s(n,"rgbColor");let r;function i(){if(r)return r;r=[];for(let u=0;u<Ht.length;u++)r.push(t(Ht[u]));let l=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let f=0;f<6;f++)for(let h=0;h<6;h++)r.push(n([l[u],l[f],l[h]]));let c=8;for(let u=0;u<24;u++,c+=10)r.push(n([c,c,c]));return r}s(i,"getColorTable");function a(l){return i()[l]}s(a,"tableColor");function o(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return a(l.index)}}return s(o,"value"),{value:o}}s(py,"createColorPalette");function gy(e,t,n){const r=fi(e,n),i=hi(t),a=py(Object.fromEntries(Ht.map(l=>[l,e.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),o=dy();return i.map(l=>o.parse(l[0]).map(c=>{let u,f;c.decorations.has("reverse")?(u=c.background?a.value(c.background):e.bg,f=c.foreground?a.value(c.foreground):e.fg):(u=c.foreground?a.value(c.foreground):e.fg,f=c.background?a.value(c.background):void 0),u=Ut(u,r),f=Ut(f,r),c.decorations.has("dim")&&(u=Ey(u));let h=nt.None;return c.decorations.has("bold")&&(h|=nt.Bold),c.decorations.has("italic")&&(h|=nt.Italic),c.decorations.has("underline")&&(h|=nt.Underline),{content:c.value,offset:l[1],color:u,bgColor:f,fontStyle:h}}))}s(gy,"tokenizeAnsiWithTheme");function Ey(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}s(Ey,"dimColor");class ae extends Error{static{s(this,"ShikiError")}constructor(t){super(t),this.name="ShikiError"}}class ys{static{s(this,"GrammarState")}_stack;lang;theme;static initial(t,n){return new ys(pc,t,n)}constructor(t,n,r){this._stack=t,this.lang=n,this.theme=r}get scopes(){return Ty(this._stack)}toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes}}}function Ty(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const a=i?.nameScopesList?.scopeName;a&&t.push(a),i.parent&&r(i.parent)}return s(r,"pushScope"),r(e),t}s(Ty,"getScopes");function yy(e){if(!(e instanceof ys))throw new ae("Invalid grammar state");return e._stack}s(yy,"getGrammarStack");function qs(e,t,n={}){const{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(Hs(r)||$s(i))return hi(t).map(c=>[{content:c[0],offset:c[1]}]);const{theme:a,colorMap:o}=e.setTheme(i);if(r==="ansi")return gy(a,t,n);const l=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new ae(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(n.grammarState.theme!==i)throw new ae(`Grammar state theme "${n.grammarState.theme}" does not match highlight theme "${i}"`)}return _y(t,l,a,o,n)}s(qs,"codeToTokensBase$1");function by(e,t,n={}){const{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(Hs(r)||$s(i))throw new ae("Plain language does not have grammar state");if(r==="ansi")throw new ae("ANSI language does not have grammar state");const{theme:a,colorMap:o}=e.setTheme(i),l=e.getLanguage(r);return new ys(js(t,l,a,o,n).stateStack,l.name,a.name)}s(by,"getLastGrammarState$1");function _y(e,t,n,r,i){return js(e,t,n,r,i).tokens}s(_y,"tokenizeWithTheme");function js(e,t,n,r,i){const a=fi(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,c=hi(e);let u=i.grammarState?yy(i.grammarState):i.grammarContextCode!=null?js(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:pc,f=[];const h=[],p=[];if(i.includeExplanation)for(const m of n.settings){let g;switch(typeof m.scope){case"string":g=m.scope.split(/,/).map(E=>E.trim());break;case"object":g=m.scope;break;default:continue}p.push({settings:m,selectors:g.map(E=>E.split(/ /))})}for(let m=0,g=c.length;m<g;m++){const[E,T]=c[m];if(E===""){f=[],h.push([]);continue}if(o>0&&E.length>=o){f=[],h.push([{content:E,offset:T,color:"",fontStyle:0}]);continue}let _,b,k;i.includeExplanation&&(_=t.tokenizeLine(E,u),b=_.tokens,k=0);const N=t.tokenizeLine2(E,u,l),L=N.tokens.length/2;for(let S=0;S<L;S++){const R=N.tokens[2*S],M=S+1<L?N.tokens[2*S+2]:E.length;if(R===M)continue;const z=N.tokens[2*S+1],D=Ut(r[kt.getForeground(z)],a),q=kt.getFontStyle(z),F={content:E.substring(R,M),offset:T+R,color:D,fontStyle:q};if(i.includeExplanation){F.explanation=[];let Q=0;for(;R+Q<M;){const ne=b[k],J=E.substring(ne.startIndex,ne.endIndex);Q+=J.length,F.explanation.push({content:J,scopes:Ay(p,ne.scopes)}),k+=1}}f.push(F)}h.push(f),f=[],u=N.ruleStack}return{tokens:h,stateStack:u}}s(js,"_tokenizeWithTheme");function Ay(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const a=t.slice(0,r),o=t[r];n[r]={scopeName:o,themeMatches:Cy(e,o,a)}}return n}s(Ay,"explainThemeScopes");function Ac(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}s(Ac,"matchesOne");function ky(e,t,n){if(!Ac(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Ac(e[r],n[i])&&(r-=1),i-=1;return r===-1}s(ky,"matches");function Cy(e,t,n){const r=[];for(const{selectors:i,settings:a}of e)for(const o of i)if(ky(o,t,n)){r.push(a);break}return r}s(Cy,"explainThemeScope");function kc(e,t,n){const r=Object.entries(n.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),i=Sy(...r.map(o=>qs(e,t,{...n,theme:o.theme})));return i[0].map((o,l)=>o.map((c,u)=>{const f={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(f.explanation=c.explanation),i.forEach((h,p)=>{const{content:m,explanation:g,offset:E,...T}=h[l][u];f.variants[r[p].color]=T}),f}))}s(kc,"codeToTokensWithThemes$1");function Sy(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(c=>c[r]),a=t.map(()=>[]);t.forEach((c,u)=>c.push(a[u]));const o=i.map(()=>0),l=i.map(c=>c[0]);for(;l.every(c=>c);){const c=Math.min(...l.map(u=>u.content.length));for(let u=0;u<n;u++){const f=l[u];f.content.length===c?(a[u].push(f),o[u]+=1,l[u]=i[u][o[u]]):(a[u].push({...f,content:f.content.slice(0,c)}),l[u]={...f,content:f.content.slice(c),offset:f.offset+c})}}}return t}s(Sy,"syncThemesTokenization");function di(e,t,n){let r,i,a,o,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-"}=n,f=Object.entries(n.themes).filter(E=>E[1]).map(E=>({color:E[0],theme:E[1]})).sort((E,T)=>E.color===c?-1:T.color===c?1:0);if(f.length===0)throw new ae("`themes` option must not be empty");const h=kc(e,t,n);if(c&&!f.find(E=>E.color===c))throw new ae(`\`themes\` option must contain the defaultColor key \`${c}\``);const p=f.map(E=>e.getTheme(E.theme)),m=f.map(E=>E.color);a=h.map(E=>E.map(T=>Ny(T,m,u,c)));const g=f.map(E=>fi(E.theme,n));i=f.map((E,T)=>(T===0&&c?"":`${u+E.color}:`)+(Ut(p[T].fg,g[T])||"inherit")).join(";"),r=f.map((E,T)=>(T===0&&c?"":`${u+E.color}-bg:`)+(Ut(p[T].bg,g[T])||"inherit")).join(";"),o=`shiki-themes ${p.map(E=>E.name).join(" ")}`,l=c?void 0:[i,r].join(";")}else if("theme"in n){const c=fi(n.theme,n);a=qs(e,t,n);const u=e.getTheme(n.theme);r=Ut(u.bg,c),i=Ut(u.fg,c),o=u.name}else throw new ae("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:l}}s(di,"codeToTokens$1");function Ny(e,t,n,r){const i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(c=>yc(e.variants[c])),o=new Set(a.flatMap(c=>Object.keys(c))),l=a.reduce((c,u,f)=>{for(const h of o){const p=u[h]||"inherit";if(f===0&&r)c[h]=p;else{const m=h==="color"?"":h==="background-color"?"-bg":`-${h}`,g=n+t[f]+(h==="color"?"":m);c[h]?c[h]+=`;${g}:${p}`:c[h]=`${g}:${p}`}}return c},{});return i.htmlStyle=r?bc(l):Object.values(l).join(";"),i}s(Ny,"mergeToken");function wy(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let o=function(c){if(typeof c=="number"){if(c<0||c>r.source.length)throw new ae(`Invalid decoration offset: ${c}. Code length: ${r.source.length}`);return{...a.indexToPos(c),offset:c}}else{const u=a.lines[c.line];if(u===void 0)throw new ae(`Invalid decoration position ${JSON.stringify(c)}. Lines length: ${a.lines.length}`);if(c.character<0||c.character>u.length)throw new ae(`Invalid decoration position ${JSON.stringify(c)}. Line ${c.line} length: ${u.length}`);return{...c,offset:a.posToIndex(c.line,c.character)}}};var i=o;s(o,"normalizePosition");const a=uy(r.source),l=(r.options.decorations||[]).map(c=>({...c,start:o(c.start),end:o(c.end)}));n(l),e.set(r.meta,{decorations:l,converter:a,source:r.source})}return e.get(r.meta)}s(t,"getContext");function n(r){for(let i=0;i<r.length;i++){const a=r[i];if(a.start.offset>a.end.offset)throw new ae(`Invalid decoration range: ${JSON.stringify(a.start)} - ${JSON.stringify(a.end)}`);for(let o=i+1;o<r.length;o++){const l=r[o],c=a.start.offset<l.start.offset&&l.start.offset<a.end.offset,u=a.start.offset<l.end.offset&&l.end.offset<a.end.offset,f=l.start.offset<a.start.offset&&a.start.offset<l.end.offset,h=l.start.offset<a.end.offset&&a.end.offset<l.end.offset;if(c||u||f||h){if(u&&u||f&&h)continue;throw new ae(`Decorations ${JSON.stringify(a.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}return s(n,"verifyIntersections"),{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return cy(r,a)},code(r){if(!this.options.decorations?.length)return;const i=t(this),a=Array.from(r.children).filter(h=>h.type==="element"&&h.tagName==="span");if(a.length!==i.converter.lines.length)throw new ae(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(h,p,m,g){const E=a[h];let T="",_=-1,b=-1;function k(L){return L.type==="text"?L.value:L.type==="element"?L.children.map(k).join(""):""}if(s(k,"stringify"),p===0&&(_=0),m===0&&(b=0),m===Number.POSITIVE_INFINITY&&(b=E.children.length),_===-1||b===-1)for(let L=0;L<E.children.length;L++)T+=k(E.children[L]),_===-1&&T.length===p&&(_=L+1),b===-1&&T.length===m&&(b=L+1);if(_===-1)throw new ae(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(b===-1)throw new ae(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const N=E.children.slice(_,b);if(!g.alwaysWrap&&N.length===E.children.length)c(E,g,"line");else if(!g.alwaysWrap&&N.length===1&&N[0].type==="element")c(N[0],g,"token");else{const L={type:"element",tagName:"span",properties:{},children:N};c(L,g,"wrapper"),E.children.splice(_,N.length,L)}}s(o,"applyLineSection");function l(h,p){a[h]=c(a[h],p,"line")}s(l,"applyLine");function c(h,p,m){const g=p.properties||{},E=p.transform||(T=>T);return h.tagName=p.tagName||"span",h.properties={...h.properties,...g,class:h.properties.class},p.properties?.class&&Tc(h,p.properties.class),h=E(h,m)||h,h}s(c,"applyDecoration");const u=[],f=i.decorations.sort((h,p)=>p.start.offset-h.start.offset);for(const h of f){const{start:p,end:m}=h;if(p.line===m.line)o(p.line,p.character,m.character,h);else if(p.line<m.line){o(p.line,p.character,Number.POSITIVE_INFINITY,h);for(let g=p.line+1;g<m.line;g++)u.unshift(()=>l(g,h));o(m.line,0,m.character,h)}}u.forEach(h=>h())}}}s(wy,"transformerDecorations");const Iy=[wy()];function mi(e){return[...e.transformers||[],...Iy]}s(mi,"getTransformers");function pi(e,t,n,r={meta:{},options:n,codeToHast:s((i,a)=>pi(e,i,a),"codeToHast"),codeToTokens:s((i,a)=>di(e,i,a),"codeToTokens")}){let i=t;for(const p of mi(n))i=p.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:l,themeName:c,rootStyle:u}=di(e,i,n);const{mergeWhitespaces:f=!0}=n;f===!0?a=Oy(a):f==="never"&&(a=Ry(a));const h={...r,get source(){return i}};for(const p of mi(n))a=p.tokens?.call(h,a)||a;return Ly(a,{...n,fg:o,bg:l,themeName:c,rootStyle:u},h)}s(pi,"codeToHast$1");function Ly(e,t,n){const r=mi(t),i=[],a={type:"root",children:[]},{structure:o="classic"}=t;let l={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:i};const u=[],f={...n,structure:o,addClassToHast:Tc,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return l},get code(){return c},get lines(){return u}};if(e.forEach((p,m)=>{m&&(o==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&i.push({type:"text",value:`
|
|
735
735
|
`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},E=0;for(const T of p){let _={type:"element",tagName:"span",properties:{},children:[{type:"text",value:T.content}]};const b=T.htmlStyle||bc(yc(T));b&&(_.properties.style=b);for(const k of r)_=k?.span?.call(f,_,m+1,E,g)||_;o==="inline"?a.children.push(_):o==="classic"&&g.children.push(_),E+=T.content.length}if(o==="classic"){for(const T of r)g=T?.line?.call(f,g,m+1)||g;u.push(g),i.push(g)}}),o==="classic"){for(const p of r)c=p?.code?.call(f,c)||c;l.children.push(c);for(const p of r)l=p?.pre?.call(f,l)||l;a.children.push(l)}let h=a;for(const p of r)h=p?.root?.call(f,h)||h;return h}s(Ly,"tokensToHast");function Oy(e){return e.map(t=>{const n=[];let r="",i=0;return t.forEach((a,o)=>{const c=!(a.fontStyle&&a.fontStyle&nt.Underline);c&&a.content.match(/^\s+$/)&&t[o+1]?(i||(i=a.offset),r+=a.content):r?(c?n.push({...a,offset:i,content:r+a.content}):n.push({content:r,offset:i},a),i=0,r=""):n.push(a)}),n})}s(Oy,"mergeWhitespaceTokens");function Ry(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,a,o]=r;if(!i&&!o)return n;const l=[{...n,offset:n.offset+i.length,content:a}];return i&&l.unshift({content:i,offset:n.offset}),o&&l.push({content:o,offset:n.offset+i.length+a.length}),l}))}s(Ry,"splitWhitespaceTokens");const Dy=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let ar=class{static{s(this,"Schema")}constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ar.prototype.property={},ar.prototype.normal={},ar.prototype.space=null;function Cc(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new ar(n,r,t)}s(Cc,"merge$1");function Ys(e){return e.toLowerCase()}s(Ys,"normalize$2");let qe=class{static{s(this,"Info")}constructor(t,n){this.property=t,this.attribute=n}};qe.prototype.space=null,qe.prototype.boolean=!1,qe.prototype.booleanish=!1,qe.prototype.overloadedBoolean=!1,qe.prototype.number=!1,qe.prototype.commaSeparated=!1,qe.prototype.spaceSeparated=!1,qe.prototype.commaOrSpaceSeparated=!1,qe.prototype.mustUseProperty=!1,qe.prototype.defined=!1;let xy=0;const V=$t(),pe=$t(),Sc=$t(),U=$t(),oe=$t(),pn=$t(),Ue=$t();function $t(){return 2**++xy}s($t,"increment$1");var Gs=Object.freeze({__proto__:null,boolean:V,booleanish:pe,commaOrSpaceSeparated:Ue,commaSeparated:pn,number:U,overloadedBoolean:Sc,spaceSeparated:oe});const Vs=Object.keys(Gs);let Ws=class extends qe{static{s(this,"DefinedInfo")}constructor(t,n,r,i){let a=-1;if(super(t,n),Nc(this,"space",i),typeof r=="number")for(;++a<Vs.length;){const o=Vs[a];Nc(this,Vs[a],(r&Gs[o])===Gs[o])}}};Ws.prototype.defined=!0;function Nc(e,t,n){n&&(e[t]=n)}s(Nc,"mark$1");const Py={}.hasOwnProperty;function gn(e){const t={},n={};let r;for(r in e.properties)if(Py.call(e.properties,r)){const i=e.properties[r],a=new Ws(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ys(r)]=r,n[Ys(a.attribute)]=r}return new ar(t,n,e.space)}s(gn,"create$2");const wc=gn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ic=gn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Lc(e,t){return t in e?e[t]:t}s(Lc,"caseSensitiveTransform$1");function Oc(e,t){return Lc(e,t.toLowerCase())}s(Oc,"caseInsensitiveTransform$1");const Rc=gn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Oc,properties:{xmlns:null,xmlnsXLink:null}}),Dc=gn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:pe,ariaAutoComplete:null,ariaBusy:pe,ariaChecked:pe,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:oe,ariaCurrent:null,ariaDescribedBy:oe,ariaDetails:null,ariaDisabled:pe,ariaDropEffect:oe,ariaErrorMessage:null,ariaExpanded:pe,ariaFlowTo:oe,ariaGrabbed:pe,ariaHasPopup:null,ariaHidden:pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:oe,ariaLevel:U,ariaLive:null,ariaModal:pe,ariaMultiLine:pe,ariaMultiSelectable:pe,ariaOrientation:null,ariaOwns:oe,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:pe,ariaReadOnly:pe,ariaRelevant:null,ariaRequired:pe,ariaRoleDescription:oe,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:pe,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null}}),vy=gn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Oc,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pn,acceptCharset:oe,accessKey:oe,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:oe,autoFocus:V,autoPlay:V,blocking:oe,capture:null,charSet:null,checked:V,cite:null,className:oe,cols:U,colSpan:null,content:null,contentEditable:pe,controls:V,controlsList:oe,coords:U|pn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:Sc,draggable:pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:oe,height:U,hidden:V,high:U,href:null,hrefLang:null,htmlFor:oe,httpEquiv:oe,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:oe,itemRef:oe,itemScope:V,itemType:oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:V,optimum:U,pattern:null,ping:oe,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:oe,required:V,reversed:V,rows:U,rowSpan:U,sandbox:oe,scope:null,scoped:V,seamless:V,selected:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:pe,width:U,wrap:null,align:null,aLink:null,archive:oe,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:pe,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:V,disableRemotePlayback:V,prefix:null,property:null,results:U,security:null,unselectable:null}}),My=gn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Lc,properties:{about:Ue,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:oe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pn,g2:pn,glyphName:pn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:Ue,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ue,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ue,rev:Ue,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ue,requiredFeatures:Ue,requiredFonts:Ue,requiredFormats:Ue,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:Ue,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ue,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ue,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Fy=/^data[-\w.:]+$/i,xc=/-[a-z]/g,By=/[A-Z]/g;function Uy(e,t){const n=Ys(t);let r=t,i=qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fy.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(xc,$y);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!xc.test(a)){let o=a.replace(By,Hy);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ws}return new i(r,t)}s(Uy,"find$1");function Hy(e){return"-"+e.toLowerCase()}s(Hy,"kebab$1");function $y(e){return e.charAt(1).toUpperCase()}s($y,"camelcase$1");const zy=Cc([Ic,wc,Rc,Dc,vy],"html"),Pc=Cc([Ic,wc,Rc,Dc,My],"svg"),vc={}.hasOwnProperty;function qy(e,t){const n=t||{};function r(i,...a){let o=r.invalid;const l=r.handlers;if(i&&vc.call(i,e)){const c=String(i[e]);o=vc.call(l,c)?l[c]:r.unknown}if(o)return o.call(this,i,...a)}return s(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}s(qy,"zwitch$1");function jy(e,t){if(e=e.replace(t.subset?Yy(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function n(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function r(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}s(jy,"core$1");function Yy(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}s(Yy,"charactersToExpression$1");function Gy(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?r:r+";"}s(Gy,"toHexadecimal$1");function Vy(e,t,n){const r="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?r:r+";"}s(Vy,"toDecimal$1");const Wy=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ks={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},Ky=["cent","copy","divide","gt","lt","not","para","times"],Mc={}.hasOwnProperty,Qs={};let gi;for(gi in Ks)Mc.call(Ks,gi)&&(Qs[Ks[gi]]=gi);function Qy(e,t,n,r){const i=String.fromCharCode(e);if(Mc.call(Qs,i)){const a=Qs[i],o="&"+a;return n&&Wy.includes(a)&&!Ky.includes(a)&&(!r||t&&t!==61&&/[^\da-z]/i.test(String.fromCharCode(t)))?o:o+";"}return""}s(Qy,"toNamed$1");function Xy(e,t,n){let r=Gy(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Qy(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const a=Vy(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}s(Xy,"formatSmart$1");function En(e,t){return jy(e,Object.assign({format:Xy},t))}s(En,"stringifyEntities$1");const Jy=/^>|^->|<!--|-->|--!>|<!-$/g,Zy=[">"],eb=["<",">"];function tb(e,t,n,r){return r.settings.bogusComments?"<?"+En(e.value,Object.assign({},r.settings.characterReferences,{subset:Zy}))+">":"<!--"+e.value.replace(Jy,i)+"-->";function i(a){return En(a,Object.assign({},r.settings.characterReferences,{subset:eb}))}}s(tb,"comment$3");function nb(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}s(nb,"doctype$3");function Fc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}s(Fc,"ccount$1");function rb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}s(rb,"stringify$1$1");function ib(e){return e.join(" ").trim()}s(ib,"stringify$4");const sb=/[ \t\n\f\r]/g;function Xs(e){return typeof e=="object"?e.type==="text"?Bc(e.value):!1:Bc(e)}s(Xs,"whitespace$1");function Bc(e){return e.replace(sb,"")===""}s(Bc,"empty$1");const Te=Hc(1),Uc=Hc(-1),ab=[];function Hc(e){return t;function t(n,r,i){const a=n?n.children:ab;let o=(r||0)+e,l=a[o];if(!i)for(;l&&Xs(l);)o+=e,l=a[o];return l}}s(Hc,"siblings$1");const ob={}.hasOwnProperty;function $c(e){return t;function t(n,r,i){return ob.call(e,n.tagName)&&e[n.tagName](n,r,i)}}s($c,"omission$1");const Js=$c({body:cb,caption:Zs,colgroup:Zs,dd:db,dt:fb,head:Zs,html:lb,li:hb,optgroup:mb,option:pb,p:ub,rp:zc,rt:zc,tbody:Eb,td:qc,tfoot:Tb,th:qc,thead:gb,tr:yb});function Zs(e,t,n){const r=Te(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Xs(r.value.charAt(0)))}s(Zs,"headOrColgroupOrCaption$1");function lb(e,t,n){const r=Te(n,t);return!r||r.type!=="comment"}s(lb,"html$1$1");function cb(e,t,n){const r=Te(n,t);return!r||r.type!=="comment"}s(cb,"body$1$1");function ub(e,t,n){const r=Te(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}s(ub,"p$2");function hb(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="li"}s(hb,"li$1");function fb(e,t,n){const r=Te(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}s(fb,"dt$1");function db(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}s(db,"dd$1");function zc(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}s(zc,"rubyElement$1");function mb(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}s(mb,"optgroup$1");function pb(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}s(pb,"option$1");function gb(e,t,n){const r=Te(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}s(gb,"thead$1");function Eb(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}s(Eb,"tbody$1$1");function Tb(e,t,n){return!Te(n,t)}s(Tb,"tfoot$1");function yb(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="tr"}s(yb,"tr$1");function qc(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}s(qc,"cells$1");const bb=$c({body:kb,colgroup:Cb,head:Ab,html:_b,tbody:Sb});function _b(e){const t=Te(e,-1);return!t||t.type!=="comment"}s(_b,"html$6");function Ab(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const i=t[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return t.length>0}s(Ab,"head$1");function kb(e){const t=Te(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Xs(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}s(kb,"body$2");function Cb(e,t,n){const r=Uc(n,t),i=Te(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Js(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}s(Cb,"colgroup$1");function Sb(e,t,n){const r=Uc(n,t),i=Te(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Js(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}s(Sb,"tbody$2");const Ei={name:[[`
|