1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[519],{60519:function(e,t,n){let r,i;n.r(t),n.d(t,{ShikiError:function(){return a},addClassToHast:function(){return tu},applyColorReplacements:function(){return tr},bundledLanguages:function(){return nd},bundledLanguagesAlias:function(){return nu},bundledLanguagesBase:function(){return nc},bundledLanguagesInfo:function(){return nl},bundledThemes:function(){return np},bundledThemesInfo:function(){return nh},codeToHast:function(){return nL},codeToHtml:function(){return nI},codeToTokens:function(){return nT},codeToTokensBase:function(){return n$},codeToTokensWithThemes:function(){return nR},createBundledHighlighter:function(){return nr},createCssVariablesTheme:function(){return no},createHighlighter:function(){return nP},createHighlighterCore:function(){return t7},createHighlighterCoreSync:function(){return ne},createJavaScriptRegexEngine:function(){return iC},createOnigurumaEngine:function(){return nE},createPositionConverter:function(){return th},createShikiInternal:function(){return t6},createShikiInternalSync:function(){return t9},createSingletonShorthands:function(){return na},createdBundledHighlighter:function(){return ns},defaultJavaScriptRegexConstructor:function(){return iw},enableDeprecationWarnings:function(){return t0},flatTokenVariants:function(){return ty},getLastGrammarState:function(){return nG},getSingletonHighlighter:function(){return nM},getSingletonHighlighterCore:function(){return nn},getTokenStyleObject:function(){return tk},guessEmbeddedLanguages:function(){return tp},hastToHtml:function(){return tH},isNoneTheme:function(){return tl},isPlainLang:function(){return ts},isSpecialLang:function(){return to},isSpecialTheme:function(){return tc},loadWasm:function(){return nv},makeSingletonHighlighter:function(){return ni},makeSingletonHighlighterCore:function(){return nt},normalizeGetter:function(){return ta},normalizeTheme:function(){return tQ},resolveColorReplacements:function(){return tn},splitLines:function(){return td},splitToken:function(){return tf},splitTokens:function(){return tb},stringifyTokenStyle:function(){return t_},toArray:function(){return ti},tokenizeAnsiWithTheme:function(){return t$},tokenizeWithTheme:function(){return tG},tokensToHast:function(){return tW},transformerDecorations:function(){return tA},warnDeprecated:function(){return t1}});class a extends Error{constructor(e){super(e),this.name="ShikiError"}}var s,o,l=n(32608);function c(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var u=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,d=class{static hasCaptures(e){return null!==e&&(u.lastIndex=0,u.test(e))}static replaceCaptures(e,t,n){return e.replace(u,(e,r,i,a)=>{let s=n[parseInt(r||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function h(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])<(a=t[r])?-1:i>a?1:0;if(0!==n)return n}return 0}return n-r}function p(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 m(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var g=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},f=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}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 s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&p(a.settings.foreground)&&
1(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&p(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new k(c,u,e,s,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope)<(r=t.scope)?-1:n>r?1:0;return 0!==i||0!==(i=h(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 w(t),s=new y(n,a.getId(r),a.getId(i)),o=new x(new S(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 f(a,s,o)}(e,t)}_cachedMatchRoot=new g(e=>this._root.match(e));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(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new y(n.fontStyle,n.foreground,n.background):null}},b=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){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}},y=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},k=class{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}},_=((s=_||{})[s.NotSet=-1]="NotSet",s[s.None=0]="None",s[s.Italic=1]="Italic",s[s.Bold=2]="Bold",s[s.Underline=4]="Underline",s[s.Strikethrough=8]="Strikethrough",s),w=class{_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)}},C=Object.freeze([]),S=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||C,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(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)}},x=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,s){let o,l,c;if(""===n){this._doInsertHere(t,r,i,a,s);return}let u=n.indexOf(".");-1===u?(o=n,l=""):(o=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),S.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,a,s)}_doInsertHere(e,t,n,r,i){if(null===t){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===h(s.parentScopes,t)){s.acceptOverwrite(e,n,r,i);return}}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new S(e,t,n,r,i))}},A=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}
1static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t);console.log({languageId:n,tokenType:r,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,i,a,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=i?1:0),-1!==a&&(d=a),0!==s&&(h=s),0!==o&&(p=o),(l<<0|c<<8|u<<10|d<<11|h<<15|p<<24)>>>0}};function v(e,t){let n,r;let i=[],a=(r=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!r)return null;let t=r[0];return r=n.exec(e),t}}),s=a.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=a.next()}let t=l();if(i.push({matcher:t,priority:e}),","!==s)break;s=a.next()}return i;function o(){if("-"===s){s=a.next();let e=o();return t=>!!e&&!e(t)}if("("===s){s=a.next();let e=function(){let e=[],t=l();for(;t&&(e.push(t),"|"===s||","===s);){do s=a.next();while("|"===s||","===s);t=l()}return t=>e.some(e=>e(t))}();return")"===s&&(s=a.next()),e}if(N(s)){let e=[];do e.push(s),s=a.next();while(N(s));return n=>t(e,n)}return null}function l(){let e=[],t=o();for(;t;)e.push(t),t=o();return t=>e.every(e=>e(t))}}function N(e){return!!e&&!!e.match(/[\w\.:]+/)}var E=((o=E||{})[o.None=0]="None",o[o.NotBeginString=1]="NotBeginString",o[o.NotEndString=2]="NotEndString",o[o.NotBeginPosition=4]="NotBeginPosition",o[o.DebugCall=8]="DebugCall",o);function P(e){"function"==typeof e.dispose&&e.dispose()}var I=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},L=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},T=class{_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{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new I(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new T;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 I?M({baseGrammar:a,selfGrammar:i},r):R(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let s=n.injections(e.scopeName);if(s)for(let e of s)r.add(new I(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof I){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 R(e,t,n){t.repository&&t.repository[e]&&G([t.repository[e]],t,n)}function M(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&G(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&G(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function G(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?c({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&G(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=j(i);switch(a.kind){case 0:M({...t,selfGrammar:t.baseGrammar},n);break;case 1:M(t,n);break;case 2:R(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let r={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?R(a.ruleName,r,n):M(r,n)}else 4===a.kind?n.add(new L(a.scopeName,a.ruleName)):n.add(new I(a.scopeName))}}}var O=class{kind=0},B=class{kind=1},D=class{constructor(e){this.ruleName=e}kind=2},F=class{constructor(e){this.scopeName=e}kind=3},U=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function j(e){if("$base"===e)return new O;if("$self"===e)return new B;let t=e.indexOf("#");return -1===t?new F(e):0===t?new D(e.substring(1)):new U(e.substring(0,t),e.substring(t+1))}var W=/\\(\d+)/,H=/\\(\d+)/g;Symbol("RuleId");var q=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=d.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=d.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?d.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?d.replaceCaptures(this._contentName,e,t):this._contentName}},z=class extends q{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!")}},V=class extends q{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new K(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 Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},X=class extends q{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 Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Q=class extends q{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,s,o,l,c){super(e,t,n,r),this._begin=new K(i,this.id),this.beginCaptures=a,this._end=new K(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.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 Y,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}},J=class extends q{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r),this._begin=new K(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=ne
1w K(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.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 Y,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 Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},Z=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new z(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new V(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=c({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Q(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),i[s]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=j(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c){if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}}else o=e.getCompiledRuleId(s,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof X||e instanceof Q||e instanceof J)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},K=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof 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,"string"==typeof this.source?this.hasBackReferences=W.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return H.lastIndex=0,this.source.replace(H,(e,t)=>m(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,s[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",s[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="ï¿¿",a[e+1]="G",s[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,s[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},Y=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
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 ee(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):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):this.compile(e)}_resolveAnchors(e,t,n){return new ee(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ee=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;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}},et=class{constructor(e,t){this.languageId=e,this.tokenType=t}},en=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new et(e,8),this._embeddedLanguagesMatcher=new er(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new et(0,0);_getBasicScopeAttributes=new g(e=>new et(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},er=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>m(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])}};void 0!==l&&l.env.VSCODE_TEXTMATE_DEBUG;var ei=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ea(e,t,n,r,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,n,r,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof J&&o.push({rule:n,stack:t})}for(let h=o.pop();h;h=o.pop()){var l,c,u,d;let{ruleScanner:o,findOptions:p}=(l=h.rule,c=h.stack.endRule,u=n,d=r===s,{ruleScanner:l.compileWhileAG(e,c,u,d),findOptions:0}),m=o.findNextMatchSync(t,r,p);if(m){if(-2!==m.ruleId){i=h.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(h.stack,m.captureIndices[0].start),eo(e,t,n,h.stack,a,h.rule.whileCaptures,m.captureIndices),a.produce(h.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=h.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}(e,t,n,r,i,a);i=s.stack,r=s.linePos,n=s.isFirstLine,u=s.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new ei(i,!0);!function(){let s=function(e,t,n,r,i,a){let s=function(e,t,n,r,i,a){let{ruleScanner:s,findOptions:o}=es(i.getRule(e),e,i.endRule,n,r===a),l=s.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,n,r,i,a,s){let o,l=Number.MAX_VALUE,c=null,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,h=e.length;a<h;a++){let h=e[a];if(!h.matcher(d))continue;let{ruleScanner:p,findOptions:m}=es(t.getRule(h.ruleId),t,null,r,i===s),g=p.findNextMatchSync(n,i,m);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,c=g.captureIndices,o=g.ruleId,u=h.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!l)return s;if(!s)return l;
1let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,n,r,i,u);if(!s){a.produce(i,l),c=!0;return}let o=s.captureIndices,d=s.matchedRuleId,h=!!o&&o.length>0&&o[0].end>r;if(-1===d){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),eo(e,t,n,i,a,s.endCaptures,o),a.produce(i,o[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!h&&d.getEnterPos()===r){i=d,a.produce(i,l),c=!0;return}}else{let s=e.getRule(d);a.produce(i,o[0].start);let p=i,m=s.getName(t.content,o),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,o[0].end===l,null,g,g),s instanceof Q){eo(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(s instanceof J){eo(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(eo(e,t,n,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!h){i=i.safePop(),a.produce(i,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new ei(i,!1)}function es(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eo(e,t,n,r,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let d=s[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;
1)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),h=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,d.end));ea(e,p,n&&0===d.start,d.start,h,i,!1,0),P(p);continue}let h=l.getName(o,s);if(null!==h){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new el(t,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var el=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ec(e,t,n,r,i){let a=v(t,eu),s=Z.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:i,priority:n.priority})}function eu(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})}var ed=class{constructor(e,t,n,r,i,a,s,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=s,this._grammar=eh(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of v(e,eu))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}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)ec(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&&ec(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]=eh(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=Z.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=A.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?ep.createRootAndLookUpScopeName(s,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),s=a.content.length,o=new ef(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ea(this,a,i,0,t,o,!0,r);return P(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eh(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):t instanceof RegExp?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}var ep=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=b.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new b(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new b(null,t),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}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),A.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}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}},em=class e{constructor(e,t,n,r,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}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(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,s,o){return new e(this,t,n,r,i,a,s,o)}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(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,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(t,n){let r=ep.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ep.fromExtension(r,n.contentNameScopesList))}},eg=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):v(e,eu).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>v(e,eu).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}},ef=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;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=A.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=A.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}},eb=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;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)}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 ed(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ey=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eb(f.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(f.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)}_loadGrammar(e,t,n,r,i){let a=new $(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),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)}},ek=em.NULL,e_=n(12609),ew=n(2567),eC=n(93511);let eS=/["&'<>`]/g,ex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eA=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ev=/[|\\{}()[\]^$+*?.]/g,eN=new WeakMap,eE=/[\dA-Fa-f]/,eP=/\d/,eI=["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","oslas
1h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],eL={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:"â¬"},eT=["cent","copy","divide","gt","lt","not","para","times"],e$={}.hasOwnProperty,eR={};for(r in eL)e$.call(eL,r)&&(eR[eL[r]]=r);let eM=/[^\dA-Za-z]/;function eG(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!eE.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(e$.call(eR,i)){let e=eR[i],a="&"+e;return n&&eI.includes(e)&&!eT.includes(e)&&(!r||t&&61!==t&&eM.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&&!eP.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 eO(e,t){return function(e,t){var n;let r;if(e=e.replace(t.subset?(n=t.subset,(r=eN.get(n))||(r=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(ev,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),eN.set(n,r)),r):eS,i),t.subset||t.escapeOnly)return e;return e.replace(ex,function(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(eA,i);function i(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:eG},t))}let eB=/^>|^->|<!--|-->|--!>|<!-$/g,eD=[">"],eF=["<",">"];var eU=n(20056),ej=n(58034),eW=n(85972),eH=n(28215),eq=n(99277);let ez=eQ(1),eV=eQ(-1),eX=[];function eQ(e){return function(t,n,r){let i=t?t.children:eX,a=(n||0)+e,s=i[a];if(!r)for(;s&&(0,eq.Q)(s);)a+=e,s=i[a];return s}}let eJ={}.hasOwnProperty;function eZ(e){return function(t,n,r){return eJ.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let eK=eZ({body:function(e,t,n){let r=ez(n,t);return!r||"comment"!==r.type},caption:eY,colgroup:eY,dd:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=ez(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:eY,html:function(e,t,n){let r=ez(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=ez(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:e0,rt:e0,tbody:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:e1,tfoot:function(e,t,n){return!ez(n,t)},th:e1,thead:function(e,t,n){let r=ez(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function eY(e,t,n){let r=ez(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,eq.Q)(r.value.charAt(0)))}function e0(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function e1(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let e2=eZ({body:function(e){let t=ez(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eq.Q)(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=eV(n,t),i=ez(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&eK(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=ez(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=eV(n,t),i=ez(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&eK(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),e8={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>
1`".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("")]]},e3=["<","&"];function e4(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eO(e.value,Object.assign({},r.settings.characterReferences,{subset:e3}))}let e5=(0,eC.z)("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?"<?"+eO(e.value,Object.assign({},r.settings.characterReferences,{subset:eD}))+">":"<!--"+e.value.replace(eB,function(e){return eO(e,Object.assign({},r.settings.characterReferences,{subset:eF}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i;let a=r.schema,s="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=ew.YP);let c=function(e,t){let n;let 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;let i=(0,eW.s)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=e.settings.allowDangerousCharacters?0:1,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eO(i.attribute,Object.assign({},e.settings.characterReferences,{subset:e8.name[a][s]}));return!0===n?l:(n=Array.isArray(n)?(i.commaSeparated?ej.P:eH.P)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=eO(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e8.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&(0,eU.w)(n,o)>(0,eU.w)(n,e.alternative)&&(o=e.alternative),r=o+eO(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e8.single:e8.double)[a][s],attribute:!0}))+o),l+(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),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(o=!1),!c&&s&&e2(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&eK(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:e4(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:e4}}),e9={},e6={},e7=[];function te(e,t,n){return e5(e,t,n,this)}function tt(e){let t=[],n=e&&e.children||e7,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function tn(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function tr(e,t){return e&&t?.[e?.toLowerCase()]||e}function ti(e){return Array.isArray(e)?e:[e]}async function ta(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function ts(e){return!e||["plaintext","txt","text","plain"].includes(e)}function to(e){return"ansi"===e||ts(e)}function tl(e){return"none"===e}function tc(e){return tl(e)}function tu(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function td(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length+(n[e+1]?.length||0)}return i}function th(e){let t=td(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}function tp(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}let tm="light-dark()",tg=["color","background-color"];function tf(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function tb(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>
1e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?tf(e,t):e})):e}function ty(e,t,n,r,i="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tk(e.variants[t])),l=new Set(o.flatMap(e=>Object.keys(e))),c={},u=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let s of l){let l=e[s]||"inherit";if(0===n&&r&&tg.includes(s)){if(r===tm&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let d=o[e][s]||"inherit",h=o[r][s]||"inherit";c[s]=`light-dark(${d}, ${h})`,"css-vars"===i&&(c[u(n,s)]=l)}else c[s]=l}else"css-vars"===i&&(c[u(n,s)]=l)}}),s.htmlStyle=c,s}function tk(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&_.Italic&&(t["font-style"]="italic"),e.fontStyle&_.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&_.Underline&&n.push("underline"),e.fontStyle&_.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function t_(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tw=new WeakMap;function tC(e,t){tw.set(e,t)}function tS(e){return tw.get(e)}class tx{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tx(Object.fromEntries(ti(t).map(e=>[e,ek])),e)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){let t=[],n=new Set;return!function e(r){if(n.has(r))return;n.add(r);let i=r?.nameScopesList?.scopeName;i&&t.push(i),r.parent&&e(r.parent)}(e),t}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function tA(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new a(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=th(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new a(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||s||o||l){if(i&&s||o&&l||o&&n.start.offset===n.end.offset||s&&t.start.offset===t.end.offset)continue;throw new a(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return tb(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new a(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],l="",c=-1,u=-1;if(0===t&&(c=0),0===n&&(u=0),n===Number.POSITIVE_INFINITY&&(u=o.children.length),-1===c||-1===u)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===c&&l.length===t&&(c=e+1),-1===u&&l.length===n&&(u=e+1);if(-1===c)throw new a(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);
1if(-1===u)throw new a(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let d=o.children.slice(c,u);if(i.alwaysWrap||d.length!==o.children.length){if(i.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};s(e,i,"wrapper"),o.children.splice(c,d.length,e)}else s(d[0],i,"token")}else s(o,i,"line")}function s(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&tu(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=s(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}let tv=[tA()];function tN(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tv]}var tE=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tP={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tI(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tL={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"};let tT={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function t$(e,t,n){let r,i,a;let s=tn(e,n),o=td(t),l=function(e=tL){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<tE.length;n++)t.push(e[tE[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(tE.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||tT[t]]}))),c=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let s=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=s.sequence?e.substring(n,s.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(a)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(0===r)t.push({type:"resetAll"});else if(r<=9)tP[r]&&t.push({type:"setDecoration",value:tP[r]});else if(r<=29){let e=tP[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tE[r-30]}});else if(38===r){let n=tI(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tE[r-40]}});else if(48===r){let n=tI(e);
1n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tE[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tE[r-100+8]}})}}return t}(s.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:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=s.position}while(n<e.length);return t}});return o.map(t=>c.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=tr(r,s),i=tr(i,s),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3],a=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${r}${r}${a}`}if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=_.None;return n.decorations.has("bold")&&(a|=_.Bold),n.decorations.has("italic")&&(a|=_.Italic),n.decorations.has("underline")&&(a|=_.Underline),n.decorations.has("strikethrough")&&(a|=_.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}function tR(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(ts(i)||tl(r))return td(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:s,colorMap:o}=e.setTheme(r);if("ansi"===i)return t$(s,t,n);let l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new a(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(s.name))throw new a(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return tG(t,l,s,o,n)}function tM(...e){if(2===e.length)return tS(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:s=t.getLoadedThemes()[0]}=r;if(ts(i)||tl(s))throw new a("Plain language does not have grammar state");if("ansi"===i)throw new a("ANSI language does not have grammar state");
1let{theme:o,colorMap:l}=t.setTheme(s),c=t.getLanguage(i);return new tx(tO(n,c,o,l,r).stateStack,c.name,o.name)}function tG(e,t,n,r,i){let a=tO(e,t,n,r,i),s=new tx(a.stateStack,t.name,n.name);return tC(a.tokens,s),a.tokens}function tO(e,t,n,r,i){let s=tn(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,c=td(e),u=i.grammarState?function(e,t){if(!(e instanceof tx))throw new a("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??ek:null!=i.grammarContextCode?tO(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ek,d=[],h=[];for(let e=0,a=c.length;e<a;e++){let a,p;let[m,g]=c[e];if(""===m){d=[],h.push([]);continue}if(o>0&&m.length>=o){d=[],h.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(a=t.tokenizeLine(m,u,l).tokens,p=0);let f=t.tokenizeLine2(m,u,l),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],o=e+1<b?f.tokens[2*e+2]:m.length;if(t===o)continue;let l=f.tokens[2*e+1],c=tr(r[A.getForeground(l)],s),u=A.getFontStyle(l),h={content:m.substring(t,o),offset:g+t,color:c,fontStyle:u};if(i.includeExplanation){let e=[];
1if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}h.explanation=[];let r=0;for(;t+r<o;){let t=a[p],n=m.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tB(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tB(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}d.push(h)}h.push(d),d=[],u=f.ruleStack}return{tokens:h,stateStack:u}}function tB(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tD(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tR(e,t,{...n,theme:r.theme}),a=tS(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=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 s=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),s[t]+=1,o[t]=i[t][s[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}(...i.map(e=>e.tokens)),s=a[0].map((e,t)=>e.map((e,i)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:l,...c}=e[t][i];s.variants[r[n].color]=c}),s})),o=i[0].state?new tx(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&tC(s,o),s}function tF(e,t,n){let r,i,s,o,l,c;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:d="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:t.color===u?1:0);if(0===p.length)throw new a("`themes` option must not be empty");let m=tD(e,t,n);if(c=tS(m),u&&tm!==u&&!p.find(e=>e.color===u))throw new a(`\`themes\` option must contain the defaultColor key \`${u}\``);let g=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);s=m.map(e=>e.map(e=>ty(e,f,d,u,h))),c&&tC(s,c);let b=p.map(e=>tn(e.theme,n));i=tU(p,g,b,d,u,"fg",h),r=tU(p,g,b,d,u,"bg",h),o=`shiki-themes ${g.map(e=>e.name).join(" ")}`,l=u?void 0:[i,r].join(";")}else if("theme"in n){let a=tn(n.theme,n);s=tR(e,t,n);let l=e.getTheme(n.theme);r=tr(l.bg,a),i=tr(l.fg,a),o=l.name,c=tS(s)}else throw new a("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:l,grammarState:c}}function tU(e,t,n,r,i,s,o){return e.map((l,c)=>{let u=tr(t[c][s],n[c])||"inherit",d=`${r+l.color}${"bg"===s?"-bg":""}:${u}`;if(0===c&&i){if(i===tm&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=tr(t[r][s],n[r])||"inherit",l=tr(t[i][s],n[i])||"inherit";return`light-dark(${o}, ${l});${d}`}return u}return"css-vars"===o?d:null}).filter(e=>!!e).join(";")}function tj(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tj(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)}){let i=t;for(let e of tN(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=tF(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?a=a.map(e=>{let t;let n=[],r="";return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&_.Underline||i.fontStyle&_.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(s?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===d&&(a=a.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}))),h&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=t_(e.htmlStyle||tk(e)),i=t_(n.htmlStyle||tk(n)),a=e.fontStyle&&(e.fontStyle&_.Underline||e.fontStyle&_.Strikethrough),s=n.fontStyle&&(n.fontStyle&_.Underline||n.fontStyle&_.Strikethrough);a||s||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of tN(n))a=e.tokens?.call(p,a)||a;return tW(a,{...n,fg:s,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)},p,u)}function tW(e,t,n,r=tS(e)){let i=tN(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=n);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:a},h=[],p={...n,structure:o,addClassToHast:tu,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return d},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"}
1,children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=t_(a.htmlStyle||tk(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(p,e,t+1,r,n,a)||e;"inline"===o?s.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(p,n,t+1)||n;h.push(n),a.push(n)}else"inline"===o&&h.push(n)}),"classic"===o){for(let e of i)d=e?.code?.call(p,d)||d;for(let e of(u.children.push(d),i))u=e?.pre?.call(p,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of s.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;s.children=[];for(let e=0;e<n.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&s.children.push(...t.children)}}let m=s;for(let e of i)m=e?.root?.call(p,m)||m;return r&&tC(m,r),m}let tH=function(e,t){let n=t||e9,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:te,all:tt,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||e_.z,characterReferences:n.characterReferences||e6,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ew.YP:ew.dy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};function tq(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tj(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)},i=tH(tj(e,t,n,r));for(let e of tN(n))i=e.postprocess?.call(r,i,n)||i;return i}let tz={light:"#333333",dark:"#bbbbbb"},tV={light:"#fffffe",dark:"#1e1e1e"},tX="__shiki_resolved";function tQ(e){if(e?.[tX])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?tz.light:tz.dark),n||(n="light"===t.type?tV.light:tV.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 s(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?s(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=s(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=s(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=s(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tX,{enumerable:!1,writable:!1,value:!0}),t}async function tJ(e){return Array.from(new Set((await Promise.all(e.filter(e=>!to(e)).map(async e=>await ta(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tZ(e){return(await Promise.all(e.map(async e=>tl(e)?null:tQ(await ta(e))))).filter(e=>!!e)}let tK=3,tY=!1;function t0(e=!0,t=!1){tK=e,tY=t}function t1(e,t=3){if(tK&&("number"!=typeof tK||!(t>tK))){if(tY)throw Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}
1class t2 extends Error{constructor(e){super(e),this.name="ShikiError"}}function t8(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new t2(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class t3 extends ey{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tQ(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=f.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=t8(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].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=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}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])=>{if(!t)return!1;let r=t.embeddedLanguages||t.embeddedLangs;return r?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new t2(`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)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class t4{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){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}}let t5=0;function t9(e){let t;t5+=1,!1!==e.warnings&&t5>=10&&t5%10==0&&console.warn(`[Shiki] ${t5} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new t2("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tQ),a=new t3(new t4(e.engine,r),i,r,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new t2(`Theme \`${e}
1\` not found, you may need to load it first`);return t}function o(...e){c(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))a.loadTheme(t)}function c(){if(n)throw new t2("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),t5-=1)}return{setTheme:function(e){c();let n=s(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new t2(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return t8(t,e.langAlias)},loadLanguage:async function(...e){return o(await tJ(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await tZ(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}async function t6(e){e.engine||t1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tZ(e.themes||[]),tJ(e.langs||[]),e.engine]);return t9({...e,themes:t,langs:n,engine:r})}async function t7(e){let t=await t6(e);return{getLastGrammarState:(...e)=>tM(t,...e),codeToTokensBase:(e,n)=>tR(t,e,n),codeToTokensWithThemes:(e,n)=>tD(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tj(t,e,n),codeToHtml:(e,n)=>tq(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function ne(e){let t=t9(e);return{getLastGrammarState:(...e)=>tM(t,...e),codeToTokensBase:(e,n)=>tR(t,e,n),codeToTokensWithThemes:(e,n)=>tD(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tj(t,e,n),codeToHtml:(e,n)=>tq(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function nt(e){let t;return async function(n){if(!t)return t=e({...n,themes:n.themes||[],langs:n.langs||[]});{let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}}}let nn=nt(t7);function nr(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){if("string"==typeof n){if(to(n=e.langAlias?.[n]||n))return[];let r=t[n];if(!r)throw new a(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function s(e){if(tl(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new a(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>s(e)),l=(e.langs??[]).map(e=>i(e)),c=await t7({engine:e.engine??r(),...e,themes:o,langs:l});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(i)),loadTheme:(...e)=>c.loadTheme(...e.map(s)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}function ni(e){let t;return async function(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}}function na(e,t){let n=ni(e);async function r(e,r){let i=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await r(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await r(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await r(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await r(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await r(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}let ns=nr;function no(e={}){let{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,i=t=>e.variableDefaults?.[t]?`var(${n}${t}, ${e.variableDefaults[t]})`:`var(${n}${t})`,a={name:t,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return r||(a.tokenColors=a.tokenColors?.map(e=>(e.settings?.fontStyle&&delete e.settings.fontStyle,e))),a}let nl=[{id:"abap",name:"ABAP",import:()=>n.e(9620).then(n.bind(n,49620))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(5360).then(n.bind(n,75360))},{id:"ada",name:"Ada",import:()=>n.e(4570).then(n.bind(n,24570))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(7718)]).then(n.bind(n,17718))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(3818),n.e(7588),n.e(9893),n.e(4845),n.e(7451),n.e(782)]).then(n.bind(n,33637))},{id:"apache",name:"Apache Conf",import:()=>n.e(5774).then(n.bind(n,65774))},{id:"apex",name:"Apex",import:()=>n.e(9329).then(n.bind(n,89329))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(8317),n.e(7024)]).then(n.bind(n,77024))},{id:"applescript",name:"AppleScript",import:()=>n.e(9163).then(n.bind(n,19163))},{id:"ara",name:"Ara",import:()=>n.e(9087).then(n.bind(n,99087))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(7510).then(n.bind(n,34436))},{id:"asm",name:"Assembly",import:()=>n.e(2112).then(n.bind(n,12112))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(9893),n.e(5497)]).then(n.bind(n,55497))},{id:"awk",name:"AWK",import:()=>n.e(62).then(n.bind(n,30062))},{id:"ballerina",name:"Ballerina",import:()=>n.e(9634).then(n.bind(n,39634))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(7084).then(n.bind(n,7084))},{id:"beancount",name:"Beancount",import:()=>n.e(145).then(n.bind(n,60145))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(1770).then(n.bind(n,81770))},{id:"bibtex",name:"BibTeX",import:()=>n.e(8270).then(n.bind(n,88270))},{id:"bicep",name:"Bicep",import:()=>n.e(698).then(n.bind(n,60698))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(6754)]).then(n.bind(n,56754))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(8075).then(n.bind(n,58075))},{id:"c",name:"C",import:()=>n.e(6276).then(n.bind(n,26276))},{id:"c3",name:"C3",import:()=>n.e(3044).then(n.bind(n,23044))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(9797).then(n.bind(n,19797))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(4167),n.e(8905)]).then(n.bind(n,58905))},{id:"clarity",name:"Clarity",import:()=>n.e(404).then(n.bind(n,50404))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(4784).then(n.bind(n,24784))},{id:"cmake",name:"CMake",import:()=>n.e(7043).then(n.bind(n,37043))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(8317),n.e(1247)]).then(n.bind(n,31247))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(1753).then(n.bind(n,71753))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(898).then(n.bind(n,50898))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(3818),n.e(4973)]).then(n.bind(n,34973))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(4587).then(n.bind(n,14587))},{id:"coq",name:"Coq",import:()=>n.e(662).then(n.bind(n,60662))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(1166),n.e(878),n.e(1765),n.e(6276),n.e(1125)]).then(n.bind(n,73752))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(1765),n.e(6276),n.e(9763),n.e(5541)]).then(n.bind(n,85541))}
1,{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(3905).then(n.bind(n,83905))},{id:"css",name:"CSS",import:()=>n.e(9893).then(n.bind(n,39893))},{id:"csv",name:"CSV",import:()=>n.e(5842).then(n.bind(n,85842))},{id:"cue",name:"CUE",import:()=>n.e(1048).then(n.bind(n,51048))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(7090).then(n.bind(n,67090))},{id:"d",name:"D",import:()=>n.e(8498).then(n.bind(n,68498))},{id:"dart",name:"Dart",import:()=>n.e(8937).then(n.bind(n,78937))},{id:"dax",name:"DAX",import:()=>n.e(2486).then(n.bind(n,22486))},{id:"desktop",name:"Desktop",import:()=>n.e(3010).then(n.bind(n,23010))},{id:"diff",name:"Diff",import:()=>n.e(9197).then(n.bind(n,69197))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(9539).then(n.bind(n,69539))},{id:"dotenv",name:"dotEnv",import:()=>n.e(8001).then(n.bind(n,38001))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(5616).then(n.bind(n,95616))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(9893),n.e(4845),n.e(1829)]).then(n.bind(n,41829))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(7832)]).then(n.bind(n,97832))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(6276),n.e(5382)]).then(n.bind(n,25382))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(1075).then(n.bind(n,56697))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(4692),n.e(1166),n.e(878),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(6276),n.e(9763),n.e(1080),n.e(6524),n.e(8941)]).then(n.bind(n,8941))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(2611),n.e(8512)]).then(n.bind(n,38512))},{id:"fennel",name:"Fennel",import:()=>n.e(7883).then(n.bind(n,57883))},{id:"fish",name:"Fish",import:()=>n.e(529).then(n.bind(n,26249))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(5905).then(n.bind(n,45905))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(8867),n.e(6952)]).then(n.bind(n,56952))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(8867).then(n.bind(n,18867))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(2611),n.e(198)]).then(n.bind(n,60198))},{id:"gdresource",name:"GDResource",import:()=>n.e(2629).then(n.bind(n,72629))},{id:"gdscript",name:"GDScript",import:()=>n.e(5773).then(n.bind(n,15773))},{id:"gdshader",name:"GDShader",import:()=>n.e(8250).then(n.bind(n,78250))},{id:"genie",name:"Genie",import:()=>n.e(2002).then(n.bind(n,22002))},{id:"gherkin",name:"Gherkin",import:()=>n.e(8430).then(n.bind(n,78430))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(1102).then(n.bind(n,11102))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(9763),n.e(2540)]).then(n.bind(n,42540))},{id:"gleam",name:"Gleam",import:()=>n.e(2964).then(n.bind(n,62964))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(3818),n.e(4253),n.e(9893),n.e(4845),n.e(4682)]).then(n.bind(n,4682))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(3818),n.e(4253),n.e(9893),n.e(4845),n.e(9981)]).then(n.bind(n,29981))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(6276),n.e(3572)]).then(n.bind(n,13572))},{id:"gn",name:"GN",import:()=>n.e(6955).then(n.bind(n,36955))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(4093).then(n.bind(n,24093))},{id:"go",name:"Go",import:()=>n.e(7444).then(n.bind(n,37444))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(4692),n.e(1080)]).then(n.bind(n,81080))},{id:"groovy",name:"Groovy",import:()=>n.e(7750).then(n.bind(n,27750))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(1765),n.e(3143)]).then(n.bind(n,63143))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(8808)]).then(n.bind(n,18808))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(1526)]).then(n.bind(n,11526))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(207).then(n.bind(n,10207))},{id:"haxe",name:"Haxe",import:()=>n.e(8768).then(n.bind(n,68768))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(9255).then(n.bind(n,49255))}
1,{id:"hjson",name:"Hjson",import:()=>n.e(9277).then(n.bind(n,28290))},{id:"hlsl",name:"HLSL",import:()=>n.e(8179).then(n.bind(n,48179))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845)]).then(n.bind(n,24845))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(6295)]).then(n.bind(n,46295))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(4692),n.e(8317),n.e(9763),n.e(1080),n.e(9521)]).then(n.bind(n,99521))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(4692),n.e(8317),n.e(1080),n.e(8059)]).then(n.bind(n,48059))},{id:"hxml",name:"HXML",import:()=>n.e(5217).then(n.bind(n,35217))},{id:"hy",name:"Hy",import:()=>n.e(448).then(n.bind(n,50448))},{id:"imba",name:"Imba",import:()=>n.e(8062).then(n.bind(n,68062))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(9693).then(n.bind(n,99693))},{id:"java",name:"Java",import:()=>n.e(8317).then(n.bind(n,88317))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(3818).then(n.bind(n,15464))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(822)]).then(n.bind(n,60822))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(3818),n.e(1353)]).then(n.bind(n,11353))},{id:"json",name:"JSON",import:()=>n.e(4895).then(n.bind(n,74895))},{id:"json5",name:"JSON5",import:()=>n.e(3997).then(n.bind(n,43997))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(7541).then(n.bind(n,77541))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(733).then(n.bind(n,30733))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(5234).then(n.bind(n,95234))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(7624).then(n.bind(n,77624))},{id:"jsx",name:"JSX",import:()=>n.e(4692).then(n.bind(n,14649))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(3818),n.e(1166),n.e(878),n.e(1765),n.e(6276),n.e(4167),n.e(3065)]).then(n.bind(n,26586))},{id:"kdl",name:"KDL",import:()=>n.e(1004).then(n.bind(n,71004))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(7302).then(n.bind(n,90733))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(2687).then(n.bind(n,92687))},{id:"latex",name:"LaTeX",import:()=>n.e(166).then(n.bind(n,50166))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(5460).then(n.bind(n,85460))},{id:"less",name:"Less",import:()=>n.e(292).then(n.bind(n,49564))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(8606)]).then(n.bind(n,38606))},{id:"llvm",name:"LLVM IR",import:()=>n.e(618).then(n.bind(n,26221))},{id:"log",name:"Log file",import:()=>n.e(9920).then(n.bind(n,49920))},{id:"logo",name:"Logo",import:()=>n.e(8775).then(n.bind(n,88775))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(6276),n.e(5859)]).then(n.bind(n,5859))},{id:"luau",name:"Luau",import:()=>n.e(3756).then(n.bind(n,23756))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(3467).then(n.bind(n,27362))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(2611).then(n.bind(n,32611))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(4253),n.e(9893),n.e(7451),n.e(292),n.e(4702)]).then(n.bind(n,64702))},{id:"matlab",name:"MATLAB",import:()=>n.e(3569).then(n.bind(n,3569))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(2611),n.e(8640)]).then(n.bind(n,28640))},{id:"mdx",name:"MDX",import:()=>n.e(3457).then(n.bind(n,83457))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(233).then(n.bind(n,233))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(4109).then(n.bind(n,44109))},{id:"mojo",name:"Mojo",import:()=>n.e(6935).then(n.bind(n,46935))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(6779).then(n.bind(n,56779))},{id:"move",name:"Move",import:()=>n.e(5177).then(n.bind(n,5177))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(3521).then(n.bind(n,83521))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(2108).then(n.bind(n,92108))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(6276),n.e(7502)]).then(n.bind(n,97502))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(8317),n.e(6276),n.e(2611),n.e(7944)
1]).then(n.bind(n,77944))},{id:"nix",name:"Nix",import:()=>n.e(1861).then(n.bind(n,81861))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(5752).then(n.bind(n,5752))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(7049).then(n.bind(n,27049))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(802).then(n.bind(n,27422))},{id:"ocaml",name:"OCaml",import:()=>n.e(3125).then(n.bind(n,53125))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(2427).then(n.bind(n,32427))},{id:"pascal",name:"Pascal",import:()=>n.e(5148).then(n.bind(n,75148))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(312)]).then(n.bind(n,97709))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(6539),n.e(4123)]).then(n.bind(n,16539))},{id:"pkl",name:"Pkl",import:()=>n.e(9231).then(n.bind(n,99231))},{id:"plsql",name:"PL/SQL",import:()=>n.e(2054).then(n.bind(n,62054))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(4635).then(n.bind(n,74635))},{id:"polar",name:"Polar",import:()=>n.e(4721).then(n.bind(n,4721))},{id:"postcss",name:"PostCSS",import:()=>n.e(1702).then(n.bind(n,71702))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(2864).then(n.bind(n,52864))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(157).then(n.bind(n,10157))},{id:"prisma",name:"Prisma",import:()=>n.e(7554).then(n.bind(n,37554))},{id:"prolog",name:"Prolog",import:()=>n.e(2972).then(n.bind(n,2972))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(311).then(n.bind(n,90311))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(9387)]).then(n.bind(n,99387))},{id:"puppet",name:"Puppet",import:()=>n.e(923).then(n.bind(n,923))},{id:"purescript",name:"PureScript",import:()=>
1n.e(5626).then(n.bind(n,65626))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(4167).then(n.bind(n,94167))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(3818),n.e(9824)]).then(n.bind(n,99824))},{id:"qmldir",name:"QML Directory",import:()=>n.e(7637).then(n.bind(n,57637))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(1276).then(n.bind(n,1276))},{id:"r",name:"R",import:()=>n.e(7193).then(n.bind(n,27193))},{id:"racket",name:"Racket",import:()=>n.e(3433).then(n.bind(n,93433))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(9065).then(n.bind(n,29065))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(3905),n.e(8445)]).then(n.bind(n,58445))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(7735).then(n.bind(n,77735))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(8031).then(n.bind(n,38031))},{id:"rel",name:"Rel",import:()=>n.e(576).then(n.bind(n,20576))},{id:"riscv",name:"RISC-V",import:()=>n.e(2802).then(n.bind(n,22802))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(12).then(n.bind(n,60012))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(4692),n.e(1166),n.e(878),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(6276),n.e(9763),n.e(1080),n.e(4167),n.e(6524),n.e(9809)]).then(n.bind(n,49809))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(4692),n.e(1166),n.e(878),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(6276),n.e(9763),n.e(1080),n.e(6524)]).then(n.bind(n,10297))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(4106).then(n.bind(n,4106))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(1765),n.e(9403)]).then(n.bind(n,9403))},{id:"sass",name:"Sass",import:()=>n.e(9298).then(n.bind(n,69298))},{id:"scala",name:"Scala",import:()=>n.e(211).then(n.bind(n,10211))},{id:"scheme",name:"Scheme",import:()=>n.e(7397).then(n.bind(n,57397))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(9893),n.e(7451)]).then(n.bind(n,67451))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(4229).then(n.bind(n,34229))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(6281).then(n.bind(n,36281))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(9763).then(n.bind(n,29763))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(9763),n.e(4740)]).then(n.bind(n,74740))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(7910).then(n.bind(n,37910))},{id:"solidity",name:"Solidity",import:()=>n.e(6744).then(n.bind(n,76744))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(3818),n.e(9893),n.e(4845),n.e(3028)]).then(n.bind(n,3028))},{id:"sparql",name:"SPARQL",import:()=>n.e(5323).then(n.bind(n,15323))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(504).then(n.bind(n,40504))},{id:"sql",name:"SQL",import:()=>n.e(1765).then(n.bind(n,51765))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(3829).then(n.bind(n,13829))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(1765),n.e(3404)]).then(n.bind(n,73404))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(8988).then(n.bind(n,78988))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(9893),n.e(8309)]).then(n.bind(n,8309))},{id:"swift",name:"Swift",import:()=>n.e(6093).then(n.bind(n,86093))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(5575).then(n.bind(n,25575))},{id:"systemd",name:"Systemd Units",import:()=>n.e(7256).then(n.bind(n,87256))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(1401).then(n.bind(n,21401))},{id:"tasl",name:"Tasl",import:()=>n.e(9785).then(n.bind(n,9785))},{id:"tcl",name:"Tcl",import:()=>n.e(7362).then(n.bind(n,27075))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(3818),n.e(9893),n.e(7444),n.e(7391)]).then(n.bind(n,77391))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(5934).then(n.bind(n,65934))}
1,{id:"tex",name:"TeX",import:()=>n.e(6989).then(n.bind(n,66989))},{id:"toml",name:"TOML",import:()=>n.e(2413).then(n.bind(n,12413))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(3818),n.e(4253),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(6276),n.e(2531)]).then(n.bind(n,72531))},{id:"tsv",name:"TSV",import:()=>n.e(6101).then(n.bind(n,16101))},{id:"tsx",name:"TSX",import:()=>n.e(4436).then(n.bind(n,80105))},{id:"turtle",name:"Turtle",import:()=>n.e(1385).then(n.bind(n,81385))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(4436),n.e(4692),n.e(1166),n.e(878),n.e(9893),n.e(4845),n.e(8317),n.e(1765),n.e(6276),n.e(9763),n.e(1080),n.e(4167),n.e(7451),n.e(6524),n.e(6539),n.e(2273)]).then(n.bind(n,12273))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(4253).then(n.bind(n,61160))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(6529).then(n.bind(n,96529))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(2429).then(n.bind(n,62429))}
1,{id:"v",name:"V",import:()=>n.e(1194).then(n.bind(n,51194))},{id:"vala",name:"Vala",import:()=>n.e(5324).then(n.bind(n,14496))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(431).then(n.bind(n,60431))},{id:"verilog",name:"Verilog",import:()=>n.e(5189).then(n.bind(n,85189))},{id:"vhdl",name:"VHDL",import:()=>n.e(9990).then(n.bind(n,29990))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(4276).then(n.bind(n,64276))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(3818),n.e(4253),n.e(9893),n.e(4845),n.e(4842)]).then(n.bind(n,94842))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(3818),n.e(3286)]).then(n.bind(n,23286))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(3818),n.e(4377),n.e(9893),n.e(7451),n.e(292),n.e(161)]).then(n.bind(n,4613))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(6221).then(n.bind(n,6221))},{id:"wasm",name:"WebAssembly",import:()=>n.e(2788).then(n.bind(n,32788))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>n.e(9807).then(n.bind(n,19807))},{id:"wgsl",name:"WGSL",import:()=>n.e(1499).then(n.bind(n,91499))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(1178).then(n.bind(n,21178))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(7610).then(n.bind(n,47610))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(1158).then(n.bind(n,52179))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(8317),n.e(4124)]).then(n.bind(n,14123))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(8317),n.e(6476)]).then(n.bind(n,16476))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(6554).then(n.bind(n,16554))},{id:"zenscript",name:"ZenScript",import:()=>n.e(8540).then(n.bind(n,98540))},{id:"zig",name:"Zig",import:()=>n.e(6219).then(n.bind(n,56219))}],nc=Object.fromEntries(nl.map(e=>[e.id,e.import])),nu=Object.fromEntries(nl.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),nd={...nc,...nu},nh=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(5325).then(n.bind(n,5325))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(1500).then(n.bind(n,71500))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(3996).then(n.bind(n,53996))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(7388).then(n.bind(n,97388))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(885).then(n.bind(n,70885))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(7130).then(n.bind(n,97130))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(2029).then(n.bind(n,12029))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(8524).then(n.bind(n,18524))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(9491).then(n.bind(n,99491))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(8327).then(n.bind(n,88327))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(2930).then(n.bind(n,92930))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(3740).then(n.bind(n,93740))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(2202).then(n.bind(n,12202))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(9194).then(n.bind(n,99194))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(1794).then(n.bind(n,61794))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(6891).then(n.bind(n,36891))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3530).then(n.bind(n,13530))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(650).then(n.bind(n,50650))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(1064).then(n.bind(n,61064))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(8797).then(n.bind(n,78797))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(843).then(n.bind(n,70843))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(8567).then(n.bind(n,38567))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(9116).then(n.bind(n,39116))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(6520).then(n.bind(n,76520))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(524).then(n.bind(n,80524))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(330).then(n.bind(n,90330))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(5516).then(n.bind(n,5516))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(17).then(n.bind(n,50017))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(1224).then(n.bind(n,71224))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(573).then(n.bind(n,30573))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(5389).then(n.bind(n,75389))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(5331).then(n.bind(n,33572))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(9685).then(n.bind(n,89685))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(1442).then(n.bind(n,41442))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(2822).then(n.bind(n,72822))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(9880).then(n.bind(n,9880))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(9251).then(n.bind(n,99251))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(6499).then(n.bind(n,36499))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(9979).then(n.bind(n,99979))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(8465).then(n.bind(n,98465))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(4439).then(n.bind(n,64439))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(3042).then(n.bind(n,3042))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(4105).then(n.bind(n,54105))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(2175).then(n.bind(n,22175))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8467).then(n.bind(n,48467))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(766).then(n.bind(n,70766))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(9586).then(n.bind(n,29586))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(2205).then(n.bind(n,32205))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(6056).then(n.bind(n,26056))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(4938).then(n.bind(n,47075))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(4369).then(n.bind(n,64369))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(1806).then(n.bind(n,11806))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(4382).then(n.bind(n,54382))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(9673).then(n.bind(n,79673))}
1,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(280).then(n.bind(n,40280))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(1237).then(n.bind(n,21237))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(2439).then(n.bind(n,12439))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(379).then(n.bind(n,80379))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(2823).then(n.bind(n,52823))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(9340).then(n.bind(n,9340))}],np=Object.fromEntries(nh.map(e=>[e.id,e.import]));var nm=n(48791).Buffer;class ng extends Error{constructor(e){super(e),this.name="ShikiError"}}function nf(){return"undefined"!=typeof performance?performance.now():Date.now()}let nb=(e,t)=>e+(t-e%t)%t;async function ny(e){let t,n;let r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){s+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(n);else{let e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(r.HEAPU8,e,t):""}let o={emscripten_get_now:nf,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)>2147483648)return!1;for(let r=1;r<=4;r*=2){let s=a*(1+.2/r);if(s=Math.min(s,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(2147483648,nb(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=s}return await l(),r}var nk=Object.defineProperty,n_=(e,t,n)=>t in e?nk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nw=(e,t,n)=>n_(e,"symbol"!=typeof t?t+"":t,n);let nC=null;class nS{constructor(e){nw(this,"utf16Length"),nw(this,"utf8Length"),nw(this,"utf16Value"),nw(this,"utf8Value"),nw(this,"utf16OffsetToUtf8"),nw(this,"utf8OffsetToUtf16");let t=e.length,n=nS._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 s=new Uint8Array(n),o=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=o,u&&(i[n+1]=o),c<=127?a[o+0]=n:c<=2047?(a[o+0]=n,a[o+1]=n):c<=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)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,s=!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,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let nx=class e{constructor(t){if(nw(this,"id",++e.LAST_ID),nw(this,"_onigBinding"),nw(this,"content"),nw(this,"utf16Length"),nw(this,"utf8Length"),nw(this,"utf16OffsetToUtf8"),nw(this,"utf8OffsetToUtf16"),nw(this,"ptr"),!nC)throw new ng("Must invoke loadWasm first.");this._onigBinding=nC,this.content=t;let n=new nS(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=nC.omalloc(1e4)),e._sharedPtrInUse=!0,nC.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(nC)}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===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};nw(nx,"LAST_ID",0),nw(nx,"_sharedPtr",0),nw(nx,"_sharedPtrInUse",!1);
1class nA{constructor(e){if(nw(this,"_onigBinding"),nw(this,"_ptr"),!nC)throw new ng("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new nS(e[r]);t[r]=i.createString(nC),n[r]=i.utf8Length}let r=nC.omalloc(4*e.length);nC.HEAPU32.set(t,r/4);let i=nC.omalloc(4*e.length);nC.HEAPU32.set(n,i/4);let a=nC.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)nC.ofree(t[n]);nC.ofree(i),nC.ofree(r),0===a&&function(e){throw new ng(e.UTF8ToString(e.getLastOnigError()))}(nC),this._onigBinding=nC,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new nx(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(s[o++]),r=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}function nv(e){return i||(i=async function(){nC=await ny(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,s;(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?n=await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):n=await (s=n,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==nm&&nm.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array)?n=await nN(n)(t):n instanceof WebAssembly.Module?n=await nN(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await nN(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function nN(e){return t=>WebAssembly.instantiate(e,t)}async function nE(e){return e&&await nv(e),{createScanner:e=>new nA(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new nx(e)}}let nP=nr({langs:nd,themes:np,engine:()=>nE(Promise.all([n.e(7912),n.e(7370)]).then(n.bind(n,17370)))}),{codeToHtml:nI,codeToHast:nL,codeToTokens:nT,codeToTokensBase:n$,codeToTokensWithThemes:nR,getSingletonHighlighter:nM,getLastGrammarState:nG}=na(nP,{guessEmbeddedLanguages:tp});function nO(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let nB=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),nD=String.raw;function nF(e,t){if(null==e)throw Error(t??"Value expected");return e}let nU=nD`\[\^?`,nj=`c.? | C(?:-.?)?|${nD`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${nD`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${nD`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${nD`o\{[^\}]*\}?`}|${nD`\d{1,3}`}`,nW=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nH=RegExp(nD` 2 \\ (?: 3 ${nj} 4 | [gk]<[^>]*>? 5 | [gk]'[^']*'? 6 | . 7 ) 8 | \( (?: 9 \? (?: 10 [:=!>({] 11 | <[=!] 12 | <[^>]*> 13 | '[^']*' 14 | ~\|? 15 | #(?:[^)\\]|\\.?)* 16 | [^:)]*[:)] 17 )? 18 | \*[^\)]*\)? 19 )? 20 | (?:${nW.source})+ 21 | ${nU} 22 | . 23`.replace(/\s+/g,""),"gsu"),nq=RegExp(nD` 24 \\ (?: 25 ${nj} 26 | . 27 ) 28 | \[:(?:\^?\p{Alpha}+|\^):\] 29 | ${nU} 30 | && 31 | . 32`.replace(/\s+/g,""),"gsu");function nz(e,{inCharClass:t}){let n=e[1];if("c"===n||"C"===n)return function(e){let t="c"===e[1]?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return nQ(nO(t.toUpperCase())-64,e)}(e);if("dDhHsSwW".includes(n))return function(e){let t=e[1].toLowerCase();return nZ({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}(e);if(e.startsWith(nD`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
32if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return function(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return nZ("property",e,{value:r,negate:"P"===t&&!n||"p"===t&&!!n})}(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return nQ(nO(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===n||"x"===n)return nQ(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(n1.has(n))return nQ(n1.get(n),e);if(/\d/.test(n))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(nD`Incomplete escape "\"`);if("M"===n)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return nQ(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function nV(e,t){return{type:"Assertion",kind:e,raw:t}}function nX(e){return{type:"Backreference",raw:e}}function nQ(e,t){return{type:"Character",value:e,raw:t}}function nJ(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function nZ(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function nK(e,t,n={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:nF(n.flags),raw:t}}function nY(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}let n0=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),n1=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function n2(e){let t=null,n,r;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+i>1e5||a&&+a>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((n=+i)>(r=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n="+"===e[0]?1:0,r="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:n,max:r,raw:e}}function n8(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function n3(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}let n4=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function n5(e,t={}){var n;let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let r=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!"imxDPSWy".includes(r))throw Error(`Invalid flag "${r}"`);if("y"===r){if(!/^y{[gw]}/.test(e.slice(n)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[n+2]?"grapheme":"word",n+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[r]]=!0}return t}(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},s=[],o;for(nH.lastIndex=0;o=nH.exec(e);){let t=function(e,t,n,r){let[i,a]=n;if("["===n||"[^"===n){let e=function(e,t,n){let r=[nJ("^"===t[1],t)],i=1,a;for(nq.lastIndex=n;a=nq.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,r.push(nJ("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===r.at(-1).type)r.push(nQ(93,e));else if(i--,r.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return nz(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!nB.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return nZ("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:nQ(nO(e),e)}(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:nq.lastIndex||e.length}}(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:nV(n,n)};
32if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:{type:"Subroutine",raw:n}}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:nX(n)}}if("K"===a)return{token:nK("keep",n)};if("N"===a||"R"===a)return{token:nZ("newline",n,{negate:"N"===a})};if("O"===a)return{token:nZ("any",n)};if("X"===a)return{token:nZ("text_segment",n)};let e=nz(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:function(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(""===r)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[s,o,l]=a,c=n0.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if("string"==typeof s)throw Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(2===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if("number"==typeof o||!/^(?:[<>!=]=|[<>])$/.test(o))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${c}"`)}return{type:"NamedCallout",kind:c,tag:r??null,arguments:i?.split(",")??null,raw:e}}(n)};if("(?{"===n)throw Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(")"!==t[r])throw Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:function(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";let i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),a=n8(n),s=n8(r),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),nK("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,nY("group",e,{...(a||s)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:nY("group",n)};if("(?>"===n)return{token:nY("atomic",n)};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:nY("<"===n[2]?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:nY("capturing",n,{..."("!==n&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if("(?~|"===n)throw Error(`Unsupported absence function kind "${n}"`);return{token:nY("absence_repeater",n)}}throw"(?("===n?Error(`Unsupported conditional "${n}"`):Error(`Invalid or unsupported group option "${n}"`)}if(")"===n){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:n}}}if(e.getCurrentModX()){if("#"===n){let e=t.indexOf(` 33`,r);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return"."===n?{token:nZ("dot",n)}:"^"===n||"$"===n?{token:nV(e.singleline?({"^":nD`\A`,$:nD`\Z`})[n]:n,n)}:"|"===n?{token:{type:"Alternator",raw:n}}:nW.test(n)?{tokens:function(e){let t;let n=[],r=RegExp(nW,"gy");for(;t=r.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>
33+a&&e.endsWith("?")){r.lastIndex--,n.push(n2(e.slice(0,-1)));continue}}}n.push(n2(e))}return n}(n)}:{token:nQ(nO(n),n)}}(a,e,o[0],nH.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(nH.lastIndex=t.lastIndex)}let l=[],c=0;s.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++c:"("===e.raw&&l.push(e)}),c||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let u=c||l.length;return{tokens:s.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[nX(n)];let a=[],s=i.match(/^[0-7]+|\d/g);for(let e=0;e<s.length;e++){let t;let r=s[e];if(0===e&&"8"!==r&&"9"!==r){if((t=parseInt(r,8))>127)throw Error(nD`Octal encoded byte above 177 unsupported "${n}"`)}else t=nO(r);a.push(nQ(t,(0===e?"\\":"")+r))}return a}(e,u):e).flat(),flags:r}}(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(e,t)=>{let n=i.tokens[s.nextIndex];switch(s.parent=e,s.nextIndex++,n.type){case"Alternator":return n9();case"Assertion":return function({kind:e}){return n6(nF({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===nD`\B`||e===nD`\Y`})}(n);case"Backreference":return function({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i){if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`)}return t.hasNumberedRef=!0,n7(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);
33if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return n7(r)}return i(+r)}(n,s);case"Character":return rt(n.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,s=a.body.at(-1),o=r[t.nextIndex];if(!n.isCheckingRangeEnd&&s&&"CharacterClass"!==s.type&&"CharacterClassRange"!==s.type&&o&&"CharacterClassOpen"!==o.type&&"CharacterClassClose"!==o.type&&"CharacterClassIntersector"!==o.type){let e=i(a,{...n,isCheckingRangeEnd:!0});if("Character"===s.type&&"Character"===e.type)return a.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(s,e);throw Error("Invalid character class range")}return rt(nO("-"))}(0,s,t);case"CharacterClassOpen":return function({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],s=[rn()],o=rm(a);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)s.push(rn()),t.nextIndex++;else{let e=s.at(-1);e.body.push(i(e,n))}o=rm(r[t.nextIndex],a)}let l=rn({negate:e});return 1===s.length?l.body=s[0].body:(l.kind="intersection",l.body=s.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(n,s,t);case"CharacterSet":return function({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s}=r;if("property"===e){let r=rp(n);if(!nB.has(r)||s?.has(r))return rl(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s});e="posix",n=r}return"posix"===e?function(e,t){let n=!!t?.negate;if(!nB.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}(n,{negate:t}):rr(e,{negate:t})}(n,s);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:nF(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(n.kind,{flags:n.flags});case"GroupOpen":return function(e,t,n){var r,i;let{tokens:a,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:l,walk:c}=t,u=function({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":return function(e,t){if("repeater"!==e)throw Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:rc(void 0)}}("repeater");case"atomic":return ri({atomic:!0});case"capturing":return re(i,{name:n});case"group":return ri({flags:e});case"lookahead":case"lookbehind":return ra({behind:"lookbehind"===t,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}(e),d="AbsenceFunction"===u.type,h=rh(u),p=h&&u.negate;if("CapturingGroup"===u.type&&(s.push(u),u.name&&(r=u.name,i=[],o.has(r)||o.set(r,i),o.get(r)).push(u)),d&&n.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let m=rg(a[t.nextIndex]);for(;"GroupClose"!==m.type;){if("Alternator"===m.type)u.body.push(n9()),t.nextIndex++;else{let e=u.body.at(-1),t=c(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||h,isInNegLookbehind:n.isInNegLookbehind||p});if(e.body.push(t),(h||n.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||n.isInNegLookbehind){if(rd(t)||"CapturingGroup"===t.type)throw Error(e)}else if(rd(t)||rh(t)&&t.negate)throw Error(e)}}m=rg(a[t.nextIndex])}return t.nextIndex++,u}(n,s,t);case"NamedCallout":var r;return r=n.kind,{type:"NamedCallout",kind:r,tag:n.tag,arguments:n.arguments};case"Quantifier":return function({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!n4.has(a.type))throw Error("Quantifier requires a repeatable token");let s=rs(e,t,n,a);return i.body.pop(),s}(n,s);
33case"Subroutine":return function({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,(i=({"":e,"+":r+e,"-":r+1-e})[a.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let s=ro(i);return r.push(s),s}(n,s);default:throw Error(`Unexpected token type "${n.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},o=(n={type:"Flags",...i.flags},{type:"Regex",body:rc(void 0),flags:n}),l=o.body[0];for(;s.nextIndex<i.tokens.length;){let e=a(l,{});"Alternative"===e.type?(o.body.push(e),l=e):l.body.push(e)}let{capturingGroups:c,hasNumberedRef:u,namedGroupsByName:d,subroutines:h}=s;if(u&&d.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of h)if("number"==typeof e){if(e>c.length)throw Error("Subroutine uses a group number that's not defined");e&&(c[e-1].isSubroutined=!0)}else if(d.has(e)){if(d.get(e).length>1)throw Error(nD`Subroutine uses a duplicate group name "\g<${e}>"`);d.get(e)[0].isSubroutined=!0}else throw Error(nD`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function n9(e){return{type:"Alternative",body:ru(e?.body)}}function n6(e,t){let n={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(n.negate=!!t?.negate),n}function n7(e,t){let n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function re(e,t){var n;let r={name:void 0,isSubroutined:!1,...t};if(void 0!==r.name&&(n=r.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(n)))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:rc(t?.body)}}function rt(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function rn(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:ru(e?.body)}}function rr(e,t){let n=!!t?.negate,r={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(r.negate=n),"text_segment"!==e&&("newline"!==e||n)||(r.variableLength=!0),r}function ri(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:rc(e?.body)}}function ra(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:rc(e?.body)}}function rs(e,t,n,r){if(t>n)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function ro(e){return{type:"Subroutine",ref:e}}function rl(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(rp(e));if(!r){if(n.normalizeUnknownPropertyNames)r=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(nD`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function rc(e){if(void 0===e)e=[n9()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function ru(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function rd(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function rh(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function rp(e){return e.replace(/[- _]+/g,"").toLowerCase()}function rm(e,t){return nF(e,`${t?.type==="Character"&&93===t.value?"Empty":"Unclosed"} character class`)}function rg(e){return nF(e,"Unclosed group")}function rf(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,s=null,o=null,l=null){let c=0,u=!1,d={node:a,parent:s,key:o,container:l,root:e,remove(){rb(l).splice(Math.max(0,ry(o)+c),1),c--,u=!0},removeAllNextSiblings:()=>rb(l).splice(ry(o)+1),removeAllPrevSiblings(){let e=ry(o)+c;return c-=e,rb(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;l?l[Math.max(0,ry(o)+c)]=e:nF(s,"Can't replace root node")[o]=e,n&&i(e,s,o,l),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(rb(l).splice(Math.max(0,ry(o)+c),1,...e),c+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],s,ry(o)+n+t,l)}u=!0},skip(){u=!0}},{type:h}=a,p=t["*"],m=t[h],g="function"==typeof p?p:p?.enter,f="function"==typeof m?m:m?.enter;if(g?.(d,n),f?.(d,n),!u)switch(h){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":r(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subrout
33ine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":r(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${h}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),c}return i(e),e}function rb(e){if(!Array.isArray(e))throw Error("Container expected");return e}function ry(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let rk=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,r_=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function rw(e,t,n,r){let i=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],s=0,o="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===r_.DEFAULT==!s)){n instanceof Function?o+=n(t,{context:s?r_.CHAR_CLASS:r_.DEFAULT,negated:a[a.length-1]}):o+=n;continue}"["===e[0]?(s++,a.push("^"===e[1])):"]"===e&&s&&(s--,a.pop()),o+=e}return o}function rC(e,t,n){return!!function(e,t,n=0,r){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let s=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!r||r===r_.DEFAULT==!s))return i;"["===e?s++:"]"===e&&s&&s--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,n)}let rS=RegExp(String.raw`(?<noncapturingStart>${rk})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),rx=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,rA=RegExp(String.raw` 34\\(?: \d+ 35 | c[A-Za-z] 36 | [gk]<[^>]+> 37 | [pPu]\{[^\}]+\} 38 | u[A-Fa-f\d]{4} 39 | x[A-Fa-f\d]{2} 40 ) 41| \((?: \? (?: [:=!>] 42 | <(?:[=!]|[^>]+>) 43 | [A-Za-z\-]+: 44 | \(DEFINE\) 45 ))? 46| (?<qBase>${rx})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 47| \\?. 48`.replace(/\s+/g,""),"gsu"),rv=String.raw,rN=rv`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,rE=rv`\(\?R=(?<rDepth>[^\)]+)\)|${rN}`,rP=rv`\(\?<(?![=!])(?<captureName>[^>]+)>`,rI=rv`${rP}|(?<unnamed>\()(?!\?)`,rL=RegExp(rv`${rP}|${rE}|\(\?|\\?.`,"gsu"),rT="Cannot use multiple overlapping recursions";function r$(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e)<2||e>100)throw Error(t)}function rR(e,t,n,r,i,a,s){let o=new Set;r&&rw(e+t,rP,({groups:{captureName:e}})=>{o.add(e)},r_.DEFAULT);let l=[n,r?o:null,i,a,s];return`${e}${rM(`(?:${e}`,"forward",...l)}(?:)${rM(`${t})`,"backward",...l)}${t}`}function rM(e,t,n,r,i,a,s){let o=e=>"forward"===t?e+2:n-e+2-1,l="";for(let t=0;t<n;t++){let n=o(t);l+=rw(e,rv`${rI}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:o,backref:l}})=>{if(l&&r&&!r.has(l))return e;let c=`_$${n}`;if(o||t){let n=s+a.length+1;return a.push(n),function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(i,n),o?e:`(?<${t}${c}>`}return rv`\k<${l}${c}>`},r_.DEFAULT)}return l}function rG(e,t,n,r,i,a){if(e.size&&r){let s=0;rw(t,rI,()=>s++,r_.DEFAULT);let o=a-s+i,l=new Map;return e.forEach((e,t)=>{let i=(r-s*n)/n,a=s*n,c=t>o+s?t+r:t,u=[];for(let t of e)if(t<=o)u.push(t);else if(t>o+s+i)u.push(t+r);else if(t<=o+s)for(let e=0;e<=n;e++)u.push(t+s*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);l.set(c,u)}),l}return e}var rO=String.fromCodePoint,rB=String.raw,rD={flagGroups:(()=>{try{RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{RegExp("[[]]","v")}catch{return!1}return!0})()};function rF(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function rU(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}rD.bugFlagVLiteralHyphenIsRange=!!rD.unicodeSets&&(()=>{try{RegExp(rB`[\d\-a]`,"v")}catch{return!0}return!1})(),rD.bugNestedClassIgnoresNegation=rD.unicodeSets&&RegExp("[[^a]]","v").test("a");var rj={ES2025:2025,ES2024:2024,ES2018:2018},rW={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function rH(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");
48if(void 0!==e.target&&!rW[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=rD.flagGroups?"ES2025":rD.unicodeSets?"ES2024":"ES2018"),t}var rq=new Set([rO(304),rO(305)]),rz=rB`[\p{L}\p{M}\p{N}\p{Pc}]`;function rV(e){if(rq.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=rZ.get(n),a=rQ.get(n),s=rJ.get(n);return 1==[...r].length&&t.add(r),s&&t.add(s),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var rX=new Map(`C Other 49Cc Control cntrl 50Cf Format 51Cn Unassigned 52Co Private_Use 53Cs Surrogate 54L Letter 55LC Cased_Letter 56Ll Lowercase_Letter 57Lm Modifier_Letter 58Lo Other_Letter 59Lt Titlecase_Letter 60Lu Uppercase_Letter 61M Mark Combining_Mark 62Mc Spacing_Mark 63Me Enclosing_Mark 64Mn Nonspacing_Mark 65N Number 66Nd Decimal_Number digit 67Nl Letter_Number 68No Other_Number 69P Punctuation punct 70Pc Connector_Punctuation 71Pd Dash_Punctuation 72Pe Close_Punctuation 73Pf Final_Punctuation 74Pi Initial_Punctuation 75Po Other_Punctuation 76Ps Open_Punctuation 77S Symbol 78Sc Currency_Symbol 79Sk Modifier_Symbol 80Sm Math_Symbol 81So Other_Symbol 82Z Separator 83Zl Line_Separator 84Zp Paragraph_Separator 85Zs Space_Separator 86ASCII 87ASCII_Hex_Digit AHex 88Alphabetic Alpha 89Any 90Assigned 91Bidi_Control Bidi_C 92Bidi_Mirrored Bidi_M 93Case_Ignorable CI 94Cased 95Changes_When_Casefolded CWCF 96Changes_When_Casemapped CWCM 97Changes_When_Lowercased CWL 98Changes_When_NFKC_Casefolded CWKCF 99Changes_When_Titlecased CWT 100Changes_When_Uppercased CWU 101Dash 102Default_Ignorable_Code_Point DI 103Deprecated Dep 104Diacritic Dia 105Emoji 106Emoji_Component EComp 107Emoji_Modifier EMod 108Emoji_Modifier_Base EBase 109Emoji_Presentation EPres 110Extended_Pictographic ExtPict 111Extender Ext 112Grapheme_Base Gr_Base 113Grapheme_Extend Gr_Ext 114Hex_Digit Hex 115IDS_Binary_Operator IDSB 116IDS_Trinary_Operator IDST 117ID_Continue IDC 118ID_Start IDS 119Ideographic Ideo 120Join_Control Join_C 121Logical_Order_Exception LOE 122Lowercase Lower 123Math 124Noncharacter_Code_Point NChar 125Pattern_Syntax Pat_Syn 126Pattern_White_Space Pat_WS 127Quotation_Mark QMark 128Radical 129Regional_Indicator RI 130Sentence_Terminal STerm
131Soft_Dotted SD 132Terminal_Punctuation Term 133Unified_Ideograph UIdeo 134Uppercase Upper 135Variation_Selector VS 136White_Space space 137XID_Continue XIDC 138XID_Start XIDS`.split(/\s/).map(e=>[rp(e),e])),rQ=new Map([["s",rO(383)],[rO(383),"s"]]),rJ=new Map([[rO(223),rO(7838)],[rO(107),rO(8490)],[rO(229),rO(8491)],[rO(969),rO(8486)]]),rZ=new Map([rY(453),rY(456),rY(459),rY(498),...r0(8072,8079),...r0(8088,8095),...r0(8104,8111),rY(8124),rY(8140),rY(8188)]),rK=new Map([["alnum",rB`[\p{Alpha}\p{Nd}]`],["alpha",rB`\p{Alpha}`],["ascii",rB`\p{ASCII}`],["blank",rB`[\p{Zs}\t]`],["cntrl",rB`\p{Cc}`],["digit",rB`\p{Nd}`],["graph",rB`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",rB`\p{Lower}`],["print",rB`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",rB`[\p{P}\p{S}]`],["space",rB`\p{space}`],["upper",rB`\p{Upper}`],["word",rB`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",rB`\p{AHex}`]]);function rY(e){let t=rO(e);return[t.toLowerCase(),t]}function r0(e,t){return(function(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n})(e,t).map(e=>rY(e))}var r1=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),r2={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if("repeater"===i){let e=ri();e.body[0].body.push(ra({negate:!0,body:r}),rl("Any"));let i=ri();i.body[0].body.push(rs("greedy",0,1/0,e)),n(ia(i,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++)rU(r,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=r6(t.get(e));if(n){let t=ri({flags:n});t.body[0].body=e.body,e.body=[ia(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:s},o){let{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=o;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)s(ia(ra({body:[n9({body:[n6("string_end")]}),n9({body:[rt(10)]})]}),t));else if("line_start"===l)s(ia(it(rB`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l){if(h.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&function(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}(e))s(ia(ra({negate:!0}),t));else if(d)throw Error(rB`Uses "\G" in a way that requires a subclass`);else s(ii(n6("string_start"),t)),o.strategy="clip_search"}}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)s(ia(it(rB`(?=\n?\z)`),t));else if("word_boundary"===l){if(!p&&!u){let e=`(?:(?<=${rz})(?!${rz})|(?<!${rz})(?=${rz}))`,n=`(?:(?<=${rz})(?=${rz})|(?<!${rz})(?!${rz}))`;s(ia(it(c?n:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||ie(n)||(n=r9(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!ie(r)&&(r=r9(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(ia(rn({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:s,wordIsAscii:o}){let{kind:l,negate:c,value:u}=e;if(a&&("digit"===l||"digit"===u)){n(ii(rr("digit",{negate:c}),t));return}if(s&&("space"===l||"space"===u)){n(ia(ir(it("[ -\r ]"),c),t));return}if(o&&("word"===l||"word"===u)){n(ii(rr("word",{negate:c}),t));return}if("any"===l)n(ii(rl("Any"),t));else if("digit"===l)n(ii(rl("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===r)throw Error(rB`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=rB`\p{RI}{2}|${e}(?:\u200D${e})*`;n(ia(it(rB`(?>\r\n|${i?rB`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)n(ii(rl("AHex",{negate:c}),t));else if("newline"===l)n(ia(it(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l){if(i||"graph"!==u&&"print"!==u)n(ia(ir(it(rK.get(u)),c),t));else{if("strict"===r)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${rO(e.codePointAt(0)-1)}${rO(e.codePointAt(2)+1)}-\u{10FFFF}`),n(ia(it(`[${e}]`),t))}}else if("property"===l)rX.has(rp(u))||(e.key="sc");
138else if("space"===l)n(ii(rl("space",{negate:c}),t));else if("word"===l)n(ia(ir(it(rz),c),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:s}){let{kind:o,flags:l}=e;if("flags"===o){if(l.enable||l.disable){let e=ri({flags:l});e.body[0].body=s(),i(ia(e,t),{traverse:!0})}else r()}else if("keep"===o){let e=n.body[0],r=1===n.body.length&&n3(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(rB`Uses "\K" in a way that's unsupported`);let s=ra({behind:!0});s.body[0].body=a(),i(ia(s,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if("fail"===r)n(ia(ra({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=ri();t.body[0].body.push(e.body),e.body=ia(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let n=t.find(e=>"search_start"===e.kind||function(e,t){let n={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&n3(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!n)return null;if("search_start"===n.kind)return n;if("LookaroundAssertion"===n.type)return n.body[0].body[0];if("CapturingGroup"===n.type||"Group"===n.type){let t=[];for(let r of n.body){let n=e(r.body);if(!n)return null;Array.isArray(n)?t.push(...n):t.push(n)}return t}return null}(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if("strict"===t&&n&&r)throw Error(rB`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||ie(n)||(n=r9(n,t),e.ref=n)}},r8={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){let c=i.get(e);if(c&&o.has(e.number)){let r=ii(r5(e.number),t);l.set(r,o.get(e.number)),n(r);return}o.set(e.number,e),s.set(e.number,[]),e.name&&rU(s,e.name,[]);let u=s.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(c===n.node||c&&c===n.origin||e===n.origin){u.splice(t,1);break}}if(s.get(e.number).push({node:e,origin:c}),e.name&&s.get(e.name).push({node:e,origin:c}),e.name){let t=rU(a,e.name,new Map),n=!1;if(c)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=rF(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&("CapturingGroup"!==n.type||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}
138let s=r.subroutineRefMap.get(a),o=0===a,l=o?r5(0):function e(t,n,r,i){let a=Array.isArray(t)?[]:{};for(let[s,o]of Object.entries(t))"parent"===s?a.parent=Array.isArray(r)?i:r:o&&"object"==typeof o?a[s]=e(o,n,a,r):("type"===s&&"CapturingGroup"===o&&n.set(a,n.get(t)??t),a[s]=o);return a}(s,r.groupOriginByCopy,null),c=l;if(!o){var u;let e=r6(function(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}(s,e=>"Group"===e.type&&!!e.flags)),t=e?rF(r.globalFlags,e):r.globalFlags;u=r.currentFlags,t.dotAll===u.dotAll&&t.ignoreCase===u.ignoreCase||(c=ri({flags:function({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),e&&t||(n.disable={},e||(n.disable.dotAll=!0),t||(n.disable.ignoreCase=!0)),n}(t)})).body[0].body.push(l)}n(ia(c,t),{traverse:!o})}},r3={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;for(let t of r7(n.parent)){if(t===n)break;if(t===e||function e(t,n){for(let r of r7(t)??[])if(r===n||e(r,n))return!0;return!1}(t,e))return!0}}while(n=n.parent);throw Error("Unexpected path")})(t,e));i.length?i.length>1?n(ia(ri({atomic:!0,body:i.reverse().map(e=>n9({body:[n7(e.number)]}
138))}),t)):e.ref=i[0].number:n(ia(ra({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=re();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function r4(e){rf(e,{"*"({node:e,parent:t}){e.parent=t}})}function r5(e){let t=ro(e);return t.isRecursive=!0,t}function r9(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function r6(e){let t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable)?n:null}function r7(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function ie(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function it(e,t){let n=n5(e,{...t,unicodePropertyMap:rX}).body;return n.length>1||n[0].body.length>1?ri({body:n}):n[0].body[0]}function ir(e,t){return e.negate=t,e}function ii(e,t){return e.parent=t,e}function ia(e,t){return r4(e),e.parent=t,e}var is={"*":{enter({node:e},t){if(ib(e)){let n=t.getCurrentModI();t.pushModI(e.flags?rF({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){ib(e)&&t.popModI()}}
138,Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ip(rO(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),im(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&r1.has(e.value)&&t.setHasCasedChar()}},io={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?rB`\B`:rB`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,a>o.number&&(s.transferTo=o.number)),t.captureMap.set(a,s),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){let n=rO(e),r=ig(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ip(n)){let e=rV(n);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:s}=e;if("intersection"===r&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");rD.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(iy)&&(s=[rt(45),...s.filter(e=>!iy(e))]);let o=()=>`[${i?"^":""}${s.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||rD.bugNestedClassIgnoresNegation)&&!i){let t=s.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let r=ri(),i=r.body[0];return r.parent=a,i.parent=r,s=s.filter(e=>!t.includes(e)),e.body=s,s.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=n9({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=o();return t.inCharClass=!1,r}let l=s[0];if("union"===r&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(rD.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===s.length&&"CharacterClassRange"!==l.type))return s.map(n).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=ig(n,i),s=ig(r,i),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n})(im(e)).forEach(e=>{o.add(Array.isArray(e)?`${ig(e[0],i)}-${ig(e[1],i)}`:ig(e,i))}),`${a}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":rB`[^\n]`;if("digit"===e)return t?rB`\D`:rB`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&r1.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?rB`\P`:rB`\p`}{${r?`${r}=`:""}${n}}`}if("word"===e)return t?rB`\W`:rB`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},i,a){let s=i.currentFlags;n&&(i.currentFlags=rF(s,n));let o=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===r.type||e||i.useFlagMods&&n?`(?${function(e,t,n){if(e)return">";let r="";if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(n?"-":"")+(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")}return`${r}:`}(e,n,i.useFlagMods)}${o})`:o;return i.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:n},r,i){let a=`${"lookahead"===t?"":"<"}${n?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,n)=>n(e.body)+function({kind:e,max:t,min:n}){return(n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return 0===t?`(?R=${r})`:rB`\g<${t}&R=${r}>`}},il=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ic=new Set(["-","\\","]","^","["]),iu=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),id=new Map([[9,rB`\t`],[10,rB`\n`],[11,rB`\v`],[12,rB`\f`],[13,rB`\r`],[8232,rB`\u2028`],[8233,rB`\u2029`],[65279,rB`\uFEFF`]]),ih=/^\p{Cased}$/u;function ip(e){return ih.test(e)}function im(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(65535===i||i>=131071)||65536===r&&i>=131071)return a;for(let e=r;e<=i;e++){let t=rO(e);if(!ip(t))continue;let s=rV(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(s.length&&(a.push(...s),n))break}return a}function ig(e,{escDigit:t,inCharClass:n,useFlagV:r}){var i;if(id.has(e))return id.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=rO(e);return((n?r?iu:ic:il).has(a)?"\\":"")+a}function ib({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function iy({type:e,value:t}){return"Character"===e&&45===t}var ik=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){let i=!!r?.lazyCompile;
138if(t instanceof RegExp){if(r)throw Error("Cannot provide options when copying a regexp");super(t,n),this.#n=t.source,t instanceof e&&(this.#e=t.#e,this.#r=t.#r,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#n=t,this.#e=function(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)rU(n,t,{}).transferTo=e;return n}(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===this.#i&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(function(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let n=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;let r=[...n];n.length=1,this.hasIndices&&(t=[...n.indices],n.indices.length=1);let i=[0];for(let e=1;e<r.length;e++){let{hidden:a,transferTo:s}=this.#e.get(e)??{};if(a?i.push(null):(i.push(n.length),n.push(r[e]),this.hasIndices&&n.indices.push(t[e])),s&&void 0!==r[e]){let a=i[s];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(n[a]=r[e],this.hasIndices&&(n.indices[a]=t[e]),n.groups){this.#r||(this.#r=function(e){let t;let n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,i=0,a=0;for(;t=n.exec(e);){let{0:e,groups:{capture:n,name:s}}=t;"["===e?i++:i?"]"===e&&i--:n&&(a++,s&&r.set(a,s))}return r}(this.source));let i=this.#r.get(s);i&&(n.groups[i]=r[e],this.hasIndices&&(n.indices.groups[i]=t[e]))}}}return n}};class i_{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:4294967295,end:4294967295,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let s=n.exec(r);if(!s)continue;if(s.index===t)return a(e,s,0);i.push([e,s,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}}function iw(e,t){return function(e,t){let n=function(e,t){let n=rH(t),r=function(e,t){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};r4(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:rj[n.bestEffortTarget]>=rj.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};rf(e,r2,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return rf(e,r8,a),rf(e,r3,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}(n5(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:rX}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=function(e,t){let n=rH(t),r=rj[n.target]>=rj.ES2024,i=rj[n.target]>=rj.ES2025,a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!i){let t=[e.flags.ignoreCase];rf(e,is,{getCurrentModI:()=>
138t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?s=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},c=e,u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=c,c=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(io[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&rU(h._captureTransfers,e.transferTo,[]).push(t)}),h}(r,n),a=function(e,t){let n;let{hiddenCaptures:r,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(rE,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if("plugin"===i&&rC(e,rv`\(\?\(DEFINE\)`,r_.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let s=[],o=rC(e,rv`\\[1-9]`,r_.DEFAULT),l=new Map,c=[],u=!1,d=0,h=0;for(rL.lastIndex=0;n=rL.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:g,gRDepth:f}}=n;if("["===t)d++;else if(d)"]"===t&&d--;else{if(m){if(r$(m),u)throw Error(rT);if(o)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,n.index),l=e.slice(rL.lastIndex);if(rC(l,rE,r_.DEFAULT))throw Error(rT);let c=+m-1;e=rR(t,l,c,!1,r,s,h),a=rG(a,t,c,s.length,0,h);break}if(g){r$(f);let d=!1;for(let e of c)if(e.name===g||e.num===+g){if(d=!0,e.hasRecursedWithin)throw Error(rT);break}if(!d)throw Error(rv`Recursive \g cannot be used outside the referenced group "${"external"===i?g:rv`\g<${g}&R=${f}>`}"`);let p=l.get(g),m=function(e,t){let n;let r=/\\?./gsu;r.lastIndex=t;let i=e.length,a=0,s=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)s++;else if(")"===e&&!--s){i=n.index;break}}return e.slice(t,i)}(e,p);if(o&&rC(m,rv`${rP}|\((?!\?)`,r_.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let b=e.slice(p,n.index),y=m.slice(b.length+t.length),k=s.length,_=+f-1,w=rR(b,y,_,!0,r,s,h);a=rG(a,b,_,s.length-k,k,h);let C=e.slice(0,p),S=e.slice(p+m.length);e=`${C}${w}${S}`,rL.lastIndex+=w.length-t.length-b.length-y.length,c.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)h++,l.set(String(h),rL.lastIndex),l.set(p,rL.lastIndex),c.push({num:h,name:p});else if("("===t[0]){let e="("===t;e&&(h++,l.set(String(h),rL.lastIndex)),c.push(e?{num:h}:{})}else")"===t&&c.pop()}}return r.push(...s),{pattern:e,captureTransfers:a,hiddenCaptures:r}}(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=function(e,t){let n;let r=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};let a="(?:(?=(",s=[0],o=[],l=0,c=0,u=NaN;do{let t;n=!1;let d=0,h=0,p=!1;for(rS.lastIndex=Number.isNaN(u)?0:u+a.length;t=rS.exec(e);){let{0:m,index:g,groups:{capturingStart:f,noncapturingStart:b}}=t;if("["===m)d++;else if(d)"]"===m&&d--;else if("(?>"!==m||p){if(p&&b)h++;else if(f)p?h++:(l++,s.push(l+c));else if(")"===m&&p){if(!h){let t=l+ ++c;if(e=`${e.slice(0,u)}${a}${e.slice(u+3,g)}))<$$${t}>)${e.slice(g+1)}`,n=!0,o.push(t),!function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(r,t),i.size){let e=new Map;i.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),i=e}break}h--}}else u=g,p=!0}}while(n);return r.push(...o),{pattern:e=rw(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>s.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${s[n]}`}return`\\${n}`},r_.DEFAULT),captureTransfers:i,hiddenCaptures:r}}(function(e){let t;if(!RegExp(`${rx}\\+`).test(e))return{pattern:e};let n=[],r=null,i=null,a="",s=0;for(rA.lastIndex=0;t=rA.exec(e);){let{0:c,index:u,groups:{qBase:d,qMod:h,invalidQ:p}}=t;if("["===c)s||(i=u),s++;else if("]"===c)s?s--:i=null;
138else if(!s){if("+"===h&&a&&!a.startsWith("(")){if(p)throw Error(`Invalid quantifier "${c}"`);let t=-1;if(/^\{\d+\}$/.test(d)){var o,l;o=e,l=u+d.length,e=o.slice(0,l)+""+o.slice(l+h.length)}else{if(")"===a||"]"===a){let t=")"===a?r:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,u)}${d})${e.slice(u+c.length)}`}else e=`${e.slice(0,u-a.length)}(?>${a}${d})${e.slice(u+c.length)}`;t+=4}rA.lastIndex+=t}else"("===c[0]?n.push(u):")"===c&&(r=n.length?n.pop():null)}a=c}return{pattern:e}}(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),o={pattern:s.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=s.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(s.captureTransfers),i=r._strategy,a=o.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(o.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return o}(e,t);return n.options?new ik(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function iC(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>iw(e,{target:t.target}),{createScanner:e=>new i_(e,t),createString:e=>({content:e})}}}}]); 139//# sourceMappingURL=519.189e663215302001.js.map
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.