@botpress/adk-cli
Version:
Command-line interface for the Botpress Agent Development Kit (ADK)
16 lines • 127 kB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="019fa5a7-8457-7653-9976-c530923618c0")}catch(e){}}();const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-Bbf3ZyxA.js","assets/html-B8pBdPMQ.js","assets/javascript-BMMyXqK5.js","assets/css-DPfMkruS.js","assets/angular-ts-C26w9mnW.js","assets/scss-OYdSNvt2.js","assets/apl-e980N3t4.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CjFzhNUq.js","assets/typescript-DlfHMoPT.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-B2ZbN0F_.js","assets/html-derivative-ZQ8onl8Z.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-DwXMNnPA.js","assets/coffee-JUOWOZUj.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-DVs0tusA.js","assets/shellscript-Yzrsuije.js","assets/edge-CKszZCnI.js","assets/elixir-Cc7HHYVZ.js","assets/elm-DbKCFpqz.js","assets/erb-C7QrGF_t.js","assets/ruby-W1VRIm2Q.js","assets/haml-AZXGPtNI.js","assets/graphql-Caa12_AY.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CufqaIoK.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Dz9X99Cm.js","assets/glimmer-ts-aQ3p29eY.js","assets/hack-D_o3P2UH.js","assets/handlebars-YebKLiTq.js","assets/http-C38VWM-o.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-BJmZiE_F.js","assets/jison-BCRtk9Os.js","assets/julia-353pQ8cl.js","assets/r-DiinP2Uv.js","assets/latex-CPEt12BK.js","assets/tex-B5i3u9ba.js","assets/liquid-DFk8BABL.js","assets/marko-BM38lbjI.js","assets/less-B1dDrJ26.js","assets/mdc-DvHMhoCT.js","assets/nginx-DknmC5AR.js","assets/nim-BZI_8mFl.js","assets/perl-g0D2lH3a.js","assets/php-Gk5eUrPQ.js","assets/pug-Ch9lOoSd.js","assets/qml-CHzV51_b.js","assets/razor-CNXmhs1n.js","assets/csharp-CHadp7IV.js","assets/rst-DKdxLoXm.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-B_7ge1HE.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-Dt5jNKfG.js","assets/templ-0CNLO7il.js","assets/go-Dn2_MT6a.js","assets/ts-tags-B9XN6NYQ.js","assets/twig-B_ULif71.js","assets/vue-BEetzCYT.js","assets/vue-html-BsD9fJC1.js","assets/vue-vine-CCdTUzyM.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
import{w as xe,s as dt,f as qt,a as zt,b as Kt,c as Ke,z as Jt,h as Qt,d as Xt,_ as l}from"./index-B2PuNU9Y.js";let T=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yt(r){return Ge(r)}function Ge(r){return Array.isArray(r)?Zt(r):r instanceof RegExp?r:typeof r=="object"?er(r):r}function Zt(r){let e=[];for(let t=0,i=r.length;t<i;t++)e[t]=Ge(r[t]);return e}function er(r){let e={};for(let t in r)e[t]=Ge(r[t]);return e}function ht(r,...e){return e.forEach(t=>{for(let i in t)r[i]=t[i]}),r}function pt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?pt(r.substring(0,r.length-1)):r.substr(~e+1)}var ve=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,X=class{static hasCaptures(r){return r===null?!1:(ve.lastIndex=0,ve.test(r))}static replaceCaptures(r,e,t){return r.replace(ve,(i,n,s,a)=>{let c=t[parseInt(n||s,10)];if(c){let o=e.substring(c.start,c.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return i})}};function _t(r,e){return r<e?-1:r>e?1:0}function ft(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,i=e.length;if(t===i){for(let n=0;n<t;n++){let s=_t(r[n],e[n]);if(s!==0)return s}return 0}return t-i}function Je(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function gt(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Et=class{constructor(r){this.fn=r}cache=new Map;get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},ie=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(ir(r),e)}static createFromParsedTheme(r,e){return sr(r,e)}_cachedMatchRoot=new Et(r=>this._root.match(r));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,i=this._cachedMatchRoot.get(e).find(n=>tr(r.parent,n.parentScopes));return i?new yt(i.fontStyle,i.foreground,i.background):null}},Re=class te{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new te(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new te(t,e[i]);return t}push(e){return new te(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function tr(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],n=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],n=!0}for(;r&&!rr(r.scopeName,i);){if(n)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function rr(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var yt=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function ir(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],i=0;for(let n=0,s=e.length;n<s;n++){let a=e[n];if(!a.settings)continue;let c;if(typeof a.scope=="string"){let d=a.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),c=d.split(",")}else Array.isArray(a.scope)?c=a.scope:c=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let d=a.settings.fontStyle.split(" ");for(let _=0,h=d.length;_<h;_++)switch(d[_]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let u=null;typeof a.settings.foreground=="string"&&Je(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&Je(a.settings.background)&&(m=a.settings.background);for(let d=0,_=c.length;d<_;d++){let p=c[d].trim().split(" "),v=p[p.length-1],E=null;p.length>1&&(E=p.slice(0,p.length-1),E.reverse()),t[i++]=new nr(v,E,n,o,u,m)}}return t}var nr=class{constructor(r,e,t,i,n,s){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}},S=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(S||{});function sr(r,e){r.sort((o,u)=>{let m=_t(o.scope,u.scope);return m!==0||(m=ft(o.parentScopes,u.parentScopes),m!==0)?m:o.index-u.index});let t=0,i="#000000",n="#ffffff";for(;r.length>=1&&r[0].scope==="";){let o=r.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(i=o.foreground),o.background!==null&&(n=o.background)}let s=new or(e),a=new yt(t,s.getId(i),s.getId(n)),c=new cr(new be(0,null,-1,0,0),[]);for(let o=0,u=r.length;o<u;o++){let m=r[o];c.insert(0,m.scope,m.parentScopes,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new ie(s,a,c)}var or=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},ar=Object.freeze([]),be=class vt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,i,n,s){this.scopeDepth=e,this.parentScopes=t||ar,this.fontStyle=i,this.foreground=n,this.background=s}clone(){return new vt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),n!==0&&(this.background=n)}},cr=class Se{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,n=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[n]===">"&&n++,!(i>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[i].length;if(s!==0)return s;i++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),n,s;if(i===-1?(n=e,s=""):(n=e.substring(0,i),s=e.substring(i+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Se._cmpBySpecificity),t}insert(e,t,i,n,s,a){if(t===""){this._doInsertHere(e,i,n,s,a);return}let c=t.indexOf("."),o,u;c===-1?(o=t,u=""):(o=t.substring(0,c),u=t.substring(c+1));let m;this._children.hasOwnProperty(o)?m=this._children[o]:(m=new Se(this._mainRule.clone(),be.cloneArr(this._rulesWithParentScopes)),this._children[o]=m),m.insert(e+1,u,i,n,s,a)}_doInsertHere(e,t,i,n,s){if(t===null){this._mainRule.acceptOverwrite(e,i,n,s);return}for(let a=0,c=this._rulesWithParentScopes.length;a<c;a++){let o=this._rulesWithParentScopes[a];if(ft(o.parentScopes,t)===0){o.acceptOverwrite(e,i,n,s);return}}i===-1&&(i=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new be(e,t,i,n,s))}},$=class O{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=O.getLanguageId(e),i=O.getTokenType(e),n=O.getFontStyle(e),s=O.getForeground(e),a=O.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:n,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,n,s,a,c){let o=O.getLanguageId(e),u=O.getTokenType(e),m=O.containsBalancedBrackets(e)?1:0,d=O.getFontStyle(e),_=O.getForeground(e),h=O.getBackground(e);return t!==0&&(o=t),i!==8&&(u=i),n!==null&&(m=n?1:0),s!==-1&&(d=s),a!==0&&(_=a),c!==0&&(h=c),(o<<0|u<<8|m<<10|d<<11|_<<15|h<<24)>>>0}};function ne(r,e){const t=[],i=lr(r);let n=i.next();for(;n!==null;){let o=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=i.next()}let u=a();if(t.push({matcher:u,priority:o}),n!==",")break;n=i.next()}return t;function s(){if(n==="-"){n=i.next();const o=s();return u=>!!o&&!o(u)}if(n==="("){n=i.next();const o=c();return n===")"&&(n=i.next()),o}if(Qe(n)){const o=[];do o.push(n),n=i.next();while(Qe(n));return u=>e(o,u)}return null}function a(){const o=[];let u=s();for(;u;)o.push(u),u=s();return m=>o.every(d=>d(m))}function c(){const o=[];let u=a();for(;u&&(o.push(u),n==="|"||n===",");){do n=i.next();while(n==="|"||n===",");u=a()}return m=>o.some(d=>d(m))}}function Qe(r){return!!r&&!!r.match(/[\w\.:]+/)}function lr(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(r),i}}}function Rt(r){typeof r.dispose=="function"&&r.dispose()}var q=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},ur=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},mr=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},dr=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new q(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const r=this.Q;this.Q=[];const e=new mr;for(const t of r)hr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function hr(r,e,t,i){const n=t.lookup(r.scopeName);if(!n){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);r instanceof q?re({baseGrammar:s,selfGrammar:n},i):Oe(r.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},i);const a=t.injections(r.scopeName);if(a)for(const c of a)i.add(new q(c))}function Oe(r,e,t){if(e.repository&&e.repository[r]){const i=e.repository[r];se([i],e,t)}}function re(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&se(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&se(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function se(r,e,t){for(const i of r){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const n=i.repository?ht({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&se(i.patterns,{...e,repository:n},t);const s=i.include;if(!s)continue;const a=Tt(s);switch(a.kind){case 0:re({...e,selfGrammar:e.baseGrammar},t);break;case 1:re(e,t);break;case 2:Oe(a.ruleName,{...e,repository:n},t);break;case 3:case 4:const c=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const o={baseGrammar:e.baseGrammar,selfGrammar:c,repository:n};a.kind===4?Oe(a.ruleName,o,t):re(o,t)}else a.kind===4?t.add(new ur(a.scopeName,a.ruleName)):t.add(new q(a.scopeName));break}}}var pr=class{kind=0},_r=class{kind=1},fr=class{constructor(r){this.ruleName=r}kind=2},gr=class{constructor(r){this.scopeName=r}kind=3},Er=class{constructor(r,e){this.scopeName=r,this.ruleName=e}kind=4};function Tt(r){if(r==="$base")return new pr;if(r==="$self")return new _r;const e=r.indexOf("#");if(e===-1)return new gr(r);if(e===0)return new fr(r.substring(1));{const t=r.substring(0,e),i=r.substring(e+1);return new Er(t,i)}}var yr=/\\(\d+)/,Xe=/\\(\d+)/g,vr=-1,At=-2;var Q=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(r,e,t,i){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=X.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=X.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${pt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:X.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:X.replaceCaptures(this._contentName,r,e)}},Rr=class extends Q{retokenizeCapturedWithRuleId;constructor(r,e,t,i,n){super(r,e,t,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,i){throw new Error("Not supported!")}},Tr=class extends Q{_match;captures;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,null),this._match=new z(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new K,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ye=class extends Q{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n){super(r,e,t,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new K,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},we=class extends Q{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,i,n,s,a,c,o,u){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=s,this._end=new z(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=o||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,i)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new K;for(const t of this.patterns)r.getRule(t).collectPatterns(r,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},oe=class extends Q{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(r,e,t,i,n,s,a,c,o){super(r,e,t,i),this._begin=new z(n,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new z(a,At),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,i){return this._getCachedCompiledPatterns(r).compileAG(r,t,i)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new K;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,i){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,i)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new K,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Lt=class b{static createCaptureRule(e,t,i,n,s){return e.registerRule(a=>new Rr(t,a,i,n,s))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Tr(e.$vscodeTextmateLocation,e.id,e.name,e.match,b._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=ht({},i,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Ye(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,b._compilePatterns(s,t,i))}return e.while?new oe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,b._compileCaptures(e.whileCaptures||e.captures,t,i),b._compilePatterns(e.patterns,t,i)):new we(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,b._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,b._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,b._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let n=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);c>s&&(s=c)}for(let a=0;a<=s;a++)n[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);let o=0;e[a].patterns&&(o=b.getCompiledRuleId(e[a],t,i)),n[c]=b.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,o)}}return n}static _compilePatterns(e,t,i){let n=[];if(e)for(let s=0,a=e.length;s<a;s++){const c=e[s];let o=-1;if(c.include){const u=Tt(c.include);switch(u.kind){case 0:case 1:o=b.getCompiledRuleId(i[c.include],t,i);break;case 2:let m=i[u.ruleName];m&&(o=b.getCompiledRuleId(m,t,i));break;case 3:case 4:const d=u.scopeName,_=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(d,i);if(h)if(_){let p=h.repository[_];p&&(o=b.getCompiledRuleId(p,t,h.repository))}else o=b.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else o=b.getCompiledRuleId(c,t,i);if(o!==-1){const u=t.getRule(o);let m=!1;if((u instanceof Ye||u instanceof we||u instanceof oe)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(o)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},z=class Pt{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const i=e.length;let n=0,s=[],a=!1;for(let c=0;c<i;c++)if(e.charAt(c)==="\\"&&c+1<i){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(n,c)),s.push("$(?!\\n)(?<!\\n)"),n=c+2):(u==="A"||u==="G")&&(a=!0),c++}this.hasAnchor=a,n===0?this.source=e:(s.push(e.substring(n,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=yr.test(this.source):this.hasBackReferences=!1}clone(){return new Pt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=t.map(n=>e.substring(n.start,n.end));return Xe.lastIndex=0,this.source.replace(Xe,(n,s)=>gt(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],i=[],n=[],s,a,c,o;for(s=0,a=this.source.length;s<a;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,i[s]=c,n[s]=c,c==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(e[s+1]="",t[s+1]="",i[s+1]="A",n[s+1]="A"):o==="G"?(e[s+1]="",t[s+1]="G",i[s+1]="",n[s+1]="G"):(e[s+1]=o,t[s+1]=o,i[s+1]=o,n[s+1]=o),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},K=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new Ze(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let i=this._items.map(n=>n.resolveAnchors(e,t));return new Ze(r,i,this._items.map(n=>n.ruleId))}},Ze=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
`)}findNextMatchSync(r,e,t){const i=this.scanner.findNextMatchSync(r,e,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Te=class{constructor(r,e){this.languageId=r,this.tokenType=e}},Ar=class Ce{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Te(e,8),this._embeddedLanguagesMatcher=new Lr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ce._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Te(0,0);_getBasicScopeAttributes=new Et(e=>{const t=this._scopeToLanguage(e),i=this._toStandardTokenType(e);return new Te(t,i)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Ce.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Lr=class{values;scopesRegExp;constructor(r){if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,i])=>gt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},et=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function It(r,e,t,i,n,s,a,c){const o=e.content.length;let u=!1,m=-1;if(a){const h=Pr(r,e,t,i,n,s);n=h.stack,i=h.linePos,t=h.isFirstLine,m=h.anchorPosition}const d=Date.now();for(;!u;){if(c!==0&&Date.now()-d>c)return new et(n,!0);_()}return new et(n,!1);function _(){const h=Ir(r,e,t,i,n,m);if(!h){s.produce(n,o),u=!0;return}const p=h.captureIndices,v=h.matchedRuleId,E=p&&p.length>0?p[0].end>i:!1;if(v===vr){const g=n.getRule(r);s.produce(n,p[0].start),n=n.withContentNameScopesList(n.nameScopesList),H(r,e,t,n,s,g.endCaptures,p),s.produce(n,p[0].end);const f=n;if(n=n.parent,m=f.getAnchorPos(),!E&&f.getEnterPos()===i){n=f,s.produce(n,o),u=!0;return}}else{const g=r.getRule(v);s.produce(n,p[0].start);const f=n,y=g.getName(e.content,p),A=n.contentNameScopesList.pushAttributed(y,r);if(n=n.push(v,i,m,p[0].end===o,null,A,A),g instanceof we){const R=g;H(r,e,t,n,s,R.beginCaptures,p),s.produce(n,p[0].end),m=p[0].end;const w=R.getContentName(e.content,p),V=A.pushAttributed(w,r);if(n=n.withContentNameScopesList(V),R.endHasBackReferences&&(n=n.withEndRule(R.getEndWithResolvedBackReferences(e.content,p))),!E&&f.hasSameRuleAs(n)){n=n.pop(),s.produce(n,o),u=!0;return}}else if(g instanceof oe){const R=g;H(r,e,t,n,s,R.beginCaptures,p),s.produce(n,p[0].end),m=p[0].end;const w=R.getContentName(e.content,p),V=A.pushAttributed(w,r);if(n=n.withContentNameScopesList(V),R.whileHasBackReferences&&(n=n.withEndRule(R.getWhileWithResolvedBackReferences(e.content,p))),!E&&f.hasSameRuleAs(n)){n=n.pop(),s.produce(n,o),u=!0;return}}else if(H(r,e,t,n,s,g.captures,p),s.produce(n,p[0].end),n=n.pop(),!E){n=n.safePop(),s.produce(n,o),u=!0;return}}p[0].end>i&&(i=p[0].end,t=!1)}}function Pr(r,e,t,i,n,s){let a=n.beginRuleCapturedEOL?0:-1;const c=[];for(let o=n;o;o=o.pop()){const u=o.getRule(r);u instanceof oe&&c.push({rule:u,stack:o})}for(let o=c.pop();o;o=c.pop()){const{ruleScanner:u,findOptions:m}=Or(o.rule,r,o.stack.endRule,t,i===a),d=u.findNextMatchSync(e,i,m);if(d){if(d.ruleId!==At){n=o.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(s.produce(o.stack,d.captureIndices[0].start),H(r,e,t,o.stack,s,o.rule.whileCaptures,d.captureIndices),s.produce(o.stack,d.captureIndices[0].end),a=d.captureIndices[0].end,d.captureIndices[0].end>i&&(i=d.captureIndices[0].end,t=!1))}else{n=o.stack.pop();break}}return{stack:n,linePos:i,anchorPosition:a,isFirstLine:t}}function Ir(r,e,t,i,n,s){const a=br(r,e,t,i,n,s),c=r.getInjections();if(c.length===0)return a;const o=Sr(c,r,e,t,i,n,s);if(!o)return a;if(!a)return o;const u=a.captureIndices[0].start,m=o.captureIndices[0].start;return m<u||o.priorityMatch&&m===u?o:a}function br(r,e,t,i,n,s){const a=n.getRule(r),{ruleScanner:c,findOptions:o}=bt(a,r,n.endRule,t,i===s),u=c.findNextMatchSync(e,i,o);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Sr(r,e,t,i,n,s,a){let c=Number.MAX_VALUE,o=null,u,m=0;const d=s.contentNameScopesList.getScopeNames();for(let _=0,h=r.length;_<h;_++){const p=r[_];if(!p.matcher(d))continue;const v=e.getRule(p.ruleId),{ruleScanner:E,findOptions:g}=bt(v,e,null,i,n===a),f=E.findNextMatchSync(t,n,g);if(!f)continue;const y=f.captureIndices[0].start;if(!(y>=c)&&(c=y,o=f.captureIndices,u=f.ruleId,m=p.priority,c===n))break}return o?{priorityMatch:m===-1,captureIndices:o,matchedRuleId:u}:null}function bt(r,e,t,i,n){return{ruleScanner:r.compileAG(e,t,i,n),findOptions:0}}function Or(r,e,t,i,n){return{ruleScanner:r.compileWhileAG(e,t,i,n),findOptions:0}}function H(r,e,t,i,n,s,a){if(s.length===0)return;const c=e.content,o=Math.min(s.length,a.length),u=[],m=a[0].end;for(let d=0;d<o;d++){const _=s[d];if(_===null)continue;const h=a[d];if(h.length===0)continue;if(h.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,h.start):n.produce(i,h.start),_.retokenizeCapturedWithRuleId){const v=_.getName(c,a),E=i.contentNameScopesList.pushAttributed(v,r),g=_.getContentName(c,a),f=E.pushAttributed(g,r),y=i.push(_.retokenizeCapturedWithRuleId,h.start,-1,!1,null,E,f),A=r.createOnigString(c.substring(0,h.end));It(r,A,t&&h.start===0,h.start,y,n,!1,0),Rt(A);continue}const p=_.getName(c,a);if(p!==null){const E=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(p,r);u.push(new wr(E,h.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var wr=class{scopes;endPos;constructor(r,e){this.scopes=r,this.endPos=e}};function Cr(r,e,t,i,n,s,a,c){return new Dr(r,e,t,i,n,s,a,c)}function tt(r,e,t,i,n){const s=ne(e,ae),a=Lt.getCompiledRuleId(t,i,n.repository);for(const c of s)r.push({debugSelector:e,matcher:c.matcher,ruleId:a,grammar:n,priority:c.priority})}function ae(r,e){if(e.length<r.length)return!1;let t=0;return r.every(i=>{for(let n=t;n<e.length;n++)if(kr(e[n],i))return t=n+1,!0;return!1})}function kr(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var Dr=class{constructor(r,e,t,i,n,s,a,c){if(this._rootScopeName=r,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new Ar(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=rt(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const o of Object.keys(n)){const u=ne(o,ae);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:n[o]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,i=r.lookup(t);if(i){const n=i.injections;if(n)for(let a in n)tt(e,a,n[a],this,i);const s=this._grammarRepository.injections(t);s&&s.forEach(a=>{const c=this.getExternalGrammar(a);if(c){const o=c.injectionSelector;o&&tt(e,o,c,this,c)}})}return e.sort((n,s)=>n.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=rt(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const i=this._tokenize(r,e,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(r,e,t=0){const i=this._tokenize(r,e,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(r,e,t,i){this._rootId===-1&&(this._rootId=Lt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===ke.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),d=$.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),_=this.getRule(this._rootId).getName(null,null);let h;_?h=F.createRootAndLookUpScopeName(_,d,this):h=F.createRoot("unknown",d),e=new ke(null,this._rootId,-1,-1,!1,null,h,h)}else n=!1,e.reset();r=r+`
`;const s=this.createOnigString(r),a=s.content.length,c=new Vr(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),o=It(this,s,n,0,e,c,!0,i);return Rt(s),{lineLength:a,lineTokens:c,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function rt(r,e){return r=Yt(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var F=class C{constructor(e,t,i){this.parent=e,this.scopePath=t,this.tokenAttributes=i}static fromExtension(e,t){let i=e,n=e?.scopePath??null;for(const s of t)n=Re.push(n,s.scopeNames),i=new C(i,n,s.encodedTokenAttributes);return i}static createRoot(e,t){return new C(null,new Re(null,e),t)}static createRootAndLookUpScopeName(e,t,i){const n=i.getMetadataForScope(e),s=new Re(null,e),a=i.themeProvider.themeMatch(s),c=C.mergeAttributes(t,n,a);return new C(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return C.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,i){let n=-1,s=0,a=0;return i!==null&&(n=i.fontStyle,s=i.foregroundId,a=i.backgroundId),$.set(e,t.languageId,t.tokenType,null,n,s,a)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return C._pushAttributed(this,e,t);const i=e.split(/ /g);let n=this;for(const s of i)n=C._pushAttributed(n,s,t);return n}static _pushAttributed(e,t,i){const n=i.getMetadataForScope(t),s=e.scopePath.push(t),a=i.themeProvider.themeMatch(s),c=C.mergeAttributes(e.tokenAttributes,n,a);return new C(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===e?t.reverse():void 0}},ke=class x{constructor(e,t,i,n,s,a,c,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=a,this.nameScopesList=c,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new x(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:x._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?F.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){x._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,i,n,s,a,c){return new x(this,e,t,i,n,s,a,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new x(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){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(e,t){const i=F.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new x(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,F.fromExtension(i,t.contentNameScopesList))}},Nr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(r,e){this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):ne(t,ae).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>ne(t,ae).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},Vr=class{constructor(r,e,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=r?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=r?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(s)&&(i=$.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(s))}if(n&&(i=$.set(i,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const t=r?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,n=this._binaryTokens.length;i<n;i++)t[i]=this._binaryTokens[i];return t}},xr=class{constructor(r,e){this._onigLib=e,this._theme=r}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,i,n){if(!this._grammars.has(r)){let s=this._rawGrammars.get(r);if(!s)return null;this._grammars.set(r,Cr(r,s,e,t,i,n,this,this._onigLib))}return this._grammars.get(r)}},Gr=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new xr(ie.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ie.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,i){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,t,i){return this._loadGrammar(e,t,i.embeddedLanguages,i.tokenTypes,new Nr(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,i,n,s){const a=new dr(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(c=>this._loadSingleGrammar(c.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,i,n,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,i)}}addGrammar(e,t=[],i=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,i,n)}_grammarForScopeName(e,t=0,i=null,n=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,i,n,s)}},De=ke.NULL;const Mr=/["&'<>`]/g,Br=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,$r=/[|\\{}()[\]^$+*?.]/g,it=new WeakMap;function Ur(r,e){if(r=r.replace(e.subset?Wr(e.subset):Mr,i),e.subset||e.escapeOnly)return r;return r.replace(Br,t).replace(jr,i);function t(n,s,a){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function i(n,s,a){return e.format(n.charCodeAt(0),a.charCodeAt(s+1),e)}}function Wr(r){let e=it.get(r);return e||(e=Hr(r),it.set(r,e)),e}function Hr(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace($r,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Fr=/[\dA-Fa-f]/;function qr(r,e,t){const i="&#x"+r.toString(16).toUpperCase();return t&&e&&!Fr.test(String.fromCharCode(e))?i:i+";"}const zr=/\d/;function Kr(r,e,t){const i="&#"+String(r);return t&&e&&!zr.test(String.fromCharCode(e))?i:i+";"}const Jr=["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"],Ae={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Qr=["cent","copy","divide","gt","lt","not","para","times"],St={}.hasOwnProperty,Ne={};let Y;for(Y in Ae)St.call(Ae,Y)&&(Ne[Ae[Y]]=Y);const Xr=/[^\dA-Za-z]/;function Yr(r,e,t,i){const n=String.fromCharCode(r);if(St.call(Ne,n)){const s=Ne[n],a="&"+s;return t&&Jr.includes(s)&&!Qr.includes(s)&&(!i||e&&e!==61&&Xr.test(String.fromCharCode(e)))?a:a+";"}return""}function Zr(r,e,t){let i=qr(r,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=Yr(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const s=Kr(r,e,t.omitOptionalSemicolons);s.length<i.length&&(i=s)}return n&&(!t.useShortestReferences||n.length<i.length)?n:i}function j(r,e){return Ur(r,Object.assign({format:Zr},e))}const ei=/^>|^->|<!--|-->|--!>|<!-$/g,ti=[">"],ri=["<",">"];function ii(r,e,t,i){return i.settings.bogusComments?"<?"+j(r.value,Object.assign({},i.settings.characterReferences,{subset:ti}))+">":"<!--"+r.value.replace(ei,n)+"-->";function n(s){return j(s,Object.assign({},i.settings.characterReferences,{subset:ri}))}}function ni(r,e,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const P=wt(1),Ot=wt(-1),si=[];function wt(r){return e;function e(t,i,n){const s=t?t.children:si;let a=(i||0)+r,c=s[a];if(!n)for(;c&&xe(c);)a+=r,c=s[a];return c}}const oi={}.hasOwnProperty;function Ct(r){return e;function e(t,i,n){return oi.call(r,t.tagName)&&r[t.tagName](t,i,n)}}const Me=Ct({body:ci,caption:Le,colgroup:Le,dd:di,dt:mi,head:Le,html:ai,li:ui,optgroup:hi,option:pi,p:li,rp:nt,rt:nt,tbody:fi,td:st,tfoot:gi,th:st,thead:_i,tr:Ei});function Le(r,e,t){const i=P(t,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&xe(i.value.charAt(0)))}function ai(r,e,t){const i=P(t,e);return!i||i.type!=="comment"}function ci(r,e,t){const i=P(t,e);return!i||i.type!=="comment"}function li(r,e,t){const i=P(t,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function ui(r,e,t){const i=P(t,e);return!i||i.type==="element"&&i.tagName==="li"}function mi(r,e,t){const i=P(t,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function di(r,e,t){const i=P(t,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function nt(r,e,t){const i=P(t,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function hi(r,e,t){const i=P(t,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function pi(r,e,t){const i=P(t,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function _i(r,e,t){const i=P(t,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function fi(r,e,t){const i=P(t,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function gi(r,e,t){return!P(t,e)}function Ei(r,e,t){const i=P(t,e);return!i||i.type==="element"&&i.tagName==="tr"}function st(r,e,t){const i=P(t,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const yi=Ct({body:Ti,colgroup:Ai,head:Ri,html:vi,tbody:Li});function vi(r){const e=P(r,-1);return!e||e.type!=="comment"}function Ri(r){const e=new Set;for(const i of r.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const t=r.children[0];return!t||t.type==="element"}function Ti(r){const e=P(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&xe(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ai(r,e,t){const i=Ot(t,e),n=P(r,-1,!0);return t&&i&&i.type==="element"&&i.tagName==="colgroup"&&Me(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Li(r,e,t){const i=Ot(t,e),n=P(r,-1);return t&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Me(i,t.children.indexOf(i),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const Z={name:[[`
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
\f\r "&'/<=>\``.split("")]],unquoted:[[`
\f\r &>`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Pi(r,e,t,i){const n=i.schema,s=n.space==="svg"?!1:i.settings.omitOptionalTags;let a=n.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(r.tagName.toLowerCase());const c=[];let o;n.space==="html"&&r.tagName==="svg"&&(i.schema=dt);const u=Ii(i,r.properties),m=i.all(n.space==="html"&&r.tagName==="template"?r.content:r);return i.schema=n,m&&(a=!1),(u||!s||!yi(r,e,t))&&(c.push("<",r.tagName,u?" "+u:""),a&&(n.space==="svg"||i.settings.closeSelfClosing)&&(o=u.charAt(u.length-1),(!i.settings.tightSelfClosing||o==="/"||o&&o!=='"'&&o!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(m),!a&&(!s||!Me(r,e,t))&&c.push("</"+r.tagName+">"),c.join("")}function Ii(r,e){const t=[];let i=-1,n;if(e){for(n in e)if(e[n]!==null&&e[n]!==void 0){const s=bi(r,n,e[n]);s&&t.push(s)}}for(;++i<t.length;){const s=r.settings.tightAttributes?t[i].charAt(t[i].length-1):void 0;i!==t.length-1&&s!=='"'&&s!=="'"&&(t[i]+=" ")}return t.join("")}function bi(r,e,t){const i=qt(r.schema,e),n=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,s=r.settings.allowDangerousCharacters?0:1;let a=r.quote,c;if(i.overloadedBoolean&&(t===i.attribute||t==="")?t=!0:(i.boolean||i.overloadedBoolean)&&(typeof t!="string"||t===i.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const o=j(i.attribute,Object.assign({},r.settings.characterReferences,{subset:Z.name[n][s]}));return t===!0||(t=Array.isArray(t)?(i.commaSeparated?zt:Kt)(t,{padLeft:!r.settings.tightCommaSeparatedLists}):String(t),r.settings.collapseEmptyAttributes&&!t)?o:(r.settings.preferUnquoted&&(c=j(t,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:Z.unquoted[n][s]}))),c!==t&&(r.settings.quoteSmart&&Ke(t,a)>Ke(t,r.alternative)&&(a=r.alternative),c=a+j(t,Object.assign({},r.settings.characterReferences,{subset:(a==="'"?Z.single:Z.double)[n][s],attribute:!0}))+a),o+(c&&"="+c))}const Si=["<","&"];function kt(r,e,t,i){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?r.value:j(r.value,Object.assign({},i.settings.characterReferences,{subset:Si}))}function Oi(r,e,t,i){return i.settings.allowDangerousHtml?r.value:kt(r,e,t,i)}function wi(r,e,t,i){return i.all(r)}const Ci=Jt("type",{invalid:ki,unknown:Di,handlers:{comment:ii,doctype:ni,element:Pi,raw:Oi,root:wi,text:kt}});function ki(r){throw new Error("Expected node, not `"+r+"`")}function Di(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ni={},Vi={},xi=[];function Gi(r,e){const t=e||Ni,i=t.quote||'"',n=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:Mi,all:Bi,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Xt,characterReferences:t.characterReferences||Vi,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?dt:Qt,quote:i,alternative:n}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function Mi(r,e,t){return Ci(r,e,t,this)}function Bi(r){const e=[],t=r&&r.children||xi;let i=-1;for(;++i<t.length;)e[i]=this.one(t[i],i,r);return e.join("")}function ce(r,e){const t=typeof r=="string"?{}:{...r.colorReplacements},i=typeof r=="string"?r:r.name;for(const[n,s]of Object.entries(e?.colorReplacements||{}))typeof s=="string"?t[n]=s:n===i&&Object.assign(t,s);return t}function N(r,e){return r&&(e?.[r?.toLowerCase()]||r)}function ji(r){return Array.isArray(r)?r:[r]}async function Dt(r){return Promise.resolve(typeof r=="function"?r():r).then(e=>e.default||e)}function Be(r){return!r||["plaintext","txt","text","plain"].includes(r)}function Nt(r){return r==="ansi"||Be(r)}function je(r){return r==="none"}function Vt(r){return je(r)}function xt(r,e){if(!e)return r;r.properties||={},r.properties.class||=[],typeof r.properties.class=="string"&&(r.properties.class=r.properties.class.split(/\s+/g)),Array.isArray(r.properties.class)||(r.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const i of t)i&&!r.properties.class.includes(i)&&r.properties.class.push(i);return r}function pe(r,e=!1){const t=r.split(/(\r?\n)/g);let i=0;const n=[];for(let s=0;s<t.length;s+=2){const a=e?t[s]+(t[s+1]||""):t[s];n.push([a,i]),i+=t[s].length,i+=t[s+1]?.length||0}return n}function $i(r){const e=pe(r,!0).map(([n])=>n);function t(n){if(n===r.length)return{line:e.length-1,character:e[e.length-1].length};let s=n,a=0;for(const c of e){if(s<c.length)break;s-=c.length,a++}return{line:a,character:s}}function i(n,s){let a=0;for(let c=0;c<n;c++)a+=e[c].length;return a+=s,a}return{lines:e,indexToPos:t,posToIndex:i}}function Ui(r,e,t){const i=new Set;for(const s of r.matchAll(/lang=["']([\w-]+)["']/g))i.add(s[1]);for(const s of r.matchAll(/(?:```|~~~)([\w-]+)/g))i.add(s[1]);for(const s of r.matchAll(/\\begin\{([\w-]+)\}/g))i.add(s[1]);if(!t)return Array.from(i);const n=t.getBundledLanguages();return Array.from(i).filter(s=>s&&n[s])}const $e="light-dark()",Wi=["color","background-color"];function Hi(r,e){let t=0;const i=[];for(const n of e)n>t&&i.push({...r,content:r.content.slice(t,n),offset:r.offset+t}),t=n;return t<r.content.length&&i.push({...r,content:r.content.slice(t),offset:r.offset+t}),i}function Fi(r,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((i,n)=>i-n);return t.length?r.map(i=>i.flatMap(n=>{const s=t.filter(a=>n.offset<a&&a<n.offset+n.content.length).map(a=>a-n.offset).sort((a,c)=>a-c);return s.length?Hi(n,s):n})):r}function qi(r,e,t,i,n="css-vars"){const s={content:r.content,explanation:r.explanation,offset:r.offset},a=e.map(m=>le(r.variants[m])),c=new Set(a.flatMap(m=>Object.keys(m))),o={},u=(m,d)=>{const _=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return t+e[m]+(d==="color"?"":_)};return a.forEach((m,d)=>{for(const _ of c){const h=m[_]||"inherit";if(d===0&&i&&Wi.includes(_))if(i===$e&&a.length>1){const p=e.findIndex(f=>f==="light"),v=e.findIndex(f=>f==="dark");if(p===-1||v===-1)throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const E=a[p][_]||"inherit",g=a[v][_]||"inherit";o[_]=`light-dark(${E}, ${g})`,n==="css-vars"&&(o[u(d,_)]=h)}else o[_]=h;else n==="css-vars"&&(o[u(d,_)]=h)}}),s.htmlStyle=o,s}function le(r){const e={};if(r.color&&(e.color=r.color),r.bgColor&&(e["background-color"]=r.bgColor),r.fontStyle){r.fontStyle&S.Italic&&(e["font-style"]="italic"),r.fontStyle&S.Bold&&(e["font-weight"]="bold");const t=[];r.fontStyle&S.Underline&&t.push("underline"),r.fontStyle&S.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function Ve(r){return typeof r=="string"?r:Object.entries(r).map(([e,t])=>`${e}:${t}`).join(";")}const Gt=new WeakMap;function _e(r,e){Gt.set(r,e)}function J(r){return Gt.get(r)}class U{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new U(Object.fromEntries(ji(t).map(i=>[i,De])),e)}constructor(...e){if(e.length===2){const[t,i]=e;this.lang=i,this._stacks=t}else{const[t,i,n]=e;this.lang=i,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return zi(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function zi(r){const e=[],t=new Set;function i(n){if(t.has(n))return;t.add(n);const s=n?.nameScopesList?.scopeName;s&&e.push(s),n.parent&&i(n.parent)}return i(r),e}function Ki(r,e){if(!(r instanceof U))throw new T("Invalid grammar state");return r.getInternalStack(e)}function Ji(){const r=new WeakMap;function e(t){if(!r.has(t.meta)){let i=function(a){if(typeof a=="number"){if(a<0||a>t.source.length)throw new T(`Invalid decoration offset: ${a}. Code length: ${t.source.length}`);return{...n.indexToPos(a),offset:a}}else{const c=n.lines[a.line];if(c===void 0)throw new T(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${n.lines.length}`);let o=a.character;if(o<0&&(o=c.length+o),o<0||o>c.length)throw new T(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${c.length}`);return{...a,character:o,offset:n.posToIndex(a.line,o)}}};const n=$i(t.source),s=(t.options.decorations||[]).map(a=>({...a,start:i(a.start),end:i(a.end)}));Qi(s),r.set(t.meta,{decorations:s,converter:n,source:t.source})}return r.get(t.meta)}return{name:"shiki:decorations",tokens(t){if(!this.options.decorations?.length)return;const n=e(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Fi(t,n)},code(t){if(!this.options.decorations?.length)return;const i=e(this),n=Array.from(t.children).filter(m=>m.type==="element"&&m.tagName==="span");if(n.length!==i.converter.lines.length)throw new T(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function s(m,d,_,h){const p=n[m];let v="",E=-1,g=-1;if(d===0&&(E=0),_===0&&(g=0),_===Number.POSITIVE_INFINITY&&(g=p.children.length),E===-1||g===-1)for(let y=0;y<p.children.length;y++)v+=Mt(p.children[y]),E===-1&&v.length===d&&(E=y+1),g===-1&&v.length===_&&(g=y+1);if(E===-1)throw new T(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(g===-1)throw new T(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const f=p.children.slice(E,g);if(!h.alwaysWrap&&f.length===p.children.length)c(p,h,"line");else if(!h.alwaysWrap&&f.length===1&&f[0].type==="element")c(f[0],h,"token");else{const y={type:"element",tagName:"span",properties:{},children:f};c(y,h,"wrapper"),p.children.splice(E,f.length,y)}}function a(m,d){n[m]=c(n[m],d,"line")}function c(m,d,_){const h=d.properties||{},p=d.transform||(v=>v);return m.tagName=d.tagName||"span",m.properties={...m.properties,...h,class:m.properties.class},d.properties?.class&&xt(m,d.properties.class),m=p(m,_)||m,m}const o=[],u=i.decorations.sort((m,d)=>d.start.offset-m.start.offset||m.end.offset-d.end.offset);for(const m of u){const{start:d,end:_}=m;if(d.line===_.line)s(d.line,d.character,_.character,m);else if(d.line<_.line){s(d.line,d.character,Number.POSITIVE_INFINITY,m);for(let h=d.line+1;h<_.line;h++)o.unshift(()=>a(h,m));s(_.line,0,_.character,m)}}o.forEach(m=>m())}}}function Qi(r){for(let e=0;e<r.length;e++){const t=r[e];if(t.start.offset>t.end.offset)throw new T(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let i=e+1;i<r.length;i++){const n=r[i],s=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,a=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset,c=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,o=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset;if(s||a||c||o){if(s&&a||c&&o||c&&t.start.offset===t.end.offset||a&&n.start.offset===n.end.offset)continue;throw new T(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function Mt(r){return r.type==="text"?r.value:r.type==="element"?r.children.map(Mt).join(""):""}const Xi=[Ji()];function ue(r){const e=Yi(r.transformers||[]);return[...e.pre,...e.normal,...e.post,...Xi]}function Yi(r){const e=[],t=[],i=[];for(const n of r)switch(n.enforce){case"pre":e.push(n);break;case"post":t.push(n);break;default:i.push(n)}return{pre:e,post:t,normal:i}}var G=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Pe={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Zi(r,e){const t=r.indexOf("\x1B",e);if(t!==-1&&r[t+1]==="["){const i=r.indexOf("m",t);if(i!==-1)return{sequence:r.substring(t+2,i).split(";"),startPosition:t,position:i+1}}return{position:r.length}}function ot(r){const e=r.shift();if(e==="2"){const t=r.splice(0,3).map(i=>Number.parseInt(i));return t.length!==3||t.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:t}}else if(e==="5"){const t=r.shift();if(t)return{type:"table",index:Number(t)}}}function en(r){const e=[];for(;r.length>0;){const t=r.shift();if(!t)continue;const i=Number.parseInt(t);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)Pe[i]&&e.push({type:"setDecoration",value:Pe[i]});else if(i<=29){const n=Pe[i-20];n&&(e.push({type:"resetDecoration",value:n}),n==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:G[i-30]}});else if(i===38){const n=ot(r);n&&e.push({type:"setForegroundColor",value:n})}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:G[i-40]}});else if(i===48){const n=ot(r);n&&e.push({type:"setBackgroundColor",value:n})}else i===49?e.push({type:"resetBackgroundColor"}):i===53?e.push({type:"setDecoration",value:"overline"}):i===55?e.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:G[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:G[i-100+8]}})}return e}function tn(){let r=null,e=null,t=new Set;return{parse(i){const n=[];let s=0;do{const a=Zi(i,s),c=a.sequence?i.substring(s,a.startPosition):i.substring(s);if(c.length>0&&n.push({value:c,foreground:r,background:e,decorations:new Set(t)}),a.sequence){const o=en(a.sequence);for(const u of o)u.type==="resetAll"?(r=null,e=null,t.clear()):u.type==="resetForegroundColor"?r=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&t.delete(u.value);for(const u of o)u.type==="setForegroundColor"?r=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&t.add(u.value)}s=a.position}while(s<i.length);return n}}}var rn={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 nn(r=rn){function e(c){return r[c]}function t(c){return`#${c.map(o=>Math.max(0,Math.min(o,255)).toString(16).padStart(2,"0")).join("")}`}let i;function n(){if(i)return i;i=[];for(let u=0;u<G.length;u++)i.push(e(G[u]));let c=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let m=0;m<6;m++)for(let d=0;d<6;d++)i.push(t([c[u],c[m],c[d]]));let o=8;for(let u=0;u<24;u++,o+=10)i.push(t([o,o,o]));return i}function s(c){return n()[c]}function a(c){switch(c.type){case"named":return e(c.name);case"rgb":return t(c.rgb);case"table":return s(c.index)}}return{value:a}}function sn(r,e,t){const i=ce(r,t),n=pe(e),s=nn(Object.fromEntries(G.map(c=>[c,r.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),a=tn();return n.map(c=>a.parse(c[0]).map(o=>{let u,m;o.decorations.has("reverse")?(u=o.background?s.value(o.background):r.bg,m=o.foreground?s.value(o.foreground):r.fg):(u=o.foreground?s.value(o.foreground):r.fg,m=o.background?s.value(o.background):void 0),u=N(u,i),m=N(m,i),o.decorations.has("dim")&&(u=on(u));let d=S.None;return o.decorations.has("bold")&&(d|=S.Bold),o.decorations.has("italic")&&(d|=S.Italic),o.decorations.has("underline")&&(d|=S.Underline),o.decorations.has("strikethrough")&&(d|=S.Strikethrough),{content:o.value,offset:c[1],color:u,bgColor:m,fontStyle:d}}))}function on(r){const e=r.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const i=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${i}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(i=>`${i}${i}`).join("")}80`;const t=r.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:r}function Ue(r,e,t={}){const{lang:i="text",theme:n=r.getLoadedThemes()[0]}=t;if(Be(i)||je(n))return pe(e).map(o=>[{content:o[0],offset:o[1]}]);const{theme:s,colorMap:a}=r.setTheme(n);if(i==="ansi")return sn(s,e,t);const c=r.getLanguage(i);if(t.grammarState){if(t.grammarState.lang!==c.name)throw new T(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${c.name}"`);if(!t.grammarState.themes.includes(s.name))throw new T(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return cn(e,c,s,a,t)}function an(...r){if(r.length===2)return J(r[1]);const[e,t,i={}]=r,{lang:n="text",theme:s=e.getLoadedThemes()[0]}=i;if(Be(n)||je(s))throw new T("Plain language does not have grammar state");if(n==="ansi")throw new T("ANSI language does not have grammar state");const{theme:a,colorMap:c}=e.setTheme(s),o=e.getLanguage(n);return new U(me(t,o,a,c,i).stateStack,o.name,a.name)}function cn(r,e,t,i,n){const s=me(r,e,t,i,n),a=new U(me(r,e,t,i,n).stateStack,e.name,t.name);return _e(s.tokens,a),s.tokens}function me(r,e,t,i,n){const s=ce(t,n),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:c=500}=n,o=pe(r);let u=n.grammarState?Ki(n.grammarState,t.name)??De:n.grammarContextCode!=null?me(n.grammarContextCode,e,t,i,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:De,m=[];const d=[];for(let _=0,h=o.length;_<h;_++){const[p,v]=o[_];if(p===""){m=[],d.push([]);continue}if(a>0&&p.length>=a){m=[],d.push([{content:p,offset:v,color:"",fontStyle:0}]);continue}let E,g,f;n.includeExplanation&&(E=e.tokenizeLine(p,u,c),g=E.tokens,f=0);const y=e.tokenizeLine2(p,u,c),A=y.tokens.length/2;for(let R=0;R<A;R++){const w=y.tokens[2*R],V=R+1<A?y.tokens[2*R+2]:p.length;if(w===V)continue;const Fe=y.tokens[2*R+1],Ht=N(i[$.getForeground(Fe)],s),Ft=$.getFontStyle(Fe),Ee={content:p.substring(w,V),offset:v+w,color:Ht,fontStyle:Ft};if(n.includeExplanation){const qe=[];if(n.includeExplanation!=="scopeName")for(const D of t.settings){let M;switch(typeof D.scope){case"string":M=D.scope.split(/,/).map(ye=>ye.trim());break;case"object":M=D.scope;break;default:continue}qe.push({settings:D,selectors:M.map(ye=>ye.split(/ /))})}Ee.explanation=[];let ze=0;for(;w+ze<V;){const D=g[f],M=p.substring(D.startIndex,D.endIndex);ze+=M.length,Ee.explanation.push({content:M,scopes:n.includeExplanation==="scopeName"?ln(D.scopes):un(qe,D.scopes)}),f+=1}}m.push(Ee)}d.push(m),m=[],u=y.ruleStack}return{tokens:d,stateStack:u}}function ln(r){return r.map(e=>({scopeName:e}))}function un(r,e){const t=[];for(let i=0,n=e.length;i<n;i++){const s=e[i];t[i]={scopeName:s,themeMatches:dn(r,s,e.slice(0,i))}}return t}function at(r,e){return r===e||e.substring(0,r.length)===r&&e[r.length]==="."}function mn(r,e,t){if(!at(r[r.length-1],e))return!1;let i=r.length-2,n=t.length-1;for(;i>=0&&n>=0;)at(r[i],t[n])&&(i-=1),n-=1;return i===-1}function dn(r,e,t){const i=[];for(const{selectors:n,settings:s}of r)for(const a of n)if(mn(a,e,t)){i.push(s);break}return i}function Bt(r,e,t){const i=Object.entries(t.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),n=i.map(o=>{const u=Ue(r,e,{...t,theme:o.theme}),m=J(u),d=typeof o.theme=="string"?o.theme:o.theme.name;return{tokens:u,state:m,theme:d}}),s=hn(...n.map(o=>o.tokens)),a=s[0].map((o,u)=>o.map((m,d)=>{const _={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in t&&t.includeExplanation&&(_.explanation=m.explanation),s.forEach((h,p)=>{const{content:v,explanation:E,offset:g,...f}=h[u][d];_.variants[i[p].color]=f}),_})),c=n[0].state?new U(Object.fromEntries(n.map(o=>[o.theme,o.state?.getInternalStack(o.theme)])),n[0].state.lang):void 0;return c&&_e(a,c),a}function hn(...r){const e=r.map(()=>[]),t=r.length;for(let i=0;i<r[0].length;i++){const n=r.map(o=>o[i]),s=e.map(()=>[]);e.forEach((o,u)=>o.push(s[u]));const a=n.map(()=>0),c=n.map(o=>o[0]);for(;c.every(o=>o);){const o=Math.min(...c.map(u=>u.content.length));for(let u=0;u<t;u++){const m=c[u];m.content.length===o?(s[u].push(m),a[u]+=1,c[u]=n[u][a[u]]):(s[u].push({...m,content:m.content.slice(0,o)}),c[u]={...m,content:m.content.slice(o),offset:m.offset+o})}}}return e}function de(r,e,t){let i,n,s,a,c,o;if("themes"in t){const{defaultColor:u="light",cssVariablePrefix:m="--shiki-",colorsRendering:d="css-vars"}=t,_=Object.entries(t.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,f)=>g.color===u?-1:f.color===u?1:0);if(_.length===0)throw new T("`themes` option must not be empty");const h=Bt(r,e,t);if(o=J(h),u&&$e!==u&&!_.find(g=>g.color===u))throw new T(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=_.map(g=>r.getTheme(g.theme)),v=_.map(g=>g.color);s=h.map(g=>g.map(f=>qi(f,v,m,u,d))),o&&_e(s,o);const E=_.map(g=>ce(g.theme,t));n=ct(_,p,E,m,u,"fg",d),i=ct(_,p,E,m,u,"bg",d),a=`shiki-themes ${p.map(g=>g.name).join(" ")}`,c=u?void 0:[n,i].join(";")}else if("theme"in t){const u=ce(t.theme,t);s=Ue(r,e,t);const m=r.getTheme(t.theme);i=N(m.bg,u),n=N(m.fg,u),a=m.name,o=J(s)}else throw new T("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:n,bg:i,themeName:a,rootStyle:c,grammarState:o}}function ct(r,e,t,i,n,s,a){return r.map((c,o)=>{const u=N(e[o][s],t[o])||"inherit",m=`${i+c.color}${s==="bg"?"-bg":""}:${u}`;if(o===0&&n){if(n===$e&&r.length>1){const d=r.findIndex(v=>v.color==="light"),_=r.findIndex(v=>v.color==="dark");if(d===-1||_===-1)throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=N(e[d][s],t[d])||"inherit",p=N(e[_][s],t[_])||"inherit";return`light-dark(${h}, ${p});${m}`}return u}return a==="css-vars"?m:null}).filter(c=>!!c).join(";")}function he(r,e,t,i={meta:{},options:t,codeToHast:(n,s)=>he(r,n,s),codeToTokens:(n,s)=>de(r,n,s)}){let n=e;for(const p of ue(t))n=p.preprocess?.call(i,n,t)||n;let{tokens:s,fg:a,bg:c,themeName:o,rootStyle:u,grammarState:m}=de(r,n,t);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:_=!1}=t;d===!0?s=_n(s):d==="never"&&(s=fn(s)),_&&(s=gn(s));const h={...i,get source(){return n}};for(const p of ue(t))s=p.tokens?.call(h,s)||s;return pn(s,{...t,fg:a,bg:c,themeName:o,rootStyle:u},h,m)}function pn(r,e,t,i=J(r)){const n=ue(e),s=[],a={type:"root",children:[]},{structure:c="classic",tabindex:o="0"}=e;let u={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...o!==!1&&o!=null?{tabindex:o.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:s};const d=[],_={...t,structure:c,addClassToHast:xt,get source(){return t.source},get tokens(){return r},get options(){return e},get root(){return a},get pre(){return u},get code(){return m},get lines(){return d}};if(r.forEach((p,v)=>{v&&(c==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&s.push({type:"text",value:`
`}));let E={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(const f of p){let y={type:"element",tagName:"span",properties:{...f.htmlAttrs},children:[{type:"text",value:f.content}]};const A=Ve(f.htmlStyle||le(f));A&&(y.properties.style=A);for(const R of n)y=R?.span?.call(_,y,v+1,g,E,f)||y;c==="inline"?a.children.push(y):c==="classic"&&E.children.push(y),g+=f.content.length}if(c==="classic"){for(const f of n)E=f?.line?.call(_,E,v+1)||E;d.push(E),s.push(E)}}),c==="classic"){for(const p of n)m=p?.code?.call(_,m)||m;u.children.push(m);for(const p of n)u=p?.pre?.call(_,u)||u;a.children.push(u)}let h=a;for(const p of n)h=p?.root?.call(_,h)||h;return i&&_e(h,i),h}function _n(r){return r.map(e=>{const t=[];let i="",n=0;return e.forEach((s,a)=>{const o=!(s.fontStyle&&(s.fontStyle&S.Underline||s.fontStyle&S.Strikethrough));o&&s.content.match(/^\s+$/)&&e[a+1]?(n||(n=s.offset),i+=s.content):i?(o?t.push({...s,offset:n,content:i+s.content}):t.push({content:i,offset:n},s),n=0,i=""):t.push(s)}),t})}function fn(r){return r.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const i=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return t;const[,n,s,a]=i;if(!n&&!a)return t;const c=[{...t,offset:t.offset+n.length,content:s}];return n&&c.unshift({content:n,offset:t.offset}),a&&c.push({content:a,offset:t.offset+n.length+s.length}),c}))}function gn(r){return r.map(e=>{const t=[];for(const i of e){if(t.length===0){t.push({...i});continue}const n=t[t.length-1],s=Ve(n.htmlStyle||le(n)),a=Ve(i.htmlStyle||le(i)),c=n.fontStyle&&(n.fontStyle&S.Underline||n.fontStyle&S.Strikethrough),o=i.fontStyle&&(i.fontStyle&S.Underline||i.fontStyle&S.Strikethrough);!c&&!o&&s===a?n.content+=i.content:t.push({...i})}return t})}const En=Gi;function yn(r,e,t){const i={meta:{},options:t,codeToHast:(s,a)=>he(r,s,a),codeToTokens:(s,a)=>de(r,s,a)};let n=En(he(r,e,t,i));for(const s of ue(t))n=s.postprocess?.call(i,n,t)||n;return n}const lt={light:"#333333",dark:"#bbbbbb"},ut={light:"#fffffe",dark:"#1e1e1e"},mt="__shiki_resolved";function We(r){if(r?.[mt])return r;const e={...r};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:i}=e;if(!t||!i){const c=e.settings?e.settings.find(o=>!o.name&&!o.scope):void 0;c?.settings?.foreground&&(i=c.settings.foreground),c?.settings?.background&&(t=c.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),i||(i=e.type==="light"?lt.light:lt.dark),t||(t=e.type==="light"?ut.light:ut.dark),e.fg=i,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let n=0;const s=new Map;function a(c){if(s.has(c))return s.get(c);n+=1;const o=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${o}`]?a(c):(s.set(c,o),o)}e.settings=e.settings.map(c=>{const o=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),u=c.settings?.background&&!c.settings.background.startsWith("#");if(!o&&!u)return c;const m={...c,settings:{...c.settings}};if(o){const d=a(c.settings.foreground);e.colorReplacements[d]=c.settings.foreground,m.settings.foreground=d}if(u){const d=a(c.settings.background);e.colorReplacements[d]=c.settings.background,m.settings.background=d}return m});for(const c of Object.keys(e.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!e.colors[c]?.startsWith("#")){const o=a(e.colors[c]);e.colorReplacements[o]=e.colors[c],e.colors[c]=o}return Object.defineProperty(e,mt,{enumerable:!1,writable:!1,value:!0}),e}async function jt(r){return Array.from(new Set((await Promise.all(r.filter(e=>!Nt(e)).map(async e=>await Dt(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function $t(r){return(await Promise.all(r.map(async t=>Vt(t)?null:We(await Dt(t))))).filter(t=>!!t)}let vn=3;function Rn(r,e=3){e>vn||console.trace(`[SHIKI DEPRECATE]: ${r}`)}let B=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class Tn extends Gr{constructor(e,t,i,n={}){super(e),this._resolver=e,this._themes=t,this._langs=i,this._alias=n,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=We(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=ie.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new B(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const n=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(s=>{this._alias[s]=e.name}),this._loadedLanguagesCache=null,t.size)for(const s of t)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.entries()),i=t.filter(([n,s])=>!s);if(i.length){const n=t.filter(([s,a])=>a&&a.embeddedLangs?.some(c=>i.map(([o])=>o).includes(c))).filter(s=>!i.includes(s));throw new B(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${n.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[n,s]of t)this._resolver.addLanguage(s);for(const[n,s]of t)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class An{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},t.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let i=[];for(let n=1;n<=t.length;n++){const s=t.slice(0,n).join(".");i=[...i,...this._injections.get(s)||[]]}return i}}let W=0;function Ln(r){W+=1,r.warnings!==!1&&W>=10&&W%10===0&&console.warn(`[Shiki] ${W} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!r.engine)throw new B("`engine` option is required for synchronous mode");const t=(r.langs||[]).flat(1),i=(r.themes||[]).flat(1).map(We),n=new An(r.engine,t),s=new Tn(n,i,t,r.langAlias);let a;function c(f){E();const y=s.getGrammar(typeof f=="string"?f:f.name);if(!y)throw new B(`Language \`${f}\` not found, you may need to load it first`);return y}function o(f){if(f==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const y=s.getTheme(f);if(!y)throw new B(`Theme \`${f}\` not found, you may need to load it first`);return y}function u(f){E();const y=o(f);a!==f&&(s.setTheme(y),a=f);const A=s.getColorMap();return{theme:y,colorMap:A}}function m(){return E(),s.getLoadedThemes()}function d(){return E(),s.getLoadedLanguages()}function _(...f){E(),s.loadLanguages(f.flat(1))}async function h(...f){return _(await jt(f))}function p(...f){E();for(const y of f.flat(1))s.loadTheme(y)}async function v(...f){return E(),p(await $t(f))}function E(){if(e)throw new B("Shiki instance has been disposed")}function g(){e||(e=!0,s.dispose(),W-=1)}return{setTheme:u,getTheme:o,getLanguage:c,getLoadedThemes:m,getLoadedLanguages:d,loadLanguage:h,loadLanguageSync:_,loadTheme:v,loadThemeSync:p,dispose:g,[Symbol.dispose]:g}}async function Pn(r){r.engine||Rn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,i]=await Promise.all([$t(r.themes||[]),jt(r.langs||[]),r.engine]);return Ln({...r,themes:e,langs:t,engine:i})}async function In(r){const e=await Pn(r);return{getLastGrammarState:(...t)=>an(e,...t),codeToTokensBase:(t,i)=>Ue(e,t,i),codeToTokensWithThemes:(t,i)=>Bt(e,t,i),codeToTokens:(t,i)=>de(e,t,i),codeToHast:(t,i)=>he(e,t,i),codeToHtml:(t,i)=>yn(e,t,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function bn(r){const e=r.langs,t=r.themes,i=r.engine;async function n(s){function a(d){if(typeof d=="string"){if(Nt(d))return[];d=s.langAlias?.[d]||d;const _=e[d];if(!_)throw new T(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return _}return d}function c(d){if(Vt(d))return"none";if(typeof d=="string"){const _=t[d];if(!_)throw new T(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return _}return d}const o=(s.themes??[]).map(d=>c(d)),u=(s.langs??[]).map(d=>a(d)),m=await In({engine:s.engine??i(),...s,themes:o,langs:u});return{...m,loadLanguage(...d){return m.loadLanguage(...d.map(a))},loadTheme(...d){return m.loadTheme(...d.map(c))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return n}function Sn(r){let e;async function t(i={}){if(e){const n=await e;return await Promise.all([n.loadTheme(...i.themes||[]),n.loadLanguage(...i.langs||[])]),n}else return e=r({...i,themes:i.themes||[],langs:i.langs||[]}),e}return t}function On(r,e){const t=Sn(r);async function i(n,s){const a=await t({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),c=await e?.guessEmbeddedLanguages?.(n,s.lang,a);return c&&await a.loadLanguage(...c),a}return{getSingletonHighlighter(n){return t(n)},async codeToHtml(n,s){return(await i(n,s)).codeToHtml(n,s)},async codeToHast(n,s){return(await i(n,s)).codeToHast(n,s)},async codeToTokens(n,s){return(await i(n,s)).codeToTokens(n,s)},async codeToTokensBase(n,s){return(await i(n,s)).codeToTokensBase(n,s)},async codeToTokensWithThemes(n,s){return(await i(n,s)).codeToTokensWithThemes(n,s)},async getLastGrammarState(n,s){return(await t({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(n,s)}}}const Ut=[{id:"abap",name:"ABAP",import:(()=>l(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>l(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>l(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>l(()=>import("./angular-html-Bbf3ZyxA.js").then(r=>r.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>l(()=>import("./angular-ts-C26w9mnW.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>l(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>l(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>l(()=>import("./apl-e980N3t4.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>l(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>l(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>l(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>l(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>l(()=>import("./astro-CjFzhNUq.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>l(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>l(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>l(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>l(()=>import("./beancount-BoKiGodi.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>l(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>l(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>l(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>l(()=>import("./blade-B2ZbN0F_.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>l(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>l(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>l(()=>import("./cadence-D2CYqzqI.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>l(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>l(()=>import("./clarity-CHh-QcGE.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>l(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>l(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>l(()=>import("./cobol-DwXMNnPA.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>l(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>l(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>l(()=>import("./coffee-JUOWOZUj.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>l(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>l(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>l(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>l(()=>import("./crystal-DVs0tusA.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>l(()=>import("./csharp-CHadp7IV.js"),[]))},{id:"css",name:"CSS",import:(()=>l(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>l(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>l(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>l(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>l(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>l(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>l(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>l(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>l(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>l(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>l(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>l(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>l(()=>import("./edge-CKszZCnI.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>l(()=>import("./elixir-Cc7HHYVZ.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>l(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>l(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>l(()=>import("./erb-C7QrGF_t.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>l(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>l(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>l(()=>import("./fish-Bl2oy6fF.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>l(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>l(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>l(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>l(()=>import("./fsharp-CufqaIoK.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>l(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>l(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>l(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>l(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>l(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>l(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>l(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>l(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>l(()=>import("./glimmer-js-Dz9X99Cm.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>l(()=>import("./glimmer-ts-aQ3p29eY.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>l(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>l(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>l(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>l(()=>import("./graphql-Caa12_AY.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>l(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>l(()=>import("./hack-D_o3P2UH.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>l(()=>import("./haml-AZXGPtNI.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>l(()=>import("./handlebars-YebKLiTq.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>l(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>l(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>l(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>l(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>l(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>l(()=>import("./html-B8pBdPMQ.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>l(()=>import("./html-derivative-ZQ8onl8Z.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>l(()=>import("./http-C38VWM-o.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hxml",name:"HXML",import:(()=>l(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([55,56])))},{id:"hy",name:"Hy",import:(()=>l(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>l(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>l(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>l(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js"],import:(()=>l(()=>import("./javascript-BMMyXqK5.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>l(()=>import("./jinja-BJmZiE_F.js"),__vite__mapDeps([57,1,2,3])))},{id:"jison",name:"Jison",import:(()=>l(()=>import("./jison-BCRtk9Os.js"),__vite__mapDeps([58,2])))},{id:"json",name:"JSON",import:(()=>l(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>l(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>l(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>l(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>l(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>l(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>l(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>l(()=>import("./julia-353pQ8cl.js"),__vite__mapDeps([59,23,24,25,26,16,20,2,60])))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>l(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>l(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>l(()=>import("./latex-CPEt12BK.js"),__vite__mapDeps([61,62,60])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>l(()=>import("./lean-qliWkHmV.js"),[]))},{id:"less",name:"Less",import:(()=>l(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>l(()=>import("./liquid-DFk8BABL.js"),__vite__mapDeps([63,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>l(()=>import("./llvm-D32k8WzR.js"),[]))},{id:"log",name:"Log file",import:(()=>l(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>l(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>l(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>l(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>l(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>l(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>l(()=>import("./marko-BM38lbjI.js"),__vite__mapDeps([64,3,65,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>l(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>l(()=>import("./mdc-DvHMhoCT.js"),__vite__mapDeps([66,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>l(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>l(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>l(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>l(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>l(()=>import("./move-DNEoBllO.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>l(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>l(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>l(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([67,37,26])))},{id:"nim",name:"Nim",import:(()=>l(()=>import("./nim-BZI_8mFl.js"),__vite__mapDeps([68,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>l(()=>import("./nix-BepWV7mh.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>l(()=>import("./nushell-ChH_ziBE.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>l(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>l(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>l(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>l(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>l(()=>import("./perl-g0D2lH3a.js"),__vite__mapDeps([69,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>l(()=>import("./php-Gk5eUrPQ.js"),__vite__mapDeps([70,1,2,3,7,8,16,9])))},{id:"plsql",name:"PL/SQL",import:(()=>l(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>l(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>l(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>l(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>l(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>l(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>l(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>l(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>l(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>l(()=>import("./pug-Ch9lOoSd.js"),__vite__mapDeps([71,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>l(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>l(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>l(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>l(()=>import("./qml-CHzV51_b.js"),__vite__mapDeps([72,2])))},{id:"qmldir",name:"QML Directory",import:(()=>l(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>l(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>l(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>l(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>l(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>l(()=>import("./razor-CNXmhs1n.js"),__vite__mapDeps([73,1,2,3,74])))},{id:"reg",name:"Windows Registry Script",import:(()=>l(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>l(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>l(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>l(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>l(()=>import("./rst-DKdxLoXm.js"),__vite__mapDeps([75,15,1,2,3,23,24,25,26,16,20,28,38,76,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>l(()=>import("./ruby-W1VRIm2Q.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>l(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>l(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([77,16])))},{id:"sass",name:"Sass",import:(()=>l(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>l(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>l(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>l(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>l(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>l(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([78,79])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>l(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>l(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([80,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>l(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>l(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>l(()=>import("./soy-B_7ge1HE.js"),__vite__mapDeps([81,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>l(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([82,83])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>l(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>l(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>l(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>l(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([84,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>l(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>l(()=>import("./svelte-Dt5jNKfG.js"),__vite__mapDeps([85,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>l(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>l(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>l(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>l(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>l(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>l(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>l(()=>import("./templ-0CNLO7il.js"),__vite__mapDeps([86,87,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>l(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>l(()=>import("./tex-B5i3u9ba.js"),__vite__mapDeps([62,60])))},{id:"toml",name:"TOML",import:(()=>l(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>l(()=>import("./ts-tags-B9XN6NYQ.js"),__vite__mapDeps([88,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>l(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>l(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>l(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>l(()=>import("./twig-B_ULif71.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:(()=>l(()=>import("./typescript-DlfHMoPT.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>l(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>l(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>l(()=>import("./v-DljmTZ5-.js"),[]))},{id:"vala",name:"Vala",import:(()=>l(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>l(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>l(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>l(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>l(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>l(()=>import("./vue-BEetzCYT.js"),__vite__mapDeps([90,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>l(()=>import("./vue-html-BsD9fJC1.js"),__vite__mapDeps([91,90,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>l(()=>import("./vue-vine-CCdTUzyM.js"),__vite__mapDeps([92,3,5,65,93,12,90,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>l(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>l(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>l(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>l(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>l(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>l(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>l(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>l(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>l(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([94,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>l(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>l(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>l(()=>import("./zig-VOosw3JB.js"),[]))}],wn=Object.fromEntries(Ut.map(r=>[r.id,r.import])),Cn=Object.fromEntries(Ut.flatMap(r=>r.aliases?.map(e=>[e,r.import])||[])),kn={...wn,...Cn},Dn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>l(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>l(()=>import("./catppuccin-frappe-BBxmzUt6.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>l(()=>import("./catppuccin-latte-Jep7L2Wt.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>l(()=>import("./catppuccin-macchiato-CIUZ1G5V.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>l(()=>import("./catppuccin-mocha-NBseiqgx.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>l(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>l(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>l(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>l(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>l(()=>import("./gruvbox-dark-hard-D1uDOp7C.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>l(()=>import("./gruvbox-dark-medium-DkhsQLT2.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>l(()=>import("./gruvbox-dark-soft-CcyOm34o.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>l(()=>import("./gruvbox-light-hard-DKzvysjW.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>l(()=>import("./gruvbox-light-medium-DPcUKYIF.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>l(()=>import("./gruvbox-light-soft-CGqH5EJj.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>l(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>l(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>l(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>l(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>l(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>l(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>l(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>l(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>l(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>l(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>l(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>l(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>l(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>l(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>l(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>l(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>l(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>l(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>l(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>l(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>l(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>l(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>l(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>l(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Nn=Object.fromEntries(Dn.map(r=>[r.id,r.import]));class He extends Error{constructor(e){super(e),this.name="ShikiError"}}function Vn(){return 2147483648}function xn(){return typeof performance<"u"?performance.now():Date.now()}const Gn=(r,e)=>r+(e-r%e)%e;async function Mn(r){let e,t;const i={};function n(h){t=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function s(h,p,v){i.HEAPU8.copyWithin(h,p,p+v)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function c(h){const p=i.HEAPU8.length;h=h>>>0;const v=Vn();if(h>v)return!1;for(let E=1;E<=4;E*=2){let g=p*(1+.2/E);g=Math.min(g,h+100663296);const f=Math.min(v,Gn(Math.max(h,g),65536));if(a(f))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,p,v=1024){const E=p+v;let g=p;for(;h[g]&&!(g>=E);)++g;if(g-p>16&&h.buffer&&o)return o.decode(h.subarray(p,g));let f="";for(;p<g;){let y=h[p++];if(!(y&128)){f+=String.fromCharCode(y);continue}const A=h[p++]&63;if((y&224)===192){f+=String.fromCharCode((y&31)<<6|A);continue}const R=h[p++]&63;if((y&240)===224?y=(y&15)<<12|A<<6|R:y=(y&7)<<18|A<<12|R<<6|h[p++]&63,y<65536)f+=String.fromCharCode(y);else{const w=y-65536;f+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return f}function m(h,p){return h?u(i.HEAPU8,h,p):""}const d={emscripten_get_now:xn,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function _(){const p=await r({env:d,wasi_snapshot_preview1:d});e=p.memory,n(e.buffer),Object.assign(i,p),i.UTF8ToString=m}return await _(),i}var Bn=Object.defineProperty,jn=(r,e,t)=>e in r?Bn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e,t)=>jn(r,typeof e!="symbol"?e+"":e,t);let I=null;function $n(r){throw new He(r.UTF8ToString(r.getLastOnigError()))}class fe{constructor(e){L(this,"utf16Length"),L(this,"utf8Length"),L(this,"utf16Value"),L(this,"utf8Value"),L(this,"utf16OffsetToUtf8"),L(this,"utf8OffsetToUtf16");const t=e.length,i=fe._utf8ByteLength(e),n=i!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=i);const a=n?new Uint32Array(i+1):null;n&&(a[i]=t);const c=new Uint8Array(i);let o=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let d=m,_=!1;if(m>=55296&&m<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(d=(m-55296<<10)+65536|h-56320,_=!0)}n&&(s[u]=o,_&&(s[u+1]=o),d<=127?a[o+0]=u:d<=2047?(a[o+0]=u,a[o+1]=u):d<=65535?(a[o+0]=u,a[o+1]=u,a[o+2]=u):(a[o+0]=u,a[o+1]=u,a[o+2]=u,a[o+3]=u)),d<=127?c[o++]=d:d<=2047?(c[o++]=192|(d&1984)>>>6,c[o++]=128|(d&63)>>>0):d<=65535?(c[o++]=224|(d&61440)>>>12,c[o++]=128|(d&4032)>>>6,c[o++]=128|(d&63)>>>0):(c[o++]=240|(d&1835008)>>>18,c[o++]=128|(d&258048)>>>12,c[o++]=128|(d&4032)>>>6,c[o++]=128|(d&63)>>>0),_&&u++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i<n;i++){const s=e.charCodeAt(i);let a=s,c=!1;if(s>=55296&&s<=56319&&i+1<n){const o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,c=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,c&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const ge=class k{constructor(e){if(L(this,"id",++k.LAST_ID),L(this,"_onigBinding"),L(this,"content"),L(this,"utf16Length"),L(this,"utf8Length"),L(this,"utf16OffsetToUtf8"),L(this,"utf8OffsetToUtf16"),L(this,"ptr"),!I)throw new He("Must invoke loadWasm first.");this._onigBinding=I,this.content=e;const t=new fe(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!k._sharedPtrInUse?(k._sharedPtr||(k._sharedPtr=I.omalloc(1e4)),k._sharedPtrInUse=!0,I.HEAPU8.set(t.utf8Value,k._sharedPtr),this.ptr=k._sharedPtr):this.ptr=t.createString(I)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===k._sharedPtr?k._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};L(ge,"LAST_ID",0);L(ge,"_sharedPtr",0);L(ge,"_sharedPtrInUse",!1);let Wt=ge;class Un{constructor(e){if(L(this,"_onigBinding"),L(this,"_ptr"),!I)throw new He("Must invoke loadWasm first.");const t=[],i=[];for(let c=0,o=e.length;c<o;c++){const u=new fe(e[c]);t[c]=u.createString(I),i[c]=u.utf8Length}const n=I.omalloc(4*e.length);I.HEAPU32.set(t,n/4);const s=I.omalloc(4*e.length);I.HEAPU32.set(i,s/4);const a=I.createOnigScanner(n,s,e.length);for(let c=0,o=e.length;c<o;c++)I.ofree(t[c]);I.ofree(s),I.ofree(n),a===0&&$n(I),this._onigBinding=I,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let n=0;if(typeof i=="number"&&(n=i),typeof e=="string"){e=new Wt(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,i,n){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(a===0)return null;const c=s.HEAPU32;let o=a/4;const u=c[o++],m=c[o++],d=[];for(let _=0;_<m;_++){const h=e.convertUtf8OffsetToUtf16(c[o++]),p=e.convertUtf8OffsetToUtf16(c[o++]);d[_]={start:h,end:p,length:p-h}}return{index:u,captureIndices:d}}}function Wn(r){return typeof r.instantiator=="function"}function Hn(r){return typeof r.default=="function"}function Fn(r){return typeof r.data<"u"}function qn(r){return typeof Response<"u"&&r instanceof Response}function zn(r){return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&Buffer.isBuffer?.(r)||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let ee;function Kn(r){if(ee)return ee;async function e(){I=await Mn(async t=>{let i=r;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),Wn(i)?i=await i.instantiator(t):Hn(i)?i=await i.default(t):(Fn(i)&&(i=i.data),qn(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await Jn(i)(t):i=await Qn(i)(t):zn(i)?i=await Ie(i)(t):i instanceof WebAssembly.Module?i=await Ie(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Ie(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return ee=e(),ee}function Ie(r){return e=>WebAssembly.instantiate(r,e)}function Jn(r){return e=>WebAssembly.instantiateStreaming(r,e)}function Qn(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function Xn(r){return r&&await Kn(r),{createScanner(e){return new Un(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Wt(e)}}}const Yn=bn({langs:kn,themes:Nn,engine:()=>Xn(l(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:is}=On(Yn,{guessEmbeddedLanguages:Ui});export{T as ShikiError,xt as addClassToHast,N as applyColorReplacements,kn as bundledLanguages,Cn as bundledLanguagesAlias,wn as bundledLanguagesBase,Ut as bundledLanguagesInfo,Nn as bundledThemes,Dn as bundledThemesInfo,is as codeToHtml,Yn as createHighlighter,In as createHighlighterCore,Xn as createOnigurumaEngine,$i as createPositionConverter,Pn as createShikiInternal,Ln as createShikiInternalSync,On as createSingletonShorthands,bn as createdBundledHighlighter,qi as flatTokenVariants,le as getTokenStyleObject,Ui as guessEmbeddedLanguages,En as hastToHtml,je as isNoneTheme,Be as isPlainLang,Nt as isSpecialLang,Vt as isSpecialTheme,Kn as loadWasm,Sn as makeSingletonHighlighter,Dt as normalizeGetter,We as normalizeTheme,ce as resolveColorReplacements,pe as splitLines,Hi as splitToken,Fi as splitTokens,Ve as stringifyTokenStyle,ji as toArray,sn as tokenizeAnsiWithTheme,cn as tokenizeWithTheme,pn as tokensToHast,Ji as transformerDecorations,Rn as warnDeprecated};
//# sourceMappingURL=index-BvfEuC_S.js.map
//# chunkId=019fa5a7-8457-7653-9976-c530923618c0