1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[49344],{93775:function(e,t,r){var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var r=t.defaultOrigin,o=void 0===r?"":r,l=t.allowedLinkPrefixes,c=void 0===l?[]:l,u=t.allowedImagePrefixes,d=void 0===u?[]:u,h=t.components,p=i(t,["defaultOrigin","allowedLinkPrefixes","allowedImagePrefixes","components"]),m=c.length&&!c.every(function(e){return"*"===e}),g=d.length&&!d.every(function(e){return"*"===e});if(!o&&(m||g))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");var f=function(e){if("string"!=typeof e)return null;try{var t=new URL(e);return t}catch(r){if(o)try{var t=new URL(e,o);return t}catch(e){}return null}},b=function(e){return"string"==typeof e&&e.startsWith("/")},y=function(e,t){if(!e||!f(e))return null;if(t.includes("*")){var r=b(e),n=f(e);return n?r?n.pathname+n.search+n.hash:n.href:null}var i=b(e),a=f(e);return a&&t.some(function(e){var t=f(e);return!!t&&t.origin===a.origin&&a.href.startsWith(t.href)})?i?a.pathname+a.search+a.hash:a.href:null},k=n(n({},h),{a:function(e){var t=e.href,r=e.children,o=e.node,l=i(e,["href","children","node"]),u=y(t,c);return null!==u?(null==h?void 0:h.a)?(0,s.createElement)(h.a,n({href:u,children:r,node:o,target:"_blank",rel:"noopener noreferrer"},l)):(0,a.jsx)("a",n({href:u},l,{target:"_blank",rel:"noopener noreferrer",children:r})):(0,a.jsxs)("span",{className:"text-gray-500",title:"Blocked URL: ".concat(t),children:[r," [blocked]"]})},img:function(e){var t=e.src,r=e.alt,o=e.node,l=i(e,["src","alt","node"]),c=y(t,d);return null!==c?(null==h?void 0:h.img)?(0,s.createElement)(h.img,n({src:c,alt:r,node:o},l)):(0,a.jsx)("img",n({src:c,alt:r},l)):(0,a.jsxs)("span",{className:"inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",children:["[Image blocked: ",r||"No description","]"]})}}),w=n(n({},p),{components:k});return(0,s.createElement)(e,w)}};var a=r(57437),s=r(2265)},49344:function(e,t,r){let n,i;r.d(t,{q:function(){return s3}});var a,s,o=r(2265),l=r(72181),c=r(23037),u=r(37630),d=r(81315);r(2446);var h=r(93775);let p=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),g=e=>{let t=m(e);return t.charAt(0).toUpperCase()+t.slice(1)},f=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},b=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var y={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let k=(0,o.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:c,...u}=e;return(0,o.createElement)("svg",{ref:t,...y,width:n,height:n,stroke:r,strokeWidth:a?24*Number(i)/Number(n):i,className:f("lucide",s),...!l&&!b(u)&&{"aria-hidden":"true"},...u},[...c.map(e=>{let[t,r]=e;return(0,o.createElement)(t,r)}),...Array.isArray(l)?l:[l]])}),w=(e,t)=>{let r=(0,o.forwardRef)((r,n)=>{let{className:i,...a}=r;return(0,o.createElement)(k,{ref:n,iconNode:t,className:f("lucide-".concat(p(g(e))),"lucide-".concat(e),i),...a})});return r.displayName=g(e),r},x=w("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),_=w("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}
1]]),v=w("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);class C extends Error{constructor(e){super(e),this.name="ShikiError"}}var S=r(40257);function N(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var A=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,$=class{static hasCaptures(e){return null!==e&&(A.lastIndex=0,A.test(e))}static replaceCaptures(e,t,r){return e.replace(A,(e,n,i,a)=>{let s=r[parseInt(n||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 E(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n<r;n++){var i,a;let r=(i=e[n])<(a=t[n])?-1:i>a?1:0;if(0!==r)return r}return 0}return r-n}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 I(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var T=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}},L=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=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,r=e.length;t<r;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)&&(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(),r[n++]=new M(c,u,e,s,o,l)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,n;let i=(r=e.scope)<(n=t.scope)?-1:r>n?1:0;return 0!==i||0!==(i=E(e.parentScopes,t.parentScopes))?i:e.index-t.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(i=t.background)}let a=new G(t),s=new j(r,a.getId(n),a.getId(i)),o=new D(new B(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];o.insert(0,r.scope,r.parentScopes,r.fontStyle,a.getId(r.foreground),a.getId(r.background))}return new L(a,s,o)}(e,t)}_cachedMatchRoot=new T(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,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var r,n;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(r=e.scopeName,!((n=a)===r||r.startsWith(n)&&"."===r[n.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new j(r.fontStyle,r.foreground,r.background):null}},R=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new e(r,t[n]);return r}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=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}},j=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}},M=class{constructor(e,t,r,n,i,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=a}},O=((a=O||{})[a.NotSet=-1]="NotSet",a[a.None=0]="None",a[a.Italic=1]="Italic",a[a.Bold=2]="Bold",a[a.Underline=4]="Underline",a[a.Strikethrough=8]="Strikethrough",a),G=class{_isFrozen;_lastColorId;
1_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,r=e.length;t<r;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)}},z=Object.freeze([]),B=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,n,i){this.scopeDepth=e,this.parentScopes=t||z,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},D=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length)&&!(n>=t.parentScopes.length);){let i=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==i)return i;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,i,a,s){let o,l,c;if(""===r){this._doInsertHere(t,n,i,a,s);return}let u=r.indexOf(".");-1===u?(o=r,l=""):(o=r.substring(0,u),l=r.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),B.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,n,i,a,s)}_doInsertHere(e,t,r,n,i){if(null===t){this._mainRule.acceptOverwrite(e,r,n,i);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===E(s.parentScopes,t)){s.acceptOverwrite(e,r,n,i);return}}-1===r&&(r=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new B(e,t,r,n,i))}},U=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),n=e.getTokenType(t);console.log({languageId:r,tokenType:n,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,r,n,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!==r&&(l=r),8!==n&&(c=n),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 F(e,t){let r,n;let i=[],a=(n=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!n)return null;let t=n[0];return n=r.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(q(s)){let e=[];do e.push(s),s=a.next();while(q(s));return r=>t(e,r)}return null}function l(){let e=[],t=o();for(;t;)e.push(t),t=o();return t=>e.every(e=>e(t))}}function q(e){return!!e&&!!e.match(/[\w\.:]+/)}var W=((s=W||{})[s.None=0]="None",s[s.NotBeginString=1]="NotBeginString",s[s.NotEndString=2]="NotEndString",s[s.NotBeginPosition=4]="NotBeginPosition",s[s.DebugCall=8]="DebugCall",s);function H(e){"function"==typeof e.dispose&&e.dispose()}var V=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Z=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Q=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))}},X=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new V(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Q;for(let r of e)!function(e,t,r,n){let i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=r.lookup(t);e instanceof V?K({baseGrammar:a,selfGrammar:i},n):J(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new V(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof V){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function J(e,t,r){t.repository&&t.repository[e]&&Y([t.repository[e]],t,r)}function K(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Y(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Y(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Y(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?N({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&Y(n.patterns,{...t,repository:e},r);let i=n.include;if(!i)continue;let a=ea(i);switch(a.kind){case 0:K({...t,selfGrammar:t.baseGrammar},r);break;case 1:K(t,r);break;case 2:J(a.ruleName,{...t,repository:e},r);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 n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?J(a.ruleName,n,r):K(n,r)}else 4===a.kind?r.add(new Z(a.scopeName,a.ruleName)):r.add(new V(a.scopeName))}}}var ee=class{kind=0},et=class{kind=1},er=class{constructor(e){this.ruleName=e}kind=2},en=class{constructor(e){this.scopeName=e}kind=3},ei=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function ea(e){if("$base"===e)return new ee;if("$self"===e)return new et;let t=e.indexOf("#");return -1===t?new en(e):0===t?new er(e.substring(1)):new ei(e.substring(0,t),e.substring(t+1))}var es=/\\(\d+)/,eo=/\\(\d+)/g;Symbol("RuleId");var el=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=$.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=$.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+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?$.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?$.replaceCaptures(this._contentName,e,t):this._contentName}},ec=class extends el{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},eu=class extends el{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new eg(n,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,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ef,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ed=class extends el{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),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 r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ef,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eh=class extends el{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,a,s,o,l,c){super(e,t,r,n),this._begin=new eg(i,this.id),this.beginCaptures=a,this._end=new eg(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,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new ef,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}},ep=class extends el{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,a,s,o,l){super(e,t,r,n),this._begin=new eg(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=ne
1w eg(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,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new ef,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,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ef,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},em=class e{static createCaptureRule(e,t,r,n,i){return e.registerRule(e=>new ec(t,e,r,n,i))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new eu(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=N({},n,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new ed(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,r,n))}return t.while?new ep(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new eh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){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],r,n)),i[s]=e.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,r,n){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=ea(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(n[s.include],r,n);break;case 2:let i=n[t.ruleName];i&&(o=e.getCompiledRuleId(i,r,n));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=r.getExternalGrammar(a,n);if(c){if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,r,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,r,c.repository)}}}else o=e.getCompiledRuleId(s,r,n);if(-1!==o){let e=r.getRule(o),t=!1;if((e instanceof ed||e instanceof eh||e instanceof ep)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},eg=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,r=0,n=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(n.push(e.substring(r,a)),n.push("$(?!\\n)(?<!\\n)"),r=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===r?this.source=e:(n.push(e.substring(r,t)),this.source=n.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=es.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 r=t.map(t=>e.substring(t.start,t.end));return eo.lastIndex=0,this.source.replace(eo,(e,t)=>I(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n;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++)r=this.source.charAt(e),i[e]=r,a[e]=r,s[e]=r,o[e]=r,"\\"===r&&e+1<t&&("A"===(n=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",s[e+1]="A",o[e+1]="A"):"G"===n?(i[e+1]="ï¿¿",a[e+1]="G",s[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=n,a[e+1]=n,s[e+1]=n,o[e+1]=n),e
1++);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}},ef=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(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 eb(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){return new eb(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},eb=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},ey=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ek=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ey(e,8),this._embeddedLanguagesMatcher=new ew(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 ey(0,0);_getBasicScopeAttributes=new T(e=>new ey(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[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/},ew=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])=>I(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!==S&&S.env.VSCODE_TEXTMATE_DEBUG;var ex=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function e_(e,t,r,n,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,r,n,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let r=t.getRule(e);r instanceof ep&&o.push({rule:r,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=r,d=n===s,{ruleScanner:l.compileWhileAG(e,c,u,d),findOptions:0}),m=o.findNextMatchSync(t,n,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),eC(e,t,r,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>n&&(n=m.captureIndices[0].end,r=!1))}else{i=h.stack.pop();break}}
1return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}(e,t,r,n,i,a);i=s.stack,n=s.linePos,r=s.isFirstLine,u=s.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new ex(i,!0);!function(){let s=function(e,t,r,n,i,a){let s=function(e,t,r,n,i,a){let{ruleScanner:s,findOptions:o}=ev(i.getRule(e),e,i.endRule,r,n===a),l=s.findNextMatchSync(t,n,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,n,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,r,n,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}=ev(t.getRule(h.ruleId),t,null,n,i===s),g=p.findNextMatchSync(r,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,r,n,i,a);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,r,n,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>n;if(-1===d){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),eC(e,t,r,i,a,s.endCaptures,o),a.produce(i,o[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!h&&d.getEnterPos()===n){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,n,u,o[0].end===l,null,g,g),s instanceof eh){eC(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),d=g.pushAttributed(n,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 ep){eC(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),d=g.pushAttributed(n,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(eC(e,t,r,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>n&&(n=o[0].end,r=!1)}()}return new ex(i,!1)}function ev(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function eC(e,t,r,n,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(n,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=n.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),h=n.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,d.end));e_(e,p,r&&0===d.start,d.start,h,i,!1,0),H(p);continue}let h=l.getName(o,s);if(null!==h){let t=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(h,e);c.push(new eS(t,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var eS=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eN(e,t,r,n,i){let a=F(t,eA),s=em.getCompiledRuleId(r,n,i.repository);for(let r of a)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:i,priority:r.priority})}function eA(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let n=r;n<t.length;n++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}(t[n],e))return r=n+1,!0;return!1})}var e$=class{constructor(e,t,r,n,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new ek(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=eE(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of F(e,eA))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,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let n=r.injections;if(n)for(let t in n)eN(e,t,n[t],this,r);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&eN(e,t,r,this,r)}})}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,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=eE(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let i;if(-1===this._rootId&&(this._rootId=em.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eI.NULL)i=!1,t.reset();else{let e;i=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=U.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eP.createRootAndLookUpScopeName(s,a,this):eP.createRoot("unknown",a),t=new eI(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new eL(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=e_(this,a,i,0,t,o,!0,n);return H(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eE(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=e(t[n]);return r}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let r={};for(let n in t)r[n]=e(t[n]);return r}(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,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(let t of r)n=new e(n,i=R.push(i,t.scopeNames),t.encodedTokenAttributes);return n}static createRoot(t,r){return new e(null,new R(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let i=n.getMetadataForScope(t),a=new R(null,t),s=n.themeProvider.themeMatch(a),o=e.mergeAttributes(r,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,r){let n=-1,i=0,a=0;return null!==r&&(n=r.fontStyle,i=r.foregroundId,a=r.backgroundId),U.set(e,t.languageId,t.tokenType,null,n,i,a)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let n=t.split(/ /g),i=this;for(let t of n)i=e._pushAttributed(i,t,r);return i}static _pushAttributed(t,r,n){let i=n.getMetadataForScope(r),a=t.scopePath.push(r),s=n.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=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},eI=class e{constructor(e,t,r,n,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=r,this._anchorPos=n}_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,r,n,i,a,s,o){return new e(this,t,r,n,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,r){let n=eP.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,eP.fromExtension(n,r.contentNameScopesList))}},eT=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):F(e,eA).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>F(e,eA).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}},eL=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,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 r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!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)&&(r=U.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=U.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),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 r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},eR=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,r,n,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new e$(e,a,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},ej=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eR(L.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(L.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new eT(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,i){let a=new X(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,n,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 r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,i)}},eM=eI.NULL,eO=r(60638),eG=r(68378),ez=r(70402);let eB=/["&'<>`]/g,eD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eU=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eF=/[|\\{}()[\]^$+*?.]/g,eq=new WeakMap,eW=/[\dA-Fa-f]/,eH=/\d/,eV=["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"],eZ={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:"â¬"},eQ=["cent","copy","divide","gt","lt","not","para","times"],eX={}.hasOwnProperty,eJ={};for(n in eZ)eX.call(eZ,n)&&(eJ[eZ[n]]=n);let eK=/[^\dA-Za-z]/;function eY(e,t,r){let n,i=function(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!eW.test(String.fromCharCode(t))?n:n+";"}(e,t,r.omitOptionalSemicolons);if((r.useNamedReferences||r.useShortestReferences)&&(n=function(e,t,r,n){let i=String.fromCharCode(e);if(eX.call(eJ,i)){let e=eJ[i],a="&"+e;return r&&eV.includes(e)&&!eQ.includes(e)&&(!n||t&&61!==t&&eK.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let n=function(e,t,r){let n="&#"+String(e);return r&&t&&!eH.test(String.fromCharCode(t))?n:n+";"}(e,t,r.omitOptionalSemicolons);n.length<i.length&&(i=n)}return n&&(!r.useShortestReferences||n.length<i.length)?n:i}function e0(e,t){return function(e,t){var r;let n;if(e=e.replace(t.subset?(r=t.subset,(n=eq.get(r))||(n=function(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(eF,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eq.set(r,n)),n):eB,i),t.subset||t.escapeOnly)return e;return e.replace(eD,function(e,r,n){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)}).replace(eU,i);function i(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}(e,Object.assign({format:eY},t))}let e1=/^>|^->|<!--|-->|--!>|<!-$/g,e2=[">"],e5=["<",">"];var e8=r(5275),e3=r(10311),e6=r(93906),e4=r(92295),e9=r(28711);let e7=tr(1),te=tr(-1),tt=[];function tr(e){return function(t,r,n){let i=t?t.children:tt,a=(r||0)+e,s=i[a];if(!n)for(;s&&(0,e9.Q)(s);)a+=e,s=i[a];return s}}let tn={}.hasOwnProperty;function ti(e){return function(t,r,n){return tn.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let ta=ti({body:function(e,t,r){let n=e7(r,t);return!n||"comment"!==n.type},caption:ts,colgroup:ts,dd:function(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){let n=e7(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:ts,html:function(e,t,r){let n=e7(r,t);return!n||"comment"!==n.type},li:function(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){let n=e7(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||!("element"===r.type&&("a"===r.tagName||"audio"===r.tagName||"del"===r.tagName||"ins"===r.tagName||"map"===r.tagName||"noscript"===r.tagName||"video"===r.tagName))},rp:to,rt:to,tbody:function(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:tl,tfoot:function(e,t,r){return!e7(r,t)},th:tl,thead:function(e,t,r){let n=e7(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function ts(e,t,r){let n=e7(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,e9.Q)(n.value.charAt(0)))}function to(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function tl(e,t,r){let n=e7(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let tc=ti({body:function(e){let t=e7(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,e9.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,r){let n=te(r,t),i=e7(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&ta(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type},html:function(e){let t=e7(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){let n=te(r,t),i=e7(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&ta(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),tu={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("")]]},td=["<","&"];function th(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:e0(e.value,Object.assign({},n.settings.characterReferences,{subset:td}))}let tp=(0,ez.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,r,n){return n.settings.bogusComments?"<?"+e0(e.value,Object.assign({},n.settings.characterReferences,{subset:e2}))+">":"<!--"+e.value.replace(e1,function(e){return e0(e,Object.assign({},n.settings.characterReferences,{subset:e5}))})+"-->"},doctype:function(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,r,n){let i;let a=n.schema,s="svg"!==a.space&&n.settings.omitOptionalTags,o="svg"===a.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(n.schema=eG.YP);let c=function(e,t){let r;let n=[],i=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let i=function(e,t,r){let n;let i=(0,e6.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&&(r===i.attribute||""===r)?r=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof r||r===i.attribute||""===r)&&(r=!!r),null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=e0(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tu.name[a][s]}));return!0===r?l:(r=Array.isArray(r)?(i.commaSeparated?e3.P:e4.P)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=e0(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tu.unquoted[a][s]}))),n!==r&&(e.settings.quoteSmart&&(0,e8.w)(r,o)>(0,e8.w)(r,e.alternative)&&(o=e.alternative),n=o+e0(r,Object.assign({},e.settings.characterReferences,{subset:("'"===o?tu.single:tu.double)[a][s],attribute:!0}))+o),l+(n?"="+n:n))}(e,r,t[r]);i&&n.push(i)}}for(;++i<n.length;){let t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(n,e.properties),u=n.all("html"===a.space&&"template"===e.tagName?e.content:e);return n.schema=a,u&&(o=!1),!c&&s&&tc(e,t,r)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===a.space||n.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!n.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&ta(e,t,r)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:th(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:th}}),tm={},tg={},tf=[];function tb(e,t,r){return tp(e,t,r,this)}function ty(e){let t=[],r=e&&e.children||tf,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function tk(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?r[e]=i:e===n&&Object.assign(r,i);return r}function tw(e,t){return e&&t?.[e?.toLowerCase()]||e}async function tx(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function t_(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tv(e){return"ansi"===e||t_(e)}function tC(e){return"none"===e}function tS(e,t){if(!t)return e;for(let r 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)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function tN(e,t=!1){let r=e.split(/(\r?\n)/g),n=0,i=[];for(let e=0;e<r.length;e+=2){let a=t?r[e]+(r[e+1]||""):r[e];i.push([a,n]),n+=r[e].length+(r[e+1]?.length||0)}return i}let tA="light-dark()",t$=["color","background-color"];function tE(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&O.Italic&&(t["font-style"]="italic"),e.fontStyle&O.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&O.Underline&&r.push("underline"),e.fontStyle&O.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function tP(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tI=new WeakMap;function tT(e,t){tI.set(e,t)}function tL(e){return tI.get(e)}class tR{_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 tR(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,eM])),e)}constructor(...e){if(2===e.length){let[t,r]=e;this.lang=r,this._stacks=t}else{let[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){let t=[],r=new Set;return!function e(n){if(r.has(n))return;r.add(n);let i=n?.nameScopesList?.scopeName;i&&t.push(i),n.parent&&e(n.parent)}(e),t}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tj=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let r=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new C(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(void 0===t)throw new C(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new C(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}},n=function(e){let t=tN(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(r){if(r===e.length)return{line:t.length-1,character:t[t.length-1].length};let n=r,i=0;for(let e of t){if(n<e.length)break;n-=e.length,i++}return{line:i,character:n}},posToIndex:function(e,r){let n=0;for(let r=0;r<e;r++)n+=t[r].length;return n+r}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));(function(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new C(`Invalid decoration range: ${JSON.stringify(r.start)}
1 - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){let t=e[n],i=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,a=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,s=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,o=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(i||a||s||o){if(i&&a||s&&o||s&&r.start.offset===r.end.offset||a&&t.start.offset===t.end.offset)continue;throw new C(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return function(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return r.length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?function(e,t){let r=0,n=[];for(let i of t)i>r&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let r=t(this),n=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(n.length!==r.converter.lines.length)throw new C(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(e,t,r,i){let s=n[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===r&&(c=0),r===Number.POSITIVE_INFINITY&&(c=s.children.length),-1===l||-1===c)for(let e=0;e<s.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===r&&(c=e+1);if(-1===l)throw new C(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new C(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=s.children.slice(l,c);if(i.alwaysWrap||u.length!==s.children.length){if(i.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};a(e,i,"wrapper"),s.children.splice(l,u.length,e)}else a(u[0],i,"token")}else a(s,i,"line")}function a(e,t,r){let n=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&tS(e,t.properties.class),e=i(e,r)||e}let s=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)i(t.line,t.character,r.character,e);else if(t.line<r.line){i(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let i=t.line+1;i<r.line;i++)s.unshift(()=>{var t;n[t=i]=a(n[t],e,"line")});i(r.line,0,r.character,e)}}s.forEach(e=>e())}}}()];function tM(e){let t=function(e){let t=[],r=[],n=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tj]}var tO=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tG={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tz(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 tB={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function tD(e,t,r={}){let{lang:n="text",theme:i=e.getLoadedThemes()[0]}=r;if(t_(n)||tC(i))return tN(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:s}=e.setTheme(i);if("ansi"===n)return function(e,t,r){let n,i,a;let s=tk(e,r),o=tN(t),l=function(e=tB){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(n){switch(n.type){case"named":return e[n.name];case"rgb":return r(n.rgb);case"table":var i;return i=n.index,function(){if(t)return t;t=[];for(let r=0;r<tO.length;r++)t.push(e[tO[r]]);let n=[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(r([n[e],n[i],n[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(r([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tO.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),c=(n=null,i=null,a=new Set,{parse(e){let t=[],r=0;do{let s=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),o=s.sequence?e.substring(r,s.startPosition):e.substring(r);if(o.length>0&&t.push({value:o,foreground:n,background:i,decorations:new Set(a
1)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n)){if(0===n)t.push({type:"resetAll"});else if(n<=9)tG[n]&&t.push({type:"setDecoration",value:tG[n]});else if(n<=29){let e=tG[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tO[n-30]}});else if(38===n){let r=tz(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tO[n-40]}});else if(48===n){let r=tz(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tO[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tO[n-100+8]}})}}return t}(s.sequence);for(let t of e)"resetAll"===t.type?(n=null,i=null,a.clear()):"resetForegroundColor"===t.type?n=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?n=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}r=s.position}while(r<e.length);return t}});return o.map(t=>c.parse(t[0]).map(r=>{let n,i;r.decorations.has("reverse")?(n=r.background?l.value(r.background):e.bg,i=r.foreground?l.value(r.foreground):e.fg):(n=r.foreground?l.value(r.foreground):e.fg,i=r.background?l.value(r.background):void 0),n=tw(n,s),i=tw(i,s),r.decorations.has("dim")&&(n=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}(n));let a=O.None;return r.decorations.has("bold")&&(a|=O.Bold),r.decorations.has("italic")&&(a|=O.Italic),r.decorations.has("underline")&&(a|=O.Underline),r.decorations.has("strikethrough")&&(a|=O.Strikethrough),{content:r.value,offset:t[1],color:n,bgColor:i,fontStyle:a}}))}(a,t,r);let o=e.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==o.name)throw new C(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${o.name}"`);if(!r.grammarState.themes.includes(a.name))throw new C(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return function(e,t,r,n,i){let a=tU(e,t,r,n,i),s=new tR(tU(e,t,r,n,i).stateStack,t.name,r.name);return tT(a.tokens,s),a.tokens}(t,o,a,s,r)}function tU(e,t,r,n,i){let a=tk(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=i,l=tN(e),c=i.grammarState?function(e,t){if(!(e instanceof tR))throw new C("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,r.name)??eM:null!=i.grammarContextCode?tU(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:eM,u=[],d=[];for(let e=0,h=l.length;e<h;e++){let h,p;let[m,g]=l[e];if(""===m){u=[],d.push([]);continue}if(s>0&&m.length>=s){u=[],d.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(h=t.tokenizeLine(m,c,o).tokens,p=0);let f=t.tokenizeLine2(m,c,o),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],s=e+1<b?f.tokens[2*e+2]:m.length;if(t===s)continue;let o=f.tokens[2*e+1],l=tw(n[U.getForeground(o)],a),c=U.getFontStyle(o),d={content:m.substring(t,s),offset:g+t,color:l,fontStyle:c};if(i.includeExplanation){let e=[];
1if("scopeName"!==i.includeExplanation)for(let t of r.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(/,/).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(/ /))})}d.explanation=[];let n=0;for(;t+n<s;){let t=h[p],r=m.substring(t.startIndex,t.endIndex);n+=r.length,d.explanation.push({content:r,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let i=t[n];r[n]={scopeName:i,themeMatches:function(e,t,r){let n=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,r){if(!tF(e[e.length-1],t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)tF(e[n],r[i])&&(n-=1),i-=1;return -1===n}(e,t,r)){n.push(a);break}return n}(e,i,t.slice(0,n))}}return r}(e,t.scopes)}),p+=1}}u.push(d)}d.push(u),u=[],c=f.ruleStack}return{tokens:d,stateStack:c}}function tF(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tq(e,t,r){let n=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=n.map(n=>{let i=tD(e,t,{...r,theme:n.theme}),a=tL(i);return{tokens:i,state:a,theme:"string"==typeof n.theme?n.theme:n.theme.name}}),a=function(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let i=e.map(e=>e[n]),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<r;t++){let r=o[t];r.content.length===e?(a[t].push(r),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...r,content:r.content.slice(0,e)}),o[t]={...r,content:r.content.slice(e),offset:r.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 r&&r.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,r)=>{let{content:a,explanation:o,offset:l,...c}=e[t][i];s.variants[n[r].color]=c}),s})),o=i[0].state?new tR(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&tT(s,o),s}function tW(e,t,r){let n,i,a,s,o,l;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=r,h=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:t.color===c?1:0);if(0===h.length)throw new C("`themes` option must not be empty");let p=tq(e,t,r);if(l=tL(p),c&&tA!==c&&!h.find(e=>e.color===c))throw new C(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=h.map(t=>e.getTheme(t.theme)),g=h.map(e=>e.color);a=p.map(e=>e.map(e=>(function(e,t,r,n,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>tE(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),l={},c=(e,n)=>{let i="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":i)};return s.forEach((e,r)=>{for(let a of o){let o=e[a]||"inherit";if(0===r&&n&&t$.includes(a)){if(n===tA&&s.length>1){let e=t.findIndex(e=>"light"===e),n=t.findIndex(e=>"dark"===e);if(-1===e||-1===n)throw new C('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=s[e][a]||"inherit",d=s[n][a]||"inherit";l[a]=`light-dark(${u}, ${d})`,"css-vars"===i&&(l[c(r,a)]=o)}else l[a]=o}else"css-vars"===i&&(l[c(r,a)]=o)}}),a.htmlStyle=l,a})(e,g,u,c,d))),l&&tT(a,l);let f=h.map(e=>tk(e.theme,r));i=tH(h,m,f,u,c,"fg",d),n=tH(h,m,f,u,c,"bg",d),s=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=c?void 0:[i,n].join(";")}else if("theme"in r){let o=tk(r.theme,r);a=tD(e,t,r);let c=e.getTheme(r.theme);n=tw(c.bg,o),i=tw(c.fg,o),s=c.name,l=tL(a)}else throw new C("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:n,themeName:s,rootStyle:o,grammarState:l}}function tH(e,t,r,n,i,a,s){return e.map((o,l)=>{let c=tw(t[l][a],r[l])||"inherit",u=`${n+o.color}${"bg"===a?"-bg":""}:${c}`;if(0===l&&i){if(i===tA&&e.length>1){let n=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===n||-1===i)throw new C('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let s=tw(t[n][a],r[n])||"inherit",o=tw(t[i][a],r[i])||"inherit";return`light-dark(${s}, ${o});${u}`}return c}return"css-vars"===s?u:null}).filter(e=>!!e).join(";")}function tV(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>tV(e,t,r),codeToTokens:(t,r)=>tW(e,t,r)}){let i=t;for(let e of tM(r))i=e.preprocess?.call(n,i,r)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}
1=tW(e,i,r),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=r;!0===d?a=a.map(e=>{let t=[],r="",n=0;return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&O.Underline||i.fontStyle&O.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(n||(n=i.offset),r+=i.content):r?(s?t.push({...i,offset:n,content:r+i.content}):t.push({content:r,offset:n},i),n=0,r=""):t.push(i)}),t}):"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[,r,n,i]=t;if(!r&&!i)return e;let a=[{...e,offset:e.offset+r.length,content:n}];return r&&a.unshift({content:r,offset:e.offset}),i&&a.push({content:i,offset:e.offset+r.length+n.length}),a}))),h&&(a=a.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}let e=t[t.length-1],n=tP(e.htmlStyle||tE(e)),i=tP(r.htmlStyle||tE(r)),a=e.fontStyle&&(e.fontStyle&O.Underline||e.fontStyle&O.Strikethrough),s=r.fontStyle&&(r.fontStyle&O.Underline||r.fontStyle&O.Strikethrough);a||s||n!==i?t.push({...r}):e.content+=r.content}return t}));let p={...n,get source(){return i}};for(let e of tM(r))a=e.tokens?.call(p,a)||a;return function(e,t,r,n=tL(e)){let i=tM(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==l&&null!=l?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:a},d=[],h={...r,structure:o,addClassToHast:tS,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return u},get lines(){return d}};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 r={type:"element",tagName:"span",properties:{class:"line"},children:[]},n=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=tP(a.htmlStyle||tE(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(h,e,t+1,n,r,a)||e;"inline"===o?s.children.push(e):"classic"===o&&r.children.push(e),n+=a.content.length}if("classic"===o){for(let e of i)r=e?.line?.call(h,r,t+1)||r;d.push(r),a.push(r)}}),"classic"===o){for(let e of i)u=e?.code?.call(h,u)||u;for(let e of(c.children.push(u),i))c=e?.pre?.call(h,c)||c;s.children.push(c)}let p=s;for(let e of i)p=e?.root?.call(h,p)||p;return n&&tT(p,n),p}(a,{...r,fg:s,bg:o,themeName:l,rootStyle:c},p,u)}let tZ=function(e,t){let r=t||tm,n=r.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:tb,all:ty,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||eO.z,characterReferences:r.characterReferences||tg,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?eG.YP:eG.dy,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tQ={light:"#333333",dark:"#bbbbbb"},tX={light:"#fffffe",dark:"#1e1e1e"},tJ="__shiki_resolved";function tK(e){if(e?.[tJ])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:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?tQ.light:tQ.dark),r||(r="light"===t.type?tX.light:tX.dark),t.fg=n,t.bg=r}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 r=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(a.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let i={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,i.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,i.settings.background=r}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,tJ,{enumerable:!1,writable:!1,value:!0}),t}async function tY(e){return Array.from(new Set((await Promise.all(e.filter(e=>!tv(e)).map(async e=>await tx(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function t0(e){return(await Promise.all(e.map(async e=>tC(e)?null:tK(await tx(e))))).filter(e=>!!e)}
1class t1 extends Error{constructor(e){super(e),this.name="ShikiError"}}class t2 extends ej{constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,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=tK(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=L.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new t1(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return 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 r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),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()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>r.map(([e])=>e).includes(e))).filter(e=>!r.includes(e));throw new t1(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class t5{_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("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}}let t8=0;async function t3(e){e.engine||function(e,t=3){t>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([t0(e.themes||[]),tY(e.langs||[]),e.engine]);return function(e){let t;t8+=1,!1!==e.warnings&&t8>=10&&t8%10==0&&console.warn(`[Shiki] ${t8} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new t1("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tK),a=new t2(new t5(e.engine,n),i,n,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 t1(`Theme \`${e}\` 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(r)throw new t1("Shiki instance has been disposed")}function u(){r||(r=!0,a.dispose(),t8-=1)}return{setTheme:function(e){c();let r=s(e);return t!==e&&(a.setTheme(r),t=e),{theme:r,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new t1(`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()},loadLanguage:async function(...e){return o(await tY(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await t0(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:r,engine:n})}async function t6(e){let t=await t3(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tL(e[1]);let[t,r,n={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=n;if(t_(i)||tC(a))throw new C("Plain language does not have grammar state");if("ansi"===i)throw new C("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(a),l=t.getLanguage(i);return new tR(tU(r,l,s,o,n).stateStack,l.name,s.name)})(t,...e),codeToTokensBase:(e,r)=>tD(t,e,r),codeToTokensWithThemes:(e,r)=>tq(t,e,r),codeToTokens:(e,r)=>tW(t,e,r),codeToHast:(e,r)=>tV(t,e,r),codeToHtml:(e,r)=>(function(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>tV(e,t,r),codeToTokens:(t,r)=>tW(e,t,r)},i=tZ(tV(e,t,r,n));for(let e of tM(r))i=e.postprocess?.call(n,i,r)||i;return i})(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let t4=[{id:"abap",name:"ABAP",import:()=>r.e(33803).then(r.bind(r,33803))},{id:"actionscript-3",name:"ActionScript",import:()=>r.e(99271).then(r.bind(r,99271))},{id:"ada",name:"Ada",import:()=>r.e(80786).then(r.bind(r,80786))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(49083)]).then(r.bind(r,49083))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([r.e(92685),r.e(29726),r.e(62814),r.e(11712),r.e(42645),r.e(73610)]).then(r.bind(r,1049))},{id:"apache",name:"Apache Conf",import:()=>r.e(55015).then(r.bind(r,55015))},{id:"apex",name:"Apex",import:()=>r.e(11576).then(r.bind(r,11576))},{id:"apl",name:"APL",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(93205),r.e(65583)]).then(r.bind(r,65583))},{id:"applescript",name:"AppleScript",import:()=>r.e(45855).then(r.bind(r,45855))},{id:"ara",name:"Ara",import:()=>r.e(79338).then(r.bind(r,79338))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>r.e(51030).then(r.bind(r,51030))},{id:"asm",name:"Assembly",import:()=>r.e(59164).then(r.bind(r,59164))},{id:"astro",name:"Astro",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(83846),r.e(62814),r.e(82810)]).then(r.bind(r,82810))},{id:"awk",name:"AWK",import:()=>r.e(94459).then(r.bind(r,94459))},{id:"ballerina",name:"Ballerina",import:()=>r.e(59486).then(r.bind(r,59486))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>r.e(48748).then(r.bind(r,48748))},{id:"beancount",name:"Beancount",import:()=>r.e(14708).then(r.bind(r,14708))},{id:"berry",name:"Berry",aliases:["be"],import:()=>r.e(27204).then(r.bind(r,27204))},{id:"bibtex",name:"BibTeX",import:()=>r.e(42352).then(r.bind(r,42352))},{id:"bicep",name:"Bicep",import:()=>r.e(25385).then(r.bind(r,25385))},{id:"blade",name:"Blade",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(12455)]).then(r.bind(r,12455))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>r.e(56117).then(r.bind(r,56117))},{id:"c",name:"C",import:()=>r.e(68683).then(r.bind(r,68683))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>r.e(78698).then(r.bind(r,78698))},{id:"cairo",name:"Cairo",import:()=>Promise.all([r.e(8414),r.e(79869)]).then(r.bind(r,79869))},{id:"clarity",name:"Clarity",import:()=>r.e(67803).then(r.bind(r,67803))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>r.e(71123).then(r.bind(r,71123))},{id:"cmake",name:"CMake",import:()=>r.e(56685).then(r.bind(r,56685))},{id:"cobol",name:"COBOL",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(93205),r.e(6990
1)]).then(r.bind(r,6990))},{id:"codeowners",name:"CODEOWNERS",import:()=>r.e(26062).then(r.bind(r,97067))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>r.e(25230).then(r.bind(r,25230))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([r.e(92685),r.e(77290)]).then(r.bind(r,35434))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>r.e(71641).then(r.bind(r,71641))},{id:"coq",name:"Coq",import:()=>r.e(64328).then(r.bind(r,64328))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([r.e(19572),r.e(1245),r.e(10758),r.e(68683),r.e(42100)]).then(r.bind(r,30939))},{id:"crystal",name:"Crystal",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(10758),r.e(68683),r.e(39356),r.e(73019)]).then(r.bind(r,73019))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>r.e(57851).then(r.bind(r,57851))},{id:"css",name:"CSS",import:()=>r.e(62814).then(r.bind(r,62814))},{id:"csv",name:"CSV",import:()=>r.e(57774).then(r.bind(r,57774))},{id:"cue",name:"CUE",import:()=>r.e(15677).then(r.bind(r,15677))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>r.e(56487).then(r.bind(r,56487))},{id:"d",name:"D",import:()=>r.e(88193).then(r.bind(r,88193))},{id:"dart",name:"Dart",import:()=>r.e(7158).then(r.bind(r,7158))},{id:"dax",name:"DAX",import:()=>r.e(65426).then(r.bind(r,65426))},{id:"desktop",name:"Desktop",import:()=>r.e(11202).then(r.bind(r,11202))},{id:"diff",name:"Diff",import:()=>r.e(70013).then(r.bind(r,70013))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>r.e(53779).then(r.bind(r,53779))},{id:"dotenv",name:"dotEnv",import:()=>r.e(96177).then(r.bind(r,96177))},{id:"dream-maker",name:"Dream Maker",import:()=>r.e(50973).then(r.bind(r,50973))},{id:"edge",name:"Edge",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(62814),r.e(11712),r.e(52890)]).then(r.bind(r,52890))},{id:"elixir",name:"Elixir",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(80574)]).then(r.bind(r,80574))},{id:"elm",name:"Elm",import:()=>Promise.all([r.e(68683),r.e(24254)]).then(r.bind(r,24254))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>r.e(16545).then(r.bind(r,50760))},{id:"erb",name:"ERB",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(83846),r.e(75406),r.e(19572),r.e(1245),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(68683),r.e(39356),r.e(11930),r.e(85689),r.e(74012)]).then(r.bind(r,74012))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([r.e(81087),r.e(79022)]).then(r.bind(r,79022))},{id:"fennel",name:"Fennel",import:()=>r.e(84488).then(r.bind(r,84488))},{id:"fish",name:"Fish",import:()=>r.e(25220).then(r.bind(r,25220))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>r.e(22539).then(r.bind(r,22539))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([r.e(10617),r.e(78765)]).then(r.bind(r,78765))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>r.e(10617).then(r.bind(r,10617))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([r.e(81087),r.e(23322)]).then(r.bind(r,23322))},{id:"gdresource",name:"GDResource",import:()=>r.e(65836).then(r.bind(r,65836))},{id:"gdscript",name:"GDScript",import:()=>r.e(94448).then(r.bind(r,94448))},{id:"gdshader",name:"GDShader",import:()=>r.e(39888).then(r.bind(r,39888))},{id:"genie",name:"Genie",import:()=>r.e(72479).then(r.bind(r,72479))},{id:"gherkin",name:"Gherkin",import:()=>r.e(22409).then(r.bind(r,22409))},{id:"git-commit",name:"Git Commit Message",import:()=>r.e(89538).then(r.bind(r,90553))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([r.e(39356),r.e(33308)]).then(r.bind(r,33308))},{id:"gleam",name:"Gleam",import:()=>r.e(23074).then(r.bind(r,65195))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([r.e(92685),r.e(56015),r.e(62814),r.e(11712),r.e(91803)]).then(r.bind(r,91803))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([r.e(92685),r.e(56015),r.e(62814),r.e(11712),r.e(192)]).then(r.bind(r,192))},{id:"glsl",name:"GLSL",import:()=>Promise.all([r.e(68683),r.e(95255)]).then(r.bind(r,95255))},{id:"gnuplot",name:"Gnuplot",import:()=>r.e(35532).then(r.bind(r,35532))},{id:"go",name:"Go",import:()=>r.e(82078).then(r.bind(r,82078))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([r.e(92685),r.e(56015),r.e(83846),r.e(75406),r.e(11930)]).then(r.bind(r,11930))},{id:"groovy",name:"Groovy",import:()=>r.e(76236).then(r.bind(r,76236))},{id:"hack",name:"Hack",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(10758),r.e(57359)]).then(r.bind(r,57359))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(80592)]).then(r.bind(r,80592))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(82144)]).then(r.bind(r,82144))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>r.e(86674).then(r.bind(r,86674))},{id:"haxe",name:"Haxe",import:()=>r.e(42598).then(r.bind(r,42598))},{id:"hcl",name:"HashiCorp HCL",import:()=>r.e(44317).then(r.bind(r,44317))}
1,{id:"hjson",name:"Hjson",import:()=>r.e(76524).then(r.bind(r,76524))},{id:"hlsl",name:"HLSL",import:()=>r.e(90653).then(r.bind(r,90653))},{id:"html",name:"HTML",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712)]).then(r.bind(r,11712))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(2856)]).then(r.bind(r,2856))},{id:"http",name:"HTTP",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(83846),r.e(75406),r.e(93205),r.e(39356),r.e(11930),r.e(34086)]).then(r.bind(r,34086))},{id:"hxml",name:"HXML",import:()=>r.e(52756).then(r.bind(r,52756))},{id:"hy",name:"Hy",import:()=>r.e(9535).then(r.bind(r,9535))},{id:"imba",name:"Imba",import:()=>r.e(50372).then(r.bind(r,50372))},{id:"ini",name:"INI",aliases:["properties"],import:()=>r.e(58336).then(r.bind(r,58336))},{id:"java",name:"Java",import:()=>r.e(93205).then(r.bind(r,93205))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>r.e(92685).then(r.bind(r,75658))},{id:"jinja",name:"Jinja",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(66559)]).then(r.bind(r,66559))},{id:"jison",name:"Jison",import:()=>Promise.all([r.e(92685),r.e(66743)]).then(r.bind(r,66743))},{id:"json",name:"JSON",import:()=>r.e(19882).then(r.bind(r,19882))},{id:"json5",name:"JSON5",import:()=>r.e(85089).then(r.bind(r,85089))},{id:"jsonc",name:"JSON with Comments",import:()=>r.e(10814).then(r.bind(r,10814))},{id:"jsonl",name:"JSON Lines",import:()=>r.e(24157).then(r.bind(r,24157))},{id:"jsonnet",name:"Jsonnet",import:()=>r.e(77065).then(r.bind(r,77065))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>r.e(95548).then(r.bind(r,95548))},{id:"jsx",name:"JSX",import:()=>r.e(75406).then(r.bind(r,82921))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([r.e(92685),r.e(19572),r.e(1245),r.e(10758),r.e(68683),r.e(8414),r.e(14394),r.e(61096)]).then(r.bind(r,63685))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>r.e(96129).then(r.bind(r,96129))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>r.e(21306).then(r.bind(r,21306))},{id:"latex",name:"LaTeX",import:()=>Promise.all([r.e(14394),r.e(3764)]).then(r.bind(r,3764))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>r.e(33035).then(r.bind(r,33035))},{id:"less",name:"Less",import:()=>r.e(51741).then(r.bind(r,51741))},{id:"liquid",name:"Liquid",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(25430)]).then(r.bind(r,25430))},{id:"llvm",name:"LLVM IR",import:()=>r.e(59828).then(r.bind(r,59828))},{id:"log",name:"Log file",import:()=>r.e(54647).then(r.bind(r,54647))},{id:"logo",name:"Logo",import:()=>r.e(68948).then(r.bind(r,68948))},{id:"lua",name:"Lua",import:()=>Promise.all([r.e(68683),r.e(4426)]).then(r.bind(r,4426))},{id:"luau",name:"Luau",import:()=>r.e(65208).then(r.bind(r,65208))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>r.e(31851).then(r.bind(r,31851))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>r.e(81087).then(r.bind(r,81087))},{id:"marko",name:"Marko",import:()=>Promise.all([r.e(56015),r.e(62814),r.e(42645),r.e(51741),r.e(53807)]).then(r.bind(r,53807))},{id:"matlab",name:"MATLAB",import:()=>r.e(74917).then(r.bind(r,74917))},{id:"mdc",name:"MDC",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(81087),r.e(93729)]).then(r.bind(r,93729))},{id:"mdx",name:"MDX",import:()=>r.e(49062).then(r.bind(r,49062))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>r.e(68887).then(r.bind(r,68887))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>r.e(65654).then(r.bind(r,8371))},{id:"mojo",name:"Mojo",import:()=>r.e(86660).then(r.bind(r,86660))},{id:"move",name:"Move",import:()=>r.e(57506).then(r.bind(r,57506))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>r.e(5933).then(r.bind(r,5933))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>r.e(74649).then(r.bind(r,74649))},{id:"nginx",name:"Nginx",import:()=>Promise.all([r.e(68683),r.e(92482)]).then(r.bind(r,92482))},{id:"nim",name:"Nim",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(93205),r.e(68683),r.e(81087),r.e(88311)]).then(r.bind(r,88311))},{id:"nix",name:"Nix",import:()=>r.e(3936).then(r.bind(r,3936))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>r.e(47601).then(r.bind(r,47601))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>r.e(65406).then(r.bind(r,65406))},{id:"objective-cpp",name:"Objective-C++",import:()=>r.e(23207).then(r.bind(r,73797))},{id:"ocaml",name:"OCaml",import:()=>r.e(34144).then(r.bind(r,34144))},{id:"pascal",name:"Pascal",import:()=>r.e(29230).then(r.bind(r,29230))},{id:"perl",name:"Perl",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(745)]).then(r.bind(r,745))},{id:"php",name:"PHP",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(56751),r.e(61840)]).then(r.bind(r,56751))},{id:"plsql",name:"PL/SQL",import:()=>r.e(32500).then(r.bind(r,32500))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>r.e(4302).then(r.bind(r,4302))},{id:"polar",name:"Polar",import:()=>r.e(57909).then(r.bind(r,57909))},{id:"postcss",name:"PostCSS",import:()=>r.e(91851).then(r.bind(r,91851))},{id:"powerquery",name:"PowerQuery",import:()=>r.e(93458).then(r.bind(r,93458))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>r.e(97515).then(r.bind(r,97515))},{id:"prisma",name:"Prisma",import:()=>r.e(56582).then(r.bind(r,56582))},{id:"prolog",name:"Prolog",import:()=>r.e(12998).then(r.bind(r,12998))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>r.e(32654).then(r.bind(r,32654))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(92636)]).then(r.bind(r,92636))},{id:"puppet",name:"Puppet",import:()=>r.e(93036).then(r.bind(r,93036))},{id:"purescript",name:"PureScript",import:()=>r.e(48914).then(r.bind(r,48914))},{id:"python",name:"Python",aliases:["py"],import:()=>r.e(8414).then(r.bind(r,8414))},{id:"qml",name:"QML",import:()=>Promise.all([r.e(92685),r.e(38358)]).then(r.bind(r,38358))},{id:"qmldir",name:"QML Directory",import:()=>r.e(21828).then(r.bind(r,21828))},{id:"qss",name:"Qt Style Sheets",import:()=>r.e(79575).then(r.bind(r,79575))},{id:"r",name:"R",import:()=>r.e(14394).then(r.bind(r,14394))},{id:"racket",name:"Racket",import:()=>r.e(82197).then(r.bind(r,82197))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>r.e(90331).then(r.bind(r,90331))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(57851),r.e(76020)]).then(r.bind(r,76020))},{id:"reg",name:"Windows Registry Script",import:()=>r.e(37735).then(r.bind(r,37735))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>r.e(76249).then(r.bind(r,76249))},{id:"rel",name:"Rel",import:()=>r.e(35702).then(r.bind(r,35702))},{id:"riscv",name:"RISC-V",import:()=>r.e(21494).then(r.bind(r,21494))}
1,{id:"rst",name:"reStructuredText",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(83846),r.e(75406),r.e(19572),r.e(1245),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(68683),r.e(39356),r.e(11930),r.e(8414),r.e(85689),r.e(64169)]).then(r.bind(r,64169))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([r.e(92685),r.e(56015),r.e(83846),r.e(75406),r.e(19572),r.e(1245),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(68683),r.e(39356),r.e(11930),r.e(85689)]).then(r.bind(r,21282))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>r.e(99001).then(r.bind(r,99001))},{id:"sas",name:"SAS",import:()=>Promise.all([r.e(10758),r.e(58249)]).then(r.bind(r,58249))},{id:"sass",name:"Sass",import:()=>r.e(80614).then(r.bind(r,80614))},{id:"scala",name:"Scala",import:()=>r.e(95716).then(r.bind(r,95716))},{id:"scheme",name:"Scheme",import:()=>r.e(13335).then(r.bind(r,13335))},{id:"scss",name:"SCSS",import:()=>Promise.all([r.e(62814),r.e(42645)]).then(r.bind(r,42645))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>r.e(70291).then(r.bind(r,70291))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>r.e(30209).then(r.bind(r,24019))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>r.e(39356).then(r.bind(r,39356))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([r.e(39356),r.e(5780)]).then(r.bind(r,5780))},{id:"smalltalk",name:"Smalltalk",import:()=>r.e(38769).then(r.bind(r,38769))},{id:"solidity",name:"Solidity",import:()=>r.e(94867).then(r.bind(r,94867))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([r.e(92685),r.e(62814),r.e(11712),r.e(77462)]).then(r.bind(r,77462))},{id:"sparql",name:"SPARQL",import:()=>r.e(1254).then(r.bind(r,1254))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>r.e(42787).then(r.bind(r,43574))},{id:"sql",name:"SQL",import:()=>r.e(10758).then(r.bind(r,10758))},{id:"ssh-config",name:"SSH Config",import:()=>r.e(64599).then(r.bind(r,64599))},{id:"stata",name:"Stata",import:()=>Promise.all([r.e(10758),r.e(48583)]).then(r.bind(r,48583))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>r.e(83759).then(r.bind(r,83759))},{id:"svelte",name:"Svelte",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(62814),r.e(94330)]).then(r.bind(r,94330))},{id:"swift",name:"Swift",import:()=>r.e(66108).then(r.bind(r,66108))},{id:"system-verilog",name:"SystemVerilog",import:()=>r.e(57629).then(r.bind(r,57629))},{id:"systemd",name:"Systemd Units",import:()=>r.e(74777).then(r.bind(r,74777))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>r.e(79899).then(r.bind(r,79899))},{id:"tasl",name:"Tasl",import:()=>r.e(25292).then(r.bind(r,25292))},{id:"tcl",name:"Tcl",import:()=>r.e(71689).then(r.bind(r,71689))},{id:"templ",name:"Templ",import:()=>Promise.all([r.e(92685),r.e(62814),r.e(82078),r.e(15106)]).then(r.bind(r,15106))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>r.e(80113).then(r.bind(r,80113))}
1,{id:"tex",name:"TeX",import:()=>Promise.all([r.e(14394),r.e(44454)]).then(r.bind(r,44454))},{id:"toml",name:"TOML",import:()=>r.e(6839).then(r.bind(r,6839))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([r.e(92685),r.e(56015),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(68683),r.e(33228)]).then(r.bind(r,33228))},{id:"tsv",name:"TSV",import:()=>r.e(28253).then(r.bind(r,28253))},{id:"tsx",name:"TSX",import:()=>r.e(83846).then(r.bind(r,94780))},{id:"turtle",name:"Turtle",import:()=>r.e(15341).then(r.bind(r,15341))},{id:"twig",name:"Twig",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(83846),r.e(75406),r.e(19572),r.e(1245),r.e(62814),r.e(11712),r.e(93205),r.e(10758),r.e(68683),r.e(39356),r.e(11930),r.e(8414),r.e(42645),r.e(85689),r.e(56751),r.e(34139)]).then(r.bind(r,34139))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>r.e(56015).then(r.bind(r,47158))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>r.e(4224).then(r.bind(r,4224))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>r.e(94577).then(r.bind(r,94577))}
1,{id:"v",name:"V",import:()=>r.e(51946).then(r.bind(r,51946))},{id:"vala",name:"Vala",import:()=>r.e(84595).then(r.bind(r,84595))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>r.e(49754).then(r.bind(r,49754))},{id:"verilog",name:"Verilog",import:()=>r.e(99115).then(r.bind(r,99115))},{id:"vhdl",name:"VHDL",import:()=>r.e(15975).then(r.bind(r,15975))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>r.e(42230).then(r.bind(r,42230))},{id:"vue",name:"Vue",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(62814),r.e(11712),r.e(52023)]).then(r.bind(r,52023))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(62814),r.e(11712),r.e(52023),r.e(92679)]).then(r.bind(r,92679))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([r.e(92685),r.e(56015),r.e(18050),r.e(62814),r.e(11712),r.e(42645),r.e(51741),r.e(52023),r.e(54010)]).then(r.bind(r,84320))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>r.e(95312).then(r.bind(r,95312))},{id:"wasm",name:"WebAssembly",import:()=>r.e(12973).then(r.bind(r,12973))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>r.e(92002).then(r.bind(r,92002))},{id:"wgsl",name:"WGSL",import:()=>r.e(60876).then(r.bind(r,60876))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>r.e(90805).then(r.bind(r,90805))},{id:"wit",name:"WebAssembly Interface Types",import:()=>r.e(30138).then(r.bind(r,30138))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>r.e(8426).then(r.bind(r,33730))},{id:"xml",name:"XML",import:()=>Promise.all([r.e(93205),r.e(74280)]).then(r.bind(r,61840))},{id:"xsl",name:"XSL",import:()=>Promise.all([r.e(93205),r.e(33241)]).then(r.bind(r,33241))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>r.e(66493).then(r.bind(r,66493))},{id:"zenscript",name:"ZenScript",import:()=>r.e(69327).then(r.bind(r,69327))},{id:"zig",name:"Zig",import:()=>r.e(39602).then(r.bind(r,39602))}],t9=Object.fromEntries(t4.map(e=>[e.id,e.import])),t7=Object.fromEntries(t4.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),re={...t9,...t7},rt=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>r.e(82879).then(r.bind(r,82879))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>r.e(21050).then(r.bind(r,88397))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>r.e(38593).then(r.bind(r,38593))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>r.e(99457).then(r.bind(r,99457))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>r.e(49989).then(r.bind(r,49989))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>r.e(60528).then(r.bind(r,60528))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>r.e(90553).then(r.bind(r,15353))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>r.e(53347).then(r.bind(r,53347))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>r.e(72396).then(r.bind(r,72396))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>r.e(6439).then(r.bind(r,6439))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>r.e(11260).then(r.bind(r,11260))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>r.e(60775).then(r.bind(r,60775))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>r.e(34022).then(r.bind(r,34022))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>r.e(81949).then(r.bind(r,81949))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>r.e(41720).then(r.bind(r,41720))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>r.e(65578).then(r.bind(r,65578))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>r.e(98634).then(r.bind(r,98634))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>r.e(81713).then(r.bind(r,81713))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>r.e(49896).then(r.bind(r,49896))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>r.e(64365).then(r.bind(r,64365))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>r.e(4443).then(r.bind(r,4443))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>r.e(6107).then(r.bind(r,6107))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>r.e(29829).then(r.bind(r,29829))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>r.e(36619).then(r.bind(r,36619))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>r.e(88925).then(r.bind(r,88925))},{id:"houston",displayName:"Houston",type:"dark",import:()=>r.e(28976).then(r.bind(r,28976))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>r.e(51311).then(r.bind(r,51311))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>r.e(59877).then(r.bind(r,59877))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>r.e(34485).then(r.bind(r,34485))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>r.e(95270).then(r.bind(r,95270))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>r.e(69593).then(r.bind(r,69593))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>r.e(92062).then(r.bind(r,92062))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>r.e(60704).then(r.bind(r,60704))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>r.e(83918).then(r.bind(r,83918))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>r.e(5614).then(r.bind(r,5614))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>r.e(79976).then(r.bind(r,79976))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>r.e(96956).then(r.bind(r,96956))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>r.e(43073).then(r.bind(r,43073))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>r.e(99901).then(r.bind(r,99901))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>r.e(66361).then(r.bind(r,66361))},{id:"nord",displayName:"Nord",type:"dark",import:()=>r.e(60494).then(r.bind(r,60494))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>r.e(5703).then(r.bind(r,5703))},{id:"one-light",displayName:"One Light",type:"light",import:()=>r.e(3825).then(r.bind(r,3825))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>r.e(47417).then(r.bind(r,47417))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>r.e(38556).then(r.bind(r,38556))},{id:"red",displayName:"Red",type:"dark",import:()=>r.e(18124).then(r.bind(r,18124))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>r.e(60612).then(r.bind(r,60612))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>r.e(68112).then(r.bind(r,68112))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>r.e(3959).then(r.bind(r,3959))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>r.e(49119).then(r.bind(r,49119))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>r.e(18433).then(r.bind(r,18433))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>r.e(56985).then(r.bind(r,56985))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>r.e(18237).then(r.bind(r,18237))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>r.e(5401).then(r.bind(r,5401))}
1,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>r.e(82179).then(r.bind(r,82179))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>r.e(89567).then(r.bind(r,89567))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>r.e(76805).then(r.bind(r,76805))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>r.e(58527).then(r.bind(r,58527))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>r.e(38713).then(r.bind(r,38713))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>r.e(3647).then(r.bind(r,3647))}].map(e=>[e.id,e.import]));var rr=r(82957).lW;class rn extends Error{constructor(e){super(e),this.name="ShikiError"}}function ri(){return"undefined"!=typeof performance?performance.now():Date.now()}let ra=(e,t)=>e+(t-e%t)%t;async function rs(e){let t,r;let n={};function i(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,r=1024){let n=t+r,i=t;for(;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let r=e[t++];if(!(128&r)){s+=String.fromCharCode(r);continue}let n=63&e[t++];if((224&r)==192){s+=String.fromCharCode((31&r)<<6|n);continue}let i=63&e[t++];if((r=(240&r)==224?(15&r)<<12|n<<6|i:(7&r)<<18|n<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(r);else{let e=r-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(n.HEAPU8,e,t):""}let o={emscripten_get_now:ri,emscripten_memcpy_big:function(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let a=n.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let n=1;n<=4;n*=2){let s=a*(1+.2/n);if(s=Math.min(s,e+100663296),function(e){try{return t.grow(e-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(2147483648,ra(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let r=await e({env:o,wasi_snapshot_preview1:o});i((t=r.memory).buffer),Object.assign(n,r),n.UTF8ToString=s}return await l(),n}var ro=Object.defineProperty,rl=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rc=(e,t,r)=>rl(e,"symbol"!=typeof t?t+"":t,r);let ru=null;class rd{constructor(e){rc(this,"utf16Length"),rc(this,"utf8Length"),rc(this,"utf16Value"),rc(this,"utf8Value"),rc(this,"utf16OffsetToUtf8"),rc(this,"utf8OffsetToUtf16");let t=e.length,r=rd._utf8ByteLength(e),n=r!==t,i=n?new Uint32Array(t+1):null;n&&(i[t]=r);let a=n?new Uint32Array(r+1):null;n&&(a[r]=t);let s=new Uint8Array(r),o=0;for(let r=0;r<t;r++){let l=e.charCodeAt(r),c=l,u=!1;if(l>=55296&&l<=56319&&r+1<t){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}n&&(i[r]=o,u&&(i[r+1]=o),c<=127?a[o+0]=r:c<=2047?(a[o+0]=r,a[o+1]=r):c<=65535?(a[o+0]=r,a[o+1]=r,a[o+2]=r):(a[o+0]=r,a[o+1]=r,a[o+2]=r,a[o+3]=r)),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&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){let i=e.charCodeAt(r),a=i,s=!1;if(i>=55296&&i<=56319&&r+1<n){let t=e.charCodeAt(r+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&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let rh=class e{constructor(t){if(rc(this,"id",++e.LAST_ID),rc(this,"_onigBinding"),rc(this,"content"),rc(this,"utf16Length"),rc(this,"utf8Length"),rc(this,"utf16OffsetToUtf8"),rc(this,"utf8OffsetToUtf16"),rc(this,"ptr"),!ru)throw new rn("Must invoke loadWasm first.");this._onigBinding=ru,this.content=t;let r=new rd(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=ru.omalloc(1e4)),e._sharedPtrInUse=!0,ru.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(ru)}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)}};rc(rh,"LAST_ID",0),rc(rh,"_sharedPtr",0),rc(rh,"_sharedPtrInUse",!1);class rp{constructor(e){if(rc(this,"_onigBinding"),rc(this,"_ptr"),!ru)throw new rn("Must invoke loadWasm first.");let t=[],r=[];for(let n=0,i=e.length;n<i;n++){let i=new rd(e[n]);t[n]=i.createString(ru),r[n]=i.utf8Length}let n=ru.omalloc(4*e.length);ru.HEAPU32.set(t,n/4);let i=ru.omalloc(4*e.length);ru.HEAPU32.set(r,i/4);let a=ru.createOnigScanner(n,i,e.length);for(let r=0,n=e.length;r<n;r++)ru.ofree(t[r]);ru.ofree(i),ru.ofree(n),0===a&&function(e){throw new rn(e.UTF8ToString(e.getLastO
1nigError()))}(ru),this._onigBinding=ru,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if("number"==typeof r&&(n=r),"string"==typeof e){e=new rh(e);let r=this._findNextMatchSync(e,t,!1,n);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);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 r=e.convertUtf8OffsetToUtf16(s[o++]),n=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:r,end:n,length:n-r}}return{index:l,captureIndices:u}}}function rm(e){return t=>WebAssembly.instantiate(e,t)}async function rg(e){return e&&await (i||(i=async function(){ru=await rs(async t=>{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var n,i,a,s;(void 0!==r.data&&(r=r.data),n=r,"undefined"!=typeof Response&&n instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?r=await (a=r,e=>WebAssembly.instantiateStreaming(a,e))(t):r=await (s=r,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(i=r,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==rr&&rr.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array)?r=await rm(r)(t):r instanceof WebAssembly.Module?r=await rm(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await rm(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())),{createScanner:e=>new rp(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new rh(e)}}let rf=function(e){let t=e.langs,r=e.themes,n=e.engine;return async function(e){function i(r){if("string"==typeof r){if(tv(r))return[];let n=t[r=e.langAlias?.[r]||r];if(!n)throw new C(`Language \`${r}\` is not included in this bundle. You may want to load it from external source.`);return n}return r}function a(e){if(tC(e))return"none";if("string"==typeof e){let t=r[e];if(!t)throw new C(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let s=(e.themes??[]).map(e=>a(e)),o=(e.langs??[]).map(e=>i(e)),l=await t6({engine:e.engine??n(),...e,themes:s,langs:o});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(i)),loadTheme:(...e)=>l.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>r}}}({langs:re,themes:rt,engine:()=>rg(Promise.all([r.e(88295),r.e(84147)]).then(r.bind(r,84147)))}),{codeToHtml:rb,codeToHast:ry,codeToTokens:rk,codeToTokensBase:rw,codeToTokensWithThemes:rx,getSingletonHighlighter:r_,getLastGrammarState:rv}=function(e,t){let r;let n=async function(t={}){if(!r)return r=e({...t,themes:t.themes||[],langs:t.langs||[]});{let e=await r;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}};async function i(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 i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(rf,{guessEmbeddedLanguages:function(e,t,r){let n=new Set;for(let t of e.matchAll(/lang=["']([\w-]+)["']/g))n.add(t[1]);for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g))n.add(t[1]);for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g))n.add(t[1]);if(!r)return Array.from(n);let i=r.getBundledLanguages();return Array.from(n).filter(e=>e&&i[e])}});function rC(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let rS=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),rN=String.raw;function rA(e,t){if(null==e)throw Error(t??"Value expected");return e}let r$=rN`\[\^?`,rE=`c.? | C(?:-.?)?|${rN`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${rN`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${rN`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${rN`o\{[^\}]*\}?`}|${rN`\d{1,3}`}`,rP=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,rI=RegExp(rN` 2 \\ (?: 3 ${rE} 4 | [gk]<[^>]*>? 5 | [gk]'[^']*'? 6 | . 7 ) 8 | \( (?: 9 \? (?: 10 [:=!>({] 11 | <[=!] 12 | <[^>]*> 13 | '[^']*' 14 | ~\|? 15 | #(?:[^)\\]|\\.?)* 16 | [^:)]*[:)] 17 )? 18 | \*[^\)]*\)? 19 )? 20 | (?:${rP.source})+ 21 | ${r$} 22 | . 23`.replace(/\s+/g,""),"gsu"),rT=RegExp(rN` 24 \\ (?: 25 ${rE} 26 | . 27 ) 28 | \[:(?:\^?\p{Alpha}+|\^):\] 29 | ${r$} 30 | && 31 | . 32`.replace(/\s+/g,""),"gsu");function rL(e,{inCharClass:t}){let r=e[1];if("c"===r||"C"===r)return function(e){let t="c"===e[1]?e[2]:e[3];
32if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return rM(rC(t.toUpperCase())-64,e)}(e);if("dDhHsSwW".includes(r))return function(e){let t=e[1].toLowerCase();return rG({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}(e);if(e.startsWith(rN`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return function(e){let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return rG("property",e,{value:n,negate:"P"===t&&!r||"p"===t&&!!r})}(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),n=new TextEncoder;return[...r].map(e=>{let t=[...n.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return rM(rC(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===r||"x"===r)return rM(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(rU.has(r))return rM(rU.get(r),e);if(/\d/.test(r))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(rN`Incomplete escape "\"`);if("M"===r)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return rM(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function rR(e,t){return{type:"Assertion",kind:e,raw:t}}function rj(e){return{type:"Backreference",raw:e}}function rM(e,t){return{type:"Character",value:e,raw:t}}function rO(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function rG(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function rz(e,t,r={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:rA(r.flags),raw:t}}function rB(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}let rD=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),rU=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function rF(e){let t=null,r,n;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((r=+i)>(n=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r="+"===e[0]?1:0,n="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:r,max:n,raw:e}}function rq(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 rW(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let r=e.body[0];return!t||Object.keys(t).every(e=>t[e]===r[e])}let rH=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function rV(e,t={}){var r;let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let n=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw Error(`Invalid flag "${n}"`);if("y"===n){if(!/^y{[gw]}/.test(e.slice(r)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[r+2]?"grapheme":"word",r+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[n]]=!0}return t}(r.flags),i=[n.extended],a={captureGroup:r.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:r.rules.singleline},s=[],o;for(rI.lastIndex=0;o=rI.exec(e);){let t=function(e,t,r,n){let[i,a]=r;if("["===r||"[^"===r){let e=function(e,t,r){let n=[rO("^"===t[1],t)],i=1,a;for(rT.lastIndex=r;a=rT.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,n.push(rO("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===n.at(-1).type)n.push(rM(93,e));else if(i--,n.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return rL(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!rS.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return rG("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:rM(rC(e),e)}(e);Array.isArray(t)?n.push(...t):n.push(t)}}return{tokens:n,lastIndex:rT.lastIndex||e.length}}(t,r,n);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:rR(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:{type:"Subroutine",raw:r}}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:rj(r)}}if("K"===a)return{token:rz("keep",r)};if("N"===a||"R"===a)return{token:rG("newline",r,{negate:"N"===a})};if("O"===a)return{token:rG("any",r)};if("X"===a)return{token:rG("text_segment",r)};let e=rL(r,{inCharClass:!1}
32);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:r,tag:n,args:i}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(""===n)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=rD.has(r)?r.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 "${r}"`);default:throw Error(`Unexpected named callout kind "${c}"`)}return{type:"NamedCallout",kind:c,tag:n??null,arguments:i?.split(",")??null,raw:e}}(r)};if("(?{"===r)throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(")"!==t[n])throw Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:function(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=rq(r),s=rq(n),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),rz("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,rB("group",e,{...(a||s)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===r&&!e.captureGroup||"(?:"===r)return{token:rB("group",r)};if("(?>"===r)return{token:rB("atomic",r)};if("(?="===r||"(?!"===r||"(?<="===r||"(?<!"===r)return{token:rB("<"===r[2]?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if("("===r&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:rB("capturing",r,{..."("!==r&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if("(?~|"===r)throw Error(`Unsupported absence function kind "${r}"`);return{token:rB("absence_repeater",r)}}throw"(?("===r?Error(`Unsupported conditional "${r}"`):Error(`Invalid or unsupported group option "${r}"`)}if(")"===r){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:r}}}if(e.getCurrentModX()){if("#"===r){let e=t.indexOf(` 33`,n);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=n,{lastIndex:e.exec(t)?e.lastIndex:n}}}return"."===r?{token:rG("dot",r)}:"^"===r||"$"===r?{token:rR(e.singleline?({"^":rN`\A`,$:rN`\Z`})[r]:r,r)}:"|"===r?{token:{type:"Alternator",raw:r}}:rP.test(r)?{tokens:function(e){let t;let r=[],n=RegExp(rP,"gy");for(;t=n.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("?")){n.lastIndex--,r.push(rF(e.slice(0,-1)));continue}}}r.push(rF(e))}return r}(r)}:{token:rM(rC(r),r)}}(a,e,o[0],rI.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(rI.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:r,inCharClass:n}=e,i=r.slice(1);if(!n&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[rj(r)];let a=[],s=i.match(/^[0-7]+|\d/g);for(let e=0;e<s.length;e++){let t;let n=s[e];if(0===e&&"8"!==n&&"9"!==n){if((t=parseInt(n,8))>127)throw Error(rN`Octal encoded byte above 177 unsupported "${r}"`)}else t=rC(n);a.push(rM(t,(0===e?"\\":"")+n))}return a}(e,u):e).flat(),flags:n}}(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(e,t)=>{let r=i.tokens[s.nextIndex];switch(s.parent=e,s.nextIndex++,r.type){case"Alternator":return rZ();case"Assertion":return function({kind:e}){return rQ(rA({"^":"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===rN`\B`||e===rN`\Y`})}(r);case"Backreference":return function({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(r,n=!1)=>{let i=t.capturingGroups.length,a=!1;if(r>i){if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`)}return t.hasNumberedRef=!0,rX(n?i+1-r:r,{orphan:a})};if(r){let r=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(r)return i(+r.groups.num,!!r.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);
33if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return rX(n)}return i(+n)}(r,s);case"Character":return rK(r.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t,r){let{tokens:n,walk:i}=t,a=t.parent,s=a.body.at(-1),o=n[t.nextIndex];if(!r.isCheckingRangeEnd&&s&&"CharacterClass"!==s.type&&"CharacterClassRange"!==s.type&&o&&"CharacterClassOpen"!==o.type&&"CharacterClassClose"!==o.type&&"CharacterClassIntersector"!==o.type){let e=i(a,{...r,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 rK(rC("-"))}(0,s,t);case"CharacterClassOpen":return function({negate:e},t,r){let{tokens:n,walk:i}=t,a=n[t.nextIndex],s=[rY()],o=nt(a);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)s.push(rY()),t.nextIndex++;else{let e=s.at(-1);e.body.push(i(e,r))}o=nt(n[t.nextIndex],a)}let l=rY({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}(r,s,t);case"CharacterSet":return function({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s}=n;if("property"===e){let n=ne(r);if(!rS.has(n)||s?.has(n))return r3(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s});e="posix",r=n}return"posix"===e?function(e,t){let r=!!t?.negate;if(!rS.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}(r,{negate:t}):r0(e,{negate:t})}(r,s);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:rA(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(r.kind,{flags:r.flags});case"GroupOpen":return function(e,t,r){var n,i;let{tokens:a,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:l,walk:c}=t,u=function({flags:e,kind:t,name:r,negate:n,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:r6(void 0)}}("repeater");case"atomic":return r1({atomic:!0});case"capturing":return rJ(i,{name:r});case"group":return r1({flags:e});case"lookahead":case"lookbehind":return r2({behind:"lookbehind"===t,negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}(e),d="AbsenceFunction"===u.type,h=r7(u),p=h&&u.negate;if("CapturingGroup"===u.type&&(s.push(u),u.name&&(n=u.name,i=[],o.has(n)||o.set(n,i),o.get(n)).push(u)),d&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let m=nr(a[t.nextIndex]);for(;"GroupClose"!==m.type;){if("Alternator"===m.type)u.body.push(rZ()),t.nextIndex++;else{let e=u.body.at(-1),t=c(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||d,isInLookbehind:r.isInLookbehind||h,isInNegLookbehind:r.isInNegLookbehind||p});if(e.body.push(t),(h||r.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(r9(t)||"CapturingGroup"===t.type)throw Error(e)}else if(r9(t)||r7(t)&&t.negate)throw Error(e)}}m=nr(a[t.nextIndex])}return t.nextIndex++,u}(r,s,t);case"NamedCallout":var n;return n=r.kind,{type:"NamedCallout",kind:n,tag:r.tag,arguments:r.arguments};case"Quantifier":return function({kind:e,min:t,max:r},n){let i=n.parent,a=i.body.at(-1);if(!a||!rH.has(a.type))throw Error("Quantifier requires a repeatable token");let s=r5(e,t,r,a);return i.body.pop(),s}(r,s);
33case"Subroutine":return function({raw:e},t){let{capturingGroups:r,subroutines:n}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,n=r.length;if(t.hasNumberedRef=!0,(i=({"":e,"+":n+e,"-":n+1-e})[a.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let s=r8(i);return n.push(s),s}(r,s);default:throw Error(`Unexpected token type "${r.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},o=(r={type:"Flags",...i.flags},{type:"Regex",body:r6(void 0),flags:r}),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&&!n.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(rN`Subroutine uses a duplicate group name "\g<${e}>"`);d.get(e)[0].isSubroutined=!0}else throw Error(rN`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function rZ(e){return{type:"Alternative",body:r4(e?.body)}}function rQ(e,t){let r={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(r.negate=!!t?.negate),r}function rX(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function rJ(e,t){var r;let n={name:void 0,isSubroutined:!1,...t};if(void 0!==n.name&&(r=n.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:r6(t?.body)}}function rK(e,t){let r={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(r.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 rY(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:r4(e?.body)}}function r0(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(n.negate=r),"text_segment"!==e&&("newline"!==e||r)||(n.variableLength=!0),n}function r1(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:r6(e?.body)}}function r2(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:r6(e?.body)}}function r5(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function r8(e){return{type:"Subroutine",ref:e}}function r3(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(ne(e));if(!n){if(r.normalizeUnknownPropertyNames)n=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(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(rN`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function r6(e){if(void 0===e)e=[rZ()];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 r4(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 r9(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function r7(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function ne(e){return e.replace(/[- _]+/g,"").toLowerCase()}function nt(e,t){return rA(e,`${t?.type==="Character"&&93===t.value?"Empty":"Unclosed"} character class`)}function nr(e){return rA(e,"Unclosed group")}function nn(e,t,r=null){function n(e,t){for(let r=0;r<e.length;r++){let n=i(e[r],t,r,e);r=Math.max(-1,r+n)}}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(){ni(l).splice(Math.max(0,na(o)+c),1),c--,u=!0},removeAllNextSiblings:()=>ni(l).splice(na(o)+1),removeAllPrevSiblings(){let e=na(o)+c;return c-=e,ni(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let r=!!t.traverse;l?l[Math.max(0,na(o)+c)]=e:rA(s,"Can't replace root node")[o]=e,r&&i(e,s,o,l),u=!0},replaceWithMultiple(e,t={}){let r=!!t.traverse;if(ni(l).splice(Math.max(0,na(o)+c),1,...e),c+=e.length-1,r){let t=0;for(let r=0;r<e.length;r++)t+=i(e[r],s,na(o)+r+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,r),f?.(d,r),!u)switch(h){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":n(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":n(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${h}"`)}return m?.exit?.(d,r),p?.exit?.(d,r),c}return i(e),e}function ni(e){if(!Array.isArray(e))throw Error("Container expected");return e}function na(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let ns=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,no=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function nl(e,t,r,n){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&&(!n||n===no.DEFAULT==!s)){r instanceof Function?o+=r(t,{context:s?no.CHAR_CLASS:no.DEFAULT,negated:a[a.length-1]}):o+=r;continue}"["===e[0]?(s++,a.push("^"===e[1])):"]"===e&&s&&(s--,a.pop()),o+=e}return o}function nc(e,t,r){return!!function(e,t,r=0,n){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=r;let s=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!n||n===no.DEFAULT==!s))return i;"["===e?s++:"]"===e&&s&&s--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,r)}let nu=RegExp(String.raw`(?<noncapturingStart>${ns})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),nd=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,nh=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>${nd})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 47| \\?. 48`.replace(/\s+/g,""),"gsu"),np=String.raw,nm=np`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ng=np`\(\?R=(?<rDepth>[^\)]+)\)|${nm}`,nf=np`\(\?<(?![=!])(?<captureName>[^>]+)>`,nb=np`${nf}|(?<unnamed>\()(?!\?)`,ny=RegExp(np`${nf}|${ng}|\(\?|\\?.`,"gsu"),nk="Cannot use multiple overlapping recursions";function nw(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 nx(e,t,r,n,i,a,s){let o=new Set;n&&nl(e+t,nf,({groups:{captureName:e}})=>{o.add(e)},no.DEFAULT);let l=[r,n?o:null,i,a,s];return`${e}${n_(`(?:${e}`,"forward",...l)}(?:)${n_(`${t})`,"backward",...l)}${t}`}function n_(e,t,r,n,i,a,s){let o=e=>"forward"===t?e+2:r-e+2-1,l="";for(let t=0;t<r;t++){let r=o(t);l+=nl(e,np`${nb}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:o,backref:l}})=>{if(l&&n&&!n.has(l))return e;let c=`_$${r}`;if(o||t){let r=s+a.length+1;return a.push(r),function(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}(i,r),o?e:`(?<${t}${c}>`}return np`\k<${l}${c}>`},no.DEFAULT)}return l}function nv(e,t,r,n,i,a){if(e.size&&n){let s=0;nl(t,nb,()=>s++,no.DEFAULT);let o=a-s+i,l=new Map;return e.forEach((e,t)=>{let i=(n-s*r)/r,a=s*r,c=t>o+s?t+n:t,u=[];for(let t of e)if(t<=o)u.push(t);else if(t>o+s+i)u.push(t+n);else if(t<=o+s)for(let e=0;e<=r;e++)u.push(t+s*e);else for(let e=0;e<=r;e++)u.push(t+a+i*e);l.set(c,u)}),l}return e}var nC=String.fromCodePoint,nS=String.raw,nN={flagGroups:(()=>{try{RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{RegExp("","v")}catch{return!1}return!0})()};function nA(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function n$(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}nN.bugFlagVLiteralHyphenIsRange=!!nN.unicodeSets&&(()=>{try{RegExp(nS`[\d\-a]`,"v")}catch{return!0}return!1})(),nN.bugNestedClassIgnoresNegation=nN.unicodeSets&&RegExp("[[^a]]","v").test("a");var nE={ES2025:2025,ES2024:2024,ES2018:2018},nP={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function nI(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");
48if(void 0!==e.target&&!nP[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=nN.flagGroups?"ES2025":nN.unicodeSets?"ES2024":"ES2018"),t}var nT=new Set([nC(304),nC(305)]),nL=nS`[\p{L}\p{M}\p{N}\p{Pc}]`;function nR(e){if(nT.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=nG.get(r),a=nM.get(r),s=nO.get(r);return 1==[...n].length&&t.add(n),s&&t.add(s),i&&t.add(i),t.add(r),a&&t.add(a),[...t]}var nj=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=>[ne(e),e])),nM=new Map([["s",nC(383)],[nC(383),"s"]]),nO=new Map([[nC(223),nC(7838)],[nC(107),nC(8490)],[nC(229),nC(8491)],[nC(969),nC(8486)]]),nG=new Map([nB(453),nB(456),nB(459),nB(498),...nD(8072,8079),...nD(8088,8095),...nD(8104,8111),nB(8124),nB(8140),nB(8188)]),nz=new Map([["alnum",nS`[\p{Alpha}\p{Nd}]`],["alpha",nS`\p{Alpha}`],["ascii",nS`\p{ASCII}`],["blank",nS`[\p{Zs}\t]`],["cntrl",nS`\p{Cc}`],["digit",nS`\p{Nd}`],["graph",nS`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",nS`\p{Lower}`],["print",nS`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",nS`[\p{P}\p{S}]`],["space",nS`\p{space}`],["upper",nS`\p{Upper}`],["word",nS`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",nS`\p{AHex}`]]);function nB(e){let t=nC(e);return[t.toLowerCase(),t]}function nD(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>nB(e))}var nU=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),nF={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:i}=e;if("repeater"===i){let e=r1();e.body[0].body.push(r2({negate:!0,body:n}),r3("Any"));let i=r1();i.body[0].body.push(r5("greedy",0,1/0,e)),r(n1(i,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e<t.body.length;e++)n$(n,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=nQ(t.get(e));if(r){let t=r1({flags:r});t.body[0].body=e.body,e.body=[n1(t,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,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(n1(r2({body:[rZ({body:[rQ("string_end")]}),rZ({body:[rK(10)]})]}),t));else if("line_start"===l)s(n1(nK(nS`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l){if(h.has(e))i.flags.sticky=!0,a();else{let e=n[r-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(n1(r2({negate:!0}),t));else if(d)throw Error(nS`Uses "\G" in a way that requires a subclass`);else s(n0(rQ("string_start"),t)),o.strategy="clip_search"}}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)s(n1(nK(nS`(?=\n?\z)`),t));else if("word_boundary"===l){if(!p&&!u){let e=`(?:(?<=${nL})(?!${nL})|(?<!${nL})(?=${nL}))`,r=`(?:(?<=${nL})(?=${nL})|(?<!${nL})(?!${nL}))`;s(n1(nK(c?r:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||nJ(r)||(r=nZ(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!nJ(n)&&(n=nZ(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){"intersection"===t.kind&&r(n1(rY({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:s,wordIsAscii:o}){let{kind:l,negate:c,value:u}=e;if(a&&("digit"===l||"digit"===u)){r(n0(r0("digit",{negate:c}),t));return}if(s&&("space"===l||"space"===u)){r(n1(nY(nK("[ -\r ]"),c),t));return}if(o&&("word"===l||"word"===u)){r(n0(r0("word",{negate:c}),t));return}if("any"===l)r(n0(r3("Any"),t));else if("digit"===l)r(n0(r3("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===n)throw Error(nS`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=nS`\p{RI}{2}|${e}(?:\u200D${e})*`;r(n1(nK(nS`(?>\r\n|${i?nS`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(n0(r3("AHex",{negate:c}),t));else if("newline"===l)r(n1(nK(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l){if(i||"graph"!==u&&"print"!==u)r(n1(nY(nK(nz.get(u)),c),t));else{if("strict"===n)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${nC(e.codePointAt(0)-1)}${nC(e.codePointAt(2)+1)}-\u{10FFFF}`),r(n1(nK(`[${e}]`),t))}}else if("property"===l)nj.has(ne(u))||(e.key="sc");
138else if("space"===l)r(n0(r3("space",{negate:c}),t));else if("word"===l)r(n1(nY(nK(nL),c),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:s}){let{kind:o,flags:l}=e;if("flags"===o){if(l.enable||l.disable){let e=r1({flags:l});e.body[0].body=s(),i(n1(e,t),{traverse:!0})}else n()}else if("keep"===o){let e=r.body[0],n=1===r.body.length&&rW(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(nS`Uses "\K" in a way that's unsupported`);let s=r2({behind:!0});s.body[0].body=a(),i(n1(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:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"===n)r(n1(r2({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=r1();t.body[0].body.push(e.body),e.body=n1(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!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 r=t.find(e=>"search_start"===e.kind||function(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&rW(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!r)return null;if("search_start"===r.kind)return r;if("LookaroundAssertion"===r.type)return r.body[0].body[0];if("CapturingGroup"===r.type||"Group"===r.type){let t=[];for(let n of r.body){let r=e(n.body);if(!r)return null;Array.isArray(r)?t.push(...r):t.push(r)}return t}return null}(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):i=!0}n&&!i&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(nS`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||nJ(r)||(r=nZ(r,t),e.ref=r)}},nq={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){let c=i.get(e);if(c&&o.has(e.number)){let n=n0(nV(e.number),t);l.set(n,o.get(e.number)),r(n);return}o.set(e.number,e),s.set(e.number,[]),e.name&&n$(s,e.name,[]);let u=s.get(e.name??e.number);for(let t=0;t<u.length;t++){let r=u[t];if(c===r.node||c&&c===r.origin||e===r.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=n$(a,e.name,new Map),r=!1;if(c)r=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){r=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:r})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=nA(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:i,ref:a}=e;if(i){let r=t;for(;(r=r.parent)&&("CapturingGroup"!==r.type||r.name!==a&&r.number!==a););n.reffedNodesByReferencer.set(e,r);return}let s=n.subroutineRefMap.get(a),o=0===a,l=o?nV(0):function e(t,r,n,i){let a=Array.isArray(t)?[]:{};for(let[s,o]of Object.entries(t))"parent"===s?a.parent=Array.isArray(n)?i:n:o&&"object"==typeof o?a[s]=e(o,r,a,n):("type"===s&&"CapturingGroup"===o&&r.set(a,r.get(t)??t),a[s]=o);return a}
138(s,n.groupOriginByCopy,null),c=l;if(!o){var u;let e=nQ(function(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}(s,e=>"Group"===e.type&&!!e.flags)),t=e?nA(n.globalFlags,e):n.globalFlags;u=n.currentFlags,t.dotAll===u.dotAll&&t.ignoreCase===u.ignoreCase||(c=r1({flags:function({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},e||(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}(t)})).body[0].body.push(l)}r(n1(c,t),{traverse:!o})}},nW={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let i=n.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;for(let t of nX(r.parent)){if(t===r)break;if(t===e||function e(t,r){for(let n of nX(t)??[])if(n===r||e(n,r))return!0;return!1}(t,e))return!0}}while(r=r.parent);throw Error("Unexpected path")})(t,e));i.length?i.length>1?r(n1(r1({atomic:!0,body:i.reverse().map(e=>rZ({body:[rX(e.number)]}
138))}),t)):e.ref=i[0].number:r(n1(r2({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 r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<r;t++){let t=rJ();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function nH(e){nn(e,{"*"({node:e,parent:t}){e.parent=t}})}function nV(e){let t=r8(e);return t.isRecursive=!0,t}function nZ(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function nQ(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable)?r:null}function nX(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function nJ(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function nK(e,t){let r=rV(e,{...t,unicodePropertyMap:nj}).body;return r.length>1||r[0].body.length>1?r1({body:r}):r[0].body[0]}function nY(e,t){return e.negate=t,e}function n0(e,t){return e.parent=t,e}function n1(e,t){return nH(e),e.parent=t,e}var n2={"*":{enter({node:e},t){if(ir(e)){let r=t.getCurrentModI();t.pushModI(e.flags?nA({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){ir(e)&&t.popModI()}}
138,Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){n7(nC(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),ie(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&nU.has(e.value)&&t.setHasCasedChar()}},n5={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?nS`\B`:nS`\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,r){let{body:n,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}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=nC(e),n=it(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&n7(r)){let e=nR(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:i,parent:a}=e,{body:s}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of class intersection requires min target ES2024");nN.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(ii)&&(s=[rK(45),...s.filter(e=>!ii(e))]);let o=()=>`[${i?"^":""}${s.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||nN.bugNestedClassIgnoresNegation)&&!i){let t=s.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=r1(),i=n.body[0];return n.parent=a,i.parent=n,s=s.filter(e=>!t.includes(e)),e.body=s,s.length?(e.parent=i,i.body.push(e)):n.body.pop(),t.forEach(e=>{let t=rZ({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=o();return t.inCharClass=!1,n}let l=s[0];if("union"===n&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(nN.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===s.length&&"CharacterClassRange"!==l.type))return s.map(r).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Use of nested character class requires min target ES2024");return o()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=it(r,i),s=it(n,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),r=[],n=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?n??=t[e]:null===n?r.push(t[e]):(r.push([n,t[e]]),n=null);return r})(ie(e)).forEach(e=>{o.add(Array.isArray(e)?`${it(e[0],i)}-${it(e[1],i)}`:it(e,i))}),`${a}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":nS`[^\n]`;if("digit"===e)return t?nS`\D`:nS`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&nU.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?nS`\P`:nS`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?nS`\W`:nS`\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:r,parent:n},i,a){let s=i.currentFlags;r&&(i.currentFlags=nA(s,r));let o=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===n.type||e||i.useFlagMods&&r?`(?${function(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}(e,r,i.useFlagMods)}${o})`:o;return i.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:r},n,i){let a=`${"lookahead"===t?"":"<"}${r?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,r)=>r(e.body)+function({kind:e,max:t,min:r}){return(r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:nS`\g<${t}&R=${n}>`}},n8=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),n3=new Set(["-","\\","]","^","["]),n6=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),n4=new Map([[9,nS`\t`],[10,nS`\n`],[11,nS`\v`],[12,nS`\f`],[13,nS`\r`],[8232,nS`\u2028`],[8233,nS`\u2029`],[65279,nS`\uFEFF`]]),n9=/^\p{Cased}$/u;function n7(e){return n9.test(e)}function ie(e,t){let r=!!t?.firstOnly,n=e.min.value,i=e.max.value,a=[];if(n<65&&(65535===i||i>=131071)||65536===n&&i>=131071)return a;for(let e=n;e<=i;e++){let t=nC(e);if(!n7(t))continue;let s=nR(t).filter(e=>{let t=e.codePointAt(0);return t<n||t>i});if(s.length&&(a.push(...s),r))break}return a}function it(e,{escDigit:t,inCharClass:r,useFlagV:n}){var i;if(n4.has(e))return n4.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=nC(e);return((r?n?n6:n3:n8).has(a)?"\\":"")+a}function ir({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function ii({type:e,value:t}){return"Character"===e&&45===t}var ia=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#i=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){let i=!!n?.lazyCompile;
138if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");super(t,r),this.#r=t.source,t instanceof e&&(this.#e=t.#e,this.#n=t.#n,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":t,r),this.#r=t,this.#e=function(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)n$(r,t,{}).transferTo=e;return r}(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=n??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#i&&r&&n){this.lastIndex=0;let e=this.#a(t.slice(n));return e&&(function(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e<r.length;e++){let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])}let n=r.groups;n&&Object.keys(n).forEach(e=>{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let r=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;let n=[...r];r.length=1,this.hasIndices&&(t=[...r.indices],r.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:s}=this.#e.get(e)??{};if(a?i.push(null):(i.push(r.length),r.push(n[e]),this.hasIndices&&r.indices.push(t[e])),s&&void 0!==n[e]){let a=i[s];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(r[a]=n[e],this.hasIndices&&(r.indices[a]=t[e]),r.groups){this.#n||(this.#n=function(e){let t;let r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,i=0,a=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:s}}=t;"["===e?i++:i?"]"===e&&i--:r&&(a++,s&&n.set(a,s))}return n}(this.source));let i=this.#n.get(s);i&&(r.groups[i]=n[e],this.hasIndices&&(r.indices.groups[i]=t[e]))}}}return r}};class is{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:n,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=n?.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=i(e);return n?.set(e,t),t}catch(t){if(n?.set(e,t),r)return null;throw t}})}regexps;findNextMatchSync(e,t,r){let n="string"==typeof e?e:e.content,i=[];function a(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:4294967295,end:4294967295,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let r=this.regexps[e];if(r)try{r.lastIndex=t;let s=r.exec(n);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,r,n]of i)if(r.index===e)return a(t,r,n)}return null}}var io=r(61994);let il=e=>{let t=ih(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),ic(r,t)||id(e)},getConflictingClassGroupIds:(e,t)=>{let i=r[e]||[];return t&&n[e]?[...i,...n[e]]:i}}},ic=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),i=n?ic(e.slice(1),n):void 0;if(i)return i;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},iu=/^\[(.+)\]$/,id=e=>{if(iu.test(e)){let t=iu.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ih=e=>{let{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(let e in r)ip(r[e],n,e,t);return n},ip=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:im(t,e)).classGroupId=r;return}if("function"==typeof e){if(ig(e)){ip(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([e,i])=>{ip(i,im(t,e),r,n)})})},im=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},ig=e=>e.isThemeGetter,ib=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,a)=>{r.set(i,a),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}},iy=e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t;let r=[],n=0,i=0,a=0;for(let s=0;s<e.length;s++){let o=e[s];if(0===n&&0===i){if(":"===o){r.push(e.slice(a,s)),a=s+1;continue}if("/"===o){t=s;continue}}"["===o?n++:"]"===o?n--:"("===o?i++:")"===o&&i--}let s=0===r.length?e:e.substring(a),o=ik(s);return{modifiers:r,hasImportantModifier:o!==s,baseClassName:o,maybePostfixModifierPosition:t&&t>a?t-a:void 0}};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n}
138,ik=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,iw=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let r=[],n=[];return e.forEach(e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)}),r.push(...n.sort()),r}},ix=e=>({cache:ib(e.cacheSize),parseClassName:iy(e),sortModifiers:iw(e),...il(e)}),i_=/\s+/,iv=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],o=e.trim().split(i_),l="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!p,g=n(m?h.substring(0,p):h);if(!g){if(!m||!(g=n(h))){l=t+(l.length>0?" "+l:l);continue}m=!1}let f=a(u).join(":"),b=d?f+"!":f,y=b+g;if(s.includes(y))continue;s.push(y);let k=i(g,m);for(let e=0;e<k.length;++e){let t=k[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l};function iC(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=iS(e))&&(n&&(n+=" "),n+=t);return n}let iS=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=iS(e[n]))&&(r&&(r+=" "),r+=t);return r},iN=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},iA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,i$=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iE=/^\d+\/\d+$/,iP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ij=e=>iE.test(e),iM=e=>!!e&&!Number.isNaN(Number(e)),iO=e=>!!e&&Number.isInteger(Number(e)),iG=e=>e.endsWith("%")&&iM(e.slice(0,-1)),iz=e=>iP.test(e),iB=()=>!0,iD=e=>iI.test(e)&&!iT.test(e),iU=()=>!1,iF=e=>iL.test(e),iq=e=>iR.test(e),iW=e=>!iV(e)&&!iY(e),iH=e=>i6(e,ae,iU),iV=e=>iA.test(e),iZ=e=>i6(e,at,iD),iQ=e=>i6(e,ar,iM),iX=e=>i6(e,i9,iU),iJ=e=>i6(e,i7,iq),iK=e=>i6(e,ai,iF),iY=e=>i$.test(e),i0=e=>i4(e,at),i1=e=>i4(e,an),i2=e=>i4(e,i9),i5=e=>i4(e,ae),i8=e=>i4(e,i7),i3=e=>i4(e,ai,!0),i6=(e,t,r)=>{let n=iA.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},i4=(e,t,r=!1)=>{let n=i$.exec(e);return!!n&&(n[1]?t(n[1]):r)},i9=e=>"position"===e||"percentage"===e,i7=e=>"image"===e||"url"===e,ae=e=>"length"===e||"size"===e||"bg-size"===e,at=e=>"length"===e,ar=e=>"number"===e,an=e=>"family-name"===e,ai=e=>"shadow"===e,aa=function(e,...t){let r,n,i;let a=function(o){return n=(r=ix(t.reduce((e,t)=>t(e),e()))).cache.get,i=r.cache.set,a=s,s(o)};function s(e){let t=n(e);if(t)return t;let a=iv(e,r);return i(e,a),a}return function(){return a(iC.apply(null,arguments))}}(()=>{let e=iN("color"),t=iN("font"),r=iN("text"),n=iN("font-weight"),i=iN("tracking"),a=iN("leading"),s=iN("breakpoint"),o=iN("container"),l=iN("spacing"),c=iN("radius"),u=iN("shadow"),d=iN("inset-shadow"),h=iN("text-shadow"),p=iN("drop-shadow"),m=iN("blur"),g=iN("perspective"),f=iN("aspect"),b=iN("ease"),y=iN("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...w(),iY,iV],_=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],C=()=>[iY,iV,l],S=()=>[ij,"full","auto",...C()],N=()=>[iO,"none","subgrid",iY,iV],A=()=>["auto",{span:["full",iO,iY,iV]},iO,iY,iV],$=()=>[iO,"auto",iY,iV],E=()=>["auto","min","max","fr",iY,iV],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...C()],L=()=>[ij,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],R=()=>[e,iY,iV],j=()=>[...w(),i2,iX,{position:[iY,iV]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",i5,iH,{size:[iY,iV]}],G=()=>[iG,i0,iZ],z=()=>["","none","full",c,iY,iV],B=()=>["",iM,i0,iZ],D=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[iM,iG,i2,iX],q=()=>["","none",m,iY,iV],W=()=>["none",iM,iY,iV],H=()=>["none",iM,iY,iV],V=()=>[iM,iY,iV],Z=()=>[ij,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[iz],breakpoint:[iz],color:[iB],container:[iz],"drop-shadow":[iz],ease:["in","out","in-out"],font:[iW],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[iz],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[iz],shadow:[iz],spacing:["px",iM],text:[iz],"text-shadow":[iz],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ij,iV,iY,f]}
vendor: 5,562 bytes, line 138
138],container:["container"],columns:[{columns:[iM,iV,iY,o]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{start:S()}],end:[{end:S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[iO,"auto",iY,iV]}],basis:[{basis:[ij,"full","auto",o,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[iM,ij,"auto","initial","none",iV]}],grow:[{grow:["",iM,iY,iV]}],shrink:[{shrink:["",iM,iY,iV]}],order:[{order:[iO,"first","last","none",iY,iV]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[o,"screen",...L()]}],"min-w":[{"min-w":[o,"screen","none",...L()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,i0,iZ]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,iY,iQ]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",iG,iV]}],"font-family":[{font:[i1,iV,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,iY,iV]}],"line-clamp":[{"line-clamp":[iM,"none",iY,iQ]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",iY,iV]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",iY,iV]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:[iM,"from-font","auto",iY,iZ]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[iM,"auto",iY,iV]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",iY,iV]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",iY,iV]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},iO,iY,iV],radial:["",iY,iV],conic:[iO,iY,iV]},i8,iJ]}
138],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}
vendor: 6,175 bytes, line 138
138],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...D(),"hidden","none"]}],"divide-style":[{divide:[...D(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...D(),"none","hidden"]}],"outline-offset":[{"outline-offset":[iM,iY,iV]}],"outline-w":[{outline:["",iM,i0,iZ]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,i3,iK]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,i3,iK]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[iM,iZ]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,i3,iK]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[iM,iY,iV]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[iM]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[iY,iV]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[iM]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",iY,iV]}],filter:[{filter:["","none",iY,iV]}],blur:[{blur:q()}],brightness:[{brightness:[iM,iY,iV]}],contrast:[{contrast:[iM,iY,iV]}],"drop-shadow":[{"drop-shadow":["","none",p,i3,iK]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",iM,iY,iV]}],"hue-rotate":[{"hue-rotate":[iM,iY,iV]}],invert:[{invert:["",iM,iY,iV]}],saturate:[{saturate:[iM,iY,iV]}],sepia:[{sepia:["",iM,iY,iV]}],"backdrop-filter":[{"backdrop-filter":["","none",iY,iV]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[iM,iY,iV]}],"backdrop-contrast":[{"backdrop-contrast":[iM,iY,iV]}],"backdrop-grayscale":[{"backdrop-grayscale":["",iM,iY,iV]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[iM,iY,iV]}],"backdrop-invert":[{"backdrop-invert":["",iM,iY,iV]}],"backdrop-opacity":[{"backdrop-opacity":[iM,iY,iV]}],"backdrop-saturate":[{"backdrop-saturate":[iM,iY,iV]}],"backdrop-sepia":[{"backdrop-sepia":["",iM,iY,iV]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",iY,iV]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[iM,"initial",iY,iV]}],ease:[{ease:["linear","initial",b,iY,iV]}],delay:[{delay:[iM,iY,iV]}],animate:[{animate:["none",y,iY,iV]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,iY,iV]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[iY,iV,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}
vendor: 5,429 bytes, line 138
138],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",iY,iV]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",iY,iV]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[iM,i0,iZ,iQ]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});var as=r(57437);function ao(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var al=ao(),ac={exec:()=>null};function au(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(ad.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var ad={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine
vendor: 4,168 bytes, line 138
138:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},ah=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ap=/(?:[*+-]|\d{1,9}[.)])/,am=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ag=au(am).replace(/bull/g,ap).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),af=au(am).replace(/bull/g,ap).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ab=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ay=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ak=au(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ay).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),aw=au(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ap).getRegex(),ax="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,av=au("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",a_).replace("tag",ax).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),aC=au(ab).replace("hr",ah).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ax).getRegex(),aS={blockquote:au(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",aC).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:ak,fences:/^ {0,3}(`{3,}
vendor: 8,617 bytes, lines 138-149
138(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ah,html:av,lheading:ag,list:aw,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:aC,table:ac,text:/^[^\n]+/},aN=au("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ah).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ax).getRegex(),aA={...aS,lheading:af,table:aN,paragraph:au(ab).replace("hr",ah).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",aN).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ax).getRegex()},a$={...aS,html:au(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",a_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ac,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:au(ab).replace("hr",ah).replace("heading",` *#{1,6} *[^ 139]`).replace("lheading",ag).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},aE=/^( {2,}|\\)\n(?!\s*$)/,aP=/[\p{P}\p{S}]/u,aI=/[\s\p{P}\p{S}]/u,aT=/[^\s\p{P}\p{S}]/u,aL=au(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,aI).getRegex(),aR=/(?!~)[\p{P}\p{S}]/u,aj=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,aM=au(aj,"u").replace(/punct/g,aP).getRegex(),aO=au(aj,"u").replace(/punct/g,aR).getRegex(),aG="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",az=au(aG,"gu").replace(/notPunctSpace/g,aT).replace(/punctSpace/g,aI).replace(/punct/g,aP).getRegex(),aB=au(aG,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,aR).getRegex(),aD=au("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,aT).replace(/punctSpace/g,aI).replace(/punct/g,aP).getRegex(),aU=au(/\\(punct)/,"gu").replace(/punct/g,aP).getRegex(),aF=au(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),aq=au(a_).replace("(?:-->|$)","-->").getRegex(),aW=au("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",aq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),aH=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,aV=au(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",aH).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),aZ=au(/^!?\[(label)\]\[(ref)\]/).replace("label",aH).replace("ref",ay).getRegex(),aQ=au(/^!?\[(ref)\](?:\[\])?/).replace("ref",ay).getRegex(),aX=au("reflink|nolink(?!\\()","g").replace("reflink",aZ).replace("nolink",aQ).getRegex(),aJ={_backpedal:ac,anyPunctuation:aU,autolink:aF,blockSkip:/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:aE,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:ac,emStrongLDelim:aM,emStrongRDelimAst:az,emStrongRDelimUnd:aD,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:aV,nolink:aQ,punctuation:aL,reflink:aZ,reflinkSearch:aX,tag:aW,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:ac},aK={...aJ,link:au(/^!?\[(label)\]\((.*?)\)/).replace("label",aH).getRegex(),reflink:au(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",aH).getRegex()},aY={...aJ,emStrongRDelimAst:aB,emStrongLDelim:aO,url:au(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},a0={...aY,br:au(aE).replace("{2,}","*").getRegex(),text:au(aY.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},a1={normal:aS,gfm:aA,pedantic:a$},a2={normal:aJ,gfm:aY,breaks:a0,pedantic:aK},a5={"&":"&","<":"<",">":">",'"':""","'":"'"},a8=e=>a5[e];function a3(e,t){if(t){if(ad.escapeTest.test(e))return e.replace(ad.escapeReplace,a8)}else if(ad.escapeTestNoEncode.test(e))return e.replace(ad.escapeReplaceNoEncode,a8);return e}function a6(e){try{e=encodeURI(e).replace(ad.percentDecode,"%")}catch{return null}return e}function a4(e,t){let r=e.replace(ad.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(ad.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t){if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("")}for(;n<r.length;n++)r[n]=r[n].trim().replace(ad.slashPipe,"|");return r}function a9(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n;){let a=e.charAt(n-i-1);if(a!==t||r){if(a!==t&&r)i++;else break}else i++}return e.slice(0,n-i)}function a7(e,t,r,n,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:a,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}var se=class{options;rules;lexer;constructor(e){this.options=e||al}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:a9(e,` 140`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split(` 141`).map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join(` 142`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=a9(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:a9(t[0],` 143`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=a9(t[0],` 144`).split(` 145`),r="",n="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))a.push(e[s]),t=!0;else if(t)break;else a.push(e[s]);e=e.slice(s);let o=a.join(` 146`),l=o.replace(this.rules.other.blockquoteSetextReplace,` 147 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r} 148${o}`:o,n=n?`${n} 149${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,
1490===e.length)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let t=u.raw+` 150`+e.join(` 151`),a=this.blockquote(t);i[i.length-1]=a,r=r.substring(0,r.length-u.raw.length)+a.raw,n=n.substring(0,n.length-u.text.length)+a.text;break}if(u?.type==="list"){let t=u.raw+` 152`+e.join(` 153`),a=this.list(t);i[i.length-1]=a,r=r.substring(0,r.length-u.raw.length)+a.raw,n=n.substring(0,n.length-u.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(` 154`);continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;e;){let r=!1,n="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split(` 155`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(` 156`,1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,o=l.trimStart()):u?d=t[1].length+1:(d=(d=t[2].search(this.rules.other.nonSpaceChar))>4?1:d,o=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+` 157`,e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;e;){let h=e.split(` 158`,1)[0],p;if(c=h,p=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||s.test(c)||t.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())o+=` 159`+p.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;o+=` 160`+c}u||c.trim()||(u=!0),n+=h+` 161`,e=e.substring(h.length+1),l=p.slice(d)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0));let h=null,p;this.options.gfm&&(h=this.rules.other.listIsTask.exec(o))&&(p="[ ] "!==h[0],o=o.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:n,task:!!h,checked:p,loose:!1,text:o,tokens:[]}),i.raw+=n}let o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=a4(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 162`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<r.length;e++)a.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(a4(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 163`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=a9(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let r=0;for(let t=0;t<e.length;t++)if("\\"===e[t])t++;else if("("===e[t])r++;else if(")"===e[t]&&--r<0)return t;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),a7(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return a7(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,i,a,s=r,o=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(!(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(a=[...i].length,n[3]||n[4]){s+=a;continue}if((n[5]||n[6])&&r%3&&!((r+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);let t=[...n[0]][0].length,l=e.slice(0,r+n.index+t+a);if(Math.min(r,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return r="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])r="mailto:"+(e=t[0]);else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},st=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||al,this.options.tokenizer=this.options.tokenizer||new se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:ad,block:a1.normal,inline:a2.normal};this.options.pedantic?(t.block=a1.pedantic,t.inline=a2.pedantic):this.options.gfm&&(t.block=a1.gfm,this.options.breaks?t.inline=a2.breaks:t.inline=a2.gfm),this.tokenizer.rules=t}static get rules(){return{block:a1,inline:a2}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(ad.carriageReturn,` 164`),this.blockTokens(e,this.tokens);for(let e=0;
164e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){for(this.options.pedantic&&(e=e.replace(ad.tabCharGlobal," ").replace(ad.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let r=t.at(-1);1===n.raw.length&&void 0!==r?r.raw+=` 165`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(` 166`)?"":` 167`)+n.raw,r.text+=` 168`+n.text,this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(` 169`)?"":` 170`)+n.raw,r.text+=` 171`+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},t.push(n));continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,r=e.slice(1),n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){let a=t.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(` 172`)?"":` 173`)+n.raw,a.text+=` 174`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(n),r=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(` 175`)?"":` 176`)+n.raw,r.text+=` 177`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r=e,n=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(n=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(n=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,n.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(n=this.tokenizer.rules.inline.blockSkip.exec(r));)r=r.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="";for(;e;){let n;if(i||(a=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,a))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,r=e.slice(1),n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(s)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),i=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},sr=class{options;parser;constructor(e){this.options=e||al}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(ad.notSpaceStart)?.[0],i=e.replace(ad.endingNewline,"")+` 178`;return n?'<pre><code class="language-'+a3(n)+'">'+(r?i:a3(i,!0))+`</code></pre> 179`:"<pre><code>"+(r?i:a3(i,!0))+`</code></pre> 180`}blockquote({tokens:e}){return`<blockquote> 181${this.parser.parse(e)}</blockquote> 182`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 183`}hr(e){return`<hr> 184`}list(e){let t=e.ordered,r=e.start,n="";for(let t=0;t<e.items.length;t++){let r=e.items[t];n+=this.listitem(r)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+`> 185`+n+"</"+i+`> 186`}listitem(e){let t="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=r+" "+a3(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li> 187`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 188`}table(e){let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.tablecell(e.header[t]);t+=this.tablerow({text:r});let n="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];r="";for(let e=0;e<i.length;e++)r+=this.tablecell(i[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table> 189<thead> 190`+t+`</thead> 191`+n+`</table> 192`}tablerow({text:e}){return`<tr> 193${e}</tr> 194`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}> 195`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${a3(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=a6(e);if(null===i)return n;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+a3(t)+'"'),a+=">"+n+"</a>"}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=a6(e);if(null===i)return a3(r);e=i;let a=`<img src="${e}" alt="${r}"`;return t&&(a+=` title="${a3(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:a3(e.text)}},sn=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},si=class e{options;renderer;textRenderer;constructor(e){this.options=e||al,this.options.renderer=this.options.renderer||new sr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new sn}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){let r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){r+=e||"";continue}}switch(i.type){case"space":r+=this.renderer.space(i);continue;case"hr":r+=this.renderer.hr(i);continue;case"heading":r+=this.renderer.heading(i);continue;case"code":r+=this.renderer.code(i);continue;case"table":r+=this.renderer.table(i);continue;case"blockquote":r+=this.renderer.blockquote(i);continue;case"list":r+=this.renderer.list(i);continue;case"html":r+=this.renderer.html(i);continue;case"def":r+=this.renderer.def(i);continue;
195case"paragraph":r+=this.renderer.paragraph(i);continue;case"text":{let a=i,s=this.renderer.text(a);for(;n+1<e.length&&"text"===e[n+1].type;)a=e[++n],s+=` 196`+this.renderer.text(a);t?r+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):r+=s;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}parseInline(e,t=this.renderer){let r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=e||"";continue}}switch(i.type){case"escape":case"text":r+=t.text(i);break;case"html":r+=t.html(i);break;case"link":r+=t.link(i);break;case"image":r+=t.image(i);break;case"strong":r+=t.strong(i);break;case"em":r+=t.em(i);break;case"codespan":r+=t.codespan(i);break;case"br":r+=t.br(i);break;case"del":r+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}},sa=class{options;block;constructor(e){this.options=e||al}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?st.lex:st.lexInline}provideParser(){return this.block?si.parse:si.parseInline}},ss=new class{defaults=ao();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=si;Renderer=sr;TextRenderer=sn;Lexer=st;Tokenizer=se;Hooks=sa;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":for(let e of n.header)r=r.concat(this.walkTokens(e.tokens,t));for(let e of n.rows)for(let n of e)r=r.concat(this.walkTokens(n.tokens,t));break;case"list":r=r.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let i=e[n].flat(1/0);r=r.concat(this.walkTokens(i,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];r?t.renderers[e.name]=function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new sr(this.defaults);for(let r in e.renderer){if(!(r in t))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=e.renderer[r],i=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new se(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new sa;for(let r in e.hooks){if(!(r in t))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=e.hooks[r],i=t[r];sa.passThroughHooks.has(r)?t[r]=e=>{if(this.defaults.async&&sa.passThroughHooksRespectAsync.has(r))return Promise.resolve(n.call(t,e)).then(e=>i.call(t,e));let a=n.call(t,e);return i.call(t,a)}:t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return st.lex(e,t??this.defaults)}parser(e,t){return si.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?st.lex:st.lexInline,o=i.hooks?i.hooks.provideParser():e?si.parse:si.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=s(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let r=o(e,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return r=>{if(r.message+=` 197Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+a3(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function so(e,t){return ss.parse(e,t)}so.options=so.setOptions=function(e){return ss.setOptions(e),so.defaults=ss.defaults,al=so.defaults,so},so.getDefaults=ao,so.defaults=al,so.use=function(...e){return ss.use(...e),so.defaults=ss.defaults,al=so.defaults,so},so.walkTokens=function(e,t){return ss.walkTokens(e,t)},so.parseInline=ss.parseInline,so.Parser=si,so.parser=si.parse,so.Renderer=sr,so.TextRenderer=sn,so.Lexer=st,so.lexer=st.lex,so.Tokenizer=se,so.Hooks=sa,so.parse=so,so.options,so.setOptions,so.use,so.walkTokens,so.parseInline,si.parse,st.lex;var sl=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return aa((0,io.W)(t))},sc=(e,t,r)=>{let n="string"==typeof t?new Blob([t],{type:r}):t,i=URL.createObjectURL(n),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},su=/<pre(\s|>)/,sd=(0,o.createContext)({code:""}),sh=new class{async ensureHighlightersInitialized(e,t){var r,n;let[i,a]=e,s=function(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>(function(e,t){let r=function(e,t){let r=nI(t),n=function(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};nH(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:nE[r.bestEffortTarget]>
197=nE.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};nn(e,nF,n);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:n.subroutineRefMap};return nn(e,nq,a),nn(e,nW,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=n.strategy,e}(rV(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:nj}),{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=function(e,t){let r=nI(t),n=nE[r.target]>=nE.ES2024,i=nE[r.target]>=nE.ES2025,a=r.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];nn(e,n2,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)}
197,setHasCasedChar(){t.at(-1)?s=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},c=e,u={accuracy:r.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:n,verbose:r.verbose};function d(e){return u.lastNode=c,c=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(n5[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 n||(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&&n$(h._captureTransfers,e.transferTo,[]).push(t)}),h}(n,r),a=function(e,t){let r;let{hiddenCaptures:n,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(ng,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if("plugin"===i&&nc(e,np`\(\?\(DEFINE\)`,no.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let s=[],o=nc(e,np`\\[1-9]`,no.DEFAULT),l=new Map,c=[],u=!1,d=0,h=0;for(ny.lastIndex=0;r=ny.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:g,gRDepth:f}}=r;if("["===t)d++;else if(d)"]"===t&&d--;else{if(m){if(nw(m),u)throw Error(nk);if(o)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,r.index),l=e.slice(ny.lastIndex);if(nc(l,ng,no.DEFAULT))throw Error(nk);let c=+m-1;e=nx(t,l,c,!1,n,s,h),a=nv(a,t,c,s.length,0,h);break}if(g){nw(f);let d=!1;for(let e of c)if(e.name===g||e.num===+g){if(d=!0,e.hasRecursedWithin)throw Error(nk);break}if(!d)throw Error(np`Recursive \g cannot be used outside the referenced group "${"external"===i?g:np`\g<${g}&R=${f}>`}"`);let p=l.get(g),m=function(e,t){let r;let n=/\\?./gsu;n.lastIndex=t;let i=e.length,a=0,s=1;for(;r=n.exec(e);){let[e]=r;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)s++;else if(")"===e&&!--s){i=r.index;break}}return e.slice(t,i)}(e,p);if(o&&nc(m,np`${nf}|\((?!\?)`,no.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let b=e.slice(p,r.index),y=m.slice(b.length+t.length),k=s.length,w=+f-1,x=nx(b,y,w,!0,n,s,h);a=nv(a,b,w,s.length-k,k,h);let _=e.slice(0,p),v=e.slice(p+m.length);e=`${_}${x}${v}`,ny.lastIndex+=x.length-t.length-b.length-y.length,c.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)h++,l.set(String(h),ny.lastIndex),l.set(p,ny.lastIndex),c.push({num:h,name:p});else if("("===t[0]){let e="("===t;e&&(h++,l.set(String(h),ny.lastIndex)),c.push(e?{num:h}:{})}else")"===t&&c.pop()}}return n.push(...s),{pattern:e,captureTransfers:a,hiddenCaptures:n}}(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=function(e,t){let r;let n=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};let a="(?:(?=(",s=[0],o=[],l=0,c=0,u=NaN;do{let t;r=!1;let d=0,h=0,p=!1;for(nu.lastIndex=Number.isNaN(u)?0:u+a.length;t=nu.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)}`,r=!0,o.push(t),function(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}(n,t),i.size){let e=new Map;i.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),i=e}break}h--}}else u=g,p=!0}}while(r);return n.push(...o),{pattern:e=nl(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>s.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${s[r]}`}return`\\${r}`},no.DEFAULT),captureTransfers:i,hiddenCaptures:n}}(function(e){let t;if(!RegExp(`${nd}\\+`).test(e))return{pattern:e};let r=[],n=null,i=null,a="",s=0;for(nh.lastIndex=0;t=nh.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;
197else 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?n: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}nh.lastIndex+=t}else"("===c[0]?r.push(u):")"===c&&(n=r.length?r.pop():null)}a=c}return{pattern:e}}(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),o={pattern:s.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.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=n._strategy,a=o.pattern.length>=r.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 r.options?new ia(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)})(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},target:t.target}),{createScanner:e=>new is(e,t),createString:e=>({content:e})}}({forgiving:!0}),o=!this.lightHighlighter||this.lightTheme!==i,l=!this.darkHighlighter||this.darkTheme!==a;(o||l)&&this.loadedLanguages.clear();let c=!this.loadedLanguages.has(t);if(o?(this.lightHighlighter=await rf({themes:[i],langs:[t],engine:s}),this.lightTheme=i,this.loadedLanguages.add(t)):c&&await (null==(r=this.lightHighlighter)?void 0:r.loadLanguage(t)),l){let e=c?[...this.loadedLanguages,t]:Array.from(this.loadedLanguages);this.darkHighlighter=await rf({themes:[a],langs:e.length>0?e:[t],engine:s}),this.darkTheme=a}else c&&await (null==(n=this.darkHighlighter)?void 0:n.loadLanguage(t));c&&this.loadedLanguages.add(t)}async highlightCode(e,t,r,n){var i,a;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(r,t),await this.initializationPromise,this.initializationPromise=null;let s=e=>n?e.replace(su,'<pre class="'.concat(n,'"$1')):e,[o,l]=r,c=null==(i=this.lightHighlighter)?void 0:i.codeToHtml(e,{lang:t,theme:o}),u=null==(a=this.darkHighlighter)?void 0:a.codeToHtml(e,{lang:t,theme:l});return[sp(s(c)),sp(s(u))]}constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}},sp=e=>e.replace(/(<pre[^>]*)(style="[^"]*background[^";]*;?[^"]*")([^>]*>)/g,"$1$3"),sm=e=>{let{code:t,language:r,className:n,children:i,preClassName:a,...s}=e,[l,c]=(0,o.useState)(""),[u,d]=(0,o.useState)(""),h=(0,o.useRef)(!1),[p,m]=(0,o.useContext)(s1);return(0,o.useEffect)(()=>(h.current=!0,sh.highlightCode(t,r,[p,m],a).then(e=>{let[t,r]=e;h.current&&(c(t),d(r))}),()=>{h.current=!1}),[t,r,p,m,a]),(0,as.jsx)(sd.Provider,{value:{code:t},children:(0,as.jsxs)("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":r,children:[(0,as.jsxs)("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":r,children:[(0,as.jsx)("span",{className:"ml-1 font-mono lowercase",children:r}),(0,as.jsx)("div",{className:"flex items-center gap-2",children:i})]}),(0,as.jsx)("div",{className:"w-full",children:(0,as.jsxs)("div",{className:"min-w-full",children:[(0,as.jsx)("div",{className:sl("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:l},"data-code-block":!0,"data-language":r,...s}),(0,as.jsx)("div",{className:sl("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:u},"data-code-block":!0,"data-language":r,...s})]})})]})})},sg={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",da
197x:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",æè¨:"wy"},sf=e=>{let{onDownload:t,onError:r,language:n,children:i,className:a,code:s,...l}=e,c=(0,o.useContext)(sd).code,u=null!=s?s:c,d="file.".concat(n&&n in sg?sg[n]:"txt");return(0,as.jsx)("button",{className:sl("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",a),onClick:()=>{try{sc(d,u,"text/plain"),null==t||t()}catch(e){null==r||r(e)}},title:"Download file",type:"button",...l,children:null!=i?i:(0,as.jsx)(x,{size:14})})},sb=e=>{let{onCopy:t,onError:r,timeout:n=2e3,children:i,className:a,code:s,...l}=e,[c,u]=(0,o.useState)(!1),d=(0,o.useRef)(0),h=(0,o.useContext)(sd).code,p=null!=s?s:h,m=async()=>{var e;if("undefined"==typeof window||!(null!=(e=null==navigator?void 0:navigator.clipboard)&&e.writeText)){null==r||r(Error("Clipboard API not available"));return}try{c||(await navigator.clipboard.writeText(p),u(!0),null==t||t(),d.current=window.setTimeout(()=>u(!1),n))}catch(e){null==r||r(e)}};return(0,o.useEffect)(()=>()=>{window.clearTimeout(d.current)},[]),(0,as.jsx)("button",{className:sl("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",a),onClick:m,type:"button",...l,children:null!=i?i:(0,as.jsx)(c?_:v,{size:14})})},sy=!1,sk=async()=>
197{if(!sy){let e=(await Promise.all([r.e(91627),r.e(8448),r.e(50656)]).then(r.bind(r,50656))).default;return e.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0}),sy=!0,e}return(await Promise.all([r.e(91627),r.e(8448),r.e(50656)]).then(r.bind(r,50656))).default},sw=e=>{let{chart:t,className:r}=e,[n,i]=(0,o.useState)(null),[a,s]=(0,o.useState)(!0),[l,c]=(0,o.useState)(""),[u,d]=(0,o.useState)("");return((0,o.useEffect)(()=>{(async()=>{try{i(null),s(!0);let e=await sk(),r=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),n="mermaid-".concat(Math.abs(r),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:a}=await e.render(n,t);c(a),d(a)}catch(e){u||l||i(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{s(!1)}})()},[t]),!a||l||u)?!n||l||u?(0,as.jsx)("div",{"aria-label":"Mermaid chart",className:sl("my-4 flex justify-center",r),dangerouslySetInnerHTML:{__html:l||u},role:"img"}):(0,as.jsxs)("div",{className:sl("rounded-lg border border-red-200 bg-red-50 p-4",r),children:[(0,as.jsxs)("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",n]}),(0,as.jsxs)("details",{className:"mt-2",children:[(0,as.jsx)("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),(0,as.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:t})]})]}):(0,as.jsx)("div",{className:sl("my-4 flex justify-center p-4",r),children:(0,as.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,as.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),(0,as.jsx)("span",{className:"text-sm",children:"Loading diagram..."})]})})};function sx(e){var t,r;let n=[],i=[];for(let r of e.querySelectorAll("thead th"))n.push((null==(t=r.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];
197for(let n of t.querySelectorAll("td"))e.push((null==(r=n.textContent)?void 0:r.trim())||"");i.push(e)}return{headers:n,rows:i}}function s_(e){let{headers:t,rows:r}=e,n=e=>e.includes(",")||e.includes('"')||e.includes("\n")?'"'.concat(e.replace(/"/g,'""'),'"'):e,i=[];for(let e of(t.length>0&&i.push(t.map(n).join(",")),r))i.push(e.map(n).join(","));return i.join("\n")}function sv(e){let{headers:t,rows:r}=e;if(0===t.length)return"";let n=[],i=t.map(e=>e.replace(/\|/g,"\\|"));for(let e of(n.push("| ".concat(i.join(" | ")," |")),n.push("| ".concat(t.map(()=>"---").join(" | ")," |")),r)){let r=[...e];for(;r.length<t.length;)r.push("");let i=r.map(e=>e.replace(/\|/g,"\\|"));n.push("| ".concat(i.join(" | ")," |"))}return n.join("\n")}var sC=e=>{let{children:t,className:r,onCopy:n,onError:i,timeout:a=2e3,format:s="markdown"}=e,[l,c]=(0,o.useState)(!1),u=(0,o.useRef)(0),d=async e=>{var t;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.writeText)){null==i||i(Error("Clipboard API not available"));return}try{if(!l){let t=e.currentTarget.closest('[data-streamdown="table-wrapper"]'),r=null==t?void 0:t.querySelector("table");if(!r){null==i||i(Error("Table not found"));return}let o=sx(r),l="";switch(s){case"csv":default:l=s_(o);break;case"markdown":l=sv(o);break;case"text":l=s_(o).replace(/,/g," ")}await navigator.clipboard.writeText(l),c(!0),null==n||n(),u.current=window.setTimeout(()=>c(!1),a)}}catch(e){null==i||i(e)}};return(0,o.useEffect)(()=>()=>{window.clearTimeout(u.current)},[]),(0,as.jsx)("button",{className:sl("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",r),onClick:d,title:"Copy table as ".concat(s),type:"button",children:null!=t?t:(0,as.jsx)(l?_:v,{size:14})})},sS=e=>{let{children:t,className:r,onDownload:n,onError:i}=e,[a,s]=(0,o.useState)(!1),l=(0,o.useRef)(null),c=e=>{var t;try{let r=null==(t=l.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),a=null==r?void 0:r.querySelector("table");if(!a){null==i||i(Error("Table not found"));return}let o=sx(a),c="csv"===e?s_(o):sv(o);sc("table.".concat("csv"===e?"csv":"md"),c,"csv"===e?"text/csv":"text/markdown"),s(!1),null==n||n(e)}catch(e){null==i||i(e)}};return(0,o.useEffect)(()=>{let e=e=>{l.current&&!l.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,as.jsxs)("div",{className:"relative",ref:l,children:[(0,as.jsx)("button",{className:sl("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",r),onClick:()=>s(!a),title:"Download table",type:"button",children:null!=t?t:(0,as.jsx)(x,{size:14})}),a&&(0,as.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-white shadow-lg",children:[(0,as.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("csv"),type:"button",children:"CSV"}),(0,as.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("markdown"),type:"button",children:"Markdown"})]})]})},sN=/language-([^\s]+)/,sA={ol:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("ol",{className:sl("ml-4 list-outside list-decimal whitespace-normal",n),"data-streamdown":"ordered-list",...i,children:r})},li:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("li",{className:sl("py-1",n),"data-streamdown":"list-item",...i,children:r})},ul:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("ul",{className:sl("ml-4 list-outside list-disc whitespace-normal",n),"data-streamdown":"unordered-list",...i,children:r})},hr:e=>{let{node:t,className:r,...n}=e;return(0,as.jsx)("hr",{className:sl("my-6 border-border",r),"data-streamdown":"horizontal-rule",...n})},strong:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("span",{className:sl("font-semibold",n),"data-streamdown":"strong",...i,children:r})},a:e=>{let{node:t,children:r,className:n,href:i,...a}=e;return(0,as.jsx)("a",{className:sl("font-medium text-primary underline",n
197),"data-incomplete":"streamdown:incomplete-link"===i,"data-streamdown":"link",href:i,rel:"noreferrer",target:"_blank",...a,children:r})},h1:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("h1",{className:sl("mt-6 mb-2 font-semibold text-3xl",n),"data-streamdown":"heading-1",...i,children:r})},h2:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("h2",{className:sl("mt-6 mb-2 font-semibold text-2xl",n),"data-streamdown":"heading-2",...i,children:r})},h3:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("h3",{className:sl("mt-6 mb-2 font-semibold text-xl",n),"data-streamdown":"heading-3",...i,children:r})},h4:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("h4",{className:sl("mt-6 mb-2 font-semibold text-lg",n),"data-streamdown":"heading-4",...i,children:r})},h5:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("h5",{className:sl("mt-6 mb-2 font-semibold text-base",n),"data-streamdown":"heading-5",...i,children:r})},h6:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("h6",{className:sl("mt-6 mb-2 font-semibold text-sm",n),"data-streamdown":"heading-6",...i,children:r})},table:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsxs)("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[(0,as.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,as.jsx)(sC,{}),(0,as.jsx)(sS,{})]}),(0,as.jsx)("div",{className:"overflow-x-auto",children:(0,as.jsx)("table",{className:sl("w-full border-collapse border border-border",n),"data-streamdown":"table",...i,children:r})})]})},thead:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("thead",{className:sl("bg-muted/80",n),"data-streamdown":"table-header",...i,children:r})},tbody:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("tbody",{className:sl("divide-y divide-border bg-muted/40",n),"data-streamdown":"table-body",...i,children:r})},tr:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("tr",{className:sl("border-border border-b",n),"data-streamdown":"table-row",...i,children:r})},th:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("th",{className:sl("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",n),"data-streamdown":"table-header-cell",...i,children:r})},td:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("td",{className:sl("px-4 py-2 text-sm",n),"data-streamdown":"table-cell",...i,children:r})},blockquote:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("blockquote",{className:sl("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",n),"data-streamdown":"blockquote",...i,children:r})},code:e=>{var t,r,n;let{node:i,className:a,children:s,...l}=e;if((null==(t=null==i?void 0:i.position)?void 0:t.start.line)===(null==(r=null==i?void 0:i.position)?void 0:r.end.line))return(0,as.jsx)("code",{className:sl("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",a),"data-streamdown":"inline-code",...l,children:s});let c=null==a?void 0:a.match(sN),u=null!=(n=null==c?void 0:c.at(1))?n:"",d="";return(0,o.isValidElement)(s)&&s.props&&"object"==typeof s.props&&"children"in s.props&&"string"==typeof s.props.children?d=s.props.children:"string"==typeof s&&(d=s),"mermaid"===u?(0,as.jsxs)("div",{className:sl("group relative my-4 h-auto rounded-xl border p-4",a),"data-streamdown":"mermaid-block",children:[(0,as.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,as.jsx)(sf,{code:d,language:u}),(0,as.jsx)(sb,{code:d})]}),(0,as.jsx)(sw,{chart:d})]}):(0,as.jsxs)(sm,{className:sl("overflow-x-auto border-t",a),code:d,"data-language":u,"data-streamdown":"code-block",language:u,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:[(0,as.jsx)(sf,{code:d,language:u}),(0,as.jsx)(sb,{})]})},img:e=>{let{node:t,className:r,src:n,alt:i,...a}=e,s=async()=>{var e;if(n)try{let t=await (await fetch(n)).blob(),r=new URL(n,window.location.origin).pathname.split("/").pop()||"",a=r.includes(".")&&(null==(e=r.split(".").pop())?void 0:e.length)<=4,s="";if(a)s=r;else{let e=t.type,n="png";e.includes("jpeg")||e.includes("jpg")?n="jpg":e.includes("png")?n="png":e.includes("svg")?n="svg":e.includes("gif")?n="gif":e.includes("webp")&&(n="webp"),s="".concat((i||r||"image").replace(/\.[^/.]+$/,""),".").concat(n)}sc(s,t,t.type)}catch(e){console.error("Failed to download image:",e)}};return n?(0,as.jsxs)("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[(0,as.jsx)("img",{alt:i,className:sl("max-w-full rounded-lg",r),"data-streamdown":"image",src:n,...a}),(0,as.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),(0,as.jsx)("button",{className:sl("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:s,title:"Download image",type:"button",children:(0,as.jsx)(x,{size:14})})]}):null},pre:e=>{let{children:t}=e;return t},sup:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("sup",{className:sl("text-sm",n),"data-streamdown":"superscript",...i,children:r})},sub:e=>{let{node:t,children:r,className:n,...i}=e;return(0,as.jsx)("sub",{className:sl("text-sm",n),"data-streamdown":"subscript",...i,children:r})}},s$=e=>{let t=so.use({gfm:!0}).lexer(e).map(e=>e.raw),r=[];for(let e=0;e<t.length;e++){let n=t[e];if("$$"===n.trim()&&r.length>0){let e=r.at(-1),t=e.trimStart().startsWith("$$"),i=(e.match(/\$\$/g)||[]).length;if(t&&i%2==1){r[r.length-1]=e+n;continue}}if(r.length>0&&n.trimEnd().endsWith("$$")){let e=r.at(-1),t=e.trimStart().startsWith("$$"),i=(e.match(/\$\$/g)||[]).length,a=(n.match(/\$\$/g)||[]).length;if(t&&i%2==1&&!n.trimStart().startsWith("$$")&&1===a){r[r.length-1]=e+n;continue}}r.push(n)}return r},sE=/(!?\[)([^\]]*?)$/,sP=/(\*\*)([^*]*?)$/,sI=/(__)([^_]*?)$/,sT=/(\*\*\*)([^*]*?)$/,sL=/(\*)([^*]*?)$/,sR=/(_)([^_]*?)$/,sj=/(`)([^`]*?)$/,sM=/(~~)([^~]*?)$/,sO=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes("\n")},sG=e=>{let t=e.match(sE);if(t){if(t[1].startsWith("!")){let r=e.lastIndexOf(t[1]);return e.substring(0,r)}return"".concat(e,"](streamdown:incomplete-link)")}return e},sz=e=>{if(sO(e))return e;let t=e.match(sP);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;let n=e.lastIndexOf(t[1]),i=e.substring(0,n).lastIndexOf("\n"),a=e.substring(-1===i?0:i+1,n);if(/^[\s]*[-*+][\s]+$/.test(a)&&r.includes("\n"))return e;if((e.match(/\*\*/g)||[]).length%2==1)return"".concat(e,"**")}return e},sB=e=>{let t=e.match(sI);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;let n=e.lastIndexOf(t[1]),i=e.substring(0,n).lastIndexOf("\n"),a=e.substring(-1===i?0:i+1,n);if(/^[\s]*[-*+][\s]+$/.test(a)&&r.includes("\n"))return e;if((e.match(/__/g)||[]).length%2==1)return"".concat(e,"__")}return e},sD=e=>e.split("").reduce((t,r,n)=>{if("*"===r){let r=e[n-1],i=e[n+1];if("\\"===r)return t;let a=n;for(let t=n-1;t>=0;t--){if("\n"===e[t]){a=t+1;break}if(0===t){a=0;break}}if(""===e.substring(a,n).trim()&&(" "===i||" "===i))return t;if("*"!==r&&"*"!==i)return t+1}return t},0),sU=e=>{if(sO(e))return e;if(e.match(sL)){let t=-1;for(let r=0;r<e.length;r++)if("*"===e[r]&&"*"!==e[r-1]&&"*"!==e[r+1]){t=r;break}if(-1===t)return e;let r=e.substring(t+1);if(!r||/^[\s_~*`]*$/.test(r))return e;if(sD(e)%2==1)return"".concat(e,"*")}return e},sF=(e,t)=>{let r=!1,n=!1;for(let i=0;i<e.length&&i<t;i++){if("\\"===e[i]&&"$"===e[i+1]){i++;continue}"$"===e[i]&&("$"===e[i+1]?(n=!n,i++,r=!1):n||(r=!r))}return r||n},sq=e=>e.split("").reduce((t,r,n)=>{if("_"===r){let r=e[n-1],i=e[n+1];if("\\"===r||sF(e,n))return t;if("_"!==r&&"_"!==i)return t+1}return t},0),sW=e=>{if(sO(e))return e;if(e.match(sR)){let t=-1;for(let r=0;r<e.length;r++)if("_"===e[r]&&"_"!==e[r-1]&&"_"!==e[r+1]&&!sF(e,r)){t=r;break}if(-1===t)return e;let r=e.substring(t+1);if(!r||/^[\s_~*`]*$/.test(r))return e;if(sq(e)%2==1)return"".concat(e,"_")}return e},sH=(e,t)=>{let r="```"===e.substring(t,t+3),n=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return r||n||i},sV=e=>{let t=0;for(let r=0;r<e.length;r++)"`"===e[r]&&!sH(e,r)&&t++;return t},sZ=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes("\n"))return e.endsWith("``")&&!e.endsWith("```")?"".concat(e,"`"):e;let t=(e.match(/```/g)||[]).length;if(t>0&&t%2==0&&e.includes("\n")||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)return e;let r=e.match(sj);if(r&&t%2!=1){let t=r[2];if(!t||/^[\s_~*`]*$/.test(t))return e;if(sV(e)%2==1)return"".concat(e,"`")}return e},sQ=e=>{let t=e.match(sM);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;if((e.match(/~~/g)||[]).length%2==1)return"".concat(e,"~~")}return e},sX=e=>{if((e.match(/\$\$/g)||[]).length%2==0)return e;let t=e.indexOf("$$");return -1===t||-1===e.indexOf("\n",t)||e.endsWith("\n")?"".concat(e,"$$"):"".concat(e,"\n$$")},sJ=e=>{let t=0;for(let r of e.match(/\*+/g)||[]){let e=r.length;e>=3&&(t+=Math.floor(e/3))}return t},sK=e=>{if(sO(e)||/^\*{4,}$/.test(e))return e;let t=e.match(sT);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;if(sJ(e)%2==1)return"".concat(e,"***")}return e}
197,sY=e=>{if(!e||"string"!=typeof e)return e;let t=e,r=sG(t);return r.endsWith("](streamdown:incomplete-link)")?r:t=sX(t=sQ(t=sZ(t=sW(t=sU(t=sB(t=sz(t=sK(t=r))))))))},s0=(h.default||h)(l.UG),s1=(0,o.createContext)(["github-light","github-dark"]),s2={singleDollarTextMath:!1},s5={},s8=(0,o.memo)(e=>{let{content:t,shouldParseIncompleteMarkdown:r,...n}=e,i=(0,o.useMemo)(()=>"string"==typeof t&&r?sY(t.trim()):t,[t,r]);return(0,as.jsx)(s0,{...n,children:i})},(e,t)=>e.content===t.content);s8.displayName="Block";var s3=(0,o.memo)(e=>{let{children:t,allowedImagePrefixes:r=["*"],allowedLinkPrefixes:n=["*"],defaultOrigin:i,parseIncompleteMarkdown:a=!0,components:s,rehypePlugins:l,remarkPlugins:h,className:p,shikiTheme:m=["github-light","github-dark"],...g}=e,f=(0,o.useId)(),b=(0,o.useMemo)(()=>s$("string"==typeof t?t:""),[t]),y=(0,o.useMemo)(()=>()=>(0,c.Z)({errorColor:"var(--color-muted-foreground)"}),[]);return(0,as.jsx)(s1.Provider,{value:m,children:(0,as.jsx)("div",{className:sl("space-y-4",p),...g,children:b.map((e,t)=>(0,as.jsx)(s8,{allowedImagePrefixes:r,allowedLinkPrefixes:n,components:{...sA,...s},content:e,defaultOrigin:i,rehypePlugins:[y,...null!=l?l:[]],remarkPlugins:[[u.Z,s5],[d.Z,s2],...null!=h?h:[]],shouldParseIncompleteMarkdown:a},"".concat(f,"-block_").concat(t)))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme);s3.displayName="Streamdown"}}]);
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.