@nuxt/devtools 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/chunks/module-main.mjs +2 -2
- package/dist/chunks/vscode.mjs +67 -64
- package/dist/cli.mjs +354 -62
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/Badge.d9b6d9b1.js +1 -0
- package/dist/client/_nuxt/FilepathItem.vue.31689a0a.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.65011890.js +1 -0
- package/dist/client/_nuxt/{welcome.db724adb.css → NButton.db724adb.css} +0 -0
- package/dist/client/_nuxt/NButton.vue.56759fc1.js +113 -0
- package/dist/client/_nuxt/NIcon.vue.c1ad97a9.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.b6c079ee.js +1 -0
- package/dist/client/_nuxt/NuxtLogo.9303af79.js +1 -0
- package/dist/client/_nuxt/SectionBlock.48da9d80.css +1 -0
- package/dist/client/_nuxt/SectionBlock.885bbad5.js +1 -0
- package/dist/client/_nuxt/Settings.vue.dda6fcf5.js +1 -0
- package/dist/client/_nuxt/{StateEditor.989cce56.css → StateEditor.c82309e2.css} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.0d8adb50.js → StateEditor.vue.0f1b994b.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.3374c6ec.js +1 -0
- package/dist/client/_nuxt/TabIcon.vue.8d3722ca.js +1 -0
- package/dist/client/_nuxt/__inspecting.6fe111b0.js +1 -0
- package/dist/client/_nuxt/asyncData.d544d421.js +1 -0
- package/dist/client/_nuxt/components.25d13f1f.js +1 -0
- package/dist/client/_nuxt/composables.80d3af7a.js +1 -0
- package/dist/client/_nuxt/context.b32078d3.js +1 -0
- package/dist/client/_nuxt/custom-_name_.14809d72.js +1 -0
- package/dist/client/_nuxt/default.7ecded8d.js +1 -0
- package/dist/client/_nuxt/editor.b2159474.js +1 -0
- package/dist/client/_nuxt/entry.43bdd1fb.css +1 -0
- package/dist/client/_nuxt/entry.b1094864.js +5 -0
- package/dist/client/_nuxt/error-404.2ee33711.js +1 -0
- package/dist/client/_nuxt/error-500.ef980084.js +1 -0
- package/dist/client/_nuxt/error-component.7b202115.js +3 -0
- package/dist/client/_nuxt/hooks.ca7ea52c.js +1 -0
- package/dist/client/_nuxt/imports.f7013fa4.js +1 -0
- package/dist/client/_nuxt/index.2ad8ed93.js +1 -0
- package/dist/client/_nuxt/layouts.b684dcc1.js +1 -0
- package/dist/client/_nuxt/middleware.e10aa06d.js +1 -0
- package/dist/client/_nuxt/modules.0b22b757.js +1 -0
- package/dist/client/_nuxt/none.38bfd553.js +1 -0
- package/dist/client/_nuxt/nuxt-link.752dfef9.js +1 -0
- package/dist/client/_nuxt/overview.d488d202.js +1 -0
- package/dist/client/_nuxt/pages.22ce604b.js +1 -0
- package/dist/client/_nuxt/payload.5372dcff.js +1 -0
- package/dist/client/_nuxt/plugins.f9b29762.js +1 -0
- package/dist/client/_nuxt/runtime-configs.99425f61.js +1 -0
- package/dist/client/_nuxt/server-routes.763958ec.js +1 -0
- package/dist/client/_nuxt/state.65ceafcf.js +1 -0
- package/dist/client/_nuxt/unocss-runtime.c4939419.js +2 -0
- package/dist/client/_nuxt/{virtual-files.53d6f968.js → virtual-files.13f3141f.js} +8 -8
- package/dist/client/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +30 -6
- package/dist/shared/{devtools.b5fb0de8.mjs → devtools.e6742cbd.mjs} +1 -1
- package/package.json +31 -29
- package/dist/client/_nuxt/Badge.e080ea4a.js +0 -1
- package/dist/client/_nuxt/ComponentItem.c17d2931.js +0 -1
- package/dist/client/_nuxt/ComponentItem.vue.3441f37f.js +0 -1
- package/dist/client/_nuxt/ComponentsGraph.4d50b4fe.js +0 -1
- package/dist/client/_nuxt/ComponentsGraph.vue.5b3b134e.js +0 -1
- package/dist/client/_nuxt/ComponentsList.ac84bcd1.js +0 -1
- package/dist/client/_nuxt/ComponentsList.vue.c704cf24.js +0 -1
- package/dist/client/_nuxt/ComposableItem.72806cd2.js +0 -1
- package/dist/client/_nuxt/ComposableItem.vue.90cd23bc.js +0 -1
- package/dist/client/_nuxt/ComposableTree.43de28f8.js +0 -1
- package/dist/client/_nuxt/ComposableTree.vue.808503d9.js +0 -1
- package/dist/client/_nuxt/CurrentRoute.e8d5b2cb.js +0 -1
- package/dist/client/_nuxt/Drawer.583a0aa3.js +0 -1
- package/dist/client/_nuxt/Drawer.vue.30b0fc28.js +0 -1
- package/dist/client/_nuxt/DrawerItem.e2effddf.js +0 -1
- package/dist/client/_nuxt/DrawerItem.vue.8cadb3c9.js +0 -1
- package/dist/client/_nuxt/FileIcon.68b82ecb.js +0 -1
- package/dist/client/_nuxt/FileIcon.vue.3bb914bc.js +0 -1
- package/dist/client/_nuxt/FilepathItem.8049add8.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.811409e2.js +0 -1
- package/dist/client/_nuxt/HooksTable.59d897cb.js +0 -1
- package/dist/client/_nuxt/HooksTable.vue.6b9004ef.js +0 -1
- package/dist/client/_nuxt/IconTitle.f576cbf3.js +0 -1
- package/dist/client/_nuxt/IconTitle.vue.dfa8cbcf.js +0 -1
- package/dist/client/_nuxt/IframeView.13e136bd.js +0 -1
- package/dist/client/_nuxt/IframeView.vue.6843a7fa.js +0 -1
- package/dist/client/_nuxt/LaunchPage.e39fe420.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.6be17436.js +0 -1
- package/dist/client/_nuxt/ModuleItem.8c304e21.js +0 -1
- package/dist/client/_nuxt/ModuleItem.vue.2d131549.js +0 -1
- package/dist/client/_nuxt/ModuleTreeNode.78ca9ece.js +0 -1
- package/dist/client/_nuxt/NButton.13233a1a.js +0 -1
- package/dist/client/_nuxt/NButton.vue.e86a98c0.js +0 -1
- package/dist/client/_nuxt/NCard.7a4e503f.js +0 -1
- package/dist/client/_nuxt/NCheckbox.2da82abb.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue.f058658a.js +0 -1
- package/dist/client/_nuxt/NDarkToggle.b7397b85.js +0 -1
- package/dist/client/_nuxt/NDarkToggle.vue.104b9df7.js +0 -1
- package/dist/client/_nuxt/NDialog.ff796c22.js +0 -7
- package/dist/client/_nuxt/NDropdown.6e99be47.js +0 -1
- package/dist/client/_nuxt/NIcon.62a6a6a2.js +0 -1
- package/dist/client/_nuxt/NIcon.vue.5c5f9ae0.js +0 -1
- package/dist/client/_nuxt/NLink.f8b21877.js +0 -1
- package/dist/client/_nuxt/NLink.vue.0f719ab9.js +0 -1
- package/dist/client/_nuxt/NRadio.8c217808.js +0 -1
- package/dist/client/_nuxt/NSwitch.ea9c119a.js +0 -1
- package/dist/client/_nuxt/NSwitch.vue.a7a200ce.js +0 -1
- package/dist/client/_nuxt/NTextInput.48fb0a25.js +0 -1
- package/dist/client/_nuxt/NTextInput.vue.5d4d2524.js +0 -1
- package/dist/client/_nuxt/NTip.d9c4666f.js +0 -1
- package/dist/client/_nuxt/Notification.287365de.js +0 -1
- package/dist/client/_nuxt/Notification.vue.dd7d98d5.js +0 -1
- package/dist/client/_nuxt/NuxtContentLogo.447522e5.js +0 -1
- package/dist/client/_nuxt/NuxtExampleLayout.06f6d250.js +0 -1
- package/dist/client/_nuxt/NuxtLogo.b27dc990.js +0 -1
- package/dist/client/_nuxt/PluginItem.6a55c130.js +0 -1
- package/dist/client/_nuxt/PluginItem.vue.6e1d1965.js +0 -1
- package/dist/client/_nuxt/RoutePathItem.b209a7cb.js +0 -1
- package/dist/client/_nuxt/RoutePathItem.vue.90d1f11a.js +0 -1
- package/dist/client/_nuxt/RoutesTable.ffa3adf9.js +0 -1
- package/dist/client/_nuxt/RoutesTable.vue.1bbafbda.js +0 -1
- package/dist/client/_nuxt/SectionBlock.082cb101.css +0 -1
- package/dist/client/_nuxt/SectionBlock.2e26af4b.js +0 -1
- package/dist/client/_nuxt/Settings.a15dbb2e.js +0 -1
- package/dist/client/_nuxt/Settings.vue.f2a6e99c.js +0 -1
- package/dist/client/_nuxt/StateEditor.fd549a9f.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.ead0fa52.js +0 -1
- package/dist/client/_nuxt/StateGroup.bcb980bd.js +0 -1
- package/dist/client/_nuxt/StateGroup.vue.c133a773.js +0 -1
- package/dist/client/_nuxt/TabIcon.e55b5a67.js +0 -1
- package/dist/client/_nuxt/TabIcon.vue.adac3b56.js +0 -1
- package/dist/client/_nuxt/UnoIcon.3132b92a.js +0 -1
- package/dist/client/_nuxt/__inspecting.a43a7f80.js +0 -1
- package/dist/client/_nuxt/app.config.12fdda03.js +0 -1
- package/dist/client/_nuxt/asyncData.518fdb22.js +0 -1
- package/dist/client/_nuxt/client-only.f9d053f8.js +0 -4
- package/dist/client/_nuxt/client.210463dc.js +0 -1
- package/dist/client/_nuxt/color-mode-options.00c15dd1.js +0 -1
- package/dist/client/_nuxt/component.vue3.02eb71f6.js +0 -1
- package/dist/client/_nuxt/components.4f55e0db.js +0 -1
- package/dist/client/_nuxt/components.84a4af12.js +0 -1
- package/dist/client/_nuxt/components.client.e93eaead.js +0 -113
- package/dist/client/_nuxt/composables.2b96933d.js +0 -1
- package/dist/client/_nuxt/composables.59ebbb45.js +0 -1
- package/dist/client/_nuxt/context.c20dc632.js +0 -1
- package/dist/client/_nuxt/custom-_name_.2cdb4455.js +0 -1
- package/dist/client/_nuxt/default.585c2af8.js +0 -1
- package/dist/client/_nuxt/defu.5a7c1433.js +0 -1
- package/dist/client/_nuxt/dev-only.32de73cb.js +0 -1
- package/dist/client/_nuxt/editor.45ea8ca4.js +0 -1
- package/dist/client/_nuxt/entry.6e08c3bd.css +0 -1
- package/dist/client/_nuxt/entry.72ee2736.js +0 -1
- package/dist/client/_nuxt/error-404.bf8933d3.js +0 -1
- package/dist/client/_nuxt/error-500.fe852534.js +0 -1
- package/dist/client/_nuxt/error-component.0aa3c1f1.js +0 -3
- package/dist/client/_nuxt/error.ab352ad9.js +0 -1
- package/dist/client/_nuxt/hooks.da36eba4.js +0 -1
- package/dist/client/_nuxt/imports.05a63875.js +0 -1
- package/dist/client/_nuxt/index.bf1af76f.js +0 -1
- package/dist/client/_nuxt/index.d56af0a0.js +0 -1
- package/dist/client/_nuxt/index.e1377d3f.js +0 -1
- package/dist/client/_nuxt/index.e7819c37.js +0 -1
- package/dist/client/_nuxt/layout.f6e6e706.js +0 -1
- package/dist/client/_nuxt/layouts.ed44bf26.js +0 -1
- package/dist/client/_nuxt/middleware.42780100.js +0 -1
- package/dist/client/_nuxt/modules.58ec9d96.js +0 -1
- package/dist/client/_nuxt/none.a36fcb53.js +0 -1
- package/dist/client/_nuxt/nuxt-error-boundary.70c75848.js +0 -1
- package/dist/client/_nuxt/nuxt-link.ed65b9da.js +0 -1
- package/dist/client/_nuxt/nuxt-loading-indicator.366d3e52.js +0 -1
- package/dist/client/_nuxt/nuxt.21217109.js +0 -1
- package/dist/client/_nuxt/overview.c0a9db52.js +0 -1
- package/dist/client/_nuxt/page.fb94fd70.js +0 -1
- package/dist/client/_nuxt/pages.ca7b2f77.js +0 -1
- package/dist/client/_nuxt/payload.78a6e729.js +0 -1
- package/dist/client/_nuxt/plugins.48c9acc3.js +0 -1
- package/dist/client/_nuxt/router.96f0ba10.js +0 -1
- package/dist/client/_nuxt/rpc.2e6b297d.js +0 -1
- package/dist/client/_nuxt/runtime-configs.1c27e6f2.js +0 -1
- package/dist/client/_nuxt/runtime-core.esm-bundler.ad888d46.js +0 -1
- package/dist/client/_nuxt/runtime-dom.esm-bundler.c94e30c4.js +0 -1
- package/dist/client/_nuxt/server-placeholder.ba9b9f8a.js +0 -1
- package/dist/client/_nuxt/server-routes.de3e707e.js +0 -1
- package/dist/client/_nuxt/state.2c41a47c.js +0 -1
- package/dist/client/_nuxt/state.85e68c45.js +0 -1
- package/dist/client/_nuxt/storage.abd6f5f8.js +0 -1
- package/dist/client/_nuxt/unocss-runtime.1d429fd2.js +0 -2
- package/dist/client/_nuxt/utils.1c789938.js +0 -1
- package/dist/client/_nuxt/utils.8ee5a573.js +0 -5
- package/dist/client/_nuxt/welcome.11fc1574.js +0 -1
- package/dist/shared/devtools.38b2468f.mjs +0 -337
- package/dist/shared/devtools.cce722d0.mjs +0 -68
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{_ as Ke}from"./NTextInput.vue.
|
|
1
|
+
import{_ as Ke}from"./NTextInput.vue.b6c079ee.js";import{_ as et}from"./nuxt-link.752dfef9.js";import{u as ne,k as we,D as tt,x as Pe,a as nt,P as st,K as rt,H as at,e as Se,f as ye,h as it,q as ot,F as ct,B as lt,t as Be,o as ke,c as ut,w as ht,j as pt,M as gt}from"./entry.b1094864.js";import{u as dt}from"./asyncData.d544d421.js";import{u as mt}from"./composables.80d3af7a.js";import{F as ft}from"./fuse.esm.88e2763d.js";import"./NIcon.vue.c1ad97a9.js";const _t={ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1};function bt(e,u={}){u={..._t,...u};const v=qe(u);return v.dispatch(e),v.toString()}function qe(e){const u=[];let v=[];const n=m=>{u.push(m)};return{toString(){return u.join("")},getContext(){return v},dispatch(m){return e.replacer&&(m=e.replacer(m)),this["_"+(m===null?"null":typeof m)](m)},_object(m){const a=/\[object (.*)]/i,L=Object.prototype.toString.call(m),w=a.exec(L),S=w?w[1].toLowerCase():"unknown:["+L.toLowerCase()+"]";let i=null;if((i=v.indexOf(m))>=0)return this.dispatch("[CIRCULAR:"+i+"]");if(v.push(m),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(m))return n("buffer:"),n(m.toString("utf8"));if(S!=="object"&&S!=="function"&&S!=="asyncfunction")if(this["_"+S])this["_"+S](m);else{if(e.ignoreUnknown)return n("["+S+"]");throw new Error('Unknown object type "'+S+'"')}else{let N=Object.keys(m);e.unorderedObjects&&(N=N.sort()),e.respectType!==!1&&!Ee(m)&&N.splice(0,0,"prototype","__proto__","letructor"),e.excludeKeys&&(N=N.filter(function(h){return!e.excludeKeys(h)})),n("object:"+N.length+":");for(const h of N)this.dispatch(h),n(":"),e.excludeValues||this.dispatch(m[h]),n(",")}},_array(m,a){if(a=typeof a<"u"?a:e.unorderedArrays!==!1,n("array:"+m.length+":"),!a||m.length<=1){for(const S of m)this.dispatch(S);return}const L=[],w=m.map(S=>{const i=qe(e);return i.dispatch(S),L.push(i.getContext()),i.toString()});return v=[...v,...L],w.sort(),this._array(w,!1)},_date(m){return n("date:"+m.toJSON())},_symbol(m){return n("symbol:"+m.toString())},_error(m){return n("error:"+m.toString())},_boolean(m){return n("bool:"+m.toString())},_string(m){n("string:"+m.length+":"),n(m.toString())},_function(m){n("fn:"),Ee(m)?this.dispatch("[native]"):this.dispatch(m.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(m.name)),e.respectFunctionProperties&&this._object(m)},_number(m){return n("number:"+m.toString())},_xml(m){return n("xml:"+m.toString())},_null(){return n("Null")},_undefined(){return n("Undefined")},_regexp(m){return n("regex:"+m.toString())},_uint8array(m){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(m))},_uint8clampedarray(m){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(m))},_int8array(m){return n("int8array:"),this.dispatch(Array.prototype.slice.call(m))},_uint16array(m){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(m))},_int16array(m){return n("int16array:"),this.dispatch(Array.prototype.slice.call(m))},_uint32array(m){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(m))},_int32array(m){return n("int32array:"),this.dispatch(Array.prototype.slice.call(m))},_float32array(m){return n("float32array:"),this.dispatch(Array.prototype.slice.call(m))},_float64array(m){return n("float64array:"),this.dispatch(Array.prototype.slice.call(m))},_arraybuffer(m){return n("arraybuffer:"),this.dispatch(new Uint8Array(m))},_url(m){return n("url:"+m.toString())},_map(m){n("map:");const a=[...m];return this._array(a,e.unorderedSets!==!1)},_set(m){n("set:");const a=[...m];return this._array(a,e.unorderedSets!==!1)},_file(m){return n("file:"),this.dispatch([m.name,m.size,m.type,m.lastModfied])},_blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
2
2
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
3
|
-
`)},_domwindow(){return n("domwindow")},_bigint(m){return n("bigint:"+m.toString())},_process(){return n("process")},_timer(){return n("timer")},_pipe(){return n("pipe")},_tcp(){return n("tcp")},_udp(){return n("udp")},_tty(){return n("tty")},_statwatcher(){return n("statwatcher")},_securecontext(){return n("securecontext")},_connection(){return n("connection")},_zlib(){return n("zlib")},_context(){return n("context")},_nodescript(){return n("nodescript")},_httpparser(){return n("httpparser")},_dataview(){return n("dataview")},_signal(){return n("signal")},_fsevent(){return n("fsevent")},_tlswrap(){return n("tlswrap")}}}function Ee(e){return typeof e!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}class _e{constructor(u,v){u=this.words=u||[],this.sigBytes=v!==void 0?v:u.length*4}toString(u){return(u||yt).stringify(this)}concat(u){if(this.clamp(),this.sigBytes%4)for(let v=0;v<u.sigBytes;v++){const n=u.words[v>>>2]>>>24-v%4*8&255;this.words[this.sigBytes+v>>>2]|=n<<24-(this.sigBytes+v)%4*8}else for(let v=0;v<u.sigBytes;v+=4)this.words[this.sigBytes+v>>>2]=u.words[v>>>2];return this.sigBytes+=u.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new _e([...this.words])}}const yt={stringify(e){const u=[];for(let v=0;v<e.sigBytes;v++){const n=e.words[v>>>2]>>>24-v%4*8&255;u.push((n>>>4).toString(16),(n&15).toString(16))}return u.join("")}},kt={stringify(e){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",v=[];for(let n=0;n<e.sigBytes;n+=3){const m=e.words[n>>>2]>>>24-n%4*8&255,a=e.words[n+1>>>2]>>>24-(n+1)%4*8&255,L=e.words[n+2>>>2]>>>24-(n+2)%4*8&255,w=m<<16|a<<8|L;for(let S=0;S<4&&n*8+S*6<e.sigBytes*8;S++)v.push(u.charAt(w>>>6*(3-S)&63))}return v.join("")}},Lt={parse(e){const u=e.length,v=[];for(let n=0;n<u;n++)v[n>>>2]|=(e.charCodeAt(n)&255)<<24-n%4*8;return new _e(v,u)}},wt={parse(e){return Lt.parse(unescape(encodeURIComponent(e)))}};class vt{constructor(){this._minBufferSize=0,this.blockSize=512/32,this.reset()}reset(){this._data=new _e,this._nDataBytes=0}_append(u){typeof u=="string"&&(u=wt.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes}_doProcessBlock(u,v){}_process(u){let v,n=this._data.sigBytes/(this.blockSize*4);u?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const m=n*this.blockSize,a=Math.min(m*4,this._data.sigBytes);if(m){for(let L=0;L<m;L+=this.blockSize)this._doProcessBlock(this._data.words,L);v=this._data.words.splice(0,m),this._data.sigBytes-=a}return new _e(v,a)}}class St extends vt{update(u){return this._append(u),this._process(),this}finalize(u){u&&this._append(u)}}const Nt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],jt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],pe=[];class At extends St{constructor(){super(),this.reset()}reset(){super.reset(),this._hash=new _e([...Nt])}_doProcessBlock(u,v){const n=this._hash.words;let m=n[0],a=n[1],L=n[2],w=n[3],S=n[4],i=n[5],N=n[6],p=n[7];for(let _=0;_<64;_++){if(_<16)pe[_]=u[v+_]|0;else{const l=pe[_-15],y=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,c=pe[_-2],t=(c<<15|c>>>17)^(c<<13|c>>>19)^c>>>10;pe[_]=y+pe[_-7]+t+pe[_-16]}const x=S&i^~S&N,g=m&a^m&L^a&L,A=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),j=(S<<26|S>>>6)^(S<<21|S>>>11)^(S<<7|S>>>25),b=p+j+x+jt[_]+pe[_],h=A+g;p=N,N=i,i=S,S=w+b|0,w=L,L=a,a=m,m=b+h|0}n[0]=n[0]+m|0,n[1]=n[1]+a|0,n[2]=n[2]+L|0,n[3]=n[3]+w|0,n[4]=n[4]+S|0,n[5]=n[5]+i|0,n[6]=n[6]+N|0,n[7]=n[7]+p|0}finalize(u){super.finalize(u);const v=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(v/4294967296),this._data.words[(n+64>>>9<<4)+15]=v,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function Tt(e){return new At().finalize(e).toString(kt)}function xt(e,u={}){const v=typeof e=="string"?e:bt(e,u);return Tt(v).slice(0,10)}function Rt(e,u,v){const[n={},m]=typeof u=="string"?[{},u]:[u,v],a=n.key||xt([m,ne(n.baseURL),typeof e=="string"?e:"",ne(n.params||n.query)]);if(!a||typeof a!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+a);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const L=a===m?"$f"+a:a,w=we(()=>{let y=e;return typeof y=="function"&&(y=y()),ne(y)}),{server:S,lazy:i,default:N,transform:p,pick:_,watch:x,immediate:g,...A}=n,j=st({...A,cache:typeof n.cache=="boolean"?void 0:n.cache}),b={server:S,lazy:i,default:N,transform:p,pick:_,immediate:g,watch:[j,w,...x||[]]};let h;return nt(L,()=>(h?.abort?.(),h=typeof AbortController<"u"?new AbortController:{},typeof w.value=="string"&&w.value.startsWith("/"),(n.$fetch||globalThis.$fetch)(w.value,{signal:h.signal,...j})),b)}var Ce=typeof globalThis<"u"?globalThis:typeof{}<"u"?{}:typeof global<"u"?global:typeof self<"u"?self:{},ve={},Pt={get exports(){return ve},set exports(e){ve=e}};(function(e,u){(function(v,n){e.exports=n()})(Ce,()=>{return v={770:function(m,a,L){var w=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.setDefaultDebugCall=a.createOnigScanner=a.createOnigString=a.loadWASM=a.OnigScanner=a.OnigString=void 0;const S=w(L(418));let i=null,N=!1;class p{static _utf8ByteLength(b){let h=0;for(let l=0,y=b.length;l<y;l++){const c=b.charCodeAt(l);let t=c,s=!1;if(c>=55296&&c<=56319&&l+1<y){const o=b.charCodeAt(l+1);o>=56320&&o<=57343&&(t=65536+(c-55296<<10)|o-56320,s=!0)}h+=t<=127?1:t<=2047?2:t<=65535?3:4,s&&l++}return h}constructor(b){const h=b.length,l=p._utf8ByteLength(b),y=l!==h,c=y?new Uint32Array(h+1):null;y&&(c[h]=l);const t=y?new Uint32Array(l+1):null;y&&(t[l]=h);const s=new Uint8Array(l);let o=0;for(let r=0;r<h;r++){const f=b.charCodeAt(r);let d=f,k=!1;if(f>=55296&&f<=56319&&r+1<h){const T=b.charCodeAt(r+1);T>=56320&&T<=57343&&(d=65536+(f-55296<<10)|T-56320,k=!0)}y&&(c[r]=o,k&&(c[r+1]=o),d<=127?t[o+0]=r:d<=2047?(t[o+0]=r,t[o+1]=r):d<=65535?(t[o+0]=r,t[o+1]=r,t[o+2]=r):(t[o+0]=r,t[o+1]=r,t[o+2]=r,t[o+3]=r)),d<=127?s[o++]=d:d<=2047?(s[o++]=192|(1984&d)>>>6,s[o++]=128|(63&d)>>>0):d<=65535?(s[o++]=224|(61440&d)>>>12,s[o++]=128|(4032&d)>>>6,s[o++]=128|(63&d)>>>0):(s[o++]=240|(1835008&d)>>>18,s[o++]=128|(258048&d)>>>12,s[o++]=128|(4032&d)>>>6,s[o++]=128|(63&d)>>>0),k&&r++}this.utf16Length=h,this.utf8Length=l,this.utf16Value=b,this.utf8Value=s,this.utf16OffsetToUtf8=c,this.utf8OffsetToUtf16=t}createString(b){const h=b._omalloc(this.utf8Length);return b.HEAPU8.set(this.utf8Value,h),h}}class _{constructor(b){if(this.id=++_.LAST_ID,!i)throw new Error("Must invoke loadWASM first.");this._onigBinding=i,this.content=b;const h=new p(b);this.utf16Length=h.utf16Length,this.utf8Length=h.utf8Length,this.utf16OffsetToUtf8=h.utf16OffsetToUtf8,this.utf8OffsetToUtf16=h.utf8OffsetToUtf16,this.utf8Length<1e4&&!_._sharedPtrInUse?(_._sharedPtr||(_._sharedPtr=i._omalloc(1e4)),_._sharedPtrInUse=!0,i.HEAPU8.set(h.utf8Value,_._sharedPtr),this.ptr=_._sharedPtr):this.ptr=h.createString(i)}convertUtf8OffsetToUtf16(b){return this.utf8OffsetToUtf16?b<0?0:b>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[b]:b}convertUtf16OffsetToUtf8(b){return this.utf16OffsetToUtf8?b<0?0:b>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[b]:b}dispose(){this.ptr===_._sharedPtr?_._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}a.OnigString=_,_.LAST_ID=0,_._sharedPtr=0,_._sharedPtrInUse=!1;class x{constructor(b){if(!i)throw new Error("Must invoke loadWASM first.");const h=[],l=[];for(let s=0,o=b.length;s<o;s++){const r=new p(b[s]);h[s]=r.createString(i),l[s]=r.utf8Length}const y=i._omalloc(4*b.length);i.HEAPU32.set(h,y/4);const c=i._omalloc(4*b.length);i.HEAPU32.set(l,c/4);const t=i._createOnigScanner(y,c,b.length);for(let s=0,o=b.length;s<o;s++)i._ofree(h[s]);i._ofree(c),i._ofree(y),t===0&&function(s){throw new Error(s.UTF8ToString(s._getLastOnigError()))}(i),this._onigBinding=i,this._ptr=t}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(b,h,l){let y=N,c=0;if(typeof l=="number"?(8&l&&(y=!0),c=l):typeof l=="boolean"&&(y=l),typeof b=="string"){b=new _(b);const t=this._findNextMatchSync(b,h,y,c);return b.dispose(),t}return this._findNextMatchSync(b,h,y,c)}_findNextMatchSync(b,h,l,y){const c=this._onigBinding;let t;if(t=l?c._findNextOnigScannerMatchDbg(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(h),y):c._findNextOnigScannerMatch(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(h),y),t===0)return null;const s=c.HEAPU32;let o=t/4;const r=s[o++],f=s[o++];let d=[];for(let k=0;k<f;k++){const T=b.convertUtf8OffsetToUtf16(s[o++]),P=b.convertUtf8OffsetToUtf16(s[o++]);d[k]={start:T,end:P,length:P-T}}return{index:r,captureIndices:d}}}a.OnigScanner=x;let g=!1,A=null;a.loadWASM=function(j){if(g)return A;let b,h,l,y;if(g=!0,function(c){return typeof c.instantiator=="function"}(j))b=j.instantiator,h=j.print;else{let c;(function(t){return t.data!==void 0})(j)?(c=j.data,h=j.print):c=j,b=function(t){return typeof Response<"u"&&t instanceof Response}(c)?typeof WebAssembly.instantiateStreaming=="function"?function(t){return s=>WebAssembly.instantiateStreaming(t,s)}(c):function(t){return async s=>{const o=await t.arrayBuffer();return WebAssembly.instantiate(o,s)}}(c):function(t){return s=>WebAssembly.instantiate(t,s)}(c)}return A=new Promise((c,t)=>{l=c,y=t}),function(c,t,s,o){(0,S.default)({print:t,instantiateWasm:(r,f)=>{if(typeof performance>"u"){const d=()=>Date.now();r.env.emscripten_get_now=d,r.wasi_snapshot_preview1.emscripten_get_now=d}return c(r).then(d=>f(d.instance),o),{}}}).then(r=>{i=r,s()})}(b,h,l,y),A},a.createOnigString=function(j){return new _(j)},a.createOnigScanner=function(j){return new x(j)},a.setDefaultDebugCall=function(j){N=j}},418:m=>{var a=(typeof document<"u"&&document.currentScript&&document.currentScript.src,function(L){var w,S,i=(L=L||{})!==void 0?L:{};i.ready=new Promise(function(I,B){w=I,S=B});var N,p=Object.assign({},i),_=!1,x="";function g(I){return i.locateFile?i.locateFile(I,x):x+I}N=function(I){let B;return typeof readbuffer=="function"?new Uint8Array(readbuffer(I)):(B=read(I,"binary"),y(typeof B=="object"),B)},typeof scriptArgs<"u"&&scriptArgs,typeof onig_print<"u"&&(typeof console>"u"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr<"u"?printErr:onig_print);var A,j,b=i.print||console.log.bind(console),h=i.printErr||console.warn.bind(console);Object.assign(i,p),p=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(A=i.wasmBinary),i.noExitRuntime,typeof WebAssembly!="object"&&D("no native wasm support detected");var l=!1;function y(I,B){I||D(B)}var c,t,s,o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function r(I,B,X){for(var te=B+X,C=B;I[C]&&!(C>=te);)++C;if(C-B>16&&I.buffer&&o)return o.decode(I.subarray(B,C));for(var W="";B<C;){var Y=I[B++];if(128&Y){var de=63&I[B++];if((224&Y)!=192){var me=63&I[B++];if((Y=(240&Y)==224?(15&Y)<<12|de<<6|me:(7&Y)<<18|de<<12|me<<6|63&I[B++])<65536)W+=String.fromCharCode(Y);else{var Oe=Y-65536;W+=String.fromCharCode(55296|Oe>>10,56320|1023&Oe)}}else W+=String.fromCharCode((31&Y)<<6|de)}else W+=String.fromCharCode(Y)}return W}function f(I,B){return I?r(t,I,B):""}function d(I){c=I,i.HEAP8=new Int8Array(I),i.HEAP16=new Int16Array(I),i.HEAP32=new Int32Array(I),i.HEAPU8=t=new Uint8Array(I),i.HEAPU16=new Uint16Array(I),i.HEAPU32=s=new Uint32Array(I),i.HEAPF32=new Float32Array(I),i.HEAPF64=new Float64Array(I)}i.INITIAL_MEMORY;var k=[],T=[],P=[];function O(){if(i.preRun)for(typeof i.preRun=="function"&&(i.preRun=[i.preRun]);i.preRun.length;)U(i.preRun.shift());se(k)}function E(){se(T)}function z(){if(i.postRun)for(typeof i.postRun=="function"&&(i.postRun=[i.postRun]);i.postRun.length;)H(i.postRun.shift());se(P)}function U(I){k.unshift(I)}function G(I){T.unshift(I)}function H(I){P.unshift(I)}var V=0,q=null;function F(I){V++,i.monitorRunDependencies&&i.monitorRunDependencies(V)}function M(I){if(V--,i.monitorRunDependencies&&i.monitorRunDependencies(V),V==0&&q){var B=q;q=null,B()}}function D(I){i.onAbort&&i.onAbort(I),h(I="Aborted("+I+")"),l=!0,I+=". Build with -sASSERTIONS for more info.";var B=new WebAssembly.RuntimeError(I);throw S(B),B}var J,R,Q="data:application/octet-stream;base64,";function $(I){return I.startsWith(Q)}function ee(I){try{if(I==J&&A)return new Uint8Array(A);if(N)return N(I);throw"both async and sync fetching of the wasm failed"}catch(B){D(B)}}function ie(){return A||!_||typeof fetch!="function"?Promise.resolve().then(function(){return ee(J)}):fetch(J,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+J+"'";return I.arrayBuffer()}).catch(function(){return ee(J)})}function be(){var I={env:ue,wasi_snapshot_preview1:ue};function B(C,W){var Y=C.exports;i.asm=Y,d((j=i.asm.memory).buffer),i.asm.__indirect_function_table,G(i.asm.__wasm_call_ctors),M()}function X(C){B(C.instance)}function te(C){return ie().then(function(W){return WebAssembly.instantiate(W,I)}).then(function(W){return W}).then(C,function(W){h("failed to asynchronously prepare wasm: "+W),D(W)})}if(F(),i.instantiateWasm)try{return i.instantiateWasm(I,B)}catch(C){h("Module.instantiateWasm callback failed with error: "+C),S(C)}return(A||typeof WebAssembly.instantiateStreaming!="function"||$(J)||typeof fetch!="function"?te(X):fetch(J,{credentials:"same-origin"}).then(function(C){return WebAssembly.instantiateStreaming(C,I).then(X,function(W){return h("wasm streaming compile failed: "+W),h("falling back to ArrayBuffer instantiation"),te(X)})})).catch(S),{}}function se(I){for(;I.length>0;)I.shift()(i)}function re(I,B,X){t.copyWithin(I,B,B+X)}function he(I){try{return j.grow(I-c.byteLength+65535>>>16),d(j.buffer),1}catch{}}function oe(I){var B,X=t.length,te=2147483648;if((I>>>=0)>te)return!1;for(var C=1;C<=4;C*=2){var W=X*(1+.2/C);if(W=Math.min(W,I+100663296),he(Math.min(te,(B=Math.max(I,W))+(65536-B%65536)%65536)))return!0}return!1}$(J="onig.wasm")||(J=g(J)),R=typeof dateNow<"u"?dateNow:()=>performance.now();var ce=[null,[],[]];function le(I,B){var X=ce[I];B===0||B===10?((I===1?b:h)(r(X,0)),X.length=0):X.push(B)}function ae(I,B,X,te){for(var C=0,W=0;W<X;W++){var Y=s[B>>2],de=s[B+4>>2];B+=8;for(var me=0;me<de;me++)le(I,t[Y+me]);C+=de}return s[te>>2]=C,0}var Z,ue={emscripten_get_now:R,emscripten_memcpy_big:re,emscripten_resize_heap:oe,fd_write:ae};function ge(I){function B(){Z||(Z=!0,i.calledRun=!0,l||(E(),w(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),z()))}V>0||(O(),V>0||(i.setStatus?(i.setStatus("Running..."),setTimeout(function(){setTimeout(function(){i.setStatus("")},1),B()},1)):B()))}if(be(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.__wasm_call_ctors).apply(null,arguments)},i.___errno_location=function(){return(i.___errno_location=i.asm.__errno_location).apply(null,arguments)},i._omalloc=function(){return(i._omalloc=i.asm.omalloc).apply(null,arguments)},i._ofree=function(){return(i._ofree=i.asm.ofree).apply(null,arguments)},i._getLastOnigError=function(){return(i._getLastOnigError=i.asm.getLastOnigError).apply(null,arguments)},i._createOnigScanner=function(){return(i._createOnigScanner=i.asm.createOnigScanner).apply(null,arguments)},i._freeOnigScanner=function(){return(i._freeOnigScanner=i.asm.freeOnigScanner).apply(null,arguments)},i._findNextOnigScannerMatch=function(){return(i._findNextOnigScannerMatch=i.asm.findNextOnigScannerMatch).apply(null,arguments)},i._findNextOnigScannerMatchDbg=function(){return(i._findNextOnigScannerMatchDbg=i.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},i.stackSave=function(){return(i.stackSave=i.asm.stackSave).apply(null,arguments)},i.stackRestore=function(){return(i.stackRestore=i.asm.stackRestore).apply(null,arguments)},i.stackAlloc=function(){return(i.stackAlloc=i.asm.stackAlloc).apply(null,arguments)},i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.dynCall_jiji).apply(null,arguments)},i.UTF8ToString=f,q=function I(){Z||ge(),Z||(q=I)},i.preInit)for(typeof i.preInit=="function"&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return ge(),L.ready});m.exports=a}},n={},function m(a){var L=n[a];if(L!==void 0)return L.exports;var w=n[a]={exports:{}};return v[a].call(w.exports,w,w.exports,m),w.exports}(770);var v,n})})(Pt);var je={},It={get exports(){return je},set exports(e){je=e}};(function(e,u){(function(v,n){e.exports=n()})(Ce,function(){return(()=>{var v={350:(m,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UseOnigurumaFindOptions=a.DebugFlags=void 0,a.DebugFlags={InDebugMode:typeof process<"u"&&!1},a.UseOnigurumaFindOptions=!1},36:(m,a)=>{var L;Object.defineProperty(a,"__esModule",{value:!0}),a.toOptionalTokenType=a.EncodedTokenAttributes=void 0,(L=a.EncodedTokenAttributes||(a.EncodedTokenAttributes={})).toBinaryStr=function(w){let S=w.toString(2);for(;S.length<32;)S="0"+S;return S},L.print=function(w){const S=L.getLanguageId(w),i=L.getTokenType(w),N=L.getFontStyle(w),p=L.getForeground(w),_=L.getBackground(w);console.log({languageId:S,tokenType:i,fontStyle:N,foreground:p,background:_})},L.getLanguageId=function(w){return(255&w)>>>0},L.getTokenType=function(w){return(768&w)>>>8},L.containsBalancedBrackets=function(w){return(1024&w)!=0},L.getFontStyle=function(w){return(30720&w)>>>11},L.getForeground=function(w){return(16744448&w)>>>15},L.getBackground=function(w){return(4278190080&w)>>>24},L.set=function(w,S,i,N,p,_,x){let g=L.getLanguageId(w),A=L.getTokenType(w),j=L.containsBalancedBrackets(w)?1:0,b=L.getFontStyle(w),h=L.getForeground(w),l=L.getBackground(w);return S!==0&&(g=S),i!==8&&(A=i),N!==null&&(j=N?1:0),p!==-1&&(b=p),_!==0&&(h=_),x!==0&&(l=x),(g<<0|A<<8|j<<10|b<<11|h<<15|l<<24)>>>0},a.toOptionalTokenType=function(w){return w}},996:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BasicScopeAttributesProvider=a.BasicScopeAttributes=void 0;const w=L(878);class S{constructor(_,x){this.languageId=_,this.tokenType=x}}a.BasicScopeAttributes=S;class i{constructor(_,x){this._getBasicScopeAttributes=new w.CachedFn(g=>{const A=this._scopeToLanguage(g),j=this._toStandardTokenType(g);return new S(A,j)}),this._defaultAttributes=new S(_,8),this._embeddedLanguagesMatcher=new N(Object.entries(x||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(_){return _===null?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(_)}_scopeToLanguage(_){return this._embeddedLanguagesMatcher.match(_)||0}_toStandardTokenType(_){const x=_.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!x)return 8;switch(x[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!")}}a.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new S(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class N{constructor(_){if(_.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(_);const x=_.map(([g,A])=>w.escapeRegExpCharacters(g));x.sort(),x.reverse(),this.scopesRegExp=new RegExp(`^((${x.join(")|(")}))($|\\.)`,"")}}match(_){if(!this.scopesRegExp)return;const x=_.match(this.scopesRegExp);return x?this.values.get(x[1]):void 0}}},947:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LineTokens=a.BalancedBracketSelectors=a.StateStack=a.AttributedScopeStack=a.Grammar=a.createGrammar=void 0;const w=L(350),S=L(36),i=L(736),N=L(44),p=L(792),_=L(583),x=L(878),g=L(996),A=L(47);function j(o,r,f,d,k){const T=i.createMatchers(r,b),P=p.RuleFactory.getCompiledRuleId(f,d,k.repository);for(const O of T)o.push({debugSelector:r,matcher:O.matcher,ruleId:P,grammar:k,priority:O.priority})}function b(o,r){if(r.length<o.length)return!1;let f=0;return o.every(d=>{for(let k=f;k<r.length;k++)if(h(r[k],d))return f=k+1,!0;return!1})}function h(o,r){if(!o)return!1;if(o===r)return!0;const f=r.length;return o.length>f&&o.substr(0,f)===r&&o[f]==="."}a.createGrammar=function(o,r,f,d,k,T,P,O){return new l(o,r,f,d,k,T,P,O)};class l{constructor(r,f,d,k,T,P,O,E){if(this._rootScopeName=r,this.balancedBracketSelectors=P,this._onigLib=E,this._basicScopeAttributesProvider=new g.BasicScopeAttributesProvider(d,k),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=O,this._grammar=y(f,null),this._injections=null,this._tokenTypeMatchers=[],T)for(const z of Object.keys(T)){const U=i.createMatchers(z,b);for(const G of U)this._tokenTypeMatchers.push({matcher:G.matcher,type:T[z]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r=[],f=this._rootScopeName,d=(k=>k===this._rootScopeName?this._grammar:this.getExternalGrammar(k))(f);if(d){const k=d.injections;if(k)for(let P in k)j(r,P,k[P],this,d);const T=this._grammarRepository.injections(f);T&&T.forEach(P=>{const O=this.getExternalGrammar(P);if(O){const E=O.injectionSelector;E&&j(r,E,O,this,O)}})}return r.sort((k,T)=>k.priority-T.priority),r}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),w.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const r of this._injections)console.log(` - ${r.debugSelector}`)}return this._injections}registerRule(r){const f=++this._lastRuleId,d=r(p.ruleIdFromNumber(f));return this._ruleId2desc[f]=d,d}getRule(r){return this._ruleId2desc[p.ruleIdToNumber(r)]}getExternalGrammar(r,f){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const d=this._grammarRepository.lookup(r);if(d)return this._includedGrammars[r]=y(d,f&&f.$base),this._includedGrammars[r]}}tokenizeLine(r,f,d=0){const k=this._tokenize(r,f,!1,d);return{tokens:k.lineTokens.getResult(k.ruleStack,k.lineLength),ruleStack:k.ruleStack,stoppedEarly:k.stoppedEarly}}tokenizeLine2(r,f,d=0){const k=this._tokenize(r,f,!0,d);return{tokens:k.lineTokens.getBinaryResult(k.ruleStack,k.lineLength),ruleStack:k.ruleStack,stoppedEarly:k.stoppedEarly}}_tokenize(r,f,d,k){let T;if(this._rootId===-1&&(this._rootId=p.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),f&&f!==t.NULL)T=!1,f.reset();else{T=!0;const U=this._basicScopeAttributesProvider.getDefaultAttributes(),G=this.themeProvider.getDefaults(),H=S.EncodedTokenAttributes.set(0,U.languageId,U.tokenType,null,G.fontStyle,G.foregroundId,G.backgroundId),V=this.getRule(this._rootId).getName(null,null);let q;q=V?c.createRootAndLookUpScopeName(V,H,this):c.createRoot("unknown",H),f=new t(null,this._rootId,-1,-1,!1,null,q,q)}r+=`
|
|
4
|
-
`;const P=this.createOnigString(r),O=P.content.length,E=new s(d,r,this._tokenTypeMatchers,this.balancedBracketSelectors),z=A._tokenizeString(this,P,T,0,f,E,!0,k);return N.disposeOnigString(P),{lineLength:O,lineTokens:E,ruleStack:z.stack,stoppedEarly:z.stoppedEarly}}}function y(o,r){return(o=x.clone(o)).repository=o.repository||{},o.repository.$self={$vscodeTextmateLocation:o.$vscodeTextmateLocation,patterns:o.patterns,name:o.scopeName},o.repository.$base=r||o.repository.$self,o}a.Grammar=l;class c{constructor(r,f,d){this.parent=r,this.scopePath=f,this.tokenAttributes=d}static createRoot(r,f){return new c(null,new _.ScopeStack(null,r),f)}static createRootAndLookUpScopeName(r,f,d){const k=d.getMetadataForScope(r),T=new _.ScopeStack(null,r),P=d.themeProvider.themeMatch(T),O=c.mergeAttributes(f,k,P);return new c(null,T,O)}get scopeName(){return this.scopePath.scopeName}equals(r){return c._equals(this,r)}static _equals(r,f){for(;;){if(r===f||!r&&!f)return!0;if(!r||!f||r.scopeName!==f.scopeName||r.tokenAttributes!==f.tokenAttributes)return!1;r=r.parent,f=f.parent}}static mergeAttributes(r,f,d){let k=-1,T=0,P=0;return d!==null&&(k=d.fontStyle,T=d.foregroundId,P=d.backgroundId),S.EncodedTokenAttributes.set(r,f.languageId,f.tokenType,null,k,T,P)}pushAttributed(r,f){if(r===null)return this;if(r.indexOf(" ")===-1)return c._pushAttributed(this,r,f);const d=r.split(/ /g);let k=this;for(const T of d)k=c._pushAttributed(k,T,f);return k}static _pushAttributed(r,f,d){const k=d.getMetadataForScope(f),T=r.scopePath.push(f),P=d.themeProvider.themeMatch(T),O=c.mergeAttributes(r.tokenAttributes,k,P);return new c(r,T,O)}getScopeNames(){return this.scopePath.getSegments()}}a.AttributedScopeStack=c;class t{constructor(r,f,d,k,T,P,O,E){this.parent=r,this.ruleId=f,this.beginRuleCapturedEOL=T,this.endRule=P,this.nameScopesList=O,this.contentNameScopesList=E,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=d,this._anchorPos=k}equals(r){return r!==null&&t._equals(this,r)}static _equals(r,f){return r===f||!!this._structuralEquals(r,f)&&r.contentNameScopesList.equals(f.contentNameScopesList)}static _structuralEquals(r,f){for(;;){if(r===f||!r&&!f)return!0;if(!r||!f||r.depth!==f.depth||r.ruleId!==f.ruleId||r.endRule!==f.endRule)return!1;r=r.parent,f=f.parent}}clone(){return this}static _reset(r){for(;r;)r._enterPos=-1,r._anchorPos=-1,r=r.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(r,f,d,k,T,P,O){return new t(this,r,f,d,k,T,P,O)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(r){return r.getRule(this.ruleId)}toString(){const r=[];return this._writeString(r,0),"["+r.join(",")+"]"}_writeString(r,f){return this.parent&&(f=this.parent._writeString(r,f)),r[f++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,f}withContentNameScopesList(r){return this.contentNameScopesList===r?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,r)}withEndRule(r){return this.endRule===r?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,r,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(r){let f=this;for(;f&&f._enterPos===r._enterPos;){if(f.ruleId===r.ruleId)return!0;f=f.parent}return!1}}a.StateStack=t,t.NULL=new t(null,0,0,0,!1,null,null,null),a.BalancedBracketSelectors=class{constructor(o,r){this.allowAny=!1,this.balancedBracketScopes=o.flatMap(f=>f==="*"?(this.allowAny=!0,[]):i.createMatchers(f,b).map(d=>d.matcher)),this.unbalancedBracketScopes=r.flatMap(f=>i.createMatchers(f,b).map(d=>d.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(o){for(const r of this.unbalancedBracketScopes)if(r(o))return!1;for(const r of this.balancedBracketScopes)if(r(o))return!0;return this.allowAny}};class s{constructor(r,f,d,k){this.balancedBracketSelectors=k,this._emitBinaryTokens=r,this._tokenTypeOverrides=d,w.DebugFlags.InDebugMode?this._lineText=f:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,f){this.produceFromScopes(r.contentNameScopesList,f)}produceFromScopes(r,f){if(this._lastTokenEndIndex>=f)return;if(this._emitBinaryTokens){let k=r.tokenAttributes,T=!1;if(this.balancedBracketSelectors?.matchesAlways&&(T=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const P=r.getScopeNames();for(const O of this._tokenTypeOverrides)O.matcher(P)&&(k=S.EncodedTokenAttributes.set(k,0,S.toOptionalTokenType(O.type),null,-1,0,0));this.balancedBracketSelectors&&(T=this.balancedBracketSelectors.match(P))}if(T&&(k=S.EncodedTokenAttributes.set(k,0,8,T,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===k)return void(this._lastTokenEndIndex=f);if(w.DebugFlags.InDebugMode){const P=r.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,f).replace(/\n$/,"\\n")+"|");for(let O=0;O<P.length;O++)console.log(" * "+P[O])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(k),void(this._lastTokenEndIndex=f)}const d=r.getScopeNames();if(w.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,f).replace(/\n$/,"\\n")+"|");for(let k=0;k<d.length;k++)console.log(" * "+d[k])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:f,scopes:d}),this._lastTokenEndIndex=f}getResult(r,f){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===f-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,f),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,f){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===f-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,f),this._binaryTokens[this._binaryTokens.length-2]=0);const d=new Uint32Array(this._binaryTokens.length);for(let k=0,T=this._binaryTokens.length;k<T;k++)d[k]=this._binaryTokens[k];return d}}a.LineTokens=s},965:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.parseInclude=a.TopLevelRepositoryReference=a.TopLevelReference=a.RelativeReference=a.SelfReference=a.BaseReference=a.ScopeDependencyProcessor=a.ExternalReferenceCollector=a.TopLevelRepositoryRuleReference=a.TopLevelRuleReference=void 0;const w=L(878);class S{constructor(t){this.scopeName=t}toKey(){return this.scopeName}}a.TopLevelRuleReference=S;class i{constructor(t,s){this.scopeName=t,this.ruleName=s}toKey(){return`${this.scopeName}#${this.ruleName}`}}a.TopLevelRepositoryRuleReference=i;class N{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const s=t.toKey();this._seenReferenceKeys.has(s)||(this._seenReferenceKeys.add(s),this._references.push(t))}}function p(c,t,s,o){const r=s.lookup(c.scopeName);if(!r){if(c.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const f=s.lookup(t);c instanceof S?x({baseGrammar:f,selfGrammar:r},o):_(c.ruleName,{baseGrammar:f,selfGrammar:r,repository:r.repository},o);const d=s.injections(c.scopeName);if(d)for(const k of d)o.add(new S(k))}function _(c,t,s){t.repository&&t.repository[c]&&g([t.repository[c]],t,s)}function x(c,t){c.selfGrammar.patterns&&Array.isArray(c.selfGrammar.patterns)&&g(c.selfGrammar.patterns,{...c,repository:c.selfGrammar.repository},t),c.selfGrammar.injections&&g(Object.values(c.selfGrammar.injections),{...c,repository:c.selfGrammar.repository},t)}function g(c,t,s){for(const o of c){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const r=o.repository?w.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&g(o.patterns,{...t,repository:r},s);const f=o.include;if(!f)continue;const d=y(f);switch(d.kind){case 0:x({...t,selfGrammar:t.baseGrammar},s);break;case 1:x(t,s);break;case 2:_(d.ruleName,{...t,repository:r},s);break;case 3:case 4:const k=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(k){const T={baseGrammar:t.baseGrammar,selfGrammar:k,repository:r};d.kind===4?_(d.ruleName,T,s):x(T,s)}else d.kind===4?s.add(new i(d.scopeName,d.ruleName)):s.add(new S(d.scopeName))}}}a.ExternalReferenceCollector=N,a.ScopeDependencyProcessor=class{constructor(c,t){this.repo=c,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new S(this.initialScopeName)]}processQueue(){const c=this.Q;this.Q=[];const t=new N;for(const s of c)p(s,this.initialScopeName,this.repo,t);for(const s of t.references)if(s instanceof S){if(this.seenFullScopeRequests.has(s.scopeName))continue;this.seenFullScopeRequests.add(s.scopeName),this.Q.push(s)}else{if(this.seenFullScopeRequests.has(s.scopeName)||this.seenPartialScopeRequests.has(s.toKey()))continue;this.seenPartialScopeRequests.add(s.toKey()),this.Q.push(s)}}};class A{constructor(){this.kind=0}}a.BaseReference=A;class j{constructor(){this.kind=1}}a.SelfReference=j;class b{constructor(t){this.ruleName=t,this.kind=2}}a.RelativeReference=b;class h{constructor(t){this.scopeName=t,this.kind=3}}a.TopLevelReference=h;class l{constructor(t,s){this.scopeName=t,this.ruleName=s,this.kind=4}}function y(c){if(c==="$base")return new A;if(c==="$self")return new j;const t=c.indexOf("#");if(t===-1)return new h(c);if(t===0)return new b(c.substring(1));{const s=c.substring(0,t),o=c.substring(t+1);return new l(s,o)}}a.TopLevelRepositoryReference=l,a.parseInclude=y},391:function(m,a,L){var w=this&&this.__createBinding||(Object.create?function(i,N,p,_){_===void 0&&(_=p),Object.defineProperty(i,_,{enumerable:!0,get:function(){return N[p]}})}:function(i,N,p,_){_===void 0&&(_=p),i[_]=N[p]}),S=this&&this.__exportStar||function(i,N){for(var p in i)p==="default"||Object.prototype.hasOwnProperty.call(N,p)||w(N,i,p)};Object.defineProperty(a,"__esModule",{value:!0}),S(L(947),a)},47:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LocalStackElement=a._tokenizeString=void 0;const w=L(350),S=L(44),i=L(792),N=L(878);class p{constructor(l,y){this.stack=l,this.stoppedEarly=y}}function _(h,l,y,c,t,s,o,r){const f=l.content.length;let d=!1,k=-1;if(o){const O=function(E,z,U,G,H,V){let q=H.beginRuleCapturedEOL?0:-1;const F=[];for(let M=H;M;M=M.pop()){const D=M.getRule(E);D instanceof i.BeginWhileRule&&F.push({rule:D,stack:M})}for(let M=F.pop();M;M=F.pop()){const{ruleScanner:D,findOptions:J}=g(M.rule,E,M.stack.endRule,U,G===q),R=D.findNextMatchSync(z,G,J);if(w.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(D.toString())),!R){w.DebugFlags.InDebugMode&&console.log(" popping "+M.rule.debugName+" - "+M.rule.debugWhileRegExp),H=M.stack.pop();break}if(R.ruleId!==i.whileRuleId){H=M.stack.pop();break}R.captureIndices&&R.captureIndices.length&&(V.produce(M.stack,R.captureIndices[0].start),j(E,z,U,M.stack,V,M.rule.whileCaptures,R.captureIndices),V.produce(M.stack,R.captureIndices[0].end),q=R.captureIndices[0].end,R.captureIndices[0].end>G&&(G=R.captureIndices[0].end,U=!1))}return{stack:H,linePos:G,anchorPosition:q,isFirstLine:U}}(h,l,y,c,t,s);t=O.stack,c=O.linePos,y=O.isFirstLine,k=O.anchorPosition}const T=Date.now();for(;!d;){if(r!==0&&Date.now()-T>r)return new p(t,!0);P()}return new p(t,!1);function P(){w.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${c}: |${l.content.substr(c).replace(/\n$/,"\\n")}|`));const O=function(G,H,V,q,F,M){const D=function(ee,ie,be,se,re,he){const oe=re.getRule(ee),{ruleScanner:ce,findOptions:le}=x(oe,ee,re.endRule,be,se===he);let ae=0;w.DebugFlags.InDebugMode&&(ae=N.performanceNow());const Z=ce.findNextMatchSync(ie,se,le);if(w.DebugFlags.InDebugMode){const ue=N.performanceNow()-ae;ue>5&&console.warn(`Rule ${oe.debugName} (${oe.id}) matching took ${ue} against '${ie}'`),console.log(` scanning for (linePos: ${se}, anchorPosition: ${he})`),console.log(ce.toString()),Z&&console.log(`matched rule id: ${Z.ruleId} from ${Z.captureIndices[0].start} to ${Z.captureIndices[0].end}`)}return Z?{captureIndices:Z.captureIndices,matchedRuleId:Z.ruleId}:null}(G,H,V,q,F,M),J=G.getInjections();if(J.length===0)return D;const R=function(ee,ie,be,se,re,he,oe){let ce,le=Number.MAX_VALUE,ae=null,Z=0;const ue=he.contentNameScopesList.getScopeNames();for(let ge=0,I=ee.length;ge<I;ge++){const B=ee[ge];if(!B.matcher(ue))continue;const X=ie.getRule(B.ruleId),{ruleScanner:te,findOptions:C}=x(X,ie,null,se,re===oe),W=te.findNextMatchSync(be,re,C);if(!W)continue;w.DebugFlags.InDebugMode&&(console.log(` matched injection: ${B.debugSelector}`),console.log(te.toString()));const Y=W.captureIndices[0].start;if(!(Y>=le)&&(le=Y,ae=W.captureIndices,ce=W.ruleId,Z=B.priority,le===re))break}return ae?{priorityMatch:Z===-1,captureIndices:ae,matchedRuleId:ce}:null}(J,G,H,V,q,F,M);if(!R)return D;if(!D)return R;const Q=D.captureIndices[0].start,$=R.captureIndices[0].start;return $<Q||R.priorityMatch&&$===Q?R:D}(h,l,y,c,t,k);if(!O)return w.DebugFlags.InDebugMode&&console.log(" no more matches."),s.produce(t,f),void(d=!0);const E=O.captureIndices,z=O.matchedRuleId,U=!!(E&&E.length>0)&&E[0].end>c;if(z===i.endRuleId){const G=t.getRule(h);w.DebugFlags.InDebugMode&&console.log(" popping "+G.debugName+" - "+G.debugEndRegExp),s.produce(t,E[0].start),t=t.withContentNameScopesList(t.nameScopesList),j(h,l,y,t,s,G.endCaptures,E),s.produce(t,E[0].end);const H=t;if(t=t.parent,k=H.getAnchorPos(),!U&&H.getEnterPos()===c)return w.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),t=H,s.produce(t,f),void(d=!0)}else{const G=h.getRule(z);s.produce(t,E[0].start);const H=t,V=G.getName(l.content,E),q=t.contentNameScopesList.pushAttributed(V,h);if(t=t.push(z,c,k,E[0].end===f,null,q,q),G instanceof i.BeginEndRule){const F=G;w.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName+" - "+F.debugBeginRegExp),j(h,l,y,t,s,F.beginCaptures,E),s.produce(t,E[0].end),k=E[0].end;const M=F.getContentName(l.content,E),D=q.pushAttributed(M,h);if(t=t.withContentNameScopesList(D),F.endHasBackReferences&&(t=t.withEndRule(F.getEndWithResolvedBackReferences(l.content,E))),!U&&H.hasSameRuleAs(t))return w.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),s.produce(t,f),void(d=!0)}else if(G instanceof i.BeginWhileRule){const F=G;w.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName),j(h,l,y,t,s,F.beginCaptures,E),s.produce(t,E[0].end),k=E[0].end;const M=F.getContentName(l.content,E),D=q.pushAttributed(M,h);if(t=t.withContentNameScopesList(D),F.whileHasBackReferences&&(t=t.withEndRule(F.getWhileWithResolvedBackReferences(l.content,E))),!U&&H.hasSameRuleAs(t))return w.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),s.produce(t,f),void(d=!0)}else{const F=G;if(w.DebugFlags.InDebugMode&&console.log(" matched "+F.debugName+" - "+F.debugMatchRegExp),j(h,l,y,t,s,F.captures,E),s.produce(t,E[0].end),t=t.pop(),!U)return w.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),t=t.safePop(),s.produce(t,f),void(d=!0)}}E[0].end>c&&(c=E[0].end,y=!1)}}function x(h,l,y,c,t){return w.UseOnigurumaFindOptions?{ruleScanner:h.compile(l,y),findOptions:A(c,t)}:{ruleScanner:h.compileAG(l,y,c,t),findOptions:0}}function g(h,l,y,c,t){return w.UseOnigurumaFindOptions?{ruleScanner:h.compileWhile(l,y),findOptions:A(c,t)}:{ruleScanner:h.compileWhileAG(l,y,c,t),findOptions:0}}function A(h,l){let y=0;return h||(y|=1),l||(y|=4),y}function j(h,l,y,c,t,s,o){if(s.length===0)return;const r=l.content,f=Math.min(s.length,o.length),d=[],k=o[0].end;for(let T=0;T<f;T++){const P=s[T];if(P===null)continue;const O=o[T];if(O.length===0)continue;if(O.start>k)break;for(;d.length>0&&d[d.length-1].endPos<=O.start;)t.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?t.produceFromScopes(d[d.length-1].scopes,O.start):t.produce(c,O.start),P.retokenizeCapturedWithRuleId){const z=P.getName(r,o),U=c.contentNameScopesList.pushAttributed(z,h),G=P.getContentName(r,o),H=U.pushAttributed(G,h),V=c.push(P.retokenizeCapturedWithRuleId,O.start,-1,!1,null,U,H),q=h.createOnigString(r.substring(0,O.end));_(h,q,y&&O.start===0,O.start,V,t,!1,0),S.disposeOnigString(q);continue}const E=P.getName(r,o);if(E!==null){const z=(d.length>0?d[d.length-1].scopes:c.contentNameScopesList).pushAttributed(E,h);d.push(new b(z,O.end))}}for(;d.length>0;)t.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}a._tokenizeString=_;class b{constructor(l,y){this.scopes=l,this.endPos=y}}a.LocalStackElement=b},974:(m,a)=>{function L(N,p){throw new Error("Near offset "+N.pos+": "+p+" ~~~"+N.source.substr(N.pos,50)+"~~~")}Object.defineProperty(a,"__esModule",{value:!0}),a.parseJSON=void 0,a.parseJSON=function(N,p,_){let x=new w(N),g=new S,A=0,j=null,b=[],h=[];function l(){b.push(A),h.push(j)}function y(){A=b.pop(),j=h.pop()}function c(t){L(x,t)}for(;i(x,g);){if(A===0){if(j!==null&&c("too many constructs in root"),g.type===3){j={},_&&(j.$vscodeTextmateLocation=g.toLocation(p)),l(),A=1;continue}if(g.type===2){j=[],l(),A=4;continue}c("unexpected token in root")}if(A===2){if(g.type===5){y();continue}if(g.type===7){A=3;continue}c("expected , or }")}if(A===1||A===3){if(A===1&&g.type===5){y();continue}if(g.type===1){let t=g.value;if(i(x,g)&&g.type===6||c("expected colon"),i(x,g)||c("expected value"),A=2,g.type===1){j[t]=g.value;continue}if(g.type===8){j[t]=null;continue}if(g.type===9){j[t]=!0;continue}if(g.type===10){j[t]=!1;continue}if(g.type===11){j[t]=parseFloat(g.value);continue}if(g.type===2){let s=[];j[t]=s,l(),A=4,j=s;continue}if(g.type===3){let s={};_&&(s.$vscodeTextmateLocation=g.toLocation(p)),j[t]=s,l(),A=1,j=s;continue}}c("unexpected token in dict")}if(A===5){if(g.type===4){y();continue}if(g.type===7){A=6;continue}c("expected , or ]")}if(A===4||A===6){if(A===4&&g.type===4){y();continue}if(A=5,g.type===1){j.push(g.value);continue}if(g.type===8){j.push(null);continue}if(g.type===9){j.push(!0);continue}if(g.type===10){j.push(!1);continue}if(g.type===11){j.push(parseFloat(g.value));continue}if(g.type===2){let t=[];j.push(t),l(),A=4,j=t;continue}if(g.type===3){let t={};_&&(t.$vscodeTextmateLocation=g.toLocation(p)),j.push(t),l(),A=1,j=t;continue}c("unexpected token in array")}c("unknown state")}return h.length!==0&&c("unclosed constructs"),j};class w{constructor(p){this.source=p,this.pos=0,this.len=p.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(p){return{filename:p,line:this.line,char:this.char}}}function i(N,p){p.value=null,p.type=0,p.offset=-1,p.len=-1,p.line=-1,p.char=-1;let _,x=N.source,g=N.pos,A=N.len,j=N.line,b=N.char;for(;;){if(g>=A)return!1;if(_=x.charCodeAt(g),_!==32&&_!==9&&_!==13){if(_!==10)break;g++,j++,b=0}else g++,b++}if(p.offset=g,p.line=j,p.char=b,_===34){for(p.type=1,g++,b++;;){if(g>=A)return!1;if(_=x.charCodeAt(g),g++,b++,_!==92){if(_===34)break}else g++,b++}p.value=x.substring(p.offset+1,g-1).replace(/\\u([0-9A-Fa-f]{4})/g,(h,l)=>String.fromCodePoint(parseInt(l,16))).replace(/\\(.)/g,(h,l)=>{switch(l){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
5
|
-
`;case"r":return"\r";case"t":return" ";default:L(N,"invalid escape sequence")}throw new Error("unreachable")})}else if(_===91)p.type=2,g++,b++;else if(_===123)p.type=3,g++,b++;else if(_===93)p.type=4,g++,b++;else if(_===125)p.type=5,g++,b++;else if(_===58)p.type=6,g++,b++;else if(_===44)p.type=7,g++,b++;else if(_===110){if(p.type=8,g++,b++,_=x.charCodeAt(g),_!==117||(g++,b++,_=x.charCodeAt(g),_!==108)||(g++,b++,_=x.charCodeAt(g),_!==108))return!1;g++,b++}else if(_===116){if(p.type=9,g++,b++,_=x.charCodeAt(g),_!==114||(g++,b++,_=x.charCodeAt(g),_!==117)||(g++,b++,_=x.charCodeAt(g),_!==101))return!1;g++,b++}else if(_===102){if(p.type=10,g++,b++,_=x.charCodeAt(g),_!==97||(g++,b++,_=x.charCodeAt(g),_!==108)||(g++,b++,_=x.charCodeAt(g),_!==115)||(g++,b++,_=x.charCodeAt(g),_!==101))return!1;g++,b++}else for(p.type=11;;){if(g>=A)return!1;if(_=x.charCodeAt(g),!(_===46||_>=48&&_<=57||_===101||_===69||_===45||_===43))break;g++,b++}return p.len=g-p.offset,p.value===null&&(p.value=x.substr(p.offset,p.len)),N.pos=g,N.line=j,N.char=b,!0}},787:function(m,a,L){var w=this&&this.__createBinding||(Object.create?function(g,A,j,b){b===void 0&&(b=j),Object.defineProperty(g,b,{enumerable:!0,get:function(){return A[j]}})}:function(g,A,j,b){b===void 0&&(b=j),g[b]=A[j]}),S=this&&this.__exportStar||function(g,A){for(var j in g)j==="default"||Object.prototype.hasOwnProperty.call(A,j)||w(A,g,j)};Object.defineProperty(a,"__esModule",{value:!0}),a.parseRawGrammar=a.INITIAL=a.Registry=void 0;const i=L(391),N=L(50),p=L(652),_=L(583),x=L(965);S(L(44),a),a.Registry=class{constructor(g){this._options=g,this._syncRegistry=new p.SyncRegistry(_.Theme.createFromRawTheme(g.theme,g.colorMap),g.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(g,A){this._syncRegistry.setTheme(_.Theme.createFromRawTheme(g,A))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(g,A,j){return this.loadGrammarWithConfiguration(g,A,{embeddedLanguages:j})}loadGrammarWithConfiguration(g,A,j){return this._loadGrammar(g,A,j.embeddedLanguages,j.tokenTypes,new i.BalancedBracketSelectors(j.balancedBracketSelectors||[],j.unbalancedBracketSelectors||[]))}loadGrammar(g){return this._loadGrammar(g,0,null,null,null)}async _loadGrammar(g,A,j,b,h){const l=new x.ScopeDependencyProcessor(this._syncRegistry,g);for(;l.Q.length>0;)await Promise.all(l.Q.map(y=>this._loadSingleGrammar(y.scopeName))),l.processQueue();return this._grammarForScopeName(g,A,j,b,h)}async _loadSingleGrammar(g){return this._ensureGrammarCache.has(g)||this._ensureGrammarCache.set(g,this._doLoadSingleGrammar(g)),this._ensureGrammarCache.get(g)}async _doLoadSingleGrammar(g){const A=await this._options.loadGrammar(g);if(A){const j=typeof this._options.getInjections=="function"?this._options.getInjections(g):void 0;this._syncRegistry.addGrammar(A,j)}}async addGrammar(g,A=[],j=0,b=null){return this._syncRegistry.addGrammar(g,A),await this._grammarForScopeName(g.scopeName,j,b)}_grammarForScopeName(g,A=0,j=null,b=null,h=null){return this._syncRegistry.grammarForScopeName(g,A,j,b,h)}},a.INITIAL=i.StateStack.NULL,a.parseRawGrammar=N.parseRawGrammar},736:(m,a)=>{function L(w){return!!w&&!!w.match(/[\w\.:]+/)}Object.defineProperty(a,"__esModule",{value:!0}),a.createMatchers=void 0,a.createMatchers=function(w,S){const i=[],N=function(g){let A=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,j=A.exec(g);return{next:()=>{if(!j)return null;const b=j[0];return j=A.exec(g),b}}}(w);let p=N.next();for(;p!==null;){let g=0;if(p.length===2&&p.charAt(1)===":"){switch(p.charAt(0)){case"R":g=1;break;case"L":g=-1;break;default:console.log(`Unknown priority ${p} in scope selector`)}p=N.next()}let A=x();if(i.push({matcher:A,priority:g}),p!==",")break;p=N.next()}return i;function _(){if(p==="-"){p=N.next();const g=_();return A=>!!g&&!g(A)}if(p==="("){p=N.next();const g=function(){const A=[];let j=x();for(;j&&(A.push(j),p==="|"||p===",");){do p=N.next();while(p==="|"||p===",");j=x()}return b=>A.some(h=>h(b))}();return p===")"&&(p=N.next()),g}if(L(p)){const g=[];do g.push(p),p=N.next();while(L(p));return A=>S(g,A)}return null}function x(){const g=[];let A=_();for(;A;)g.push(A),A=_();return j=>g.every(b=>b(j))}}},44:(m,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.disposeOnigString=void 0,a.disposeOnigString=function(L){typeof L.dispose=="function"&&L.dispose()}},50:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.parseRawGrammar=void 0;const w=L(69),S=L(350),i=L(974);a.parseRawGrammar=function(N,p=null){return p!==null&&/\.json$/.test(p)?(_=N,x=p,S.DebugFlags.InDebugMode?i.parseJSON(_,x,!0):JSON.parse(_)):function(g,A){return S.DebugFlags.InDebugMode?w.parseWithLocation(g,A,"$vscodeTextmateLocation"):w.parsePLIST(g)}(N,p);var _,x}},69:(m,a)=>{function L(w,S,i){const N=w.length;let p=0,_=1,x=0;function g(R){if(i===null)p+=R;else for(;R>0;)w.charCodeAt(p)===10?(p++,_++,x=0):(p++,x++),R--}function A(R){i===null?p=R:g(R-p)}function j(){for(;p<N;){let R=w.charCodeAt(p);if(R!==32&&R!==9&&R!==13&&R!==10)break;g(1)}}function b(R){return w.substr(p,R.length)===R&&(g(R.length),!0)}function h(R){let Q=w.indexOf(R,p);A(Q!==-1?Q+R.length:N)}function l(R){let Q=w.indexOf(R,p);if(Q!==-1){let $=w.substring(p,Q);return A(Q+R.length),$}{let $=w.substr(p);return A(N),$}}N>0&&w.charCodeAt(0)===65279&&(p=1);let y=0,c=null,t=[],s=[],o=null;function r(R,Q){t.push(y),s.push(c),y=R,c=Q}function f(){if(t.length===0)return d("illegal state stack");y=t.pop(),c=s.pop()}function d(R){throw new Error("Near offset "+p+": "+R+" ~~~"+w.substr(p,50)+"~~~")}const k=function(){if(o===null)return d("missing <key>");let R={};i!==null&&(R[i]={filename:S,line:_,char:x}),c[o]=R,o=null,r(1,R)},T=function(){if(o===null)return d("missing <key>");let R=[];c[o]=R,o=null,r(2,R)},P=function(){let R={};i!==null&&(R[i]={filename:S,line:_,char:x}),c.push(R),r(1,R)},O=function(){let R=[];c.push(R),r(2,R)};function E(){if(y!==1)return d("unexpected </dict>");f()}function z(){return y===1||y!==2?d("unexpected </array>"):void f()}function U(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function G(R){if(isNaN(R))return d("cannot parse float");if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function H(R){if(isNaN(R))return d("cannot parse integer");if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function V(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function q(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function F(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function M(){let R=l(">"),Q=!1;return R.charCodeAt(R.length-1)===47&&(Q=!0,R=R.substring(0,R.length-1)),{name:R.trim(),isClosed:Q}}function D(R){if(R.isClosed)return"";let Q=l("</");return h(">"),Q.replace(/&#([0-9]+);/g,function($,ee){return String.fromCodePoint(parseInt(ee,10))}).replace(/&#x([0-9a-f]+);/g,function($,ee){return String.fromCodePoint(parseInt(ee,16))}).replace(/&|<|>|"|'/g,function($){switch($){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return $})}for(;p<N&&(j(),!(p>=N));){const R=w.charCodeAt(p);if(g(1),R!==60)return d("expected <");if(p>=N)return d("unexpected end of input");const Q=w.charCodeAt(p);if(Q===63){g(1),h("?>");continue}if(Q===33){if(g(1),b("--")){h("-->");continue}h(">");continue}if(Q===47){if(g(1),j(),b("plist")){h(">");continue}if(b("dict")){h(">"),E();continue}if(b("array")){h(">"),z();continue}return d("unexpected closed tag")}let $=M();switch($.name){case"dict":y===1?k():y===2?P():(c={},i!==null&&(c[i]={filename:S,line:_,char:x}),r(1,c)),$.isClosed&&E();continue;case"array":y===1?T():y===2?O():(c=[],r(2,c)),$.isClosed&&z();continue;case"key":J=D($),y!==1?d("unexpected <key>"):o!==null?d("too many <key>"):o=J;continue;case"string":U(D($));continue;case"real":G(parseFloat(D($)));continue;case"integer":H(parseInt(D($),10));continue;case"date":V(new Date(D($)));continue;case"data":q(D($));continue;case"true":D($),F(!0);continue;case"false":D($),F(!1);continue}if(!/^plist/.test($.name))return d("unexpected opened tag "+$.name)}var J;return c}Object.defineProperty(a,"__esModule",{value:!0}),a.parsePLIST=a.parseWithLocation=void 0,a.parseWithLocation=function(w,S,i){return L(w,S,i)},a.parsePLIST=function(w){return L(w,null,null)}},652:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SyncRegistry=void 0;const w=L(391);a.SyncRegistry=class{constructor(S,i){this._onigLibPromise=i,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=S}dispose(){for(const S of this._grammars.values())S.dispose()}setTheme(S){this._theme=S}getColorMap(){return this._theme.getColorMap()}addGrammar(S,i){this._rawGrammars.set(S.scopeName,S),i&&this._injectionGrammars.set(S.scopeName,i)}lookup(S){return this._rawGrammars.get(S)}injections(S){return this._injectionGrammars.get(S)}getDefaults(){return this._theme.getDefaults()}themeMatch(S){return this._theme.match(S)}async grammarForScopeName(S,i,N,p,_){if(!this._grammars.has(S)){let x=this._rawGrammars.get(S);if(!x)return null;this._grammars.set(S,w.createGrammar(S,x,i,N,p,_,this,await this._onigLibPromise))}return this._grammars.get(S)}}},792:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CompiledRule=a.RegExpSourceList=a.RegExpSource=a.RuleFactory=a.BeginWhileRule=a.BeginEndRule=a.IncludeOnlyRule=a.MatchRule=a.CaptureRule=a.Rule=a.ruleIdToNumber=a.ruleIdFromNumber=a.whileRuleId=a.endRuleId=void 0;const w=L(878),S=L(965),i=/\\(\d+)/,N=/\\(\d+)/g;a.endRuleId=-1,a.whileRuleId=-2,a.ruleIdFromNumber=function(c){return c},a.ruleIdToNumber=function(c){return c};class p{constructor(t,s,o,r){this.$location=t,this.id=s,this._name=o||null,this._nameIsCapturing=w.RegexSource.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=w.RegexSource.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${w.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,s){return this._nameIsCapturing&&this._name!==null&&t!==null&&s!==null?w.RegexSource.replaceCaptures(this._name,t,s):this._name}getContentName(t,s){return this._contentNameIsCapturing&&this._contentName!==null?w.RegexSource.replaceCaptures(this._contentName,t,s):this._contentName}}a.Rule=p;class _ extends p{constructor(t,s,o,r,f){super(t,s,o,r),this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(t,s){throw new Error("Not supported!")}compile(t,s){throw new Error("Not supported!")}compileAG(t,s,o,r){throw new Error("Not supported!")}}a.CaptureRule=_;class x extends p{constructor(t,s,o,r,f){super(t,s,o,null),this._match=new h(r,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,s){s.push(this._match)}compile(t,s){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t).compileAG(t,o,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new l,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}a.MatchRule=x;class g extends p{constructor(t,s,o,r,f){super(t,s,o,r),this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,s){for(const o of this.patterns)t.getRule(o).collectPatterns(t,s)}compile(t,s){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t).compileAG(t,o,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new l,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}a.IncludeOnlyRule=g;class A extends p{constructor(t,s,o,r,f,d,k,T,P,O){super(t,s,o,r),this._begin=new h(f,this.id),this.beginCaptures=d,this._end=new h(k||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=T,this.applyEndPatternLast=P||!1,this.patterns=O.patterns,this.hasMissingPatterns=O.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(t,s){return this._end.resolveBackReferences(t,s)}collectPatterns(t,s){s.push(this._begin)}compile(t,s){return this._getCachedCompiledPatterns(t,s).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t,s).compileAG(t,o,r)}_getCachedCompiledPatterns(t,s){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new l;for(const o of this.patterns)t.getRule(o).collectPatterns(t,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,s):this._cachedCompiledPatterns.setSource(0,s)),this._cachedCompiledPatterns}}a.BeginEndRule=A;class j extends p{constructor(t,s,o,r,f,d,k,T,P){super(t,s,o,r),this._begin=new h(f,this.id),this.beginCaptures=d,this.whileCaptures=T,this._while=new h(k,a.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=P.patterns,this.hasMissingPatterns=P.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(t,s){return this._while.resolveBackReferences(t,s)}collectPatterns(t,s){s.push(this._begin)}compile(t,s){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t).compileAG(t,o,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new l;for(const s of this.patterns)t.getRule(s).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,s){return this._getCachedCompiledWhilePatterns(t,s).compile(t)}compileWhileAG(t,s,o,r){return this._getCachedCompiledWhilePatterns(t,s).compileAG(t,o,r)}_getCachedCompiledWhilePatterns(t,s){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new l,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,s||""),this._cachedCompiledWhilePatterns}}a.BeginWhileRule=j;class b{static createCaptureRule(t,s,o,r,f){return t.registerRule(d=>new _(s,d,o,r,f))}static getCompiledRuleId(t,s,o){return t.id||s.registerRule(r=>{if(t.id=r,t.match)return new x(t.$vscodeTextmateLocation,t.id,t.name,t.match,b._compileCaptures(t.captures,s,o));if(t.begin===void 0){t.repository&&(o=w.mergeObjects({},o,t.repository));let f=t.patterns;return f===void 0&&t.include&&(f=[{include:t.include}]),new g(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,b._compilePatterns(f,s,o))}return t.while?new j(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,b._compileCaptures(t.beginCaptures||t.captures,s,o),t.while,b._compileCaptures(t.whileCaptures||t.captures,s,o),b._compilePatterns(t.patterns,s,o)):new A(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,b._compileCaptures(t.beginCaptures||t.captures,s,o),t.end,b._compileCaptures(t.endCaptures||t.captures,s,o),t.applyEndPatternLast,b._compilePatterns(t.patterns,s,o))}),t.id}static _compileCaptures(t,s,o){let r=[];if(t){let f=0;for(const d in t){if(d==="$vscodeTextmateLocation")continue;const k=parseInt(d,10);k>f&&(f=k)}for(let d=0;d<=f;d++)r[d]=null;for(const d in t){if(d==="$vscodeTextmateLocation")continue;const k=parseInt(d,10);let T=0;t[d].patterns&&(T=b.getCompiledRuleId(t[d],s,o)),r[k]=b.createCaptureRule(s,t[d].$vscodeTextmateLocation,t[d].name,t[d].contentName,T)}}return r}static _compilePatterns(t,s,o){let r=[];if(t)for(let f=0,d=t.length;f<d;f++){const k=t[f];let T=-1;if(k.include){const P=S.parseInclude(k.include);switch(P.kind){case 0:case 1:T=b.getCompiledRuleId(o[k.include],s,o);break;case 2:let O=o[P.ruleName];O&&(T=b.getCompiledRuleId(O,s,o));break;case 3:case 4:const E=P.scopeName,z=P.kind===4?P.ruleName:null,U=s.getExternalGrammar(E,o);if(U)if(z){let G=U.repository[z];G&&(T=b.getCompiledRuleId(G,s,U.repository))}else T=b.getCompiledRuleId(U.repository.$self,s,U.repository)}}else T=b.getCompiledRuleId(k,s,o);if(T!==-1){const P=s.getRule(T);let O=!1;if((P instanceof g||P instanceof A||P instanceof j)&&P.hasMissingPatterns&&P.patterns.length===0&&(O=!0),O)continue;r.push(T)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}}a.RuleFactory=b;class h{constructor(t,s){if(t){const o=t.length;let r=0,f=[],d=!1;for(let k=0;k<o;k++)if(t.charAt(k)==="\\"&&k+1<o){const T=t.charAt(k+1);T==="z"?(f.push(t.substring(r,k)),f.push("$(?!\\n)(?<!\\n)"),r=k+2):T!=="A"&&T!=="G"||(d=!0),k++}this.hasAnchor=d,r===0?this.source=t:(f.push(t.substring(r,o)),this.source=f.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=s,this.hasBackReferences=i.test(this.source)}clone(){return new h(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,s){let o=s.map(r=>t.substring(r.start,r.end));return N.lastIndex=0,this.source.replace(N,(r,f)=>w.escapeRegExpCharacters(o[parseInt(f,10)]||""))}_buildAnchorCache(){let t,s,o,r,f=[],d=[],k=[],T=[];for(t=0,s=this.source.length;t<s;t++)o=this.source.charAt(t),f[t]=o,d[t]=o,k[t]=o,T[t]=o,o==="\\"&&t+1<s&&(r=this.source.charAt(t+1),r==="A"?(f[t+1]="",d[t+1]="",k[t+1]="A",T[t+1]="A"):r==="G"?(f[t+1]="",d[t+1]="G",k[t+1]="",T[t+1]="G"):(f[t+1]=r,d[t+1]=r,k[t+1]=r,T[t+1]=r),t++);return{A0_G0:f.join(""),A0_G1:d.join(""),A1_G0:k.join(""),A1_G1:T.join("")}}resolveAnchors(t,s){return this.hasAnchor&&this._anchorCache?t?s?this._anchorCache.A1_G1:this._anchorCache.A1_G0:s?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}a.RegExpSource=h;class l{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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,s){this._items[t].source!==s&&(this._disposeCaches(),this._items[t].setSource(s))}compile(t){if(!this._cached){let s=this._items.map(o=>o.source);this._cached=new y(t,s,this._items.map(o=>o.ruleId))}return this._cached}compileAG(t,s,o){return this._hasAnchors?s?o?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,s,o)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,s,o)),this._anchorCache.A1_G0):o?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,s,o)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,s,o)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,s,o){let r=this._items.map(f=>f.resolveAnchors(s,o));return new y(t,r,this._items.map(f=>f.ruleId))}}a.RegExpSourceList=l;class y{constructor(t,s,o){this.regExps=s,this.rules=o,this.scanner=t.createOnigScanner(s)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let s=0,o=this.rules.length;s<o;s++)t.push(" - "+this.rules[s]+": "+this.regExps[s]);return t.join(`
|
|
6
|
-
`)}findNextMatchSync(t,s,o){const r=this.scanner.findNextMatchSync(t,s,o);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}a.CompiledRule=y},583:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ThemeTrieElement=a.ThemeTrieElementRule=a.ColorMap=a.fontStyleToString=a.ParsedThemeRule=a.parseTheme=a.StyleAttributes=a.ScopeStack=a.Theme=void 0;const w=L(878);class S{constructor(h,l,y){this._colorMap=h,this._defaults=l,this._root=y,this._cachedMatchRoot=new w.CachedFn(c=>this._root.match(c))}static createFromRawTheme(h,l){return this.createFromParsedTheme(_(h),l)}static createFromParsedTheme(h,l){return function(y,c){y.sort((k,T)=>{let P=w.strcmp(k.scope,T.scope);return P!==0?P:(P=w.strArrCmp(k.parentScopes,T.parentScopes),P!==0?P:k.index-T.index)});let t=0,s="#000000",o="#ffffff";for(;y.length>=1&&y[0].scope==="";){let k=y.shift();k.fontStyle!==-1&&(t=k.fontStyle),k.foreground!==null&&(s=k.foreground),k.background!==null&&(o=k.background)}let r=new g(c),f=new p(t,r.getId(s),r.getId(o)),d=new j(new A(0,null,-1,0,0),[]);for(let k=0,T=y.length;k<T;k++){let P=y[k];d.insert(0,P.scope,P.parentScopes,P.fontStyle,r.getId(P.foreground),r.getId(P.background))}return new S(r,f,d)}(h,l)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(h){if(h===null)return this._defaults;const l=h.scopeName,y=this._cachedMatchRoot.get(l).find(c=>function(t,s){if(s===null)return!0;let o=0,r=s[o];for(;t;){if(N(t.scopeName,r)){if(o++,o===s.length)return!0;r=s[o]}t=t.parent}return!1}(h.parent,c.parentScopes));return y?new p(y.fontStyle,y.foreground,y.background):null}}a.Theme=S;class i{constructor(h,l){this.parent=h,this.scopeName=l}static from(...h){let l=null;for(let y=0;y<h.length;y++)l=new i(l,h[y]);return l}push(h){return new i(this,h)}getSegments(){let h=this;const l=[];for(;h;)l.push(h.scopeName),h=h.parent;return l.reverse(),l}toString(){return this.getSegments().join(" ")}}function N(b,h){return h===b||b.startsWith(h)&&b[h.length]==="."}a.ScopeStack=i;class p{constructor(h,l,y){this.fontStyle=h,this.foregroundId=l,this.backgroundId=y}}function _(b){if(!b)return[];if(!b.settings||!Array.isArray(b.settings))return[];let h=b.settings,l=[],y=0;for(let c=0,t=h.length;c<t;c++){let s,o=h[c];if(!o.settings)continue;if(typeof o.scope=="string"){let k=o.scope;k=k.replace(/^[,]+/,""),k=k.replace(/[,]+$/,""),s=k.split(",")}else s=Array.isArray(o.scope)?o.scope:[""];let r=-1;if(typeof o.settings.fontStyle=="string"){r=0;let k=o.settings.fontStyle.split(" ");for(let T=0,P=k.length;T<P;T++)switch(k[T]){case"italic":r|=1;break;case"bold":r|=2;break;case"underline":r|=4;break;case"strikethrough":r|=8}}let f=null;typeof o.settings.foreground=="string"&&w.isValidHexColor(o.settings.foreground)&&(f=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&w.isValidHexColor(o.settings.background)&&(d=o.settings.background);for(let k=0,T=s.length;k<T;k++){let P=s[k].trim().split(" "),O=P[P.length-1],E=null;P.length>1&&(E=P.slice(0,P.length-1),E.reverse()),l[y++]=new x(O,E,c,r,f,d)}}return l}a.StyleAttributes=p,a.parseTheme=_;class x{constructor(h,l,y,c,t,s){this.scope=h,this.parentScopes=l,this.index=y,this.fontStyle=c,this.foreground=t,this.background=s}}a.ParsedThemeRule=x,a.fontStyleToString=function(b){if(b===-1)return"not set";let h="";return 1&b&&(h+="italic "),2&b&&(h+="bold "),4&b&&(h+="underline "),8&b&&(h+="strikethrough "),h===""&&(h="none"),h.trim()};class g{constructor(h){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(h)){this._isFrozen=!0;for(let l=0,y=h.length;l<y;l++)this._color2id[h[l]]=l,this._id2color[l]=h[l]}else this._isFrozen=!1}getId(h){if(h===null)return 0;h=h.toUpperCase();let l=this._color2id[h];if(l)return l;if(this._isFrozen)throw new Error(`Missing color in color map - ${h}`);return l=++this._lastColorId,this._color2id[h]=l,this._id2color[l]=h,l}getColorMap(){return this._id2color.slice(0)}}a.ColorMap=g;class A{constructor(h,l,y,c,t){this.scopeDepth=h,this.parentScopes=l,this.fontStyle=y,this.foreground=c,this.background=t}clone(){return new A(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(h){let l=[];for(let y=0,c=h.length;y<c;y++)l[y]=h[y].clone();return l}acceptOverwrite(h,l,y,c){this.scopeDepth>h?console.log("how did this happen?"):this.scopeDepth=h,l!==-1&&(this.fontStyle=l),y!==0&&(this.foreground=y),c!==0&&(this.background=c)}}a.ThemeTrieElementRule=A;class j{constructor(h,l=[],y={}){this._mainRule=h,this._children=y,this._rulesWithParentScopes=l}static _sortBySpecificity(h){return h.length===1||h.sort(this._cmpBySpecificity),h}static _cmpBySpecificity(h,l){if(h.scopeDepth===l.scopeDepth){const y=h.parentScopes,c=l.parentScopes;let t=y===null?0:y.length,s=c===null?0:c.length;if(t===s)for(let o=0;o<t;o++){const r=y[o].length,f=c[o].length;if(r!==f)return f-r}return s-t}return l.scopeDepth-h.scopeDepth}match(h){if(h==="")return j._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let l,y,c=h.indexOf(".");return c===-1?(l=h,y=""):(l=h.substring(0,c),y=h.substring(c+1)),this._children.hasOwnProperty(l)?this._children[l].match(y):j._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(h,l,y,c,t,s){if(l==="")return void this._doInsertHere(h,y,c,t,s);let o,r,f,d=l.indexOf(".");d===-1?(o=l,r=""):(o=l.substring(0,d),r=l.substring(d+1)),this._children.hasOwnProperty(o)?f=this._children[o]:(f=new j(this._mainRule.clone(),A.cloneArr(this._rulesWithParentScopes)),this._children[o]=f),f.insert(h+1,r,y,c,t,s)}_doInsertHere(h,l,y,c,t){if(l!==null){for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let r=this._rulesWithParentScopes[s];if(w.strArrCmp(r.parentScopes,l)===0)return void r.acceptOverwrite(h,y,c,t)}y===-1&&(y=this._mainRule.fontStyle),c===0&&(c=this._mainRule.foreground),t===0&&(t=this._mainRule.background),this._rulesWithParentScopes.push(new A(h,l,y,c,t))}else this._mainRule.acceptOverwrite(h,y,c,t)}}a.ThemeTrieElement=j},878:(m,a)=>{function L(i){return Array.isArray(i)?function(N){let p=[];for(let _=0,x=N.length;_<x;_++)p[_]=L(N[_]);return p}(i):typeof i=="object"?function(N){let p={};for(let _ in N)p[_]=L(N[_]);return p}(i):i}Object.defineProperty(a,"__esModule",{value:!0}),a.performanceNow=a.CachedFn=a.escapeRegExpCharacters=a.isValidHexColor=a.strArrCmp=a.strcmp=a.RegexSource=a.basename=a.mergeObjects=a.clone=void 0,a.clone=function(i){return L(i)},a.mergeObjects=function(i,...N){return N.forEach(p=>{for(let _ in p)i[_]=p[_]}),i},a.basename=function i(N){const p=~N.lastIndexOf("/")||~N.lastIndexOf("\\");return p===0?N:~p==N.length-1?i(N.substring(0,N.length-1)):N.substr(1+~p)};let w=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function S(i,N){return i<N?-1:i>N?1:0}a.RegexSource=class{static hasCaptures(i){return i!==null&&(w.lastIndex=0,w.test(i))}static replaceCaptures(i,N,p){return i.replace(w,(_,x,g,A)=>{let j=p[parseInt(x||g,10)];if(!j)return _;{let b=N.substring(j.start,j.end);for(;b[0]===".";)b=b.substring(1);switch(A){case"downcase":return b.toLowerCase();case"upcase":return b.toUpperCase();default:return b}}})}},a.strcmp=S,a.strArrCmp=function(i,N){if(i===null&&N===null)return 0;if(!i)return-1;if(!N)return 1;let p=i.length,_=N.length;if(p===_){for(let x=0;x<p;x++){let g=S(i[x],N[x]);if(g!==0)return g}return 0}return p-_},a.isValidHexColor=function(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))},a.escapeRegExpCharacters=function(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},a.CachedFn=class{constructor(i){this.fn=i,this.cache=new Map}get(i){if(this.cache.has(i))return this.cache.get(i);const N=this.fn(i);return this.cache.set(i,N),N}},a.performanceNow=typeof performance>"u"?function(){return Date.now()}:function(){return performance.now()}}},n={};return function m(a){var L=n[a];if(L!==void 0)return L.exports;var w=n[a]={exports:{}};return v[a].call(w.exports,w,w.exports,m),w.exports}(787)})()})})(It);const Te=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","tsx","css","less","sass","scss","stylus"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",samplePath:"hcl.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",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",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",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",embeddedLangs:["css","less","scss","typescript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","yaml","toml","graphql"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var Ne=(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))(Ne||{});class K{static toBinaryStr(u){let v=u.toString(2);for(;v.length<32;)v="0"+v;return v}static printMetadata(u){let v=K.getLanguageId(u),n=K.getTokenType(u),m=K.getFontStyle(u),a=K.getForeground(u),L=K.getBackground(u);console.log({languageId:v,tokenType:n,fontStyle:m,foreground:a,background:L})}static getLanguageId(u){return(u&255)>>>0}static getTokenType(u){return(u&768)>>>8}static getFontStyle(u){return(u&14336)>>>11}static getForeground(u){return(u&8372224)>>>15}static getBackground(u){return(u&4286578688)>>>24}static containsBalancedBrackets(u){return(u&1024)!==0}static set(u,v,n,m,a,L){let w=K.getLanguageId(u),S=K.getTokenType(u),i=K.getFontStyle(u),N=K.getForeground(u),p=K.getBackground(u),_=K.containsBalancedBrackets(u)?1:0;return v!==0&&(w=v),n!==0&&(S=n===8?0:n),m!==-1&&(i=m),a!==0&&(N=a),L!==0&&(p=L),(w<<0|S<<8|i<<11|_<<10|N<<15|p<<24)>>>0}}function Ot(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Bt(e){return e.startsWith("./")?e.slice(2):e}function ze(e){const u=e.split(/[\/\\]/g);return u.slice(0,u.length-1)}function He(...e){return e.map(Ot).map(Bt).join("/")}function Et(e,u){const v=new Map;for(const n of e){const m=u(n);v.has(m)?v.get(m).push(n):v.set(m,[n])}return v}function Gt(e,u=!1){const v=e.length;let n=0,m="",a=0,L=16,w=0,S=0,i=0,N=0,p=0;function _(l,y){let c=0,t=0;for(;c<l||!y;){let s=e.charCodeAt(n);if(s>=48&&s<=57)t=t*16+s-48;else if(s>=65&&s<=70)t=t*16+s-65+10;else if(s>=97&&s<=102)t=t*16+s-97+10;else break;n++,c++}return c<l&&(t=-1),t}function x(l){n=l,m="",a=0,L=16,p=0}function g(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&fe(e.charCodeAt(n)))for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;else return p=3,e.substring(l,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&fe(e.charCodeAt(n))){for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;y=n}else p=3;return e.substring(l,y)}function A(){let l="",y=n;for(;;){if(n>=v){l+=e.substring(y,n),p=2;break}const c=e.charCodeAt(n);if(c===34){l+=e.substring(y,n),n++;break}if(c===92){if(l+=e.substring(y,n),n++,n>=v){p=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
|
|
7
|
-
`;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const s=_(4,!0);s>=0?l+=String.fromCharCode(s):
|
|
8
|
-
`),w++,i=n,L=14;switch(l){case 123:return n++,L=1;case 125:return n++,L=2;case 91:return n++,L=3;case 93:return n++,L=4;case 58:return n++,L=6;case 44:return n++,L=5;case 34:return n++,m=A(),L=10;case 47:const y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<v&&!Le(e.charCodeAt(n));)n++;return m=e.substring(y,n),L=12}if(e.charCodeAt(n+1)===42){n+=2;const c=v-1;let t=!1;for(;n<c;){const s=e.charCodeAt(n);if(s===42&&e.charCodeAt(n+1)===47){n+=2,t=!0;break}n++,Le(s)&&(s===13&&e.charCodeAt(n)===10&&n++,w++,i=n)}return t||(n++,p=1),m=e.substring(y,n),L=13}return m+=String.fromCharCode(l),n++,L=16;case 45:if(m+=String.fromCharCode(l),n++,n===v||!fe(e.charCodeAt(n)))return L=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return m+=g(),L=11;default:for(;n<v&&b(l);)n++,l=e.charCodeAt(n);if(a!==n){switch(m=e.substring(a,n),m){case"true":return L=8;case"false":return L=9;case"null":return L=7}return L=16}return m+=String.fromCharCode(l),n++,L=16}}function b(l){if(xe(l)||Le(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function h(){let l;do l=j();while(l>=12&&l<=15);return l}return{setPosition:x,getPosition:()=>n,scan:u?h:j,getToken:()=>L,getTokenValue:()=>m,getTokenOffset:()=>a,getTokenLength:()=>n-a,getTokenStartLine:()=>S,getTokenStartCharacter:()=>a-N,getTokenError:()=>p}}function xe(e){return e===32||e===9}function Le(e){return e===10||e===13}function fe(e){return e>=48&&e<=57}var Ge;(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"})(Ge||(Ge={}));var Ae;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ae||(Ae={}));function Mt(e,u=[],v=Ae.DEFAULT){let n=null,m=[];const a=[];function L(S){Array.isArray(m)?m.push(S):n!==null&&(m[n]=S)}return Dt(e,{onObjectBegin:()=>{const S={};L(S),a.push(m),m=S,n=null},onObjectProperty:S=>{n=S},onObjectEnd:()=>{m=a.pop()},onArrayBegin:()=>{const S=[];L(S),a.push(m),m=S,n=null},onArrayEnd:()=>{m=a.pop()},onLiteralValue:L,onError:(S,i,N)=>{u.push({error:S,offset:i,length:N})}},v),m[0]}function Dt(e,u,v=Ae.DEFAULT){const n=Gt(e,!1),m=[];function a(k){return k?()=>k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function L(k){return k?()=>k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>m.slice()):()=>!0}function w(k){return k?T=>k(T,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function S(k){return k?T=>k(T,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>m.slice()):()=>!0}const i=L(u.onObjectBegin),N=S(u.onObjectProperty),p=a(u.onObjectEnd),_=L(u.onArrayBegin),x=a(u.onArrayEnd),g=S(u.onLiteralValue),A=w(u.onSeparator),j=a(u.onComment),b=w(u.onError),h=v&&v.disallowComments,l=v&&v.allowTrailingComma;function y(){for(;;){const k=n.scan();switch(n.getTokenError()){case 4:c(14);break;case 5:c(15);break;case 3:c(13);break;case 1:h||c(11);break;case 2:c(12);break;case 6:c(16);break}switch(k){case 12:case 13:h?c(10):j();break;case 16:c(1);break;case 15:case 14:break;default:return k}}}function c(k,T=[],P=[]){if(b(k),T.length+P.length>0){let O=n.getToken();for(;O!==17;){if(T.indexOf(O)!==-1){y();break}else if(P.indexOf(O)!==-1)break;O=y()}}}function t(k){const T=n.getTokenValue();return k?g(T):(N(T),m.push(T)),y(),!0}function s(){switch(n.getToken()){case 11:const k=n.getTokenValue();let T=Number(k);isNaN(T)&&(c(2),T=0),g(T);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return y(),!0}function o(){return n.getToken()!==10?(c(3,[],[2,5]),!1):(t(!1),n.getToken()===6?(A(":"),y(),d()||c(4,[],[2,5])):c(5,[],[2,5]),m.pop(),!0)}function r(){i(),y();let k=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(k||c(4,[],[]),A(","),y(),n.getToken()===2&&l)break}else k&&c(6,[],[]);o()||c(4,[],[2,5]),k=!0}return p(),n.getToken()!==2?c(7,[2],[]):y(),!0}function f(){_(),y();let k=!0,T=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(T||c(4,[],[]),A(","),y(),n.getToken()===4&&l)break}else T&&c(6,[],[]);k?(m.push(0),k=!1):m[m.length-1]++,d()||c(4,[],[4,5]),T=!0}return x(),k||m.pop(),n.getToken()!==4?c(8,[4],[]):y(),!0}function d(){switch(n.getToken()){case 3:return f();case 1:return r();case 10:return t(!0);default:return s()}}return y(),n.getToken()===17?v.allowEmptyContent?!0:(c(4,[],[]),!1):d()?(n.getToken()!==17&&c(9,[],[]),!0):(c(4,[],[]),!1)}var Me;(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"})(Me||(Me={}));var De;(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"})(De||(De={}));const Ft=Mt;var Fe;(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"})(Fe||(Fe={}));"process"in globalThis&&typeof process<"u"&&typeof process.release<"u"&&process.release.name;let Ve="";const $t="dist/";function Ut(e){Ve=e.endsWith("/")?e:e+"/"}let Re=null;async function Wt(e){if(!Re){let u;u=ve.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(Qe(He(...ze(e),"onig.wasm")))}),Re=u.then(()=>({createOnigScanner(v){return ve.createOnigScanner(v)},createOnigString(v){return ve.createOnigString(v)}}))}return Re}function Qe(e){return`${Ve}${e}`}async function qt(e){const u=Qe(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(u).then(v=>v.text())}async function Je(e){const u=[],v=Ft(await qt(e),u,{allowTrailingComma:!0});if(u.length)throw u[0];return v}async function Xe(e){let u=await Je(e);const v=Ye(u);if(v.include){const n=await Xe(He(...ze(e),v.include));n.settings&&(v.settings=n.settings.concat(v.settings)),n.bg&&!v.bg&&(v.bg=n.bg),n.colors&&(v.colors={...n.colors,...v.colors}),delete v.include}return v}async function Ct(e){return await Je(e)}function zt(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 Ye(e){const u=e.type||"dark",v={name:e.name,type:u,...e,...Ht(e)};return e.include&&(v.include=e.include),e.tokenColors&&(v.settings=e.tokenColors,delete v.tokenColors),zt(v),v}const $e={light:"#333333",dark:"#bbbbbb"},Ue={light:"#fffffe",dark:"#1e1e1e"};function Ht(e){let u,v,n=e.settings?e.settings:e.tokenColors;const m=n?n.find(a=>!a.name&&!a.scope):void 0;return m?.settings?.foreground&&(u=m.settings.foreground),m?.settings?.background&&(v=m.settings.background),!u&&e?.colors?.["editor.foreground"]&&(u=e.colors["editor.foreground"]),!v&&e?.colors?.["editor.background"]&&(v=e.colors["editor.background"]),u||(u=e.type==="light"?$e.light:$e.dark),v||(v=e.type==="light"?Ue.light:Ue.dark),{fg:u,bg:v}}class Vt{constructor(u,v){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=u,this._onigLibName=v}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(u){return this.languageMap[u]}async loadGrammar(u){const v=this.scopeToLangMap[u];if(!v)return null;if(v.grammar)return v.grammar;const n=await Ct(Te.includes(v)?`${this.languagesPath}${v.path}`:v.path);return v.grammar=n,n}addLanguage(u){this.languageMap[u.id]=u,u.aliases&&u.aliases.forEach(v=>{this.languageMap[v]=u}),this.scopeToLangMap[u.scopeName]=u}}function Qt(e,u,v,n,m){let a=v.split(/\r\n|\r|\n/),L=je.INITIAL,w=[],S=[];for(let i=0,N=a.length;i<N;i++){let p=a[i];if(p===""){w=[],S.push([]);continue}let _,x,g;m.includeExplanation&&(_=n.tokenizeLine(p,L),x=_.tokens,g=0);let A=n.tokenizeLine2(p,L),j=A.tokens.length/2;for(let b=0;b<j;b++){let h=A.tokens[2*b],l=b+1<j?A.tokens[2*b+2]:p.length;if(h===l)continue;let y=A.tokens[2*b+1],c=K.getForeground(y),t=u[c],s=K.getFontStyle(y),o=[];if(m.includeExplanation){let r=0;for(;h+r<l;){let f=x[g],d=p.substring(f.startIndex,f.endIndex);r+=d.length,o.push({content:d,scopes:Jt(e,f.scopes)}),g++}}w.push({content:p.substring(h,l),color:t,fontStyle:s,explanation:o})}S.push(w),w=[],L=A.ruleStack}return S}function Jt(e,u){let v=[];for(let n=0,m=u.length;n<m;n++){let a=u.slice(0,n),L=u[n];v[n]={scopeName:L,themeMatches:Yt(e,L,a)}}return v}function We(e,u){let v=e+".";return e===u||u.substring(0,v.length)===v}function Xt(e,u,v,n){if(!We(e,v))return!1;let m=u.length-1,a=n.length-1;for(;m>=0&&a>=0;)We(u[m],n[a])&&m--,a--;return m===-1}function Yt(e,u,v){let n=[],m=0;for(let a=0,L=e.settings.length;a<L;a++){let w=e.settings[a],S;if(typeof w.scope=="string")S=w.scope.split(/,/).map(i=>i.trim());else if(Array.isArray(w.scope))S=w.scope;else continue;for(let i=0,N=S.length;i<N;i++){let _=S[i].split(/ /),x=_[_.length-1],g=_.slice(0,_.length-1);Xt(x,g,u,v)&&(n[m++]=w,i=N)}}return n}const Zt={pre({className:e,style:u,children:v}){return`<pre class="${e}" style="${u}">${v}</pre>`},code({children:e}){return`<code>${e}</code>`},line({className:e,children:u}){return`<span class="${e}">${u}</span>`},token({style:e,children:u}){return`<span style="${e}">${u}</span>`}};function Kt(e,u={}){const v=u.bg||"#fff",n=Et(u.lineOptions??[],L=>L.line),m=u.elements||{};function a(L="",w={},S){const i=m[L]||Zt[L];return i?(S=S.filter(Boolean),i({...w,children:L==="code"?S.join(`
|
|
9
|
-
`):S.join("")})):""}return a("pre",{className:"shiki "+(u.themeName||""),style:`background-color: ${v}`},[u.langId?`<div class="language-id">${u.langId}</div>`:"",a("code",{},e.map((L,w)=>{const S=w+1,i=n.get(S)??[],N=nn(i).join(" ");return a("line",{className:N,lines:e,line:L,index:w},L.map((
|
|
3
|
+
`)},_domwindow(){return n("domwindow")},_bigint(m){return n("bigint:"+m.toString())},_process(){return n("process")},_timer(){return n("timer")},_pipe(){return n("pipe")},_tcp(){return n("tcp")},_udp(){return n("udp")},_tty(){return n("tty")},_statwatcher(){return n("statwatcher")},_securecontext(){return n("securecontext")},_connection(){return n("connection")},_zlib(){return n("zlib")},_context(){return n("context")},_nodescript(){return n("nodescript")},_httpparser(){return n("httpparser")},_dataview(){return n("dataview")},_signal(){return n("signal")},_fsevent(){return n("fsevent")},_tlswrap(){return n("tlswrap")}}}function Ee(e){return typeof e!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}class _e{constructor(u,v){u=this.words=u||[],this.sigBytes=v!==void 0?v:u.length*4}toString(u){return(u||yt).stringify(this)}concat(u){if(this.clamp(),this.sigBytes%4)for(let v=0;v<u.sigBytes;v++){const n=u.words[v>>>2]>>>24-v%4*8&255;this.words[this.sigBytes+v>>>2]|=n<<24-(this.sigBytes+v)%4*8}else for(let v=0;v<u.sigBytes;v+=4)this.words[this.sigBytes+v>>>2]=u.words[v>>>2];return this.sigBytes+=u.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new _e([...this.words])}}const yt={stringify(e){const u=[];for(let v=0;v<e.sigBytes;v++){const n=e.words[v>>>2]>>>24-v%4*8&255;u.push((n>>>4).toString(16),(n&15).toString(16))}return u.join("")}},kt={stringify(e){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",v=[];for(let n=0;n<e.sigBytes;n+=3){const m=e.words[n>>>2]>>>24-n%4*8&255,a=e.words[n+1>>>2]>>>24-(n+1)%4*8&255,L=e.words[n+2>>>2]>>>24-(n+2)%4*8&255,w=m<<16|a<<8|L;for(let S=0;S<4&&n*8+S*6<e.sigBytes*8;S++)v.push(u.charAt(w>>>6*(3-S)&63))}return v.join("")}},Lt={parse(e){const u=e.length,v=[];for(let n=0;n<u;n++)v[n>>>2]|=(e.charCodeAt(n)&255)<<24-n%4*8;return new _e(v,u)}},wt={parse(e){return Lt.parse(unescape(encodeURIComponent(e)))}};class vt{constructor(){this._minBufferSize=0,this.blockSize=512/32,this.reset()}reset(){this._data=new _e,this._nDataBytes=0}_append(u){typeof u=="string"&&(u=wt.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes}_doProcessBlock(u,v){}_process(u){let v,n=this._data.sigBytes/(this.blockSize*4);u?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const m=n*this.blockSize,a=Math.min(m*4,this._data.sigBytes);if(m){for(let L=0;L<m;L+=this.blockSize)this._doProcessBlock(this._data.words,L);v=this._data.words.splice(0,m),this._data.sigBytes-=a}return new _e(v,a)}}class St extends vt{update(u){return this._append(u),this._process(),this}finalize(u){u&&this._append(u)}}const Nt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],jt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],he=[];class At extends St{constructor(){super(),this.reset()}reset(){super.reset(),this._hash=new _e([...Nt])}_doProcessBlock(u,v){const n=this._hash.words;let m=n[0],a=n[1],L=n[2],w=n[3],S=n[4],i=n[5],N=n[6],h=n[7];for(let _=0;_<64;_++){if(_<16)he[_]=u[v+_]|0;else{const l=he[_-15],y=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,c=he[_-2],t=(c<<15|c>>>17)^(c<<13|c>>>19)^c>>>10;he[_]=y+he[_-7]+t+he[_-16]}const x=S&i^~S&N,g=m&a^m&L^a&L,A=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),j=(S<<26|S>>>6)^(S<<21|S>>>11)^(S<<7|S>>>25),b=h+j+x+jt[_]+he[_],p=A+g;h=N,N=i,i=S,S=w+b|0,w=L,L=a,a=m,m=b+p|0}n[0]=n[0]+m|0,n[1]=n[1]+a|0,n[2]=n[2]+L|0,n[3]=n[3]+w|0,n[4]=n[4]+S|0,n[5]=n[5]+i|0,n[6]=n[6]+N|0,n[7]=n[7]+h|0}finalize(u){super.finalize(u);const v=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(v/4294967296),this._data.words[(n+64>>>9<<4)+15]=v,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function Tt(e){return new At().finalize(e).toString(kt)}function xt(e,u={}){const v=typeof e=="string"?e:bt(e,u);return Tt(v).slice(0,10)}function Rt(e,u,v){const[n={},m]=typeof u=="string"?[{},u]:[u,v],a=n.key||xt([m,ne(n.baseURL),typeof e=="string"?e:"",ne(n.params||n.query)]);if(!a||typeof a!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+a);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const L=a===m?"$f"+a:a,w=we(()=>{let y=e;return typeof y=="function"&&(y=y()),ne(y)}),{server:S,lazy:i,default:N,transform:h,pick:_,watch:x,immediate:g,...A}=n,j=tt({...A,cache:typeof n.cache=="boolean"?void 0:n.cache}),b={server:S,lazy:i,default:N,transform:h,pick:_,immediate:g,watch:[j,w,...x||[]]};let p;return dt(L,()=>(p?.abort?.(),p=typeof AbortController<"u"?new AbortController:{},typeof w.value=="string"&&w.value.startsWith("/"),(n.$fetch||globalThis.$fetch)(w.value,{signal:p.signal,...j})),b)}var ze=typeof globalThis<"u"?globalThis:typeof{}<"u"?{}:typeof global<"u"?global:typeof self<"u"?self:{},ve={},Pt={get exports(){return ve},set exports(e){ve=e}};(function(e,u){(function(v,n){e.exports=n()})(ze,()=>{return v={770:function(m,a,L){var w=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.setDefaultDebugCall=a.createOnigScanner=a.createOnigString=a.loadWASM=a.OnigScanner=a.OnigString=void 0;const S=w(L(418));let i=null,N=!1;class h{static _utf8ByteLength(b){let p=0;for(let l=0,y=b.length;l<y;l++){const c=b.charCodeAt(l);let t=c,s=!1;if(c>=55296&&c<=56319&&l+1<y){const o=b.charCodeAt(l+1);o>=56320&&o<=57343&&(t=65536+(c-55296<<10)|o-56320,s=!0)}p+=t<=127?1:t<=2047?2:t<=65535?3:4,s&&l++}return p}constructor(b){const p=b.length,l=h._utf8ByteLength(b),y=l!==p,c=y?new Uint32Array(p+1):null;y&&(c[p]=l);const t=y?new Uint32Array(l+1):null;y&&(t[l]=p);const s=new Uint8Array(l);let o=0;for(let r=0;r<p;r++){const f=b.charCodeAt(r);let d=f,k=!1;if(f>=55296&&f<=56319&&r+1<p){const T=b.charCodeAt(r+1);T>=56320&&T<=57343&&(d=65536+(f-55296<<10)|T-56320,k=!0)}y&&(c[r]=o,k&&(c[r+1]=o),d<=127?t[o+0]=r:d<=2047?(t[o+0]=r,t[o+1]=r):d<=65535?(t[o+0]=r,t[o+1]=r,t[o+2]=r):(t[o+0]=r,t[o+1]=r,t[o+2]=r,t[o+3]=r)),d<=127?s[o++]=d:d<=2047?(s[o++]=192|(1984&d)>>>6,s[o++]=128|(63&d)>>>0):d<=65535?(s[o++]=224|(61440&d)>>>12,s[o++]=128|(4032&d)>>>6,s[o++]=128|(63&d)>>>0):(s[o++]=240|(1835008&d)>>>18,s[o++]=128|(258048&d)>>>12,s[o++]=128|(4032&d)>>>6,s[o++]=128|(63&d)>>>0),k&&r++}this.utf16Length=p,this.utf8Length=l,this.utf16Value=b,this.utf8Value=s,this.utf16OffsetToUtf8=c,this.utf8OffsetToUtf16=t}createString(b){const p=b._omalloc(this.utf8Length);return b.HEAPU8.set(this.utf8Value,p),p}}class _{constructor(b){if(this.id=++_.LAST_ID,!i)throw new Error("Must invoke loadWASM first.");this._onigBinding=i,this.content=b;const p=new h(b);this.utf16Length=p.utf16Length,this.utf8Length=p.utf8Length,this.utf16OffsetToUtf8=p.utf16OffsetToUtf8,this.utf8OffsetToUtf16=p.utf8OffsetToUtf16,this.utf8Length<1e4&&!_._sharedPtrInUse?(_._sharedPtr||(_._sharedPtr=i._omalloc(1e4)),_._sharedPtrInUse=!0,i.HEAPU8.set(p.utf8Value,_._sharedPtr),this.ptr=_._sharedPtr):this.ptr=p.createString(i)}convertUtf8OffsetToUtf16(b){return this.utf8OffsetToUtf16?b<0?0:b>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[b]:b}convertUtf16OffsetToUtf8(b){return this.utf16OffsetToUtf8?b<0?0:b>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[b]:b}dispose(){this.ptr===_._sharedPtr?_._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}a.OnigString=_,_.LAST_ID=0,_._sharedPtr=0,_._sharedPtrInUse=!1;class x{constructor(b){if(!i)throw new Error("Must invoke loadWASM first.");const p=[],l=[];for(let s=0,o=b.length;s<o;s++){const r=new h(b[s]);p[s]=r.createString(i),l[s]=r.utf8Length}const y=i._omalloc(4*b.length);i.HEAPU32.set(p,y/4);const c=i._omalloc(4*b.length);i.HEAPU32.set(l,c/4);const t=i._createOnigScanner(y,c,b.length);for(let s=0,o=b.length;s<o;s++)i._ofree(p[s]);i._ofree(c),i._ofree(y),t===0&&function(s){throw new Error(s.UTF8ToString(s._getLastOnigError()))}(i),this._onigBinding=i,this._ptr=t}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(b,p,l){let y=N,c=0;if(typeof l=="number"?(8&l&&(y=!0),c=l):typeof l=="boolean"&&(y=l),typeof b=="string"){b=new _(b);const t=this._findNextMatchSync(b,p,y,c);return b.dispose(),t}return this._findNextMatchSync(b,p,y,c)}_findNextMatchSync(b,p,l,y){const c=this._onigBinding;let t;if(t=l?c._findNextOnigScannerMatchDbg(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(p),y):c._findNextOnigScannerMatch(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(p),y),t===0)return null;const s=c.HEAPU32;let o=t/4;const r=s[o++],f=s[o++];let d=[];for(let k=0;k<f;k++){const T=b.convertUtf8OffsetToUtf16(s[o++]),P=b.convertUtf8OffsetToUtf16(s[o++]);d[k]={start:T,end:P,length:P-T}}return{index:r,captureIndices:d}}}a.OnigScanner=x;let g=!1,A=null;a.loadWASM=function(j){if(g)return A;let b,p,l,y;if(g=!0,function(c){return typeof c.instantiator=="function"}(j))b=j.instantiator,p=j.print;else{let c;(function(t){return t.data!==void 0})(j)?(c=j.data,p=j.print):c=j,b=function(t){return typeof Response<"u"&&t instanceof Response}(c)?typeof WebAssembly.instantiateStreaming=="function"?function(t){return s=>WebAssembly.instantiateStreaming(t,s)}(c):function(t){return async s=>{const o=await t.arrayBuffer();return WebAssembly.instantiate(o,s)}}(c):function(t){return s=>WebAssembly.instantiate(t,s)}(c)}return A=new Promise((c,t)=>{l=c,y=t}),function(c,t,s,o){(0,S.default)({print:t,instantiateWasm:(r,f)=>{if(typeof performance>"u"){const d=()=>Date.now();r.env.emscripten_get_now=d,r.wasi_snapshot_preview1.emscripten_get_now=d}return c(r).then(d=>f(d.instance),o),{}}}).then(r=>{i=r,s()})}(b,p,l,y),A},a.createOnigString=function(j){return new _(j)},a.createOnigScanner=function(j){return new x(j)},a.setDefaultDebugCall=function(j){N=j}},418:m=>{var a=(typeof document<"u"&&document.currentScript&&document.currentScript.src,function(L){var w,S,i=(L=L||{})!==void 0?L:{};i.ready=new Promise(function(I,B){w=I,S=B});var N,h=Object.assign({},i),_=!1,x="";function g(I){return i.locateFile?i.locateFile(I,x):x+I}N=function(I){let B;return typeof readbuffer=="function"?new Uint8Array(readbuffer(I)):(B=read(I,"binary"),y(typeof B=="object"),B)},typeof scriptArgs<"u"&&scriptArgs,typeof onig_print<"u"&&(typeof console>"u"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr<"u"?printErr:onig_print);var A,j,b=i.print||console.log.bind(console),p=i.printErr||console.warn.bind(console);Object.assign(i,h),h=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(A=i.wasmBinary),i.noExitRuntime,typeof WebAssembly!="object"&&D("no native wasm support detected");var l=!1;function y(I,B){I||D(B)}var c,t,s,o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function r(I,B,X){for(var te=B+X,z=B;I[z]&&!(z>=te);)++z;if(z-B>16&&I.buffer&&o)return o.decode(I.subarray(B,z));for(var W="";B<z;){var Y=I[B++];if(128&Y){var de=63&I[B++];if((224&Y)!=192){var me=63&I[B++];if((Y=(240&Y)==224?(15&Y)<<12|de<<6|me:(7&Y)<<18|de<<12|me<<6|63&I[B++])<65536)W+=String.fromCharCode(Y);else{var Oe=Y-65536;W+=String.fromCharCode(55296|Oe>>10,56320|1023&Oe)}}else W+=String.fromCharCode((31&Y)<<6|de)}else W+=String.fromCharCode(Y)}return W}function f(I,B){return I?r(t,I,B):""}function d(I){c=I,i.HEAP8=new Int8Array(I),i.HEAP16=new Int16Array(I),i.HEAP32=new Int32Array(I),i.HEAPU8=t=new Uint8Array(I),i.HEAPU16=new Uint16Array(I),i.HEAPU32=s=new Uint32Array(I),i.HEAPF32=new Float32Array(I),i.HEAPF64=new Float64Array(I)}i.INITIAL_MEMORY;var k=[],T=[],P=[];function O(){if(i.preRun)for(typeof i.preRun=="function"&&(i.preRun=[i.preRun]);i.preRun.length;)U(i.preRun.shift());se(k)}function E(){se(T)}function C(){if(i.postRun)for(typeof i.postRun=="function"&&(i.postRun=[i.postRun]);i.postRun.length;)H(i.postRun.shift());se(P)}function U(I){k.unshift(I)}function G(I){T.unshift(I)}function H(I){P.unshift(I)}var V=0,q=null;function F(I){V++,i.monitorRunDependencies&&i.monitorRunDependencies(V)}function M(I){if(V--,i.monitorRunDependencies&&i.monitorRunDependencies(V),V==0&&q){var B=q;q=null,B()}}function D(I){i.onAbort&&i.onAbort(I),p(I="Aborted("+I+")"),l=!0,I+=". Build with -sASSERTIONS for more info.";var B=new WebAssembly.RuntimeError(I);throw S(B),B}var J,R,Q="data:application/octet-stream;base64,";function $(I){return I.startsWith(Q)}function ee(I){try{if(I==J&&A)return new Uint8Array(A);if(N)return N(I);throw"both async and sync fetching of the wasm failed"}catch(B){D(B)}}function ie(){return A||!_||typeof fetch!="function"?Promise.resolve().then(function(){return ee(J)}):fetch(J,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+J+"'";return I.arrayBuffer()}).catch(function(){return ee(J)})}function be(){var I={env:ue,wasi_snapshot_preview1:ue};function B(z,W){var Y=z.exports;i.asm=Y,d((j=i.asm.memory).buffer),i.asm.__indirect_function_table,G(i.asm.__wasm_call_ctors),M()}function X(z){B(z.instance)}function te(z){return ie().then(function(W){return WebAssembly.instantiate(W,I)}).then(function(W){return W}).then(z,function(W){p("failed to asynchronously prepare wasm: "+W),D(W)})}if(F(),i.instantiateWasm)try{return i.instantiateWasm(I,B)}catch(z){p("Module.instantiateWasm callback failed with error: "+z),S(z)}return(A||typeof WebAssembly.instantiateStreaming!="function"||$(J)||typeof fetch!="function"?te(X):fetch(J,{credentials:"same-origin"}).then(function(z){return WebAssembly.instantiateStreaming(z,I).then(X,function(W){return p("wasm streaming compile failed: "+W),p("falling back to ArrayBuffer instantiation"),te(X)})})).catch(S),{}}function se(I){for(;I.length>0;)I.shift()(i)}function re(I,B,X){t.copyWithin(I,B,B+X)}function pe(I){try{return j.grow(I-c.byteLength+65535>>>16),d(j.buffer),1}catch{}}function oe(I){var B,X=t.length,te=2147483648;if((I>>>=0)>te)return!1;for(var z=1;z<=4;z*=2){var W=X*(1+.2/z);if(W=Math.min(W,I+100663296),pe(Math.min(te,(B=Math.max(I,W))+(65536-B%65536)%65536)))return!0}return!1}$(J="onig.wasm")||(J=g(J)),R=typeof dateNow<"u"?dateNow:()=>performance.now();var ce=[null,[],[]];function le(I,B){var X=ce[I];B===0||B===10?((I===1?b:p)(r(X,0)),X.length=0):X.push(B)}function ae(I,B,X,te){for(var z=0,W=0;W<X;W++){var Y=s[B>>2],de=s[B+4>>2];B+=8;for(var me=0;me<de;me++)le(I,t[Y+me]);z+=de}return s[te>>2]=z,0}var Z,ue={emscripten_get_now:R,emscripten_memcpy_big:re,emscripten_resize_heap:oe,fd_write:ae};function ge(I){function B(){Z||(Z=!0,i.calledRun=!0,l||(E(),w(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),C()))}V>0||(O(),V>0||(i.setStatus?(i.setStatus("Running..."),setTimeout(function(){setTimeout(function(){i.setStatus("")},1),B()},1)):B()))}if(be(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.__wasm_call_ctors).apply(null,arguments)},i.___errno_location=function(){return(i.___errno_location=i.asm.__errno_location).apply(null,arguments)},i._omalloc=function(){return(i._omalloc=i.asm.omalloc).apply(null,arguments)},i._ofree=function(){return(i._ofree=i.asm.ofree).apply(null,arguments)},i._getLastOnigError=function(){return(i._getLastOnigError=i.asm.getLastOnigError).apply(null,arguments)},i._createOnigScanner=function(){return(i._createOnigScanner=i.asm.createOnigScanner).apply(null,arguments)},i._freeOnigScanner=function(){return(i._freeOnigScanner=i.asm.freeOnigScanner).apply(null,arguments)},i._findNextOnigScannerMatch=function(){return(i._findNextOnigScannerMatch=i.asm.findNextOnigScannerMatch).apply(null,arguments)},i._findNextOnigScannerMatchDbg=function(){return(i._findNextOnigScannerMatchDbg=i.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},i.stackSave=function(){return(i.stackSave=i.asm.stackSave).apply(null,arguments)},i.stackRestore=function(){return(i.stackRestore=i.asm.stackRestore).apply(null,arguments)},i.stackAlloc=function(){return(i.stackAlloc=i.asm.stackAlloc).apply(null,arguments)},i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.dynCall_jiji).apply(null,arguments)},i.UTF8ToString=f,q=function I(){Z||ge(),Z||(q=I)},i.preInit)for(typeof i.preInit=="function"&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return ge(),L.ready});m.exports=a}},n={},function m(a){var L=n[a];if(L!==void 0)return L.exports;var w=n[a]={exports:{}};return v[a].call(w.exports,w,w.exports,m),w.exports}(770);var v,n})})(Pt);var je={},It={get exports(){return je},set exports(e){je=e}};(function(e,u){(function(v,n){e.exports=n()})(ze,function(){return(()=>{var v={350:(m,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UseOnigurumaFindOptions=a.DebugFlags=void 0,a.DebugFlags={InDebugMode:typeof process<"u"&&!1},a.UseOnigurumaFindOptions=!1},36:(m,a)=>{var L;Object.defineProperty(a,"__esModule",{value:!0}),a.toOptionalTokenType=a.EncodedTokenAttributes=void 0,(L=a.EncodedTokenAttributes||(a.EncodedTokenAttributes={})).toBinaryStr=function(w){let S=w.toString(2);for(;S.length<32;)S="0"+S;return S},L.print=function(w){const S=L.getLanguageId(w),i=L.getTokenType(w),N=L.getFontStyle(w),h=L.getForeground(w),_=L.getBackground(w);console.log({languageId:S,tokenType:i,fontStyle:N,foreground:h,background:_})},L.getLanguageId=function(w){return(255&w)>>>0},L.getTokenType=function(w){return(768&w)>>>8},L.containsBalancedBrackets=function(w){return(1024&w)!=0},L.getFontStyle=function(w){return(30720&w)>>>11},L.getForeground=function(w){return(16744448&w)>>>15},L.getBackground=function(w){return(4278190080&w)>>>24},L.set=function(w,S,i,N,h,_,x){let g=L.getLanguageId(w),A=L.getTokenType(w),j=L.containsBalancedBrackets(w)?1:0,b=L.getFontStyle(w),p=L.getForeground(w),l=L.getBackground(w);return S!==0&&(g=S),i!==8&&(A=i),N!==null&&(j=N?1:0),h!==-1&&(b=h),_!==0&&(p=_),x!==0&&(l=x),(g<<0|A<<8|j<<10|b<<11|p<<15|l<<24)>>>0},a.toOptionalTokenType=function(w){return w}},996:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BasicScopeAttributesProvider=a.BasicScopeAttributes=void 0;const w=L(878);class S{constructor(_,x){this.languageId=_,this.tokenType=x}}a.BasicScopeAttributes=S;class i{constructor(_,x){this._getBasicScopeAttributes=new w.CachedFn(g=>{const A=this._scopeToLanguage(g),j=this._toStandardTokenType(g);return new S(A,j)}),this._defaultAttributes=new S(_,8),this._embeddedLanguagesMatcher=new N(Object.entries(x||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(_){return _===null?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(_)}_scopeToLanguage(_){return this._embeddedLanguagesMatcher.match(_)||0}_toStandardTokenType(_){const x=_.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!x)return 8;switch(x[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!")}}a.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new S(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class N{constructor(_){if(_.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(_);const x=_.map(([g,A])=>w.escapeRegExpCharacters(g));x.sort(),x.reverse(),this.scopesRegExp=new RegExp(`^((${x.join(")|(")}))($|\\.)`,"")}}match(_){if(!this.scopesRegExp)return;const x=_.match(this.scopesRegExp);return x?this.values.get(x[1]):void 0}}},947:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LineTokens=a.BalancedBracketSelectors=a.StateStack=a.AttributedScopeStack=a.Grammar=a.createGrammar=void 0;const w=L(350),S=L(36),i=L(736),N=L(44),h=L(792),_=L(583),x=L(878),g=L(996),A=L(47);function j(o,r,f,d,k){const T=i.createMatchers(r,b),P=h.RuleFactory.getCompiledRuleId(f,d,k.repository);for(const O of T)o.push({debugSelector:r,matcher:O.matcher,ruleId:P,grammar:k,priority:O.priority})}function b(o,r){if(r.length<o.length)return!1;let f=0;return o.every(d=>{for(let k=f;k<r.length;k++)if(p(r[k],d))return f=k+1,!0;return!1})}function p(o,r){if(!o)return!1;if(o===r)return!0;const f=r.length;return o.length>f&&o.substr(0,f)===r&&o[f]==="."}a.createGrammar=function(o,r,f,d,k,T,P,O){return new l(o,r,f,d,k,T,P,O)};class l{constructor(r,f,d,k,T,P,O,E){if(this._rootScopeName=r,this.balancedBracketSelectors=P,this._onigLib=E,this._basicScopeAttributesProvider=new g.BasicScopeAttributesProvider(d,k),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=O,this._grammar=y(f,null),this._injections=null,this._tokenTypeMatchers=[],T)for(const C of Object.keys(T)){const U=i.createMatchers(C,b);for(const G of U)this._tokenTypeMatchers.push({matcher:G.matcher,type:T[C]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r=[],f=this._rootScopeName,d=(k=>k===this._rootScopeName?this._grammar:this.getExternalGrammar(k))(f);if(d){const k=d.injections;if(k)for(let P in k)j(r,P,k[P],this,d);const T=this._grammarRepository.injections(f);T&&T.forEach(P=>{const O=this.getExternalGrammar(P);if(O){const E=O.injectionSelector;E&&j(r,E,O,this,O)}})}return r.sort((k,T)=>k.priority-T.priority),r}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),w.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const r of this._injections)console.log(` - ${r.debugSelector}`)}return this._injections}registerRule(r){const f=++this._lastRuleId,d=r(h.ruleIdFromNumber(f));return this._ruleId2desc[f]=d,d}getRule(r){return this._ruleId2desc[h.ruleIdToNumber(r)]}getExternalGrammar(r,f){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const d=this._grammarRepository.lookup(r);if(d)return this._includedGrammars[r]=y(d,f&&f.$base),this._includedGrammars[r]}}tokenizeLine(r,f,d=0){const k=this._tokenize(r,f,!1,d);return{tokens:k.lineTokens.getResult(k.ruleStack,k.lineLength),ruleStack:k.ruleStack,stoppedEarly:k.stoppedEarly}}tokenizeLine2(r,f,d=0){const k=this._tokenize(r,f,!0,d);return{tokens:k.lineTokens.getBinaryResult(k.ruleStack,k.lineLength),ruleStack:k.ruleStack,stoppedEarly:k.stoppedEarly}}_tokenize(r,f,d,k){let T;if(this._rootId===-1&&(this._rootId=h.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),f&&f!==t.NULL)T=!1,f.reset();else{T=!0;const U=this._basicScopeAttributesProvider.getDefaultAttributes(),G=this.themeProvider.getDefaults(),H=S.EncodedTokenAttributes.set(0,U.languageId,U.tokenType,null,G.fontStyle,G.foregroundId,G.backgroundId),V=this.getRule(this._rootId).getName(null,null);let q;q=V?c.createRootAndLookUpScopeName(V,H,this):c.createRoot("unknown",H),f=new t(null,this._rootId,-1,-1,!1,null,q,q)}r+=`
|
|
4
|
+
`;const P=this.createOnigString(r),O=P.content.length,E=new s(d,r,this._tokenTypeMatchers,this.balancedBracketSelectors),C=A._tokenizeString(this,P,T,0,f,E,!0,k);return N.disposeOnigString(P),{lineLength:O,lineTokens:E,ruleStack:C.stack,stoppedEarly:C.stoppedEarly}}}function y(o,r){return(o=x.clone(o)).repository=o.repository||{},o.repository.$self={$vscodeTextmateLocation:o.$vscodeTextmateLocation,patterns:o.patterns,name:o.scopeName},o.repository.$base=r||o.repository.$self,o}a.Grammar=l;class c{constructor(r,f,d){this.parent=r,this.scopePath=f,this.tokenAttributes=d}static createRoot(r,f){return new c(null,new _.ScopeStack(null,r),f)}static createRootAndLookUpScopeName(r,f,d){const k=d.getMetadataForScope(r),T=new _.ScopeStack(null,r),P=d.themeProvider.themeMatch(T),O=c.mergeAttributes(f,k,P);return new c(null,T,O)}get scopeName(){return this.scopePath.scopeName}equals(r){return c._equals(this,r)}static _equals(r,f){for(;;){if(r===f||!r&&!f)return!0;if(!r||!f||r.scopeName!==f.scopeName||r.tokenAttributes!==f.tokenAttributes)return!1;r=r.parent,f=f.parent}}static mergeAttributes(r,f,d){let k=-1,T=0,P=0;return d!==null&&(k=d.fontStyle,T=d.foregroundId,P=d.backgroundId),S.EncodedTokenAttributes.set(r,f.languageId,f.tokenType,null,k,T,P)}pushAttributed(r,f){if(r===null)return this;if(r.indexOf(" ")===-1)return c._pushAttributed(this,r,f);const d=r.split(/ /g);let k=this;for(const T of d)k=c._pushAttributed(k,T,f);return k}static _pushAttributed(r,f,d){const k=d.getMetadataForScope(f),T=r.scopePath.push(f),P=d.themeProvider.themeMatch(T),O=c.mergeAttributes(r.tokenAttributes,k,P);return new c(r,T,O)}getScopeNames(){return this.scopePath.getSegments()}}a.AttributedScopeStack=c;class t{constructor(r,f,d,k,T,P,O,E){this.parent=r,this.ruleId=f,this.beginRuleCapturedEOL=T,this.endRule=P,this.nameScopesList=O,this.contentNameScopesList=E,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=d,this._anchorPos=k}equals(r){return r!==null&&t._equals(this,r)}static _equals(r,f){return r===f||!!this._structuralEquals(r,f)&&r.contentNameScopesList.equals(f.contentNameScopesList)}static _structuralEquals(r,f){for(;;){if(r===f||!r&&!f)return!0;if(!r||!f||r.depth!==f.depth||r.ruleId!==f.ruleId||r.endRule!==f.endRule)return!1;r=r.parent,f=f.parent}}clone(){return this}static _reset(r){for(;r;)r._enterPos=-1,r._anchorPos=-1,r=r.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(r,f,d,k,T,P,O){return new t(this,r,f,d,k,T,P,O)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(r){return r.getRule(this.ruleId)}toString(){const r=[];return this._writeString(r,0),"["+r.join(",")+"]"}_writeString(r,f){return this.parent&&(f=this.parent._writeString(r,f)),r[f++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,f}withContentNameScopesList(r){return this.contentNameScopesList===r?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,r)}withEndRule(r){return this.endRule===r?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,r,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(r){let f=this;for(;f&&f._enterPos===r._enterPos;){if(f.ruleId===r.ruleId)return!0;f=f.parent}return!1}}a.StateStack=t,t.NULL=new t(null,0,0,0,!1,null,null,null),a.BalancedBracketSelectors=class{constructor(o,r){this.allowAny=!1,this.balancedBracketScopes=o.flatMap(f=>f==="*"?(this.allowAny=!0,[]):i.createMatchers(f,b).map(d=>d.matcher)),this.unbalancedBracketScopes=r.flatMap(f=>i.createMatchers(f,b).map(d=>d.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(o){for(const r of this.unbalancedBracketScopes)if(r(o))return!1;for(const r of this.balancedBracketScopes)if(r(o))return!0;return this.allowAny}};class s{constructor(r,f,d,k){this.balancedBracketSelectors=k,this._emitBinaryTokens=r,this._tokenTypeOverrides=d,w.DebugFlags.InDebugMode?this._lineText=f:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,f){this.produceFromScopes(r.contentNameScopesList,f)}produceFromScopes(r,f){if(this._lastTokenEndIndex>=f)return;if(this._emitBinaryTokens){let k=r.tokenAttributes,T=!1;if(this.balancedBracketSelectors?.matchesAlways&&(T=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const P=r.getScopeNames();for(const O of this._tokenTypeOverrides)O.matcher(P)&&(k=S.EncodedTokenAttributes.set(k,0,S.toOptionalTokenType(O.type),null,-1,0,0));this.balancedBracketSelectors&&(T=this.balancedBracketSelectors.match(P))}if(T&&(k=S.EncodedTokenAttributes.set(k,0,8,T,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===k)return void(this._lastTokenEndIndex=f);if(w.DebugFlags.InDebugMode){const P=r.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,f).replace(/\n$/,"\\n")+"|");for(let O=0;O<P.length;O++)console.log(" * "+P[O])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(k),void(this._lastTokenEndIndex=f)}const d=r.getScopeNames();if(w.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,f).replace(/\n$/,"\\n")+"|");for(let k=0;k<d.length;k++)console.log(" * "+d[k])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:f,scopes:d}),this._lastTokenEndIndex=f}getResult(r,f){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===f-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,f),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,f){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===f-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,f),this._binaryTokens[this._binaryTokens.length-2]=0);const d=new Uint32Array(this._binaryTokens.length);for(let k=0,T=this._binaryTokens.length;k<T;k++)d[k]=this._binaryTokens[k];return d}}a.LineTokens=s},965:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.parseInclude=a.TopLevelRepositoryReference=a.TopLevelReference=a.RelativeReference=a.SelfReference=a.BaseReference=a.ScopeDependencyProcessor=a.ExternalReferenceCollector=a.TopLevelRepositoryRuleReference=a.TopLevelRuleReference=void 0;const w=L(878);class S{constructor(t){this.scopeName=t}toKey(){return this.scopeName}}a.TopLevelRuleReference=S;class i{constructor(t,s){this.scopeName=t,this.ruleName=s}toKey(){return`${this.scopeName}#${this.ruleName}`}}a.TopLevelRepositoryRuleReference=i;class N{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const s=t.toKey();this._seenReferenceKeys.has(s)||(this._seenReferenceKeys.add(s),this._references.push(t))}}function h(c,t,s,o){const r=s.lookup(c.scopeName);if(!r){if(c.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const f=s.lookup(t);c instanceof S?x({baseGrammar:f,selfGrammar:r},o):_(c.ruleName,{baseGrammar:f,selfGrammar:r,repository:r.repository},o);const d=s.injections(c.scopeName);if(d)for(const k of d)o.add(new S(k))}function _(c,t,s){t.repository&&t.repository[c]&&g([t.repository[c]],t,s)}function x(c,t){c.selfGrammar.patterns&&Array.isArray(c.selfGrammar.patterns)&&g(c.selfGrammar.patterns,{...c,repository:c.selfGrammar.repository},t),c.selfGrammar.injections&&g(Object.values(c.selfGrammar.injections),{...c,repository:c.selfGrammar.repository},t)}function g(c,t,s){for(const o of c){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const r=o.repository?w.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&g(o.patterns,{...t,repository:r},s);const f=o.include;if(!f)continue;const d=y(f);switch(d.kind){case 0:x({...t,selfGrammar:t.baseGrammar},s);break;case 1:x(t,s);break;case 2:_(d.ruleName,{...t,repository:r},s);break;case 3:case 4:const k=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(k){const T={baseGrammar:t.baseGrammar,selfGrammar:k,repository:r};d.kind===4?_(d.ruleName,T,s):x(T,s)}else d.kind===4?s.add(new i(d.scopeName,d.ruleName)):s.add(new S(d.scopeName))}}}a.ExternalReferenceCollector=N,a.ScopeDependencyProcessor=class{constructor(c,t){this.repo=c,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new S(this.initialScopeName)]}processQueue(){const c=this.Q;this.Q=[];const t=new N;for(const s of c)h(s,this.initialScopeName,this.repo,t);for(const s of t.references)if(s instanceof S){if(this.seenFullScopeRequests.has(s.scopeName))continue;this.seenFullScopeRequests.add(s.scopeName),this.Q.push(s)}else{if(this.seenFullScopeRequests.has(s.scopeName)||this.seenPartialScopeRequests.has(s.toKey()))continue;this.seenPartialScopeRequests.add(s.toKey()),this.Q.push(s)}}};class A{constructor(){this.kind=0}}a.BaseReference=A;class j{constructor(){this.kind=1}}a.SelfReference=j;class b{constructor(t){this.ruleName=t,this.kind=2}}a.RelativeReference=b;class p{constructor(t){this.scopeName=t,this.kind=3}}a.TopLevelReference=p;class l{constructor(t,s){this.scopeName=t,this.ruleName=s,this.kind=4}}function y(c){if(c==="$base")return new A;if(c==="$self")return new j;const t=c.indexOf("#");if(t===-1)return new p(c);if(t===0)return new b(c.substring(1));{const s=c.substring(0,t),o=c.substring(t+1);return new l(s,o)}}a.TopLevelRepositoryReference=l,a.parseInclude=y},391:function(m,a,L){var w=this&&this.__createBinding||(Object.create?function(i,N,h,_){_===void 0&&(_=h),Object.defineProperty(i,_,{enumerable:!0,get:function(){return N[h]}})}:function(i,N,h,_){_===void 0&&(_=h),i[_]=N[h]}),S=this&&this.__exportStar||function(i,N){for(var h in i)h==="default"||Object.prototype.hasOwnProperty.call(N,h)||w(N,i,h)};Object.defineProperty(a,"__esModule",{value:!0}),S(L(947),a)},47:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LocalStackElement=a._tokenizeString=void 0;const w=L(350),S=L(44),i=L(792),N=L(878);class h{constructor(l,y){this.stack=l,this.stoppedEarly=y}}function _(p,l,y,c,t,s,o,r){const f=l.content.length;let d=!1,k=-1;if(o){const O=function(E,C,U,G,H,V){let q=H.beginRuleCapturedEOL?0:-1;const F=[];for(let M=H;M;M=M.pop()){const D=M.getRule(E);D instanceof i.BeginWhileRule&&F.push({rule:D,stack:M})}for(let M=F.pop();M;M=F.pop()){const{ruleScanner:D,findOptions:J}=g(M.rule,E,M.stack.endRule,U,G===q),R=D.findNextMatchSync(C,G,J);if(w.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(D.toString())),!R){w.DebugFlags.InDebugMode&&console.log(" popping "+M.rule.debugName+" - "+M.rule.debugWhileRegExp),H=M.stack.pop();break}if(R.ruleId!==i.whileRuleId){H=M.stack.pop();break}R.captureIndices&&R.captureIndices.length&&(V.produce(M.stack,R.captureIndices[0].start),j(E,C,U,M.stack,V,M.rule.whileCaptures,R.captureIndices),V.produce(M.stack,R.captureIndices[0].end),q=R.captureIndices[0].end,R.captureIndices[0].end>G&&(G=R.captureIndices[0].end,U=!1))}return{stack:H,linePos:G,anchorPosition:q,isFirstLine:U}}(p,l,y,c,t,s);t=O.stack,c=O.linePos,y=O.isFirstLine,k=O.anchorPosition}const T=Date.now();for(;!d;){if(r!==0&&Date.now()-T>r)return new h(t,!0);P()}return new h(t,!1);function P(){w.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${c}: |${l.content.substr(c).replace(/\n$/,"\\n")}|`));const O=function(G,H,V,q,F,M){const D=function(ee,ie,be,se,re,pe){const oe=re.getRule(ee),{ruleScanner:ce,findOptions:le}=x(oe,ee,re.endRule,be,se===pe);let ae=0;w.DebugFlags.InDebugMode&&(ae=N.performanceNow());const Z=ce.findNextMatchSync(ie,se,le);if(w.DebugFlags.InDebugMode){const ue=N.performanceNow()-ae;ue>5&&console.warn(`Rule ${oe.debugName} (${oe.id}) matching took ${ue} against '${ie}'`),console.log(` scanning for (linePos: ${se}, anchorPosition: ${pe})`),console.log(ce.toString()),Z&&console.log(`matched rule id: ${Z.ruleId} from ${Z.captureIndices[0].start} to ${Z.captureIndices[0].end}`)}return Z?{captureIndices:Z.captureIndices,matchedRuleId:Z.ruleId}:null}(G,H,V,q,F,M),J=G.getInjections();if(J.length===0)return D;const R=function(ee,ie,be,se,re,pe,oe){let ce,le=Number.MAX_VALUE,ae=null,Z=0;const ue=pe.contentNameScopesList.getScopeNames();for(let ge=0,I=ee.length;ge<I;ge++){const B=ee[ge];if(!B.matcher(ue))continue;const X=ie.getRule(B.ruleId),{ruleScanner:te,findOptions:z}=x(X,ie,null,se,re===oe),W=te.findNextMatchSync(be,re,z);if(!W)continue;w.DebugFlags.InDebugMode&&(console.log(` matched injection: ${B.debugSelector}`),console.log(te.toString()));const Y=W.captureIndices[0].start;if(!(Y>=le)&&(le=Y,ae=W.captureIndices,ce=W.ruleId,Z=B.priority,le===re))break}return ae?{priorityMatch:Z===-1,captureIndices:ae,matchedRuleId:ce}:null}(J,G,H,V,q,F,M);if(!R)return D;if(!D)return R;const Q=D.captureIndices[0].start,$=R.captureIndices[0].start;return $<Q||R.priorityMatch&&$===Q?R:D}(p,l,y,c,t,k);if(!O)return w.DebugFlags.InDebugMode&&console.log(" no more matches."),s.produce(t,f),void(d=!0);const E=O.captureIndices,C=O.matchedRuleId,U=!!(E&&E.length>0)&&E[0].end>c;if(C===i.endRuleId){const G=t.getRule(p);w.DebugFlags.InDebugMode&&console.log(" popping "+G.debugName+" - "+G.debugEndRegExp),s.produce(t,E[0].start),t=t.withContentNameScopesList(t.nameScopesList),j(p,l,y,t,s,G.endCaptures,E),s.produce(t,E[0].end);const H=t;if(t=t.parent,k=H.getAnchorPos(),!U&&H.getEnterPos()===c)return w.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),t=H,s.produce(t,f),void(d=!0)}else{const G=p.getRule(C);s.produce(t,E[0].start);const H=t,V=G.getName(l.content,E),q=t.contentNameScopesList.pushAttributed(V,p);if(t=t.push(C,c,k,E[0].end===f,null,q,q),G instanceof i.BeginEndRule){const F=G;w.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName+" - "+F.debugBeginRegExp),j(p,l,y,t,s,F.beginCaptures,E),s.produce(t,E[0].end),k=E[0].end;const M=F.getContentName(l.content,E),D=q.pushAttributed(M,p);if(t=t.withContentNameScopesList(D),F.endHasBackReferences&&(t=t.withEndRule(F.getEndWithResolvedBackReferences(l.content,E))),!U&&H.hasSameRuleAs(t))return w.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),s.produce(t,f),void(d=!0)}else if(G instanceof i.BeginWhileRule){const F=G;w.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName),j(p,l,y,t,s,F.beginCaptures,E),s.produce(t,E[0].end),k=E[0].end;const M=F.getContentName(l.content,E),D=q.pushAttributed(M,p);if(t=t.withContentNameScopesList(D),F.whileHasBackReferences&&(t=t.withEndRule(F.getWhileWithResolvedBackReferences(l.content,E))),!U&&H.hasSameRuleAs(t))return w.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),s.produce(t,f),void(d=!0)}else{const F=G;if(w.DebugFlags.InDebugMode&&console.log(" matched "+F.debugName+" - "+F.debugMatchRegExp),j(p,l,y,t,s,F.captures,E),s.produce(t,E[0].end),t=t.pop(),!U)return w.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),t=t.safePop(),s.produce(t,f),void(d=!0)}}E[0].end>c&&(c=E[0].end,y=!1)}}function x(p,l,y,c,t){return w.UseOnigurumaFindOptions?{ruleScanner:p.compile(l,y),findOptions:A(c,t)}:{ruleScanner:p.compileAG(l,y,c,t),findOptions:0}}function g(p,l,y,c,t){return w.UseOnigurumaFindOptions?{ruleScanner:p.compileWhile(l,y),findOptions:A(c,t)}:{ruleScanner:p.compileWhileAG(l,y,c,t),findOptions:0}}function A(p,l){let y=0;return p||(y|=1),l||(y|=4),y}function j(p,l,y,c,t,s,o){if(s.length===0)return;const r=l.content,f=Math.min(s.length,o.length),d=[],k=o[0].end;for(let T=0;T<f;T++){const P=s[T];if(P===null)continue;const O=o[T];if(O.length===0)continue;if(O.start>k)break;for(;d.length>0&&d[d.length-1].endPos<=O.start;)t.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?t.produceFromScopes(d[d.length-1].scopes,O.start):t.produce(c,O.start),P.retokenizeCapturedWithRuleId){const C=P.getName(r,o),U=c.contentNameScopesList.pushAttributed(C,p),G=P.getContentName(r,o),H=U.pushAttributed(G,p),V=c.push(P.retokenizeCapturedWithRuleId,O.start,-1,!1,null,U,H),q=p.createOnigString(r.substring(0,O.end));_(p,q,y&&O.start===0,O.start,V,t,!1,0),S.disposeOnigString(q);continue}const E=P.getName(r,o);if(E!==null){const C=(d.length>0?d[d.length-1].scopes:c.contentNameScopesList).pushAttributed(E,p);d.push(new b(C,O.end))}}for(;d.length>0;)t.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}a._tokenizeString=_;class b{constructor(l,y){this.scopes=l,this.endPos=y}}a.LocalStackElement=b},974:(m,a)=>{function L(N,h){throw new Error("Near offset "+N.pos+": "+h+" ~~~"+N.source.substr(N.pos,50)+"~~~")}Object.defineProperty(a,"__esModule",{value:!0}),a.parseJSON=void 0,a.parseJSON=function(N,h,_){let x=new w(N),g=new S,A=0,j=null,b=[],p=[];function l(){b.push(A),p.push(j)}function y(){A=b.pop(),j=p.pop()}function c(t){L(x,t)}for(;i(x,g);){if(A===0){if(j!==null&&c("too many constructs in root"),g.type===3){j={},_&&(j.$vscodeTextmateLocation=g.toLocation(h)),l(),A=1;continue}if(g.type===2){j=[],l(),A=4;continue}c("unexpected token in root")}if(A===2){if(g.type===5){y();continue}if(g.type===7){A=3;continue}c("expected , or }")}if(A===1||A===3){if(A===1&&g.type===5){y();continue}if(g.type===1){let t=g.value;if(i(x,g)&&g.type===6||c("expected colon"),i(x,g)||c("expected value"),A=2,g.type===1){j[t]=g.value;continue}if(g.type===8){j[t]=null;continue}if(g.type===9){j[t]=!0;continue}if(g.type===10){j[t]=!1;continue}if(g.type===11){j[t]=parseFloat(g.value);continue}if(g.type===2){let s=[];j[t]=s,l(),A=4,j=s;continue}if(g.type===3){let s={};_&&(s.$vscodeTextmateLocation=g.toLocation(h)),j[t]=s,l(),A=1,j=s;continue}}c("unexpected token in dict")}if(A===5){if(g.type===4){y();continue}if(g.type===7){A=6;continue}c("expected , or ]")}if(A===4||A===6){if(A===4&&g.type===4){y();continue}if(A=5,g.type===1){j.push(g.value);continue}if(g.type===8){j.push(null);continue}if(g.type===9){j.push(!0);continue}if(g.type===10){j.push(!1);continue}if(g.type===11){j.push(parseFloat(g.value));continue}if(g.type===2){let t=[];j.push(t),l(),A=4,j=t;continue}if(g.type===3){let t={};_&&(t.$vscodeTextmateLocation=g.toLocation(h)),j.push(t),l(),A=1,j=t;continue}c("unexpected token in array")}c("unknown state")}return p.length!==0&&c("unclosed constructs"),j};class w{constructor(h){this.source=h,this.pos=0,this.len=h.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(h){return{filename:h,line:this.line,char:this.char}}}function i(N,h){h.value=null,h.type=0,h.offset=-1,h.len=-1,h.line=-1,h.char=-1;let _,x=N.source,g=N.pos,A=N.len,j=N.line,b=N.char;for(;;){if(g>=A)return!1;if(_=x.charCodeAt(g),_!==32&&_!==9&&_!==13){if(_!==10)break;g++,j++,b=0}else g++,b++}if(h.offset=g,h.line=j,h.char=b,_===34){for(h.type=1,g++,b++;;){if(g>=A)return!1;if(_=x.charCodeAt(g),g++,b++,_!==92){if(_===34)break}else g++,b++}h.value=x.substring(h.offset+1,g-1).replace(/\\u([0-9A-Fa-f]{4})/g,(p,l)=>String.fromCodePoint(parseInt(l,16))).replace(/\\(.)/g,(p,l)=>{switch(l){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
5
|
+
`;case"r":return"\r";case"t":return" ";default:L(N,"invalid escape sequence")}throw new Error("unreachable")})}else if(_===91)h.type=2,g++,b++;else if(_===123)h.type=3,g++,b++;else if(_===93)h.type=4,g++,b++;else if(_===125)h.type=5,g++,b++;else if(_===58)h.type=6,g++,b++;else if(_===44)h.type=7,g++,b++;else if(_===110){if(h.type=8,g++,b++,_=x.charCodeAt(g),_!==117||(g++,b++,_=x.charCodeAt(g),_!==108)||(g++,b++,_=x.charCodeAt(g),_!==108))return!1;g++,b++}else if(_===116){if(h.type=9,g++,b++,_=x.charCodeAt(g),_!==114||(g++,b++,_=x.charCodeAt(g),_!==117)||(g++,b++,_=x.charCodeAt(g),_!==101))return!1;g++,b++}else if(_===102){if(h.type=10,g++,b++,_=x.charCodeAt(g),_!==97||(g++,b++,_=x.charCodeAt(g),_!==108)||(g++,b++,_=x.charCodeAt(g),_!==115)||(g++,b++,_=x.charCodeAt(g),_!==101))return!1;g++,b++}else for(h.type=11;;){if(g>=A)return!1;if(_=x.charCodeAt(g),!(_===46||_>=48&&_<=57||_===101||_===69||_===45||_===43))break;g++,b++}return h.len=g-h.offset,h.value===null&&(h.value=x.substr(h.offset,h.len)),N.pos=g,N.line=j,N.char=b,!0}},787:function(m,a,L){var w=this&&this.__createBinding||(Object.create?function(g,A,j,b){b===void 0&&(b=j),Object.defineProperty(g,b,{enumerable:!0,get:function(){return A[j]}})}:function(g,A,j,b){b===void 0&&(b=j),g[b]=A[j]}),S=this&&this.__exportStar||function(g,A){for(var j in g)j==="default"||Object.prototype.hasOwnProperty.call(A,j)||w(A,g,j)};Object.defineProperty(a,"__esModule",{value:!0}),a.parseRawGrammar=a.INITIAL=a.Registry=void 0;const i=L(391),N=L(50),h=L(652),_=L(583),x=L(965);S(L(44),a),a.Registry=class{constructor(g){this._options=g,this._syncRegistry=new h.SyncRegistry(_.Theme.createFromRawTheme(g.theme,g.colorMap),g.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(g,A){this._syncRegistry.setTheme(_.Theme.createFromRawTheme(g,A))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(g,A,j){return this.loadGrammarWithConfiguration(g,A,{embeddedLanguages:j})}loadGrammarWithConfiguration(g,A,j){return this._loadGrammar(g,A,j.embeddedLanguages,j.tokenTypes,new i.BalancedBracketSelectors(j.balancedBracketSelectors||[],j.unbalancedBracketSelectors||[]))}loadGrammar(g){return this._loadGrammar(g,0,null,null,null)}async _loadGrammar(g,A,j,b,p){const l=new x.ScopeDependencyProcessor(this._syncRegistry,g);for(;l.Q.length>0;)await Promise.all(l.Q.map(y=>this._loadSingleGrammar(y.scopeName))),l.processQueue();return this._grammarForScopeName(g,A,j,b,p)}async _loadSingleGrammar(g){return this._ensureGrammarCache.has(g)||this._ensureGrammarCache.set(g,this._doLoadSingleGrammar(g)),this._ensureGrammarCache.get(g)}async _doLoadSingleGrammar(g){const A=await this._options.loadGrammar(g);if(A){const j=typeof this._options.getInjections=="function"?this._options.getInjections(g):void 0;this._syncRegistry.addGrammar(A,j)}}async addGrammar(g,A=[],j=0,b=null){return this._syncRegistry.addGrammar(g,A),await this._grammarForScopeName(g.scopeName,j,b)}_grammarForScopeName(g,A=0,j=null,b=null,p=null){return this._syncRegistry.grammarForScopeName(g,A,j,b,p)}},a.INITIAL=i.StateStack.NULL,a.parseRawGrammar=N.parseRawGrammar},736:(m,a)=>{function L(w){return!!w&&!!w.match(/[\w\.:]+/)}Object.defineProperty(a,"__esModule",{value:!0}),a.createMatchers=void 0,a.createMatchers=function(w,S){const i=[],N=function(g){let A=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,j=A.exec(g);return{next:()=>{if(!j)return null;const b=j[0];return j=A.exec(g),b}}}(w);let h=N.next();for(;h!==null;){let g=0;if(h.length===2&&h.charAt(1)===":"){switch(h.charAt(0)){case"R":g=1;break;case"L":g=-1;break;default:console.log(`Unknown priority ${h} in scope selector`)}h=N.next()}let A=x();if(i.push({matcher:A,priority:g}),h!==",")break;h=N.next()}return i;function _(){if(h==="-"){h=N.next();const g=_();return A=>!!g&&!g(A)}if(h==="("){h=N.next();const g=function(){const A=[];let j=x();for(;j&&(A.push(j),h==="|"||h===",");){do h=N.next();while(h==="|"||h===",");j=x()}return b=>A.some(p=>p(b))}();return h===")"&&(h=N.next()),g}if(L(h)){const g=[];do g.push(h),h=N.next();while(L(h));return A=>S(g,A)}return null}function x(){const g=[];let A=_();for(;A;)g.push(A),A=_();return j=>g.every(b=>b(j))}}},44:(m,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.disposeOnigString=void 0,a.disposeOnigString=function(L){typeof L.dispose=="function"&&L.dispose()}},50:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.parseRawGrammar=void 0;const w=L(69),S=L(350),i=L(974);a.parseRawGrammar=function(N,h=null){return h!==null&&/\.json$/.test(h)?(_=N,x=h,S.DebugFlags.InDebugMode?i.parseJSON(_,x,!0):JSON.parse(_)):function(g,A){return S.DebugFlags.InDebugMode?w.parseWithLocation(g,A,"$vscodeTextmateLocation"):w.parsePLIST(g)}(N,h);var _,x}},69:(m,a)=>{function L(w,S,i){const N=w.length;let h=0,_=1,x=0;function g(R){if(i===null)h+=R;else for(;R>0;)w.charCodeAt(h)===10?(h++,_++,x=0):(h++,x++),R--}function A(R){i===null?h=R:g(R-h)}function j(){for(;h<N;){let R=w.charCodeAt(h);if(R!==32&&R!==9&&R!==13&&R!==10)break;g(1)}}function b(R){return w.substr(h,R.length)===R&&(g(R.length),!0)}function p(R){let Q=w.indexOf(R,h);A(Q!==-1?Q+R.length:N)}function l(R){let Q=w.indexOf(R,h);if(Q!==-1){let $=w.substring(h,Q);return A(Q+R.length),$}{let $=w.substr(h);return A(N),$}}N>0&&w.charCodeAt(0)===65279&&(h=1);let y=0,c=null,t=[],s=[],o=null;function r(R,Q){t.push(y),s.push(c),y=R,c=Q}function f(){if(t.length===0)return d("illegal state stack");y=t.pop(),c=s.pop()}function d(R){throw new Error("Near offset "+h+": "+R+" ~~~"+w.substr(h,50)+"~~~")}const k=function(){if(o===null)return d("missing <key>");let R={};i!==null&&(R[i]={filename:S,line:_,char:x}),c[o]=R,o=null,r(1,R)},T=function(){if(o===null)return d("missing <key>");let R=[];c[o]=R,o=null,r(2,R)},P=function(){let R={};i!==null&&(R[i]={filename:S,line:_,char:x}),c.push(R),r(1,R)},O=function(){let R=[];c.push(R),r(2,R)};function E(){if(y!==1)return d("unexpected </dict>");f()}function C(){return y===1||y!==2?d("unexpected </array>"):void f()}function U(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function G(R){if(isNaN(R))return d("cannot parse float");if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function H(R){if(isNaN(R))return d("cannot parse integer");if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function V(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function q(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function F(R){if(y===1){if(o===null)return d("missing <key>");c[o]=R,o=null}else y===2?c.push(R):c=R}function M(){let R=l(">"),Q=!1;return R.charCodeAt(R.length-1)===47&&(Q=!0,R=R.substring(0,R.length-1)),{name:R.trim(),isClosed:Q}}function D(R){if(R.isClosed)return"";let Q=l("</");return p(">"),Q.replace(/&#([0-9]+);/g,function($,ee){return String.fromCodePoint(parseInt(ee,10))}).replace(/&#x([0-9a-f]+);/g,function($,ee){return String.fromCodePoint(parseInt(ee,16))}).replace(/&|<|>|"|'/g,function($){switch($){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return $})}for(;h<N&&(j(),!(h>=N));){const R=w.charCodeAt(h);if(g(1),R!==60)return d("expected <");if(h>=N)return d("unexpected end of input");const Q=w.charCodeAt(h);if(Q===63){g(1),p("?>");continue}if(Q===33){if(g(1),b("--")){p("-->");continue}p(">");continue}if(Q===47){if(g(1),j(),b("plist")){p(">");continue}if(b("dict")){p(">"),E();continue}if(b("array")){p(">"),C();continue}return d("unexpected closed tag")}let $=M();switch($.name){case"dict":y===1?k():y===2?P():(c={},i!==null&&(c[i]={filename:S,line:_,char:x}),r(1,c)),$.isClosed&&E();continue;case"array":y===1?T():y===2?O():(c=[],r(2,c)),$.isClosed&&C();continue;case"key":J=D($),y!==1?d("unexpected <key>"):o!==null?d("too many <key>"):o=J;continue;case"string":U(D($));continue;case"real":G(parseFloat(D($)));continue;case"integer":H(parseInt(D($),10));continue;case"date":V(new Date(D($)));continue;case"data":q(D($));continue;case"true":D($),F(!0);continue;case"false":D($),F(!1);continue}if(!/^plist/.test($.name))return d("unexpected opened tag "+$.name)}var J;return c}Object.defineProperty(a,"__esModule",{value:!0}),a.parsePLIST=a.parseWithLocation=void 0,a.parseWithLocation=function(w,S,i){return L(w,S,i)},a.parsePLIST=function(w){return L(w,null,null)}},652:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SyncRegistry=void 0;const w=L(391);a.SyncRegistry=class{constructor(S,i){this._onigLibPromise=i,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=S}dispose(){for(const S of this._grammars.values())S.dispose()}setTheme(S){this._theme=S}getColorMap(){return this._theme.getColorMap()}addGrammar(S,i){this._rawGrammars.set(S.scopeName,S),i&&this._injectionGrammars.set(S.scopeName,i)}lookup(S){return this._rawGrammars.get(S)}injections(S){return this._injectionGrammars.get(S)}getDefaults(){return this._theme.getDefaults()}themeMatch(S){return this._theme.match(S)}async grammarForScopeName(S,i,N,h,_){if(!this._grammars.has(S)){let x=this._rawGrammars.get(S);if(!x)return null;this._grammars.set(S,w.createGrammar(S,x,i,N,h,_,this,await this._onigLibPromise))}return this._grammars.get(S)}}},792:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CompiledRule=a.RegExpSourceList=a.RegExpSource=a.RuleFactory=a.BeginWhileRule=a.BeginEndRule=a.IncludeOnlyRule=a.MatchRule=a.CaptureRule=a.Rule=a.ruleIdToNumber=a.ruleIdFromNumber=a.whileRuleId=a.endRuleId=void 0;const w=L(878),S=L(965),i=/\\(\d+)/,N=/\\(\d+)/g;a.endRuleId=-1,a.whileRuleId=-2,a.ruleIdFromNumber=function(c){return c},a.ruleIdToNumber=function(c){return c};class h{constructor(t,s,o,r){this.$location=t,this.id=s,this._name=o||null,this._nameIsCapturing=w.RegexSource.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=w.RegexSource.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${w.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,s){return this._nameIsCapturing&&this._name!==null&&t!==null&&s!==null?w.RegexSource.replaceCaptures(this._name,t,s):this._name}getContentName(t,s){return this._contentNameIsCapturing&&this._contentName!==null?w.RegexSource.replaceCaptures(this._contentName,t,s):this._contentName}}a.Rule=h;class _ extends h{constructor(t,s,o,r,f){super(t,s,o,r),this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(t,s){throw new Error("Not supported!")}compile(t,s){throw new Error("Not supported!")}compileAG(t,s,o,r){throw new Error("Not supported!")}}a.CaptureRule=_;class x extends h{constructor(t,s,o,r,f){super(t,s,o,null),this._match=new p(r,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,s){s.push(this._match)}compile(t,s){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t).compileAG(t,o,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new l,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}a.MatchRule=x;class g extends h{constructor(t,s,o,r,f){super(t,s,o,r),this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,s){for(const o of this.patterns)t.getRule(o).collectPatterns(t,s)}compile(t,s){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t).compileAG(t,o,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new l,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}a.IncludeOnlyRule=g;class A extends h{constructor(t,s,o,r,f,d,k,T,P,O){super(t,s,o,r),this._begin=new p(f,this.id),this.beginCaptures=d,this._end=new p(k||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=T,this.applyEndPatternLast=P||!1,this.patterns=O.patterns,this.hasMissingPatterns=O.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(t,s){return this._end.resolveBackReferences(t,s)}collectPatterns(t,s){s.push(this._begin)}compile(t,s){return this._getCachedCompiledPatterns(t,s).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t,s).compileAG(t,o,r)}_getCachedCompiledPatterns(t,s){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new l;for(const o of this.patterns)t.getRule(o).collectPatterns(t,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,s):this._cachedCompiledPatterns.setSource(0,s)),this._cachedCompiledPatterns}}a.BeginEndRule=A;class j extends h{constructor(t,s,o,r,f,d,k,T,P){super(t,s,o,r),this._begin=new p(f,this.id),this.beginCaptures=d,this.whileCaptures=T,this._while=new p(k,a.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=P.patterns,this.hasMissingPatterns=P.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(t,s){return this._while.resolveBackReferences(t,s)}collectPatterns(t,s){s.push(this._begin)}compile(t,s){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,s,o,r){return this._getCachedCompiledPatterns(t).compileAG(t,o,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new l;for(const s of this.patterns)t.getRule(s).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,s){return this._getCachedCompiledWhilePatterns(t,s).compile(t)}compileWhileAG(t,s,o,r){return this._getCachedCompiledWhilePatterns(t,s).compileAG(t,o,r)}_getCachedCompiledWhilePatterns(t,s){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new l,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,s||""),this._cachedCompiledWhilePatterns}}a.BeginWhileRule=j;class b{static createCaptureRule(t,s,o,r,f){return t.registerRule(d=>new _(s,d,o,r,f))}static getCompiledRuleId(t,s,o){return t.id||s.registerRule(r=>{if(t.id=r,t.match)return new x(t.$vscodeTextmateLocation,t.id,t.name,t.match,b._compileCaptures(t.captures,s,o));if(t.begin===void 0){t.repository&&(o=w.mergeObjects({},o,t.repository));let f=t.patterns;return f===void 0&&t.include&&(f=[{include:t.include}]),new g(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,b._compilePatterns(f,s,o))}return t.while?new j(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,b._compileCaptures(t.beginCaptures||t.captures,s,o),t.while,b._compileCaptures(t.whileCaptures||t.captures,s,o),b._compilePatterns(t.patterns,s,o)):new A(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,b._compileCaptures(t.beginCaptures||t.captures,s,o),t.end,b._compileCaptures(t.endCaptures||t.captures,s,o),t.applyEndPatternLast,b._compilePatterns(t.patterns,s,o))}),t.id}static _compileCaptures(t,s,o){let r=[];if(t){let f=0;for(const d in t){if(d==="$vscodeTextmateLocation")continue;const k=parseInt(d,10);k>f&&(f=k)}for(let d=0;d<=f;d++)r[d]=null;for(const d in t){if(d==="$vscodeTextmateLocation")continue;const k=parseInt(d,10);let T=0;t[d].patterns&&(T=b.getCompiledRuleId(t[d],s,o)),r[k]=b.createCaptureRule(s,t[d].$vscodeTextmateLocation,t[d].name,t[d].contentName,T)}}return r}static _compilePatterns(t,s,o){let r=[];if(t)for(let f=0,d=t.length;f<d;f++){const k=t[f];let T=-1;if(k.include){const P=S.parseInclude(k.include);switch(P.kind){case 0:case 1:T=b.getCompiledRuleId(o[k.include],s,o);break;case 2:let O=o[P.ruleName];O&&(T=b.getCompiledRuleId(O,s,o));break;case 3:case 4:const E=P.scopeName,C=P.kind===4?P.ruleName:null,U=s.getExternalGrammar(E,o);if(U)if(C){let G=U.repository[C];G&&(T=b.getCompiledRuleId(G,s,U.repository))}else T=b.getCompiledRuleId(U.repository.$self,s,U.repository)}}else T=b.getCompiledRuleId(k,s,o);if(T!==-1){const P=s.getRule(T);let O=!1;if((P instanceof g||P instanceof A||P instanceof j)&&P.hasMissingPatterns&&P.patterns.length===0&&(O=!0),O)continue;r.push(T)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}}a.RuleFactory=b;class p{constructor(t,s){if(t){const o=t.length;let r=0,f=[],d=!1;for(let k=0;k<o;k++)if(t.charAt(k)==="\\"&&k+1<o){const T=t.charAt(k+1);T==="z"?(f.push(t.substring(r,k)),f.push("$(?!\\n)(?<!\\n)"),r=k+2):T!=="A"&&T!=="G"||(d=!0),k++}this.hasAnchor=d,r===0?this.source=t:(f.push(t.substring(r,o)),this.source=f.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=s,this.hasBackReferences=i.test(this.source)}clone(){return new p(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,s){let o=s.map(r=>t.substring(r.start,r.end));return N.lastIndex=0,this.source.replace(N,(r,f)=>w.escapeRegExpCharacters(o[parseInt(f,10)]||""))}_buildAnchorCache(){let t,s,o,r,f=[],d=[],k=[],T=[];for(t=0,s=this.source.length;t<s;t++)o=this.source.charAt(t),f[t]=o,d[t]=o,k[t]=o,T[t]=o,o==="\\"&&t+1<s&&(r=this.source.charAt(t+1),r==="A"?(f[t+1]="",d[t+1]="",k[t+1]="A",T[t+1]="A"):r==="G"?(f[t+1]="",d[t+1]="G",k[t+1]="",T[t+1]="G"):(f[t+1]=r,d[t+1]=r,k[t+1]=r,T[t+1]=r),t++);return{A0_G0:f.join(""),A0_G1:d.join(""),A1_G0:k.join(""),A1_G1:T.join("")}}resolveAnchors(t,s){return this.hasAnchor&&this._anchorCache?t?s?this._anchorCache.A1_G1:this._anchorCache.A1_G0:s?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}a.RegExpSource=p;class l{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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,s){this._items[t].source!==s&&(this._disposeCaches(),this._items[t].setSource(s))}compile(t){if(!this._cached){let s=this._items.map(o=>o.source);this._cached=new y(t,s,this._items.map(o=>o.ruleId))}return this._cached}compileAG(t,s,o){return this._hasAnchors?s?o?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,s,o)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,s,o)),this._anchorCache.A1_G0):o?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,s,o)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,s,o)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,s,o){let r=this._items.map(f=>f.resolveAnchors(s,o));return new y(t,r,this._items.map(f=>f.ruleId))}}a.RegExpSourceList=l;class y{constructor(t,s,o){this.regExps=s,this.rules=o,this.scanner=t.createOnigScanner(s)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let s=0,o=this.rules.length;s<o;s++)t.push(" - "+this.rules[s]+": "+this.regExps[s]);return t.join(`
|
|
6
|
+
`)}findNextMatchSync(t,s,o){const r=this.scanner.findNextMatchSync(t,s,o);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}a.CompiledRule=y},583:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ThemeTrieElement=a.ThemeTrieElementRule=a.ColorMap=a.fontStyleToString=a.ParsedThemeRule=a.parseTheme=a.StyleAttributes=a.ScopeStack=a.Theme=void 0;const w=L(878);class S{constructor(p,l,y){this._colorMap=p,this._defaults=l,this._root=y,this._cachedMatchRoot=new w.CachedFn(c=>this._root.match(c))}static createFromRawTheme(p,l){return this.createFromParsedTheme(_(p),l)}static createFromParsedTheme(p,l){return function(y,c){y.sort((k,T)=>{let P=w.strcmp(k.scope,T.scope);return P!==0?P:(P=w.strArrCmp(k.parentScopes,T.parentScopes),P!==0?P:k.index-T.index)});let t=0,s="#000000",o="#ffffff";for(;y.length>=1&&y[0].scope==="";){let k=y.shift();k.fontStyle!==-1&&(t=k.fontStyle),k.foreground!==null&&(s=k.foreground),k.background!==null&&(o=k.background)}let r=new g(c),f=new h(t,r.getId(s),r.getId(o)),d=new j(new A(0,null,-1,0,0),[]);for(let k=0,T=y.length;k<T;k++){let P=y[k];d.insert(0,P.scope,P.parentScopes,P.fontStyle,r.getId(P.foreground),r.getId(P.background))}return new S(r,f,d)}(p,l)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(p){if(p===null)return this._defaults;const l=p.scopeName,y=this._cachedMatchRoot.get(l).find(c=>function(t,s){if(s===null)return!0;let o=0,r=s[o];for(;t;){if(N(t.scopeName,r)){if(o++,o===s.length)return!0;r=s[o]}t=t.parent}return!1}(p.parent,c.parentScopes));return y?new h(y.fontStyle,y.foreground,y.background):null}}a.Theme=S;class i{constructor(p,l){this.parent=p,this.scopeName=l}static from(...p){let l=null;for(let y=0;y<p.length;y++)l=new i(l,p[y]);return l}push(p){return new i(this,p)}getSegments(){let p=this;const l=[];for(;p;)l.push(p.scopeName),p=p.parent;return l.reverse(),l}toString(){return this.getSegments().join(" ")}}function N(b,p){return p===b||b.startsWith(p)&&b[p.length]==="."}a.ScopeStack=i;class h{constructor(p,l,y){this.fontStyle=p,this.foregroundId=l,this.backgroundId=y}}function _(b){if(!b)return[];if(!b.settings||!Array.isArray(b.settings))return[];let p=b.settings,l=[],y=0;for(let c=0,t=p.length;c<t;c++){let s,o=p[c];if(!o.settings)continue;if(typeof o.scope=="string"){let k=o.scope;k=k.replace(/^[,]+/,""),k=k.replace(/[,]+$/,""),s=k.split(",")}else s=Array.isArray(o.scope)?o.scope:[""];let r=-1;if(typeof o.settings.fontStyle=="string"){r=0;let k=o.settings.fontStyle.split(" ");for(let T=0,P=k.length;T<P;T++)switch(k[T]){case"italic":r|=1;break;case"bold":r|=2;break;case"underline":r|=4;break;case"strikethrough":r|=8}}let f=null;typeof o.settings.foreground=="string"&&w.isValidHexColor(o.settings.foreground)&&(f=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&w.isValidHexColor(o.settings.background)&&(d=o.settings.background);for(let k=0,T=s.length;k<T;k++){let P=s[k].trim().split(" "),O=P[P.length-1],E=null;P.length>1&&(E=P.slice(0,P.length-1),E.reverse()),l[y++]=new x(O,E,c,r,f,d)}}return l}a.StyleAttributes=h,a.parseTheme=_;class x{constructor(p,l,y,c,t,s){this.scope=p,this.parentScopes=l,this.index=y,this.fontStyle=c,this.foreground=t,this.background=s}}a.ParsedThemeRule=x,a.fontStyleToString=function(b){if(b===-1)return"not set";let p="";return 1&b&&(p+="italic "),2&b&&(p+="bold "),4&b&&(p+="underline "),8&b&&(p+="strikethrough "),p===""&&(p="none"),p.trim()};class g{constructor(p){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(p)){this._isFrozen=!0;for(let l=0,y=p.length;l<y;l++)this._color2id[p[l]]=l,this._id2color[l]=p[l]}else this._isFrozen=!1}getId(p){if(p===null)return 0;p=p.toUpperCase();let l=this._color2id[p];if(l)return l;if(this._isFrozen)throw new Error(`Missing color in color map - ${p}`);return l=++this._lastColorId,this._color2id[p]=l,this._id2color[l]=p,l}getColorMap(){return this._id2color.slice(0)}}a.ColorMap=g;class A{constructor(p,l,y,c,t){this.scopeDepth=p,this.parentScopes=l,this.fontStyle=y,this.foreground=c,this.background=t}clone(){return new A(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(p){let l=[];for(let y=0,c=p.length;y<c;y++)l[y]=p[y].clone();return l}acceptOverwrite(p,l,y,c){this.scopeDepth>p?console.log("how did this happen?"):this.scopeDepth=p,l!==-1&&(this.fontStyle=l),y!==0&&(this.foreground=y),c!==0&&(this.background=c)}}a.ThemeTrieElementRule=A;class j{constructor(p,l=[],y={}){this._mainRule=p,this._children=y,this._rulesWithParentScopes=l}static _sortBySpecificity(p){return p.length===1||p.sort(this._cmpBySpecificity),p}static _cmpBySpecificity(p,l){if(p.scopeDepth===l.scopeDepth){const y=p.parentScopes,c=l.parentScopes;let t=y===null?0:y.length,s=c===null?0:c.length;if(t===s)for(let o=0;o<t;o++){const r=y[o].length,f=c[o].length;if(r!==f)return f-r}return s-t}return l.scopeDepth-p.scopeDepth}match(p){if(p==="")return j._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let l,y,c=p.indexOf(".");return c===-1?(l=p,y=""):(l=p.substring(0,c),y=p.substring(c+1)),this._children.hasOwnProperty(l)?this._children[l].match(y):j._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(p,l,y,c,t,s){if(l==="")return void this._doInsertHere(p,y,c,t,s);let o,r,f,d=l.indexOf(".");d===-1?(o=l,r=""):(o=l.substring(0,d),r=l.substring(d+1)),this._children.hasOwnProperty(o)?f=this._children[o]:(f=new j(this._mainRule.clone(),A.cloneArr(this._rulesWithParentScopes)),this._children[o]=f),f.insert(p+1,r,y,c,t,s)}_doInsertHere(p,l,y,c,t){if(l!==null){for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let r=this._rulesWithParentScopes[s];if(w.strArrCmp(r.parentScopes,l)===0)return void r.acceptOverwrite(p,y,c,t)}y===-1&&(y=this._mainRule.fontStyle),c===0&&(c=this._mainRule.foreground),t===0&&(t=this._mainRule.background),this._rulesWithParentScopes.push(new A(p,l,y,c,t))}else this._mainRule.acceptOverwrite(p,y,c,t)}}a.ThemeTrieElement=j},878:(m,a)=>{function L(i){return Array.isArray(i)?function(N){let h=[];for(let _=0,x=N.length;_<x;_++)h[_]=L(N[_]);return h}(i):typeof i=="object"?function(N){let h={};for(let _ in N)h[_]=L(N[_]);return h}(i):i}Object.defineProperty(a,"__esModule",{value:!0}),a.performanceNow=a.CachedFn=a.escapeRegExpCharacters=a.isValidHexColor=a.strArrCmp=a.strcmp=a.RegexSource=a.basename=a.mergeObjects=a.clone=void 0,a.clone=function(i){return L(i)},a.mergeObjects=function(i,...N){return N.forEach(h=>{for(let _ in h)i[_]=h[_]}),i},a.basename=function i(N){const h=~N.lastIndexOf("/")||~N.lastIndexOf("\\");return h===0?N:~h==N.length-1?i(N.substring(0,N.length-1)):N.substr(1+~h)};let w=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function S(i,N){return i<N?-1:i>N?1:0}a.RegexSource=class{static hasCaptures(i){return i!==null&&(w.lastIndex=0,w.test(i))}static replaceCaptures(i,N,h){return i.replace(w,(_,x,g,A)=>{let j=h[parseInt(x||g,10)];if(!j)return _;{let b=N.substring(j.start,j.end);for(;b[0]===".";)b=b.substring(1);switch(A){case"downcase":return b.toLowerCase();case"upcase":return b.toUpperCase();default:return b}}})}},a.strcmp=S,a.strArrCmp=function(i,N){if(i===null&&N===null)return 0;if(!i)return-1;if(!N)return 1;let h=i.length,_=N.length;if(h===_){for(let x=0;x<h;x++){let g=S(i[x],N[x]);if(g!==0)return g}return 0}return h-_},a.isValidHexColor=function(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))},a.escapeRegExpCharacters=function(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},a.CachedFn=class{constructor(i){this.fn=i,this.cache=new Map}get(i){if(this.cache.has(i))return this.cache.get(i);const N=this.fn(i);return this.cache.set(i,N),N}},a.performanceNow=typeof performance>"u"?function(){return Date.now()}:function(){return performance.now()}}},n={};return function m(a){var L=n[a];if(L!==void 0)return L.exports;var w=n[a]={exports:{}};return v[a].call(w.exports,w,w.exports,m),w.exports}(787)})()})})(It);const Te=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","tsx","css","less","sass","scss","stylus"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",samplePath:"hcl.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",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",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",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",embeddedLangs:["css","less","scss","typescript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","yaml","toml","graphql"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var Ne=(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))(Ne||{});class K{static toBinaryStr(u){let v=u.toString(2);for(;v.length<32;)v="0"+v;return v}static printMetadata(u){let v=K.getLanguageId(u),n=K.getTokenType(u),m=K.getFontStyle(u),a=K.getForeground(u),L=K.getBackground(u);console.log({languageId:v,tokenType:n,fontStyle:m,foreground:a,background:L})}static getLanguageId(u){return(u&255)>>>0}static getTokenType(u){return(u&768)>>>8}static getFontStyle(u){return(u&14336)>>>11}static getForeground(u){return(u&8372224)>>>15}static getBackground(u){return(u&4286578688)>>>24}static containsBalancedBrackets(u){return(u&1024)!==0}static set(u,v,n,m,a,L){let w=K.getLanguageId(u),S=K.getTokenType(u),i=K.getFontStyle(u),N=K.getForeground(u),h=K.getBackground(u),_=K.containsBalancedBrackets(u)?1:0;return v!==0&&(w=v),n!==0&&(S=n===8?0:n),m!==-1&&(i=m),a!==0&&(N=a),L!==0&&(h=L),(w<<0|S<<8|i<<11|_<<10|N<<15|h<<24)>>>0}}function Ot(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Bt(e){return e.startsWith("./")?e.slice(2):e}function Ce(e){const u=e.split(/[\/\\]/g);return u.slice(0,u.length-1)}function He(...e){return e.map(Ot).map(Bt).join("/")}function Et(e,u){const v=new Map;for(const n of e){const m=u(n);v.has(m)?v.get(m).push(n):v.set(m,[n])}return v}function Gt(e,u=!1){const v=e.length;let n=0,m="",a=0,L=16,w=0,S=0,i=0,N=0,h=0;function _(l,y){let c=0,t=0;for(;c<l||!y;){let s=e.charCodeAt(n);if(s>=48&&s<=57)t=t*16+s-48;else if(s>=65&&s<=70)t=t*16+s-65+10;else if(s>=97&&s<=102)t=t*16+s-97+10;else break;n++,c++}return c<l&&(t=-1),t}function x(l){n=l,m="",a=0,L=16,h=0}function g(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&fe(e.charCodeAt(n)))for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;else return h=3,e.substring(l,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&fe(e.charCodeAt(n))){for(n++;n<e.length&&fe(e.charCodeAt(n));)n++;y=n}else h=3;return e.substring(l,y)}function A(){let l="",y=n;for(;;){if(n>=v){l+=e.substring(y,n),h=2;break}const c=e.charCodeAt(n);if(c===34){l+=e.substring(y,n),n++;break}if(c===92){if(l+=e.substring(y,n),n++,n>=v){h=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
|
|
7
|
+
`;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const s=_(4,!0);s>=0?l+=String.fromCharCode(s):h=4;break;default:h=5}y=n;continue}if(c>=0&&c<=31)if(Le(c)){l+=e.substring(y,n),h=2;break}else h=6;n++}return l}function j(){if(m="",h=0,a=n,S=w,N=i,n>=v)return a=v,L=17;let l=e.charCodeAt(n);if(xe(l)){do n++,m+=String.fromCharCode(l),l=e.charCodeAt(n);while(xe(l));return L=15}if(Le(l))return n++,m+=String.fromCharCode(l),l===13&&e.charCodeAt(n)===10&&(n++,m+=`
|
|
8
|
+
`),w++,i=n,L=14;switch(l){case 123:return n++,L=1;case 125:return n++,L=2;case 91:return n++,L=3;case 93:return n++,L=4;case 58:return n++,L=6;case 44:return n++,L=5;case 34:return n++,m=A(),L=10;case 47:const y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<v&&!Le(e.charCodeAt(n));)n++;return m=e.substring(y,n),L=12}if(e.charCodeAt(n+1)===42){n+=2;const c=v-1;let t=!1;for(;n<c;){const s=e.charCodeAt(n);if(s===42&&e.charCodeAt(n+1)===47){n+=2,t=!0;break}n++,Le(s)&&(s===13&&e.charCodeAt(n)===10&&n++,w++,i=n)}return t||(n++,h=1),m=e.substring(y,n),L=13}return m+=String.fromCharCode(l),n++,L=16;case 45:if(m+=String.fromCharCode(l),n++,n===v||!fe(e.charCodeAt(n)))return L=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return m+=g(),L=11;default:for(;n<v&&b(l);)n++,l=e.charCodeAt(n);if(a!==n){switch(m=e.substring(a,n),m){case"true":return L=8;case"false":return L=9;case"null":return L=7}return L=16}return m+=String.fromCharCode(l),n++,L=16}}function b(l){if(xe(l)||Le(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function p(){let l;do l=j();while(l>=12&&l<=15);return l}return{setPosition:x,getPosition:()=>n,scan:u?p:j,getToken:()=>L,getTokenValue:()=>m,getTokenOffset:()=>a,getTokenLength:()=>n-a,getTokenStartLine:()=>S,getTokenStartCharacter:()=>a-N,getTokenError:()=>h}}function xe(e){return e===32||e===9}function Le(e){return e===10||e===13}function fe(e){return e>=48&&e<=57}var Ge;(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"})(Ge||(Ge={}));var Ae;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ae||(Ae={}));function Mt(e,u=[],v=Ae.DEFAULT){let n=null,m=[];const a=[];function L(S){Array.isArray(m)?m.push(S):n!==null&&(m[n]=S)}return Dt(e,{onObjectBegin:()=>{const S={};L(S),a.push(m),m=S,n=null},onObjectProperty:S=>{n=S},onObjectEnd:()=>{m=a.pop()},onArrayBegin:()=>{const S=[];L(S),a.push(m),m=S,n=null},onArrayEnd:()=>{m=a.pop()},onLiteralValue:L,onError:(S,i,N)=>{u.push({error:S,offset:i,length:N})}},v),m[0]}function Dt(e,u,v=Ae.DEFAULT){const n=Gt(e,!1),m=[];function a(k){return k?()=>k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function L(k){return k?()=>k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>m.slice()):()=>!0}function w(k){return k?T=>k(T,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function S(k){return k?T=>k(T,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>m.slice()):()=>!0}const i=L(u.onObjectBegin),N=S(u.onObjectProperty),h=a(u.onObjectEnd),_=L(u.onArrayBegin),x=a(u.onArrayEnd),g=S(u.onLiteralValue),A=w(u.onSeparator),j=a(u.onComment),b=w(u.onError),p=v&&v.disallowComments,l=v&&v.allowTrailingComma;function y(){for(;;){const k=n.scan();switch(n.getTokenError()){case 4:c(14);break;case 5:c(15);break;case 3:c(13);break;case 1:p||c(11);break;case 2:c(12);break;case 6:c(16);break}switch(k){case 12:case 13:p?c(10):j();break;case 16:c(1);break;case 15:case 14:break;default:return k}}}function c(k,T=[],P=[]){if(b(k),T.length+P.length>0){let O=n.getToken();for(;O!==17;){if(T.indexOf(O)!==-1){y();break}else if(P.indexOf(O)!==-1)break;O=y()}}}function t(k){const T=n.getTokenValue();return k?g(T):(N(T),m.push(T)),y(),!0}function s(){switch(n.getToken()){case 11:const k=n.getTokenValue();let T=Number(k);isNaN(T)&&(c(2),T=0),g(T);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return y(),!0}function o(){return n.getToken()!==10?(c(3,[],[2,5]),!1):(t(!1),n.getToken()===6?(A(":"),y(),d()||c(4,[],[2,5])):c(5,[],[2,5]),m.pop(),!0)}function r(){i(),y();let k=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(k||c(4,[],[]),A(","),y(),n.getToken()===2&&l)break}else k&&c(6,[],[]);o()||c(4,[],[2,5]),k=!0}return h(),n.getToken()!==2?c(7,[2],[]):y(),!0}function f(){_(),y();let k=!0,T=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(T||c(4,[],[]),A(","),y(),n.getToken()===4&&l)break}else T&&c(6,[],[]);k?(m.push(0),k=!1):m[m.length-1]++,d()||c(4,[],[4,5]),T=!0}return x(),k||m.pop(),n.getToken()!==4?c(8,[4],[]):y(),!0}function d(){switch(n.getToken()){case 3:return f();case 1:return r();case 10:return t(!0);default:return s()}}return y(),n.getToken()===17?v.allowEmptyContent?!0:(c(4,[],[]),!1):d()?(n.getToken()!==17&&c(9,[],[]),!0):(c(4,[],[]),!1)}var Me;(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"})(Me||(Me={}));var De;(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"})(De||(De={}));const Ft=Mt;var Fe;(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"})(Fe||(Fe={}));"process"in globalThis&&typeof process<"u"&&typeof process.release<"u"&&process.release.name;let Ve="";const $t="dist/";function Ut(e){Ve=e.endsWith("/")?e:e+"/"}let Re=null;async function Wt(e){if(!Re){let u;u=ve.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(Qe(He(...Ce(e),"onig.wasm")))}),Re=u.then(()=>({createOnigScanner(v){return ve.createOnigScanner(v)},createOnigString(v){return ve.createOnigString(v)}}))}return Re}function Qe(e){return`${Ve}${e}`}async function qt(e){const u=Qe(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(u).then(v=>v.text())}async function Je(e){const u=[],v=Ft(await qt(e),u,{allowTrailingComma:!0});if(u.length)throw u[0];return v}async function Xe(e){let u=await Je(e);const v=Ye(u);if(v.include){const n=await Xe(He(...Ce(e),v.include));n.settings&&(v.settings=n.settings.concat(v.settings)),n.bg&&!v.bg&&(v.bg=n.bg),n.colors&&(v.colors={...n.colors,...v.colors}),delete v.include}return v}async function zt(e){return await Je(e)}function Ct(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 Ye(e){const u=e.type||"dark",v={name:e.name,type:u,...e,...Ht(e)};return e.include&&(v.include=e.include),e.tokenColors&&(v.settings=e.tokenColors,delete v.tokenColors),Ct(v),v}const $e={light:"#333333",dark:"#bbbbbb"},Ue={light:"#fffffe",dark:"#1e1e1e"};function Ht(e){let u,v,n=e.settings?e.settings:e.tokenColors;const m=n?n.find(a=>!a.name&&!a.scope):void 0;return m?.settings?.foreground&&(u=m.settings.foreground),m?.settings?.background&&(v=m.settings.background),!u&&e?.colors?.["editor.foreground"]&&(u=e.colors["editor.foreground"]),!v&&e?.colors?.["editor.background"]&&(v=e.colors["editor.background"]),u||(u=e.type==="light"?$e.light:$e.dark),v||(v=e.type==="light"?Ue.light:Ue.dark),{fg:u,bg:v}}class Vt{constructor(u,v){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=u,this._onigLibName=v}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(u){return this.languageMap[u]}async loadGrammar(u){const v=this.scopeToLangMap[u];if(!v)return null;if(v.grammar)return v.grammar;const n=await zt(Te.includes(v)?`${this.languagesPath}${v.path}`:v.path);return v.grammar=n,n}addLanguage(u){this.languageMap[u.id]=u,u.aliases&&u.aliases.forEach(v=>{this.languageMap[v]=u}),this.scopeToLangMap[u.scopeName]=u}}function Qt(e,u,v,n,m){let a=v.split(/\r\n|\r|\n/),L=je.INITIAL,w=[],S=[];for(let i=0,N=a.length;i<N;i++){let h=a[i];if(h===""){w=[],S.push([]);continue}let _,x,g;m.includeExplanation&&(_=n.tokenizeLine(h,L),x=_.tokens,g=0);let A=n.tokenizeLine2(h,L),j=A.tokens.length/2;for(let b=0;b<j;b++){let p=A.tokens[2*b],l=b+1<j?A.tokens[2*b+2]:h.length;if(p===l)continue;let y=A.tokens[2*b+1],c=K.getForeground(y),t=u[c],s=K.getFontStyle(y),o=[];if(m.includeExplanation){let r=0;for(;p+r<l;){let f=x[g],d=h.substring(f.startIndex,f.endIndex);r+=d.length,o.push({content:d,scopes:Jt(e,f.scopes)}),g++}}w.push({content:h.substring(p,l),color:t,fontStyle:s,explanation:o})}S.push(w),w=[],L=A.ruleStack}return S}function Jt(e,u){let v=[];for(let n=0,m=u.length;n<m;n++){let a=u.slice(0,n),L=u[n];v[n]={scopeName:L,themeMatches:Yt(e,L,a)}}return v}function We(e,u){let v=e+".";return e===u||u.substring(0,v.length)===v}function Xt(e,u,v,n){if(!We(e,v))return!1;let m=u.length-1,a=n.length-1;for(;m>=0&&a>=0;)We(u[m],n[a])&&m--,a--;return m===-1}function Yt(e,u,v){let n=[],m=0;for(let a=0,L=e.settings.length;a<L;a++){let w=e.settings[a],S;if(typeof w.scope=="string")S=w.scope.split(/,/).map(i=>i.trim());else if(Array.isArray(w.scope))S=w.scope;else continue;for(let i=0,N=S.length;i<N;i++){let _=S[i].split(/ /),x=_[_.length-1],g=_.slice(0,_.length-1);Xt(x,g,u,v)&&(n[m++]=w,i=N)}}return n}const Zt={pre({className:e,style:u,children:v}){return`<pre class="${e}" style="${u}">${v}</pre>`},code({children:e}){return`<code>${e}</code>`},line({className:e,children:u}){return`<span class="${e}">${u}</span>`},token({style:e,children:u}){return`<span style="${e}">${u}</span>`}};function Kt(e,u={}){const v=u.bg||"#fff",n=Et(u.lineOptions??[],L=>L.line),m=u.elements||{};function a(L="",w={},S){const i=m[L]||Zt[L];return i?(S=S.filter(Boolean),i({...w,children:L==="code"?S.join(`
|
|
9
|
+
`):S.join("")})):""}return a("pre",{className:"shiki "+(u.themeName||""),style:`background-color: ${v}`},[u.langId?`<div class="language-id">${u.langId}</div>`:"",a("code",{},e.map((L,w)=>{const S=w+1,i=n.get(S)??[],N=nn(i).join(" ");return a("line",{className:N,lines:e,line:L,index:w},L.map((h,_)=>{const x=[`color: ${h.color||u.fg}`];return h.fontStyle&Ne.Italic&&x.push("font-style: italic"),h.fontStyle&Ne.Bold&&x.push("font-weight: bold"),h.fontStyle&Ne.Underline&&x.push("text-decoration: underline"),a("token",{style:x.join("; "),tokens:L,token:h,index:_},[tn(h.content)])}))}))])}const en={"&":"&","<":"<",">":">",'"':""","'":"'"};function tn(e){return e.replace(/[&<>"']/g,u=>en[u])}function nn(e){const u=new Set(["line"]);for(const v of e)for(const n of v.classes??[])u.add(n);return Array.from(u)}class sn extends je.Registry{constructor(u){super(u),this._resolver=u,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Te.reduce((v,n)=>(v[n.id]=n,v),{})}getTheme(u){return typeof u=="string"?this._resolvedThemes[u]:u}async loadTheme(u){return typeof u=="string"?(this._resolvedThemes[u]||(this._resolvedThemes[u]=await Xe(`${this.themesPath}${u}.json`)),this._resolvedThemes[u]):(u=Ye(u),u.name&&(this._resolvedThemes[u.name]=u),u)}async loadThemes(u){return await Promise.all(u.map(v=>this.loadTheme(v)))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(u){return this._resolvedGrammars[u]}async loadLanguage(u){const n={embeddedLanguages:u.embeddedLangs?.reduce(async(a,L,w)=>{if(!this.getLoadedLanguages().includes(L)&&this._resolver.getLangRegistration(L))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(L).scopeName),a[this._resolver.getLangRegistration(L).scopeName]=w+2,a},{}),balancedBracketSelectors:u.balancedBracketSelectors||["*"],unbalancedBracketSelectors:u.unbalancedBracketSelectors||[]},m=await this.loadGrammarWithConfiguration(u.scopeName,1,n);this._resolvedGrammars[u.id]=m,u.aliases&&u.aliases.forEach(a=>{this._resolvedGrammars[a]=m})}async loadLanguages(u){for(const n of u)this.resolveEmbeddedLanguages(n);const v=Array.from(this._langGraph.values());for(const n of v)this._resolver.addLanguage(n);for(const n of v)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(u){if(this._langGraph.has(u.id)||this._langGraph.set(u.id,u),u.embeddedLangs)for(const v of u.embeddedLangs)this._langGraph.set(v,this._langMap[v])}}function Ze(e){return typeof e=="string"?Te.find(u=>u.id===e||u.aliases?.includes(e)):e}function rn(e){let u=Te,v=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":$t;return e.langs&&(u=e.langs.map(Ze)),e.theme&&v.unshift(e.theme),v.length||(v=["nord"]),{_languages:u,_themes:v,_wasmPath:n}}async function an(e){const{_languages:u,_themes:v,_wasmPath:n}=rn(e),m=new Vt(Wt(n),"vscode-oniguruma"),a=new sn(m);e.paths?.themes&&(a.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(m.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const w=(await a.loadThemes(v))[0];let S;await a.loadLanguages(u);let i={"#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)"};function N(t){i=t}function h(t,s){t.bg=i[t.bg]||t.bg,t.fg=i[t.fg]||t.fg,s.forEach((o,r)=>{s[r]=i[o]||o})}function _(t){const s=t?a.getTheme(t):w;if(!s)throw Error(`No theme registration for ${t}`);(!S||S.name!==s.name)&&(a.setTheme(s),S=s);const o=a.getColorMap();return s.type==="css"&&h(s,o),{_theme:s,_colorMap:o}}function x(t){const s=a.getGrammar(t);if(!s)throw Error(`No language registration for ${t}`);return{_grammar:s}}function g(t,s="text",o,r={includeExplanation:!0}){if(on(s))return[...t.split(/\r\n|\r|\n/).map(P=>[{content:P}])];const{_grammar:f}=x(s),{_theme:d,_colorMap:k}=_(o);return Qt(d,k,t,f,r)}function A(t,s="text",o){let r;typeof s=="object"?r=s:r={lang:s,theme:o};const f=g(t,r.lang,r.theme,{includeExplanation:!1}),{_theme:d}=_(r.theme);return Kt(f,{fg:d.fg,bg:d.bg,lineOptions:r?.lineOptions,themeName:d.name})}async function j(t){await a.loadTheme(t)}async function b(t){const s=Ze(t);m.addLanguage(s),await a.loadLanguage(s)}function p(){return a.getLoadedThemes()}function l(){return a.getLoadedLanguages()}function y(t){const{_theme:s}=_(t);return s.bg}function c(t){const{_theme:s}=_(t);return s.fg}return{codeToThemedTokens:g,codeToHtml:A,getTheme:t=>_(t)._theme,loadTheme:j,loadLanguage:b,getBackgroundColor:y,getForegroundColor:c,getLoadedThemes:p,getLoadedLanguages:l,setColorReplacements:N}}function on(e){return!e||["plaintext","txt","text"].includes(e)}const cn="0.2.0";Ut(`https://cdn.jsdelivr.net/npm/shiki-es@${cn}/dist/assets/`);const Ie=Pe();an({themes:["vitesse-dark","vitesse-light"],langs:["css","javascript","typescript"]}).then(e=>{Ie.value=e});function ln(e,u){const v=mt();return Ie.value?Ie.value.codeToHtml(e,{lang:u,theme:v.value==="dark"?"vitesse-dark":"vitesse-light"}):e}const un={grid:"~ cols-[auto_1fr]","h-full":"","of-hidden":"",class:"virtual-files"},hn={border:"r base","of-auto":"","resize-x":"",w:"300px"},pn={pb2:"",p3:""},gn={key:0,"h-full":"","of-hidden":"",flex:"~ col"},dn={border:"b base",px4:"",py2:"","text-sm":"",op75:"","flex-none":""},mn=["innerHTML"],fn={key:1,flex:"","items-center":"","justify-center":"",op50:""},Sn=nt({__name:"virtual-files",async setup(e){let u,v;const n=Pe(""),{data:m}=([u,v]=st(()=>Rt("/_vfs.json",{key:"vfs-list",baseURL:"/",responseType:"json"},"$3wSzD6RdXF")),u=await u,v(),u),a=we(()=>rt().query?.id),L=Pe();at(()=>{if(!a.value)return;const h=`/_vfs.json/${encodeURIComponent(a.value)}`;fetch(h).then(_=>_.json()).then(_=>L.value=_.current)});function w(h){if(m.value?.rootDir)return h.startsWith(m.value?.rootDir)?h.slice(m.value.rootDir.length):h}const S=we(()=>m.value?m.value.entries.filter(h=>!h.id.startsWith(`${m.value?.rootDir||""}/.nuxt/`)).sort((h,_)=>h.id.localeCompare(_.id)):[]),i=we(()=>new ft(S.value,{keys:["id","path"]})),N=we(()=>n.value?i.value.search(n.value).map(h=>h.item):S.value);return(h,_)=>{const x=Ke,g=et;return ke(),Se("div",un,[ye("div",hn,[ye("div",pn,[it(x,{modelValue:ne(n),"onUpdate:modelValue":_[0]||(_[0]=A=>ot(n)?n.value=A:null),icon:"carbon-search",placeholder:"Search...",n:"primary"},null,8,["modelValue"])]),(ke(!0),Se(ct,null,lt(ne(N),A=>(ke(),ut(g,{key:A.id,border:"b base",px2:"",py1:"","text-sm":"","font-mono":"",block:"",truncate:"",to:`/modules/virtual-files?id=${encodeURIComponent(A.id)}`,class:gt(A.id===ne(L)?.id?"bg-truegray:20 text-base":"text-truegray")},{default:ht(()=>[pt(Be(w(A.id)),1)]),_:2},1032,["to","class"]))),128))]),ne(L)?.content?(ke(),Se("div",gn,[ye("div",dn,[ye("code",null,Be(ne(L).id),1)]),ye("pre",{"of-auto":"","h-full":"","text-sm":"",innerHTML:("highlight"in h?h.highlight:ne(ln))(ne(L)?.content,"typescript")},null,8,mn)])):(ke(),Se("span",fn,"Select one file to start"))])}}});export{Sn as default};
|