PageSourceSearch

https://squigglehub.org/_next/static/chunks/45528-c089575358ab20dc.js

js squigglehub.org collected 2026-10-03 23:52:21 UTC 118,770 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45528],{45528:(e,t,n)=>{let r,i,a;n.d(t,{kS:()=>tX});let l=async e=>{let t=await n.e(75016).then(n.bind(n,500)).then(e=>e.default);return WebAssembly.instantiate(t,e).then(e=>e.instance.exports)};var o,s,u,c=n(68788);let h=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(64638).then(n.bind(n,64638))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(88485).then(n.bind(n,88485))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(50146).then(n.bind(n,50146))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(50957).then(n.bind(n,50957))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(11481).then(n.bind(n,11481))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(16818).then(n.bind(n,16818))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(45017).then(n.bind(n,45017))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(47013).then(n.bind(n,47013))},{id:"dracula",displayName:"Dracula",type:"dark",import:()=>n.e(70602).then(n.bind(n,70602))},{id:"dracula-soft",displayName:"Dracula Soft",type:"dark",import:()=>n.e(44889).then(n.bind(n,44889))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(36730).then(n.bind(n,36730))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(54773).then(n.bind(n,54773))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(45388).then(n.bind(n,45388))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(11975).then(n.bind(n,11975))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(24017).then(n.bind(n,24017))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(83381).then(n.bind(n,83381))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(86587).then(n.bind(n,86587))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(45356).then(n.bind(n,45356))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(17484).then(n.bind(n,17484))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(46451).then(n.bind(n,46451))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(49411).then(n.bind(n,49411))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(82626).then(n.bind(n,82626))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(92915).then(n.bind(n,92915))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(75829).then(n.bind(n,75829))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(14765).then(n.bind(n,14765))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(22124).then(n.bind(n,22124))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(16673).then(n.bind(n,16673))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(23452).then(n.bind(n,23452))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(1933).then(n.bind(n,1933))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(23480).then(n.bind(n,23480))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(8947).then(n.bind(n,8947))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(53820).then(n.bind(n,53820))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(74396).then(n.bind(n,74396))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(86070).then(n.bind(n,86070))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(65228).then(n.bind(n,65228))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(26151).then(n.bind(n,26151))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(54739).then(n.bind(n,54739))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(70368).then(n.bind(n,70368))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(62338).then(n.bind(n,62338))}].map(e=>[e.id,e.import]));!function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"}(s||(s={}));var d=n(37811);function p(e,t){var n;let r,i,a=[],l=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),o=l.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=l.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==o)break;o=l.next()}return a;function s(){if("-"===o){o=l.next();let e=s();return t=>!!e&&!e(t)}if("("===o){o=l.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===o||","===o);){do o=l.next();while("|"===o||","===o);t=u()}return t=>e.some(e=>e(t))}();return")"===o&&(o=l.next()),e}if(m(o)){let e=[];do e.push(o),o=l.next();while(m(o));return n=>t(e,n)}return null}function u(){let e=[],t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}}function m(e){return!!e&&!!e.match(/[\w\.:]+/)}function g(e){"function"==typeof e.dispose&&e.dispose()}void 0!==d&&d.env.VSCODE_TEXTMATE_DEBUG,function(e){e.toBinaryStr=function(e){return e.toString(2).padStart(32,"0")}
1,e.print=function(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})},e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(768&e)>>>8},e.containsBalancedBrackets=function(e){return(1024&e)!=0},e.getFontStyle=function(e){return(30720&e)>>>11},e.getForeground=function(e){return(0xff8000&e)>>>15},e.getBackground=function(e){return(0xff000000&e)>>>24},e.set=function(t,n,r,i,a,l,o){let s=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(s=n),8!==r&&(u=r),null!==i&&(c=+!!i),-1!==a&&(h=a),0!==l&&(d=l),0!==o&&(p=o),(0|s|u<<8|c<<10|h<<11|d<<15|p<<24)>>>0}}(u||(u={}));function f(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}let b=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class y{static hasCaptures(e){return null!==e&&(b.lastIndex=0,b.test(e))}static replaceCaptures(e,t,n){return e.replace(b,(e,r,i,a)=>{let l=n[parseInt(r||i,10)];if(!l)return e;{let e=t.substring(l.start,l.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}}function _(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function k(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function S(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class C{fn;cache=new Map;constructor(e){this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}}class v{scopeName;constructor(e){this.scopeName=e}toKey(){return this.scopeName}}class P{scopeName;ruleName;constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}class w{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}class A{repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new v(this.initialScopeName)]}processQueue(){let e=this.Q;this.Q=[];let t=new w;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof v?L({baseGrammar:a,selfGrammar:i},r):N(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let l=n.injections(e.scopeName);if(l)for(let e of l)r.add(new v(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof v){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}}function N(e,t,n){t.repository&&t.repository[e]&&T([t.repository[e]],t,n)}function L(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&T(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&T(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function T(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?f({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&T(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=M(i);switch(a.kind){case 0:L({...t,selfGrammar:t.baseGrammar},n);break;case 1:L(t,n);break;case 2:N(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let l=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){let r={baseGrammar:t.baseGrammar,selfGrammar:l,repository:e};4===a.kind?N(a.ruleName,r,n):L(r,n)}else 4===a.kind?n.add(new P(a.scopeName,a.ruleName)):n.add(new v(a.scopeName))}}}class R{kind=0}class E{kind=1}class x{ruleName;kind=2;constructor(e){this.ruleName=e}}class O{scopeName;kind=3;constructor(e){this.scopeName=e}}class I{scopeName;ruleName;kind=4;constructor(e,t){this.scopeName=e,this.ruleName=t}}
1function M(e){if("$base"===e)return new R;if("$self"===e)return new E;let t=e.indexOf("#");return -1===t?new O(e):0===t?new x(e.substring(1)):new I(e.substring(0,t),e.substring(t+1))}let G=/\\(\d+)/,B=/\\(\d+)/g;class D{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=y.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=y.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?y.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?y.replaceCaptures(this._contentName,e,t):this._contentName}}class j extends D{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}}class U extends D{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new z(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new H,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class F extends D{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new H,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class $ extends D{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,l,o,s,u){super(e,t,n,r),this._begin=new z(i,this.id),this.beginCaptures=a,this._end=new z(l||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=s||!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(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new H,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}class W extends D{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,l,o,s){super(e,t,n,r),this._begin=new z(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=ne
1w z(l,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new H,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new H,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1}class q{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new j(t,e,n,r,i))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(r=>{if(e.id=r,e.match)return new U(e.$vscodeTextmateLocation,e.id,e.name,e.match,q._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=f({},n,e.repository));let r=e.patterns;return void 0===r&&e.include&&(r=[{include:e.include}]),new F(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,q._compilePatterns(r,t,n))}return e.while?new W(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,q._compileCaptures(e.whileCaptures||e.captures,t,n),q._compilePatterns(e.patterns,t,n)):new $(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,q._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,q._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let i=0;for(let t in e){if("$vscodeTextmateLocation"===t)continue;let e=parseInt(t,10);e>i&&(i=e)}for(let e=0;e<=i;e++)r[e]=null;for(let i in e){if("$vscodeTextmateLocation"===i)continue;let a=parseInt(i,10),l=0;e[i].patterns&&(l=q.getCompiledRuleId(e[i],t,n)),r[a]=q.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,l)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let i=0,a=e.length;i<a;i++){let a=e[i],l=-1;if(a.include){let e=M(a.include);switch(e.kind){case 0:case 1:l=q.getCompiledRuleId(n[a.include],t,n);break;case 2:let r=n[e.ruleName];r&&(l=q.getCompiledRuleId(r,t,n));break;case 3:case 4:let i=e.scopeName,o=4===e.kind?e.ruleName:null,s=t.getExternalGrammar(i,n);if(s)if(o){let e=s.repository[o];e&&(l=q.getCompiledRuleId(e,t,s.repository))}else l=q.getCompiledRuleId(s.repository.$self,t,s.repository)}}else l=q.getCompiledRuleId(a,t,n);if(-1!==l){let e=t.getRule(l),n=!1;if((e instanceof F||e instanceof $||e instanceof W)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(l)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}class z{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=G.test(this.source)}clone(){return new z(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map(t=>e.substring(t.start,t.end));return B.lastIndex=0,this.source.replace(B,(e,t)=>S(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r,i=[],a=[],l=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,l[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",l[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="ï¿¿",a[e+1]="G",l[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,l[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:l.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class H{_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)}
1push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new K(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new K(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}}class K{regExps;rules;scanner;constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}class V{_colorMap;_defaults;_root;static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let l=-1;if("string"==typeof a.settings.fontStyle){l=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":l|=1;break;case"bold":l|=2;break;case"underline":l|=4;break;case"strikethrough":l|=8}}let o=null;"string"==typeof a.settings.foreground&&k(a.settings.foreground)&&(o=a.settings.foreground);let s=null;"string"==typeof a.settings.background&&k(a.settings.background)&&(s=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new Q(u,c,e,l,o,s)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=_(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new J(t),l=new X(n,a.getId(r),a.getId(i)),o=new ee(new Z(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new V(a,l,o)}(e,t)}_cachedMatchRoot=new C(e=>this._root.match(e));constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(null===t)return!0;let n=0,r=t[0];for(;e;){var i,a;if(i=e.scopeName,(a=r)===i||i.startsWith(a)&&"."===i[a.length]){if(++n===t.length)return!0;r=t[n]}e=e.parent}return!1})(e.parent,t.parentScopes));return n?new X(n.fontStyle,n.foreground,n.background):null}}class Y{parent;scopeName;static push(e,t){for(let n of t)e=new Y(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new Y(t,e[n]);return t}constructor(e,t){this.parent=e,this.scopeName=t}push(e){return new Y(this,e)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}
1toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}}class X{fontStyle;foregroundId;backgroundId;constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}class Q{scope;parentScopes;index;fontStyle;foreground;background;constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}}class J{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}class Z{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new Z(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}class ee{_mainRule;_children;_rulesWithParentScopes;constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){let n=e.parentScopes,r=t.parentScopes,i=null===n?0:n.length,a=null===r?0:r.length;if(i===a)for(let e=0;e<i;e++){let t=n[e].length,i=r[e].length;if(t!==i)return i-t}return a-i}return t.scopeDepth-e.scopeDepth}match(e){let t,n;if(""===e)return ee._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let r=e.indexOf(".");return(-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t))?this._children[t].match(n):ee._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,i,a){let l,o,s;if(""===t)return void this._doInsertHere(e,n,r,i,a);let u=t.indexOf(".");-1===u?(l=t,o=""):(l=t.substring(0,u),o=t.substring(u+1)),this._children.hasOwnProperty(l)?s=this._children[l]:(s=new ee(this._mainRule.clone(),Z.cloneArr(this._rulesWithParentScopes)),this._children[l]=s),s.insert(e+1,o,n,r,i,a)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let l=this._rulesWithParentScopes[a];if(0===_(l.parentScopes,t))return void l.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Z(e,t,n,r,i))}}class et{languageId;tokenType;constructor(e,t){this.languageId=e,this.tokenType=t}}class en{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new et(e,8),this._embeddedLanguagesMatcher=new er(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?en._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new et(0,0);_getBasicScopeAttributes=new C(e=>new et(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let t=e.match(en.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 Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class er{values;
1scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>S(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}}class ei{stack;stoppedEarly;constructor(e,t){this.stack=e,this.stoppedEarly=t}}function ea(e,t,n,r,i,a,l,o){let s=t.content.length,u=!1,c=-1;if(l){let l=function(e,t,n,r,i,a){let l=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof W&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var s,u,c,h,d;let{ruleScanner:o,findOptions:m}=(s=p.rule,u=e,c=p.stack.endRule,h=n,d=r===l,{ruleScanner:s.compileWhileAG(u,c,h,d),findOptions:0}),g=o.findNextMatchSync(t,r,m);if(g){if(-2!==g.ruleId){i=p.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(a.produce(p.stack,g.captureIndices[0].start),eo(e,t,n,p.stack,a,p.rule.whileCaptures,g.captureIndices),a.produce(p.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,i,a);i=l.stack,r=l.linePos,n=l.isFirstLine,c=l.anchorPosition}let h=Date.now();for(;!u;){if(0!==o&&Date.now()-h>o)return new ei(i,!0);!function(){let l=function(e,t,n,r,i,a){let l=function(e,t,n,r,i,a){let{ruleScanner:l,findOptions:o}=el(i.getRule(e),e,i.endRule,n,r===a),s=l.findNextMatchSync(t,r,o);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return l;let s=function(e,t,n,r,i,a,l){let o,s=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(h))continue;let{ruleScanner:p,findOptions:m}=el(t.getRule(d.ruleId),t,null,r,i===l),g=p.findNextMatchSync(n,i,m);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=s)&&(s=f,u=g.captureIndices,o=g.ruleId,c=d.priority,s===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!s)return l;if(!l)return s;let u=l.captureIndices[0].start,c=s.captureIndices[0].start;return c<u||s.priorityMatch&&c===u?s:l}(e,t,n,r,i,c);if(!l){a.produce(i,s),u=!0;return}let o=l.captureIndices,h=l.matchedRuleId,d=!!o&&o.length>0&&o[0].end>r;if(-1===h){let l=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),eo(e,t,n,i,a,l.endCaptures,o),a.produce(i,o[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!d&&h.getEnterPos()===r){i=h,a.produce(i,s),u=!0;return}}else{let l=e.getRule(h);a.produce(i,o[0].start);let p=i,m=l.getName(t.content,o),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(h,r,c,o[0].end===s,null,g,g),l instanceof $){eo(e,t,n,i,a,l.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let r=l.getContentName(t.content,o),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),l.endHasBackReferences&&(i=i.withEndRule(l.getEndWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,s),u=!0;return}}else if(l instanceof W){eo(e,t,n,i,a,l.beginCaptures,o),a.produce(i,o[0].end),c=o[0].end;let r=l.getContentName(t.content,o),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),l.whileHasBackReferences&&(i=i.withEndRule(l.getWhileWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,s),u=!0;return}}else if(eo(e,t,n,i,a,l.captures,o),a.produce(i,o[0].end),i=i.pop(),!d){i=i.safePop(),a.produce(i,s),u=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new ei(i,!1)}function el(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eo(e,t,n,r,i,a,l){if(0===a.length)return;let o=t.content,s=Math.min(a.length,l.length),u=[],c=l[0].end;for(let t=0;t<s;t++){let s=a[t];if(null===s)continue;let h=l[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),s.retokenizeCapturedWithRuleId){let t=s.getName(o,l),a=r.contentNameScopesList.pushAttributed(t,e),u=s.getContentName(o,l),c=a.pushAttributed(u,e),d=r.push(s.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),p=e.createOnigString(o.substring(0,h.end));ea(e,p,n&&0===h.start,h.start,d,i,!1,0),g(p);continue}let d=s.getName(o,l);
1if(null!==d){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);u.push(new es(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}class es{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}}function eu(e,t,n,r,i){let a=p(t,ec),l=q.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:i,priority:n.priority})}function ec(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}class eh{_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(e,t,n,r,i,a,l,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new en(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=ed(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of p(e,ec))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)eu(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&eu(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ed(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=q.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==em.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=u.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),l=this.getRule(this._rootId).getName(null,null);e=l?ep.createRootAndLookUpScopeName(l,a,this):ep.createRoot("unknown",a),t=new em(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),l=a.content.length,o=new ef(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=ea(this,a,i,0,t,o,!0,r);return g(a),{lineLength:l,lineTokens:o,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}}function ed(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
1,e.repository.$base=t||e.repository.$self,e}class ep{parent;scopePath;tokenAttributes;static fromExtension(e,t){let n=e,r=e?.scopePath??null;for(let e of t)n=new ep(n,r=Y.push(r,e.scopeNames),e.encodedTokenAttributes);return n}static createRoot(e,t){return new ep(null,new Y(null,e),t)}static createRootAndLookUpScopeName(e,t,n){let r=n.getMetadataForScope(e),i=new Y(null,e),a=n.themeProvider.themeMatch(i),l=ep.mergeAttributes(t,r,a);return new ep(null,i,l)}get scopeName(){return this.scopePath.scopeName}constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}toString(){return this.getScopeNames().join(" ")}equals(e){return ep.equals(this,e)}static equals(e,t){for(;;){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}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),u.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return ep._pushAttributed(this,e,t);let n=e.split(/ /g),r=this;for(let e of n)r=ep._pushAttributed(r,e,t);return r}static _pushAttributed(e,t,n){let r=n.getMetadataForScope(t),i=e.scopePath.push(t),a=n.themeProvider.themeMatch(i),l=ep.mergeAttributes(e.tokenAttributes,r,a);return new ep(e,i,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}}class em{parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new em(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(e,t,n,r,i,a,l,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&em._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ep.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){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}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){em._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,i,a,l){return new em(this,e,t,n,r,i,a,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let 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 em(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){let n=ep.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new em(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,ep.fromExtension(n,t.contentNameScopesList))}}class eg{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):p(e,ec).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>p(e,ec).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}}class ef{balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=u.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=u.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}class eb{_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(e,t){this._onigLibPromise=t,this._theme=e}dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eh(e,a,t,n,r,i,this,await this._onigLibPromise))}return this._grammars.get(e)}}let ey=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eb(V.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(V.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new eg(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,i){let a=new A(this._syncRegistry,e);for(;a.Q.length>0;)await Promise.all(a.Q.map(e=>this._loadSingleGrammar(e.scopeName))),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){let t=await this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},e_=em.NULL,ek={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:0xff800000,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class eS{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t=`0${t}`;return t}static getLanguageId(e){return(e&ek.LANGUAGEID_MASK)>>>ek.LANGUAGEID_OFFSET}static getTokenType(e){return(e&ek.TOKEN_TYPE_MASK)>>>ek.TOKEN_TYPE_OFFSET}static getFontStyle(e){return(e&ek.FONT_STYLE_MASK)>>>ek.FONT_STYLE_OFFSET}static getForeground(e){return(e&ek.FOREGROUND_MASK)>>>ek.FOREGROUND_OFFSET}
1static getBackground(e){return(e&ek.BACKGROUND_MASK)>>>ek.BACKGROUND_OFFSET}static containsBalancedBrackets(e){return(e&ek.BALANCED_BRACKETS_MASK)!=0}static set(e,t,n,r,i,a){let l=eS.getLanguageId(e),o=eS.getTokenType(e),u=eS.getFontStyle(e),c=eS.getForeground(e),h=eS.getBackground(e),d=+!!eS.containsBalancedBrackets(e);return 0!==t&&(l=t),0!==n&&(o=8===n?0:n),r!==s.NotSet&&(u=r),0!==i&&(c=i),0!==a&&(h=a),(l<<ek.LANGUAGEID_OFFSET|o<<ek.TOKEN_TYPE_OFFSET|u<<ek.FONT_STYLE_OFFSET|d<<ek.BALANCED_BRACKETS_OFFSET|c<<ek.FOREGROUND_OFFSET|h<<ek.BACKGROUND_OFFSET)>>>0}}var eC=n(93579).hp;function ev(e){return Array.from(e.matchAll(/^.*$/mg)).map(e=>[e[0],e.index])}function eP(e){return!e||["plaintext","txt","text","plain"].includes(e)}function ew(e,t){return t?.[e.toLowerCase()]||e}var eA=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],eN={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function eL(e,t){let n,r=1,i=e[t+r++];if("2"===i){let i=[e[t+r++],e[t+r++],e[t+r]].map(e=>Number.parseInt(e));3!==i.length||i.some(e=>Number.isNaN(e))||(n={type:"rgb",rgb:i})}else if("5"===i){let i=Number.parseInt(e[t+r]);Number.isNaN(i)||(n={type:"table",index:Number(i)})}return[r,n]}var eT={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 eR(e,t,n={}){let{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(eP(r)||"none"===i)return ev(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:l}=e.setTheme(i);return"ansi"===r?function(e,t,n){let r,i,a,l={...e.colorReplacements,...n?.colorReplacements},o=ev(t),u=function(e=eT){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<eA.length;n++)t.push(e[eA[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(eA.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),c=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let l=function(e,t){let n=e.indexOf("\x1b[",t);if(-1!==n){let t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=l.sequence?e.substring(n,l.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(a)}),l.sequence){let e=function(e){let t=[];for(let n=0;n<e.length;n++){let r=Number.parseInt(e[n]);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)eN[r]&&t.push({type:"setDecoration",value:eN[r]});else if(r<=29){let e=eN[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:eA[r-30]}});else if(38===r){let[r,i]=eL(e,n);i&&t.push({type:"setForegroundColor",value:i}),n+=r}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:eA[r-40]}});else if(48===r){let[r,i]=eL(e,n);i&&t.push({type:"setBackgroundColor",value:i}),n+=r}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:eA[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:eA[r-100+8]}})}return t}(l.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroun
1dColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=l.position}while(n<e.length);return t}});return o.map(t=>c.parse(t[0]).map(n=>{let r;r=ew(r=n.decorations.has("reverse")?n.background?u.value(n.background):e.bg:n.foreground?u.value(n.foreground):e.fg,l),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}else if(t[2])return`#${t[1]}${t[2]}80`;else return`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`;let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let i=s.None;return n.decorations.has("bold")&&(i|=s.Bold),n.decorations.has("italic")&&(i|=s.Italic),n.decorations.has("underline")&&(i|=s.Underline),{content:n.value,offset:t[1],color:r,fontStyle:i}}))}(a,t,n):function(e,t,n,r,i){let a={...n.colorReplacements,...i?.colorReplacements},l=ev(e),o=e_,s=[],u=[];for(let e=0,c=l.length;e<c;e++){let c,h,[d,p]=l[e];
1if(""===d){s=[],u.push([]);continue}i.includeExplanation&&(c=t.tokenizeLine(d,o).tokens,h=0);let m=t.tokenizeLine2(d,o),g=m.tokens.length/2;for(let e=0;e<g;e++){let t=m.tokens[2*e],l=e+1<g?m.tokens[2*e+2]:d.length;if(t===l)continue;let o=m.tokens[2*e+1],u=ew(r[eS.getForeground(o)],a),f=eS.getFontStyle(o),b={content:d.substring(t,l),offset:p+t,color:u,fontStyle:f};if(i.includeExplanation){b.explanation=[];let e=0;for(;t+e<l;){let t=c[h],r=d.substring(t.startIndex,t.endIndex);e+=r.length,b.explanation.push({content:r,scopes:function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t.slice(0,r),a=t[r];n[r]={scopeName:a,themeMatches:function(e,t,n){let r=[],i=0;for(let a=0,l=e.settings.length;a<l;a++){let l,o=e.settings[a];if("string"==typeof o.scope)l=o.scope.split(/,/).map(e=>e.trim());else{if(!Array.isArray(o.scope))continue;l=o.scope}for(let e=0,a=l.length;e<a;e++){let s=l[e].split(/ /);(function(e,t,n,r){if(!eE(e,n))return!1;let i=t.length-1,a=r.length-1;for(;i>=0&&a>=0;)eE(t[i],r[a])&&(i-=1),a-=1;return -1===i})(s[s.length-1],s.slice(0,s.length-1),t,n)&&(r[i++]=o,e=a)}}return r}(e,a,i)}}return n}(n,t.scopes)}),h+=1}}s.push(b)}u.push(s),s=[],o=m.ruleStack}return u}(t,e.getLangGrammar(r),a,l,n)}function eE(e,t){let n=`${e}.`;return e===t||t.substring(0,n.length)===n}function ex(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let l=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),l[t]+=1,o[t]=i[t][l[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...r.map(r=>eR(e,t,{...n,theme:r.theme,includeExplanation:!1})));return i[0].map((e,t)=>e.map((e,n)=>{let a={content:e.content,variants:{},offset:e.offset};return i.forEach((e,i)=>{let{content:l,explanation:o,offset:s,...u}=e[t][n];a.variants[r[i].color]=u}),a}))}function eO(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>eO(e,t,n)}){let i,a,l,o,u,c=t;for(let e of n.transformers||[])c=e.preprocess?.call(r,c,n)||c;if("themes"in n){let{defaultColor:t="light",cssVariablePrefix:r="--shiki-"}=n,s=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,n)=>e.color===t?-1:+(n.color===t));if(0===s.length)throw Error("[shikiji] `themes` option must not be empty");let h=ex(e,c,n);if(t&&!s.find(e=>e.color===t))throw Error(`[shikiji] \`themes\` option must contain the defaultColor key \`${t}\``);let d=s.map(t=>e.getTheme(t.theme)),p=s.map(e=>e.color);l=h.map(e=>e.map(e=>(function(e,t,n,r){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>eI(e.variants[t])),l=new Set(a.flatMap(e=>Object.keys(e))),o=a.reduce((e,i,a)=>{for(let o of l){let l=i[o]||"inherit";if(0===a&&r)e[o]=l;else{let r=n+t[a]+("color"===o?"":`-${o}`);e[o]?e[o]+=`;${r}:${l}`:e[o]=`${r}:${l}`}}return e},{});return i.htmlStyle=r?eM(o):Object.values(o).join(";"),i})(e,p,r,t))),a=s.map((e,n)=>(0===n&&t?"":`${r+e.color}:`)+(d[n].fg||"inherit")).join(";"),i=s.map((e,n)=>(0===n&&t?"":`${r+e.color}-bg:`)+(d[n].bg||"inherit")).join(";"),o=`shiki-themes ${d.map(e=>e.name).join(" ")}`,u=t?void 0:[a,i].join(";")}else if("theme"in n){l=eR(e,c,{...n,includeExplanation:!1});let t=e.getTheme(n.theme);i=t.bg,a=t.fg,o=t.name}else throw Error("[shikiji] Invalid options, either `theme` or `themes` must be provided");let{mergeWhitespaces:h=!0}=n;for(let e of(!0===h?l=l.map(e=>{let t=[],n="",r=0;return e.forEach((i,a)=>{let l=!(i.fontStyle&&i.fontStyle&s.Underline);l&&i.content.match(/^\s+$/)&&e[a+1]?(r||(r=i.offset),n+=i.content):n?(l?t.push({...i,content:n+i.content}):t.push({content:n,offset:r},i),n=""):t.push(i)}),t}):"never"===h&&(l=l.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),n.transformers||[]))l=e.tokens?.call(r,l)||l;return function(e,t,n){let{transformers:r=[]}=t,i=[],a={type:"root",children:[]},l={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},o={type:"element",tagName:"code",properties:{},children:i},s=[],u={...n,get tokens(){return e},get options(){return t},get root(){return a},get pre(){return l},get code(){return o},get lines(){return s}};for(let t of(e.forEach((e,t)=>{t&&i.push({type:"text",value:"\n"});let n={type:"element",tagName:"span",properties:{class:"line"}
1,children:[]},a=0;for(let i of e){let e={type:"element",tagName:"span",properties:{},children:[{type:"text",value:i.content}]},l=i.htmlStyle||eM(eI(i));for(let i of(l&&(e.properties.style=l),r))e=(i?.span||i?.token)?.call(u,e,t+1,a,n)||e;n.children.push(e),a+=i.content.length}for(let e of r)n=e?.line?.call(u,n,t+1)||n;s.push(n),i.push(n)}),r))o=t?.code?.call(u,o)||o;for(let e of(l.children.push(o),r))l=e?.pre?.call(u,l)||l;a.children.push(l);let c=a;for(let e of r)c=e?.root?.call(u,c)||c;return c}(l,{...n,fg:a,bg:i,themeName:o,rootStyle:u},r)}function eI(e){let t={};return e.color&&(t.color=e.color),e.fontStyle&&(e.fontStyle&s.Italic&&(t["font-style"]="italic"),e.fontStyle&s.Bold&&(t["font-weight"]="bold"),e.fontStyle&s.Underline&&(t["text-decoration"]="underline")),t}function eM(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let eG=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class eB{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function eD(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new eB(n,r,t)}function ej(e){return e.toLowerCase()}eB.prototype.property={},eB.prototype.normal={},eB.prototype.space=null;class eU{constructor(e,t){this.property=e,this.attribute=t}}eU.prototype.space=null,eU.prototype.boolean=!1,eU.prototype.booleanish=!1,eU.prototype.overloadedBoolean=!1,eU.prototype.number=!1,eU.prototype.commaSeparated=!1,eU.prototype.spaceSeparated=!1,eU.prototype.commaOrSpaceSeparated=!1,eU.prototype.mustUseProperty=!1,eU.prototype.defined=!1;let eF=0,e$=eY(),eW=eY(),eq=eY(),ez=eY(),eH=eY(),eK=eY(),eV=eY();function eY(){return 2**++eF}var eX=Object.freeze({__proto__:null,boolean:e$,booleanish:eW,commaOrSpaceSeparated:eV,commaSeparated:eK,number:ez,overloadedBoolean:eq,spaceSeparated:eH});let eQ=Object.keys(eX);class eJ extends eU{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<eQ.length;){let e=eQ[i];!function(e,t,n){n&&(e[t]=n)}(this,eQ[i],(n&eX[e])===eX[e])}}}eJ.prototype.defined=!0;let eZ={}.hasOwnProperty;function e0(e){let t,n={},r={};for(t in e.properties)if(eZ.call(e.properties,t)){let i=e.properties[t],a=new eJ(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(a.mustUseProperty=!0),n[t]=a,r[ej(t)]=t,r[ej(a.attribute)]=t}return new eB(n,r,e.space)}let e1=e0({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),e6=e0({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function e2(e,t){return t in e?e[t]:t}function e5(e,t){return e2(e,t.toLowerCase())}let e3=e0({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e5,properties:{xmlns:null,xmlnsXLink:null}}),e8=e0({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:eW,ariaAutoComplete:null,ariaBusy:eW,ariaChecked:eW,ariaColCount:ez,ariaColIndex:ez,ariaColSpan:ez,ariaControls:eH,ariaCurrent:null,ariaDescribedBy:eH,ariaDetails:null,ariaDisabled:eW,ariaDropEffect:eH,ariaErrorMessage:null,ariaExpanded:eW,ariaFlowTo:eH,ariaGrabbed:eW,ariaHasPopup:null,ariaHidden:eW,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:eH,ariaLevel:ez,ariaLive:null,ariaModal:eW,ariaMultiLine:eW,ariaMultiSelectable:eW,ariaOrientation:null,ariaOwns:eH,ariaPlaceholder:null,ariaPosInSet:ez,ariaPressed:eW,ariaReadOnly:eW,ariaRelevant:null,ariaRequired:eW,ariaRoleDescription:eH,ariaRowCount:ez,ariaRowIndex:ez,ariaRowSpan:ez,ariaSelected:eW,ariaSetSize:ez,ariaSort:null,ariaValueMax:ez,ariaValueMin:ez,ariaValueNow:ez,ariaValueText:null,role:null}}),e9=e0({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e5,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eK,acceptCharset:eH,accessKey:eH,action:null,allow:null,allowFullScreen:e$,allowPaymentRequest:e$,allowUserMedia:e$,alt:null,as:null,async:e$,autoCapitalize:null,autoComplete:eH,autoFocus:e$,autoPlay:e$,capture:e$,charSet:null,checked:e$,cite:null,className:eH,cols:ez,colSpan:null,content:null,contentEditable:eW,controls:e$,controlsList:eH,coords:ez|eK,crossOrigin:null,data:null,dateTime:null,decoding:null,default:e$,defer:e$,dir:null,dirName:null,disabled:e$,download:eq,draggable:eW,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:e$,formTarget:null,headers:eH,height:ez,hidden:e$,high:ez,href:null,hrefLang:null,htmlFor:eH,httpEquiv:eH,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:e$,itemId:null,itemProp:eH,itemRef:eH,itemScope:e$,itemType:eH,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:e$,low:ez,manifest:null,max:null,maxLength:ez,media:null,method:null,min:null,minLength:ez,multiple:e$,muted:e$,name:null,nonce:null,noModule:e$,noValidate:e$,onAbort:null,onAfterPrint:null,onAuxCl
1ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:e$,optimum:ez,pattern:null,ping:eH,placeholder:null,playsInline:e$,poster:null,preload:null,readOnly:e$,referrerPolicy:null,rel:eH,required:e$,reversed:e$,rows:ez,rowSpan:ez,sandbox:eH,scope:null,scoped:e$,seamless:e$,selected:e$,shape:null,size:ez,sizes:null,slot:null,span:ez,spellCheck:eW,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ez,step:null,style:null,tabIndex:ez,target:null,title:null,translate:null,type:null,typeMustMatch:e$,useMap:null,value:eW,width:ez,wrap:null,align:null,aLink:null,archive:eH,axis:null,background:null,bgColor:null,border:ez,borderColor:null,bottomMargin:ez,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:e$,declare:e$,event:null,face:null,frame:null,frameBorder:null,hSpace:ez,leftMargin:ez,link:null,longDesc:null,lowSrc:null,marginHeight:ez,marginWidth:ez,noResize:e$,noHref:e$,noShade:e$,noWrap:e$,object:null,profile:null,prompt:null,rev:null,rightMargin:ez,rules:null,scheme:null,scrolling:eW,standby:null,summary:null,text:null,topMargin:ez,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ez,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:e$,disableRemotePlayback:e$,prefix:null,property:null,results:ez,security:null,unselectable:null}}),e7=e0({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:e2,properties:{about:eV,accentHeight:ez,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ez,amplitude:ez,arabicForm:null,ascent:ez,attributeName:null,attributeType:null,azimuth:ez,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ez,by:null,calcMode:null,capHeight:ez,className:eH,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ez,diffuseConstant:ez,direction:null,display:null,dur:null,divisor:ez,dominantBaseline:null,download:e$,dx:null,dy:null,edgeMode:null,editable:null,elevation:ez,enableBackground:null,end:null,event:null,exponent:ez,externalResourcesRequired:null,fill:null,fillOpacity:ez,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:eK,g2:eK,glyphName:eK,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ez,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ez,horizOriginX:ez,horizOriginY:ez,id:null,ideographic:ez,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ez,k:ez,k1:ez,k2:ez,k3:ez,k4:ez,kernelMatrix:eV,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ez,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ez,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ez,overlineThickness:ez,paintOrder:null,panose1:null,path:null,pathLength:ez,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:eH,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ez,pointsAtY:ez,pointsAtZ:ez,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:eV,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:eV,rev:eV,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:eV,requiredFeatures:eV,requiredFonts:eV,requiredFormats:eV,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ez,specularExponent:ez,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ez,strikethroughThickness:ez,string:null,stroke:null,strokeDashArray:eV,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ez,strokeOpacity:ez,strokeWidth:null,style:null,surfaceScale:ez,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:eV,tabIndex:ez,tableValues:null,target:null,targetX:ez,targetY:ez,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:eV,to:null,transform:null,u1:null,u2:null,underlinePosition:ez,underlineThickness:ez,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ez,values:null,vAlphabetic:ez,vMathematical:ez,vectorEffect:null,vHanging:ez,vIdeographic:ez,version:null,vertAdvY:ez,vertOriginX:ez,vertOriginY:ez,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ez,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),e4=/^data[-\w.:]+$/i,te=/-[a-z]/g,tt=/[A-Z]/g;function tn(e){return"-"+e.toLowerCase()}function tr(e){return e.charAt(1).toUpperCase()}let ti=eD([e6,e1,e3,e8,e9],"html"),ta=eD([e6,e1,e3,e8,e7],"svg"),tl={}.hasOwnProperty,to=["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","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],ts={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",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
1:"⊄",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:"€"},tu=["cent","copy","divide","gt","lt","not","para","times"],tc={}.hasOwnProperty,th={};for(r in ts)tc.call(ts,r)&&(th[ts[r]]=r);function td(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(tc.call(th,i)){let e=th[i],a="&"+e;return n&&to.includes(e)&&!tu.includes(e)&&(!r||t&&61!==t&&/[^\da-z]/i.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function tp(e,t){var n=e,r=Object.assign({format:td},t);if(n=n.replace(r.subset?function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r.subset):/["&'<>`]/g,i),r.subset||r.escapeOnly)return n;return n.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(e,t,n){return r.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),r)}).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,i);function i(e,t,n){return r.format(e.charCodeAt(0),n.charCodeAt(t+1),r)}}function tm(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let tg=/[ \t\n\f\r]/g;function tf(e){return"object"==typeof e?"text"===e.type&&tb(e.value):tb(e)}function tb(e){return""===e.replace(tg,"")}let ty=tS(1),t_=tS(-1),tk=[];function tS(e){return function(t,n,r){let i=t?t.children:tk,a=(n||0)+e,l=i[a];if(!r)for(;l&&tf(l);)a+=e,l=i[a];return l}}let tC={}.hasOwnProperty;function tv(e){return function(t,n,r){return tC.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let tP=tv({body:function(e,t,n){let r=ty(n,t);return!r||"comment"!==r.type},caption:tw,colgroup:tw,dd:function(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=ty(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:tw,html:function(e,t,n){let r=ty(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=ty(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:tA,rt:tA,tbody:function(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:tN,tfoot:function(e,t,n){return!ty(n,t)},th:tN,thead:function(e,t,n){let r=ty(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function tw(e,t,n){let r=ty(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&tf(r.value.charAt(0)))}function tA(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function tN(e,t,n){let r=ty(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let tL=tv({body:function(e){let t=ty(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&tf(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=t_(n,t),i=ty(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&tP(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=e.children,n=[],r=-1;for(;++r<t.length;){let e=t[r];
1if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(n.includes(e.tagName))return!1;n.push(e.tagName)}}return t.length>0},html:function(e){let t=ty(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=t_(n,t),i=ty(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&tP(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),tT={name:[["	\n\f\r &/=>".split(""),"	\n\f\r \"&'/=>`".split("")],["\0	\n\f\r \"&'/<=>".split(""),"\0	\n\f\r \"&'/<=>`".split("")]],unquoted:[["	\n\f\r &>".split(""),"\0	\n\f\r \"&'<=>`".split("")],["\0	\n\f\r \"&'<=>`".split(""),"\0	\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function tR(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:tp(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}let tE=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&tl.call(t,e)){let n=String(t[e]);i=tl.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+tp(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,function(e){return tp(e,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,l="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=ta);let u=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=function(e,t){let n=ej(t),r=t,i=eU;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&e4.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(te,tr);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!te.test(e)){let n=e.replace(tt,tn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=eJ}return new i(r,t)}(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,l=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let s=tp(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tT.name[a][l]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?function(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?s:(e.settings.preferUnquoted&&(r=tp(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tT.unquoted[a][l]}))),r!==n&&(e.settings.quoteSmart&&tm(n,o)>tm(n,e.alternative)&&(o=e.alternative),r=o+tp(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?tT.single:tT.double)[a][l],attribute:!0}))+o),s+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(o=!1),!u&&l&&tL(e,t,n)||(s.push("<",e.tagName,u?" "+u:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&s.push(" "),s.push("/")),s.push(">")),s.push(c),o||l&&tP(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:tR(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:tR}}),tx={},tO={},tI=[];function tM(e,t,n){return tE(e,t,n,this)}function tG(e){let t=[],n=e&&e.children||tI,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}async function tB(e){let t,n,r={};
1function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a={emscripten_get_now:function(){return"undefined"!=typeof performance?performance.now():Date.now()},emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;let l=(e,t)=>e+(t-e%t)%t;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch(e){}}(Math.min(0x80000000,l(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:a,wasi_snapshot_preview1:a});i((t=n.memory).buffer),Object.assign(r,n)}return await l(),r}let tD=null;class tj{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,l=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,l=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,l&&n++}return t}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){let t=e.length,n=tj._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let l=new Uint8Array(n),o=0;for(let n=0;n<t;n++){let s=e.charCodeAt(n),u=s,c=!1;if(s>=55296&&s<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(s-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=o,c&&(i[n+1]=o),u<=127?a[o+0]=n:u<=2047?(a[o+0]=n,a[o+1]=n):u<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),u<=127?l[o++]=u:(u<=2047?l[o++]=192|(1984&u)>>>6:(u<=65535?l[o++]=224|(61440&u)>>>12:(l[o++]=240|(1835008&u)>>>18,l[o++]=128|(258048&u)>>>12),l[o++]=128|(4032&u)>>>6),l[o++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class tU{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++tU.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!tD)throw Error("Must invoke loadWasm first.");this._onigBinding=tD,this.content=e;let t=new tj(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!tU._sharedPtrInUse?(tU._sharedPtr||(tU._sharedPtr=tD.omalloc(1e4)),tU._sharedPtrInUse=!0,tD.HEAPU8.set(t.utf8Value,tU._sharedPtr),this.ptr=tU._sharedPtr):this.ptr=t.createString(tD)}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===tU._sharedPtr?tU._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class tF{_onigBinding;_ptr;constructor(e){if(!tD)throw Error("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new tj(e[r]);t[r]=i.createString(tD),n[r]=i.utf8Length}let r=tD.omalloc(4*e.length);tD.HEAPU32.set(t,r/4);let i=tD.omalloc(4*e.length);tD.HEAPU32.set(n,i/4);let a=tD.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)tD.ofree(t[n]);tD.ofree(i),tD.ofree(r),0===a&&function(e){throw Error(e.UTF8ToString(e.getLastO
1nigError()))}(tD),this._onigBinding=tD,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=!1,i=0;if("number"==typeof n?(8&n&&(r=!0),i=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new tU(e);let n=this._findNextMatchSync(e,t,r,i);return e.dispose(),n}return this._findNextMatchSync(e,t,r,i)}_findNextMatchSync(e,t,n,r){let i,a=this._onigBinding;if(0===(i=n?a.findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):a.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r)))return null;let l=a.HEAPU32,o=i/4,s=l[o++],u=l[o++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(l[o++]),r=e.convertUtf8OffsetToUtf16(l[o++]);c[t]={start:n,end:r,length:r-n}}return{index:s,captureIndices:c}}}let t$={light:"#333333",dark:"#bbbbbb"},tW={light:"#fffffe",dark:"#1e1e1e"},tq="__shiki_resolved";function tz(e){if(e?.[tq])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?t$.light:t$.dark),n||(n="light"===t.type?tW.light:tW.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function l(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?l(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=l(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=l(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=l(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tq,{enumerable:!1,writable:!1,value:!0}),t}class tH extends ey{_resolver;_themes;_langs;_resolvedThemes={};_resolvedGrammars={};_langMap={};_langGraph=new Map;alias={};constructor(e,t,n){super(e),this._resolver=e,this._themes=t,this._langs=n,t.forEach(e=>
1this.loadTheme(e)),n.forEach(e=>this.loadLanguage(e))}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:this.loadTheme(e)}loadTheme(e){let t=tz(e);return t.name&&(this._resolvedThemes[t.name]=t),t}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){if(this.alias[e]){let t=new Set([e]);for(;this.alias[e];){if(e=this.alias[e],t.has(e))throw Error(`[shikiji] Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars[e]}async loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set(Object.values(this._langMap).filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);if(this._resolvedGrammars[e.name]=r,e.aliases&&e.aliases.forEach(t=>{this.alias[t]=e.name}),t.size)for(let e of t)delete this._resolvedGrammars[e.name],this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),await this.loadLanguage(this._langMap[e.name])}
1async init(){this._themes.map(e=>this.loadTheme(e)),await this.loadLanguages(this._langs)}async loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw Error(`[shikiji] Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys({...this._resolvedGrammars,...this.alias})}resolveEmbeddedLanguages(e){if(this._langMap[e.name]=e,this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}class tK{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(e,t){this._onigLibPromise=e,t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLibPromise}getLangRegistration(e){return this._langs.get(e)}async 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){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}async function tV(e={}){let t;async function n(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}async function r(e){return Array.from(new Set((await Promise.all(e.map(async e=>await n(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}let l=e.loadWasm||a,[o,s]=await Promise.all([Promise.all((e.themes||[]).map(n)).then(e=>e.map(tz)),r(e.langs||[]),l?i||(i=async function(){tD=await tB(async e=>{let t=l;if("function"==typeof(t=await t)&&(t=await t(e)),"function"==typeof t&&(t=await t(e)),"function"==typeof t.instantiator)t=await t.instantiator(e);else if("function"==typeof t.default)t=await t.default(e);else{var n,r,i,a,o;if(void 0!==t.data&&(t=t.data),n=t,"undefined"!=typeof Response&&n instanceof Response){t="function"==typeof WebAssembly.instantiateStreaming?await (i=t,e=>WebAssembly.instantiateStreaming(i,e))(e):await (a=t,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(e)}else{r=t,("undefined"!=typeof ArrayBuffer&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||void 0!==eC&&eC.isBuffer(r)||"undefined"!=typeof SharedArrayBuffer&&r instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&r instanceof Uint32Array)&&(t=await (o=t,e=>WebAssembly.instantiate(o,e))(e))}}return"instance"in t&&(t=t.instance),"exports"in t&&(t=t.exports),t})}()):void 0]),u=new tH(new tK(Promise.resolve({createOnigScanner:e=>new tF(e),createOnigString:e=>new tU(e)}),s),o,s);function c(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};let t=u.getTheme(e);if(!t)throw Error(`[shikiji] Theme \`${e}\` not found, you may need to load it first`);return t}return Object.assign(u.alias,e.langAlias),await u.init(),{setTheme:function(e){let n=c(e);return t!==e&&(u.setTheme(n),t=e),{theme:n,colorMap:u.getColorMap()}},getTheme:c,getLangGrammar:function(e){let t=u.getGrammar(e);if(!t)throw Error(`[shikiji] Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u.getLoadedThemes()},getLoadedLanguages:function(){return u.getLoadedLanguages()},getAlias:function(){return u.alias},updateAlias:function(e){Object.assign(u.alias,e)},loadLanguage:async function e(...t){await u.loadLanguages(await r(t))},loadTheme:async function e(...t){await Promise.all(t.map(async e=>"none"===e?null:u.loadTheme(await n(e))))}}}async function tY(e={}){let t=await tV(e);return{codeToThemedTokens:(e,n)=>eR(t,e,n),codeToTokensWithThemes:(e,n)=>ex(t,e,n),codeToHast:(e,n)=>eO(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>eO(e,t,n)},i=function(e,t){let n=tx.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:tM,all:tG,settings:{omitOptionalTags:tx.omitOptionalTags||!1,allowParseErrors:tx.allowParseErrors||!1,allowDangerousCharacters:tx.allowDangerousCharacters||!1,quoteSmart:tx.quoteSmart||!1,preferUnquoted:tx.preferUnquoted||!1,tightAttributes:tx.tightAttributes||!1,upperDoctype:tx.upperDoctype||!1,tightDoctype:tx.tightDoctype||!1,bogusComments:tx.bogusComments||!1,tightCommaSeparatedLists:tx.tightCommaSeparatedLists||!1,tightSelfClosing:tx.tightSelfClosing||!1,collapseEmptyAttributes:tx.collapseEmptyAttributes||!1,allowDangerousHtml:tx.allowDangerousHtml||!1,voids:tx.voids||eG,characterReferences:tx.characterReferences||tO,closeSelfClosing:tx.closeSelfClosing||!1,closeEmptyElements:tx.closeEmptyElements||!1},schema:"svg"===tx.space?ta:ti,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(eO(e,t,n,r));for(let e of n.transformers||[])i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),loadLanguage:t.loadLanguage,loadTheme:t.loadTheme,getTheme:t.getTheme,getLangGrammar:t.getLangGrammar,setTheme:t.setTheme,getLoadedThemes:t.getLoadedThemes,getLoadedLanguages:t.getLoadedLanguages,getInternalContext:()=>t}}let tX=(o=c.el,async function(e={}){function t(e){if("string"==typeof e){if("ansi"===e||eP(e))return[];
1let t=o[e];if(!t)throw Error(`[shikiji] Language \`${e}\` is not built-in.`);return t}return e}function n(e){if("none"===e)return"none";if("string"==typeof e){let t=h[e];if(!t)throw Error(`[shikiji] Theme \`${e}\` is not built-in.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),i=(e.langs??[]).map(e=>t(e)),a=await tY({...e,themes:r,langs:i,loadWasm:l});return{...a,loadLanguage:(...e)=>a.loadLanguage(...e.map(t)),loadTheme:(...e)=>a.loadTheme(...e.map(n))}})},68788:(e,t,n)=>{n.d(t,{el:()=>l});let r=[{id:"abap",name:"ABAP",import:()=>n.e(66215).then(n.bind(n,66215))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(13758).then(n.bind(n,13758))},{id:"ada",name:"Ada",import:()=>n.e(70825).then(n.bind(n,70825))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(55321)]).then(n.bind(n,55321)).then(function(e){return e.e})},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(96862),n.e(44445),n.e(32556),n.e(96138),n.e(365),n.e(55321)]).then(n.bind(n,79669))},{id:"apache",name:"Apache Conf",import:()=>n.e(39415).then(n.bind(n,39415))},{id:"apex",name:"Apex",import:()=>n.e(7869).then(n.bind(n,7869))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(70769),n.e(43800)]).then(n.bind(n,43800))},{id:"applescript",name:"AppleScript",import:()=>n.e(25720).then(n.bind(n,25720))},{id:"ara",name:"Ara",import:()=>n.e(38175).then(n.bind(n,38175))},{id:"asm",name:"Assembly",import:()=>n.e(33860).then(n.bind(n,33860))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(96862),n.e(66047),n.e(69630),n.e(32556),n.e(365),n.e(40502),n.e(10515),n.e(72468)]).then(n.bind(n,72468))},{id:"awk",name:"AWK",import:()=>n.e(82126).then(n.bind(n,82126))},{id:"ballerina",name:"Ballerina",import:()=>n.e(10105).then(n.bind(n,10105))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(35112).then(n.bind(n,35112))},{id:"beancount",name:"Beancount",import:()=>n.e(46982).then(n.bind(n,46982))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(14009).then(n.bind(n,14009))},{id:"bibtex",name:"BibTeX",import:()=>n.e(244).then(n.bind(n,77863))},{id:"bicep",name:"Bicep",import:()=>n.e(34664).then(n.bind(n,34664))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(99499)]).then(n.bind(n,99499))},{id:"c",name:"C",import:()=>n.e(36502).then(n.bind(n,36502))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(96112).then(n.bind(n,96112))},{id:"clarity",name:"Clarity",import:()=>n.e(99233).then(n.bind(n,99233))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(75201).then(n.bind(n,75201))},{id:"cmake",name:"CMake",import:()=>n.e(96612).then(n.bind(n,74231))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(89852)]).then(n.bind(n,89852))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(63609).then(n.bind(n,63609))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(96862),n.e(59253)]).then(n.bind(n,59253))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(91759),n.e(91613),n.e(36502),n.e(89277)]).then(n.bind(n,50094))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(36502),n.e(87994),n.e(80435)]).then(n.bind(n,80435))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(85820).then(n.bind(n,85820))},{id:"css",name:"CSS",import:()=>n.e(32556).then(n.bind(n,32556))},{id:"csv",name:"csv syntax",import:()=>n.e(79945).then(n.bind(n,79945))},{id:"cue",name:"CUE",import:()=>n.e(22128).then(n.bind(n,22128))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(56644).then(n.bind(n,56644))},{id:"d",name:"D",import:()=>n.e(34361).then(n.bind(n,34361))},{id:"dart",name:"Dart",import:()=>n.e(11058).then(n.bind(n,11058))},{id:"dax",name:"DAX",import:()=>n.e(8302).then(n.bind(n,8302))},{id:"diff",name:"Diff",import:()=>n.e(66780).then(n.bind(n,66780))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(31965).then(n.bind(n,31965))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(7215).then(n.bind(n,7215))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(86284)]).then(n.bind(n,86284))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(36502),n.e(95225)]).then(n.bind(n,95225))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(36502),n.e(87994),n.e(8329),n.e(93176)]).then(n.bind(n,93176))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>n.e(61320).then(n.bind(n,61320))},{id:"fish",name:"Fish",import:()=>n.e(62011).then(n.bind(n,62011))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(32610),n.e(35735)]).then(n.bind(n,35735))},{id:"gdresource",name:"GDResource",import:()=>n.e(81084).then(n.bind(n,81084))},{id:"gdscript",name:"GDScript",import:()=>n.e(4741).then(n.bind(n,4741))},{id:"gdshader",name:"GDShader",import:()=>n.e(82403).then(n.bind(n,82403))},{id:"gherkin",name:"Gherkin",import:()=>n.e(69531).then(n.bind(n,69531))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(93883).then(n.bind(n,93883))}
1,{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(87994),n.e(33800)]).then(n.bind(n,33800))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(51805),n.e(54398)]).then(n.bind(n,54398))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(96862),n.e(66047),n.e(32556),n.e(96138),n.e(51805),n.e(33236)]).then(n.bind(n,33236))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(36502),n.e(11658)]).then(n.bind(n,89277))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(98368).then(n.bind(n,98368))},{id:"go",name:"Go",import:()=>n.e(45239).then(n.bind(n,45239))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(96862),n.e(66047),n.e(69630),n.e(93119),n.e(93762)]).then(n.bind(n,93762))},{id:"groovy",name:"Groovy",import:()=>n.e(42727).then(n.bind(n,42727))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(41294)]).then(n.bind(n,41294))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(36502),n.e(87994),n.e(32610),n.e(8329),n.e(59253),n.e(24595)]).then(n.bind(n,24595))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(51805)]).then(n.bind(n,51805))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(21081).then(n.bind(n,21081))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(19772).then(n.bind(n,19772))},{id:"hjson",name:"Hjson",import:()=>n.e(10007).then(n.bind(n,10007))},{id:"hlsl",name:"HLSL",import:()=>n.e(88964).then(n.bind(n,88964))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138)]).then(n.bind(n,96138))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(96862),n.e(66047),n.e(69630),n.e(93119),n.e(70769),n.e(87994),n.e(79297)]).then(n.bind(n,79297))},{id:"imba",name:"Imba",import:()=>Promise.all([n.e(66047),n.e(72124)]).then(n.bind(n,72124))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(21915).then(n.bind(n,21915))},{id:"java",name:"Java",import:()=>n.e(70769).then(n.bind(n,70769))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(96862).then(n.bind(n,72500))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(36281)]).then(n.bind(n,36281))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(96862),n.e(76428)]).then(n.bind(n,76428))},{id:"json",name:"JSON",import:()=>n.e(48875).then(n.bind(n,48875))},{id:"json5",name:"JSON5",import:()=>n.e(74774).then(n.bind(n,74774))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(50328).then(n.bind(n,50328))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(77863).then(n.bind(n,244))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(3226).then(n.bind(n,3226))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(91508).then(n.bind(n,91508))},{id:"jsx",name:"JSX",import:()=>n.e(93119).then(n.bind(n,22446))},{id:"julia",name:"Julia",import:()=>Promise.all([n.e(96862),n.e(91759),n.e(91613),n.e(36502),n.e(9739),n.e(24703),n.e(58434)]).then(n.bind(n,57390))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(7870).then(n.bind(n,7870))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(75765).then(n.bind(n,75765))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(96862),n.e(66047),n.e(91759),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(36502),n.e(87994),n.e(8329),n.e(9739),n.e(24703),n.e(21081),n.e(58434),n.e(75891),n.e(72025)]).then(n.bind(n,72025))},{id:"less",name:"Less",import:()=>n.e(40502).then(n.bind(n,40502))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(87209)]).then(n.bind(n,87209))},{id:"lisp",name:"Lisp",import:()=>n.e(15337).then(n.bind(n,15337))},{id:"logo",name:"Logo",import:()=>n.e(37512).then(n.bind(n,37512))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(36502),n.e(64267)]).then(n.bind(n,64267))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(24159).then(n.bind(n,24159))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(32610).then(n.bind(n,32610))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(365),n.e(40502),n.e(87651)]).then(n.bind(n,87651))},{id:"matlab",name:"MATLAB",import:()=>n.e(46786).then(n.bind(n,46786))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(32610),n.e(82871)]).then(n.bind(n,82871))},{id:"mdx",name:"MDX",import:()=>n.e(58700).then(n.bind(n,58700))},{id:"mermaid",name:"Mermaid",import:()=>n.e(35648).then(n.bind(n,35648))},{id:"mojo",name:"Mojo",import:()=>n.e(28020).then(n.bind(n,28020))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(91553).then(n.bind(n,91553))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(20798).then(n.bind(n,20798))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(36502),n.e(23589)]).then(n.bind(n,23589))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(70769),n.e(36502),n.e(32610),n.e(24869)]).then(n.bind(n,24869))},{id:"nix",name:"Nix",import:()=>n.e(38528).then(n.bind(n,38528))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(77658).then(n.bind(n,77658))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(19636).then(n.bind(n,19636))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(65323).then(n.bind(n,47708))},{id:"ocaml",name:"OCaml",import:()=>n.e(69701).then(n.bind(n,69701))},{id:"pascal",name:"Pascal",import:()=>n.e(21253).then(n.bind(n,21253))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(37834)]).then(n.bind(n,37834))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(2501),n.e(18522)]).then(n.bind(n,2501))},{id:"plsql",name:"PL/SQL",import:()=>n.e(31401).then(n.bind(n,31401))},{id:"postcss",name:"PostCSS",import:()=>n.e(5942).then(n.bind(n,5942))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(43620).then(n.bind(n,43620))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(87594).then(n.bind(n,87594))},{id:"prisma",name:"Prisma",import:()=>n.e(8165).then(n.bind(n,8165))},{id:"prolog",name:"Prolog",import:()=>n.e(32760).then(n.bind(n,32760))},{id:"proto",name:"Protocol Buffer 3",import:()=>n.e(24223).then(n.bind(n,24223))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(365),n.e(10515),n.e(59253),n.e(58217)]).then(n.bind(n,58217))},{id:"puppet",name:"Puppet",import:()=>n.e(85031).then(n.bind(n,85031))},{id:"purescript",name:"PureScript",import:()=>n.e(13778).then(n.bind(n,13778))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(9739).then(n.bind(n,9739))},{id:"r",name:"R",import:()=>n.e(24703).then(n.bind(n,24703))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(43730).then(n.bind(n,43730))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(85820),n.e(63249)]).then(n.bind(n,63249))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(51287).then(n.bind(n,51287))},{id:"rel",name:"Rel",import:()=>n.e(22876).then(n.bind(n,22876))},{id:"riscv",name:"RISC-V",import:()=>n.e(55960).then(n.bind(n,55960))}
1,{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(96862),n.e(91759),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(36502),n.e(87994),n.e(8329),n.e(9739),n.e(67590)]).then(n.bind(n,20922))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(36502),n.e(87994),n.e(8329)]).then(n.bind(n,8329))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(31719).then(n.bind(n,31719))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(91613),n.e(25866)]).then(n.bind(n,25866))},{id:"sass",name:"Sass",import:()=>n.e(95475).then(n.bind(n,95475))},{id:"scala",name:"Scala",import:()=>n.e(75891).then(n.bind(n,75891))},{id:"scheme",name:"Scheme",import:()=>n.e(25268).then(n.bind(n,25268))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(32556),n.e(365)]).then(n.bind(n,365))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(78065).then(n.bind(n,78065))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(87994).then(n.bind(n,87994))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(87994),n.e(39351)]).then(n.bind(n,39351))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(25974).then(n.bind(n,25974))},{id:"solidity",name:"Solidity",import:()=>n.e(20566).then(n.bind(n,20566))},{id:"sparql",name:"SPARQL",import:()=>n.e(40598).then(n.bind(n,40598))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(34468).then(n.bind(n,34468))},{id:"sql",name:"SQL",import:()=>n.e(91613).then(n.bind(n,91613))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(82360).then(n.bind(n,82360))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(91613),n.e(27102)]).then(n.bind(n,27102))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(10515).then(n.bind(n,10515))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(96862),n.e(66047),n.e(32556),n.e(96138),n.e(365),n.e(32610),n.e(40502),n.e(10515),n.e(59253),n.e(58217),n.e(61820)]).then(n.bind(n,61820))},{id:"swift",name:"Swift",import:()=>n.e(92928).then(n.bind(n,92928))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(30291).then(n.bind(n,30291))},{id:"tasl",name:"Tasl",import:()=>n.e(10853).then(n.bind(n,10853))},{id:"tcl",name:"Tcl",import:()=>n.e(75416).then(n.bind(n,75416))}
1,{id:"tex",name:"TeX",import:()=>Promise.all([n.e(24703),n.e(45186)]).then(n.bind(n,45186))},{id:"toml",name:"TOML",import:()=>n.e(51093).then(n.bind(n,51093))},{id:"tsx",name:"TSX",import:()=>n.e(69630).then(n.bind(n,47468))},{id:"turtle",name:"Turtle",import:()=>n.e(85223).then(n.bind(n,85223))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(96862),n.e(32556),n.e(96138),n.e(91613),n.e(70769),n.e(36502),n.e(87994),n.e(365),n.e(8329),n.e(9739),n.e(2501),n.e(60218)]).then(n.bind(n,60218))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(66047).then(n.bind(n,43196))},{id:"v",name:"V",import:()=>n.e(11771).then(n.bind(n,11771))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(6169).then(n.bind(n,6169))},{id:"verilog",name:"Verilog",import:()=>n.e(5115).then(n.bind(n,5115))},{id:"vhdl",name:"VHDL",import:()=>n.e(89715).then(n.bind(n,89715))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(7797).then(n.bind(n,7797))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(96862),n.e(66047),n.e(69630),n.e(93119),n.e(32556),n.e(96138),n.e(365),n.e(32610),n.e(40502),n.e(10515),n.e(59253),n.e(58217),n.e(11841)]).then(n.bind(n,11841))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(96862),n.e(66047),n.e(69630),n.e(93119),n.e(32556),n.e(96138),n.e(365),n.e(32610),n.e(40502),n.e(10515),n.e(59253),n.e(58217),n.e(11841),n.e(88063)]).then(n.bind(n,88063))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(46421).then(n.bind(n,46421))},{id:"wasm",name:"WebAssembly",import:()=>n.e(30105).then(n.bind(n,30105))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(6055).then(n.bind(n,6055))},{id:"wgsl",name:"WGSL",import:()=>n.e(41794).then(n.bind(n,41794))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(90424).then(n.bind(n,47261))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(70769),n.e(96141)]).then(n.bind(n,18522))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(70769),n.e(81564)]).then(n.bind(n,81564))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(64796).then(n.bind(n,64796))},{id:"zenscript",name:"ZenScript",import:()=>n.e(32683).then(n.bind(n,32683))},{id:"zig",name:"zig",import:()=>n.e(9675).then(n.bind(n,9675))}],i=Object.fromEntries(r.map(e=>[e.id,e.import])),a=Object.fromEntries(r.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),l={...i,...a}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.