Plugin Directory

Changeset 3073927

Timestamp:
04/19/2024 03:43:36 PM (4 months ago)
Author:
kbat82
Message:

Update to version 1.2.2 from GitHub

Location:
pattern-css
Files:
4 added
6 deleted
30 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pattern-css/tags/1.2.2/.wp-env.json

    r2988734 r3073927  
    11{
    2     "core": "WordPress/WordPress#6.2",
     2    "core": ,
    33    "plugins": ["."]
    44}
  • pattern-css/tags/1.2.2/build/index.asset.php

    r3039810 r3073927  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => 'f05d91c41934182ea193');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => '');
  • pattern-css/tags/1.2.2/build/index.css

    r3039810 r3073927  
    1 .pattern-css-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.pattern-css-editor *,.pattern-css-editor :after,.pattern-css-editor :before{box-sizing:border-box!important}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pattern-css-editor :is(.sr-only){clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.pattern-css-editor :is(.absolute){position:absolute!important}.pattern-css-editor :is(.relative){position:relative!important}.pattern-css-editor :is(.right-px){right:1px!important}.pattern-css-editor :is(.top-px){top:1px!important}.pattern-css-editor :is(.m-0){margin:0!important}.pattern-css-editor :is(.my-2){margin-bottom:.5rem!important;margin-top:.5rem!important}.pattern-css-editor :is(.-mt-2){margin-top:-.5rem!important}.pattern-css-editor :is(.mt-2){margin-top:.5rem!important}.pattern-css-editor :is(.block){display:block!important}.pattern-css-editor :is(.flex){display:flex!important}.pattern-css-editor :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.pattern-css-editor :is(.flex-col){flex-direction:column!important}.pattern-css-editor :is(.gap-0){gap:0!important}.pattern-css-editor :is(.gap-1){gap:.25rem!important}.pattern-css-editor :is(.gap-2){gap:.5rem!important}.pattern-css-editor :is(.border){border-width:1px!important}.pattern-css-editor :is(.border-solid){border-style:solid!important}.pattern-css-editor :is(.border-gray-600){--tw-border-opacity:1;border-color:rgb(148 148 148/var(--tw-border-opacity))!important}.pattern-css-editor :is(.p-1){padding:.25rem!important}.pattern-css-editor :is(.px-2){padding-left:.5rem!important;padding-right:.5rem!important}.pattern-css-editor :is(.py-1){padding-bottom:.25rem!important;padding-top:.25rem!important}.pattern-css-editor :is(.py-1\.5){padding-bottom:.375rem!important;padding-top:.375rem!important}.pattern-css-editor :is(.font-jetbrains-mono){font-family:pcss-jetbrains-mono,monospace!important}.pattern-css-editor :is(.text-xs){font-size:.75rem!important;line-height:1rem!important}.pattern-css-editor :is(.text-gray-600){--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))!important}.pattern-css-editor :is(.text-gray-700){--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))!important}.pattern-css-editor :is(.text-wp-theme-500){color:var(--wp-admin-theme-color)!important}.pattern-css-editor :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.pattern-css-editor pre,.pattern-css-editor pre *{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}.pattern-css-editor pre,.pattern-css-editor textarea{border-radius:0!important;font-size:.875rem!important;line-height:1.25rem!important;margin:0!important;text-align:left!important}.pattern-css-editor pre:focus,.pattern-css-editor textarea:focus{border-radius:0!important;outline:2px solid transparent!important;outline-offset:2px!important}.pattern-css-editor pre,.pattern-css-editor textarea{direction:ltr!important}.pattern-css-editor .code-preview code{background-color:transparent!important;direction:ltr!important;font-size:.875rem!important;line-height:1.25rem!important;margin:0!important;text-align:left!important;width:100%!important}.pattern-css-editor pre .line-error:after{--tw-bg-opacity:0.3;background-color:rgb(239 68 68/var(--tw-bg-opacity))!important;content:""!important;font-size:.875rem!important;height:1.25rem!important;left:0!important;line-height:1.25rem!important;position:absolute!important;right:0!important}.pattern-css-editor .wp-focus:focus-within{border-color:var(
     1.pattern-css-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.pattern-css-editor *,.pattern-css-editor :after,.pattern-css-editor :before{box-sizing:border-box!important}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: !important}.pattern-css-editor .wp-focus:focus-within{border-color:var(
    22        --wp-components-color-accent,var(--wp-admin-theme-color,#007cba)
    33    )!important;box-shadow:0 0 0 .5px var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))!important;outline:2px solid transparent!important}@font-face{font-family:pcss-jetbrains-mono;src:url(fonts/pcss-jetbrains-mono.1e66c47a.woff2) format("woff2")}
  • pattern-css/tags/1.2.2/build/index.js

    r3039810 r3073927  
    1 (()=>{var e,t,n,a,s={460:function(e,t,n){"use strict";var a,s=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,s)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(196)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),h="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),d="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(d,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(d," {\n    color: transparent !important;\n  }\n\n  .").concat(d,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,a=e.selectionStart,s=e.selectionEnd;t._recordChange({value:n,selectionStart:a,selectionEnd:s})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var a,s,o;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var h=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&h-d.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(a=t._getLines(d.value,d.selectionStart).pop())||void 0===a?void 0:a.match(m),f=null===(s=t._getLines(e.value,e.selectionStart).pop())||void 0===s?void 0:s.match(m);if((null==g?void 0:g[1])&&(null===(o=null==f?void 0:f[1])||void 0===o?void 0:o.startsWith(g[1])))return void(t._history.stack[t._history.offset]=r(r({},e),{timestamp:h}))}}t._history.stack.push(r(r({},e),{timestamp:h})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,a=t._history.stack[t._history.offset];a&&n&&(t._history.stack[t._history.offset]=r(r({},a),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a-1];s&&(t._updateInput(s),t._history.offset=Math.max(a-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a+1];s&&(t._updateInput(s),t._history.offset=Math.min(a+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,a=n.tabSize,s=n.insertSpaces,r=n.ignoreTabKey,o=n.onKeyDown;if(!o||(o(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,d=(s?" ":"\t").repeat(a);if(9===e.keyCode&&!r&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(_=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(d)?e.substring(d.length):e})).join("\n");if(l!==f){var y=_[m];t._applyEdits({value:f,selectionStart:(null==y?void 0:y.startsWith(d))?c-d.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var _,b=(_=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;y=_[b],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=b&&t<=v?d+e:e})).join("\n"),selectionStart:y&&/\S/.test(y)?c+d.length:c,selectionEnd:u+d.length*(v-b+1)})}else{var w=c+d.length;t._applyEdits({value:l.substring(0,c)+d+l.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=c!==u;l.substring(0,c).endsWith(d)&&!k&&(e.preventDefault(),w=c-d.length,t._applyEdits({value:l.substring(0,c-d.length)+l.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var N=t._getLines(l,c).pop(),S=null==N?void 0:N.match(/^\s+/);if(null==S?void 0:S[0]){e.preventDefault();var L="\n"+S[0];w=c+L.length,t._applyEdits({value:l.substring(0,c)+L+l.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var P=void 0;57===e.keyCode&&e.shiftKey?P=["(",")"]:219===e.keyCode?P=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?P=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(P=["`","`"]),c!==u&&P&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+P[0]+l.substring(c,u)+P[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(h?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(h?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||h&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,a=n.value,s=n.selectionStart,r=n.selectionEnd;t._recordChange({value:a,selectionStart:s,selectionEnd:r},!0),t.props.onValueChange(a)},t._history={stack:[],offset:-1},t._input=null,t}return s(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.style,s=t.padding,o=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,h=t.disabled,g=t.form,y=t.maxLength,_=t.minLength,b=t.name,v=t.placeholder,w=t.readOnly,k=t.required,N=t.onClick,S=t.onFocus,L=t.onBlur,P=t.onKeyUp,C=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),j=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),x={paddingTop:"object"==typeof s?s.top:s,paddingRight:"object"==typeof s?s.right:s,paddingBottom:"object"==typeof s?s.bottom:s,paddingLeft:"object"==typeof s?s.left:s},A=o(n);return u.createElement("div",r({},j,{style:r(r({},f.container),a)}),u.createElement("pre",r({className:C,"aria-hidden":"true",style:r(r(r({},f.editor),f.highlight),x)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),u.createElement("textarea",{ref:function(t){return e._input=t},style:r(r(r({},f.editor),f.textarea),x),className:d+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:N,onKeyUp:P,onFocus:S,onBlur:L,disabled:h,form:g,maxLength:y,minLength:_,name:b,placeholder:v,readOnly:w,required:k,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},250:(e,t,n)=>{"use strict";var a=n(196),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,o=a.useEffect,i=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=r({inst:{value:n,getSnapshot:t}}),s=a[0].inst,u=a[1];return i((function(){s.value=n,s.getSnapshot=t,c(s)&&u({inst:s})}),[e,n,t]),o((function(){return c(s)&&u({inst:s}),e((function(){c(s)&&u({inst:s})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},688:(e,t,n)=>{"use strict";e.exports=n(250)},930:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const s=a(n(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,a=e.length;n<a;n++){const s=e.charCodeAt(n);let r=s,o=!1;if(s>=55296&&s<=56319&&n+1<a){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(s-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),a=n!==t,s=a?new Uint32Array(t+1):null;a&&(s[t]=n);const r=a?new Uint32Array(n+1):null;a&&(r[n]=t);const o=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}a&&(s[n]=l,u&&(s[n+1]=l),c<=127?r[l+0]=n:c<=2047?(r[l+0]=n,r[l+1]=n):c<=65535?(r[l+0]=n,r[l+1]=n,r[l+2]=n):(r[l+0]=n,r[l+1]=n,r[l+2]=n,r[l+3]=n)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}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===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let a=0,s=e.length;a<s;a++){const s=new i(e[a]);t[a]=s.createString(r),n[a]=s.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const s=r._omalloc(4*e.length);r.HEAPU32.set(n,s/4);const o=r._createOnigScanner(a,s,e.length);for(let n=0,a=e.length;n<a;n++)r._ofree(t[n]);r._ofree(s),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let a=o,s=0;if("number"==typeof n?(8&n&&(a=!0),s=n):"boolean"==typeof n&&(a=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,a,s);return e.dispose(),n}return this._findNextMatchSync(e,t,a,s)}_findNextMatchSync(e,t,n,a){const s=this._onigBinding;let r;if(r=n?s._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):s._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=s.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:n,end:a,length:a-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,n,a){(0,s.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),a),{}}}).then((e=>{r=e,n()}))}(t,n,a,o),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,n=a}));var s,r=Object.assign({},a),o=[];s=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||P(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=a.print||console.log.bind(console),u=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&(o=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(i=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var p,h,d,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var a=t+n,s=t;e[s]&&!(s>=a);)++s;if(s-t>16&&e.buffer&&g)return g.decode(e.subarray(t,s));for(var r="";t<s;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function y(e){p=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=h=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=d=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var _=[],b=[],v=[];function w(e){_.unshift(e)}function k(e){v.unshift(e)}var N=0,S=null,L=null;function P(e){a.onAbort&&a.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var C,j;function x(e){return e.startsWith("data:application/octet-stream;base64,")}function A(e){try{if(e==C&&i)return new Uint8Array(i);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){P(e)}}function T(e){for(;e.length>0;)e.shift()(a)}function E(e){try{return l.grow(e-p.byteLength+65535>>>16),y(l.buffer),1}catch(e){}}x(C="onig.wasm")||(C=function(e){return a.locateFile?a.locateFile(e,""):""+e}(C)),j="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var I,B={emscripten_get_now:j,emscripten_memcpy_big:function(e,t,n){h.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=h.length,a=2147483648;if((e>>>=0)>a)return!1;for(var s=1;s<=4;s*=2){var r=n*(1+.2/s);if(r=Math.min(r,e+100663296),E(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,a){for(var s=0,r=0;r<n;r++){var o=d[t>>2],i=d[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,h[o+l]);s+=i}return d[a>>2]=s,0}};function M(e){function n(){I||(I=!0,a.calledRun=!0,m||(T(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());T(v)}()))}e=e||o,N>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)w(a.preRun.shift());T(_)}(),N>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:B,wasi_snapshot_preview1:B};function t(e,t){var n=e.exports;a.asm=n,y((l=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(N--,a.monitorRunDependencies&&a.monitorRunDependencies(N),0==N&&(null!==S&&(clearInterval(S),S=null),L)){var t=L;L=null,t()}}()}function s(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return A(C)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),P(e)}))}if(N++,a.monitorRunDependencies&&a.monitorRunDependencies(N),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||x(C)||"function"!=typeof fetch?r(s):fetch(C,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(s)}))}))).catch(n)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?f(h,e,t):""},L=function e(){I||M(),I||(L=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(770);var e,t},e.exports=t()},190:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,a,s,r,o,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),h=n.getForeground(e),d=n.getBackground(e);return 0!==t&&(l=t),8!==a&&(c=a),null!==s&&(u=s?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(d=i),(l<<0|c<<8|u<<10|p<<11|h<<15|d<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=n(878);class s{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=s;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new s(t,n)})),this._defaultAttributes=new s(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new s(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=n(350),s=n(36),r=n(736),o=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function h(e,t,n,a,s){const o=r.createMatchers(t,d),l=i.RuleFactory.getCompiledRuleId(n,a,s.repository);for(const n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:s,priority:n.priority})}function d(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let a=n;a<t.length;a++)if(m(t[a],e))return n=a+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,a,s,r,o,i){return new g(e,t,n,a,s,r,o,i)};class g{constructor(e,t,n,a,s,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const e of Object.keys(s)){const t=r.createMatchers(e,d);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const a=n.injections;if(a)for(let t in a)h(e,t,a[t],this,n);const s=this._grammarRepository.injections(t);s&&s.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&h(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=s.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new b(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,l,r,0,t,u,!0,a);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new y(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const a=n.getMetadataForScope(e),s=new l.ScopeStack(null,e),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(t,a,r);return new y(null,s,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let a=-1,r=0,o=0;return null!==n&&(a=n.fontStyle,r=n.foregroundId,o=n.backgroundId),s.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const n=e.split(/ /g);let a=this;for(const e of n)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,n){const a=n.getMetadataForScope(t),s=e.scopePath.push(t),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,s,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class _{constructor(e,t,n,a,s,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,a,s,r,o){return new _(this,e,t,n,a,s,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,d).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,d).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class b{constructor(e,t,n,s){this.balancedBracketSelectors=s,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=s.EncodedTokenAttributes.set(n,0,s.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=s.EncodedTokenAttributes.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=b},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=n(878);class s{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=s;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof s?c({baseGrammar:o,selfGrammar:r},a):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=n.injections(e.scopeName);if(i)for(const e of i)a.add(new s(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},n);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const s={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?l(p.ruleName,s,n):c(s,n)}else 4===p.kind?n.add(new r(p.scopeName,p.ruleName)):n.add(new s(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new s(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof s){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class d{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=d;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new d(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new g(n,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=n(350),s=n(44),r=n(792),o=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,s,l,p,d,m){const g=t.content.length;let f=!1,y=-1;if(d){const o=function(e,t,n,s,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const n=t.getRule(e);n instanceof r.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=u(p.rule,e,p.stack.endRule,n,s===l),m=c.findNextMatchSync(t,s,d);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(m.ruleId!==r.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),h(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>s&&(s=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:s,anchorPosition:l,isFirstLine:n}}(e,t,n,s,l,p);l=o.stack,s=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const _=Date.now();for(;!f;){if(0!==m&&Date.now()-_>m)return new i(l,!0);b()}return new i(l,!1);function b(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${s}: |${t.content.substr(s).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,s,r,i){const l=function(e,t,n,s,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,r.endRule,n,s===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const d=u.findNextMatchSync(t,s,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${s}, anchorPosition: ${i})`),console.log(u.toString()),d&&console.log(`matched rule id: ${d.ruleId} from ${d.captureIndices[0].start} to ${d.captureIndices[0].end}`)}return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,s,r,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,s,r,o,i){let l,u=Number.MAX_VALUE,p=null,h=0;const d=o.contentNameScopesList.getScopeNames();for(let o=0,m=e.length;o<m;o++){const m=e[o];if(!m.matcher(d))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:y}=c(g,t,null,s,r===i),_=f.findNextMatchSync(n,r,y);if(!_)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const b=_.captureIndices[0].start;if(!(b>=u)&&(u=b,p=_.captureIndices,l=_.ruleId,h=m.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,s,r,i);if(!p)return l;if(!l)return p;const h=l.captureIndices[0].start,d=p.captureIndices[0].start;return d<h||p.priorityMatch&&d===h?p:l}(e,t,n,s,l,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,d=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>s;if(d===r.endRuleId){const r=l.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),h(e,t,n,l,p,r.endCaptures,u),p.produce(l,u[0].end);const o=l;if(l=l.parent,y=o.getAnchorPos(),!m&&o.getEnterPos()===s)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,p.produce(l,g),void(f=!0)}else{const o=e.getRule(d);p.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),_=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(d,s,y,u[0].end===g,null,_,_),o instanceof r.BeginEndRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName+" - "+s.debugBeginRegExp),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.endHasBackReferences&&(l=l.withEndRule(s.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.whileHasBackReferences&&(l=l.withEndRule(s.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const s=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+s.debugName+" - "+s.debugMatchRegExp),h(e,t,n,l,p,s.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>s&&(s=u[0].end,n=!1)}}function c(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileAG(t,n,s,r),findOptions:0}}function u(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileWhileAG(t,n,s,r),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function h(e,t,n,a,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,m.start):r.produce(a,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),h=o.pushAttributed(p,e),d=a.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,h),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,d,r,!1,0),s.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new d(t,m.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class d{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=d},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),l=new s,c=0,u=null,p=[],h=[];function d(){p.push(c),h.push(u)}function m(){c=p.pop(),u=h.pop()}function g(e){n(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),d(),c=1;continue}if(2===l.type){u=[],d(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||g("expected colon"),r(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,d(),c=4,u=t;continue}if(3===l.type){let n={};o&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,d(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),d(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),d(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class s{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,s=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(a=s.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===a){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(a=s.charCodeAt(r),r++,l++,92!==a){if(34===a)break}else r++,l++}t.value=s.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,l++;else if(123===a)t.type=3,r++,l++;else if(93===a)t.type=4,r++,l++;else if(125===a)t.type=5,r++,l++;else if(58===a)t.type=6,r++,l++;else if(44===a)t.type=7,r++,l++;else if(110===a){if(t.type=8,r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;r++,l++}else if(116===a){if(t.type=9,r++,l++,a=s.charCodeAt(r),114!==a)return!1;if(r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else if(102===a){if(t.type=10,r++,l++,a=s.charCodeAt(r),97!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),115!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(a=s.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=s.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=n(391),o=n(50),i=n(652),l=n(583),c=n(965);s(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new r.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,a,s){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,n,a,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,s)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],s=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}(e);let r=s.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=s.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=s.next()}return a;function o(){if("-"===r){r=s.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=s.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=s.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=s.next()),e}if(n(r)){const e=[];do{e.push(r),r=s.next()}while(n(r));return n=>t(e,n)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=n(69),s=n(350),r=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,o=t,s.DebugFlags.InDebugMode?r.parseJSON(n,o,!0):JSON.parse(n)):function(e,t){return s.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var n,o}},69:(e,t)=>{function n(e,t,n){const a=e.length;let s=0,r=1,o=0;function i(t){if(null===n)s+=t;else for(;t>0;)10===e.charCodeAt(s)?(s++,r++,o=0):(s++,o++),t--}function l(e){null===n?s=e:i(e-s)}function c(){for(;s<a;){let t=e.charCodeAt(s);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(s,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,s);l(-1!==n?n+t.length:a)}function h(t){let n=e.indexOf(t,s);if(-1!==n){let a=e.substring(s,n);return l(n+t.length),a}{let t=e.substr(s);return l(a),t}}a>0&&65279===e.charCodeAt(0)&&(s=1);let d=0,m=null,g=[],f=[],y=null;function _(e,t){g.push(d),f.push(m),d=e,m=t}function b(){if(0===g.length)return v("illegal state stack");d=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+s+": "+t+" ~~~"+e.substr(s,50)+"~~~")}const w=function(){if(null===y)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m[y]=e,y=null,_(1,e)},k=function(){if(null===y)return v("missing <key>");let e=[];m[y]=e,y=null,_(2,e)},N=function(){let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m.push(e),_(1,e)},S=function(){let e=[];m.push(e),_(2,e)};function L(){if(1!==d)return v("unexpected </dict>");b()}function P(){return 1===d||2!==d?v("unexpected </array>"):void b()}function C(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function j(e){if(isNaN(e))return v("cannot parse float");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function x(e){if(isNaN(e))return v("cannot parse integer");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function A(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function T(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function E(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function R(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;s<a&&(c(),!(s>=a));){const l=e.charCodeAt(s);if(i(1),60!==l)return v("expected <");if(s>=a)return v("unexpected end of input");const h=e.charCodeAt(s);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),L();continue}if(u("array")){p(">"),P();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===d?w():2===d?N():(m={},null!==n&&(m[n]={filename:t,line:r,char:o}),_(1,m)),g.isClosed&&L();continue;case"array":1===d?k():2===d?S():(m=[],_(2,m)),g.isClosed&&P();continue;case"key":I=O(g),1!==d?v("unexpected <key>"):null!==y?v("too many <key>"):y=I;continue;case"string":C(O(g));continue;case"real":j(parseFloat(O(g)));continue;case"integer":x(parseInt(O(g),10));continue;case"date":A(new Date(O(g)));continue;case"data":T(O(g));continue;case"true":O(g),E(!0);continue;case"false":O(g),E(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var I;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return n(e,t,a)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,s,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,n,s,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=n(878),s=n(965),r=/\\(\d+)/,o=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,s){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,a,s){super(e,t,n,null),this._match=new m(a,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,a,s,r,o,i,l,c){super(e,t,n,a),this._begin=new m(s,this.id),this.beginCaptures=r,this._end=new m(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,n,a,s,r,o,i,l,c){super(e,n,a,s),this._begin=new m(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class d{static createCaptureRule(e,t,n,a,s){return e.registerRule((e=>new l(t,e,n,a,s)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((s=>{if(e.id=s,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,d._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=a.mergeObjects({},n,e.repository));let s=e.patterns;return void 0===s&&e.include&&(s=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,d._compilePatterns(s,t,n))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,d._compileCaptures(e.whileCaptures||e.captures,t,n),d._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,d._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,d._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let a=[];if(e){let s=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>s&&(s=e)}for(let e=0;e<=s;e++)a[e]=null;for(const s in e){if("$vscodeTextmateLocation"===s)continue;const r=parseInt(s,10);let o=0;e[s].patterns&&(o=d.getCompiledRuleId(e[s],t,n)),a[r]=d.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,o)}}return a}static _compilePatterns(e,t,n){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=s.parseInclude(o.include);switch(e.kind){case 0:case 1:i=d.getCompiledRuleId(n[o.include],t,n);break;case 2:let a=n[e.ruleName];a&&(i=d.getCompiledRuleId(a,t,n));break;case 3:case 4:const s=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(s,n);if(l)if(r){let e=l.repository[r];e&&(i=d.getCompiledRuleId(e,t,l.repository))}else i=d.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=d.getCompiledRuleId(o,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=d;class m{constructor(e,t){if(e){const t=e.length;let n=0,a=[],s=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(n,r)),a.push("$(?!\\n)(?<!\\n)"),n=r+2):"A"!==t&&"G"!==t||(s=!0),r++}this.hasAnchor=s,0===n?this.source=e:(a.push(e.substring(n,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,a,s=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),s[e]=n,r[e]=n,o[e]=n,i[e]=n,"\\"===n&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(s[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class s{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(n,l.getId(r),l.getId(o)),d=new h(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];d.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new s(l,c,d)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,a=t[n];for(;e;){if(o(e.scopeName,a)){if(n++,n===t.length)return!0;a=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=s;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new r(t,e[n]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],s=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),n[s++]=new c(o,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,a,s,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=s,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new 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)}}t.ColorMap=u;class p{constructor(e,t,n,a,s){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=a,this.background=s}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,a=t.parentScopes;let s=null===n?0:n.length,r=null===a?0:a.length;if(s===r)for(let e=0;e<s;e++){const t=n[e].length,s=a[e].length;if(t!==s)return s-t}return r-s}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,a=e.indexOf(".");return-1===a?(t=e,n=""):(t=e.substring(0,a),n=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,a,s,r){if(""===t)return void this._doInsertHere(e,n,a,s,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,n,a,s,r)}_doInsertHere(e,t,n,s,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,s,r)}-1===n&&(n=this._mainRule.fontStyle),0===s&&(s=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,s,r))}else this._mainRule.acceptOverwrite(e,n,s,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=n(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=n(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function s(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,n){return e.replace(a,((e,a,s,r)=>{let o=n[parseInt(a||s,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=s,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let a=0;a<n;a++){let n=s(e[a],t[a]);if(0!==n)return n}return 0}return n-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(787)})()},959:(e,t,n)=>{"use strict";e.exports=n.p+"9a7a2ee83f5af0fd4351.wasm"},196:e=>{"use strict";e.exports=window.React},799:()=>{},318:()=>{}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return s[e].call(n.exports,n,n.exports,o),n.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="pattern-css:",o.l=(e,t,s,r)=>{if(n[e])n[e].push(t);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+s){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",a+s),i.src=e),n[e]=[t];var h=(t,a)=>{i.onerror=i.onload=null,clearTimeout(d);var s=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((e=>e(a))),t)return t(a)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&!e;)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=document.baseURI||self.location.href;var e={826:0};o.f.j=(t,n)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var s=new Promise(((n,s)=>a=e[t]=[n,s]));n.push(a[2]=s);var r=o.p+o.u(t),i=new Error;o.l(r,(n=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",i.name="ChunkLoadError",i.type=s,i.request=r,a[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,s,[r,i,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);l&&l(o)}for(t&&t(n);c<r.length;c++)s=r[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=globalThis.webpackChunkpattern_css=globalThis.webpackChunkpattern_css||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.wp.hooks;var t=o(196);const n=window.wp.blockEditor,a=window.wp.components,s=window.wp.element,r=window.wp.data,i=window.wp.escapeHtml,l=window.wp.i18n,c=window.wp.htmlEntities;var u=o(460),p=o.n(u),h=o(930),d=o(190),m="/";const g=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var f,y,_,b,v=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(v||{});class w{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=w.getLanguageId(e),n=w.getTokenType(e),a=w.getFontStyle(e),s=w.getForeground(e),r=w.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:a,foreground:s,background:r})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,a,s,r){let o=w.getLanguageId(e),i=w.getTokenType(e),l=w.getFontStyle(e),c=w.getForeground(e),u=w.getBackground(e);return 0!==t&&(o=t),0!==n&&(i=8===n?0:n),-1!==a&&(l=a),0!==s&&(c=s),0!==r&&(u=r),(o<<0|i<<8|l<<11|(w.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function k(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function N(e){return e.startsWith("./")?e.slice(2):e}function S(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function L(...e){return e.map(k).map(N).join("/")}function P(e){return 32===e||9===e}function C(e){return 10===e||13===e}function j(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(f||(f={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(y||(y={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(_||(_={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(b||(b={}));const x=function(e,t=[],n=y.DEFAULT){let a=null,s=[];const r=[];function o(e){Array.isArray(s)?s.push(e):null!==a&&(s[a]=e)}return function(e,t,n=y.DEFAULT){const a=function(e,t=!1){const n=e.length;let a=0,s="",r=0,o=16,i=0,l=0,c=0,u=0,p=0;function h(t,n){let s=0,r=0;for(;s<t||!n;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,s++}return s<t&&(r=-1),r}function d(){if(s="",p=0,r=a,l=i,u=c,a>=n)return r=n,o=17;let t=e.charCodeAt(a);if(P(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(P(t));return o=15}if(C(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),i++,c=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,s=function(){let t="",s=a;for(;;){if(a>=n){t+=e.substring(s,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(s,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(C(r)){t+=e.substring(s,a),p=2;break}p=6}a++}else{if(t+=e.substring(s,a),a++,a>=n){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}s=a}}return t}(),o=10;case 47:const l=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<n&&!C(e.charCodeAt(a));)a++;return s=e.substring(l,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=n-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,C(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,c=a)}return r||(a++,p=1),s=e.substring(l,a),o=13}return s+=String.fromCharCode(t),a++,o=16;case 45:if(s+=String.fromCharCode(t),a++,a===n||!j(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&j(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&j(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&j(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&j(e.charCodeAt(a))){for(a++;a<e.length&&j(e.charCodeAt(a));)a++;n=a}else p=3;return e.substring(t,n)}(),o=11;default:for(;a<n&&m(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(s=e.substring(r,a),s){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return s+=String.fromCharCode(t),a++,o=16}}function m(e){if(P(e)||C(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,s="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:()=>o,getTokenValue:()=>s,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>l,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}(e,!1),s=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}const c=o(t.onObjectBegin),u=l(t.onObjectProperty),p=r(t.onObjectEnd),h=o(t.onArrayBegin),d=r(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=r(t.onComment),_=i(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function w(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:b||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:b?k(10):f();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function N(e){const t=a.getTokenValue();return e?m(t):(u(t),s.push(t)),w(),!0}function S(){switch(a.getToken()){case 3:return function(){h(),w();let e=!0,t=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),4===a.getToken()&&v)break}else t&&k(6,[],[]);e?(s.push(0),e=!1):s[s.length-1]++,S()||k(4,[],[4,5]),t=!0}return d(),e||s.pop(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){c(),w();let e=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),2===a.getToken()&&v)break}else e&&k(6,[],[]);(10!==a.getToken()?(k(3,[],[2,5]),!1):(N(!1),6===a.getToken()?(g(":"),w(),S()||k(4,[],[2,5])):k(5,[],[2,5]),s.pop(),!0))||k(4,[],[2,5]),e=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return N(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}w(),17===a.getToken()?!!n.allowEmptyContent||k(4,[],[]):S()?17!==a.getToken()&&k(9,[],[]):k(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(s),s=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{s=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(s),s=e,a=null},onArrayEnd:()=>{s=r.pop()},onLiteralValue:o,onError:(e,n,a)=>{t.push({error:e,offset:n,length:a})}},n),s[0]};var A;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(A||(A={}));const T="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,E="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,R="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,O=T||!E&&!R;let I="",B="";let M=null;function F(e){if(O)return`${I}${e}`;{const t=o(318);return t.isAbsolute(e)?e:t.resolve(m,"..",e)}}async function G(e){const t=[],n=await async function(e){const t=F(e);if(O)return await fetch(t).then((e=>e.text()));{const e=o(799);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(n)}catch(e){if(a=x(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function D(e){const t=$(await G(e));if(t.include){const n=await D(L(...S(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function $(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...V(e)};var a;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(a=n).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),n}const U={light:"#333333",dark:"#bbbbbb"},W={light:"#fffffe",dark:"#1e1e1e"};function V(e){let t,n,a=e.settings?e.settings:e.tokenColors;const s=a?a.find((e=>!e.name&&!e.scope)):void 0;return s?.settings?.foreground&&(t=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?U.light:U.dark),n||(n="light"===e.type?W.light:W.dark),{fg:t,bg:n}}class q{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await G(e)}(g.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function z(e,t){let n=[];for(let a=0,s=t.length;a<s;a++){let s=t.slice(0,a),r=t[a];n[a]={scopeName:r,themeMatches:J(e,r,s)}}return n}function H(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function K(e,t,n,a){if(!H(e,n))return!1;let s=t.length-1,r=a.length-1;for(;s>=0&&r>=0;)H(t[s],a[r])&&s--,r--;return-1===s}function J(e,t,n){let a=[],s=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);K(l[l.length-1],l.slice(0,l.length-1),t,n)&&(a[s++]=i,e=r)}}return a}var Q=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],X={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Y(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ee(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const a=Number.parseInt(n);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)X[a]&&t.push({type:"setDecoration",value:X[a]});else if(a<=29){const e=X[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-30]}});else if(38===a){const n=Z(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-40]}});else if(48===a){const n=Z(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-100+8]}})}return t}var te={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 ne(e=te){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return s=e.index,function(){if(a)return a;a=[];for(let e=0;e<Q.length;e++)a.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)a.push(n([e[t],e[s],e[r]]));let s=8;for(let e=0;e<24;e++,s+=10)a.push(n([s,s,s]));return a}()[s]}var s}}}const ae={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function se(e,t={}){const n=t.bg||"#fff",a=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),s=t.elements||{};function r(e="",t={},n){const a=s[e]||ae[e];return a?(n=n.filter(Boolean),a({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return r("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",r("code",{},e.map(((n,s)=>{const o=s+1;return r("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(a.get(o)??[]).join(" "),lines:e,line:n,index:s},n.map(((e,a)=>{const s=[`color: ${e.color||t.fg}`];return e.fontStyle&v.Italic&&s.push("font-style: italic"),e.fontStyle&v.Bold&&s.push("font-weight: bold"),e.fontStyle&v.Underline&&s.push("text-decoration: underline"),r("token",{style:s.join("; "),tokens:n,token:e,index:a},[(o=e.content,o.replace(/[&<>"']/g,(e=>re[e])))]);var o})))})))])}const re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class oe extends d.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=g.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await D(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=$(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ie(e){return"string"==typeof e?g.find((t=>t.id===e||t.aliases?.includes(e))):e}async function le(e){const{_languages:t,_themes:n,_wasmPath:a}=function(e){let t=g,n=e.themes||[],a=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(ie)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:a}}(e),s=new q(async function(e){if(!M){let t;if(O)t="string"==typeof B?(0,h.loadWASM)({data:await fetch(F(L(...S(e),"onig.wasm")))}):(0,h.loadWASM)({data:B});else{const e=o(318).join(930,"../onig.wasm"),n=o(799).readFileSync(e).buffer;t=(0,h.loadWASM)(n)}M=t.then((()=>({createOnigScanner:e=>(0,h.createOnigScanner)(e),createOnigString:e=>(0,h.createOnigString)(e)})))}return M}(a),"vscode-oniguruma"),r=new oe(s);e.paths?.themes&&(r.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(s.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await r.loadThemes(n))[0];let l;await r.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<Q.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,a=Q[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${a})`}return e}();function u(e){const t=e?r.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(r.setTheme(t),l=t);const n=r.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:s}=function(e){const t=r.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,a,s){let r=n.split(/\r\n|\r|\n/),o=d.INITIAL,i=[],l=[];for(let n=0,c=r.length;n<c;n++){let c,u,p,h=r[n];if(""===h){i=[],l.push([]);continue}s.includeExplanation&&(c=a.tokenizeLine(h,o),u=c.tokens,p=0);let d=a.tokenizeLine2(h,o),m=d.tokens.length/2;for(let n=0;n<m;n++){let a=d.tokens[2*n],r=n+1<m?d.tokens[2*n+2]:h.length;if(a===r)continue;let o=d.tokens[2*n+1],l=t[w.getForeground(o)],c=w.getFontStyle(o),g=[];if(s.includeExplanation){let t=0;for(;a+t<r;){let n=u[p],a=h.substring(n.startIndex,n.endIndex);t+=a.length,g.push({content:a,scopes:z(e,n.scopes)}),p++}}i.push({content:h.substring(a,r),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],o=d.ruleStack}return l}(o,i,e,s,a)}function m(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),a=ne(Object.fromEntries(Q.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),s=function(){let e=null,t=null,n=new Set;return{parse(a){const s=[];let r=0;do{const o=Y(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&s.push({value:i,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const a=ee(o.sequence);for(const s of a)"resetAll"===s.type?(e=null,t=null,n.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?t=null:"resetDecoration"===s.type&&n.delete(s.value);for(const s of a)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?t=s.value:"setDecoration"===s.type&&n.add(s.value)}r=o.position}while(r<a.length);return s}}}();return n.map((t=>s.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?a.value(t.background):e.bg:t.foreground?a.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let s=v.None;return t.decorations.has("bold")&&(s|=v.Bold),t.decorations.has("italic")&&(s|=v.Italic),t.decorations.has("underline")&&(s|=v.Underline),{content:t.value,color:n,fontStyle:s}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let a;a="object"==typeof t?t:{lang:t,theme:n};const s=p(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=u(a.theme);return se(s,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:m,ansiToHtml:function(e,t){const n=m(e,t?.theme),{_theme:a}=u(t?.theme);return se(n,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await r.loadTheme(e)},loadLanguage:async function(e){const t=ie(e);s.addLanguage(t),await r.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return r.getLoadedThemes()},getLoadedLanguages:function(){return r.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}var ce=o(688);const ue=()=>{},pe=ue(),he=Object,de=e=>e===pe,me=e=>"function"==typeof e,ge=(e,t)=>({...e,...t}),fe=new WeakMap;let ye=0;const _e=e=>{const t=typeof e,n=e&&e.constructor,a=n==Date;let s,r;if(he(e)!==e||a||n==RegExp)s=a?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(s=fe.get(e),s)return s;if(s=++ye+"~",fe.set(e,s),n==Array){for(s="@",r=0;r<e.length;r++)s+=_e(e[r])+",";fe.set(e,s)}if(n==he){s="#";const t=he.keys(e).sort();for(;!de(r=t.pop());)de(e[r])||(s+=r+":"+_e(e[r])+",");fe.set(e,s)}}return s},be=new WeakMap,ve={},we={},ke="undefined",Ne=typeof window!=ke,Se=typeof document!=ke,Le=(e,t)=>{const n=be.get(e);return[()=>!de(t)&&e.get(t)||ve,a=>{if(!de(t)){const s=e.get(t);t in we||(we[t]=s),n[5](t,ge(s,a),s||ve)}},n[6],()=>!de(t)&&t in we?we[t]:!de(t)&&e.get(t)||ve]};let Pe=!0;const[Ce,je]=Ne&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],xe={isOnline:()=>Pe,isVisible:()=>{const e=Se&&document.visibilityState;return de(e)||"hidden"!==e}},Ae={initFocus:e=>(Se&&document.addEventListener("visibilitychange",e),Ce("focus",e),()=>{Se&&document.removeEventListener("visibilitychange",e),je("focus",e)}),initReconnect:e=>{const t=()=>{Pe=!0,e()},n=()=>{Pe=!1};return Ce("online",t),Ce("offline",n),()=>{je("online",t),je("offline",n)}}},Te=!t.useId,Ee=!Ne||"Deno"in window,Re=Ee?t.useEffect:t.useLayoutEffect,Oe="undefined"!=typeof navigator&&navigator.connection,Ie=!Ee&&Oe&&(["slow-2g","2g"].includes(Oe.effectiveType)||Oe.saveData),Be=e=>{if(me(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_e(e):"",t]};let Me=0;const Fe=()=>++Me;async function Ge(...e){const[t,n,a,s]=e,r=ge({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{});let o=r.populateCache;const i=r.rollbackOnError;let l=r.optimisticData;const c=r.throwOnError;if(me(n)){const e=n,a=[],s=t.keys();for(const n of s)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&a.push(n);return Promise.all(a.map(u))}return u(n);async function u(n){const[s]=Be(n);if(!s)return;const[u,p]=Le(t,s),[h,d,m,g]=be.get(t),f=()=>{const e=h[s];return(me(r.revalidate)?r.revalidate(u().data,n):!1!==r.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return f();let y,_=a;const b=Fe();d[s]=[b,0];const v=!de(l),w=u(),k=w.data,N=w._c,S=de(N)?k:N;if(v&&(l=me(l)?l(S,k):l,p({data:l,_c:S})),me(_))try{_=_(S)}catch(e){y=e}if(_&&me(_.then)){if(_=await _.catch((e=>{y=e})),b!==d[s][0]){if(y)throw y;return _}y&&v&&(e=>"function"==typeof i?i(e):!1!==i)(y)&&(o=!0,p({data:S,_c:pe}))}if(o&&!y)if(me(o)){const e=o(_,S);p({data:e,error:pe,_c:pe})}else p({data:_,error:pe,_c:pe});if(d[s][1]=Fe(),Promise.resolve(f()).then((()=>{p({_c:pe})})),!y)return _;if(c)throw y}}const De=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$e=(e,t)=>{if(!be.has(e)){const n=ge(Ae,t),a={},s=Ge.bind(pe,e);let r=ue;const o={},i=(e,t)=>{const n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,a)=>{e.set(t,n);const s=o[t];if(s)for(const e of s)e(n,a)},c=()=>{if(!be.has(e)&&(be.set(e,[a,{},{},{},s,l,i]),!Ee)){const t=n.initFocus(setTimeout.bind(pe,De.bind(pe,a,0))),s=n.initReconnect(setTimeout.bind(pe,De.bind(pe,a,1)));r=()=>{t&&t(),s&&s(),be.delete(e)}}};return c(),[e,s,c,r]}return[e,be.get(e)[4]]},[Ue,We]=$e(new Map),Ve=ge({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:(e,__,t,n,a)=>{const s=t.errorRetryCount,r=a.retryCount,o=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!de(s)&&r>s||setTimeout(n,o,a)},onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ie?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ie?5e3:3e3,compare:(e,t)=>_e(e)==_e(t),isPaused:()=>!1,cache:Ue,mutate:We,fallback:{}},xe),qe=(e,t)=>{const n=ge(e,t);if(t){const{use:a,fallback:s}=e,{use:r,fallback:o}=t;a&&r&&(n.use=a.concat(r)),s&&o&&(n.fallback=ge(s,o))}return n},ze=(0,t.createContext)({}),He=Ne&&window.__SWR_DEVTOOLS_USE__,Ke=He?window.__SWR_DEVTOOLS_USE__:[],Je=e=>me(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Qe=Ke.concat((e=>(t,n,a)=>e(t,n&&((...e)=>{const[a]=Be(t),[,,,s]=be.get(Ue);if(a.startsWith("$inf$"))return n(...e);const r=s[a];return de(r)?n(...e):(delete s[a],r)}),a)));He&&(window.__SWR_DEVTOOLS_REACT__=t);const Xe=t.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Ye={dedupe:!0};he.defineProperty((e=>{const{value:n}=e,a=(0,t.useContext)(ze),s=me(n),r=(0,t.useMemo)((()=>s?n(a):n),[s,a,n]),o=(0,t.useMemo)((()=>s?r:qe(a,r)),[s,a,r]),i=r&&r.provider,l=(0,t.useRef)(pe);i&&!l.current&&(l.current=$e(i(o.cache||Ue),r));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),Re((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,t.createElement)(ze.Provider,ge(e,{value:o}))}),"defaultValue",{value:Ve});const Ze=(et=(e,n,a)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:h,keepPreviousData:d}=a,[m,g,f,y]=be.get(s),[_,b]=Be(e),v=(0,t.useRef)(!1),w=(0,t.useRef)(!1),k=(0,t.useRef)(_),N=(0,t.useRef)(n),S=(0,t.useRef)(a),L=()=>S.current,P=()=>L().isVisible()&&L().isOnline(),[C,j,x,A]=Le(s,_),T=(0,t.useRef)({}).current,E=de(i)?a.fallback[_]:i,R=(e,t)=>{for(const n in T){const a=n;if("data"===a){if(!r(e[a],t[a])){if(!de(e[a]))return!1;if(!r(U,t[a]))return!1}}else if(t[a]!==e[a])return!1}return!0},O=(0,t.useMemo)((()=>{const e=!!_&&!!n&&(de(l)?!L().isPaused()&&!o&&(!!de(c)||c):l),t=t=>{const n=ge(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},a=C(),s=A(),r=t(a),i=a===s?r:t(s);let u=r;return[()=>{const e=t(C());return R(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[s,_]),I=(0,ce.useSyncExternalStore)((0,t.useCallback)((e=>x(_,((t,n)=>{R(n,t)||e()}))),[s,_]),O[0],O[1]),B=!v.current,M=m[_]&&m[_].length>0,F=I.data,G=de(F)?E:F,D=I.error,$=(0,t.useRef)(G),U=d?de(F)?$.current:F:G,W=!(M&&!de(D))&&(B&&!de(l)?l:!L().isPaused()&&(o?!de(G)&&c:de(G)||c)),V=!!(_&&n&&B&&W),q=de(I.isValidating)?V:I.isValidating,z=de(I.isLoading)?V:I.isLoading,H=(0,t.useCallback)((async e=>{const t=N.current;if(!_||!t||w.current||L().isPaused())return!1;let n,s,o=!0;const i=e||{},l=!f[_]||!i.dedupe,c=()=>Te?!w.current&&_===k.current&&v.current:_===k.current,u={isValidating:!1,isLoading:!1},p=()=>{j(u)},h=()=>{const e=f[_];e&&e[1]===s&&delete f[_]},d={isValidating:!0};de(C().data)&&(d.isLoading=!0);try{if(l&&(j(d),a.loadingTimeout&&de(C().data)&&setTimeout((()=>{o&&c()&&L().onLoadingSlow(_,a)}),a.loadingTimeout),f[_]=[t(b),Fe()]),[n,s]=f[_],n=await n,l&&setTimeout(h,a.dedupingInterval),!f[_]||f[_][1]!==s)return l&&c()&&L().onDiscarded(_),!1;u.error=pe;const e=g[_];if(!de(e)&&(s<=e[0]||s<=e[1]||0===e[1]))return p(),l&&c()&&L().onDiscarded(_),!1;const i=C().data;u.data=r(i,n)?i:n,l&&c()&&L().onSuccess(n,_,a)}catch(e){h();const t=L(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===n||me(n)&&n(e))&&(L().revalidateOnFocus&&L().revalidateOnReconnect&&!P()||t.onErrorRetry(e,_,t,(e=>{const t=m[_];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return o=!1,p(),!0}),[_,s]),K=(0,t.useCallback)(((...e)=>Ge(s,k.current,...e)),[]);if(Re((()=>{N.current=n,S.current=a,de(F)||($.current=F)})),Re((()=>{if(!_)return;const e=H.bind(pe,Ye);let t=0;const n=((e,t,n)=>{const a=t[e]||(t[e]=[]);return a.push(n),()=>{const e=a.indexOf(n);e>=0&&(a[e]=a[a.length-1],a.pop())}})(_,m,((n,a={})=>{if(0==n){const n=Date.now();L().revalidateOnFocus&&n>t&&P()&&(t=n+L().focusThrottleInterval,e())}else if(1==n)L().revalidateOnReconnect&&P()&&e();else{if(2==n)return H();if(3==n)return H(a)}}));return w.current=!1,k.current=_,v.current=!0,j({_k:b}),W&&(de(G)||Ee?e():(a=e,Ne&&typeof window.requestAnimationFrame!=ke?window.requestAnimationFrame(a):setTimeout(a,1))),()=>{w.current=!0,n()};var a}),[_]),Re((()=>{let e;function t(){const t=me(u)?u(C().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){C().error||!p&&!L().isVisible()||!h&&!L().isOnline()?t():H(Ye).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,h,_]),(0,t.useDebugValue)(U),o&&de(G)&&_){if(!Te&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,S.current=a,w.current=!1;const e=y[_];if(!de(e)){const t=K(e);Xe(t)}if(!de(D))throw D;{const e=H(Ye);de(U)||(e.status="fulfilled",e.value=!0),Xe(e)}}return{mutate:K,get data(){return T.data=!0,U},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,q},get isLoading(){return T.isLoading=!0,z}}},function(...e){const n=ge(Ve,(0,t.useContext)(ze)),[a,s,r]=Je(e),o=qe(n,r);let i=et;const{use:l}=o,c=(l||[]).concat(Qe);for(let e=c.length;e--;)i=c[e](i);return i(a,s||o.fetcher||null,o)});var et;const tt=((e,t)=>(...n)=>{const[a,s,r]=Je(n),o=(r.use||[]).concat(t);return e(a,s,{...r,use:o})})(Ze,(e=>(t,n,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,e(t,n,a)))),nt=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;return le({langs:[t],theme:e})};let at=!1;const st=({theme:e,lang:t,ready:n=!0})=>{const[a,r]=(0,s.useState)(!1);var o;at||(at=!0,o=window.patternCss?.pluginUrl+"build/shiki/",I=o.endsWith("/")?o:o+"/");const{data:i,error:l}=tt({theme:e,lang:t,ready:n&&a},nt);return(0,s.useEffect)((()=>{const e=window.patternCss?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{B=e,r(!0)}))}),[]),{highlighter:i,error:l,loading:!i&&!l||!a}},rt=(0,s.forwardRef)(((e,n)=>{var a,r;const o=(0,s.useRef)(null),{value:i,onChange:l,onFocus:u,onBlur:h,lineOptions:d=[],...m}=e,{highlighter:g,error:f,loading:y}=st({theme:"light-plus",lang:"css"});return y?null:f?(0,t.createElement)("p",null,f.message):(0,t.createElement)("div",{ref:o},(0,t.createElement)(p(),{ref:n,value:(0,c.decodeEntities)(i),className:"font-jetbrains-mono border border-solid border-gray-600 wp-focus",onValueChange:l,...m,padding:{top:6,bottom:6,left:8,right:8},style:{minHeight:300,backgroundColor:null!==(a=g?.getBackgroundColor())&&void 0!==a?a:"#fff",color:null!==(r=g?.getForegroundColor())&&void 0!==r?r:"#000"},onKeyDown:e=>"Tab"===e.key&&o.current?.querySelector("textarea")?.focus(),onFocus:u,onBlur:h,highlight:e=>g?.codeToHtml((0,c.decodeEntities)(e),{lang:"css",lineOptions:d})?.replace(/<\/?[pre|code][^>]*>/g,"")}))})),ot=({value:e})=>{var n;const{highlighter:s,error:r,loading:o}=st({theme:"light-plus",lang:"css"});return o?null:r?(0,t.createElement)("p",null,r.message):(0,t.createElement)("div",{className:"flex flex-col gap-2"},(0,t.createElement)(a.BaseControl,{id:"no-permission-to-edit"},(0,t.createElement)(a.Tip,null,(0,l.__)("You do not have permission to edit this css.","pattern-css"))),(0,t.createElement)(a.BaseControl,{id:"code-viewer"},(0,t.createElement)("div",{className:"font-jetbrains-mono border border-gray-600 py-1.5 px-2 code-preview",dangerouslySetInnerHTML:{__html:null!==(n=s?.codeToHtml((0,c.decodeEntities)(e),{lang:"css"}))&&void 0!==n?n:""}})))},it=({handleChange:e,editorWrapperRef:n})=>(0,t.createElement)("div",{className:"flex gap-1 absolute top-px right-px"},(0,t.createElement)(a.Tooltip,{text:(0,l.__)("Clear CSS","pattern-css")},(0,t.createElement)(a.Button,{icon:"no-alt",size:"small",onClick:()=>{e(""),n.current?.querySelector("textarea")?.focus()},className:"text-gray-600 wp-focus gap-0 p-1"},(0,t.createElement)("span",{className:"sr-only"},(0,l.__)("Clear CSS","pattern-css"))))),lt=window.wp.editor,ct=(e,t)=>[...new Set([...e.filter((e=>!e.startsWith("pcss-"))),t].filter(Boolean))].join(" "),ut=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],pt=[];class ht{scopes=[];referenceId=1;references=new Map;wrappedObjects=new WeakMap;externalObjects=new WeakMap;buffers=new Map;instanceData=0;pendingException=null;constructor(e){this.id=pt.length,pt.push(this),this.instance=e,this.table=e.exports.__indirect_function_table,this.exports={},this.pushScope();let t=this.scopes[this.scopes.length-1],n=t.length;t.push(this.exports);try{this.instance.exports.napi_register_module_v1(this.id,n),this.instance.exports.napi_register_wasm_v1&&this.instance.exports.napi_register_wasm_v1(this.id,n)}finally{if(this.popScope(),this.pendingException){let e=this.pendingException;throw this.pendingException=null,e}}}destroy(){pt[this.id]=void 0}getString(e,t=function(e,t){let n=0;for(;0!==e[t];)n++,t++;return n}(this.memory,e)){return dt.decode(this.memory.subarray(e,e+t))}pushScope(){let e=this.scopes.length;return this.scopes.push([void 0,null,globalThis,!0,!1]),e}popScope(){this.scopes.pop();for(let[e,t]of this.buffers)e.byteLength&&t.byteLength&&e.set(t);this.buffers.clear()}get(e){return this.scopes[this.scopes.length-1][e]}set(e,t){this.scopes[this.scopes.length-1][e]=t}pushValue(e){let t=this.scopes[this.scopes.length-1],n=t.length;return t.push(e),n}createValue(e,t){if("boolean"==typeof e)return this.setPointer(t,e?3:4),0;if(void 0===e)return this.setPointer(t,0),0;if(null===e)return this.setPointer(t,1),0;if(e===globalThis)return this.setPointer(t,2),0;let n=this.pushValue(e);return this.setPointer(t,n),0}setPointer(e,t){return this.u32[e>>2]=t,0}_u32=new Uint32Array;get u32(){return 0===this._u32.byteLength&&(this._u32=new Uint32Array(this.instance.exports.memory.buffer)),this._u32}_i32=new Int32Array;get i32(){return 0===this._i32.byteLength&&(this._i32=new Int32Array(this.instance.exports.memory.buffer)),this._i32}_u16=new Uint16Array;get u16(){return 0===this._u16.byteLength&&(this._u16=new Uint16Array(this.instance.exports.memory.buffer)),this._u16}_u64=new BigUint64Array;get u64(){return 0===this._u64.byteLength&&(this._u64=new BigUint64Array(this.instance.exports.memory.buffer)),this._u64}_i64=new BigInt64Array;get i64(){return 0===this._i64.byteLength&&(this._i64=new BigInt64Array(this.instance.exports.memory.buffer)),this._i64}_f64=new Float64Array;get f64(){return 0===this._f64.byteLength&&(this._f64=new Float64Array(this.instance.exports.memory.buffer)),this._f64}_buf=new Uint8Array;get memory(){return 0===this._buf.byteLength&&(this._buf=new Uint8Array(this.instance.exports.memory.buffer)),this._buf}getBufferInfo(e,t){if(this.buffers.has(e)){let n=this.buffers.get(e);return this.setPointer(t,n.byteOffset),n.byteLength}if(e instanceof ArrayBuffer){let n=this.copyBuffer(new Uint8Array(e));return this.setPointer(t,n.byteOffset),n.byteLength}if(e.buffer===this.instance.exports.memory.buffer)return this.setPointer(t,e.byteOffset),e.byteLength;let n=this.copyBuffer(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return this.setPointer(t,n.byteOffset),n.byteLength}copyBuffer(e){let t=this.instance.exports.napi_wasm_malloc(e.byteLength),n=this.memory;n.set(e,t);let a=n.subarray(t,t+e.byteLength);return this.buffers.set(e,a),a}createFunction(e,t){let n=this,a=n.table.get(e);return function(...e){let s=n.pushScope();try{let r=n.scopes[s],o=r.length;r.push({thisArg:this,args:e,data:t,newTarget:new.target});let i=a(n.id,o);return n.get(i)}finally{if(n.popScope(),n.pendingException){let e=n.pendingException;throw n.pendingException=null,e}}}}readPropertyDescriptor(e){let t=this.u32,n=t[e++],a=t[e++],s=t[e++],r=t[e++],o=t[e++],i=t[e++],l=t[e++],c=t[e++],u=n?this.getString(n):this.get(a),p=Boolean(1&l),h=Boolean(2&l),d=Boolean(4&l),m=Boolean(1024&l),g=r?this.createFunction(r,c):void 0,f=o?this.createFunction(o,c):void 0,y=s?this.createFunction(s,c):i?this.get(i):void 0,_={name:u,static:m,configurable:d,enumerable:h};return g||f?(_.get=g,_.set=f):y&&(_.writable=p,_.value=y),_}}const dt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),mt=new TextDecoder("latin1"),gt=new TextDecoder("utf-16"),ft=new TextEncoder;class yt{constructor(e,t,n,a){this.env=e,this.finalize=t,this.hint=n,this.data=a}}const _t=new FinalizationRegistry((e=>{e.finalize&&e.finalize(e.env,e.data,e.hint)}));class bt{}const vt=[];class wt{constructor(e,t,n,a){this.env=e,this.fn=t,this.nativeFn=n,this.context=a,this.id=vt.length,vt.push(this)}}const kt={napi_open_handle_scope(e,t){let n=pt[e],a=n.pushScope();return n.setPointer(t,a)},napi_close_handle_scope(e,t){let n=pt[e];return t!==n.scopes.length-1?13:(n.popScope(),0)},napi_open_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_close_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_escape_handle(e,t,n,a){throw new Error("not implemented")},napi_create_object:(e,t)=>pt[e].createValue({},t),napi_set_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n),i=s.get(a);return r[o]=i,0},napi_get_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.createValue(r[o],a)},napi_delete_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n),i=!1;try{i=delete r[o]}catch(e){}return a&&(s.memory[a]=i?1:0),0},napi_has_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.memory[a]=o in r?1:0,0},napi_has_own_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.memory[a]=r.hasOwnProperty(o)?1:0,0},napi_set_named_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(a);return r[s.getString(n)]=o,0},napi_get_named_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.getString(n);return s.createValue(r[o],a)},napi_has_named_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.getString(n);return s.memory[a]=o in r?1:0,0},napi_get_property_names(e,t,n){let a=pt[e],s=a.get(t),r=Object.keys(s);return a.createValue(r,n)},napi_get_all_property_names(e,t,n,a,s,r){throw new Error("not implemented")},napi_define_properties(e,t,n,a){let s=pt[e],r=s.get(t),o=a>>2;for(let e=0;e<n;e++){let e=s.readPropertyDescriptor(o);Object.defineProperty(r,e.name,e),o+=8}return 0},napi_object_freeze(e,t){let n=pt[e].get(t);return Object.freeze(n),0},napi_object_seal(e,t){let n=pt[e].get(t);return Object.seal(n),0},napi_get_prototype(e,t,n){let a=pt[e],s=a.get(t);return a.createValue(Object.getPrototypeOf(s),n)},napi_define_class(e,t,n,a,s,r,o,i){let l=pt[e],c=l.createFunction(a,s);Object.defineProperty(c,"name",{value:l.getString(t,n),configurable:!0});let u=o>>2;for(let e=0;e<r;e++){let e=l.readPropertyDescriptor(u);e.static?Object.defineProperty(c,e.name,e):Object.defineProperty(c.prototype,e.name,e),u+=8}return l.createValue(c,i)},napi_create_reference(e,t,n,a){let s=pt[e],r=s.referenceId++;return s.references.set(r,{value:s.get(t),refcount:n}),s.setPointer(a,r)},napi_delete_reference:(e,t)=>(pt[e].references.delete(t),0),napi_get_reference_value(e,t,n){let a=pt[e],s=a.references.get(t);return a.createValue(s.value,n)},napi_reference_ref(e,t,n){let a=pt[e],s=a.references.get(t);return s.refcount++,a.setPointer(n,s.refcount)},napi_reference_unref(e,t,n){let a=pt[e],s=a.references.get(t);return 0===s.refcount?9:(s.refcount--,a.setPointer(n,s.refcount))},napi_add_env_cleanup_hook:()=>0,napi_remove_env_cleanup_hook:()=>0,napi_add_async_cleanup_hook:()=>0,napi_remove_async_cleanup_hook:()=>0,napi_set_instance_data:(e,t,n,a)=>(pt[e].instanceData=t,0),napi_get_instance_data(e,t){let n=pt[e];return n.setPointer(t,n.instanceData)},napi_get_boolean:(e,t,n)=>pt[e].setPointer(n,t?3:4),napi_get_value_bool(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s?1:0,0},napi_create_int32:(e,t,n)=>pt[e].createValue(t,n),napi_get_value_int32(e,t,n){let a=pt[e],s=a.get(t);return a.i32[n>>2]=s,0},napi_create_uint32:(e,t,n)=>pt[e].createValue(t,n),napi_get_value_uint32(e,t,n){let a=pt[e],s=a.get(t);return a.setPointer(n,s)},napi_create_int64:(e,t,n)=>pt[e].createValue(Number(t),n),napi_get_value_int64(e,t,n){let a=pt[e],s=a.get(t);return a.i64[n>>3]=s,0},napi_create_double:(e,t,n)=>pt[e].createValue(t,n),napi_get_value_double(e,t,n){let a=pt[e],s=a.get(t);return a.f64[n>>3]=s,0},napi_create_bigint_int64:(e,t,n)=>pt[e].createValue(BigInt.asIntN(64,t),n),napi_get_value_bigint_int64(e,t,n,a){let s=pt[e],r=s.get(t);return s.i64[n>>3]=r,a&&(s.memory[a]=BigInt.asIntN(64,r)===r?1:0),0},napi_create_bigint_uint64:(e,t,n)=>pt[e].createValue(BigInt.asUintN(64,t),n),napi_get_value_bigint_uint64(e,t,n,a){let s=pt[e],r=s.get(t);return s.u64[n>>3]=r,a&&(s.memory[a]=BigInt.asUintN(64,r)===r?1:0),0},napi_create_bigint_words(e,t,n,a,s){let r=pt[e],o=r.u64,i=a>>3,l=0n,c=0n;for(let e=0;e<n;e++)l+=o[i++]<<c,c+=64n;return l*=BigInt((-1)**t),r.createValue(l,s)},napi_get_value_bigint_words(e,t,n,a,s){let r=pt[e],o=r.get(t),i=r.u32[a>>2];n&&(r.i32[n]=o<0n?1:0);let l=0;if(s){let e=(1n<<64n)-1n,t=r.u64,n=s>>3;for(o<0n&&(o=-o);l<i&&0n!==o;l++)t[n++]=o&e,o>>=64n}for(;o>0n;)l++,o>>=64n;return r.setPointer(a,l)},napi_get_null:(e,t)=>pt[e].setPointer(t,1),napi_create_array:(e,t)=>pt[e].createValue([],t),napi_create_array_with_length:(e,t,n)=>pt[e].createValue(new Array(t),n),napi_set_element(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(a);return r[n]=o,0},napi_get_element(e,t,n,a){let s=pt[e],r=s.get(t)[n];return s.createValue(r,a)},napi_has_element(e,t,n,a){let s=pt[e],r=s.get(t);return s.memory[a]=r.hasOwnProperty(n)?1:0,0},napi_delete_element(e,t,n,a){let s=pt[e],r=s.get(t),o=!1;try{o=delete r[n]}catch(e){}return a&&(s.memory[a]=o?1:0),0},napi_get_array_length(e,t,n){let a=pt[e],s=a.get(t);return a.setPointer(n,s.length)},napi_get_undefined:(e,t)=>pt[e].setPointer(t,0),napi_create_function(e,t,n,a,s,r){let o=pt[e],i=o.createFunction(a,s);return Object.defineProperty(i,"name",{value:o.getString(t,n),configurable:!0}),o.createValue(i,r)},napi_call_function(e,t,n,a,s,r){let o=pt[e],i=o.get(t),l=o.get(n),c=new Array(a),u=o.u32;for(let e=0;e<a;e++)c[e]=o.get(u[s>>2]),s+=4;try{let e=l.apply(i,c);return o.createValue(e,r)}catch(e){return o.pendingException=e,10}},napi_new_instance(e,t,n,a,s){let r=pt[e],o=r.get(t),i=new Array(n),l=r.u32;for(let e=0;e<n;e++)i[e]=r.get(l[a>>2]),a+=4;try{let e=new o(...i);return r.createValue(e,s)}catch(e){return r.pendingException=e,10}},napi_get_cb_info(e,t,n,a,s,r){let o=pt[e],i=o.get(t);o.setPointer(n,i.args.length);for(let e=0;e<i.args.length;e++)o.createValue(i.args[e],a),a+=4;return o.createValue(i.thisArg,s),o.setPointer(r,i.data),0},napi_get_new_target(e,t,n){let a=pt[e],s=a.get(t);return a.createValue(s.newTarget,n)},napi_create_threadsafe_function(e,t,n,a,s,r,o,i,l,c,u){let p=pt[e],h=t?p.get(t):void 0,d=c?p.table.get(c):void 0,m=new wt(p,h,d,l);if(i){let t=p.table.get(i);_t.register(m,new yt(e,t,0,m.id))}return p.setPointer(u,m.id),0},napi_ref_threadsafe_function:()=>0,napi_unref_threadsafe_function:()=>0,napi_acquire_threadsafe_function:()=>0,napi_release_threadsafe_function:(e,t)=>(vt[e]=void 0,0),napi_call_threadsafe_function(e,t,n){let a=vt[e];a.env.pushScope();try{if(a.nativeFn){let e=a.fn?a.env.pushValue(a.fn):0;a.nativeFn(a.env.id,e,a.context,t)}else a.fn&&a.fn()}finally{a.env.popScope()}},napi_get_threadsafe_function_context(e,t){let n=vt[e];return n.env.setPointer(t,n.context),0},napi_throw(e,t){let n=pt[e];return n.pendingException=n.get(t),0},napi_throw_error(e,t,n){let a=pt[e],s=new Error(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_type_error(e,t,n){let a=pt[e],s=new TypeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_range_error(e,t,n){let a=pt[e],s=new RangeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_create_error(e,t,n,a){let s=pt[e],r=new Error(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_type_error(e,t,n,a){let s=pt[e],r=new TypeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_range_error(e,t,n,a){let s=pt[e],r=new RangeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_get_and_clear_last_exception(e,t){let n=pt[e],a=n.pendingException;return n.pendingException=null,n.createValue(a,t)},napi_is_exception_pending(e,t){let n=pt[e];return n.memory[t]=n.pendingException?1:0,0},napi_fatal_exception(e,t){throw new Error("not implemented")},napi_fatal_error(e,t,n,a){throw new Error("not implemented")},napi_get_global:(e,t)=>pt[e].setPointer(t,2),napi_create_buffer(e,t,n,a){let s=pt[e],r=s.instance.exports.napi_wasm_malloc(t);n&&s.setPointer(n,r);let o=void 0!==globalThis.Buffer?globalThis.Buffer.from(s.memory.buffer,r,t):s.memory.subarray(r,r+t);return s.createValue(o,a)},napi_create_buffer_copy(e,t,n,a,s){let r=pt[e],o=r.instance.exports.napi_wasm_malloc(t);r.memory.set(r.memory.subarray(n,n+t),o),a&&r.setPointer(a,o);let i=void 0!==globalThis.Buffer?globalThis.Buffer.from(r.memory.buffer,o,t):buf;return r.createValue(i,s)},napi_create_external_buffer(e,t,n,a,s,r){let o=pt[e],i=void 0!==globalThis.Buffer?globalThis.Buffer.from(o.memory.buffer,n,t):o.memory.subarray(n,n+t);if(a){let t=o.table.get(a);_t.register(i,new yt(e,t,s,n))}return o.createValue(i,r)},napi_get_buffer_info(e,t,n,a){let s=pt[e],r=s.get(t),o=s.getBufferInfo(r,n);return s.setPointer(a,o)},napi_create_arraybuffer(e,t,n,a){let s=pt[e],r=new ArrayBuffer(t);return n&&s.getBufferInfo(r,ptr),s.createValue(r,a)},napi_create_external_arraybuffer:(e,t,n,a,s,r)=>22,napi_get_arraybuffer_info(e,t,n,a){let s=pt[e],r=s.getBufferInfo(s.get(t),n);return s.setPointer(a,r)},napi_detach_arraybuffer(e,t){let n=pt[e].get(t);return"function"==typeof structuredClone&&structuredClone(n,{transfer:[n]}),0},napi_is_detached_arraybuffer(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=0===s.byteLength?1:0,0},napi_create_typedarray(e,t,n,a,s,r){let o=pt[e],i=new(0,ut[t])(o.get(a),s,n);return o.createValue(i,r)},napi_create_dataview(e,t,n,a,s){let r=pt[e],o=r.get(n),i=new DataView(o,a,t);return r.createValue(i,s)},napi_get_typedarray_info(e,t,n,a,s,r,o){let i=pt[e],l=i.get(t);return i.setPointer(n,ut.indexOf(l.constructor)),i.setPointer(a,l.length),i.getBufferInfo(l,s),i.createValue(l.buffer,r),i.setPointer(o,l.byteOffset)},napi_get_dataview_info(e,t,n,a,s,r){let o=pt[e],i=o.get(t);return o.setPointer(n,i.byteLength),o.getBufferInfo(i,a),o.createValue(i.buffer,s),o.setPointer(r,i.byteOffset)},napi_create_string_utf8(e,t,n,a){let s=pt[e],r=dt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_utf8(e,t,n,a,s){let r=pt[e],o=r.get(t);if(0==n)return r.setPointer(s,function(e){let t=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=55296&&a<=56319&&n<e.length-1){let t=e.charCodeAt(++n);56320==(64512&t)?a=((1023&a)<<10)+(1023&t)+65536:n--}0==(4294967168&a)?t++:0==(4294965248&a)?t+=2:0==(4294901760&a)?t+=3:0==(4292870144&a)&&(t+=4)}return t}(o));let i=ft.encodeInto(o,r.memory.subarray(n,n+a-1));return r.memory[n+i.written]=0,r.setPointer(s,i.written)},napi_create_string_latin1(e,t,n,a){let s=pt[e],r=mt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_latin1(e,t,n,a,s){let r=pt[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.memory,l=Math.min(o.length,a-1);for(let e=0;e<l;e++){let t=o.charCodeAt(e);i[n++]=t}return i[n]=0,r.setPointer(s,l)},napi_create_string_utf16(e,t,n,a){let s=pt[e],r=gt.decode(s.memory.subarray(t,t+2*n));return s.createValue(r,a)},napi_get_value_string_utf16(e,t,n,a,s){let r=pt[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.u16,l=n>>1,c=Math.min(o.length,a-1);for(let e=0;e<c;e++){let t=o.charCodeAt(e);i[l++]=t}return i[l]=0,r.setPointer(s,c)},napi_create_date:(e,t,n)=>pt[e].createValue(new Date(t),n),napi_get_date_value(e,t,n){let a=pt[e],s=a.get(t);a.f64[n>>3]=s.valueOf()},napi_create_symbol(e,t,n){let a=pt[e],s=a.get(t);return a.createValue(Symbol(s),n)},napi_coerce_to_bool(e,t,n){let a=pt[e];return a.createValue(Boolean(a.get(t)),n)},napi_coerce_to_number(e,t,n){let a=pt[e];return a.createValue(Number(a.get(t)),n)},napi_coerce_to_object(e,t,n){let a=pt[e];return a.createValue(Object(a.get(t)),n)},napi_coerce_to_string(e,t,n){let a=pt[e];return a.createValue(String(a.get(t)),n)},napi_typeof(e,t,n){let a=pt[e],s=a.get(t);return a.setPointer(n,(()=>{switch(typeof s){case"undefined":return 0;case"boolean":return 2;case"number":return 3;case"string":return 4;case"symbol":return 5;case"object":return null===s?1:s instanceof bt?8:6;case"function":return 7;case"bigint":return 9}})())},napi_instanceof(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.memory[a]=r instanceof o?1:0,0},napi_is_array(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=Array.isArray(s)?1:0,0},napi_is_buffer(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=(void 0!==globalThis.Buffer?globalThis.Buffer.isBuffer(s):s instanceof Uint8Array)?1:0,0},napi_is_date(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof Date?1:0,0},napi_is_error(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof Error?1:0,0},napi_is_typedarray(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=!ArrayBuffer.isView(s)||s instanceof DataView?0:1,0},napi_is_dataview(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof DataView?1:0,0},napi_strict_equals(e,t,n,a){let s=pt[e];return s.memory[a]=s.get(t)===s.get(n)?1:0,0},napi_wrap(e,t,n,a,s,r){let o=pt[e],i=o.get(t);if(o.wrappedObjects.set(i,n),a){let t=o.table.get(a);_t.register(i,new yt(e,t,s,n))}return r?kt.napi_create_reference(e,t,1,r):0},napi_unwrap(e,t,n){let a=pt[e],s=a.get(t),r=a.wrappedObjects.get(s);return a.setPointer(n,r),0},napi_remove_wrap(e,t,n){let a=pt[e],s=a.get(t),r=a.wrappedObjects.get(s);return _t.unregister(s),a.wrappedObjects.delete(s),a.setPointer(n,r)},napi_type_tag_object(e,t,n){throw new Error("not implemented")},napi_check_object_type_tag(e,t,n){throw new Error("not implemented")},napi_add_finalizer(e,t,n,a,s,r){let o=pt[e],i=o.get(t),l=o.table.get(a);return _t.register(i,new yt(e,l,s,n)),r?kt.napi_create_reference(e,t,1,r):0},napi_create_promise(e,t,n){let a=pt[e],s=new Promise(((e,n)=>{a.createValue({resolve:e,reject:n},t)}));return a.createValue(s,n)},napi_resolve_deferred(e,t,n){let a=pt[e],{resolve:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_reject_deferred(e,t,n){let a=pt[e],{reject:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_is_promise(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof Promise?1:0,0},napi_run_script(e,t,n){let a=pt[e],s=a.get(t),r=(0,eval)(s);return a.createValue(r,n)},napi_create_external(e,t,n,a,s){let r=pt[e],o=new bt;if(r.externalObjects.set(o,t),n){let s=r.table.get(n);_t.register(o,new yt(e,s,a,t))}return r.createValue(o,s)},napi_get_value_external(e,t,n){let a=pt[e],s=a.get(t),r=a.externalObjects.get(s);return a.setPointer(n,r)},napi_adjust_external_memory:()=>0};let Nt;function St(e,t,n){Nt(e,t,n)}const Lt=0,Pt=1,Ct=2;let jt,xt,At;function Tt(e){return jt.transform(e)}(async function(e){jt||(xt||(("string"==typeof(e=e??new URL(o(959),o.b))||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=async function(e){try{return(await o.e(641).then(o.t.bind(o,641,19))).readFileSync(e)}catch{return fetch(e)}}(e)),xt=e.then((e=>async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(e,{env:{...kt,await_promise_sync:St}}))).then((({instance:e})=>{let t=new ht(e);At=function(e){let t,n,a,{instance:s,exports:r}=e,{asyncify_get_state:o,asyncify_start_unwind:i,asyncify_stop_unwind:l,asyncify_start_rewind:c,asyncify_stop_rewind:u}=s.exports,p=s.exports.napi_wasm_malloc(4104),h=p+8,d=p+8+4096;function m(){if(o()!==Lt)throw new Error(`Invalid async state ${o()}, expected 0.`)}return new Int32Array(e.memory.buffer,p).set([h,d]),Nt=(s,r,l)=>{if(o()===Ct)return u(),null!=n&&e.createValue(n,r),null!=a&&e.createValue(a,l),void(t=n=a=null);m(),t=e.get(s),i(p)},async function(e){m();let s=r.bundle(e);for(;o()===Pt;){l();try{n=await t}catch(e){a=e}m(),c(p),s=r.bundle(e)}return m(),s}}(t),jt=t.exports}))),await xt)})().then((()=>{window.patternCss.transform=Tt}));const Et=(e,t,n)=>{const a=new Set([e.className?.split(" "),n.className?.split(" ")].flat().filter(Boolean)),{pcssClassId:s}=n;return!s||a.has(s)?e:(a.add(s),{...e,className:[...a].join(" ")})},Rt={pcssAdditionalCss:{type:"string"},pcssAdditionalCssCompiled:{type:"string",default:""},pcssClassId:{type:"string",default:""}};(0,e.addFilter)("blocks.registerBlockType","kevinbatdorf/pcss-block-settings",(e=>{const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{var n;const a=null!==(n=t?.(e))&&void 0!==n?n:{};return Et(a,0,e)},{...e,attributes:{...e.attributes,...Rt}}})),(0,e.addFilter)("editor.BlockEdit","kevinbatdorf/pcss-block-control",(e=>o=>((e,o)=>{const c=(0,s.useRef)(null),[u,p]=(0,s.useState)(!1),[h,d]=(0,s.useState)(!1),[m,g]=(0,s.useState)([]),f=(0,r.useSelect)((e=>{const{isSavingPost:t,isAutosavingPost:n}=e(lt.store);return t()||n()}),[]),{attributes:y,setAttributes:_,clientId:b}=o,{pcssClassId:v,pcssAdditionalCss:w,pcssAdditionalCssCompiled:k,className:N}=y,[S,L]=(0,s.useState)(w),[P,C]=(0,s.useState)(),[j,x]=(0,s.useState)(k||""),A=(0,s.useMemo)((()=>window?.patternCss?.canEditCss),[]),T="[block] {\n  \n}",E=(0,s.useCallback)((e=>{if(void 0===e)return void L(void 0);const t=(0,i.escapeHTML)(e);if(g([]),L(t),!window.patternCss?.transform)return;const n=window.patternCss.transform({filename:"raw.css",code:(new TextEncoder).encode(t),minify:!0,errorRecovery:!0,visitor:{Selector(e){const{name:t,type:n}=e[0],{name:a,type:s}=window.patternCss.selectorOverride||{};return"attribute"===n&&"block"===t||n===s&&t===a?[{...e[0],type:"class",name:v},...e.slice(1)]:"nesting"===e[0].type?e:[{type:"class",name:v},{type:"combinator",value:"descendant"},...e]}}});n.warnings.length>0?g(n.warnings):C(n.code)}),[v]);return(0,s.useEffect)((()=>{A&&p(!0)}),[A]),(0,s.useEffect)((()=>{u&&w&&E(w)}),[u,E,w]),(0,s.useEffect)((()=>{u&&void 0!==P&&x((new TextDecoder).decode(P))}),[P,u]),(0,s.useEffect)((()=>{if(!u||void 0===S)return;_({pcssAdditionalCss:S,pcssClassId:v||`pcss-${b?.split("-")[0]}`});const e=N?.split(" ")||[];e?.includes(v)||_({className:ct(e,v)})}),[S,_,u,v,b,N]),(0,s.useEffect)((()=>{if(!u||!v||!f)return;const e=N?.split(" ")||[];if(e?.find((e=>e.startsWith(v))))return;const t=ct(e,v);_({className:t})}),[f,N,v,_,u]),(0,s.useEffect)((()=>{u&&j!==k&&_({pcssAdditionalCssCompiled:j})}),[j,_,u,k]),(0,s.useLayoutEffect)((()=>{if(!u||void 0===j)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow,t=e?e?.document:document.querySelector(".editor-styles-wrapper");if(!t)return;const n=`pcss-styles-block-${v}`,a=t?.querySelector(`#${n}`);if(a)return void(a.innerHTML=j);const s=e?.document?e.document.createElement("style"):document.createElement("style");s.id=n,s.innerHTML=j,e?.document?.head?e.document.head.appendChild(s):t.appendChild(s)}),[j,u,v]),(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(e,{...o}),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:"Additional CSS",initialOpen:!1,className:"pattern-css-editor"},A?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"relative",ref:c},(0,t.createElement)(rt,{value:null!=S?S:T,"data-cy":"pcss-editor-block",onChange:E,onFocus:e=>{e.target.value===T&&(e=>{const t=e.value.split("\n"),n=t[0].length+t[1].length+1;requestAnimationFrame((()=>{e.focus(),e.setSelectionRange(n,n)}))})(e.target),d(!0)},onBlur:()=>d(!1),lineOptions:m.map((({loc:e})=>({line:e.line,classes:["line-error"]})))}),h?null:(0,t.createElement)(it,{handleChange:E,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
     1(()=>{var e,t,n,a,s={,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
    22// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
    3 (0,l.__)("See the %1$splugin readme%2$s for examples.","pattern-css"),'<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',"</a>")}})):(0,t.createElement)(ot,{value:S}))),(0,t.createElement)(n.InspectorAdvancedControls,null,(0,t.createElement)(a.BaseControl,{id:"pcss-css-id-setting",className:"pattern-css-editor"},(0,t.createElement)(a.TextControl,{spellCheck:!1,autoComplete:"off","data-cy":"class-id",type:"text",label:(0,l.__)("Pattern CSS ID","pattern-css"),disabled:!0,onChange:()=>{},value:v}),(0,t.createElement)(a.Button,{variant:"secondary",className:"-mt-2",onClick:()=>{const e=`pcss-${Math.random().toString(36).substring(2,10)}`,t=N?.split(" ")||[],n=[...new Set([...t.filter((e=>!e.startsWith("pcss-"))),e].filter(Boolean))].join(" ");_({pcssClassId:e,className:n})}},(0,l.__)("Generate New ID","pattern-css")),(0,t.createElement)("p",{className:"text-md text-gray-600 mt-2"},(0,l.__)("If there's a styling conflict with another block you can generate a new ID.","pattern-css")))))})(e,o)),Number.MAX_SAFE_INTEGER),(0,e.addFilter)("blocks.getSaveContent.extraProps","kevinbatdorf/pcss-add-save-props",Et)})()})();
     3// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
     4(0,l.__)("See the %1$splugin readme%2$s for examples.","pattern-css"),'<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',"</a>")}}))),(0,t.createElement)(n.InspectorAdvancedControls,null,(0,t.createElement)(a.BaseControl,{id:"pcss-css-id-setting",className:"pattern-css-editor"},(0,t.createElement)(a.TextControl,{spellCheck:!1,autoComplete:"off","data-cy":"class-id",type:"text",label:(0,l.__)("Pattern CSS ID","pattern-css"),disabled:!0,onChange:()=>{},value:_}),(0,t.createElement)(a.Button,{variant:"secondary",className:"-mt-2",onClick:()=>{const e=`pcss-${Math.random().toString(36).substring(2,10)}`,t=w?.split(" ")||[],n=[...new Set([...t.filter((e=>!e.startsWith("pcss-"))),e].filter(Boolean))].join(" ");f({pcssClassId:e,className:n})}},(0,l.__)("Generate New ID","pattern-css")),(0,t.createElement)("p",{className:"text-md text-gray-600 mt-2"},(0,l.__)("If there's a styling conflict with another block you can generate a new ID.","pattern-css")))))})(e,o)),Number.MAX_SAFE_INTEGER),(0,e.addFilter)("blocks.getSaveContent.extraProps","kevinbatdorf/pcss-add-save-props",Tt)})()})();
  • pattern-css/tags/1.2.2/build/shiki/dist/index.browser.mjs

    r3037439 r3073927  
    1 const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,a,r,o){let i=n.getLanguageId(e),c=n.getTokenType(e),l=n.getFontStyle(e),u=n.getForeground(e),p=n.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==a&&(l=a),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function r(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function o(e){return e.startsWith("./")?e.slice(2):e}function i(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function c(...e){return e.map(r).map(o).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,s=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}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===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t};var l,u,p,h,m={exports:{}}.exports=s();function d(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(g(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(g(t));return o=15}if(f(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(f(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!f(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,f(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!y(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&y(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&y(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&y(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&y(e.charCodeAt(a))){for(a++;a<e.length&&y(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(g(e)||f(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function g(e){return 32===e||9===e}function f(e){return 10===e||13===e}function y(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(l||(l={})),(u||(u={})).DEFAULT={allowTrailingComma:!1},function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(p||(p={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(h||(h={}));const b=function(e,t=[],s=u.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=u.DEFAULT){const a=d(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),p=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),g=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(p(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return g(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var _;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(_||(_={}));const N="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,k="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,S=N||!k&&!L;let P="",v="";function j(e){P=e.endsWith("/")?e:e+"/"}function w(e){v=e}let C=null;function x(e){if(S)return`${P}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(S)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=b(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(c(...i(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B,G,F={exports:{}};F.exports=(B={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
     1const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
  • pattern-css/tags/1.2.2/build/shiki/dist/index.esm.js

    r3037439 r3073927  
    1 import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
     1import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
  • pattern-css/tags/1.2.2/build/shiki/dist/index.js

    r3037439 r3073927  
    1 "use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
     1"use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
  • pattern-css/tags/1.2.2/build/shiki/dist/index.jsdelivr.iife.js

    r3037439 r3073927  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}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===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://cdn.jsdelivr.net/npm/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • pattern-css/tags/1.2.2/build/shiki/dist/index.mjs

    r3037439 r3073927  
    1 const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,a,s,r,o){let i=n.getLanguageId(e),l=n.getTokenType(e),c=n.getFontStyle(e),u=n.getForeground(e),m=n.getBackground(e);return 0!==t&&(i=t),0!==a&&(l=8===a?0:a),-1!==s&&(c=s),0!==r&&(u=r),0!==o&&(m=o),(i<<0|l<<8|c<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|m<<24)>>>0}}class r{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];return t?t.grammar?t.grammar:t.import?(t.grammar=await t.import(),t.grammar):void 0:null}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var o,i,l={exports:{}};l.exports=(o={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(a=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},a.print=function(e){const t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})},a.getLanguageId=function(e){return(255&e)>>>0},a.getTokenType=function(e){return(768&e)>>>8},a.containsBalancedBrackets=function(e){return 0!=(1024&e)},a.getFontStyle=function(e){return(30720&e)>>>11},a.getForeground=function(e){return(16744448&e)>>>15},a.getBackground=function(e){return(4278190080&e)>>>24},a.set=function(e,t,s,n,r,o,i){let l=a.getLanguageId(e),c=a.getTokenType(e),u=a.containsBalancedBrackets(e)?1:0,m=a.getFontStyle(e),p=a.getForeground(e),h=a.getBackground(e);return 0!==t&&(l=t),8!==s&&(c=s),null!==n&&(u=n?1:0),-1!==r&&(m=r),0!==o&&(p=o),0!==i&&(h=i),(l<<0|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),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);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(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?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,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,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;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 new 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)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}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===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
     1const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),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);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(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?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,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,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;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 new 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)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}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===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
  • pattern-css/tags/1.2.2/build/shiki/dist/index.unpkg.iife.js

    r3037439 r3073927  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}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===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://unpkg.com/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • pattern-css/tags/1.2.2/package.json

    r3039810 r3073927  
    1919    "devDependencies": {
    2020        "@trivago/prettier-plugin-sort-imports": "^4.3.0",
    21         "@types/wordpress__block-editor": "^11.5.10",
    22         "@types/wordpress__blocks": "^12.5.13",
    23         "@types/wordpress__edit-post": "^7.5.6",
    24         "@types/wordpress__editor": "^13.6.7",
     21        "@types/wordpress__block-editor": "^11.5.1",
     22        "@types/wordpress__blocks": "^12.5.1",
     23        "@types/wordpress__edit-post": "^7.5.",
     24        "@types/wordpress__editor": "^13.6.",
    2525        "@types/wordpress__plugins": "^3.0.3",
    26         "@typescript-eslint/eslint-plugin": "^6.21.0",
    27         "@typescript-eslint/parser": "^6.21.0",
    28         "@wordpress/block-editor": "^12.20.0",
    29         "@wordpress/env": "^9.4.0",
    30         "@wordpress/scripts": "^27.3.0",
    31         "@wordpress/url": "^3.53.0",
    32         "autoprefixer": "^10.4.17",
    33         "cypress": "^13.6.4",
     26        "@typescript-eslint/eslint-plugin": "^.0",
     27        "@typescript-eslint/parser": "^.0",
     28        "@wordpress/block-editor": "^12.2.0",
     29        "@wordpress/env": "^9..0",
     30        "@wordpress/scripts": "^27..0",
     31        "@wordpress/url": "^3.5.0",
     32        "autoprefixer": "^10.4.1",
     33        "cypress": "^13.",
    3434        "cypress-wait-until": "^3.0.1",
    35         "eslint": "^8.56.0",
     35        "eslint": "^8..0",
    3636        "eslint-config-prettier": "^9.1.0",
    37         "eslint-plugin-cypress": "^2.15.1",
     37        "eslint-plugin-cypress": "^2.15.",
    3838        "eslint-plugin-no-only-tests": "^3.1.0",
    3939        "eslint-plugin-prettier": "^5.1.3",
    40         "eslint-plugin-react": "^7.33.2",
     40        "eslint-plugin-react": "^7.3",
    4141        "eslint-plugin-react-hooks": "^4.6.0",
    4242        "fast-glob": "^3.3.2",
    43         "glob": "^10.3.10",
    44         "postcss-import": "^16.0.1",
     43        "glob": "^10.3.1",
     44        "postcss-import": "^16.",
    4545        "postcss-safe-important": "^2.0.1",
    4646        "prettier": "^3.2.5",
    4747        "replace-in-file": "^7.1.0",
    48         "tailwindcss": "^3.4.1",
    49         "typescript": "^5.3.3"
     48        "tailwindcss": "^3.4.",
     49        "typescript": "^5."
    5050    },
    5151    "dependencies": {
    52         "@wordpress/block-editor": "^12.20.0",
    53         "@wordpress/blocks": "^12.29.0",
    54         "@wordpress/edit-post": "^7.29.0",
    55         "@wordpress/editor": "^13.29.0",
    56         "@wordpress/element": "^5.29.0",
    57         "@wordpress/i18n": "^4.52.0",
    58         "@wordpress/plugins": "^6.20.0",
     52        "@wordpress/block-editor": "^12.2.0",
     53        "@wordpress/blocks": "^12..0",
     54        "@wordpress/edit-post": "^7..0",
     55        "@wordpress/editor": "^13..0",
     56        "@wordpress/element": "^5..0",
     57        "@wordpress/i18n": "^4.5.0",
     58        "@wordpress/plugins": "^6.2.0",
    5959        "browserlist": "^1.0.1",
    60         "lightningcss": "1.23.0",
    61         "lightningcss-wasm": "1.23.0",
     60        "lightningcss": "1.2",
     61        "lightningcss-wasm": "1.2",
    6262        "react-simple-code-editor": "^0.13.1",
    6363        "shiki": "^0.14.7",
    6464        "swr": "^2.2.5",
    65         "zustand": "^4.5.1"
     65        "zustand": "^4.5."
    6666    }
    6767}
  • pattern-css/tags/1.2.2/pattern-css.php

    r3039810 r3073927  
    55 * Requires at least: 6.0
    66 * Requires PHP:      7.0
    7  * Version:           1.2.1
     7 * Version:           1.2.
    88 * Author:            Kevin Batdorf
    99 * Author URI:        https://twitter.com/kevinbatdorf
     
    2525
    2626add_action('enqueue_block_editor_assets', function () {
     27
    2728    $assets = require plugin_dir_path(__FILE__) . 'build/index.asset.php';
    2829    wp_enqueue_script(
     
    3637        'kevinbatdorf/pattern-css',
    3738        'window.patternCss = ' . wp_json_encode([
    38             'canEditCss' => current_user_can('edit_css'),
    3939            'pluginUrl' => esc_url_raw(plugin_dir_url(__FILE__)),
    4040            'selectorOverride' => defined('PATTERN_CSS_SELECTOR_OVERRIDE') ?
     
    4545    wp_enqueue_style('kevinbatdorf/pattern-css', plugins_url('build/index.css', __FILE__));
    4646});
    47 
    4847
    4948// This works by looking for blocks with the compiled CSS attribute
     
    6362    wp_enqueue_style("pcss-block-{$pcss_block_id}");
    6463
    65     // WP style of safe echoing inline styles
    66     // See: https://github.com/WordPress/WordPress/blob/9ecfdd8e5a42ed4b66ffecb88321242717c89831/wp-includes/theme.php#L1920
    67     wp_add_inline_style("pcss-block-{$pcss_block_id}", wp_strip_all_tags($pcss_additional_css));
     64    wp_add_inline_style("pcss-block-{$pcss_block_id}", $pcss_additional_css);
    6865    return $pre_render;
    6966}, 10, 2);
  • pattern-css/tags/1.2.2/readme.txt

    r3050632 r3073927  
    33Tags:              css, styles, inline, pattern, sync
    44Tested up to:      6.5
    5 Stable tag:        1.2.1
     5Stable tag:        1.2.
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    110110== Frequently Asked Questions ==
    111111
     112
     113
     114
     115
    112116= Can I use something other than [block]? =
    113117
     
    127131
    128132== Changelog ==
     133
     134
     135
     136
     137
     138
    129139
    130140= 1.2.1 - 2024-02-22 =
  • pattern-css/tags/1.2.2/src/components/BlockControl.tsx

    r3039810 r3073927  
    1313    useEffect,
    1414    useState,
    15     useMemo,
    1615    useCallback,
    1716    useRef,
     
    2221import { Warning as CssWarning } from 'lightningcss-wasm';
    2322import { CodeEditor } from './CodeEditor';
    24 import { CodePreview } from './CodePreview';
    2523import { focusAtEndOfLine2 } from '../lib/dom';
    2624import { EditorControls } from './EditorControls';
     
    3533) => {
    3634    const editorWrapperRef = useRef<HTMLDivElement>(null);
    37     const [ready, setReady] = useState(false);
    3835    const [focused, setFocused] = useState(false);
    3936    const [warnings, setWarnings] = useState<CssWarning[]>([]);
     
    5552    const [transformed, setTransformed] = useState<Uint8Array>();
    5653    const [compiled, setCompiled] = useState(compiledCss || '');
    57     const hasPermission = useMemo(() => window?.patternCss?.canEditCss, []);
    5854    const defaultCssExample = '[block] {\n  \n}';
    5955
     
    124120
    125121    useEffect(() => {
    126         if (!hasPermission) return;
    127         setReady(true);
    128     }, [hasPermission]);
    129 
    130     useEffect(() => {
    131         if (!ready || !initialCss) return;
     122        if (!initialCss) return;
    132123        handleChange(initialCss);
    133     }, [ready, handleChange, initialCss]);
    134 
    135     useEffect(() => {
    136         if (!ready) return;
     124    }, [handleChange, initialCss]);
     125
     126    useEffect(() => {
    137127        if (transformed === undefined) return;
    138128        setCompiled(new TextDecoder().decode(transformed));
    139     }, [transformed, ready]);
    140 
    141     useEffect(() => {
    142         if (!ready || css === undefined) return;
     129    }, [transformed]);
     130
     131    useEffect(() => {
     132        if (css === undefined) return;
    143133        setAttributes({
    144134            pcssAdditionalCss: css,
     
    149139        if (existing?.includes(pcssClassId)) return;
    150140        setAttributes({ className: addToClassList(existing, pcssClassId) });
    151     }, [css, setAttributes, ready, pcssClassId, blockId, existingClasses]);
     141    }, [css, setAttributes, pcssClassId, blockId, existingClasses]);
    152142
    153143    // Do a check for the id if they are saving the post
    154144    // TODO: this isn't perfect so check back for pre-save hook
    155145    useEffect(() => {
    156         if (!ready || !pcssClassId || !isSaving) return;
     146        if (!pcssClassId || !isSaving) return;
    157147        const existing = existingClasses?.split(' ') || [];
    158148        if (existing?.find((c: string) => c.startsWith(pcssClassId))) return;
    159149        const className = addToClassList(existing, pcssClassId);
    160150        setAttributes({ className });
    161     }, [isSaving, existingClasses, pcssClassId, setAttributes, ready]);
    162 
    163     useEffect(() => {
    164         if (!ready) return;
     151    }, [isSaving, existingClasses, pcssClassId, setAttributes]);
     152
     153    useEffect(() => {
    165154        if (compiled === compiledCss) return;
    166155        setAttributes({ pcssAdditionalCssCompiled: compiled });
    167     }, [compiled, setAttributes, ready, compiledCss]);
     156    }, [compiled, setAttributes, compiledCss]);
    168157
    169158    useLayoutEffect(() => {
    170         if (!ready || compiled === undefined) return;
     159        if (compiled === undefined) return;
    171160        // Append css to iframe
    172161        const frame = (
     
    197186            ? frame.document.head.appendChild(style)
    198187            : parent.appendChild(style);
    199     }, [compiled, ready, pcssClassId]);
     188    }, [compiled, pcssClassId]);
    200189
    201190    return (
     
    207196                    initialOpen={false}
    208197                    className="pattern-css-editor">
    209                     {hasPermission ? (
    210                         <>
    211                             <div className="relative" ref={editorWrapperRef}>
    212                                 <CodeEditor
    213                                     value={css ?? defaultCssExample}
    214                                     data-cy="pcss-editor-block"
    215                                     onChange={handleChange}
    216                                     onFocus={(e) => {
    217                                         const v = e.target.value;
    218                                         if (v === defaultCssExample) {
    219                                             focusAtEndOfLine2(e.target);
    220                                         }
    221                                         setFocused(true);
    222                                     }}
    223                                     onBlur={() => setFocused(false)}
    224                                     lineOptions={warnings.map(({ loc }) => ({
    225                                         line: loc.line,
    226                                         classes: ['line-error'],
    227                                     }))}
    228                                 />
    229                                 {focused ? null : (
    230                                     <EditorControls
    231                                         handleChange={handleChange}
    232                                         editorWrapperRef={editorWrapperRef}
    233                                     />
    234                                 )}
    235                             </div>
    236                             <p
    237                                 className="m-0 my-2 text-gray-700 text-xs"
    238                                 dangerouslySetInnerHTML={{
    239                                     __html: sprintf(
    240                                         // translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
    241                                         __(
    242                                             'See the %1$splugin readme%2$s for examples.',
    243                                             'pattern-css',
    244                                         ),
    245                                         '<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',
    246                                         '</a>',
    247                                     ),
    248                                 }}
     198                    <div className="relative" ref={editorWrapperRef}>
     199                        <CodeEditor
     200                            value={css ?? defaultCssExample}
     201                            data-cy="pcss-editor-block"
     202                            onChange={handleChange}
     203                            onFocus={(e) => {
     204                                const v = e.target.value;
     205                                if (v === defaultCssExample) {
     206                                    focusAtEndOfLine2(e.target);
     207                                }
     208                                setFocused(true);
     209                            }}
     210                            onBlur={() => setFocused(false)}
     211                            lineOptions={warnings.map(({ loc }) => ({
     212                                line: loc.line,
     213                                classes: ['line-error'],
     214                            }))}
     215                        />
     216                        {focused ? null : (
     217                            <EditorControls
     218                                handleChange={handleChange}
     219                                editorWrapperRef={editorWrapperRef}
    249220                            />
    250                         </>
    251                     ) : (
    252                         <CodePreview value={css} />
    253                     )}
     221                        )}
     222                    </div>
     223                    <p
     224                        className="m-0 my-2 text-gray-700 text-xs"
     225                        dangerouslySetInnerHTML={{
     226                            __html: sprintf(
     227                                // translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
     228                                __(
     229                                    'See the %1$splugin readme%2$s for examples.',
     230                                    'pattern-css',
     231                                ),
     232                                '<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',
     233                                '</a>',
     234                            ),
     235                        }}
     236                    />
    254237                </PanelBody>
    255238            </InspectorControls>
  • pattern-css/tags/1.2.2/src/types.ts

    r3038334 r3073927  
    55    interface Window {
    66        patternCss: {
    7             canEditCss: string;
    87            pluginUrl: string;
    98            transform: typeof transform;
  • pattern-css/trunk/.wp-env.json

    r2988734 r3073927  
    11{
    2     "core": "WordPress/WordPress#6.2",
     2    "core": ,
    33    "plugins": ["."]
    44}
  • pattern-css/trunk/build/index.asset.php

    r3039810 r3073927  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => 'f05d91c41934182ea193');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n'), 'version' => '');
  • pattern-css/trunk/build/index.css

    r3039810 r3073927  
    1 .pattern-css-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.pattern-css-editor *,.pattern-css-editor :after,.pattern-css-editor :before{box-sizing:border-box!important}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pattern-css-editor :is(.sr-only){clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.pattern-css-editor :is(.absolute){position:absolute!important}.pattern-css-editor :is(.relative){position:relative!important}.pattern-css-editor :is(.right-px){right:1px!important}.pattern-css-editor :is(.top-px){top:1px!important}.pattern-css-editor :is(.m-0){margin:0!important}.pattern-css-editor :is(.my-2){margin-bottom:.5rem!important;margin-top:.5rem!important}.pattern-css-editor :is(.-mt-2){margin-top:-.5rem!important}.pattern-css-editor :is(.mt-2){margin-top:.5rem!important}.pattern-css-editor :is(.block){display:block!important}.pattern-css-editor :is(.flex){display:flex!important}.pattern-css-editor :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.pattern-css-editor :is(.flex-col){flex-direction:column!important}.pattern-css-editor :is(.gap-0){gap:0!important}.pattern-css-editor :is(.gap-1){gap:.25rem!important}.pattern-css-editor :is(.gap-2){gap:.5rem!important}.pattern-css-editor :is(.border){border-width:1px!important}.pattern-css-editor :is(.border-solid){border-style:solid!important}.pattern-css-editor :is(.border-gray-600){--tw-border-opacity:1;border-color:rgb(148 148 148/var(--tw-border-opacity))!important}.pattern-css-editor :is(.p-1){padding:.25rem!important}.pattern-css-editor :is(.px-2){padding-left:.5rem!important;padding-right:.5rem!important}.pattern-css-editor :is(.py-1){padding-bottom:.25rem!important;padding-top:.25rem!important}.pattern-css-editor :is(.py-1\.5){padding-bottom:.375rem!important;padding-top:.375rem!important}.pattern-css-editor :is(.font-jetbrains-mono){font-family:pcss-jetbrains-mono,monospace!important}.pattern-css-editor :is(.text-xs){font-size:.75rem!important;line-height:1rem!important}.pattern-css-editor :is(.text-gray-600){--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))!important}.pattern-css-editor :is(.text-gray-700){--tw-text-opacity:1;color:rgb(117 117 117/var(--tw-text-opacity))!important}.pattern-css-editor :is(.text-wp-theme-500){color:var(--wp-admin-theme-color)!important}.pattern-css-editor :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.pattern-css-editor pre,.pattern-css-editor pre *{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}.pattern-css-editor pre,.pattern-css-editor textarea{border-radius:0!important;font-size:.875rem!important;line-height:1.25rem!important;margin:0!important;text-align:left!important}.pattern-css-editor pre:focus,.pattern-css-editor textarea:focus{border-radius:0!important;outline:2px solid transparent!important;outline-offset:2px!important}.pattern-css-editor pre,.pattern-css-editor textarea{direction:ltr!important}.pattern-css-editor .code-preview code{background-color:transparent!important;direction:ltr!important;font-size:.875rem!important;line-height:1.25rem!important;margin:0!important;text-align:left!important;width:100%!important}.pattern-css-editor pre .line-error:after{--tw-bg-opacity:0.3;background-color:rgb(239 68 68/var(--tw-bg-opacity))!important;content:""!important;font-size:.875rem!important;height:1.25rem!important;left:0!important;line-height:1.25rem!important;position:absolute!important;right:0!important}.pattern-css-editor .wp-focus:focus-within{border-color:var(
     1.pattern-css-editor{--tw-ring-inset:var(--tw-empty,    );--tw-ring-offset-width:0px;--tw-ring-offset-color:transparent;--tw-ring-color:var(--wp-admin-theme-color);--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.pattern-css-editor *,.pattern-css-editor :after,.pattern-css-editor :before{box-sizing:border-box!important}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: !important}.pattern-css-editor .wp-focus:focus-within{border-color:var(
    22        --wp-components-color-accent,var(--wp-admin-theme-color,#007cba)
    33    )!important;box-shadow:0 0 0 .5px var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))!important;outline:2px solid transparent!important}@font-face{font-family:pcss-jetbrains-mono;src:url(fonts/pcss-jetbrains-mono.1e66c47a.woff2) format("woff2")}
  • pattern-css/trunk/build/index.js

    r3039810 r3073927  
    1 (()=>{var e,t,n,a,s={460:function(e,t,n){"use strict";var a,s=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,s)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(196)),p="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),h="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),d="npm__react-simple-code-editor__textarea",m="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(d,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(d," {\n    color: transparent !important;\n  }\n\n  .").concat(d,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={capture:!0},t._recordCurrentState=function(){var e=t._input;if(e){var n=e.value,a=e.selectionStart,s=e.selectionEnd;t._recordChange({value:n,selectionStart:a,selectionEnd:s})}},t._getLines=function(e,t){return e.substring(0,t).split("\n")},t._recordChange=function(e,n){var a,s,o;void 0===n&&(n=!1);var i=t._history,l=i.stack,c=i.offset;if(l.length&&c>-1){t._history.stack=l.slice(0,c+1);var u=t._history.stack.length;if(u>100){var p=u-100;t._history.stack=l.slice(p,u),t._history.offset=Math.max(t._history.offset-p,0)}}var h=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&h-d.timestamp<3e3){var m=/[^a-z0-9]([a-z0-9]+)$/i,g=null===(a=t._getLines(d.value,d.selectionStart).pop())||void 0===a?void 0:a.match(m),f=null===(s=t._getLines(e.value,e.selectionStart).pop())||void 0===s?void 0:s.match(m);if((null==g?void 0:g[1])&&(null===(o=null==f?void 0:f[1])||void 0===o?void 0:o.startsWith(g[1])))return void(t._history.stack[t._history.offset]=r(r({},e),{timestamp:h}))}}t._history.stack.push(r(r({},e),{timestamp:h})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,a=t._history.stack[t._history.offset];a&&n&&(t._history.stack[t._history.offset]=r(r({},a),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a-1];s&&(t._updateInput(s),t._history.offset=Math.max(a-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,a=e.offset,s=n[a+1];s&&(t._updateInput(s),t._history.offset=Math.min(a+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,a=n.tabSize,s=n.insertSpaces,r=n.ignoreTabKey,o=n.onKeyDown;if(!o||(o(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var i=e.currentTarget,l=i.value,c=i.selectionStart,u=i.selectionEnd,d=(s?" ":"\t").repeat(a);if(9===e.keyCode&&!r&&t.state.capture)if(e.preventDefault(),e.shiftKey){var m=(_=t._getLines(l,c)).length-1,g=t._getLines(l,u).length-1,f=l.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(d)?e.substring(d.length):e})).join("\n");if(l!==f){var y=_[m];t._applyEdits({value:f,selectionStart:(null==y?void 0:y.startsWith(d))?c-d.length:c,selectionEnd:u-(l.length-f.length)})}}else if(c!==u){var _,b=(_=t._getLines(l,c)).length-1,v=t._getLines(l,u).length-1;y=_[b],t._applyEdits({value:l.split("\n").map((function(e,t){return t>=b&&t<=v?d+e:e})).join("\n"),selectionStart:y&&/\S/.test(y)?c+d.length:c,selectionEnd:u+d.length*(v-b+1)})}else{var w=c+d.length;t._applyEdits({value:l.substring(0,c)+d+l.substring(u),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var k=c!==u;l.substring(0,c).endsWith(d)&&!k&&(e.preventDefault(),w=c-d.length,t._applyEdits({value:l.substring(0,c-d.length)+l.substring(u),selectionStart:w,selectionEnd:w}))}else if(13===e.keyCode){if(c===u){var N=t._getLines(l,c).pop(),S=null==N?void 0:N.match(/^\s+/);if(null==S?void 0:S[0]){e.preventDefault();var L="\n"+S[0];w=c+L.length,t._applyEdits({value:l.substring(0,c)+L+l.substring(u),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var P=void 0;57===e.keyCode&&e.shiftKey?P=["(",")"]:219===e.keyCode?P=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?P=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(P=["`","`"]),c!==u&&P&&(e.preventDefault(),t._applyEdits({value:l.substring(0,c)+P[0]+l.substring(c,u)+P[1]+l.substring(u),selectionStart:c,selectionEnd:u+2}))}else!(h?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(h?e.metaKey&&90===e.keyCode&&e.shiftKey:p?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||h&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,a=n.value,s=n.selectionStart,r=n.selectionEnd;t._recordChange({value:a,selectionStart:s,selectionEnd:r},!0),t.props.onValueChange(a)},t._history={stack:[],offset:-1},t._input=null,t}return s(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.style,s=t.padding,o=t.highlight,i=t.textareaId,l=t.textareaClassName,p=t.autoFocus,h=t.disabled,g=t.form,y=t.maxLength,_=t.minLength,b=t.name,v=t.placeholder,w=t.readOnly,k=t.required,N=t.onClick,S=t.onFocus,L=t.onBlur,P=t.onKeyUp,C=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),j=c(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),x={paddingTop:"object"==typeof s?s.top:s,paddingRight:"object"==typeof s?s.right:s,paddingBottom:"object"==typeof s?s.bottom:s,paddingLeft:"object"==typeof s?s.left:s},A=o(n);return u.createElement("div",r({},j,{style:r(r({},f.container),a)}),u.createElement("pre",r({className:C,"aria-hidden":"true",style:r(r(r({},f.editor),f.highlight),x)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),u.createElement("textarea",{ref:function(t){return e._input=t},style:r(r(r({},f.editor),f.textarea),x),className:d+(l?" ".concat(l):""),id:i,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:N,onKeyUp:P,onFocus:S,onBlur:L,disabled:h,form:g,maxLength:y,minLength:_,name:b,placeholder:v,readOnly:w,required:k,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:m}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(u.Component);t.default=g;var f={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},250:(e,t,n)=>{"use strict";var a=n(196),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,o=a.useEffect,i=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=r({inst:{value:n,getSnapshot:t}}),s=a[0].inst,u=a[1];return i((function(){s.value=n,s.getSnapshot=t,c(s)&&u({inst:s})}),[e,n,t]),o((function(){return c(s)&&u({inst:s}),e((function(){c(s)&&u({inst:s})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},688:(e,t,n)=>{"use strict";e.exports=n(250)},930:function(e){var t;t=()=>{return e={770:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const s=a(n(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let n=0,a=e.length;n<a;n++){const s=e.charCodeAt(n);let r=s,o=!1;if(s>=55296&&s<=56319&&n+1<a){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(s-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&n++}return t}constructor(e){const t=e.length,n=i._utf8ByteLength(e),a=n!==t,s=a?new Uint32Array(t+1):null;a&&(s[t]=n);const r=a?new Uint32Array(n+1):null;a&&(r[n]=t);const o=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const i=e.charCodeAt(n);let c=i,u=!1;if(i>=55296&&i<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}a&&(s[n]=l,u&&(s[n+1]=l),c<=127?r[l+0]=n:c<=2047?(r[l+0]=n,r[l+1]=n):c<=65535?(r[l+0]=n,r[l+1]=n,r[l+2]=n):(r[l+0]=n,r[l+1]=n,r[l+2]=n,r[l+3]=n)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}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===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let a=0,s=e.length;a<s;a++){const s=new i(e[a]);t[a]=s.createString(r),n[a]=s.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const s=r._omalloc(4*e.length);r.HEAPU32.set(n,s/4);const o=r._createOnigScanner(a,s,e.length);for(let n=0,a=e.length;n<a;n++)r._ofree(t[n]);r._ofree(s),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let a=o,s=0;if("number"==typeof n?(8&n&&(a=!0),s=n):"boolean"==typeof n&&(a=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,a,s);return e.dispose(),n}return this._findNextMatchSync(e,t,a,s)}_findNextMatchSync(e,t,n,a){const s=this._onigBinding;let r;if(r=n?s._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):s._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=s.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:n,end:a,length:a-n}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,n,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,n,a){(0,s.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),a),{}}}).then((e=>{r=e,n()}))}(t,n,a,o),p},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,n=a}));var s,r=Object.assign({},a),o=[];s=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||P(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var i,l,c=a.print||console.log.bind(console),u=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&(o=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(i=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var p,h,d,m=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(e,t,n){for(var a=t+n,s=t;e[s]&&!(s>=a);)++s;if(s-t>16&&e.buffer&&g)return g.decode(e.subarray(t,s));for(var r="";t<s;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function y(e){p=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=h=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=d=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var _=[],b=[],v=[];function w(e){_.unshift(e)}function k(e){v.unshift(e)}var N=0,S=null,L=null;function P(e){a.onAbort&&a.onAbort(e),u(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var C,j;function x(e){return e.startsWith("data:application/octet-stream;base64,")}function A(e){try{if(e==C&&i)return new Uint8Array(i);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){P(e)}}function T(e){for(;e.length>0;)e.shift()(a)}function E(e){try{return l.grow(e-p.byteLength+65535>>>16),y(l.buffer),1}catch(e){}}x(C="onig.wasm")||(C=function(e){return a.locateFile?a.locateFile(e,""):""+e}(C)),j="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function O(e,t){var n=R[e];0===t||10===t?((1===e?c:u)(f(n,0)),n.length=0):n.push(t)}var I,B={emscripten_get_now:j,emscripten_memcpy_big:function(e,t,n){h.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=h.length,a=2147483648;if((e>>>=0)>a)return!1;for(var s=1;s<=4;s*=2){var r=n*(1+.2/s);if(r=Math.min(r,e+100663296),E(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,a){for(var s=0,r=0;r<n;r++){var o=d[t>>2],i=d[t+4>>2];t+=8;for(var l=0;l<i;l++)O(e,h[o+l]);s+=i}return d[a>>2]=s,0}};function M(e){function n(){I||(I=!0,a.calledRun=!0,m||(T(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());T(v)}()))}e=e||o,N>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)w(a.preRun.shift());T(_)}(),N>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:B,wasi_snapshot_preview1:B};function t(e,t){var n=e.exports;a.asm=n,y((l=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(N--,a.monitorRunDependencies&&a.monitorRunDependencies(N),0==N&&(null!==S&&(clearInterval(S),S=null),L)){var t=L;L=null,t()}}()}function s(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return A(C)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),P(e)}))}if(N++,a.monitorRunDependencies&&a.monitorRunDependencies(N),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),n(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||x(C)||"function"!=typeof fetch?r(s):fetch(C,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(s)}))}))).catch(n)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?f(h,e,t):""},L=function e(){I||M(),I||(L=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(770);var e,t},e.exports=t()},190:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,a,s,r,o,i){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,p=n.getFontStyle(e),h=n.getForeground(e),d=n.getBackground(e);return 0!==t&&(l=t),8!==a&&(c=a),null!==s&&(u=s?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(d=i),(l<<0|c<<8|u<<10|p<<11|h<<15|d<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=n(878);class s{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=s;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new s(t,n)})),this._defaultAttributes=new s(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new s(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=n(350),s=n(36),r=n(736),o=n(44),i=n(792),l=n(583),c=n(878),u=n(996),p=n(47);function h(e,t,n,a,s){const o=r.createMatchers(t,d),l=i.RuleFactory.getCompiledRuleId(n,a,s.repository);for(const n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:l,grammar:s,priority:n.priority})}function d(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let a=n;a<t.length;a++)if(m(t[a],e))return n=a+1,!0;return!1}))}function m(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,a,s,r,o,i){return new g(e,t,n,a,s,r,o,i)};class g{constructor(e,t,n,a,s,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const e of Object.keys(s)){const t=r.createMatchers(e,d);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:s[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const a=n.injections;if(a)for(let t in a)h(e,t,a[t],this,n);const s=this._grammarRepository.injections(t);s&&s.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&h(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==_.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=s.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new _(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new b(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,l,r,0,t,u,!0,a);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new y(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const a=n.getMetadataForScope(e),s=new l.ScopeStack(null,e),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(t,a,r);return new y(null,s,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let a=-1,r=0,o=0;return null!==n&&(a=n.fontStyle,r=n.foregroundId,o=n.backgroundId),s.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const n=e.split(/ /g);let a=this;for(const e of n)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,n){const a=n.getMetadataForScope(t),s=e.scopePath.push(t),r=n.themeProvider.themeMatch(s),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,s,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class _{constructor(e,t,n,a,s,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}equals(e){return null!==e&&_._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){_._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,a,s,r,o){return new _(this,e,t,n,a,s,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new _(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=_,_.NULL=new _(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,d).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,d).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class b{constructor(e,t,n,s){this.balancedBracketSelectors=s,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=s.EncodedTokenAttributes.set(n,0,s.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=s.EncodedTokenAttributes.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t)}const n=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log("      * "+n[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}}t.LineTokens=b},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=n(878);class s{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=s;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof s?c({baseGrammar:o,selfGrammar:r},a):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=n.injections(e.scopeName);if(i)for(const e of i)a.add(new s(e))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},n);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const s={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?l(p.ruleName,s,n):c(s,n)}else 4===p.kind?n.add(new r(p.scopeName,p.ruleName)):n.add(new s(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new s(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const n of e)i(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof s){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class d{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=d;class m{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=m;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new m(e);if(0===t)return new d(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new g(n,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=n(350),s=n(44),r=n(792),o=n(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,s,l,p,d,m){const g=t.content.length;let f=!1,y=-1;if(d){const o=function(e,t,n,s,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const n=t.getRule(e);n instanceof r.BeginWhileRule&&c.push({rule:n,stack:t})}for(let p=c.pop();p;p=c.pop()){const{ruleScanner:c,findOptions:d}=u(p.rule,e,p.stack.endRule,n,s===l),m=c.findNextMatchSync(t,s,d);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!m){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(m.ruleId!==r.whileRuleId){o=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(p.stack,m.captureIndices[0].start),h(e,t,n,p.stack,i,p.rule.whileCaptures,m.captureIndices),i.produce(p.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>s&&(s=m.captureIndices[0].end,n=!1))}return{stack:o,linePos:s,anchorPosition:l,isFirstLine:n}}(e,t,n,s,l,p);l=o.stack,s=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const _=Date.now();for(;!f;){if(0!==m&&Date.now()-_>m)return new i(l,!0);b()}return new i(l,!1);function b(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${s}: |${t.content.substr(s).replace(/\n$/,"\\n")}|`));const i=function(e,t,n,s,r,i){const l=function(e,t,n,s,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:p}=c(l,e,r.endRule,n,s===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const d=u.findNextMatchSync(t,s,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${s}, anchorPosition: ${i})`),console.log(u.toString()),d&&console.log(`matched rule id: ${d.ruleId} from ${d.captureIndices[0].start} to ${d.captureIndices[0].end}`)}return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}(e,t,n,s,r,i),u=e.getInjections();if(0===u.length)return l;const p=function(e,t,n,s,r,o,i){let l,u=Number.MAX_VALUE,p=null,h=0;const d=o.contentNameScopesList.getScopeNames();for(let o=0,m=e.length;o<m;o++){const m=e[o];if(!m.matcher(d))continue;const g=t.getRule(m.ruleId),{ruleScanner:f,findOptions:y}=c(g,t,null,s,r===i),_=f.findNextMatchSync(n,r,y);if(!_)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${m.debugSelector}`),console.log(f.toString()));const b=_.captureIndices[0].start;if(!(b>=u)&&(u=b,p=_.captureIndices,l=_.ruleId,h=m.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:l}:null}(u,e,t,n,s,r,i);if(!p)return l;if(!l)return p;const h=l.captureIndices[0].start,d=p.captureIndices[0].start;return d<h||p.priorityMatch&&d===h?p:l}(e,t,n,s,l,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(l,g),void(f=!0);const u=i.captureIndices,d=i.matchedRuleId,m=!!(u&&u.length>0)&&u[0].end>s;if(d===r.endRuleId){const r=l.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),h(e,t,n,l,p,r.endCaptures,u),p.produce(l,u[0].end);const o=l;if(l=l.parent,y=o.getAnchorPos(),!m&&o.getEnterPos()===s)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,p.produce(l,g),void(f=!0)}else{const o=e.getRule(d);p.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),_=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(d,s,y,u[0].end===g,null,_,_),o instanceof r.BeginEndRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName+" - "+s.debugBeginRegExp),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.endHasBackReferences&&(l=l.withEndRule(s.getEndWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const s=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+s.debugName),h(e,t,n,l,p,s.beginCaptures,u),p.produce(l,u[0].end),y=u[0].end;const r=s.getContentName(t.content,u),c=_.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),s.whileHasBackReferences&&(l=l.withEndRule(s.getWhileWithResolvedBackReferences(t.content,u))),!m&&i.hasSameRuleAs(l))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),p.produce(l,g),void(f=!0)}else{const s=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+s.debugName+" - "+s.debugMatchRegExp),h(e,t,n,l,p,s.captures,u),p.produce(l,u[0].end),l=l.pop(),!m)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),p.produce(l,g),void(f=!0)}}u[0].end>s&&(s=u[0].end,n=!1)}}function c(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileAG(t,n,s,r),findOptions:0}}function u(e,t,n,s,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:p(s,r)}:{ruleScanner:e.compileWhileAG(t,n,s,r),findOptions:0}}function p(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function h(e,t,n,a,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const m=i[t];if(0===m.length)continue;if(m.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=m.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,m.start):r.produce(a,m.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(c,i),h=o.pushAttributed(p,e),d=a.push(u.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,h),g=e.createOnigString(c.substring(0,m.end));l(e,g,n&&0===m.start,m.start,d,r,!1,0),s.disposeOnigString(g);continue}const g=u.getName(c,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new d(t,m.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=l;class d{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=d},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),l=new s,c=0,u=null,p=[],h=[];function d(){p.push(c),h.push(u)}function m(){c=p.pop(),u=h.pop()}function g(e){n(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),d(),c=1;continue}if(2===l.type){u=[],d(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){m();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){m();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||g("expected colon"),r(i,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,d(),c=4,u=t;continue}if(3===l.type){let n={};o&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,d(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){m();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){m();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),d(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),d(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class s{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,s=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(a=s.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===a){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(a=s.charCodeAt(r),r++,l++,92!==a){if(34===a)break}else r++,l++}t.value=s.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,l++;else if(123===a)t.type=3,r++,l++;else if(93===a)t.type=4,r++,l++;else if(125===a)t.type=5,r++,l++;else if(58===a)t.type=6,r++,l++;else if(44===a)t.type=7,r++,l++;else if(110===a){if(t.type=8,r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;r++,l++}else if(116===a){if(t.type=9,r++,l++,a=s.charCodeAt(r),114!==a)return!1;if(r++,l++,a=s.charCodeAt(r),117!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else if(102===a){if(t.type=10,r++,l++,a=s.charCodeAt(r),97!==a)return!1;if(r++,l++,a=s.charCodeAt(r),108!==a)return!1;if(r++,l++,a=s.charCodeAt(r),115!==a)return!1;if(r++,l++,a=s.charCodeAt(r),101!==a)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(a=s.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=s.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=n(391),o=n(50),i=n(652),l=n(583),c=n(965);s(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new r.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,a,s){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,n,a,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,s)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],s=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}(e);let r=s.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=s.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=s.next()}return a;function o(){if("-"===r){r=s.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=s.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=s.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=s.next()),e}if(n(r)){const e=[];do{e.push(r),r=s.next()}while(n(r));return n=>t(e,n)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=n(69),s=n(350),r=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(n=e,o=t,s.DebugFlags.InDebugMode?r.parseJSON(n,o,!0):JSON.parse(n)):function(e,t){return s.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var n,o}},69:(e,t)=>{function n(e,t,n){const a=e.length;let s=0,r=1,o=0;function i(t){if(null===n)s+=t;else for(;t>0;)10===e.charCodeAt(s)?(s++,r++,o=0):(s++,o++),t--}function l(e){null===n?s=e:i(e-s)}function c(){for(;s<a;){let t=e.charCodeAt(s);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(s,t.length)===t&&(i(t.length),!0)}function p(t){let n=e.indexOf(t,s);l(-1!==n?n+t.length:a)}function h(t){let n=e.indexOf(t,s);if(-1!==n){let a=e.substring(s,n);return l(n+t.length),a}{let t=e.substr(s);return l(a),t}}a>0&&65279===e.charCodeAt(0)&&(s=1);let d=0,m=null,g=[],f=[],y=null;function _(e,t){g.push(d),f.push(m),d=e,m=t}function b(){if(0===g.length)return v("illegal state stack");d=g.pop(),m=f.pop()}function v(t){throw new Error("Near offset "+s+": "+t+" ~~~"+e.substr(s,50)+"~~~")}const w=function(){if(null===y)return v("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m[y]=e,y=null,_(1,e)},k=function(){if(null===y)return v("missing <key>");let e=[];m[y]=e,y=null,_(2,e)},N=function(){let e={};null!==n&&(e[n]={filename:t,line:r,char:o}),m.push(e),_(1,e)},S=function(){let e=[];m.push(e),_(2,e)};function L(){if(1!==d)return v("unexpected </dict>");b()}function P(){return 1===d||2!==d?v("unexpected </array>"):void b()}function C(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function j(e){if(isNaN(e))return v("cannot parse float");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function x(e){if(isNaN(e))return v("cannot parse integer");if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function A(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function T(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function E(e){if(1===d){if(null===y)return v("missing <key>");m[y]=e,y=null}else 2===d?m.push(e):m=e}function R(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;s<a&&(c(),!(s>=a));){const l=e.charCodeAt(s);if(i(1),60!==l)return v("expected <");if(s>=a)return v("unexpected end of input");const h=e.charCodeAt(s);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),c(),u("plist")){p(">");continue}if(u("dict")){p(">"),L();continue}if(u("array")){p(">"),P();continue}return v("unexpected closed tag")}let g=R();switch(g.name){case"dict":1===d?w():2===d?N():(m={},null!==n&&(m[n]={filename:t,line:r,char:o}),_(1,m)),g.isClosed&&L();continue;case"array":1===d?k():2===d?S():(m=[],_(2,m)),g.isClosed&&P();continue;case"key":I=O(g),1!==d?v("unexpected <key>"):null!==y?v("too many <key>"):y=I;continue;case"string":C(O(g));continue;case"real":j(parseFloat(O(g)));continue;case"integer":x(parseInt(O(g),10));continue;case"date":A(new Date(O(g)));continue;case"data":T(O(g));continue;case"true":O(g),E(!0);continue;case"false":O(g),E(!1);continue}if(!/^plist/.test(g.name))return v("unexpected opened tag "+g.name)}var I;return m}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return n(e,t,a)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,s,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,n,s,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=n(878),s=n(965),r=/\\(\d+)/,o=/\\(\d+)/g;Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,n,s){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,n,a,s){super(e,t,n,null),this._match=new m(a,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,n,a,s){super(e,t,n,a),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,n,a,s,r,o,i,l,c){super(e,t,n,a),this._begin=new m(s,this.id),this.beginCaptures=r,this._end=new m(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,n,a,s,r,o,i,l,c){super(e,n,a,s),this._begin=new m(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new m(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class d{static createCaptureRule(e,t,n,a,s){return e.registerRule((e=>new l(t,e,n,a,s)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((s=>{if(e.id=s,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,d._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=a.mergeObjects({},n,e.repository));let s=e.patterns;return void 0===s&&e.include&&(s=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,d._compilePatterns(s,t,n))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,d._compileCaptures(e.whileCaptures||e.captures,t,n),d._compilePatterns(e.patterns,t,n)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,d._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,d._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let a=[];if(e){let s=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>s&&(s=e)}for(let e=0;e<=s;e++)a[e]=null;for(const s in e){if("$vscodeTextmateLocation"===s)continue;const r=parseInt(s,10);let o=0;e[s].patterns&&(o=d.getCompiledRuleId(e[s],t,n)),a[r]=d.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,o)}}return a}static _compilePatterns(e,t,n){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=s.parseInclude(o.include);switch(e.kind){case 0:case 1:i=d.getCompiledRuleId(n[o.include],t,n);break;case 2:let a=n[e.ruleName];a&&(i=d.getCompiledRuleId(a,t,n));break;case 3:case 4:const s=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(s,n);if(l)if(r){let e=l.repository[r];e&&(i=d.getCompiledRuleId(e,t,l.repository))}else i=d.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=d.getCompiledRuleId(o,t,n);if(-1!==i){const e=t.getRule(i);let n=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=d;class m{constructor(e,t){if(e){const t=e.length;let n=0,a=[],s=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(n,r)),a.push("$(?!\\n)(?<!\\n)"),n=r+2):"A"!==t&&"G"!==t||(s=!0),r++}this.hasAnchor=s,0===n?this.source=e:(a.push(e.substring(n,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new m(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,a,s=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),s[e]=n,r[e]=n,o[e]=n,i[e]=n,"\\"===n&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(s[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(s[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(s[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:s.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=m;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map((e=>e.resolveAnchors(t,n)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=n(878);class s{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=a.strcmp(e.scope,t.scope);return 0!==n?n:(n=a.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(n,l.getId(r),l.getId(o)),d=new h(new p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];d.insert(0,n.scope,n.parentScopes,n.fontStyle,l.getId(n.foreground),l.getId(n.background))}return new s(l,c,d)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,a=t[n];for(;e;){if(o(e.scopeName,a)){if(n++,n===t.length)return!0;a=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new i(n.fontStyle,n.foreground,n.background):null}}t.Theme=s;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new r(t,e[n]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],s=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),n[s++]=new c(o,p,e,i,l,u)}}return n}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,n,a,s,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=s,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new 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)}}t.ColorMap=u;class p{constructor(e,t,n,a,s){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=a,this.background=s}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,a=t.parentScopes;let s=null===n?0:n.length,r=null===a?0:a.length;if(s===r)for(let e=0;e<s;e++){const t=n[e].length,s=a[e].length;if(t!==s)return s-t}return r-s}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,a=e.indexOf(".");return-1===a?(t=e,n=""):(t=e.substring(0,a),n=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,a,s,r){if(""===t)return void this._doInsertHere(e,n,a,s,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,n,a,s,r)}_doInsertHere(e,t,n,s,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,n,s,r)}-1===n&&(n=this._mainRule.fontStyle),0===s&&(s=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,n,s,r))}else this._mainRule.acceptOverwrite(e,n,s,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=n(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=n(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function s(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,n){return e.replace(a,((e,a,s,r)=>{let o=n[parseInt(a||s,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=s,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let a=0;a<n;a++){let n=s(e[a],t[a]);if(0!==n)return n}return 0}return n-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},t={};return function n(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}(787)})()},959:(e,t,n)=>{"use strict";e.exports=n.p+"9a7a2ee83f5af0fd4351.wasm"},196:e=>{"use strict";e.exports=window.React},799:()=>{},318:()=>{}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return s[e].call(n.exports,n,n.exports,o),n.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"==typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var r={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,o.d(s,r),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="pattern-css:",o.l=(e,t,s,r)=>{if(n[e])n[e].push(t);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+s){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",a+s),i.src=e),n[e]=[t];var h=(t,a)=>{i.onerror=i.onload=null,clearTimeout(d);var s=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((e=>e(a))),t)return t(a)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&!e;)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=document.baseURI||self.location.href;var e={826:0};o.f.j=(t,n)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var s=new Promise(((n,s)=>a=e[t]=[n,s]));n.push(a[2]=s);var r=o.p+o.u(t),i=new Error;o.l(r,(n=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",i.name="ChunkLoadError",i.type=s,i.request=r,a[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,s,[r,i,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);l&&l(o)}for(t&&t(n);c<r.length;c++)s=r[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=globalThis.webpackChunkpattern_css=globalThis.webpackChunkpattern_css||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.wp.hooks;var t=o(196);const n=window.wp.blockEditor,a=window.wp.components,s=window.wp.element,r=window.wp.data,i=window.wp.escapeHtml,l=window.wp.i18n,c=window.wp.htmlEntities;var u=o(460),p=o.n(u),h=o(930),d=o(190),m="/";const g=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var f,y,_,b,v=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(v||{});class w{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=w.getLanguageId(e),n=w.getTokenType(e),a=w.getFontStyle(e),s=w.getForeground(e),r=w.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:a,foreground:s,background:r})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,a,s,r){let o=w.getLanguageId(e),i=w.getTokenType(e),l=w.getFontStyle(e),c=w.getForeground(e),u=w.getBackground(e);return 0!==t&&(o=t),0!==n&&(i=8===n?0:n),-1!==a&&(l=a),0!==s&&(c=s),0!==r&&(u=r),(o<<0|i<<8|l<<11|(w.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function k(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function N(e){return e.startsWith("./")?e.slice(2):e}function S(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function L(...e){return e.map(k).map(N).join("/")}function P(e){return 32===e||9===e}function C(e){return 10===e||13===e}function j(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(f||(f={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(y||(y={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(_||(_={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(b||(b={}));const x=function(e,t=[],n=y.DEFAULT){let a=null,s=[];const r=[];function o(e){Array.isArray(s)?s.push(e):null!==a&&(s[a]=e)}return function(e,t,n=y.DEFAULT){const a=function(e,t=!1){const n=e.length;let a=0,s="",r=0,o=16,i=0,l=0,c=0,u=0,p=0;function h(t,n){let s=0,r=0;for(;s<t||!n;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,s++}return s<t&&(r=-1),r}function d(){if(s="",p=0,r=a,l=i,u=c,a>=n)return r=n,o=17;let t=e.charCodeAt(a);if(P(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(P(t));return o=15}if(C(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),i++,c=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,s=function(){let t="",s=a;for(;;){if(a>=n){t+=e.substring(s,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(s,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(C(r)){t+=e.substring(s,a),p=2;break}p=6}a++}else{if(t+=e.substring(s,a),a++,a>=n){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}s=a}}return t}(),o=10;case 47:const l=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<n&&!C(e.charCodeAt(a));)a++;return s=e.substring(l,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=n-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,C(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,c=a)}return r||(a++,p=1),s=e.substring(l,a),o=13}return s+=String.fromCharCode(t),a++,o=16;case 45:if(s+=String.fromCharCode(t),a++,a===n||!j(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&j(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&j(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&j(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&j(e.charCodeAt(a))){for(a++;a<e.length&&j(e.charCodeAt(a));)a++;n=a}else p=3;return e.substring(t,n)}(),o=11;default:for(;a<n&&m(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(s=e.substring(r,a),s){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return s+=String.fromCharCode(t),a++,o=16}}function m(e){if(P(e)||C(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,s="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:()=>o,getTokenValue:()=>s,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>l,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}(e,!1),s=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>s.slice())):()=>!0}const c=o(t.onObjectBegin),u=l(t.onObjectProperty),p=r(t.onObjectEnd),h=o(t.onArrayBegin),d=r(t.onArrayEnd),m=l(t.onLiteralValue),g=i(t.onSeparator),f=r(t.onComment),_=i(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function w(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:b||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:b?k(10):f();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function N(e){const t=a.getTokenValue();return e?m(t):(u(t),s.push(t)),w(),!0}function S(){switch(a.getToken()){case 3:return function(){h(),w();let e=!0,t=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||k(4,[],[]),g(","),w(),4===a.getToken()&&v)break}else t&&k(6,[],[]);e?(s.push(0),e=!1):s[s.length-1]++,S()||k(4,[],[4,5]),t=!0}return d(),e||s.pop(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){c(),w();let e=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),2===a.getToken()&&v)break}else e&&k(6,[],[]);(10!==a.getToken()?(k(3,[],[2,5]),!1):(N(!1),6===a.getToken()?(g(":"),w(),S()||k(4,[],[2,5])):k(5,[],[2,5]),s.pop(),!0))||k(4,[],[2,5]),e=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return N(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}w(),17===a.getToken()?!!n.allowEmptyContent||k(4,[],[]):S()?17!==a.getToken()&&k(9,[],[]):k(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(s),s=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{s=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(s),s=e,a=null},onArrayEnd:()=>{s=r.pop()},onLiteralValue:o,onError:(e,n,a)=>{t.push({error:e,offset:n,length:a})}},n),s[0]};var A;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(A||(A={}));const T="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,E="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,R="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,O=T||!E&&!R;let I="",B="";let M=null;function F(e){if(O)return`${I}${e}`;{const t=o(318);return t.isAbsolute(e)?e:t.resolve(m,"..",e)}}async function G(e){const t=[],n=await async function(e){const t=F(e);if(O)return await fetch(t).then((e=>e.text()));{const e=o(799);return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(n)}catch(e){if(a=x(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function D(e){const t=$(await G(e));if(t.include){const n=await D(L(...S(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function $(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...V(e)};var a;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(a=n).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),n}const U={light:"#333333",dark:"#bbbbbb"},W={light:"#fffffe",dark:"#1e1e1e"};function V(e){let t,n,a=e.settings?e.settings:e.tokenColors;const s=a?a.find((e=>!e.name&&!e.scope)):void 0;return s?.settings?.foreground&&(t=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),t||(t="light"===e.type?U.light:U.dark),n||(n="light"===e.type?W.light:W.dark),{fg:t,bg:n}}class q{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await G(e)}(g.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function z(e,t){let n=[];for(let a=0,s=t.length;a<s;a++){let s=t.slice(0,a),r=t[a];n[a]={scopeName:r,themeMatches:J(e,r,s)}}return n}function H(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function K(e,t,n,a){if(!H(e,n))return!1;let s=t.length-1,r=a.length-1;for(;s>=0&&r>=0;)H(t[s],a[r])&&s--,r--;return-1===s}function J(e,t,n){let a=[],s=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);K(l[l.length-1],l.slice(0,l.length-1),t,n)&&(a[s++]=i,e=r)}}return a}var Q=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],X={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Y(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function ee(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const a=Number.parseInt(n);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)X[a]&&t.push({type:"setDecoration",value:X[a]});else if(a<=29){const e=X[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-30]}});else if(38===a){const n=Z(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-40]}});else if(48===a){const n=Z(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Q[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Q[a-100+8]}})}return t}var te={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 ne(e=te){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return s=e.index,function(){if(a)return a;a=[];for(let e=0;e<Q.length;e++)a.push(t(Q[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let s=0;s<6;s++)for(let r=0;r<6;r++)a.push(n([e[t],e[s],e[r]]));let s=8;for(let e=0;e<24;e++,s+=10)a.push(n([s,s,s]));return a}()[s]}var s}}}const ae={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function se(e,t={}){const n=t.bg||"#fff",a=function(e,t){const n=new Map;for(const t of e){const e=t.line;n.has(e)?n.get(e).push(t):n.set(e,[t])}return n}(t.lineOptions??[]),s=t.elements||{};function r(e="",t={},n){const a=s[e]||ae[e];return a?(n=n.filter(Boolean),a({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return r("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",r("code",{},e.map(((n,s)=>{const o=s+1;return r("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(a.get(o)??[]).join(" "),lines:e,line:n,index:s},n.map(((e,a)=>{const s=[`color: ${e.color||t.fg}`];return e.fontStyle&v.Italic&&s.push("font-style: italic"),e.fontStyle&v.Bold&&s.push("font-weight: bold"),e.fontStyle&v.Underline&&s.push("text-decoration: underline"),r("token",{style:s.join("; "),tokens:n,token:e,index:a},[(o=e.content,o.replace(/[&<>"']/g,(e=>re[e])))]);var o})))})))])}const re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class oe extends d.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=g.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await D(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=$(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),n={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ie(e){return"string"==typeof e?g.find((t=>t.id===e||t.aliases?.includes(e))):e}async function le(e){const{_languages:t,_themes:n,_wasmPath:a}=function(e){let t=g,n=e.themes||[],a=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(t=e.langs.map(ie)),e.theme&&n.unshift(e.theme),n.length||(n=["nord"]),{_languages:t,_themes:n,_wasmPath:a}}(e),s=new q(async function(e){if(!M){let t;if(O)t="string"==typeof B?(0,h.loadWASM)({data:await fetch(F(L(...S(e),"onig.wasm")))}):(0,h.loadWASM)({data:B});else{const e=o(318).join(930,"../onig.wasm"),n=o(799).readFileSync(e).buffer;t=(0,h.loadWASM)(n)}M=t.then((()=>({createOnigScanner:e=>(0,h.createOnigScanner)(e),createOnigString:e=>(0,h.createOnigString)(e)})))}return M}(a),"vscode-oniguruma"),r=new oe(s);e.paths?.themes&&(r.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(s.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const i=(await r.loadThemes(n))[0];let l;await r.loadLanguages(t);let c=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<Q.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,a=Q[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${a})`}return e}();function u(e){const t=e?r.getTheme(e):i;if(!t)throw Error(`No theme registration for ${e}`);l&&l.name===t.name||(r.setTheme(t),l=t);const n=r.getColorMap();return"css"===t.type&&function(e,t){e.bg=c[e.bg]||e.bg,e.fg=c[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=c[n]||n})),t.forEach(((e,n)=>{t[n]=c[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function p(e,t="text",n,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:s}=function(e){const t=r.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=u(n);return function(e,t,n,a,s){let r=n.split(/\r\n|\r|\n/),o=d.INITIAL,i=[],l=[];for(let n=0,c=r.length;n<c;n++){let c,u,p,h=r[n];if(""===h){i=[],l.push([]);continue}s.includeExplanation&&(c=a.tokenizeLine(h,o),u=c.tokens,p=0);let d=a.tokenizeLine2(h,o),m=d.tokens.length/2;for(let n=0;n<m;n++){let a=d.tokens[2*n],r=n+1<m?d.tokens[2*n+2]:h.length;if(a===r)continue;let o=d.tokens[2*n+1],l=t[w.getForeground(o)],c=w.getFontStyle(o),g=[];if(s.includeExplanation){let t=0;for(;a+t<r;){let n=u[p],a=h.substring(n.startIndex,n.endIndex);t+=a.length,g.push({content:a,scopes:z(e,n.scopes)}),p++}}i.push({content:h.substring(a,r),color:l,fontStyle:c,explanation:g})}l.push(i),i=[],o=d.ruleStack}return l}(o,i,e,s,a)}function m(e,t){const{_theme:n}=u(t);return function(e,t){const n=t.split(/\r?\n/),a=ne(Object.fromEntries(Q.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),s=function(){let e=null,t=null,n=new Set;return{parse(a){const s=[];let r=0;do{const o=Y(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&s.push({value:i,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const a=ee(o.sequence);for(const s of a)"resetAll"===s.type?(e=null,t=null,n.clear()):"resetForegroundColor"===s.type?e=null:"resetBackgroundColor"===s.type?t=null:"resetDecoration"===s.type&&n.delete(s.value);for(const s of a)"setForegroundColor"===s.type?e=s.value:"setBackgroundColor"===s.type?t=s.value:"setDecoration"===s.type&&n.add(s.value)}r=o.position}while(r<a.length);return s}}}();return n.map((t=>s.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?a.value(t.background):e.bg:t.foreground?a.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let s=v.None;return t.decorations.has("bold")&&(s|=v.Bold),t.decorations.has("italic")&&(s|=v.Italic),t.decorations.has("underline")&&(s|=v.Underline),{content:t.value,color:n,fontStyle:s}}))))}(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let a;a="object"==typeof t?t:{lang:t,theme:n};const s=p(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=u(a.theme);return se(s,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:m,ansiToHtml:function(e,t){const n=m(e,t?.theme),{_theme:a}=u(t?.theme);return se(n,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>u(e)._theme,loadTheme:async function(e){await r.loadTheme(e)},loadLanguage:async function(e){const t=ie(e);s.addLanguage(t),await r.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=u(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=u(e);return t.fg},getLoadedThemes:function(){return r.getLoadedThemes()},getLoadedLanguages:function(){return r.getLoadedLanguages()},setColorReplacements:function(e){c=e}}}var ce=o(688);const ue=()=>{},pe=ue(),he=Object,de=e=>e===pe,me=e=>"function"==typeof e,ge=(e,t)=>({...e,...t}),fe=new WeakMap;let ye=0;const _e=e=>{const t=typeof e,n=e&&e.constructor,a=n==Date;let s,r;if(he(e)!==e||a||n==RegExp)s=a?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(s=fe.get(e),s)return s;if(s=++ye+"~",fe.set(e,s),n==Array){for(s="@",r=0;r<e.length;r++)s+=_e(e[r])+",";fe.set(e,s)}if(n==he){s="#";const t=he.keys(e).sort();for(;!de(r=t.pop());)de(e[r])||(s+=r+":"+_e(e[r])+",");fe.set(e,s)}}return s},be=new WeakMap,ve={},we={},ke="undefined",Ne=typeof window!=ke,Se=typeof document!=ke,Le=(e,t)=>{const n=be.get(e);return[()=>!de(t)&&e.get(t)||ve,a=>{if(!de(t)){const s=e.get(t);t in we||(we[t]=s),n[5](t,ge(s,a),s||ve)}},n[6],()=>!de(t)&&t in we?we[t]:!de(t)&&e.get(t)||ve]};let Pe=!0;const[Ce,je]=Ne&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ue,ue],xe={isOnline:()=>Pe,isVisible:()=>{const e=Se&&document.visibilityState;return de(e)||"hidden"!==e}},Ae={initFocus:e=>(Se&&document.addEventListener("visibilitychange",e),Ce("focus",e),()=>{Se&&document.removeEventListener("visibilitychange",e),je("focus",e)}),initReconnect:e=>{const t=()=>{Pe=!0,e()},n=()=>{Pe=!1};return Ce("online",t),Ce("offline",n),()=>{je("online",t),je("offline",n)}}},Te=!t.useId,Ee=!Ne||"Deno"in window,Re=Ee?t.useEffect:t.useLayoutEffect,Oe="undefined"!=typeof navigator&&navigator.connection,Ie=!Ee&&Oe&&(["slow-2g","2g"].includes(Oe.effectiveType)||Oe.saveData),Be=e=>{if(me(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_e(e):"",t]};let Me=0;const Fe=()=>++Me;async function Ge(...e){const[t,n,a,s]=e,r=ge({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{});let o=r.populateCache;const i=r.rollbackOnError;let l=r.optimisticData;const c=r.throwOnError;if(me(n)){const e=n,a=[],s=t.keys();for(const n of s)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&a.push(n);return Promise.all(a.map(u))}return u(n);async function u(n){const[s]=Be(n);if(!s)return;const[u,p]=Le(t,s),[h,d,m,g]=be.get(t),f=()=>{const e=h[s];return(me(r.revalidate)?r.revalidate(u().data,n):!1!==r.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return f();let y,_=a;const b=Fe();d[s]=[b,0];const v=!de(l),w=u(),k=w.data,N=w._c,S=de(N)?k:N;if(v&&(l=me(l)?l(S,k):l,p({data:l,_c:S})),me(_))try{_=_(S)}catch(e){y=e}if(_&&me(_.then)){if(_=await _.catch((e=>{y=e})),b!==d[s][0]){if(y)throw y;return _}y&&v&&(e=>"function"==typeof i?i(e):!1!==i)(y)&&(o=!0,p({data:S,_c:pe}))}if(o&&!y)if(me(o)){const e=o(_,S);p({data:e,error:pe,_c:pe})}else p({data:_,error:pe,_c:pe});if(d[s][1]=Fe(),Promise.resolve(f()).then((()=>{p({_c:pe})})),!y)return _;if(c)throw y}}const De=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$e=(e,t)=>{if(!be.has(e)){const n=ge(Ae,t),a={},s=Ge.bind(pe,e);let r=ue;const o={},i=(e,t)=>{const n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,a)=>{e.set(t,n);const s=o[t];if(s)for(const e of s)e(n,a)},c=()=>{if(!be.has(e)&&(be.set(e,[a,{},{},{},s,l,i]),!Ee)){const t=n.initFocus(setTimeout.bind(pe,De.bind(pe,a,0))),s=n.initReconnect(setTimeout.bind(pe,De.bind(pe,a,1)));r=()=>{t&&t(),s&&s(),be.delete(e)}}};return c(),[e,s,c,r]}return[e,be.get(e)[4]]},[Ue,We]=$e(new Map),Ve=ge({onLoadingSlow:ue,onSuccess:ue,onError:ue,onErrorRetry:(e,__,t,n,a)=>{const s=t.errorRetryCount,r=a.retryCount,o=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!de(s)&&r>s||setTimeout(n,o,a)},onDiscarded:ue,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ie?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ie?5e3:3e3,compare:(e,t)=>_e(e)==_e(t),isPaused:()=>!1,cache:Ue,mutate:We,fallback:{}},xe),qe=(e,t)=>{const n=ge(e,t);if(t){const{use:a,fallback:s}=e,{use:r,fallback:o}=t;a&&r&&(n.use=a.concat(r)),s&&o&&(n.fallback=ge(s,o))}return n},ze=(0,t.createContext)({}),He=Ne&&window.__SWR_DEVTOOLS_USE__,Ke=He?window.__SWR_DEVTOOLS_USE__:[],Je=e=>me(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Qe=Ke.concat((e=>(t,n,a)=>e(t,n&&((...e)=>{const[a]=Be(t),[,,,s]=be.get(Ue);if(a.startsWith("$inf$"))return n(...e);const r=s[a];return de(r)?n(...e):(delete s[a],r)}),a)));He&&(window.__SWR_DEVTOOLS_REACT__=t);const Xe=t.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Ye={dedupe:!0};he.defineProperty((e=>{const{value:n}=e,a=(0,t.useContext)(ze),s=me(n),r=(0,t.useMemo)((()=>s?n(a):n),[s,a,n]),o=(0,t.useMemo)((()=>s?r:qe(a,r)),[s,a,r]),i=r&&r.provider,l=(0,t.useRef)(pe);i&&!l.current&&(l.current=$e(i(o.cache||Ue),r));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),Re((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,t.createElement)(ze.Provider,ge(e,{value:o}))}),"defaultValue",{value:Ve});const Ze=(et=(e,n,a)=>{const{cache:s,compare:r,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:h,keepPreviousData:d}=a,[m,g,f,y]=be.get(s),[_,b]=Be(e),v=(0,t.useRef)(!1),w=(0,t.useRef)(!1),k=(0,t.useRef)(_),N=(0,t.useRef)(n),S=(0,t.useRef)(a),L=()=>S.current,P=()=>L().isVisible()&&L().isOnline(),[C,j,x,A]=Le(s,_),T=(0,t.useRef)({}).current,E=de(i)?a.fallback[_]:i,R=(e,t)=>{for(const n in T){const a=n;if("data"===a){if(!r(e[a],t[a])){if(!de(e[a]))return!1;if(!r(U,t[a]))return!1}}else if(t[a]!==e[a])return!1}return!0},O=(0,t.useMemo)((()=>{const e=!!_&&!!n&&(de(l)?!L().isPaused()&&!o&&(!!de(c)||c):l),t=t=>{const n=ge(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},a=C(),s=A(),r=t(a),i=a===s?r:t(s);let u=r;return[()=>{const e=t(C());return R(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]}),[s,_]),I=(0,ce.useSyncExternalStore)((0,t.useCallback)((e=>x(_,((t,n)=>{R(n,t)||e()}))),[s,_]),O[0],O[1]),B=!v.current,M=m[_]&&m[_].length>0,F=I.data,G=de(F)?E:F,D=I.error,$=(0,t.useRef)(G),U=d?de(F)?$.current:F:G,W=!(M&&!de(D))&&(B&&!de(l)?l:!L().isPaused()&&(o?!de(G)&&c:de(G)||c)),V=!!(_&&n&&B&&W),q=de(I.isValidating)?V:I.isValidating,z=de(I.isLoading)?V:I.isLoading,H=(0,t.useCallback)((async e=>{const t=N.current;if(!_||!t||w.current||L().isPaused())return!1;let n,s,o=!0;const i=e||{},l=!f[_]||!i.dedupe,c=()=>Te?!w.current&&_===k.current&&v.current:_===k.current,u={isValidating:!1,isLoading:!1},p=()=>{j(u)},h=()=>{const e=f[_];e&&e[1]===s&&delete f[_]},d={isValidating:!0};de(C().data)&&(d.isLoading=!0);try{if(l&&(j(d),a.loadingTimeout&&de(C().data)&&setTimeout((()=>{o&&c()&&L().onLoadingSlow(_,a)}),a.loadingTimeout),f[_]=[t(b),Fe()]),[n,s]=f[_],n=await n,l&&setTimeout(h,a.dedupingInterval),!f[_]||f[_][1]!==s)return l&&c()&&L().onDiscarded(_),!1;u.error=pe;const e=g[_];if(!de(e)&&(s<=e[0]||s<=e[1]||0===e[1]))return p(),l&&c()&&L().onDiscarded(_),!1;const i=C().data;u.data=r(i,n)?i:n,l&&c()&&L().onSuccess(n,_,a)}catch(e){h();const t=L(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===n||me(n)&&n(e))&&(L().revalidateOnFocus&&L().revalidateOnReconnect&&!P()||t.onErrorRetry(e,_,t,(e=>{const t=m[_];t&&t[0]&&t[0](3,e)}),{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return o=!1,p(),!0}),[_,s]),K=(0,t.useCallback)(((...e)=>Ge(s,k.current,...e)),[]);if(Re((()=>{N.current=n,S.current=a,de(F)||($.current=F)})),Re((()=>{if(!_)return;const e=H.bind(pe,Ye);let t=0;const n=((e,t,n)=>{const a=t[e]||(t[e]=[]);return a.push(n),()=>{const e=a.indexOf(n);e>=0&&(a[e]=a[a.length-1],a.pop())}})(_,m,((n,a={})=>{if(0==n){const n=Date.now();L().revalidateOnFocus&&n>t&&P()&&(t=n+L().focusThrottleInterval,e())}else if(1==n)L().revalidateOnReconnect&&P()&&e();else{if(2==n)return H();if(3==n)return H(a)}}));return w.current=!1,k.current=_,v.current=!0,j({_k:b}),W&&(de(G)||Ee?e():(a=e,Ne&&typeof window.requestAnimationFrame!=ke?window.requestAnimationFrame(a):setTimeout(a,1))),()=>{w.current=!0,n()};var a}),[_]),Re((()=>{let e;function t(){const t=me(u)?u(C().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){C().error||!p&&!L().isVisible()||!h&&!L().isOnline()?t():H(Ye).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,p,h,_]),(0,t.useDebugValue)(U),o&&de(G)&&_){if(!Te&&Ee)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,S.current=a,w.current=!1;const e=y[_];if(!de(e)){const t=K(e);Xe(t)}if(!de(D))throw D;{const e=H(Ye);de(U)||(e.status="fulfilled",e.value=!0),Xe(e)}}return{mutate:K,get data(){return T.data=!0,U},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,q},get isLoading(){return T.isLoading=!0,z}}},function(...e){const n=ge(Ve,(0,t.useContext)(ze)),[a,s,r]=Je(e),o=qe(n,r);let i=et;const{use:l}=o,c=(l||[]).concat(Qe);for(let e=c.length;e--;)i=c[e](i);return i(a,s||o.fetcher||null,o)});var et;const tt=((e,t)=>(...n)=>{const[a,s,r]=Je(n),o=(r.use||[]).concat(t);return e(a,s,{...r,use:o})})(Ze,(e=>(t,n,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,e(t,n,a)))),nt=({theme:e,lang:t,ready:n})=>{if(!n)throw new Error;return le({langs:[t],theme:e})};let at=!1;const st=({theme:e,lang:t,ready:n=!0})=>{const[a,r]=(0,s.useState)(!1);var o;at||(at=!0,o=window.patternCss?.pluginUrl+"build/shiki/",I=o.endsWith("/")?o:o+"/");const{data:i,error:l}=tt({theme:e,lang:t,ready:n&&a},nt);return(0,s.useEffect)((()=>{const e=window.patternCss?.pluginUrl+"build/shiki/";fetch(e+"dist/onig.wasm").then((e=>e.arrayBuffer())).then((e=>{B=e,r(!0)}))}),[]),{highlighter:i,error:l,loading:!i&&!l||!a}},rt=(0,s.forwardRef)(((e,n)=>{var a,r;const o=(0,s.useRef)(null),{value:i,onChange:l,onFocus:u,onBlur:h,lineOptions:d=[],...m}=e,{highlighter:g,error:f,loading:y}=st({theme:"light-plus",lang:"css"});return y?null:f?(0,t.createElement)("p",null,f.message):(0,t.createElement)("div",{ref:o},(0,t.createElement)(p(),{ref:n,value:(0,c.decodeEntities)(i),className:"font-jetbrains-mono border border-solid border-gray-600 wp-focus",onValueChange:l,...m,padding:{top:6,bottom:6,left:8,right:8},style:{minHeight:300,backgroundColor:null!==(a=g?.getBackgroundColor())&&void 0!==a?a:"#fff",color:null!==(r=g?.getForegroundColor())&&void 0!==r?r:"#000"},onKeyDown:e=>"Tab"===e.key&&o.current?.querySelector("textarea")?.focus(),onFocus:u,onBlur:h,highlight:e=>g?.codeToHtml((0,c.decodeEntities)(e),{lang:"css",lineOptions:d})?.replace(/<\/?[pre|code][^>]*>/g,"")}))})),ot=({value:e})=>{var n;const{highlighter:s,error:r,loading:o}=st({theme:"light-plus",lang:"css"});return o?null:r?(0,t.createElement)("p",null,r.message):(0,t.createElement)("div",{className:"flex flex-col gap-2"},(0,t.createElement)(a.BaseControl,{id:"no-permission-to-edit"},(0,t.createElement)(a.Tip,null,(0,l.__)("You do not have permission to edit this css.","pattern-css"))),(0,t.createElement)(a.BaseControl,{id:"code-viewer"},(0,t.createElement)("div",{className:"font-jetbrains-mono border border-gray-600 py-1.5 px-2 code-preview",dangerouslySetInnerHTML:{__html:null!==(n=s?.codeToHtml((0,c.decodeEntities)(e),{lang:"css"}))&&void 0!==n?n:""}})))},it=({handleChange:e,editorWrapperRef:n})=>(0,t.createElement)("div",{className:"flex gap-1 absolute top-px right-px"},(0,t.createElement)(a.Tooltip,{text:(0,l.__)("Clear CSS","pattern-css")},(0,t.createElement)(a.Button,{icon:"no-alt",size:"small",onClick:()=>{e(""),n.current?.querySelector("textarea")?.focus()},className:"text-gray-600 wp-focus gap-0 p-1"},(0,t.createElement)("span",{className:"sr-only"},(0,l.__)("Clear CSS","pattern-css"))))),lt=window.wp.editor,ct=(e,t)=>[...new Set([...e.filter((e=>!e.startsWith("pcss-"))),t].filter(Boolean))].join(" "),ut=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],pt=[];class ht{scopes=[];referenceId=1;references=new Map;wrappedObjects=new WeakMap;externalObjects=new WeakMap;buffers=new Map;instanceData=0;pendingException=null;constructor(e){this.id=pt.length,pt.push(this),this.instance=e,this.table=e.exports.__indirect_function_table,this.exports={},this.pushScope();let t=this.scopes[this.scopes.length-1],n=t.length;t.push(this.exports);try{this.instance.exports.napi_register_module_v1(this.id,n),this.instance.exports.napi_register_wasm_v1&&this.instance.exports.napi_register_wasm_v1(this.id,n)}finally{if(this.popScope(),this.pendingException){let e=this.pendingException;throw this.pendingException=null,e}}}destroy(){pt[this.id]=void 0}getString(e,t=function(e,t){let n=0;for(;0!==e[t];)n++,t++;return n}(this.memory,e)){return dt.decode(this.memory.subarray(e,e+t))}pushScope(){let e=this.scopes.length;return this.scopes.push([void 0,null,globalThis,!0,!1]),e}popScope(){this.scopes.pop();for(let[e,t]of this.buffers)e.byteLength&&t.byteLength&&e.set(t);this.buffers.clear()}get(e){return this.scopes[this.scopes.length-1][e]}set(e,t){this.scopes[this.scopes.length-1][e]=t}pushValue(e){let t=this.scopes[this.scopes.length-1],n=t.length;return t.push(e),n}createValue(e,t){if("boolean"==typeof e)return this.setPointer(t,e?3:4),0;if(void 0===e)return this.setPointer(t,0),0;if(null===e)return this.setPointer(t,1),0;if(e===globalThis)return this.setPointer(t,2),0;let n=this.pushValue(e);return this.setPointer(t,n),0}setPointer(e,t){return this.u32[e>>2]=t,0}_u32=new Uint32Array;get u32(){return 0===this._u32.byteLength&&(this._u32=new Uint32Array(this.instance.exports.memory.buffer)),this._u32}_i32=new Int32Array;get i32(){return 0===this._i32.byteLength&&(this._i32=new Int32Array(this.instance.exports.memory.buffer)),this._i32}_u16=new Uint16Array;get u16(){return 0===this._u16.byteLength&&(this._u16=new Uint16Array(this.instance.exports.memory.buffer)),this._u16}_u64=new BigUint64Array;get u64(){return 0===this._u64.byteLength&&(this._u64=new BigUint64Array(this.instance.exports.memory.buffer)),this._u64}_i64=new BigInt64Array;get i64(){return 0===this._i64.byteLength&&(this._i64=new BigInt64Array(this.instance.exports.memory.buffer)),this._i64}_f64=new Float64Array;get f64(){return 0===this._f64.byteLength&&(this._f64=new Float64Array(this.instance.exports.memory.buffer)),this._f64}_buf=new Uint8Array;get memory(){return 0===this._buf.byteLength&&(this._buf=new Uint8Array(this.instance.exports.memory.buffer)),this._buf}getBufferInfo(e,t){if(this.buffers.has(e)){let n=this.buffers.get(e);return this.setPointer(t,n.byteOffset),n.byteLength}if(e instanceof ArrayBuffer){let n=this.copyBuffer(new Uint8Array(e));return this.setPointer(t,n.byteOffset),n.byteLength}if(e.buffer===this.instance.exports.memory.buffer)return this.setPointer(t,e.byteOffset),e.byteLength;let n=this.copyBuffer(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return this.setPointer(t,n.byteOffset),n.byteLength}copyBuffer(e){let t=this.instance.exports.napi_wasm_malloc(e.byteLength),n=this.memory;n.set(e,t);let a=n.subarray(t,t+e.byteLength);return this.buffers.set(e,a),a}createFunction(e,t){let n=this,a=n.table.get(e);return function(...e){let s=n.pushScope();try{let r=n.scopes[s],o=r.length;r.push({thisArg:this,args:e,data:t,newTarget:new.target});let i=a(n.id,o);return n.get(i)}finally{if(n.popScope(),n.pendingException){let e=n.pendingException;throw n.pendingException=null,e}}}}readPropertyDescriptor(e){let t=this.u32,n=t[e++],a=t[e++],s=t[e++],r=t[e++],o=t[e++],i=t[e++],l=t[e++],c=t[e++],u=n?this.getString(n):this.get(a),p=Boolean(1&l),h=Boolean(2&l),d=Boolean(4&l),m=Boolean(1024&l),g=r?this.createFunction(r,c):void 0,f=o?this.createFunction(o,c):void 0,y=s?this.createFunction(s,c):i?this.get(i):void 0,_={name:u,static:m,configurable:d,enumerable:h};return g||f?(_.get=g,_.set=f):y&&(_.writable=p,_.value=y),_}}const dt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),mt=new TextDecoder("latin1"),gt=new TextDecoder("utf-16"),ft=new TextEncoder;class yt{constructor(e,t,n,a){this.env=e,this.finalize=t,this.hint=n,this.data=a}}const _t=new FinalizationRegistry((e=>{e.finalize&&e.finalize(e.env,e.data,e.hint)}));class bt{}const vt=[];class wt{constructor(e,t,n,a){this.env=e,this.fn=t,this.nativeFn=n,this.context=a,this.id=vt.length,vt.push(this)}}const kt={napi_open_handle_scope(e,t){let n=pt[e],a=n.pushScope();return n.setPointer(t,a)},napi_close_handle_scope(e,t){let n=pt[e];return t!==n.scopes.length-1?13:(n.popScope(),0)},napi_open_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_close_escapable_handle_scope(e,t){throw new Error("not implemented")},napi_escape_handle(e,t,n,a){throw new Error("not implemented")},napi_create_object:(e,t)=>pt[e].createValue({},t),napi_set_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n),i=s.get(a);return r[o]=i,0},napi_get_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.createValue(r[o],a)},napi_delete_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n),i=!1;try{i=delete r[o]}catch(e){}return a&&(s.memory[a]=i?1:0),0},napi_has_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.memory[a]=o in r?1:0,0},napi_has_own_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.memory[a]=r.hasOwnProperty(o)?1:0,0},napi_set_named_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(a);return r[s.getString(n)]=o,0},napi_get_named_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.getString(n);return s.createValue(r[o],a)},napi_has_named_property(e,t,n,a){let s=pt[e],r=s.get(t),o=s.getString(n);return s.memory[a]=o in r?1:0,0},napi_get_property_names(e,t,n){let a=pt[e],s=a.get(t),r=Object.keys(s);return a.createValue(r,n)},napi_get_all_property_names(e,t,n,a,s,r){throw new Error("not implemented")},napi_define_properties(e,t,n,a){let s=pt[e],r=s.get(t),o=a>>2;for(let e=0;e<n;e++){let e=s.readPropertyDescriptor(o);Object.defineProperty(r,e.name,e),o+=8}return 0},napi_object_freeze(e,t){let n=pt[e].get(t);return Object.freeze(n),0},napi_object_seal(e,t){let n=pt[e].get(t);return Object.seal(n),0},napi_get_prototype(e,t,n){let a=pt[e],s=a.get(t);return a.createValue(Object.getPrototypeOf(s),n)},napi_define_class(e,t,n,a,s,r,o,i){let l=pt[e],c=l.createFunction(a,s);Object.defineProperty(c,"name",{value:l.getString(t,n),configurable:!0});let u=o>>2;for(let e=0;e<r;e++){let e=l.readPropertyDescriptor(u);e.static?Object.defineProperty(c,e.name,e):Object.defineProperty(c.prototype,e.name,e),u+=8}return l.createValue(c,i)},napi_create_reference(e,t,n,a){let s=pt[e],r=s.referenceId++;return s.references.set(r,{value:s.get(t),refcount:n}),s.setPointer(a,r)},napi_delete_reference:(e,t)=>(pt[e].references.delete(t),0),napi_get_reference_value(e,t,n){let a=pt[e],s=a.references.get(t);return a.createValue(s.value,n)},napi_reference_ref(e,t,n){let a=pt[e],s=a.references.get(t);return s.refcount++,a.setPointer(n,s.refcount)},napi_reference_unref(e,t,n){let a=pt[e],s=a.references.get(t);return 0===s.refcount?9:(s.refcount--,a.setPointer(n,s.refcount))},napi_add_env_cleanup_hook:()=>0,napi_remove_env_cleanup_hook:()=>0,napi_add_async_cleanup_hook:()=>0,napi_remove_async_cleanup_hook:()=>0,napi_set_instance_data:(e,t,n,a)=>(pt[e].instanceData=t,0),napi_get_instance_data(e,t){let n=pt[e];return n.setPointer(t,n.instanceData)},napi_get_boolean:(e,t,n)=>pt[e].setPointer(n,t?3:4),napi_get_value_bool(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s?1:0,0},napi_create_int32:(e,t,n)=>pt[e].createValue(t,n),napi_get_value_int32(e,t,n){let a=pt[e],s=a.get(t);return a.i32[n>>2]=s,0},napi_create_uint32:(e,t,n)=>pt[e].createValue(t,n),napi_get_value_uint32(e,t,n){let a=pt[e],s=a.get(t);return a.setPointer(n,s)},napi_create_int64:(e,t,n)=>pt[e].createValue(Number(t),n),napi_get_value_int64(e,t,n){let a=pt[e],s=a.get(t);return a.i64[n>>3]=s,0},napi_create_double:(e,t,n)=>pt[e].createValue(t,n),napi_get_value_double(e,t,n){let a=pt[e],s=a.get(t);return a.f64[n>>3]=s,0},napi_create_bigint_int64:(e,t,n)=>pt[e].createValue(BigInt.asIntN(64,t),n),napi_get_value_bigint_int64(e,t,n,a){let s=pt[e],r=s.get(t);return s.i64[n>>3]=r,a&&(s.memory[a]=BigInt.asIntN(64,r)===r?1:0),0},napi_create_bigint_uint64:(e,t,n)=>pt[e].createValue(BigInt.asUintN(64,t),n),napi_get_value_bigint_uint64(e,t,n,a){let s=pt[e],r=s.get(t);return s.u64[n>>3]=r,a&&(s.memory[a]=BigInt.asUintN(64,r)===r?1:0),0},napi_create_bigint_words(e,t,n,a,s){let r=pt[e],o=r.u64,i=a>>3,l=0n,c=0n;for(let e=0;e<n;e++)l+=o[i++]<<c,c+=64n;return l*=BigInt((-1)**t),r.createValue(l,s)},napi_get_value_bigint_words(e,t,n,a,s){let r=pt[e],o=r.get(t),i=r.u32[a>>2];n&&(r.i32[n]=o<0n?1:0);let l=0;if(s){let e=(1n<<64n)-1n,t=r.u64,n=s>>3;for(o<0n&&(o=-o);l<i&&0n!==o;l++)t[n++]=o&e,o>>=64n}for(;o>0n;)l++,o>>=64n;return r.setPointer(a,l)},napi_get_null:(e,t)=>pt[e].setPointer(t,1),napi_create_array:(e,t)=>pt[e].createValue([],t),napi_create_array_with_length:(e,t,n)=>pt[e].createValue(new Array(t),n),napi_set_element(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(a);return r[n]=o,0},napi_get_element(e,t,n,a){let s=pt[e],r=s.get(t)[n];return s.createValue(r,a)},napi_has_element(e,t,n,a){let s=pt[e],r=s.get(t);return s.memory[a]=r.hasOwnProperty(n)?1:0,0},napi_delete_element(e,t,n,a){let s=pt[e],r=s.get(t),o=!1;try{o=delete r[n]}catch(e){}return a&&(s.memory[a]=o?1:0),0},napi_get_array_length(e,t,n){let a=pt[e],s=a.get(t);return a.setPointer(n,s.length)},napi_get_undefined:(e,t)=>pt[e].setPointer(t,0),napi_create_function(e,t,n,a,s,r){let o=pt[e],i=o.createFunction(a,s);return Object.defineProperty(i,"name",{value:o.getString(t,n),configurable:!0}),o.createValue(i,r)},napi_call_function(e,t,n,a,s,r){let o=pt[e],i=o.get(t),l=o.get(n),c=new Array(a),u=o.u32;for(let e=0;e<a;e++)c[e]=o.get(u[s>>2]),s+=4;try{let e=l.apply(i,c);return o.createValue(e,r)}catch(e){return o.pendingException=e,10}},napi_new_instance(e,t,n,a,s){let r=pt[e],o=r.get(t),i=new Array(n),l=r.u32;for(let e=0;e<n;e++)i[e]=r.get(l[a>>2]),a+=4;try{let e=new o(...i);return r.createValue(e,s)}catch(e){return r.pendingException=e,10}},napi_get_cb_info(e,t,n,a,s,r){let o=pt[e],i=o.get(t);o.setPointer(n,i.args.length);for(let e=0;e<i.args.length;e++)o.createValue(i.args[e],a),a+=4;return o.createValue(i.thisArg,s),o.setPointer(r,i.data),0},napi_get_new_target(e,t,n){let a=pt[e],s=a.get(t);return a.createValue(s.newTarget,n)},napi_create_threadsafe_function(e,t,n,a,s,r,o,i,l,c,u){let p=pt[e],h=t?p.get(t):void 0,d=c?p.table.get(c):void 0,m=new wt(p,h,d,l);if(i){let t=p.table.get(i);_t.register(m,new yt(e,t,0,m.id))}return p.setPointer(u,m.id),0},napi_ref_threadsafe_function:()=>0,napi_unref_threadsafe_function:()=>0,napi_acquire_threadsafe_function:()=>0,napi_release_threadsafe_function:(e,t)=>(vt[e]=void 0,0),napi_call_threadsafe_function(e,t,n){let a=vt[e];a.env.pushScope();try{if(a.nativeFn){let e=a.fn?a.env.pushValue(a.fn):0;a.nativeFn(a.env.id,e,a.context,t)}else a.fn&&a.fn()}finally{a.env.popScope()}},napi_get_threadsafe_function_context(e,t){let n=vt[e];return n.env.setPointer(t,n.context),0},napi_throw(e,t){let n=pt[e];return n.pendingException=n.get(t),0},napi_throw_error(e,t,n){let a=pt[e],s=new Error(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_type_error(e,t,n){let a=pt[e],s=new TypeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_throw_range_error(e,t,n){let a=pt[e],s=new RangeError(a.getString(n));return s.code=t,a.pendingException=s,0},napi_create_error(e,t,n,a){let s=pt[e],r=new Error(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_type_error(e,t,n,a){let s=pt[e],r=new TypeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_create_range_error(e,t,n,a){let s=pt[e],r=new RangeError(s.get(n));return r.code=s.get(t),s.createValue(r,a)},napi_get_and_clear_last_exception(e,t){let n=pt[e],a=n.pendingException;return n.pendingException=null,n.createValue(a,t)},napi_is_exception_pending(e,t){let n=pt[e];return n.memory[t]=n.pendingException?1:0,0},napi_fatal_exception(e,t){throw new Error("not implemented")},napi_fatal_error(e,t,n,a){throw new Error("not implemented")},napi_get_global:(e,t)=>pt[e].setPointer(t,2),napi_create_buffer(e,t,n,a){let s=pt[e],r=s.instance.exports.napi_wasm_malloc(t);n&&s.setPointer(n,r);let o=void 0!==globalThis.Buffer?globalThis.Buffer.from(s.memory.buffer,r,t):s.memory.subarray(r,r+t);return s.createValue(o,a)},napi_create_buffer_copy(e,t,n,a,s){let r=pt[e],o=r.instance.exports.napi_wasm_malloc(t);r.memory.set(r.memory.subarray(n,n+t),o),a&&r.setPointer(a,o);let i=void 0!==globalThis.Buffer?globalThis.Buffer.from(r.memory.buffer,o,t):buf;return r.createValue(i,s)},napi_create_external_buffer(e,t,n,a,s,r){let o=pt[e],i=void 0!==globalThis.Buffer?globalThis.Buffer.from(o.memory.buffer,n,t):o.memory.subarray(n,n+t);if(a){let t=o.table.get(a);_t.register(i,new yt(e,t,s,n))}return o.createValue(i,r)},napi_get_buffer_info(e,t,n,a){let s=pt[e],r=s.get(t),o=s.getBufferInfo(r,n);return s.setPointer(a,o)},napi_create_arraybuffer(e,t,n,a){let s=pt[e],r=new ArrayBuffer(t);return n&&s.getBufferInfo(r,ptr),s.createValue(r,a)},napi_create_external_arraybuffer:(e,t,n,a,s,r)=>22,napi_get_arraybuffer_info(e,t,n,a){let s=pt[e],r=s.getBufferInfo(s.get(t),n);return s.setPointer(a,r)},napi_detach_arraybuffer(e,t){let n=pt[e].get(t);return"function"==typeof structuredClone&&structuredClone(n,{transfer:[n]}),0},napi_is_detached_arraybuffer(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=0===s.byteLength?1:0,0},napi_create_typedarray(e,t,n,a,s,r){let o=pt[e],i=new(0,ut[t])(o.get(a),s,n);return o.createValue(i,r)},napi_create_dataview(e,t,n,a,s){let r=pt[e],o=r.get(n),i=new DataView(o,a,t);return r.createValue(i,s)},napi_get_typedarray_info(e,t,n,a,s,r,o){let i=pt[e],l=i.get(t);return i.setPointer(n,ut.indexOf(l.constructor)),i.setPointer(a,l.length),i.getBufferInfo(l,s),i.createValue(l.buffer,r),i.setPointer(o,l.byteOffset)},napi_get_dataview_info(e,t,n,a,s,r){let o=pt[e],i=o.get(t);return o.setPointer(n,i.byteLength),o.getBufferInfo(i,a),o.createValue(i.buffer,s),o.setPointer(r,i.byteOffset)},napi_create_string_utf8(e,t,n,a){let s=pt[e],r=dt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_utf8(e,t,n,a,s){let r=pt[e],o=r.get(t);if(0==n)return r.setPointer(s,function(e){let t=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=55296&&a<=56319&&n<e.length-1){let t=e.charCodeAt(++n);56320==(64512&t)?a=((1023&a)<<10)+(1023&t)+65536:n--}0==(4294967168&a)?t++:0==(4294965248&a)?t+=2:0==(4294901760&a)?t+=3:0==(4292870144&a)&&(t+=4)}return t}(o));let i=ft.encodeInto(o,r.memory.subarray(n,n+a-1));return r.memory[n+i.written]=0,r.setPointer(s,i.written)},napi_create_string_latin1(e,t,n,a){let s=pt[e],r=mt.decode(s.memory.subarray(t,t+n));return s.createValue(r,a)},napi_get_value_string_latin1(e,t,n,a,s){let r=pt[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.memory,l=Math.min(o.length,a-1);for(let e=0;e<l;e++){let t=o.charCodeAt(e);i[n++]=t}return i[n]=0,r.setPointer(s,l)},napi_create_string_utf16(e,t,n,a){let s=pt[e],r=gt.decode(s.memory.subarray(t,t+2*n));return s.createValue(r,a)},napi_get_value_string_utf16(e,t,n,a,s){let r=pt[e],o=r.get(t);if(0==n)return r.setPointer(s,o.length);let i=r.u16,l=n>>1,c=Math.min(o.length,a-1);for(let e=0;e<c;e++){let t=o.charCodeAt(e);i[l++]=t}return i[l]=0,r.setPointer(s,c)},napi_create_date:(e,t,n)=>pt[e].createValue(new Date(t),n),napi_get_date_value(e,t,n){let a=pt[e],s=a.get(t);a.f64[n>>3]=s.valueOf()},napi_create_symbol(e,t,n){let a=pt[e],s=a.get(t);return a.createValue(Symbol(s),n)},napi_coerce_to_bool(e,t,n){let a=pt[e];return a.createValue(Boolean(a.get(t)),n)},napi_coerce_to_number(e,t,n){let a=pt[e];return a.createValue(Number(a.get(t)),n)},napi_coerce_to_object(e,t,n){let a=pt[e];return a.createValue(Object(a.get(t)),n)},napi_coerce_to_string(e,t,n){let a=pt[e];return a.createValue(String(a.get(t)),n)},napi_typeof(e,t,n){let a=pt[e],s=a.get(t);return a.setPointer(n,(()=>{switch(typeof s){case"undefined":return 0;case"boolean":return 2;case"number":return 3;case"string":return 4;case"symbol":return 5;case"object":return null===s?1:s instanceof bt?8:6;case"function":return 7;case"bigint":return 9}})())},napi_instanceof(e,t,n,a){let s=pt[e],r=s.get(t),o=s.get(n);return s.memory[a]=r instanceof o?1:0,0},napi_is_array(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=Array.isArray(s)?1:0,0},napi_is_buffer(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=(void 0!==globalThis.Buffer?globalThis.Buffer.isBuffer(s):s instanceof Uint8Array)?1:0,0},napi_is_date(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof Date?1:0,0},napi_is_error(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof Error?1:0,0},napi_is_typedarray(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=!ArrayBuffer.isView(s)||s instanceof DataView?0:1,0},napi_is_dataview(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof DataView?1:0,0},napi_strict_equals(e,t,n,a){let s=pt[e];return s.memory[a]=s.get(t)===s.get(n)?1:0,0},napi_wrap(e,t,n,a,s,r){let o=pt[e],i=o.get(t);if(o.wrappedObjects.set(i,n),a){let t=o.table.get(a);_t.register(i,new yt(e,t,s,n))}return r?kt.napi_create_reference(e,t,1,r):0},napi_unwrap(e,t,n){let a=pt[e],s=a.get(t),r=a.wrappedObjects.get(s);return a.setPointer(n,r),0},napi_remove_wrap(e,t,n){let a=pt[e],s=a.get(t),r=a.wrappedObjects.get(s);return _t.unregister(s),a.wrappedObjects.delete(s),a.setPointer(n,r)},napi_type_tag_object(e,t,n){throw new Error("not implemented")},napi_check_object_type_tag(e,t,n){throw new Error("not implemented")},napi_add_finalizer(e,t,n,a,s,r){let o=pt[e],i=o.get(t),l=o.table.get(a);return _t.register(i,new yt(e,l,s,n)),r?kt.napi_create_reference(e,t,1,r):0},napi_create_promise(e,t,n){let a=pt[e],s=new Promise(((e,n)=>{a.createValue({resolve:e,reject:n},t)}));return a.createValue(s,n)},napi_resolve_deferred(e,t,n){let a=pt[e],{resolve:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_reject_deferred(e,t,n){let a=pt[e],{reject:s}=a.get(t);return s(a.get(n)),a.set(t,void 0),0},napi_is_promise(e,t,n){let a=pt[e],s=a.get(t);return a.memory[n]=s instanceof Promise?1:0,0},napi_run_script(e,t,n){let a=pt[e],s=a.get(t),r=(0,eval)(s);return a.createValue(r,n)},napi_create_external(e,t,n,a,s){let r=pt[e],o=new bt;if(r.externalObjects.set(o,t),n){let s=r.table.get(n);_t.register(o,new yt(e,s,a,t))}return r.createValue(o,s)},napi_get_value_external(e,t,n){let a=pt[e],s=a.get(t),r=a.externalObjects.get(s);return a.setPointer(n,r)},napi_adjust_external_memory:()=>0};let Nt;function St(e,t,n){Nt(e,t,n)}const Lt=0,Pt=1,Ct=2;let jt,xt,At;function Tt(e){return jt.transform(e)}(async function(e){jt||(xt||(("string"==typeof(e=e??new URL(o(959),o.b))||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=async function(e){try{return(await o.e(641).then(o.t.bind(o,641,19))).readFileSync(e)}catch{return fetch(e)}}(e)),xt=e.then((e=>async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(e,{env:{...kt,await_promise_sync:St}}))).then((({instance:e})=>{let t=new ht(e);At=function(e){let t,n,a,{instance:s,exports:r}=e,{asyncify_get_state:o,asyncify_start_unwind:i,asyncify_stop_unwind:l,asyncify_start_rewind:c,asyncify_stop_rewind:u}=s.exports,p=s.exports.napi_wasm_malloc(4104),h=p+8,d=p+8+4096;function m(){if(o()!==Lt)throw new Error(`Invalid async state ${o()}, expected 0.`)}return new Int32Array(e.memory.buffer,p).set([h,d]),Nt=(s,r,l)=>{if(o()===Ct)return u(),null!=n&&e.createValue(n,r),null!=a&&e.createValue(a,l),void(t=n=a=null);m(),t=e.get(s),i(p)},async function(e){m();let s=r.bundle(e);for(;o()===Pt;){l();try{n=await t}catch(e){a=e}m(),c(p),s=r.bundle(e)}return m(),s}}(t),jt=t.exports}))),await xt)})().then((()=>{window.patternCss.transform=Tt}));const Et=(e,t,n)=>{const a=new Set([e.className?.split(" "),n.className?.split(" ")].flat().filter(Boolean)),{pcssClassId:s}=n;return!s||a.has(s)?e:(a.add(s),{...e,className:[...a].join(" ")})},Rt={pcssAdditionalCss:{type:"string"},pcssAdditionalCssCompiled:{type:"string",default:""},pcssClassId:{type:"string",default:""}};(0,e.addFilter)("blocks.registerBlockType","kevinbatdorf/pcss-block-settings",(e=>{const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{var n;const a=null!==(n=t?.(e))&&void 0!==n?n:{};return Et(a,0,e)},{...e,attributes:{...e.attributes,...Rt}}})),(0,e.addFilter)("editor.BlockEdit","kevinbatdorf/pcss-block-control",(e=>o=>((e,o)=>{const c=(0,s.useRef)(null),[u,p]=(0,s.useState)(!1),[h,d]=(0,s.useState)(!1),[m,g]=(0,s.useState)([]),f=(0,r.useSelect)((e=>{const{isSavingPost:t,isAutosavingPost:n}=e(lt.store);return t()||n()}),[]),{attributes:y,setAttributes:_,clientId:b}=o,{pcssClassId:v,pcssAdditionalCss:w,pcssAdditionalCssCompiled:k,className:N}=y,[S,L]=(0,s.useState)(w),[P,C]=(0,s.useState)(),[j,x]=(0,s.useState)(k||""),A=(0,s.useMemo)((()=>window?.patternCss?.canEditCss),[]),T="[block] {\n  \n}",E=(0,s.useCallback)((e=>{if(void 0===e)return void L(void 0);const t=(0,i.escapeHTML)(e);if(g([]),L(t),!window.patternCss?.transform)return;const n=window.patternCss.transform({filename:"raw.css",code:(new TextEncoder).encode(t),minify:!0,errorRecovery:!0,visitor:{Selector(e){const{name:t,type:n}=e[0],{name:a,type:s}=window.patternCss.selectorOverride||{};return"attribute"===n&&"block"===t||n===s&&t===a?[{...e[0],type:"class",name:v},...e.slice(1)]:"nesting"===e[0].type?e:[{type:"class",name:v},{type:"combinator",value:"descendant"},...e]}}});n.warnings.length>0?g(n.warnings):C(n.code)}),[v]);return(0,s.useEffect)((()=>{A&&p(!0)}),[A]),(0,s.useEffect)((()=>{u&&w&&E(w)}),[u,E,w]),(0,s.useEffect)((()=>{u&&void 0!==P&&x((new TextDecoder).decode(P))}),[P,u]),(0,s.useEffect)((()=>{if(!u||void 0===S)return;_({pcssAdditionalCss:S,pcssClassId:v||`pcss-${b?.split("-")[0]}`});const e=N?.split(" ")||[];e?.includes(v)||_({className:ct(e,v)})}),[S,_,u,v,b,N]),(0,s.useEffect)((()=>{if(!u||!v||!f)return;const e=N?.split(" ")||[];if(e?.find((e=>e.startsWith(v))))return;const t=ct(e,v);_({className:t})}),[f,N,v,_,u]),(0,s.useEffect)((()=>{u&&j!==k&&_({pcssAdditionalCssCompiled:j})}),[j,_,u,k]),(0,s.useLayoutEffect)((()=>{if(!u||void 0===j)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow,t=e?e?.document:document.querySelector(".editor-styles-wrapper");if(!t)return;const n=`pcss-styles-block-${v}`,a=t?.querySelector(`#${n}`);if(a)return void(a.innerHTML=j);const s=e?.document?e.document.createElement("style"):document.createElement("style");s.id=n,s.innerHTML=j,e?.document?.head?e.document.head.appendChild(s):t.appendChild(s)}),[j,u,v]),(0,t.createElement)(t.Fragment,null,e&&(0,t.createElement)(e,{...o}),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:"Additional CSS",initialOpen:!1,className:"pattern-css-editor"},A?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"relative",ref:c},(0,t.createElement)(rt,{value:null!=S?S:T,"data-cy":"pcss-editor-block",onChange:E,onFocus:e=>{e.target.value===T&&(e=>{const t=e.value.split("\n"),n=t[0].length+t[1].length+1;requestAnimationFrame((()=>{e.focus(),e.setSelectionRange(n,n)}))})(e.target),d(!0)},onBlur:()=>d(!1),lineOptions:m.map((({loc:e})=>({line:e.line,classes:["line-error"]})))}),h?null:(0,t.createElement)(it,{handleChange:E,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
     1(()=>{var e,t,n,a,s={,editorWrapperRef:c})),(0,t.createElement)("p",{className:"m-0 my-2 text-gray-700 text-xs",dangerouslySetInnerHTML:{__html:(0,l.sprintf)(
    22// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
    3 (0,l.__)("See the %1$splugin readme%2$s for examples.","pattern-css"),'<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',"</a>")}})):(0,t.createElement)(ot,{value:S}))),(0,t.createElement)(n.InspectorAdvancedControls,null,(0,t.createElement)(a.BaseControl,{id:"pcss-css-id-setting",className:"pattern-css-editor"},(0,t.createElement)(a.TextControl,{spellCheck:!1,autoComplete:"off","data-cy":"class-id",type:"text",label:(0,l.__)("Pattern CSS ID","pattern-css"),disabled:!0,onChange:()=>{},value:v}),(0,t.createElement)(a.Button,{variant:"secondary",className:"-mt-2",onClick:()=>{const e=`pcss-${Math.random().toString(36).substring(2,10)}`,t=N?.split(" ")||[],n=[...new Set([...t.filter((e=>!e.startsWith("pcss-"))),e].filter(Boolean))].join(" ");_({pcssClassId:e,className:n})}},(0,l.__)("Generate New ID","pattern-css")),(0,t.createElement)("p",{className:"text-md text-gray-600 mt-2"},(0,l.__)("If there's a styling conflict with another block you can generate a new ID.","pattern-css")))))})(e,o)),Number.MAX_SAFE_INTEGER),(0,e.addFilter)("blocks.getSaveContent.extraProps","kevinbatdorf/pcss-add-save-props",Et)})()})();
     3// translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
     4(0,l.__)("See the %1$splugin readme%2$s for examples.","pattern-css"),'<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',"</a>")}}))),(0,t.createElement)(n.InspectorAdvancedControls,null,(0,t.createElement)(a.BaseControl,{id:"pcss-css-id-setting",className:"pattern-css-editor"},(0,t.createElement)(a.TextControl,{spellCheck:!1,autoComplete:"off","data-cy":"class-id",type:"text",label:(0,l.__)("Pattern CSS ID","pattern-css"),disabled:!0,onChange:()=>{},value:_}),(0,t.createElement)(a.Button,{variant:"secondary",className:"-mt-2",onClick:()=>{const e=`pcss-${Math.random().toString(36).substring(2,10)}`,t=w?.split(" ")||[],n=[...new Set([...t.filter((e=>!e.startsWith("pcss-"))),e].filter(Boolean))].join(" ");f({pcssClassId:e,className:n})}},(0,l.__)("Generate New ID","pattern-css")),(0,t.createElement)("p",{className:"text-md text-gray-600 mt-2"},(0,l.__)("If there's a styling conflict with another block you can generate a new ID.","pattern-css")))))})(e,o)),Number.MAX_SAFE_INTEGER),(0,e.addFilter)("blocks.getSaveContent.extraProps","kevinbatdorf/pcss-add-save-props",Tt)})()})();
  • pattern-css/trunk/build/shiki/dist/index.browser.mjs

    r3037439 r3073927  
    1 const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,a,r,o){let i=n.getLanguageId(e),c=n.getTokenType(e),l=n.getFontStyle(e),u=n.getForeground(e),p=n.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==a&&(l=a),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function r(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function o(e){return e.startsWith("./")?e.slice(2):e}function i(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function c(...e){return e.map(r).map(o).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,s=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}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===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t};var l,u,p,h,m={exports:{}}.exports=s();function d(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(g(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(g(t));return o=15}if(f(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(f(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!f(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,f(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!y(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&y(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&y(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&y(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&y(e.charCodeAt(a))){for(a++;a<e.length&&y(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(g(e)||f(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function g(e){return 32===e||9===e}function f(e){return 10===e||13===e}function y(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(l||(l={})),(u||(u={})).DEFAULT={allowTrailingComma:!1},function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(p||(p={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(h||(h={}));const b=function(e,t=[],s=u.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=u.DEFAULT){const a=d(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),p=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),g=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(p(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return g(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var _;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(_||(_={}));const N="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,k="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,S=N||!k&&!L;let P="",v="";function j(e){P=e.endsWith("/")?e:e+"/"}function w(e){v=e}let C=null;function x(e){if(S)return`${P}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(S)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=b(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(c(...i(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B,G,F={exports:{}};F.exports=(B={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
     1const e=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s,a=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(a||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),s=n.getTokenType(e),a=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:a,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},G={},function e(t){var s=G[t];if(void 0!==s)return s.exports;var a=G[t]={exports:{}};return B[t].call(a.exports,a,a.exports,e),a.exports}(787));var D=F.exports;function $(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:q(e,r,n)}}return s}function U(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function W(e,t,s,a){if(!U(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)U(t[n],a[r])&&n--,r--;return-1===n}function q(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);W(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var H=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],z={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function V(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function K(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function J(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)z[a]&&t.push({type:"setDecoration",value:z[a]});else if(a<=29){const e=z[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:H[a-30]}});else if(38===a){const s=K(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-40]}});else if(48===a){const s=K(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:H[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:H[a-100+8]}})}return t}var Q={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 X(e,t){const s=t.split(/\r?\n/),n=function(e=Q){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<H.length;e++)a.push(t(H[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(H.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=V(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=J(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return s.map((t=>r.parse(t).map((t=>{let s;s=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(s));let r=a.None;return t.decorations.has("bold")&&(r|=a.Bold),t.decorations.has("italic")&&(r|=a.Italic),t.decorations.has("underline")&&(r|=a.Underline),{content:t.value,color:s,fontStyle:r}}))))}const Y={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function Z(e,t={}){const s=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Y[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((s,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:s,index:r},s.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&a.Italic&&r.push("font-style: italic"),e.fontStyle&a.Bold&&r.push("font-weight: bold"),e.fontStyle&a.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:s,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>ee[e])))]);var i})))})))])}const ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class te extends D.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function se(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}async function ae(e){const{_languages:s,_themes:a,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(se)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),o=new M(async function(e){if(!C){let t;if(S)t="string"==typeof v?m.loadWASM({data:await fetch(x(c(...i(e),"onig.wasm")))}):m.loadWASM({data:v});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=m.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>m.createOnigScanner(e),createOnigString:e=>m.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new te(o);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(o.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(a))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<H.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=H[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function d(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(s);return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=D.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=a.tokenizeLine(m,i),p=u.tokens,h=0);let d=a.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let a=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(a===o)continue;let i=d.tokens[2*s+1],l=t[n.getForeground(i)],u=n.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;a+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:$(e,s.scopes)}),h++}}c.push({content:m.substring(a,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,a)}function f(e,t){const{_theme:s}=d(t);return X(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=d(a.theme);return Z(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=d(t?.theme);return Z(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=se(e);o.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}function ne(e){w(e)}export{t as BUNDLED_LANGUAGES,e as BUNDLED_THEMES,a as FontStyle,ae as getHighlighter,T as loadTheme,Z as renderToHtml,j as setCDN,ne as setOnigasmWASM,w as setWasm,R as toShikiTheme};
  • pattern-css/trunk/build/shiki/dist/index.esm.js

    r3037439 r3073927  
    1 import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
     1import{loadWASM,createOnigScanner,createOnigString}from"vscode-oniguruma";import{INITIAL,Registry as Registry$1}from"vscode-textmate";const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a=loadWASM("string"==typeof WASM?{data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}:{data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>createOnigScanner(e),createOnigString:e=>createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends Registry$1{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}export{languages as BUNDLED_LANGUAGES,themes as BUNDLED_THEMES,FontStyle,getHighlighter,fetchTheme as loadTheme,renderToHtml,setCDN,setOnigasmWASM,setWasm,toShikiTheme};
  • pattern-css/trunk/build/shiki/dist/index.js

    r3037439 r3073927  
    1 "use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,a,s,t,n,o){let l=StackElementMetadata.getLanguageId(e),r=StackElementMetadata.getTokenType(e),i=StackElementMetadata.getFontStyle(e),m=StackElementMetadata.getForeground(e),p=StackElementMetadata.getBackground(e);return 0!==a&&(l=a),0!==s&&(r=8===s?0:s),-1!==t&&(i=t),0!==n&&(m=n),0!==o&&(p=o),(l<<0|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
     1"use strict";var vscodeOniguruma=require("vscode-oniguruma"),vscodeTextmate=require("vscode-textmate");const themes=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],languages=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var CharacterCodes,ParseOptions,ScanError,SyntaxKind,FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(FontStyle||{});class StackElementMetadata{static toBinaryStr(e){let a=e.toString(2);for(;a.length<32;)a="0"+a;return a}static printMetadata(e){let a=StackElementMetadata.getLanguageId(e),s=StackElementMetadata.getTokenType(e),t=StackElementMetadata.getFontStyle(e),n=StackElementMetadata.getForeground(e),o=StackElementMetadata.getBackground(e);console.log({languageId:a,tokenType:s,fontStyle:t,foreground:n,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|r<<8|i<<11|(StackElementMetadata.containsBalancedBrackets(e)?1:0)<<10|m<<15|p<<24)>>>0}}function trimEndSlash(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function trimStartDot(e){return e.startsWith("./")?e.slice(2):e}function dirpathparts(e){const a=e.split(/[\/\\]/g);return a.slice(0,a.length-1)}function join(...e){return e.map(trimEndSlash).map(trimStartDot).join("/")}function groupBy(e,a){const s=new Map;for(const t of e){const e=a(t);s.has(e)?s.get(e).push(t):s.set(e,[t])}return s}function createScanner(e,a=!1){const s=e.length;let t=0,n="",o=0,l=16,r=0,i=0,m=0,p=0,c=0;function d(a,s){let n=0,o=0;for(;n<a||!s;){let a=e.charCodeAt(t);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}t++,n++}return n<a&&(o=-1),o}function g(){if(n="",c=0,o=t,i=r,p=m,t>=s)return o=s,l=17;let a=e.charCodeAt(t);if(isWhiteSpace(a)){do{t++,n+=String.fromCharCode(a),a=e.charCodeAt(t)}while(isWhiteSpace(a));return l=15}if(isLineBreak(a))return t++,n+=String.fromCharCode(a),13===a&&10===e.charCodeAt(t)&&(t++,n+="\n"),r++,m=t,l=14;switch(a){case 123:return t++,l=1;case 125:return t++,l=2;case 91:return t++,l=3;case 93:return t++,l=4;case 58:return t++,l=6;case 44:return t++,l=5;case 34:return t++,n=function(){let a="",n=t;for(;;){if(t>=s){a+=e.substring(n,t),c=2;break}const o=e.charCodeAt(t);if(34===o){a+=e.substring(n,t),t++;break}if(92!==o){if(o>=0&&o<=31){if(isLineBreak(o)){a+=e.substring(n,t),c=2;break}c=6}t++}else{if(a+=e.substring(n,t),t++,t>=s){c=2;break}switch(e.charCodeAt(t++)){case 34:a+='"';break;case 92:a+="\\";break;case 47:a+="/";break;case 98:a+="\b";break;case 102:a+="\f";break;case 110:a+="\n";break;case 114:a+="\r";break;case 116:a+="\t";break;case 117:const e=d(4,!0);e>=0?a+=String.fromCharCode(e):c=4;break;default:c=5}n=t}}return a}(),l=10;case 47:const i=t-1;if(47===e.charCodeAt(t+1)){for(t+=2;t<s&&!isLineBreak(e.charCodeAt(t));)t++;return n=e.substring(i,t),l=12}if(42===e.charCodeAt(t+1)){t+=2;const a=s-1;let o=!1;for(;t<a;){const a=e.charCodeAt(t);if(42===a&&47===e.charCodeAt(t+1)){t+=2,o=!0;break}t++,isLineBreak(a)&&(13===a&&10===e.charCodeAt(t)&&t++,r++,m=t)}return o||(t++,c=1),n=e.substring(i,t),l=13}return n+=String.fromCharCode(a),t++,l=16;case 45:if(n+=String.fromCharCode(a),t++,t===s||!isDigit(e.charCodeAt(t)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let a=t;if(48===e.charCodeAt(t))t++;else for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;if(t<e.length&&46===e.charCodeAt(t)){if(t++,!(t<e.length&&isDigit(e.charCodeAt(t))))return c=3,e.substring(a,t);for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++}let s=t;if(t<e.length&&(69===e.charCodeAt(t)||101===e.charCodeAt(t)))if(t++,(t<e.length&&43===e.charCodeAt(t)||45===e.charCodeAt(t))&&t++,t<e.length&&isDigit(e.charCodeAt(t))){for(t++;t<e.length&&isDigit(e.charCodeAt(t));)t++;s=t}else c=3;return e.substring(a,s)}(),l=11;default:for(;t<s&&u(a);)t++,a=e.charCodeAt(t);if(o!==t){switch(n=e.substring(o,t),n){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return n+=String.fromCharCode(a),t++,l=16}}function u(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){t=e,n="",o=0,l=16,c=0},getPosition:()=>t,scan:a?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>n,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-p,getTokenError:()=>c}}function isWhiteSpace(e){return 32===e||9===e}function isLineBreak(e){return 10===e||13===e}function isDigit(e){return e>=48&&e<=57}function parse$1(e,a=[],s=ParseOptions.DEFAULT){let t=null,n=[];const o=[];function l(e){Array.isArray(n)?n.push(e):null!==t&&(n[t]=e)}return visit(e,{onObjectBegin:()=>{const e={};l(e),o.push(n),n=e,t=null},onObjectProperty:e=>{t=e},onObjectEnd:()=>{n=o.pop()},onArrayBegin:()=>{const e=[];l(e),o.push(n),n=e,t=null},onArrayEnd:()=>{n=o.pop()},onLiteralValue:l,onError:(e,s,t)=>{a.push({error:e,offset:s,length:t})}},s),n[0]}function visit(e,a,s=ParseOptions.DEFAULT){const t=createScanner(e,!1),n=[];function o(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(e){return e?()=>e(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function r(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function i(e){return e?a=>e(a,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const m=l(a.onObjectBegin),p=i(a.onObjectProperty),c=o(a.onObjectEnd),d=l(a.onArrayBegin),g=o(a.onArrayEnd),u=i(a.onLiteralValue),h=r(a.onSeparator),f=o(a.onComment),N=r(a.onError),y=s&&s.disallowComments,b=s&&s.allowTrailingComma;function L(){for(;;){const e=t.scan();switch(t.getTokenError()){case 4:j(14);break;case 5:j(15);break;case 3:j(13);break;case 1:y||j(11);break;case 2:j(12);break;case 6:j(16)}switch(e){case 12:case 13:y?j(10):f();break;case 16:j(1);break;case 15:case 14:break;default:return e}}}function j(e,a=[],s=[]){if(N(e),a.length+s.length>0){let e=t.getToken();for(;17!==e;){if(-1!==a.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function k(e){const a=t.getTokenValue();return e?u(a):(p(a),n.push(a)),L(),!0}return L(),17===t.getToken()?!!s.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(t.getToken()){case 3:return function(){d(),L();let a=!0,s=!1;for(;4!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(s||j(4,[],[]),h(","),L(),4===t.getToken()&&b)break}else s&&j(6,[],[]);a?(n.push(0),a=!1):n[n.length-1]++,e()||j(4,[],[4,5]),s=!0}return g(),a||n.pop(),4!==t.getToken()?j(8,[4],[]):L(),!0}();case 1:return function(){m(),L();let a=!1;for(;2!==t.getToken()&&17!==t.getToken();){if(5===t.getToken()){if(a||j(4,[],[]),h(","),L(),2===t.getToken()&&b)break}else a&&j(6,[],[]);(10!==t.getToken()?(j(3,[],[2,5]),0):(k(!1),6===t.getToken()?(h(":"),L(),e()||j(4,[],[2,5])):j(5,[],[2,5]),n.pop(),1))||j(4,[],[2,5]),a=!0}return c(),2!==t.getToken()?j(7,[2],[]):L(),!0}();case 10:return k(!0);default:return function(){switch(t.getToken()){case 11:const e=t.getTokenValue();let a=Number(e);isNaN(a)&&(j(2),a=0),u(a);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return L(),!0}()}}()?(17!==t.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(CharacterCodes||(CharacterCodes={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ParseOptions||(ParseOptions={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ScanError||(ScanError={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(SyntaxKind||(SyntaxKind={}));const parse=parse$1;var ParseErrorCode;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ParseErrorCode||(ParseErrorCode={}));const isWebWorker="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,isNode="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,isBun="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,isBrowser=isWebWorker||!isNode&&!isBun;let CDN_ROOT="",WASM="";const WASM_PATH="dist/";function setCDN(e){CDN_ROOT=e.endsWith("/")?e:e+"/"}function setWasm(e){WASM=e}let _onigurumaPromise=null;async function getOniguruma(e){if(!_onigurumaPromise){let a;if(isBrowser)a="string"==typeof WASM?vscodeOniguruma.loadWASM({data:await fetch(_resolvePath(join(...dirpathparts(e),"onig.wasm")))}):vscodeOniguruma.loadWASM({data:WASM});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;a=vscodeOniguruma.loadWASM(s)}_onigurumaPromise=a.then((()=>({createOnigScanner:e=>vscodeOniguruma.createOnigScanner(e),createOnigString:e=>vscodeOniguruma.createOnigString(e)})))}return _onigurumaPromise}function _resolvePath(e){if(isBrowser)return`${CDN_ROOT}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function _fetchAssets(e){const a=_resolvePath(e);if(isBrowser)return await fetch(a).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(a,"utf-8")}}async function _fetchJSONAssets(e){const a=[],s=await _fetchAssets(e);let t;try{t=JSON.parse(s)}catch(e){if(t=parse(s,a,{allowTrailingComma:!0}),a.length)throw a[0]}return t}async function fetchTheme(e){const a=toShikiTheme(await _fetchJSONAssets(e));if(a.include){const s=await fetchTheme(join(...dirpathparts(e),a.include));s.settings&&(a.settings=s.settings.concat(a.settings)),s.bg&&!a.bg&&(a.bg=s.bg),s.colors&&(a.colors={...s.colors,...a.colors}),delete a.include}return a}async function fetchGrammar(e){return await _fetchJSONAssets(e)}function repairTheme(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function toShikiTheme(e){const a=e.type||"dark",s={name:e.name,type:a,...e,...getThemeDefaultColors(e)};return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),repairTheme(s),s}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"};function getThemeDefaultColors(e){let a,s,t=e.settings?e.settings:e.tokenColors;const n=t?t.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(a=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!a&&e?.colors?.["editor.foreground"]&&(a=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),a||(a="light"===e.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===e.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),{fg:a,bg:s}}class Resolver{constructor(e,a){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=a}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const a=this.scopeToLangMap[e];if(!a)return null;if(a.grammar)return a.grammar;const s=await fetchGrammar(languages.includes(a)?`${this.languagesPath}${a.path}`:a.path);return a.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((a=>{this.languageMap[a]=e})),this.scopeToLangMap[e.scopeName]=e}}function tokenizeWithTheme(e,a,s,t,n){let o=s.split(/\r\n|\r|\n/),l=vscodeTextmate.INITIAL,r=[],i=[];for(let s=0,m=o.length;s<m;s++){let m,p,c,d=o[s];if(""===d){r=[],i.push([]);continue}n.includeExplanation&&(m=t.tokenizeLine(d,l),p=m.tokens,c=0);let g=t.tokenizeLine2(d,l),u=g.tokens.length/2;for(let s=0;s<u;s++){let t=g.tokens[2*s],o=s+1<u?g.tokens[2*s+2]:d.length;if(t===o)continue;let l=g.tokens[2*s+1],i=a[StackElementMetadata.getForeground(l)],m=StackElementMetadata.getFontStyle(l),h=[];if(n.includeExplanation){let a=0;for(;t+a<o;){let s=p[c],t=d.substring(s.startIndex,s.endIndex);a+=t.length,h.push({content:t,scopes:explainThemeScopes(e,s.scopes)}),c++}}r.push({content:d.substring(t,o),color:i,fontStyle:m,explanation:h})}i.push(r),r=[],l=g.ruleStack}return i}function explainThemeScopes(e,a){let s=[];for(let t=0,n=a.length;t<n;t++){let n=a.slice(0,t),o=a[t];s[t]={scopeName:o,themeMatches:explainThemeScope(e,o,n)}}return s}function matchesOne(e,a){let s=e+".";return e===a||a.substring(0,s.length)===s}function matches(e,a,s,t){if(!matchesOne(e,s))return!1;let n=a.length-1,o=t.length-1;for(;n>=0&&o>=0;)matchesOne(a[n],t[o])&&n--,o--;return-1===n}function explainThemeScope(e,a,s){let t=[],n=0;for(let o=0,l=e.settings.length;o<l;o++){let l,r=e.settings[o];if("string"==typeof r.scope)l=r.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(r.scope))continue;l=r.scope}for(let e=0,o=l.length;e<o;e++){let i=l[e].split(/ /);matches(i[i.length-1],i.slice(0,i.length-1),a,s)&&(t[n++]=r,e=o)}}return t}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(e,a){const s=e.indexOf("",a);if(-1!==s&&"["===e[s+1]){const a=e.indexOf("m",s);return{sequence:e.substring(s+2,a).split(";"),startPosition:s,position:a+1}}return{position:e.length}}function parseColor(e){const a=e.shift();if("2"===a){const a=e.splice(0,3).map((e=>Number.parseInt(e)));if(3!==a.length||a.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:a}}if("5"===a){const a=e.shift();if(a)return{type:"table",index:Number(a)}}}function parseSequence(e){const a=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const t=Number.parseInt(s);if(!Number.isNaN(t))if(0===t)a.push({type:"resetAll"});else if(t<=9)decorations[t]&&a.push({type:"setDecoration",value:decorations[t]});else if(t<=29){const e=decorations[t-20];e&&a.push({type:"resetDecoration",value:e})}else if(t<=37)a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-30]}});else if(38===t){const s=parseColor(e);s&&a.push({type:"setForegroundColor",value:s})}else if(39===t)a.push({type:"resetForegroundColor"});else if(t<=47)a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-40]}});else if(48===t){const s=parseColor(e);s&&a.push({type:"setBackgroundColor",value:s})}else 49===t?a.push({type:"resetBackgroundColor"}):t>=90&&t<=97?a.push({type:"setForegroundColor",value:{type:"named",name:namedColors[t-90+8]}}):t>=100&&t<=107&&a.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[t-100+8]}})}return a}function createAnsiSequenceParser(){let e=null,a=null,s=new Set;return{parse(t){const n=[];let o=0;do{const l=findSequence(t,o),r=l.sequence?t.substring(o,l.startPosition):t.substring(o);if(r.length>0&&n.push({value:r,foreground:e,background:a,decorations:new Set(s)}),l.sequence){const t=parseSequence(l.sequence);for(const n of t)"resetAll"===n.type?(e=null,a=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?a=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of t)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?a=n.value:"setDecoration"===n.type&&s.add(n.value)}o=l.position}while(o<t.length);return n}}}var defaultNamedColorsMap={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 createColorPalette(e=defaultNamedColorsMap){function a(a){return e[a]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let t;return{value:function(e){switch(e.type){case"named":return a(e.name);case"rgb":return s(e.rgb);case"table":return n=e.index,function(){if(t)return t;t=[];for(let e=0;e<namedColors.length;e++)t.push(a(namedColors[e]));let e=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let n=0;n<6;n++)for(let o=0;o<6;o++)t.push(s([e[a],e[n],e[o]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(s([n,n,n]));return t}()[n]}var n}}}function tokenizeAnsiWithTheme(e,a){const s=a.split(/\r?\n/),t=createColorPalette(Object.fromEntries(namedColors.map((a=>[a,e.colors[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]])))),n=createAnsiSequenceParser();return s.map((a=>n.parse(a).map((a=>{let s;s=a.decorations.has("reverse")?a.background?t.value(a.background):e.bg:a.foreground?t.value(a.foreground):e.fg,a.decorations.has("dim")&&(s=dimColor(s));let n=FontStyle.None;return a.decorations.has("bold")&&(n|=FontStyle.Bold),a.decorations.has("italic")&&(n|=FontStyle.Italic),a.decorations.has("underline")&&(n|=FontStyle.Underline),{content:a.value,color:s,fontStyle:n}}))))}function dimColor(e){const a=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(a){if(a[3]){const e=Math.round(Number.parseInt(a[3],16)/2).toString(16).padStart(2,"0");return`#${a[1]}${a[2]}${e}`}return a[2]?`#${a[1]}${a[2]}80`:`#${Array.from(a[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}const defaultElements={pre:({className:e,style:a,children:s})=>`<pre class="${e}" style="${a}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:a})=>`<span class="${e}">${a}</span>`,token:({style:e,children:a})=>`<span style="${e}">${a}</span>`};function renderToHtml(e,a={}){const s=a.bg||"#fff",t=groupBy(a.lineOptions??[],(e=>e.line)),n=a.elements||{};function o(e="",a={},s){const t=n[e]||defaultElements[e];return t?(s=s.filter(Boolean),t({...a,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(a.themeName||""),style:`background-color: ${s}`},[a.langId?`<div class="language-id">${a.langId}</div>`:"",o("code",{},e.map(((s,n)=>{const l=n+1;return o("line",{className:getLineClasses(t.get(l)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,t)=>{const n=[`color: ${e.color||a.fg}`];return e.fontStyle&FontStyle.Italic&&n.push("font-style: italic"),e.fontStyle&FontStyle.Bold&&n.push("font-weight: bold"),e.fontStyle&FontStyle.Underline&&n.push("text-decoration: underline"),o("token",{style:n.join("; "),tokens:s,token:e,index:t},[escapeHtml(e.content)])})))})))])}const htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function escapeHtml(e){return e.replace(/[&<>"']/g,(e=>htmlEscapes[e]))}function getLineClasses(e){const a=new Set(["line"]);for(const s of e)for(const e of s.classes??[])a.add(e);return Array.from(a)}class Registry extends vscodeTextmate.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=languages.reduce(((e,a)=>(e[a.id]=a,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await fetchTheme(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=toShikiTheme(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const a=e.embeddedLangs?.reduce((async(e,a,s)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),e[this._resolver.getLangRegistration(a).scopeName]=s+2,e}),{}),s={embeddedLanguages:a,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},t=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=t,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=t}))}async loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const a=Array.from(this._langGraph.values());for(const e of a)this._resolver.addLanguage(e);for(const e of a)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const a of e.embeddedLangs)this._langGraph.set(a,this._langMap[a])}}function resolveLang(e){return"string"==typeof e?languages.find((a=>a.id===e||a.aliases?.includes(e))):e}function resolveOptions(e){let a=languages,s=e.themes||[],t=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":WASM_PATH;return e.langs&&(a=e.langs.map(resolveLang)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:a,_themes:s,_wasmPath:t}}function generateDefaultColorReplacements(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let a=0;a<namedColors.length;a++){const s=`#A${a.toString().padStart(5,"0")}`,t=namedColors[a].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${t})`}return e}async function getHighlighter(e){const{_languages:a,_themes:s,_wasmPath:t}=resolveOptions(e),n=new Resolver(getOniguruma(t),"vscode-oniguruma"),o=new Registry(n);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(n.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await o.loadThemes(s))[0];let r;await o.loadLanguages(a);let i=generateDefaultColorReplacements();function m(e){const a=e?o.getTheme(e):l;if(!a)throw Error(`No theme registration for ${e}`);r&&r.name===a.name||(o.setTheme(a),r=a);const s=o.getColorMap();return"css"===a.type&&function(e,a){e.bg=i[e.bg]||e.bg,e.fg=i[e.fg]||e.fg,Object.entries(e.colors).forEach((([a,s])=>{e.colors[a]=i[s]||s})),a.forEach(((e,s)=>{a[s]=i[e]||e}))}(a,s),{_theme:a,_colorMap:s}}function p(e,a="text",s,t={includeExplanation:!0}){if(isPlaintext(a))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:n}=function(e){const a=o.getGrammar(e);if(!a)throw Error(`No language registration for ${e}`);return{_grammar:a}}(a),{_theme:l,_colorMap:r}=m(s);return tokenizeWithTheme(l,r,e,n,t)}function c(e,a){const{_theme:s}=m(a);return tokenizeAnsiWithTheme(s,e)}return{codeToThemedTokens:p,codeToHtml:function(e,a="text",s){let t;t="object"==typeof a?a:{lang:a,theme:s};const n=p(e,t.lang,t.theme,{includeExplanation:!1}),{_theme:o}=m(t.theme);return renderToHtml(n,{fg:o.fg,bg:o.bg,lineOptions:t?.lineOptions,themeName:o.name})},ansiToThemedTokens:c,ansiToHtml:function(e,a){const s=c(e,a?.theme),{_theme:t}=m(a?.theme);return renderToHtml(s,{fg:t.fg,bg:t.bg,lineOptions:a?.lineOptions,themeName:t.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await o.loadTheme(e)},loadLanguage:async function(e){const a=resolveLang(e);n.addLanguage(a),await o.loadLanguage(a)},getBackgroundColor:function(e){const{_theme:a}=m(e);return a.bg},getForegroundColor:function(e){const{_theme:a}=m(e);return a.fg},getLoadedThemes:function(){return o.getLoadedThemes()},getLoadedLanguages:function(){return o.getLoadedLanguages()},setColorReplacements:function(e){i=e}}}function isPlaintext(e){return!e||["plaintext","txt","text"].includes(e)}function setOnigasmWASM(e){setWasm(e)}exports.BUNDLED_LANGUAGES=languages,exports.BUNDLED_THEMES=themes,exports.FontStyle=FontStyle,exports.getHighlighter=getHighlighter,exports.loadTheme=fetchTheme,exports.renderToHtml=renderToHtml,exports.setCDN=setCDN,exports.setOnigasmWASM=setOnigasmWASM,exports.setWasm=setWasm,exports.toShikiTheme=toShikiTheme;
  • pattern-css/trunk/build/shiki/dist/index.jsdelivr.iife.js

    r3037439 r3073927  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}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===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://cdn.jsdelivr.net/npm/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • pattern-css/trunk/build/shiki/dist/index.mjs

    r3037439 r3073927  
    1 const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,a,s,r,o){let i=n.getLanguageId(e),l=n.getTokenType(e),c=n.getFontStyle(e),u=n.getForeground(e),m=n.getBackground(e);return 0!==t&&(i=t),0!==a&&(l=8===a?0:a),-1!==s&&(c=s),0!==r&&(u=r),0!==o&&(m=o),(i<<0|l<<8|c<<11|(n.containsBalancedBrackets(e)?1:0)<<10|u<<15|m<<24)>>>0}}class r{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];return t?t.grammar?t.grammar:t.import?(t.grammar=await t.import(),t.grammar):void 0:null}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var o,i,l={exports:{}};l.exports=(o={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(a=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},a.print=function(e){const t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})},a.getLanguageId=function(e){return(255&e)>>>0},a.getTokenType=function(e){return(768&e)>>>8},a.containsBalancedBrackets=function(e){return 0!=(1024&e)},a.getFontStyle=function(e){return(30720&e)>>>11},a.getForeground=function(e){return(16744448&e)>>>15},a.getBackground=function(e){return(4278190080&e)>>>24},a.set=function(e,t,s,n,r,o,i){let l=a.getLanguageId(e),c=a.getTokenType(e),u=a.containsBalancedBrackets(e)?1:0,m=a.getFontStyle(e),p=a.getForeground(e),h=a.getBackground(e);return 0!==t&&(l=t),8!==s&&(c=s),null!==n&&(u=n?1:0),-1!==r&&(m=r),0!==o&&(p=o),0!==i&&(h=i),(l<<0|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),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);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(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?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,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,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;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 new 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)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}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===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
     1const e={"css-variables":()=>import("./themes/css-variables-05f06e1d.mjs").then((e=>e.default)),"dark-plus":()=>import("./themes/dark-plus-3b14211e.mjs").then((e=>e.default)),"dracula-soft":()=>import("./themes/dracula-soft-ab0a6f08.mjs").then((e=>e.default)),dracula:()=>import("./themes/dracula-22fc157d.mjs").then((e=>e.default)),"github-dark-dimmed":()=>import("./themes/github-dark-dimmed-2886658b.mjs").then((e=>e.default)),"github-dark":()=>import("./themes/github-dark-45d4d058.mjs").then((e=>e.default)),"github-light":()=>import("./themes/github-light-1abdeeba.mjs").then((e=>e.default)),hc_light:()=>import("./themes/hc_light-866656c0.mjs").then((e=>e.default)),"light-plus":()=>import("./themes/light-plus-c4a6acc7.mjs").then((e=>e.default)),"material-theme-darker":()=>import("./themes/material-theme-darker-121e11cb.mjs").then((e=>e.default)),"material-theme-lighter":()=>import("./themes/material-theme-lighter-67dbb5c6.mjs").then((e=>e.default)),"material-theme-ocean":()=>import("./themes/material-theme-ocean-4c5f4079.mjs").then((e=>e.default)),"material-theme-palenight":()=>import("./themes/material-theme-palenight-b570e313.mjs").then((e=>e.default)),"material-theme":()=>import("./themes/material-theme-8c7cb8cf.mjs").then((e=>e.default)),"min-dark":()=>import("./themes/min-dark-222484e0.mjs").then((e=>e.default)),"min-light":()=>import("./themes/min-light-76cd360d.mjs").then((e=>e.default)),monokai:()=>import("./themes/monokai-cdbd8f53.mjs").then((e=>e.default)),nord:()=>import("./themes/nord-5cc6e909.mjs").then((e=>e.default)),"one-dark-pro":()=>import("./themes/one-dark-pro-25b24aee.mjs").then((e=>e.default)),poimandres:()=>import("./themes/poimandres-67d1631f.mjs").then((e=>e.default)),"rose-pine-dawn":()=>import("./themes/rose-pine-dawn-c3c73070.mjs").then((e=>e.default)),"rose-pine-moon":()=>import("./themes/rose-pine-moon-eff88722.mjs").then((e=>e.default)),"rose-pine":()=>import("./themes/rose-pine-82cbccbd.mjs").then((e=>e.default)),"slack-dark":()=>import("./themes/slack-dark-b21eb9a6.mjs").then((e=>e.default)),"slack-ochin":()=>import("./themes/slack-ochin-56e5a657.mjs").then((e=>e.default)),"solarized-dark":()=>import("./themes/solarized-dark-dc3ec4c3.mjs").then((e=>e.default)),"solarized-light":()=>import("./themes/solarized-light-b414084a.mjs").then((e=>e.default)),"vitesse-dark":()=>import("./themes/vitesse-dark-255f0bad.mjs").then((e=>e.default)),"vitesse-light":()=>import("./themes/vitesse-light-93fe28eb.mjs").then((e=>e.default))},t=Object.keys(e),a=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",import:()=>import("./languages/abap.tmLanguage-23f03be6.mjs").then((e=>e.default)),displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",import:()=>import("./languages/actionscript-3.tmLanguage-cef213c4.mjs").then((e=>e.default)),displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",import:()=>import("./languages/ada.tmLanguage-c812cbb3.mjs").then((e=>e.default)),displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",import:()=>import("./languages/apache.tmLanguage-13ae24f7.mjs").then((e=>e.default)),displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",import:()=>import("./languages/apex.tmLanguage-59f98cba.mjs").then((e=>e.default)),displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",import:()=>import("./languages/apl.tmLanguage-d5366ebc.mjs").then((e=>e.default)),displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",import:()=>import("./languages/applescript.tmLanguage-0e0bae3b.mjs").then((e=>e.default)),displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",import:()=>import("./languages/ara.tmLanguage-071907fd.mjs").then((e=>e.default)),displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",import:()=>import("./languages/asm.tmLanguage-60f817f7.mjs").then((e=>e.default)),displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",import:()=>import("./languages/astro.tmLanguage-0d6ab168.mjs").then((e=>e.default)),displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",import:()=>import("./languages/awk.tmLanguage-036854f7.mjs").then((e=>e.default)),displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",import:()=>import("./languages/ballerina.tmLanguage-7d3b71ff.mjs").then((e=>e.default)),displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",import:()=>import("./languages/bat.tmLanguage-8fbec8c3.mjs").then((e=>e.default)),displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",import:()=>import("./languages/beancount.tmLanguage-45642e1a.mjs").then((e=>e.default)),displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",import:()=>import("./languages/berry.tmLanguage-9b5533c7.mjs").then((e=>e.default)),displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",import:()=>import("./languages/bibtex.tmLanguage-fc598e52.mjs").then((e=>e.default)),displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",import:()=>import("./languages/bicep.tmLanguage-dc7a40ff.mjs").then((e=>e.default)),displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",import:()=>import("./languages/blade.tmLanguage-d9190bfa.mjs").then((e=>e.default)),displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",import:()=>import("./languages/c.tmLanguage-1ff9dcec.mjs").then((e=>e.default)),displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",import:()=>import("./languages/cadence.tmLanguage-d7be92e6.mjs").then((e=>e.default)),displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",import:()=>import("./languages/clarity.tmLanguage-cefd551b.mjs").then((e=>e.default)),displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",import:()=>import("./languages/clojure.tmLanguage-29296e29.mjs").then((e=>e.default)),displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",import:()=>import("./languages/cmake.tmLanguage-3ea35bc8.mjs").then((e=>e.default)),displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",import:()=>import("./languages/cobol.tmLanguage-1aadb5b9.mjs").then((e=>e.default)),displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",import:()=>import("./languages/codeql.tmLanguage-3b632bd5.mjs").then((e=>e.default)),displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",import:()=>import("./languages/coffee.tmLanguage-6ed3b28c.mjs").then((e=>e.default)),displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",import:()=>import("./languages/cpp.tmLanguage-815420ff.mjs").then((e=>e.default)),displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",import:()=>import("./languages/crystal.tmLanguage-1023ff70.mjs").then((e=>e.default)),displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",import:()=>import("./languages/csharp.tmLanguage-35a94c19.mjs").then((e=>e.default)),displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",import:()=>import("./languages/css.tmLanguage-ddae7075.mjs").then((e=>e.default)),displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",import:()=>import("./languages/cue.tmLanguage-b8fcbc33.mjs").then((e=>e.default)),displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",import:()=>import("./languages/cypher.tmLanguage-a0179e48.mjs").then((e=>e.default)),displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",import:()=>import("./languages/d.tmLanguage-b9012936.mjs").then((e=>e.default)),displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",import:()=>import("./languages/dart.tmLanguage-6958809a.mjs").then((e=>e.default)),displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",import:()=>import("./languages/dax.tmLanguage-553d206a.mjs").then((e=>e.default)),displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",import:()=>import("./languages/diff.tmLanguage-a69d9982.mjs").then((e=>e.default)),displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",import:()=>import("./languages/docker.tmLanguage-4487995b.mjs").then((e=>e.default)),displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",import:()=>import("./languages/dream-maker.tmLanguage-ab035a00.mjs").then((e=>e.default)),displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",import:()=>import("./languages/elixir.tmLanguage-564a40b9.mjs").then((e=>e.default)),displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",import:()=>import("./languages/elm.tmLanguage-a3a9b164.mjs").then((e=>e.default)),displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",import:()=>import("./languages/erb.tmLanguage-35e5b435.mjs").then((e=>e.default)),displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",import:()=>import("./languages/erlang.tmLanguage-48bcb023.mjs").then((e=>e.default)),displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",import:()=>import("./languages/fish.tmLanguage-f2d0541b.mjs").then((e=>e.default)),displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",import:()=>import("./languages/fsharp.tmLanguage-50c72119.mjs").then((e=>e.default)),displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",import:()=>import("./languages/gdresource.tmLanguage-6a1b651d.mjs").then((e=>e.default)),displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",import:()=>import("./languages/gdscript.tmLanguage-ba0811cb.mjs").then((e=>e.default)),displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",import:()=>import("./languages/gdshader.tmLanguage-2e198d22.mjs").then((e=>e.default)),displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",import:()=>import("./languages/gherkin.tmLanguage-00b58be8.mjs").then((e=>e.default)),displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",import:()=>import("./languages/git-commit.tmLanguage-f01d6710.mjs").then((e=>e.default)),displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",import:()=>import("./languages/git-rebase.tmLanguage-e0ede1eb.mjs").then((e=>e.default)),displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",import:()=>import("./languages/glimmer-js.tmLanguage-f699a380.mjs").then((e=>e.default)),displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",import:()=>import("./languages/glimmer-ts.tmLanguage-4277041e.mjs").then((e=>e.default)),displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",import:()=>import("./languages/glsl.tmLanguage-440339e8.mjs").then((e=>e.default)),displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",import:()=>import("./languages/gnuplot.tmLanguage-10be0b3e.mjs").then((e=>e.default)),displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",import:()=>import("./languages/go.tmLanguage-290090a5.mjs").then((e=>e.default)),displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",import:()=>import("./languages/graphql.tmLanguage-6f080657.mjs").then((e=>e.default)),displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",import:()=>import("./languages/groovy.tmLanguage-0a0bc1de.mjs").then((e=>e.default)),displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",import:()=>import("./languages/hack.tmLanguage-b0111193.mjs").then((e=>e.default)),displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",import:()=>import("./languages/haml.tmLanguage-21841d45.mjs").then((e=>e.default)),displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",import:()=>import("./languages/handlebars.tmLanguage-a7c0a82b.mjs").then((e=>e.default)),displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",import:()=>import("./languages/haskell.tmLanguage-46e87b26.mjs").then((e=>e.default)),displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",import:()=>import("./languages/hcl.tmLanguage-cce67ae8.mjs").then((e=>e.default)),displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",import:()=>import("./languages/hjson.tmLanguage-fe57d2df.mjs").then((e=>e.default)),displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",import:()=>import("./languages/hlsl.tmLanguage-baf1ea76.mjs").then((e=>e.default)),displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",import:()=>import("./languages/html.tmLanguage-7bee90a8.mjs").then((e=>e.default)),displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",import:()=>import("./languages/http.tmLanguage-ddfca291.mjs").then((e=>e.default)),displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",import:()=>import("./languages/imba.tmLanguage-0a2d3e2e.mjs").then((e=>e.default)),displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",import:()=>import("./languages/ini.tmLanguage-dfc7b333.mjs").then((e=>e.default)),displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",import:()=>import("./languages/java.tmLanguage-348e34fc.mjs").then((e=>e.default)),displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",import:()=>import("./languages/javascript.tmLanguage-c53ede72.mjs").then((e=>e.default)),displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",import:()=>import("./languages/jinja-html.tmLanguage-138ee912.mjs").then((e=>e.default)),displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",import:()=>import("./languages/jison.tmLanguage-dc776b31.mjs").then((e=>e.default)),displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",import:()=>import("./languages/json.tmLanguage-f0a34dd6.mjs").then((e=>e.default)),displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",import:()=>import("./languages/json5.tmLanguage-647a087f.mjs").then((e=>e.default)),displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",import:()=>import("./languages/jsonc.tmLanguage-23a8af9f.mjs").then((e=>e.default)),displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",import:()=>import("./languages/jsonl.tmLanguage-949e3102.mjs").then((e=>e.default)),displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",import:()=>import("./languages/jsonnet.tmLanguage-a6bacf25.mjs").then((e=>e.default)),displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",import:()=>import("./languages/jssm.tmLanguage-5df9ad58.mjs").then((e=>e.default)),displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",import:()=>import("./languages/jsx.tmLanguage-8607c961.mjs").then((e=>e.default)),displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",import:()=>import("./languages/julia.tmLanguage-40aad3fa.mjs").then((e=>e.default)),displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",import:()=>import("./languages/kotlin.tmLanguage-5cfeec6d.mjs").then((e=>e.default)),displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",import:()=>import("./languages/kusto.tmLanguage-e4114bbf.mjs").then((e=>e.default)),displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",import:()=>import("./languages/latex.tmLanguage-284c1242.mjs").then((e=>e.default)),displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",import:()=>import("./languages/less.tmLanguage-3e196c19.mjs").then((e=>e.default)),displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",import:()=>import("./languages/liquid.tmLanguage-498c87c1.mjs").then((e=>e.default)),displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",import:()=>import("./languages/lisp.tmLanguage-59b3584d.mjs").then((e=>e.default)),displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",import:()=>import("./languages/logo.tmLanguage-5c644d2d.mjs").then((e=>e.default)),displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",import:()=>import("./languages/lua.tmLanguage-3826d711.mjs").then((e=>e.default)),displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",import:()=>import("./languages/make.tmLanguage-5934b3d3.mjs").then((e=>e.default)),displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",import:()=>import("./languages/markdown.tmLanguage-76bd4831.mjs").then((e=>e.default)),displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",import:()=>import("./languages/marko.tmLanguage-f7cdd412.mjs").then((e=>e.default)),displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",import:()=>import("./languages/matlab.tmLanguage-bbd592ac.mjs").then((e=>e.default)),displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",import:()=>import("./languages/mdx.tmLanguage-0e09f242.mjs").then((e=>e.default)),displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",import:()=>import("./languages/mermaid.tmLanguage-5db1f6a2.mjs").then((e=>e.default)),displayName:"Mermaid"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",import:()=>import("./languages/mojo.tmLanguage-ce449c28.mjs").then((e=>e.default)),displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",import:()=>import("./languages/narrat.tmLanguage-2646344e.mjs").then((e=>e.default)),displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",import:()=>import("./languages/nextflow.tmLanguage-7bff6c0e.mjs").then((e=>e.default)),displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",import:()=>import("./languages/nginx.tmLanguage-d7d0f70f.mjs").then((e=>e.default)),displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",import:()=>import("./languages/nim.tmLanguage-95389e93.mjs").then((e=>e.default)),displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",import:()=>import("./languages/nix.tmLanguage-ce2318ba.mjs").then((e=>e.default)),displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",import:()=>import("./languages/objective-c.tmLanguage-f57e891e.mjs").then((e=>e.default)),displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",import:()=>import("./languages/objective-cpp.tmLanguage-f80072f8.mjs").then((e=>e.default)),displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",import:()=>import("./languages/ocaml.tmLanguage-d9b75886.mjs").then((e=>e.default)),displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",import:()=>import("./languages/pascal.tmLanguage-1d94501b.mjs").then((e=>e.default)),displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",import:()=>import("./languages/perl.tmLanguage-9ababd67.mjs").then((e=>e.default)),displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",import:()=>import("./languages/php.tmLanguage-11848870.mjs").then((e=>e.default)),displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",import:()=>import("./languages/plsql.tmLanguage-7b7b1b95.mjs").then((e=>e.default)),displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",import:()=>import("./languages/postcss.tmLanguage-e1ce9483.mjs").then((e=>e.default)),displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",import:()=>import("./languages/powerquery.tmLanguage-5e63151a.mjs").then((e=>e.default)),displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",import:()=>import("./languages/powershell.tmLanguage-0b9e2100.mjs").then((e=>e.default)),displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",import:()=>import("./languages/prisma.tmLanguage-c4dcb630.mjs").then((e=>e.default)),displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",import:()=>import("./languages/prolog.tmLanguage-cf9cb4e0.mjs").then((e=>e.default)),displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",import:()=>import("./languages/proto.tmLanguage-791e2569.mjs").then((e=>e.default)),displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",import:()=>import("./languages/pug.tmLanguage-a02607f0.mjs").then((e=>e.default)),displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",import:()=>import("./languages/puppet.tmLanguage-f4a3eca0.mjs").then((e=>e.default)),displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",import:()=>import("./languages/purescript.tmLanguage-a543cff2.mjs").then((e=>e.default)),displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",import:()=>import("./languages/python.tmLanguage-1cba37cc.mjs").then((e=>e.default)),displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",import:()=>import("./languages/r.tmLanguage-d2ebe5ba.mjs").then((e=>e.default)),displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",import:()=>import("./languages/raku.tmLanguage-21107e05.mjs").then((e=>e.default)),displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",import:()=>import("./languages/razor.tmLanguage-00b7c492.mjs").then((e=>e.default)),displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",import:()=>import("./languages/reg.tmLanguage-c66b7785.mjs").then((e=>e.default)),displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",import:()=>import("./languages/rel.tmLanguage-ec666bfd.mjs").then((e=>e.default)),displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",import:()=>import("./languages/riscv.tmLanguage-3f2cee90.mjs").then((e=>e.default)),displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",import:()=>import("./languages/rst.tmLanguage-ef4c4c8c.mjs").then((e=>e.default)),displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",import:()=>import("./languages/ruby.tmLanguage-15dc1407.mjs").then((e=>e.default)),displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",import:()=>import("./languages/rust.tmLanguage-7f99b044.mjs").then((e=>e.default)),displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",import:()=>import("./languages/sas.tmLanguage-7595cb9a.mjs").then((e=>e.default)),displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",import:()=>import("./languages/sass.tmLanguage-cfe72fe3.mjs").then((e=>e.default)),displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",import:()=>import("./languages/scala.tmLanguage-78b9a846.mjs").then((e=>e.default)),displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",import:()=>import("./languages/scheme.tmLanguage-d7ec01c9.mjs").then((e=>e.default)),displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",import:()=>import("./languages/scss.tmLanguage-3e3c6b2d.mjs").then((e=>e.default)),displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",import:()=>import("./languages/shaderlab.tmLanguage-21a55f92.mjs").then((e=>e.default)),displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",import:()=>import("./languages/shellscript.tmLanguage-c9d85e8e.mjs").then((e=>e.default)),displayName:"Shell",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",import:()=>import("./languages/shellsession.tmLanguage-4020d968.mjs").then((e=>e.default)),displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",import:()=>import("./languages/smalltalk.tmLanguage-d20d7968.mjs").then((e=>e.default)),displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",import:()=>import("./languages/solidity.tmLanguage-5eda4445.mjs").then((e=>e.default)),displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",import:()=>import("./languages/sparql.tmLanguage-e2d30fe9.mjs").then((e=>e.default)),displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",import:()=>import("./languages/splunk.tmLanguage-334fbd1e.mjs").then((e=>e.default)),displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",import:()=>import("./languages/sql.tmLanguage-e83fef9a.mjs").then((e=>e.default)),displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",import:()=>import("./languages/ssh-config.tmLanguage-2afa8259.mjs").then((e=>e.default)),displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",import:()=>import("./languages/stata.tmLanguage-ef6f2eba.mjs").then((e=>e.default)),displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",import:()=>import("./languages/stylus.tmLanguage-0e5d68da.mjs").then((e=>e.default)),displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",import:()=>import("./languages/svelte.tmLanguage-6f52fc6f.mjs").then((e=>e.default)),displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",import:()=>import("./languages/swift.tmLanguage-0bb34705.mjs").then((e=>e.default)),displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",import:()=>import("./languages/system-verilog.tmLanguage-5011d5c2.mjs").then((e=>e.default)),displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",import:()=>import("./languages/tasl.tmLanguage-7f0a372b.mjs").then((e=>e.default)),displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",import:()=>import("./languages/tcl.tmLanguage-c8c905c3.mjs").then((e=>e.default)),displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",import:()=>import("./languages/tex.tmLanguage-6bcf6d22.mjs").then((e=>e.default)),displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",import:()=>import("./languages/toml.tmLanguage-1b8531c7.mjs").then((e=>e.default)),displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",import:()=>import("./languages/tsx.tmLanguage-267e2f5a.mjs").then((e=>e.default)),displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",import:()=>import("./languages/turtle.tmLanguage-030a353f.mjs").then((e=>e.default)),displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",import:()=>import("./languages/twig.tmLanguage-b8077558.mjs").then((e=>e.default)),displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",import:()=>import("./languages/typescript.tmLanguage-de4b3b68.mjs").then((e=>e.default)),displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",import:()=>import("./languages/v.tmLanguage-53fdea6f.mjs").then((e=>e.default)),displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",import:()=>import("./languages/vb.tmLanguage-a3ae732c.mjs").then((e=>e.default)),displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",import:()=>import("./languages/verilog.tmLanguage-c4c95c8d.mjs").then((e=>e.default)),displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",import:()=>import("./languages/vhdl.tmLanguage-f7adf5df.mjs").then((e=>e.default)),displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",import:()=>import("./languages/viml.tmLanguage-7f1108c7.mjs").then((e=>e.default)),displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",import:()=>import("./languages/vue-html.tmLanguage-5594a20c.mjs").then((e=>e.default)),displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",import:()=>import("./languages/vue.tmLanguage-d5fd1824.mjs").then((e=>e.default)),displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",import:()=>import("./languages/vyper.tmLanguage-e575ccf0.mjs").then((e=>e.default)),displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",import:()=>import("./languages/wasm.tmLanguage-54c35f12.mjs").then((e=>e.default)),displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",import:()=>import("./languages/wenyan.tmLanguage-7d801efd.mjs").then((e=>e.default)),displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",import:()=>import("./languages/wgsl.tmLanguage-06067c64.mjs").then((e=>e.default)),displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",import:()=>import("./languages/wolfram.tmLanguage-e933012c.mjs").then((e=>e.default)),displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",import:()=>import("./languages/xml.tmLanguage-42b5ff0e.mjs").then((e=>e.default)),displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",import:()=>import("./languages/xsl.tmLanguage-b431c449.mjs").then((e=>e.default)),displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",import:()=>import("./languages/yaml.tmLanguage-875d6de7.mjs").then((e=>e.default)),displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",import:()=>import("./languages/zenscript.tmLanguage-46b17e39.mjs").then((e=>e.default)),displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",import:()=>import("./languages/zig.tmLanguage-f1960962.mjs").then((e=>e.default)),displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class n{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=n.getLanguageId(e),a=n.getTokenType(e),s=n.getFontStyle(e),r=n.getForeground(e),o=n.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:s,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const s=a(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new s.CachedFn((e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new n(t,a)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>s.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=a(350),n=a(36),r=a(736),o=a(44),i=a(792),l=a(583),c=a(878),u=a(996),m=a(47);function p(e,t,a,s,n){const o=r.createMatchers(t,h),l=i.RuleFactory.getCompiledRuleId(a,s,n.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:n,priority:a.priority})}function h(e,t){if(t.length<e.length)return!1;let a=0;return e.every((e=>{for(let s=a;s<t.length;s++)if(g(t[s],e))return a=s+1,!0;return!1}))}function g(e,t){if(!e)return!1;if(e===t)return!0;const a=t.length;return e.length>a&&e.substr(0,a)===t&&"."===e[a]}t.createGrammar=function(e,t,a,s,n,r,o,i){return new d(e,t,a,s,n,r,o,i)};class d{constructor(e,t,a,s,n,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(a,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,h);for(const a of t)this._tokenTypeMatchers.push({matcher:a.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,a=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(a){const s=a.injections;if(s)for(let t in s)p(e,t,s[t],this,a);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const a=this.getExternalGrammar(t);if(a){const t=a.injectionSelector;t&&p(e,t,a,this,a)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,a=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=a,a}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const a=this._grammarRepository.lookup(e);if(a)return this._includedGrammars[e]=f(a,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,a=0){const s=this._tokenize(e,t,!1,a);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,a=0){const s=this._tokenize(e,t,!0,a);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,a,s){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),a=this.themeProvider.getDefaults(),s=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,a.fontStyle,a.foregroundId,a.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?b.createRootAndLookUpScopeName(o,s,this):b.createRoot("unknown",s),t=new y(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new _(a,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=m._tokenizeString(this,l,r,0,t,u,!0,s);return o.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}}function f(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=d;class b{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const s=a.getMetadataForScope(e),n=new l.ScopeStack(null,e),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(t,s,r);return new b(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,a){let s=-1,r=0,o=0;return null!==a&&(s=a.fontStyle,r=a.foregroundId,o=a.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,s,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const a=e.split(/ /g);let s=this;for(const e of a)s=b._pushAttributed(s,e,t);return s}static _pushAttributed(e,t,a){const s=a.getMetadataForScope(t),n=e.scopePath.push(t),r=a.themeProvider.themeMatch(n),o=b.mergeAttributes(e.tokenAttributes,s,r);return new b(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,a,s,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=s}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,s,n,r,o){return new y(this,e,t,a,s,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,h).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,h).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,a,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=a,s.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(a=n.EncodedTokenAttributes.set(a,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(a=n.EncodedTokenAttributes.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const a=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(s.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log("      * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),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);const a=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)a[e]=this._binaryTokens[e];return a}}t.LineTokens=_},965:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const s=a(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,a,s){const r=a.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=a.lookup(t);e instanceof n?c({baseGrammar:o,selfGrammar:r},s):l(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},s);const i=a.injections(e.scopeName);if(i)for(const e of i)s.add(new n(e))}function l(e,t,a){t.repository&&t.repository[e]&&u([t.repository[e]],t,a)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,a){for(const o of e){if(a.visitedRule.has(o))continue;a.visitedRule.add(o);const e=o.repository?s.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},a);const i=o.include;if(!i)continue;const m=f(i);switch(m.kind){case 0:c({...t,selfGrammar:t.baseGrammar},a);break;case 1:c(t,a);break;case 2:l(m.ruleName,{...t,repository:e},a);break;case 3:case 4:const s=m.scopeName===t.selfGrammar.scopeName?t.selfGrammar:m.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===m.kind?l(m.ruleName,n,a):c(n,a)}else 4===m.kind?a.add(new r(m.scopeName,m.ruleName)):a.add(new n(m.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const a of e)i(a,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class m{constructor(){this.kind=0}}t.BaseReference=m;class p{constructor(){this.kind=1}}t.SelfReference=p;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class d{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new m;if("$self"===e)return new p;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const a=e.substring(0,t),s=e.substring(t+1);return new d(a,s)}}t.TopLevelRepositoryReference=d,t.parseInclude=f},391:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(947),t)},47:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const s=a(350),n=a(44),r=a(792),o=a(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,a,n,l,m,h,g){const d=t.content.length;let f=!1,b=-1;if(h){const o=function(e,t,a,n,o,i){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let t=o;t;t=t.pop()){const a=t.getRule(e);a instanceof r.BeginWhileRule&&c.push({rule:a,stack:t})}for(let m=c.pop();m;m=c.pop()){const{ruleScanner:c,findOptions:h}=u(m.rule,e,m.stack.endRule,a,n===l),g=c.findNextMatchSync(t,n,h);if(s.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(c.toString())),!g){s.DebugFlags.InDebugMode&&console.log("  popping "+m.rule.debugName+" - "+m.rule.debugWhileRegExp),o=m.stack.pop();break}if(g.ruleId!==r.whileRuleId){o=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),p(e,t,a,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,a=!1))}return{stack:o,linePos:n,anchorPosition:l,isFirstLine:a}}(e,t,a,n,l,m);l=o.stack,n=o.linePos,a=o.isFirstLine,b=o.anchorPosition}const y=Date.now();for(;!f;){if(0!==g&&Date.now()-y>g)return new i(l,!0);_()}return new i(l,!1);function _(){s.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,a,n,r,i){const l=function(e,t,a,n,r,i){const l=r.getRule(e),{ruleScanner:u,findOptions:m}=c(l,e,r.endRule,a,n===i);let p=0;s.DebugFlags.InDebugMode&&(p=o.performanceNow());const h=u.findNextMatchSync(t,n,m);if(s.DebugFlags.InDebugMode){const e=o.performanceNow()-p;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),h&&console.log(`matched rule id: ${h.ruleId} from ${h.captureIndices[0].start} to ${h.captureIndices[0].end}`)}return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}(e,t,a,n,r,i),u=e.getInjections();if(0===u.length)return l;const m=function(e,t,a,n,r,o,i){let l,u=Number.MAX_VALUE,m=null,p=0;const h=o.contentNameScopesList.getScopeNames();for(let o=0,g=e.length;o<g;o++){const g=e[o];if(!g.matcher(h))continue;const d=t.getRule(g.ruleId),{ruleScanner:f,findOptions:b}=c(d,t,null,n,r===i),y=f.findNextMatchSync(a,r,b);if(!y)continue;s.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${g.debugSelector}`),console.log(f.toString()));const _=y.captureIndices[0].start;if(!(_>=u)&&(u=_,m=y.captureIndices,l=y.ruleId,p=g.priority,u===r))break}return m?{priorityMatch:-1===p,captureIndices:m,matchedRuleId:l}:null}(u,e,t,a,n,r,i);if(!m)return l;if(!l)return m;const p=l.captureIndices[0].start,h=m.captureIndices[0].start;return h<p||m.priorityMatch&&h===p?m:l}(e,t,a,n,l,b);if(!i)return s.DebugFlags.InDebugMode&&console.log("  no more matches."),m.produce(l,d),void(f=!0);const u=i.captureIndices,h=i.matchedRuleId,g=!!(u&&u.length>0)&&u[0].end>n;if(h===r.endRuleId){const r=l.getRule(e);s.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),m.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),p(e,t,a,l,m,r.endCaptures,u),m.produce(l,u[0].end);const o=l;if(l=l.parent,b=o.getAnchorPos(),!g&&o.getEnterPos()===n)return s.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=o,m.produce(l,d),void(f=!0)}else{const o=e.getRule(h);m.produce(l,u[0].start);const i=l,c=o.getName(t.content,u),y=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(h,n,b,u[0].end===d,null,y,y),o instanceof r.BeginEndRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.endHasBackReferences&&(l=l.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;s.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),p(e,t,a,l,m,n.beginCaptures,u),m.produce(l,u[0].end),b=u[0].end;const r=n.getContentName(t.content,u),c=y.pushAttributed(r,e);if(l=l.withContentNameScopesList(c),n.whileHasBackReferences&&(l=l.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!g&&i.hasSameRuleAs(l))return s.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),m.produce(l,d),void(f=!0)}else{const n=o;if(s.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),p(e,t,a,l,m,n.captures,u),m.produce(l,u[0].end),l=l.pop(),!g)return s.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),m.produce(l,d),void(f=!0)}}u[0].end>n&&(n=u[0].end,a=!1)}}function c(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileAG(t,a,n,r),findOptions:0}}function u(e,t,a,n,r){return s.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,a),findOptions:m(n,r)}:{ruleScanner:e.compileWhileAG(t,a,n,r),findOptions:0}}function m(e,t){let a=0;return e||(a|=1),t||(a|=4),a}function p(e,t,a,s,r,o,i){if(0===o.length)return;const c=t.content,u=Math.min(o.length,i.length),m=[],p=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const g=i[t];if(0===g.length)continue;if(g.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=g.start;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?r.produceFromScopes(m[m.length-1].scopes,g.start):r.produce(s,g.start),u.retokenizeCapturedWithRuleId){const t=u.getName(c,i),o=s.contentNameScopesList.pushAttributed(t,e),m=u.getContentName(c,i),p=o.pushAttributed(m,e),h=s.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,o,p),d=e.createOnigString(c.substring(0,g.end));l(e,d,a&&0===g.start,g.start,h,r,!1,0),n.disposeOnigString(d);continue}const d=u.getName(c,i);if(null!==d){const t=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(d,e);m.push(new h(t,g.end))}}for(;m.length>0;)r.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}t._tokenizeString=l;class h{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=h},974:(e,t)=>{function a(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new s(e),l=new n,c=0,u=null,m=[],p=[];function h(){m.push(c),p.push(u)}function g(){c=m.pop(),u=p.pop()}function d(e){a(i,e)}for(;r(i,l);){if(0===c){if(null!==u&&d("too many constructs in root"),3===l.type){u={},o&&(u.$vscodeTextmateLocation=l.toLocation(t)),h(),c=1;continue}if(2===l.type){u=[],h(),c=4;continue}d("unexpected token in root")}if(2===c){if(5===l.type){g();continue}if(7===l.type){c=3;continue}d("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){g();continue}if(1===l.type){let e=l.value;if(r(i,l)&&6===l.type||d("expected colon"),r(i,l)||d("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,h(),c=4,u=t;continue}if(3===l.type){let a={};o&&(a.$vscodeTextmateLocation=l.toLocation(t)),u[e]=a,h(),c=1,u=a;continue}}d("unexpected token in dict")}if(5===c){if(4===l.type){g();continue}if(7===l.type){c=6;continue}d("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){g();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),h(),c=4,u=e;continue}if(3===l.type){let e={};o&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),h(),c=1,u=e;continue}d("unexpected token in array")}d("unknown state")}return 0!==p.length&&d("unclosed constructs"),u};class s{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let s,n=e.source,r=e.pos,o=e.len,i=e.line,l=e.char;for(;;){if(r>=o)return!1;if(s=n.charCodeAt(r),32!==s&&9!==s&&13!==s){if(10!==s)break;r++,i++,l=0}else r++,l++}if(t.offset=r,t.line=i,t.char=l,34===s){for(t.type=1,r++,l++;;){if(r>=o)return!1;if(s=n.charCodeAt(r),r++,l++,92!==s){if(34===s)break}else r++,l++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,s)=>{switch(s){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:a(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===s)t.type=2,r++,l++;else if(123===s)t.type=3,r++,l++;else if(93===s)t.type=4,r++,l++;else if(125===s)t.type=5,r++,l++;else if(58===s)t.type=6,r++,l++;else if(44===s)t.type=7,r++,l++;else if(110===s){if(t.type=8,r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;r++,l++}else if(116===s){if(t.type=9,r++,l++,s=n.charCodeAt(r),114!==s)return!1;if(r++,l++,s=n.charCodeAt(r),117!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else if(102===s){if(t.type=10,r++,l++,s=n.charCodeAt(r),97!==s)return!1;if(r++,l++,s=n.charCodeAt(r),108!==s)return!1;if(r++,l++,s=n.charCodeAt(r),115!==s)return!1;if(r++,l++,s=n.charCodeAt(r),101!==s)return!1;r++,l++}else for(t.type=11;;){if(r>=o)return!1;if(s=n.charCodeAt(r),!(46===s||s>=48&&s<=57||101===s||69===s||45===s||43===s))break;r++,l++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=l,!0}},787:function(e,t,a){var s=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||s(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=a(391),o=a(50),i=a(652),l=a(583),c=a(965);n(a(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new r.BalancedBracketSelectors(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,a,s,n){const r=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,a,s,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const a="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}async addGrammar(e,t=[],a=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,a,s)}_grammarForScopeName(e,t=0,a=null,s=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,a,s,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function a(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const s=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=t.exec(e);return{next:()=>{if(!a)return null;const s=a[0];return a=t.exec(e),s}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(s.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return s;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(a(r)){const e=[];do{e.push(r),r=n.next()}while(a(r));return a=>t(e,a)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const s=a(69),n=a(350),r=a(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(a,o,!0):JSON.parse(a)):function(e,t){return n.DebugFlags.InDebugMode?s.parseWithLocation(e,t,"$vscodeTextmateLocation"):s.parsePLIST(e)}(e,t);var a,o}},69:(e,t)=>{function a(e,t,a){const s=e.length;let n=0,r=1,o=0;function i(t){if(null===a)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function l(e){null===a?n=e:i(e-n)}function c(){for(;n<s;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function m(t){let a=e.indexOf(t,n);l(-1!==a?a+t.length:s)}function p(t){let a=e.indexOf(t,n);if(-1!==a){let s=e.substring(n,a);return l(a+t.length),s}{let t=e.substr(n);return l(s),t}}s>0&&65279===e.charCodeAt(0)&&(n=1);let h=0,g=null,d=[],f=[],b=null;function y(e,t){d.push(h),f.push(g),h=e,g=t}function _(){if(0===d.length)return L("illegal state stack");h=d.pop(),g=f.pop()}function L(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const j=function(){if(null===b)return L("missing <key>");let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g[b]=e,b=null,y(1,e)},N=function(){if(null===b)return L("missing <key>");let e=[];g[b]=e,b=null,y(2,e)},k=function(){let e={};null!==a&&(e[a]={filename:t,line:r,char:o}),g.push(e),y(1,e)},S=function(){let e=[];g.push(e),y(2,e)};function v(){if(1!==h)return L("unexpected </dict>");_()}function w(){return 1===h||2!==h?L("unexpected </array>"):void _()}function P(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function C(e){if(isNaN(e))return L("cannot parse float");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function x(e){if(isNaN(e))return L("cannot parse integer");if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function A(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function R(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function T(e){if(1===h){if(null===b)return L("missing <key>");g[b]=e,b=null}else 2===h?g.push(e):g=e}function I(){let e=p(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function O(e){if(e.isClosed)return"";let t=p("</");return m(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<s&&(c(),!(n>=s));){const l=e.charCodeAt(n);if(i(1),60!==l)return L("expected <");if(n>=s)return L("unexpected end of input");const p=e.charCodeAt(n);if(63===p){i(1),m("?>");continue}if(33===p){if(i(1),u("--")){m("--\x3e");continue}m(">");continue}if(47===p){if(i(1),c(),u("plist")){m(">");continue}if(u("dict")){m(">"),v();continue}if(u("array")){m(">"),w();continue}return L("unexpected closed tag")}let d=I();switch(d.name){case"dict":1===h?j():2===h?k():(g={},null!==a&&(g[a]={filename:t,line:r,char:o}),y(1,g)),d.isClosed&&v();continue;case"array":1===h?N():2===h?S():(g=[],y(2,g)),d.isClosed&&w();continue;case"key":M=O(d),1!==h?L("unexpected <key>"):null!==b?L("too many <key>"):b=M;continue;case"string":P(O(d));continue;case"real":C(parseFloat(O(d)));continue;case"integer":x(parseInt(O(d),10));continue;case"date":A(new Date(O(d)));continue;case"data":R(O(d));continue;case"true":O(d),T(!0);continue;case"false":O(d),T(!1);continue}if(!/^plist/.test(d.name))return L("unexpected opened tag "+d.name)}var M;return g}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,s){return a(e,t,s)},t.parsePLIST=function(e){return a(e,null,null)}},652:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const s=a(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,a,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,s.createGrammar(e,o,t,a,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const s=a(878),n=a(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,a,n){this.$location=e,this.id=t,this._name=a||null,this._nameIsCapturing=s.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=s.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${s.basename(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?s.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class l extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,a,s){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends i{constructor(e,t,a,s,n){super(e,t,a,null),this._match=new g(s,this.id),this.captures=n,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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends i{constructor(e,t,a,s,n){super(e,t,a,s),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const a of this.patterns)e.getRule(a).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new d,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class m extends i{constructor(e,t,a,s,n,r,o,i,l,c){super(e,t,a,s),this._begin=new g(n,this.id),this.beginCaptures=r,this._end=new g(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,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,a,s){return this._getCachedCompiledPatterns(e,t).compileAG(e,a,s)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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}}t.BeginEndRule=m;class p extends i{constructor(e,a,s,n,r,o,i,l,c){super(e,a,s,n),this._begin=new g(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new g(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,a,s){return this._getCachedCompiledPatterns(e).compileAG(e,a,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new d;for(const t of 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,a,s){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,a,s)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class h{static createCaptureRule(e,t,a,s,n){return e.registerRule((e=>new l(t,e,a,s,n)))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,h._compileCaptures(e.captures,t,a));if(void 0===e.begin){e.repository&&(a=s.mergeObjects({},a,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,h._compilePatterns(n,t,a))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,h._compileCaptures(e.whileCaptures||e.captures,t,a),h._compilePatterns(e.patterns,t,a)):new m(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,h._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,h._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,h._compilePatterns(e.patterns,t,a))})),e.id}static _compileCaptures(e,t,a){let s=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)s[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=h.getCompiledRuleId(e[n],t,a)),s[r]=h.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return s}static _compilePatterns(e,t,a){let s=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=h.getCompiledRuleId(a[o.include],t,a);break;case 2:let s=a[e.ruleName];s&&(i=h.getCompiledRuleId(s,t,a));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(n,a);if(l)if(r){let e=l.repository[r];e&&(i=h.getCompiledRuleId(e,t,l.repository))}else i=h.getCompiledRuleId(l.repository.$self,t,l.repository)}}else i=h.getCompiledRuleId(o,t,a);if(-1!==i){const e=t.getRule(i);let a=!1;if((e instanceof u||e instanceof m||e instanceof p)&&e.hasMissingPatterns&&0===e.patterns.length&&(a=!0),a)continue;s.push(i)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}t.RuleFactory=h;class g{constructor(e,t){if(e){const t=e.length;let a=0,s=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(s.push(e.substring(a,r)),s.push("$(?!\\n)(?<!\\n)"),a=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===a?this.source=e:(s.push(e.substring(a,t)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new g(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let a=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>s.escapeRegExpCharacters(a[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,a,s,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)a=this.source.charAt(e),n[e]=a,r[e]=a,o[e]=a,i[e]=a,"\\"===a&&e+1<t&&(s=this.source.charAt(e+1),"A"===s?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===s?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=s,r[e+1]=s,o[e+1]=s,i[e+1]=s),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=g;class d{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,a){return this._hasAnchors?t?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,a)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,a){let s=this._items.map((e=>e.resolveAnchors(t,a)));return new f(e,s,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=d;class f{constructor(e,t,a){this.regExps=t,this.rules=a,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,a=this.rules.length;t<a;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,a){const s=this.scanner.findNextMatchSync(e,t,a);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}t.CompiledRule=f},583:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const s=a(878);class n{constructor(e,t,a){this._colorMap=e,this._defaults=t,this._root=a,this._cachedMatchRoot=new s.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let a=s.strcmp(e.scope,t.scope);return 0!==a?a:(a=s.strArrCmp(e.parentScopes,t.parentScopes),0!==a?a:e.index-t.index)}));let a=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(a=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let l=new u(t),c=new i(a,l.getId(r),l.getId(o)),h=new p(new m(0,null,-1,0,0),[]);for(let t=0,a=e.length;t<a;t++){let a=e[t];h.insert(0,a.scope,a.parentScopes,a.fontStyle,l.getId(a.foreground),l.getId(a.background))}return new n(l,c,h)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let a=0,s=t[a];for(;e;){if(o(e.scopeName,s)){if(a++,a===t.length)return!0;s=t[a]}e=e.parent}return!1}(e.parent,t.parentScopes)));return a?new i(a.fontStyle,a.foreground,a.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new r(t,e[a]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,a){this.fontStyle=e,this.foregroundId=t,this.backgroundId=a}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,a=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,a=e.length;t<a;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let l=null;"string"==typeof o.settings.foreground&&s.isValidHexColor(o.settings.foreground)&&(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&s.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),o=s[s.length-1],m=null;s.length>1&&(m=s.slice(0,s.length-1),m.reverse()),a[n++]=new c(o,m,e,i,l,u)}}return a}t.StyleAttributes=i,t.parseTheme=l;class c{constructor(e,t,a,s,n,r){this.scope=e,this.parentScopes=t,this.index=a,this.fontStyle=s,this.foreground=n,this.background=r}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,a=e.length;t<a;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 new 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)}}t.ColorMap=u;class m{constructor(e,t,a,s,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=a,this.foreground=s,this.background=n}clone(){return new m(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,s=e.length;a<s;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==a&&(this.foreground=a),0!==s&&(this.background=s)}}t.ThemeTrieElementRule=m;class p{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const a=e.parentScopes,s=t.parentScopes;let n=null===a?0:a.length,r=null===s?0:s.length;if(n===r)for(let e=0;e<n;e++){const t=a[e].length,n=s[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,a,s=e.indexOf(".");return-1===s?(t=e,a=""):(t=e.substring(0,s),a=e.substring(s+1)),this._children.hasOwnProperty(t)?this._children[t].match(a):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,a,s,n,r){if(""===t)return void this._doInsertHere(e,a,s,n,r);let o,i,l,c=t.indexOf(".");-1===c?(o=t,i=""):(o=t.substring(0,c),i=t.substring(c+1)),this._children.hasOwnProperty(o)?l=this._children[o]:(l=new p(this._mainRule.clone(),m.cloneArr(this._rulesWithParentScopes)),this._children[o]=l),l.insert(e+1,i,a,s,n,r)}_doInsertHere(e,t,a,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===s.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,a,n,r)}-1===a&&(a=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new m(e,t,a,n,r))}else this._mainRule.acceptOverwrite(e,a,n,r)}}t.ThemeTrieElement=p},878:(e,t)=>{function a(e){return Array.isArray(e)?function(e){let t=[];for(let s=0,n=e.length;s<n;s++)t[s]=a(e[s]);return t}(e):"object"==typeof e?function(e){let t={};for(let s in e)t[s]=a(e[s]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return a(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let a in t)e[a]=t[a]})),e},t.basename=function e(t){const a=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===a?t:~a==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~a)};let s=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(s.lastIndex=0,s.test(e))}static replaceCaptures(e,t,a){return e.replace(s,((e,s,n,r)=>{let o=a[parseInt(s||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let a=e.length,s=t.length;if(a===s){for(let s=0;s<a;s++){let a=n(e[s],t[s]);if(0!==a)return a}return 0}return a-s},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},i={},function e(t){var a=i[t];if(void 0!==a)return a.exports;var s=i[t]={exports:{}};return o[t].call(s.exports,s,s.exports,e),s.exports}(787));var c=l.exports;function u(e,t){let a=[];for(let s=0,n=t.length;s<n;s++){let n=t.slice(0,s),r=t[s];a[s]={scopeName:r,themeMatches:h(e,r,n)}}return a}function m(e,t){let a=e+".";return e===t||t.substring(0,a.length)===a}function p(e,t,a,s){if(!m(e,a))return!1;let n=t.length-1,r=s.length-1;for(;n>=0&&r>=0;)m(t[n],s[r])&&n--,r--;return-1===n}function h(e,t,a){let s=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let l=o[e].split(/ /);p(l[l.length-1],l.slice(0,l.length-1),t,a)&&(s[n++]=i,e=r)}}return s}var g=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],d={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function f(e,t){const a=e.indexOf("",t);if(-1!==a&&"["===e[a+1]){const t=e.indexOf("m",a);return{sequence:e.substring(a+2,t).split(";"),startPosition:a,position:t+1}}return{position:e.length}}function b(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function y(e){const t=[];for(;e.length>0;){const a=e.shift();if(!a)continue;const s=Number.parseInt(a);if(!Number.isNaN(s))if(0===s)t.push({type:"resetAll"});else if(s<=9)d[s]&&t.push({type:"setDecoration",value:d[s]});else if(s<=29){const e=d[s-20];e&&t.push({type:"resetDecoration",value:e})}else if(s<=37)t.push({type:"setForegroundColor",value:{type:"named",name:g[s-30]}});else if(38===s){const a=b(e);a&&t.push({type:"setForegroundColor",value:a})}else if(39===s)t.push({type:"resetForegroundColor"});else if(s<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-40]}});else if(48===s){const a=b(e);a&&t.push({type:"setBackgroundColor",value:a})}else 49===s?t.push({type:"resetBackgroundColor"}):s>=90&&s<=97?t.push({type:"setForegroundColor",value:{type:"named",name:g[s-90+8]}}):s>=100&&s<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:g[s-100+8]}})}return t}var _={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 L(e=_){function t(t){return e[t]}function a(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let s;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return a(e.rgb);case"table":return n=e.index,function(){if(s)return s;s=[];for(let e=0;e<g.length;e++)s.push(t(g[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)s.push(a([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)s.push(a([n,n,n]));return s}()[n]}var n}}}const j={pre:({className:e,style:t,children:a})=>`<pre class="${e}" style="${t}" tabindex="0">${a}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function N(e,t={}){const a=t.bg||"#fff",n=function(e,t){const a=new Map;for(const t of e){const e=t.line;a.has(e)?a.get(e).push(t):a.set(e,[t])}return a}(t.lineOptions??[]),r=t.elements||{};function o(e="",t={},a){const s=r[e]||j[e];return s?(a=a.filter(Boolean),s({...t,children:"code"===e?a.join("\n"):a.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1;return o("line",{className:function(e){const t=new Set(["line"]);for(const a of e)for(const e of a.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" "),lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>k[e])))]);var i})))})))])}const k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var S;S=()=>{return e={770:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=s(a(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let a=0,s=e.length;a<s;a++){const n=e.charCodeAt(a);let r=n,o=!1;if(n>=55296&&n<=56319&&a+1<s){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&a++}return t}constructor(e){const t=e.length,a=i._utf8ByteLength(e),s=a!==t,n=s?new Uint32Array(t+1):null;s&&(n[t]=a);const r=s?new Uint32Array(a+1):null;s&&(r[a]=t);const o=new Uint8Array(a);let l=0;for(let a=0;a<t;a++){const i=e.charCodeAt(a);let c=i,u=!1;if(i>=55296&&i<=56319&&a+1<t){const t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(c=65536+(i-55296<<10)|t-56320,u=!0)}s&&(n[a]=l,u&&(n[a+1]=l),c<=127?r[l+0]=a:c<=2047?(r[l+0]=a,r[l+1]=a):c<=65535?(r[l+0]=a,r[l+1]=a,r[l+2]=a):(r[l+0]=a,r[l+1]=a,r[l+2]=a,r[l+3]=a)),c<=127?o[l++]=c:c<=2047?(o[l++]=192|(1984&c)>>>6,o[l++]=128|(63&c)>>>0):c<=65535?(o[l++]=224|(61440&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0):(o[l++]=240|(1835008&c)>>>18,o[l++]=128|(258048&c)>>>12,o[l++]=128|(4032&c)>>>6,o[l++]=128|(63&c)>>>0),u&&a++}this.utf16Length=t,this.utf8Length=a,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=r._omalloc(1e4)),l._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(r)}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===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],a=[];for(let s=0,n=e.length;s<n;s++){const n=new i(e[s]);t[s]=n.createString(r),a[s]=n.utf8Length}const s=r._omalloc(4*e.length);r.HEAPU32.set(t,s/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(a,n/4);const o=r._createOnigScanner(s,n,e.length);for(let a=0,s=e.length;a<s;a++)r._ofree(t[a]);r._ofree(n),r._ofree(s),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,a){let s=o,n=0;if("number"==typeof a?(8&a&&(s=!0),n=a):"boolean"==typeof a&&(s=a),"string"==typeof e){e=new l(e);const a=this._findNextMatchSync(e,t,s,n);return e.dispose(),a}return this._findNextMatchSync(e,t,s,n)}_findNextMatchSync(e,t,a,s){const n=this._onigBinding;let r;if(r=a?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),s),0===r)return null;const o=n.HEAPU32;let i=r/4;const l=o[i++],c=o[i++];let u=[];for(let t=0;t<c;t++){const a=e.convertUtf8OffsetToUtf16(o[i++]),s=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:a,end:s,length:s-a}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,m=null;t.loadWASM=function(e){if(u)return m;let t,a,s,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,a=e.print;else{let s;!function(e){return void 0!==e.data}(e)?s=e:(s=e.data,a=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(s)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(s):function(e){return async t=>{const a=await e.arrayBuffer();return WebAssembly.instantiate(a,t)}}(s):function(e){return t=>WebAssembly.instantiate(e,t)}(s)}return m=new Promise(((e,t)=>{s=e,o=t})),function(e,t,a,s){(0,n.default)({print:t,instantiateWasm:(t,a)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>a(e.instance)),s),{}}}).then((e=>{r=e,a()}))}(t,a,s,o),m},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,a,s=void 0!==(e=e||{})?e:{};s.ready=new Promise((function(e,s){t=e,a=s}));var n,r=Object.assign({},s);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||S(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,l=s.print||console.log.bind(console),c=s.printErr||console.warn.bind(console);Object.assign(s,r),r=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(o=s.wasmBinary),s.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var u,m,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function d(e,t,a){for(var s=t+a,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var l=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|l:(7&o)<<18|i<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var c=o-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,s.HEAP8=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=new Int32Array(e),s.HEAPU8=m=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=p=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=new Float64Array(e)}s.INITIAL_MEMORY;var b=[],y=[],_=[];function L(e){b.unshift(e)}function j(e){_.unshift(e)}var N=0,k=null;function S(e){s.onAbort&&s.onAbort(e),c(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw a(t),t}var v,w;function P(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==v&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function x(e){for(;e.length>0;)e.shift()(s)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}P(v="onig.wasm")||(v=function(e){return s.locateFile?s.locateFile(e,""):""+e}(v)),w="undefined"!=typeof dateNow?dateNow:()=>performance.now();var R=[null,[],[]];function T(e,t){var a=R[e];0===t||10===t?((1===e?l:c)(d(a,0)),a.length=0):a.push(t)}var I,O={emscripten_get_now:w,emscripten_memcpy_big:function(e,t,a){m.copyWithin(e,t,t+a)},emscripten_resize_heap:function(e){var t,a=m.length,s=2147483648;if((e>>>=0)>s)return!1;for(var n=1;n<=4;n*=2){var r=a*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(s,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,a,s){for(var n=0,r=0;r<a;r++){var o=p[t>>2],i=p[t+4>>2];t+=8;for(var l=0;l<i;l++)T(e,m[o+l]);n+=i}return p[s>>2]=n,0}};function M(e){function a(){I||(I=!0,s.calledRun=!0,h||(x(y),t(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)j(s.postRun.shift());x(_)}()))}N>0||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)L(s.preRun.shift());x(b)}(),N>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),a()}),1)):a()))}if(function(){var e={env:O,wasi_snapshot_preview1:O};function t(e,t){var a=e.exports;s.asm=a,f((i=s.asm.memory).buffer),s.asm.__indirect_function_table,function(e){y.unshift(e)}(s.asm.__wasm_call_ctors),function(e){if(N--,s.monitorRunDependencies&&s.monitorRunDependencies(N),0==N&&k){var t=k;k=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(v)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){c("failed to asynchronously prepare wasm: "+e),S(e)}))}if(N++,s.monitorRunDependencies&&s.monitorRunDependencies(N),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){c("Module.instantiateWasm callback failed with error: "+e),a(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||P(v)||"function"!=typeof fetch?r(n):fetch(v,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return c("wasm streaming compile failed: "+e),c("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s.___errno_location=function(){return(s.___errno_location=s.asm.__errno_location).apply(null,arguments)},s._omalloc=function(){return(s._omalloc=s.asm.omalloc).apply(null,arguments)},s._ofree=function(){return(s._ofree=s.asm.ofree).apply(null,arguments)},s._getLastOnigError=function(){return(s._getLastOnigError=s.asm.getLastOnigError).apply(null,arguments)},s._createOnigScanner=function(){return(s._createOnigScanner=s.asm.createOnigScanner).apply(null,arguments)},s._freeOnigScanner=function(){return(s._freeOnigScanner=s.asm.freeOnigScanner).apply(null,arguments)},s._findNextOnigScannerMatch=function(){return(s._findNextOnigScannerMatch=s.asm.findNextOnigScannerMatch).apply(null,arguments)},s._findNextOnigScannerMatchDbg=function(){return(s._findNextOnigScannerMatchDbg=s.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},s.stackSave=function(){return(s.stackSave=s.asm.stackSave).apply(null,arguments)},s.stackRestore=function(){return(s.stackRestore=s.asm.stackRestore).apply(null,arguments)},s.stackAlloc=function(){return(s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.dynCall_jiji).apply(null,arguments)},s.UTF8ToString=function(e,t){return e?d(m,e,t):""},k=function e(){I||M(),I||(k=e)},s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return M(),e.ready});e.exports=t}},t={},function a(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,a),r.exports}(770);var e,t};var v={exports:{}}.exports=S();"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name,"process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w=null;function P(e){const t=e.type||"dark",a={name:e.name,type:t,...e,...A(e)};var s;return e.include&&(a.include=e.include),e.tokenColors&&(a.settings=e.tokenColors,delete a.tokenColors),(s=a).settings||(s.settings=[]),s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}}),a}const C={light:"#333333",dark:"#bbbbbb"},x={light:"#fffffe",dark:"#1e1e1e"};function A(e){let t,a,s=e.settings?e.settings:e.tokenColors;const n=s?s.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(a=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!a&&e?.colors?.["editor.background"]&&(a=e.colors["editor.background"]),t||(t="light"===e.type?C.light:C.dark),a||(a="light"===e.type?x.light:x.dark),{fg:t,bg:a}}class R extends c.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=a.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(t){if("string"==typeof t){const a=e[t];if(a)return P(await a());throw new Error("[shiki] failed to load theme "+t)}return(t=P(t)).name&&(this._resolvedThemes[t.name]=t),t}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,a)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=a+2,e}),{}),a={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},s=await this.loadGrammarWithConfiguration(e.scopeName,1,a);this._resolvedGrammars[e.id]=s,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=s}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function T(e){return"string"==typeof e?a.find((t=>t.id===e||t.aliases?.includes(e))):e}async function I(e){const{_languages:t,_themes:o}=function(e){let t=a,s=e.themes||[];return e.langs&&(t=e.langs.map(T)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s}}(e),i=new r(async function(){return w||(w=import("./chunks/onig-56b7efa9.mjs").then((e=>v.loadWASM({instantiator:e.default}))).then((()=>({createOnigScanner:e=>v.createOnigScanner(e),createOnigString:e=>v.createOnigString(e)})))),w}(),"vscode-oniguruma"),l=new R(i);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const m=(await l.loadThemes(o))[0];let p;await l.loadLanguages(t);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<g.length;t++){const a=`#A${t.toString().padStart(5,"0")}`,s=g[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[a]=`var(--shiki-color-ansi-${s})`}return e}();function d(e){const t=e?l.getTheme(e):m;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const a=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,a])=>{e.colors[t]=h[a]||a})),t.forEach(((e,a)=>{t[a]=h[e]||e}))}(t,a),{_theme:t,_colorMap:a}}function b(e,t="text",a,s={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=d(a);return function(e,t,a,s,r){let o=a.split(/\r\n|\r|\n/),i=c.INITIAL,l=[],m=[];for(let a=0,c=o.length;a<c;a++){let c,p,h,g=o[a];if(""===g){l=[],m.push([]);continue}r.includeExplanation&&(c=s.tokenizeLine(g,i),p=c.tokens,h=0);let d=s.tokenizeLine2(g,i),f=d.tokens.length/2;for(let a=0;a<f;a++){let s=d.tokens[2*a],o=a+1<f?d.tokens[2*a+2]:g.length;if(s===o)continue;let i=d.tokens[2*a+1],c=t[n.getForeground(i)],m=n.getFontStyle(i),b=[];if(r.includeExplanation){let t=0;for(;s+t<o;){let a=p[h],s=g.substring(a.startIndex,a.endIndex);t+=s.length,b.push({content:s,scopes:u(e,a.scopes)}),h++}}l.push({content:g.substring(s,o),color:c,fontStyle:m,explanation:b})}m.push(l),l=[],i=d.ruleStack}return m}(o,i,e,r,s)}function _(e,t){const{_theme:a}=d(t);return function(e,t){const a=t.split(/\r?\n/),n=L(Object.fromEntries(g.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,a=new Set;return{parse(s){const n=[];let r=0;do{const o=f(s,r),i=o.sequence?s.substring(r,o.startPosition):s.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(a)}),o.sequence){const s=y(o.sequence);for(const n of s)"resetAll"===n.type?(e=null,t=null,a.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&a.delete(n.value);for(const n of s)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&a.add(n.value)}r=o.position}while(r<s.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const a=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}(a,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",a){let s;s="object"==typeof t?t:{lang:t,theme:a};const n=b(e,s.lang,s.theme,{includeExplanation:!1}),{_theme:r}=d(s.theme);return N(n,{fg:r.fg,bg:r.bg,lineOptions:s?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const a=_(e,t?.theme),{_theme:s}=d(t?.theme);return N(a,{fg:s.fg,bg:s.bg,lineOptions:t?.lineOptions,themeName:s.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=T(e);i.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}}export{a as BUNDLED_LANGUAGES,t as BUNDLED_THEMES,s as FontStyle,I as getHighlighter,N as renderToHtml,P as toShikiTheme};
  • pattern-css/trunk/build/shiki/dist/index.unpkg.iife.js

    r3037439 r3073927  
    1 !function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,s,n,r,o){let i=a.getLanguageId(e),c=a.getTokenType(e),l=a.getFontStyle(e),u=a.getForeground(e),p=a.getBackground(e);return 0!==t&&(i=t),0!==s&&(c=8===s?0:s),-1!==n&&(l=n),0!==r&&(u=r),0!==o&&(p=o),(i<<0|c<<8|l<<11|(a.containsBalancedBrackets(e)?1:0)<<10|u<<15|p<<24)>>>0}}function n(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function r(e){return e.startsWith("./")?e.slice(2):e}function o(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function i(...e){return e.map(n).map(r).join("/")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,l={exports:{}};c=()=>{return e={770:function(e,t,s){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const n=a(s(418));let r=null,o=!1;class i{static _utf8ByteLength(e){let t=0;for(let s=0,a=e.length;s<a;s++){const n=e.charCodeAt(s);let r=n,o=!1;if(n>=55296&&n<=56319&&s+1<a){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null;a&&(n[t]=s);const r=a?new Uint32Array(s+1):null;a&&(r[s]=t);const o=new Uint8Array(s);let c=0;for(let s=0;s<t;s++){const i=e.charCodeAt(s);let l=i,u=!1;if(i>=55296&&i<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(l=65536+(i-55296<<10)|t-56320,u=!0)}a&&(n[s]=c,u&&(n[s+1]=c),l<=127?r[c+0]=s:l<=2047?(r[c+0]=s,r[c+1]=s):l<=65535?(r[c+0]=s,r[c+1]=s,r[c+2]=s):(r[c+0]=s,r[c+1]=s,r[c+2]=s,r[c+3]=s)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=e;const t=new i(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}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===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1;class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.");const t=[],s=[];for(let a=0,n=e.length;a<n;a++){const n=new i(e[a]);t[a]=n.createString(r),s[a]=n.utf8Length}const a=r._omalloc(4*e.length);r.HEAPU32.set(t,a/4);const n=r._omalloc(4*e.length);r.HEAPU32.set(s,n/4);const o=r._createOnigScanner(a,n,e.length);for(let s=0,a=e.length;s<a;s++)r._ofree(t[s]);r._ofree(n),r._ofree(a),0===o&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=o}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,s){let a=o,n=0;if("number"==typeof s?(8&s&&(a=!0),n=s):"boolean"==typeof s&&(a=s),"string"==typeof e){e=new c(e);const s=this._findNextMatchSync(e,t,a,n);return e.dispose(),s}return this._findNextMatchSync(e,t,a,n)}_findNextMatchSync(e,t,s,a){const n=this._onigBinding;let r;if(r=s?n._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a):n._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a),0===r)return null;const o=n.HEAPU32;let i=r/4;const c=o[i++],l=o[i++];let u=[];for(let t=0;t<l;t++){const s=e.convertUtf8OffsetToUtf16(o[i++]),a=e.convertUtf8OffsetToUtf16(o[i++]);u[t]={start:s,end:a,length:a-s}}return{index:c,captureIndices:u}}}t.OnigScanner=l;let u=!1,p=null;t.loadWASM=function(e){if(u)return p;let t,s,a,o;if(u=!0,function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,s=e.print;else{let a;!function(e){return void 0!==e.data}(e)?a=e:(a=e.data,s=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(a)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer();return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{};a.ready=new Promise((function(e,a){t=e,s=a}));var n,r=Object.assign({},a);n=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||j(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var o,i,c=a.print||console.log.bind(console),l=a.printErr||console.warn.bind(console);Object.assign(a,r),r=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(o=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&j("no native wasm support detected");var u,p,h,m=!1,d="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n;if(n-t>16&&e.buffer&&d)return d.decode(e.subarray(t,n));for(var r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|i<<6|c:(7&o)<<18|i<<12|c<<6|63&e[t++])<65536)r+=String.fromCharCode(o);else{var l=o-65536;r+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function f(e){u=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=p=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=h=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY;var y=[],b=[],_=[];function N(e){y.unshift(e)}function k(e){_.unshift(e)}var L,S,P=0,v=null;function j(e){a.onAbort&&a.onAbort(e),l(e="Aborted("+e+")"),m=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw s(t),t}function w(e){return e.startsWith("data:application/octet-stream;base64,")}function C(e){try{if(e==L&&o)return new Uint8Array(o);if(n)return n(e);throw"both async and sync fetching of the wasm failed"}catch(e){j(e)}}function x(e){for(;e.length>0;)e.shift()(a)}function A(e){try{return i.grow(e-u.byteLength+65535>>>16),f(i.buffer),1}catch(e){}}w(L="onig.wasm")||(L=function(e){return a.locateFile?a.locateFile(e,""):""+e}(L)),S="undefined"!=typeof dateNow?dateNow:()=>performance.now();var T=[null,[],[]];function R(e,t){var s=T[e];0===t||10===t?((1===e?c:l)(g(s,0)),s.length=0):s.push(t)}var I,E={emscripten_get_now:S,emscripten_memcpy_big:function(e,t,s){p.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),A(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r<s;r++){var o=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)R(e,p[o+c]);n+=i}return h[a>>2]=n,0}};function O(e){function s(){I||(I=!0,a.calledRun=!0,m||(x(b),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());x(_)}()))}P>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)N(a.preRun.shift());x(y)}(),P>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:E,wasi_snapshot_preview1:E};function t(e,t){var s=e.exports;a.asm=s,f((i=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){b.unshift(e)}(a.asm.__wasm_call_ctors),function(e){if(P--,a.monitorRunDependencies&&a.monitorRunDependencies(P),0==P&&v){var t=v;v=null,t()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return C(L)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){l("failed to asynchronously prepare wasm: "+e),j(e)}))}if(P++,a.monitorRunDependencies&&a.monitorRunDependencies(P),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){l("Module.instantiateWasm callback failed with error: "+e),s(e)}(o||"function"!=typeof WebAssembly.instantiateStreaming||w(L)||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return l("wasm streaming compile failed: "+e),l("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?g(p,e,t):""},v=function e(){I||O(),I||(v=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return O(),e.ready});e.exports=t}},t={},function s(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,s),r.exports}(770);var e,t},l.exports=c();var u,p,h,m,d=l.exports;function g(e,t=!1){const s=e.length;let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0;function h(t,s){let n=0,r=0;for(;n<t||!s;){let t=e.charCodeAt(a);if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function m(){if(n="",p=0,r=a,c=i,u=l,a>=s)return r=s,o=17;let t=e.charCodeAt(a);if(f(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(f(t));return o=15}if(y(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14;switch(t){case 123:return a++,o=1;case 125:return a++,o=2;case 91:return a++,o=3;case 93:return a++,o=4;case 58:return a++,o=6;case 44:return a++,o=5;case 34:return a++,n=function(){let t="",n=a;for(;;){if(a>=s){t+=e.substring(n,a),p=2;break}const r=e.charCodeAt(a);if(34===r){t+=e.substring(n,a),a++;break}if(92!==r){if(r>=0&&r<=31){if(y(r)){t+=e.substring(n,a),p=2;break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}n=a}}return t}(),o=10;case 47:const c=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<s&&!y(e.charCodeAt(a));)a++;return n=e.substring(c,a),o=12}if(42===e.charCodeAt(a+1)){a+=2;const t=s-1;let r=!1;for(;a<t;){const t=e.charCodeAt(a);if(42===t&&47===e.charCodeAt(a+1)){a+=2,r=!0;break}a++,y(t)&&(13===t&&10===e.charCodeAt(a)&&a++,i++,l=a)}return r||(a++,p=1),n=e.substring(c,a),o=13}return n+=String.fromCharCode(t),a++,o=16;case 45:if(n+=String.fromCharCode(t),a++,a===s||!b(e.charCodeAt(a)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=function(){let t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&b(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(a++,!(a<e.length&&b(e.charCodeAt(a))))return p=3,e.substring(t,a);for(a++;a<e.length&&b(e.charCodeAt(a));)a++}let s=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if(a++,(a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&b(e.charCodeAt(a))){for(a++;a<e.length&&b(e.charCodeAt(a));)a++;s=a}else p=3;return e.substring(t,s)}(),o=11;default:for(;a<s&&d(t);)a++,t=e.charCodeAt(a);if(r!==a){switch(n=e.substring(r,a),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(t),a++,o=16}}function d(e){if(f(e)||y(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){a=e,n="",r=0,o=16,p=0},getPosition:()=>a,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}function f(e){return 32===e||9===e}function y(e){return 10===e||13===e}function b(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(u||(u={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(h||(h={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(m||(m={}));const _=function(e,t=[],s=p.DEFAULT){let a=null,n=[];const r=[];function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=p.DEFAULT){const a=g(e,!1),n=[];function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const l=o(t.onObjectBegin),u=c(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),f=c(t.onLiteralValue),y=i(t.onSeparator),b=r(t.onComment),_=i(t.onError),N=s&&s.disallowComments,k=s&&s.allowTrailingComma;function L(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:N||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:N?S(10):b();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}function S(e,t=[],s=[]){if(_(e),t.length+s.length>0){let e=a.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){L();break}if(-1!==s.indexOf(e))break;e=L()}}}function P(e){const t=a.getTokenValue();return e?f(t):(u(t),n.push(t)),L(),!0}L(),17===a.getToken()?s.allowEmptyContent||S(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),L();let t=!0,s=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||S(4,[],[]),y(","),L(),4===a.getToken()&&k)break}else s&&S(6,[],[]);t?(n.push(0),t=!1):n[n.length-1]++,e()||S(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?S(8,[4],[]):L(),!0}();case 1:return function(){l(),L();let t=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||S(4,[],[]),y(","),L(),2===a.getToken()&&k)break}else t&&S(6,[],[]);(10!==a.getToken()?(S(3,[],[2,5]),!1):(P(!1),6===a.getToken()?(y(":"),L(),e()||S(4,[],[2,5])):S(5,[],[2,5]),n.pop(),!0))||S(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?S(7,[2],[]):L(),!0}();case 10:return P(!0);default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue();let t=Number(e);isNaN(t)&&(S(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return L(),!0}()}}()?17!==a.getToken()&&S(9,[],[]):S(4,[],[])}(e,{onObjectBegin:()=>{const e={};o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[];o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]};var N;!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(N||(N={}));const k="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,L="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,P=k||!L&&!S;let v="https://unpkg.com/shiki@0.14.7/",j="";function w(e){j=e}let C=null;function x(e){if(P)return`${v}${e}`;{const t=require("path");return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function A(e){const t=[],s=await async function(e){const t=x(e);if(P)return await fetch(t).then((e=>e.text()));{const e=require("fs");return await e.promises.readFile(t,"utf-8")}}(e);let a;try{a=JSON.parse(s)}catch(e){if(a=_(s,t,{allowTrailingComma:!0}),t.length)throw t[0]}return a}async function T(e){const t=R(await A(e));if(t.include){const s=await T(i(...o(e),t.include));s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function R(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...O(e)};var a;return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const I={light:"#333333",dark:"#bbbbbb"},E={light:"#fffffe",dark:"#1e1e1e"};function O(e){let t,s,a=e.settings?e.settings:e.tokenColors;const n=a?a.find((e=>!e.name&&!e.scope)):void 0;return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?I.light:I.dark),s||(s="light"===e.type?E.light:E.dark),{fg:t,bg:s}}class M{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const s=this.scopeToLangMap[e];if(!s)return null;if(s.grammar)return s.grammar;const a=await async function(e){return await A(e)}(t.includes(s)?`${this.languagesPath}${s.path}`:s.path);return s.grammar=a,a}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}var B={exports:{}};!function(e,t){var s,a;e.exports=(s={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return 0!=(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e);return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c<<0|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
     1!function(e){"use strict";const t=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}];var s=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(s||{});class a{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=a.getLanguageId(e),s=a.getTokenType(e),n=a.getFontStyle(e),r=a.getForeground(e),o=a.getBackground(e);console.log({languageId:t,tokenType:s,fontStyle:n,foreground:r,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const a=s(878);class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n;class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e);return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>a.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47);function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:c,grammar:n,priority:s.priority})}function m(e,t){if(t.length<e.length)return!1;let s=0;return e.every((e=>{for(let a=s;a<t.length;a++)if(d(t[a],e))return s=a+1,!0;return!1}))}function d(e,t){if(!e)return!1;if(e===t)return!0;const s=t.length;return e.length>s&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)};class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n)){const t=r.createMatchers(e,m);for(const s of t)this._tokenTypeMatchers.push({matcher:s.matcher,type:n[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(s){const a=s.injections;if(a)for(let t in a)h(e,t,a[t],this,s);const n=this._grammarRepository.injections(t);n&&n.forEach((t=>{const s=this.getExternalGrammar(t);if(s){const t=s.injectionSelector;t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(`  - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t));return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const s=this._grammarRepository.lookup(e);if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r;if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset();else{r=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null);let i;i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a);return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r);return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0;return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t);const s=e.split(/ /g);let a=this;for(const e of s)a=y._pushAttributed(a,e,t);return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r);return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y;class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(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(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).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(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t);if(a.DebugFlags.InDebugMode){const s=e.getScopeNames();console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),void(this._lastTokenEndIndex=t)}const s=e.getScopeNames();if(a.DebugFlags.InDebugMode){console.log("  token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<s.length;e++)console.log("      * "+s[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:s}),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);const s=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)s[e]=this._binaryTokens[e];return s}}t.LineTokens=_},965:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const a=s(878);class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n;class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r;class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=s.lookup(t);e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);const i=s.injections(e.scopeName);if(i)for(const e of i)a.add(new n(e))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s);const i=o.include;if(!i)continue;const p=f(i);switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s);break;case 1:l(t,s);break;case 2:c(p.ruleName,{...t,repository:e},s);break;case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new o;for(const s of e)i(s,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof n){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class h{constructor(){this.kind=1}}t.SelfReference=h;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p;if("$self"===e)return new h;const t=e.indexOf("#");if(-1===t)return new d(e);if(0===t)return new m(e.substring(1));{const s=e.substring(0,t),a=e.substring(t+1);return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const a=s(350),n=s(44),r=s(792),o=s(878);class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length;let f=!1,y=-1;if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1;const l=[];for(let t=o;t;t=t.pop()){const s=t.getRule(e);s instanceof r.BeginWhileRule&&l.push({rule:s,stack:t})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m);if(a.DebugFlags.InDebugMode&&(console.log("  scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log("  popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop();break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p);c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now();for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0);_()}return new i(c,!1);function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`));const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i);let h=0;a.DebugFlags.InDebugMode&&(h=o.performanceNow());const m=u.findNextMatchSync(t,n,p);if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h;e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(`  scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections();if(0===u.length)return c;const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,d=e.length;o<d;o++){const d=e[o];if(!d.matcher(m))continue;const g=t.getRule(d.ruleId),{ruleScanner:f,findOptions:y}=l(g,t,null,n,r===i),b=f.findNextMatchSync(s,r,y);if(!b)continue;a.DebugFlags.InDebugMode&&(console.log(`  matched injection: ${d.debugSelector}`),console.log(f.toString()));const _=b.captureIndices[0].start;if(!(_>=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=d.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i);if(!p)return c;if(!c)return p;const h=c.captureIndices[0].start,m=p.captureIndices[0].start;return m<h||p.priorityMatch&&m===h?p:c}(e,t,s,n,c,y);if(!i)return a.DebugFlags.InDebugMode&&console.log("  no more matches."),p.produce(c,g),void(f=!0);const u=i.captureIndices,m=i.matchedRuleId,d=!!(u&&u.length>0)&&u[0].end>n;if(m===r.endRuleId){const r=c.getRule(e);a.DebugFlags.InDebugMode&&console.log("  popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end);const o=c;if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m);p.produce(c,u[0].start);const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e);if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o;a.DebugFlags.InDebugMode&&console.log("  pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end;const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e);if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o;if(a.DebugFlags.InDebugMode&&console.log("  matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0;return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return;const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end;for(let t=0;t<u;t++){const u=o[t];if(null===u)continue;const d=i[t];if(0===d.length)continue;if(d.start>h)break;for(;p.length>0&&p[p.length-1].endPos<=d.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,d.start):r.produce(a,d.start),u.retokenizeCapturedWithRuleId){const t=u.getName(l,i),o=a.contentNameScopesList.pushAttributed(t,e),p=u.getContentName(l,i),h=o.pushAttributed(p,e),m=a.push(u.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,h),g=e.createOnigString(l.substring(0,d.end));c(e,g,s&&0===d.start,d.start,m,r,!1,0),n.disposeOnigString(g);continue}const g=u.getName(l,i);if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);p.push(new m(t,d.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c;class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[];function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1;continue}if(2===c.type){u=[],m(),l=4;continue}g("unexpected token in root")}if(2===l){if(5===c.type){d();continue}if(7===c.type){l=3;continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d();continue}if(1===c.type){let e=c.value;if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value;continue}if(8===c.type){u[e]=null;continue}if(9===c.type){u[e]=!0;continue}if(10===c.type){u[e]=!1;continue}if(11===c.type){u[e]=parseFloat(c.value);continue}if(2===c.type){let t=[];u[e]=t,m(),l=4,u=t;continue}if(3===c.type){let s={};o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s;continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d();continue}if(7===c.type){l=6;continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d();continue}if(l=5,1===c.type){u.push(c.value);continue}if(8===c.type){u.push(null);continue}if(9===c.type){u.push(!0);continue}if(10===c.type){u.push(!1);continue}if(11===c.type){u.push(parseFloat(c.value));continue}if(2===c.type){let e=[];u.push(e),m(),l=4,u=e;continue}if(3===c.type){let e={};o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u};class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char;for(;;){if(r>=o)return!1;if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break;r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1;if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++;else if(123===a)t.type=3,r++,c++;else if(93===a)t.type=4,r++,c++;else if(125===a)t.type=5,r++,c++;else if(58===a)t.type=6,r++,c++;else if(44===a)t.type=7,r++,c++;else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1;if(r++,c++,a=n.charCodeAt(r),117!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1;if(r++,c++,a=n.charCodeAt(r),108!==a)return!1;if(r++,c++,a=n.charCodeAt(r),115!==a)return!1;if(r++,c++,a=n.charCodeAt(r),101!==a)return!1;r++,c++}else for(t.type=11;;){if(r>=o)return!1;if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break;r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965);n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e);for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue();return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e);return{next:()=>{if(!s)return null;const a=s[0];return s=t.exec(e),a}}}(e);let r=n.next();for(;null!==r;){let e=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i();if(a.push({matcher:t,priority:e}),","!==r)break;r=n.next()}return a;function o(){if("-"===r){r=n.next();const e=o();return t=>!!e&&!e(t)}if("("===r){r=n.next();const e=function(){const e=[];let t=i();for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r);t=i()}return t=>e.some((e=>e(t)))}();return")"===r&&(r=n.next()),e}if(s(r)){const e=[];do{e.push(r),r=n.next()}while(s(r));return s=>t(e,s)}return null}function i(){const e=[];let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const a=s(69),n=s(350),r=s(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t);var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length;let n=0,r=1,o=0;function i(t){if(null===s)n+=t;else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n<a;){let t=e.charCodeAt(n);if(32!==t&&9!==t&&13!==t&&10!==t)break;i(1)}}function u(t){return e.substr(n,t.length)===t&&(i(t.length),!0)}function p(t){let s=e.indexOf(t,n);c(-1!==s?s+t.length:a)}function h(t){let s=e.indexOf(t,n);if(-1!==s){let a=e.substring(n,s);return c(s+t.length),a}{let t=e.substr(n);return c(a),t}}a>0&&65279===e.charCodeAt(0)&&(n=1);let m=0,d=null,g=[],f=[],y=null;function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack");m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing <key>");let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing <key>");let e=[];d[y]=e,y=null,b(2,e)},S=function(){let e={};null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[];d.push(e),b(2,e)};function v(){if(1!==m)return N("unexpected </dict>");_()}function j(){return 1===m||2!==m?N("unexpected </array>"):void _()}function w(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function C(e){if(isNaN(e))return N("cannot parse float");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer");if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing <key>");d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"";let t=h("</");return p(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;n<a&&(l(),!(n>=a));){const c=e.charCodeAt(n);if(i(1),60!==c)return N("expected <");if(n>=a)return N("unexpected end of input");const h=e.charCodeAt(n);if(63===h){i(1),p("?>");continue}if(33===h){if(i(1),u("--")){p("--\x3e");continue}p(">");continue}if(47===h){if(i(1),l(),u("plist")){p(">");continue}if(u("dict")){p(">"),v();continue}if(u("array")){p(">"),j();continue}return N("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v();continue;case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j();continue;case"key":O=E(g),1!==m?N("unexpected <key>"):null!==y?N("too many <key>"):y=O;continue;case"string":w(E(g));continue;case"real":C(parseFloat(E(g)));continue;case"integer":x(parseInt(E(g),10));continue;case"date":A(new Date(E(g)));continue;case"data":T(E(g));continue;case"true":E(g),R(!0);continue;case"false":E(g),R(!1);continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O;return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const a=s(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(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?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i;class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c;class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l;class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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}}t.BeginEndRule=p;class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),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,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of 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,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h;class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s));if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[];if(e){let n=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null;for(const n in e){if("$vscodeTextmateLocation"===n)continue;const r=parseInt(n,10);let o=0;e[n].patterns&&(o=m.getCompiledRuleId(e[n],t,s)),a[r]=m.createCaptureRule(t,e[n].$vscodeTextmateLocation,e[n].name,e[n].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[];if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=-1;if(o.include){const e=n.parseInclude(o.include);switch(e.kind){case 0:case 1:i=m.getCompiledRuleId(s[o.include],t,s);break;case 2:let a=s[e.ruleName];a&&(i=m.getCompiledRuleId(a,t,s));break;case 3:case 4:const n=e.scopeName,r=4===e.kind?e.ruleName:null,c=t.getExternalGrammar(n,s);if(c)if(r){let e=c.repository[r];e&&(i=m.getCompiledRuleId(e,t,c.repository))}else i=m.getCompiledRuleId(c.repository.$self,t,c.repository)}}else i=m.getCompiledRuleId(o,t,s);if(-1!==i){const e=t.getRule(i);let s=!1;if((e instanceof u||e instanceof p||e instanceof h)&&e.hasMissingPatterns&&0===e.patterns.length&&(s=!0),s)continue;a.push(i)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}}t.RuleFactory=m;class d{constructor(e,t){if(e){const t=e.length;let s=0,a=[],n=!1;for(let r=0;r<t;r++)if("\\"===e.charAt(r)&&r+1<t){const t=e.charAt(r+1);"z"===t?(a.push(e.substring(s,r)),a.push("$(?!\\n)(?<!\\n)"),s=r+2):"A"!==t&&"G"!==t||(n=!0),r++}this.hasAnchor=n,0===s?this.source=e:(a.push(e.substring(s,t)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=r.test(this.source)}clone(){return new d(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let s=t.map((t=>e.substring(t.start,t.end)));return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[];for(e=0,t=this.source.length;e<t;e++)s=this.source.charAt(e),n[e]=s,r[e]=s,o[e]=s,i[e]=s,"\\"===s&&e+1<t&&(a=this.source.charAt(e+1),"A"===a?(n[e+1]="￿",r[e+1]="￿",o[e+1]="A",i[e+1]="A"):"G"===a?(n[e+1]="￿",r[e+1]="G",o[e+1]="￿",i[e+1]="G"):(n[e+1]=a,r[e+1]=a,o[e+1]=a,i[e+1]=a),e++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=d;class g{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 f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s)));return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,s=this.rules.length;t<s;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,s){const a=this.scanner.findNextMatchSync(e,t,s);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}}t.CompiledRule=f},583:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const a=s(878);class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope);return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)}));let s=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]);for(let t=0,s=e.length;t<s;t++){let s=e[t];m.insert(0,s.scope,s.parentScopes,s.fontStyle,c.getId(s.foreground),c.getId(s.background))}return new n(c,l,m)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let s=0,a=t[s];for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0;a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes)));return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n;class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let s=0;s<e.length;s++)t=new r(t,e[s]);return t}push(e){return new r(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function o(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=r;class i{constructor(e,t,s){this.fontStyle=e,this.foregroundId=t,this.backgroundId=s}}function c(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,s=[],n=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),r=e.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let i=-1;if("string"==typeof o.settings.fontStyle){i=0;let e=o.settings.fontStyle.split(" ");for(let t=0,s=e.length;t<s;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let c=null;"string"==typeof o.settings.foreground&&a.isValidHexColor(o.settings.foreground)&&(c=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&a.isValidHexColor(o.settings.background)&&(u=o.settings.background);for(let t=0,a=r.length;t<a;t++){let a=r[t].trim().split(" "),o=a[a.length-1],p=null;a.length>1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,e,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c;class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,s=e.length;t<s;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 new 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)}}t.ColorMap=u;class p{constructor(e,t,s,a,n){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=s,this.foreground=a,this.background=n}clone(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let s=0,a=e.length;s<a;s++)t[s]=e[s].clone();return t}acceptOverwrite(e,t,s,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p;class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes;let n=null===s?0:s.length,r=null===a?0:a.length;if(n===r)for(let e=0;e<n;e++){const t=s[e].length,n=a[e].length;if(t!==n)return n-t}return r-n}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,s,a=e.indexOf(".");return-1===a?(t=e,s=""):(t=e.substring(0,a),s=e.substring(a+1)),this._children.hasOwnProperty(t)?this._children[t].match(s):h._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,s,a,n,r){if(""===t)return void this._doInsertHere(e,s,a,n,r);let o,i,c,l=t.indexOf(".");-1===l?(o=t,i=""):(o=t.substring(0,l),i=t.substring(l+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new h(this._mainRule.clone(),p.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(e+1,i,s,a,n,r)}_doInsertHere(e,t,s,n,r){if(null!==t){for(let o=0,i=this._rulesWithParentScopes.length;o<i;o++){let i=this._rulesWithParentScopes[o];if(0===a.strArrCmp(i.parentScopes,t))return void i.acceptOverwrite(e,s,n,r)}-1===s&&(s=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new p(e,t,s,n,r))}else this._mainRule.acceptOverwrite(e,s,n,r)}}t.ThemeTrieElement=h},878:(e,t)=>{function s(e){return Array.isArray(e)?function(e){let t=[];for(let a=0,n=e.length;a<n;a++)t[a]=s(e[a]);return t}(e):"object"==typeof e?function(e){let t={};for(let a in e)t[a]=s(e[a]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return s(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function n(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(r){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let s=e.length,a=t.length;if(s===a){for(let a=0;a<s;a++){let s=n(e[a],t[a]);if(0!==s)return s}return 0}return s-a},t.isValidHexColor=function(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))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},a={},function e(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={exports:{}};return s[t].call(r.exports,r,r.exports,e),r.exports}(787))}(B);var G=B.exports;function F(e,t){let s=[];for(let a=0,n=t.length;a<n;a++){let n=t.slice(0,a),r=t[a];s[a]={scopeName:r,themeMatches:U(e,r,n)}}return s}function D(e,t){let s=e+".";return e===t||t.substring(0,s.length)===s}function $(e,t,s,a){if(!D(e,s))return!1;let n=t.length-1,r=a.length-1;for(;n>=0&&r>=0;)D(t[n],a[r])&&n--,r--;return-1===n}function U(e,t,s){let a=[],n=0;for(let r=0,o=e.settings.length;r<o;r++){let o,i=e.settings[r];if("string"==typeof i.scope)o=i.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(i.scope))continue;o=i.scope}for(let e=0,r=o.length;e<r;e++){let c=o[e].split(/ /);$(c[c.length-1],c.slice(0,c.length-1),t,s)&&(a[n++]=i,e=r)}}return a}var W=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],q={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function H(e,t){const s=e.indexOf("",t);if(-1!==s&&"["===e[s+1]){const t=e.indexOf("m",s);return{sequence:e.substring(s+2,t).split(";"),startPosition:s,position:t+1}}return{position:e.length}}function z(e){const t=e.shift();if("2"===t){const 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){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function V(e){const t=[];for(;e.length>0;){const s=e.shift();if(!s)continue;const a=Number.parseInt(s);if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"});else if(a<=9)q[a]&&t.push({type:"setDecoration",value:q[a]});else if(a<=29){const e=q[a-20];e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:W[a-30]}});else if(38===a){const s=z(e);s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-40]}});else if(48===a){const s=z(e);s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return t}var K={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 J(e,t){const a=t.split(/\r?\n/),n=function(e=K){function t(t){return e[t]}function s(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return s(e.rgb);case"table":return function(e){return function(){if(a)return a;a=[];for(let e=0;e<W.length;e++)a.push(t(W[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let n=0;n<6;n++)for(let r=0;r<6;r++)a.push(s([e[t],e[n],e[r]]));let n=8;for(let e=0;e<24;e++,n+=10)a.push(s([n,n,n]));return a}()[e]}(e.index)}}}}(Object.fromEntries(W.map((t=>[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),r=function(){let e=null,t=null,s=new Set;return{parse(a){const n=[];let r=0;do{const o=H(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r);if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=V(o.sequence);for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value);for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(r<a.length);return n}}}();return a.map((t=>r.parse(t).map((t=>{let a;a=t.decorations.has("reverse")?t.background?n.value(t.background):e.bg:t.foreground?n.value(t.foreground):e.fg,t.decorations.has("dim")&&(a=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const 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`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return s?`var(${s[1]}-dim)`:e}(a));let r=s.None;return t.decorations.has("bold")&&(r|=s.Bold),t.decorations.has("italic")&&(r|=s.Italic),t.decorations.has("underline")&&(r|=s.Underline),{content:t.value,color:a,fontStyle:r}}))))}const Q={pre:({className:e,style:t,children:s})=>`<pre class="${e}" style="${t}" tabindex="0">${s}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function X(e,t={}){const a=t.bg||"#fff",n=function(e,t){const s=new Map;for(const a of e){const e=t(a);s.has(e)?s.get(e).push(a):s.set(e,[a])}return s}(t.lineOptions??[],(e=>e.line)),r=t.elements||{};function o(e="",t={},s){const a=r[e]||Q[e];return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${a}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map(((a,r)=>{const i=r+1,c=function(e){const t=new Set(["line"]);for(const s of e)for(const e of s.classes??[])t.add(e);return Array.from(t)}(n.get(i)??[]).join(" ");return o("line",{className:c,lines:e,line:a,index:r},a.map(((e,n)=>{const r=[`color: ${e.color||t.fg}`];return e.fontStyle&s.Italic&&r.push("font-style: italic"),e.fontStyle&s.Bold&&r.push("font-weight: bold"),e.fontStyle&s.Underline&&r.push("text-decoration: underline"),o("token",{style:r.join("; "),tokens:a,token:e,index:n},[(i=e.content,i.replace(/[&<>"']/g,(e=>Y[e])))]);var i})))})))])}const Y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Z extends G.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=t.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await T(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=R(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s);this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.values());for(const e of t)this._resolver.addLanguage(e);for(const e of t)await this.loadLanguage(e)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?t.find((t=>t.id===e||t.aliases?.includes(e))):e}e.BUNDLED_LANGUAGES=t,e.BUNDLED_THEMES=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],e.FontStyle=s,e.getHighlighter=async function(e){const{_languages:s,_themes:n,_wasmPath:r}=function(e){let s=t,a=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":"dist/";return e.langs&&(s=e.langs.map(ee)),e.theme&&a.unshift(e.theme),a.length||(a=["nord"]),{_languages:s,_themes:a,_wasmPath:n}}(e),c=new M(async function(e){if(!C){let t;if(P)t="string"==typeof j?d.loadWASM({data:await fetch(x(i(...o(e),"onig.wasm")))}):d.loadWASM({data:j});else{const e=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),s=require("fs").readFileSync(e).buffer;t=d.loadWASM(s)}C=t.then((()=>({createOnigScanner:e=>d.createOnigScanner(e),createOnigString:e=>d.createOnigString(e)})))}return C}(r),"vscode-oniguruma"),l=new Z(c);e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const u=(await l.loadThemes(n))[0];let p;await l.loadLanguages(s);let h=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;t<W.length;t++){const s=`#A${t.toString().padStart(5,"0")}`,a=W[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[s]=`var(--shiki-color-ansi-${a})`}return e}();function m(e){const t=e?l.getTheme(e):u;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(l.setTheme(t),p=t);const s=l.getColorMap();return"css"===t.type&&function(e,t){e.bg=h[e.bg]||e.bg,e.fg=h[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,s])=>{e.colors[t]=h[s]||s})),t.forEach(((e,s)=>{t[s]=h[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function g(e,t="text",s,n={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:r}=function(e){const t=l.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:o,_colorMap:i}=m(s);return function(e,t,s,n,r){let o=s.split(/\r\n|\r|\n/),i=G.INITIAL,c=[],l=[];for(let s=0,u=o.length;s<u;s++){let u,p,h,m=o[s];if(""===m){c=[],l.push([]);continue}r.includeExplanation&&(u=n.tokenizeLine(m,i),p=u.tokens,h=0);let d=n.tokenizeLine2(m,i),g=d.tokens.length/2;for(let s=0;s<g;s++){let n=d.tokens[2*s],o=s+1<g?d.tokens[2*s+2]:m.length;if(n===o)continue;let i=d.tokens[2*s+1],l=t[a.getForeground(i)],u=a.getFontStyle(i),f=[];if(r.includeExplanation){let t=0;for(;n+t<o;){let s=p[h],a=m.substring(s.startIndex,s.endIndex);t+=a.length,f.push({content:a,scopes:F(e,s.scopes)}),h++}}c.push({content:m.substring(n,o),color:l,fontStyle:u,explanation:f})}l.push(c),c=[],i=d.ruleStack}return l}(o,i,e,r,n)}function f(e,t){const{_theme:s}=m(t);return J(s,e)}return{codeToThemedTokens:g,codeToHtml:function(e,t="text",s){let a;a="object"==typeof t?t:{lang:t,theme:s};const n=g(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=m(a.theme);return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const s=f(e,t?.theme),{_theme:a}=m(t?.theme);return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>m(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e);c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=m(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=m(e);return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){h=e}}},e.loadTheme=T,e.renderToHtml=X,e.setCDN=function(e){v=e.endsWith("/")?e:e+"/"},e.setOnigasmWASM=function(e){w(e)},e.setWasm=w,e.toShikiTheme=R}(this.shiki=this.shiki||{});
  • pattern-css/trunk/package.json

    r3039810 r3073927  
    1919    "devDependencies": {
    2020        "@trivago/prettier-plugin-sort-imports": "^4.3.0",
    21         "@types/wordpress__block-editor": "^11.5.10",
    22         "@types/wordpress__blocks": "^12.5.13",
    23         "@types/wordpress__edit-post": "^7.5.6",
    24         "@types/wordpress__editor": "^13.6.7",
     21        "@types/wordpress__block-editor": "^11.5.1",
     22        "@types/wordpress__blocks": "^12.5.1",
     23        "@types/wordpress__edit-post": "^7.5.",
     24        "@types/wordpress__editor": "^13.6.",
    2525        "@types/wordpress__plugins": "^3.0.3",
    26         "@typescript-eslint/eslint-plugin": "^6.21.0",
    27         "@typescript-eslint/parser": "^6.21.0",
    28         "@wordpress/block-editor": "^12.20.0",
    29         "@wordpress/env": "^9.4.0",
    30         "@wordpress/scripts": "^27.3.0",
    31         "@wordpress/url": "^3.53.0",
    32         "autoprefixer": "^10.4.17",
    33         "cypress": "^13.6.4",
     26        "@typescript-eslint/eslint-plugin": "^.0",
     27        "@typescript-eslint/parser": "^.0",
     28        "@wordpress/block-editor": "^12.2.0",
     29        "@wordpress/env": "^9..0",
     30        "@wordpress/scripts": "^27..0",
     31        "@wordpress/url": "^3.5.0",
     32        "autoprefixer": "^10.4.1",
     33        "cypress": "^13.",
    3434        "cypress-wait-until": "^3.0.1",
    35         "eslint": "^8.56.0",
     35        "eslint": "^8..0",
    3636        "eslint-config-prettier": "^9.1.0",
    37         "eslint-plugin-cypress": "^2.15.1",
     37        "eslint-plugin-cypress": "^2.15.",
    3838        "eslint-plugin-no-only-tests": "^3.1.0",
    3939        "eslint-plugin-prettier": "^5.1.3",
    40         "eslint-plugin-react": "^7.33.2",
     40        "eslint-plugin-react": "^7.3",
    4141        "eslint-plugin-react-hooks": "^4.6.0",
    4242        "fast-glob": "^3.3.2",
    43         "glob": "^10.3.10",
    44         "postcss-import": "^16.0.1",
     43        "glob": "^10.3.1",
     44        "postcss-import": "^16.",
    4545        "postcss-safe-important": "^2.0.1",
    4646        "prettier": "^3.2.5",
    4747        "replace-in-file": "^7.1.0",
    48         "tailwindcss": "^3.4.1",
    49         "typescript": "^5.3.3"
     48        "tailwindcss": "^3.4.",
     49        "typescript": "^5."
    5050    },
    5151    "dependencies": {
    52         "@wordpress/block-editor": "^12.20.0",
    53         "@wordpress/blocks": "^12.29.0",
    54         "@wordpress/edit-post": "^7.29.0",
    55         "@wordpress/editor": "^13.29.0",
    56         "@wordpress/element": "^5.29.0",
    57         "@wordpress/i18n": "^4.52.0",
    58         "@wordpress/plugins": "^6.20.0",
     52        "@wordpress/block-editor": "^12.2.0",
     53        "@wordpress/blocks": "^12..0",
     54        "@wordpress/edit-post": "^7..0",
     55        "@wordpress/editor": "^13..0",
     56        "@wordpress/element": "^5..0",
     57        "@wordpress/i18n": "^4.5.0",
     58        "@wordpress/plugins": "^6.2.0",
    5959        "browserlist": "^1.0.1",
    60         "lightningcss": "1.23.0",
    61         "lightningcss-wasm": "1.23.0",
     60        "lightningcss": "1.2",
     61        "lightningcss-wasm": "1.2",
    6262        "react-simple-code-editor": "^0.13.1",
    6363        "shiki": "^0.14.7",
    6464        "swr": "^2.2.5",
    65         "zustand": "^4.5.1"
     65        "zustand": "^4.5."
    6666    }
    6767}
  • pattern-css/trunk/pattern-css.php

    r3039810 r3073927  
    55 * Requires at least: 6.0
    66 * Requires PHP:      7.0
    7  * Version:           1.2.1
     7 * Version:           1.2.
    88 * Author:            Kevin Batdorf
    99 * Author URI:        https://twitter.com/kevinbatdorf
     
    2525
    2626add_action('enqueue_block_editor_assets', function () {
     27
    2728    $assets = require plugin_dir_path(__FILE__) . 'build/index.asset.php';
    2829    wp_enqueue_script(
     
    3637        'kevinbatdorf/pattern-css',
    3738        'window.patternCss = ' . wp_json_encode([
    38             'canEditCss' => current_user_can('edit_css'),
    3939            'pluginUrl' => esc_url_raw(plugin_dir_url(__FILE__)),
    4040            'selectorOverride' => defined('PATTERN_CSS_SELECTOR_OVERRIDE') ?
     
    4545    wp_enqueue_style('kevinbatdorf/pattern-css', plugins_url('build/index.css', __FILE__));
    4646});
    47 
    4847
    4948// This works by looking for blocks with the compiled CSS attribute
     
    6362    wp_enqueue_style("pcss-block-{$pcss_block_id}");
    6463
    65     // WP style of safe echoing inline styles
    66     // See: https://github.com/WordPress/WordPress/blob/9ecfdd8e5a42ed4b66ffecb88321242717c89831/wp-includes/theme.php#L1920
    67     wp_add_inline_style("pcss-block-{$pcss_block_id}", wp_strip_all_tags($pcss_additional_css));
     64    wp_add_inline_style("pcss-block-{$pcss_block_id}", $pcss_additional_css);
    6865    return $pre_render;
    6966}, 10, 2);
  • pattern-css/trunk/readme.txt

    r3050632 r3073927  
    33Tags:              css, styles, inline, pattern, sync
    44Tested up to:      6.5
    5 Stable tag:        1.2.1
     5Stable tag:        1.2.
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    110110== Frequently Asked Questions ==
    111111
     112
     113
     114
     115
    112116= Can I use something other than [block]? =
    113117
     
    127131
    128132== Changelog ==
     133
     134
     135
     136
     137
     138
    129139
    130140= 1.2.1 - 2024-02-22 =
  • pattern-css/trunk/src/components/BlockControl.tsx

    r3039810 r3073927  
    1313    useEffect,
    1414    useState,
    15     useMemo,
    1615    useCallback,
    1716    useRef,
     
    2221import { Warning as CssWarning } from 'lightningcss-wasm';
    2322import { CodeEditor } from './CodeEditor';
    24 import { CodePreview } from './CodePreview';
    2523import { focusAtEndOfLine2 } from '../lib/dom';
    2624import { EditorControls } from './EditorControls';
     
    3533) => {
    3634    const editorWrapperRef = useRef<HTMLDivElement>(null);
    37     const [ready, setReady] = useState(false);
    3835    const [focused, setFocused] = useState(false);
    3936    const [warnings, setWarnings] = useState<CssWarning[]>([]);
     
    5552    const [transformed, setTransformed] = useState<Uint8Array>();
    5653    const [compiled, setCompiled] = useState(compiledCss || '');
    57     const hasPermission = useMemo(() => window?.patternCss?.canEditCss, []);
    5854    const defaultCssExample = '[block] {\n  \n}';
    5955
     
    124120
    125121    useEffect(() => {
    126         if (!hasPermission) return;
    127         setReady(true);
    128     }, [hasPermission]);
    129 
    130     useEffect(() => {
    131         if (!ready || !initialCss) return;
     122        if (!initialCss) return;
    132123        handleChange(initialCss);
    133     }, [ready, handleChange, initialCss]);
    134 
    135     useEffect(() => {
    136         if (!ready) return;
     124    }, [handleChange, initialCss]);
     125
     126    useEffect(() => {
    137127        if (transformed === undefined) return;
    138128        setCompiled(new TextDecoder().decode(transformed));
    139     }, [transformed, ready]);
    140 
    141     useEffect(() => {
    142         if (!ready || css === undefined) return;
     129    }, [transformed]);
     130
     131    useEffect(() => {
     132        if (css === undefined) return;
    143133        setAttributes({
    144134            pcssAdditionalCss: css,
     
    149139        if (existing?.includes(pcssClassId)) return;
    150140        setAttributes({ className: addToClassList(existing, pcssClassId) });
    151     }, [css, setAttributes, ready, pcssClassId, blockId, existingClasses]);
     141    }, [css, setAttributes, pcssClassId, blockId, existingClasses]);
    152142
    153143    // Do a check for the id if they are saving the post
    154144    // TODO: this isn't perfect so check back for pre-save hook
    155145    useEffect(() => {
    156         if (!ready || !pcssClassId || !isSaving) return;
     146        if (!pcssClassId || !isSaving) return;
    157147        const existing = existingClasses?.split(' ') || [];
    158148        if (existing?.find((c: string) => c.startsWith(pcssClassId))) return;
    159149        const className = addToClassList(existing, pcssClassId);
    160150        setAttributes({ className });
    161     }, [isSaving, existingClasses, pcssClassId, setAttributes, ready]);
    162 
    163     useEffect(() => {
    164         if (!ready) return;
     151    }, [isSaving, existingClasses, pcssClassId, setAttributes]);
     152
     153    useEffect(() => {
    165154        if (compiled === compiledCss) return;
    166155        setAttributes({ pcssAdditionalCssCompiled: compiled });
    167     }, [compiled, setAttributes, ready, compiledCss]);
     156    }, [compiled, setAttributes, compiledCss]);
    168157
    169158    useLayoutEffect(() => {
    170         if (!ready || compiled === undefined) return;
     159        if (compiled === undefined) return;
    171160        // Append css to iframe
    172161        const frame = (
     
    197186            ? frame.document.head.appendChild(style)
    198187            : parent.appendChild(style);
    199     }, [compiled, ready, pcssClassId]);
     188    }, [compiled, pcssClassId]);
    200189
    201190    return (
     
    207196                    initialOpen={false}
    208197                    className="pattern-css-editor">
    209                     {hasPermission ? (
    210                         <>
    211                             <div className="relative" ref={editorWrapperRef}>
    212                                 <CodeEditor
    213                                     value={css ?? defaultCssExample}
    214                                     data-cy="pcss-editor-block"
    215                                     onChange={handleChange}
    216                                     onFocus={(e) => {
    217                                         const v = e.target.value;
    218                                         if (v === defaultCssExample) {
    219                                             focusAtEndOfLine2(e.target);
    220                                         }
    221                                         setFocused(true);
    222                                     }}
    223                                     onBlur={() => setFocused(false)}
    224                                     lineOptions={warnings.map(({ loc }) => ({
    225                                         line: loc.line,
    226                                         classes: ['line-error'],
    227                                     }))}
    228                                 />
    229                                 {focused ? null : (
    230                                     <EditorControls
    231                                         handleChange={handleChange}
    232                                         editorWrapperRef={editorWrapperRef}
    233                                     />
    234                                 )}
    235                             </div>
    236                             <p
    237                                 className="m-0 my-2 text-gray-700 text-xs"
    238                                 dangerouslySetInnerHTML={{
    239                                     __html: sprintf(
    240                                         // translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
    241                                         __(
    242                                             'See the %1$splugin readme%2$s for examples.',
    243                                             'pattern-css',
    244                                         ),
    245                                         '<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',
    246                                         '</a>',
    247                                     ),
    248                                 }}
     198                    <div className="relative" ref={editorWrapperRef}>
     199                        <CodeEditor
     200                            value={css ?? defaultCssExample}
     201                            data-cy="pcss-editor-block"
     202                            onChange={handleChange}
     203                            onFocus={(e) => {
     204                                const v = e.target.value;
     205                                if (v === defaultCssExample) {
     206                                    focusAtEndOfLine2(e.target);
     207                                }
     208                                setFocused(true);
     209                            }}
     210                            onBlur={() => setFocused(false)}
     211                            lineOptions={warnings.map(({ loc }) => ({
     212                                line: loc.line,
     213                                classes: ['line-error'],
     214                            }))}
     215                        />
     216                        {focused ? null : (
     217                            <EditorControls
     218                                handleChange={handleChange}
     219                                editorWrapperRef={editorWrapperRef}
    249220                            />
    250                         </>
    251                     ) : (
    252                         <CodePreview value={css} />
    253                     )}
     221                        )}
     222                    </div>
     223                    <p
     224                        className="m-0 my-2 text-gray-700 text-xs"
     225                        dangerouslySetInnerHTML={{
     226                            __html: sprintf(
     227                                // translators: %1$s = opening <a> tag, %2$s = closing </a> tag.
     228                                __(
     229                                    'See the %1$splugin readme%2$s for examples.',
     230                                    'pattern-css',
     231                                ),
     232                                '<a href="https://wordpress.org/plugins/pattern-css#opens-in-a-new-tab" target="_blank" rel="noreferrer noopener" class="text-wp-theme-500">',
     233                                '</a>',
     234                            ),
     235                        }}
     236                    />
    254237                </PanelBody>
    255238            </InspectorControls>
  • pattern-css/trunk/src/types.ts

    r3038334 r3073927  
    55    interface Window {
    66        patternCss: {
    7             canEditCss: string;
    87            pluginUrl: string;
    98            transform: typeof transform;
Note: See TracChangeset for help on using the changeset viewer.