vitepress-openapi 0.2.11 → 0.2.13
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/dist/{OAJSONEditor-DMDZUFqm.cjs → OAJSONEditor-B27HNYxA.cjs} +4 -4
- package/dist/{OAJSONEditor-BTGtvci-.js → OAJSONEditor-Cxpub1dW.js} +7 -7
- package/dist/{angular-html-DNIOHlGh.cjs → angular-html-BoKsRe8T.cjs} +1 -1
- package/dist/{angular-html-BQID9WhU.js → angular-html-D5QwJSjx.js} +2 -2
- package/dist/{angular-ts-CDXMy72c.js → angular-ts-B0kZpGGd.js} +2 -2
- package/dist/{angular-ts-TtL5PHiu.cjs → angular-ts-CXuTnAMH.cjs} +1 -1
- package/dist/{apl-aiTHik1p.js → apl-CO2hi6pu.js} +5 -5
- package/dist/{apl-CHXP_PuI.cjs → apl-CjAWNKej.cjs} +1 -1
- package/dist/{astro-Bs6LKdLd.cjs → astro-C6WzLepe.cjs} +1 -1
- package/dist/{astro-Bk0EGHbZ.js → astro-C8AbPvmY.js} +5 -5
- package/dist/{blade-dcNVF1Xb.js → blade-B3TXqIqP.js} +7 -7
- package/dist/{blade-Cv7NuX7S.cjs → blade-bJOeoSe0.cjs} +1 -1
- package/dist/c-BCyoZ90X.cjs +1 -0
- package/dist/{c-COk7hDJA.js → c-BTzN4Ylc.js} +1 -1
- package/dist/{chapel-Bj11wkLP.cjs → chapel-D3SOeXgF.cjs} +1 -1
- package/dist/{chapel-BHO5Jgs1.js → chapel-DqUUkRYq.js} +1 -1
- package/dist/{cobol-D29hA4_9.js → cobol-DFLW8ca0.js} +2 -2
- package/dist/{cobol-B2PKMb5_.cjs → cobol-dlQjEakv.cjs} +1 -1
- package/dist/{coffee-DBMuDZbT.js → coffee-1KoIHtzW.js} +1 -1
- package/dist/{coffee-TE_xgObZ.cjs → coffee-TUzF5uor.cjs} +1 -1
- package/dist/{core-CEXh5eq0.js → core-CSILRXKH.js} +114 -114
- package/dist/{core-BPyqqKDB.cjs → core-x4pNOQS7.cjs} +3 -3
- package/dist/{cpp-Drml9yi6.cjs → cpp-tnOfy09q.cjs} +1 -1
- package/dist/{cpp-BSp0ExOJ.js → cpp-yEMsPd-1.js} +3 -3
- package/dist/{crystal-BxHtn_X1.js → crystal-CENIitzj.js} +6 -6
- package/dist/{crystal-T6SYXb8o.cjs → crystal-D_nHX3jS.cjs} +1 -1
- package/dist/css-02TmpFbt.cjs +1 -0
- package/dist/{css-B4-pOoLE.js → css-B-WLUKlS.js} +1 -1
- package/dist/{dist-8gEJqHbm.cjs → dist-BxzxjMCz.cjs} +5 -5
- package/dist/{dist-BdFVNebX.js → dist-C1v4Xm4x.js} +1 -1
- package/dist/{edge-CH9qUYIG.js → edge-BEj_2N8x.js} +3 -3
- package/dist/{edge-BPRyfS4T.cjs → edge-f2PDRzgK.cjs} +1 -1
- package/dist/{elixir-CYNNAueU.cjs → elixir-CIcaqRsY.cjs} +1 -1
- package/dist/{elixir-IMwLX-5a.js → elixir-CQkxmVTM.js} +1 -1
- package/dist/{elm-CsSGOCo2.cjs → elm-7G0I-hE6.cjs} +1 -1
- package/dist/{elm-8i0ndpf8.js → elm-DzGi_nR3.js} +1 -1
- package/dist/{engine-javascript-BA-lwMk1.cjs → engine-javascript-C27eFBsG.cjs} +2 -2
- package/dist/{engine-javascript-B8eiD8I_.js → engine-javascript-Jp6ImdBF.js} +1 -1
- package/dist/{erb-CCijh5g_.cjs → erb-B9-cGaTm.cjs} +1 -1
- package/dist/{erb-B3JdRKLz.js → erb-COP2UPZ7.js} +2 -2
- package/dist/{git-rebase-s4xgRin3.js → git-rebase-DTYLKCWV.js} +1 -1
- package/dist/{git-rebase-CqTcx364.cjs → git-rebase-Ku61ihN2.cjs} +1 -1
- package/dist/{glimmer-js-BRlqJZKJ.js → glimmer-js-D29AEl8t.js} +4 -4
- package/dist/{glimmer-js-BmyOid01.cjs → glimmer-js-izmglT1O.cjs} +1 -1
- package/dist/{glimmer-ts-Cr-avsOb.cjs → glimmer-ts-DJ1fakxz.cjs} +1 -1
- package/dist/{glimmer-ts-_bCiLZ83.js → glimmer-ts-DYj3qCHB.js} +4 -4
- package/dist/glsl-BGTPqLyQ.cjs +1 -0
- package/dist/{glsl-DEotYDrM.js → glsl-Bc6nFncG.js} +2 -2
- package/dist/graphql-DdYH_Rp2.cjs +1 -0
- package/dist/{graphql-Eb9BjU5l.js → graphql-Ds5Ubte9.js} +5 -5
- package/dist/{hack-qsr2p76N.js → hack-B6E-ISVN.js} +2 -2
- package/dist/{hack-BzUM5t5Z.cjs → hack-DlUSG6ek.cjs} +1 -1
- package/dist/haml-D-xAsnlc.cjs +1 -0
- package/dist/{haml-C9NgGuR7.js → haml-DSK5muqV.js} +3 -3
- package/dist/{handlebars-B3AlHew8.cjs → handlebars-BxmkFTU3.cjs} +1 -1
- package/dist/{handlebars-DKLGUOgk.js → handlebars-CGjGomme.js} +4 -4
- package/dist/html-BYiFDapk.cjs +1 -0
- package/dist/{html-b1x-0Sjo.js → html-DvKVaMAh.js} +3 -3
- package/dist/{html-derivative-D5RWFbq-.js → html-derivative--Yb6fTDM.js} +1 -1
- package/dist/{html-derivative-D4EoT0cZ.cjs → html-derivative-Due6nHaa.cjs} +1 -1
- package/dist/{http-CL9xVX7f.cjs → http-BDb2okFn.cjs} +1 -1
- package/dist/{http-Cu3ENe5f.js → http-Wf5dll9t.js} +4 -4
- package/dist/{hurl-n9N1IzC8.js → hurl-1Afa28rK.js} +2 -2
- package/dist/{hurl-CWH_45Jf.cjs → hurl-Ds566NU_.cjs} +1 -1
- package/dist/{java-DsOZx36s.js → java-DMU2lkyP.js} +1 -1
- package/dist/java-DwnayQnb.cjs +1 -0
- package/dist/javascript-CSKossUl.cjs +1 -0
- package/dist/{javascript-BeZuSKue.js → javascript-CkOfli2O.js} +1 -1
- package/dist/{jinja-BZOrYxA1.js → jinja-C_EeM5kX.js} +1 -1
- package/dist/{jinja-C3xeiIjm.cjs → jinja-D65--viX.cjs} +1 -1
- package/dist/{jison-BswhHWc-.cjs → jison-CgJDwgW4.cjs} +1 -1
- package/dist/{jison-CJd90rxW.js → jison-D5yGxh57.js} +1 -1
- package/dist/{js-yaml-Bd7r_XRf.js → js-yaml-CA-Iojzo.js} +1 -1
- package/dist/{js-yaml-BP7bOeG0.cjs → js-yaml-uHYMr7LM.cjs} +1 -1
- package/dist/json-DMvxal4O.cjs +1 -0
- package/dist/{json-BYngJnVq.js → json-DnSlp2pP.js} +1 -1
- package/dist/jsx-CJAVXoYP.cjs +1 -0
- package/dist/{jsx-DD3WDGak.js → jsx-DIHyTcyM.js} +1 -1
- package/dist/{julia-CQHqjN9U.cjs → julia-Upv7yuF3.cjs} +1 -1
- package/dist/{julia-BbEQUnh9.js → julia-pnYWyN4H.js} +4 -4
- package/dist/{just-CC-2RAnt.js → just-Rux3ihaI.js} +5 -5
- package/dist/{just-BtQy4COc.cjs → just-kcvRoQaC.cjs} +1 -1
- package/dist/{latex-DI79tfSU.js → latex-BNmmGRr9.js} +1 -1
- package/dist/{latex-Dc8GmMF-.cjs → latex-ssVj4acX.cjs} +1 -1
- package/dist/lib-DtBHFGXA.cjs +1 -0
- package/dist/{lib-Bm75kWfF.js → lib-DuAv3NcE.js} +1 -1
- package/dist/{liquid-CQgClb2e.js → liquid-CkFTSuz5.js} +4 -4
- package/dist/{liquid-BaVa8jbp.cjs → liquid-D9-xfAH9.cjs} +1 -1
- package/dist/{lua-Aa6xlS3m.js → lua-BPZzb4jg.js} +2 -2
- package/dist/lua-CbILlNRp.cjs +1 -0
- package/dist/{marko-a44Rx8oD.cjs → marko-CckGih8c.cjs} +1 -1
- package/dist/{marko-CnoSbnyW.js → marko-U5lgzX4W.js} +3 -3
- package/dist/{mdc-DDEndBZK.cjs → mdc-CIgbmpvb.cjs} +1 -1
- package/dist/{mdc-yfhLFlW0.js → mdc-ftW0jKss.js} +2 -2
- package/dist/{nginx-DlNKblVY.js → nginx-CO6FbhYm.js} +1 -1
- package/dist/{nginx-D1dqVYm1.cjs → nginx-pp3BriFA.cjs} +1 -1
- package/dist/{nim-DF1HAFuL.js → nim-CJpN9IuJ.js} +6 -6
- package/dist/{nim-BD5WfdQE.cjs → nim-xNROytAe.cjs} +1 -1
- package/dist/{org-BxOhd5H8.js → org-BLgfq4oa.js} +26 -26
- package/dist/{org-D39t4cfx.cjs → org-BfvkBzjQ.cjs} +1 -1
- package/dist/{perl-ChFS9GSw.js → perl-4iy1AzjP.js} +5 -5
- package/dist/{perl-BvvR-UBE.cjs → perl-gYxlBF7Z.cjs} +1 -1
- package/dist/{php-99Ucsqtp.cjs → php-D7tWq26a.cjs} +1 -1
- package/dist/{php-BlFx1-Cw.js → php-DBpFECnW.js} +6 -6
- package/dist/{pug-DoeArbRk.js → pug-B3SC-VJn.js} +3 -3
- package/dist/{pug-DsD7dGZV.cjs → pug-CYLX2lIo.cjs} +1 -1
- package/dist/{qml-Cud5ERAo.js → qml-BJryVNLB.js} +1 -1
- package/dist/{qml-BmSeqgID.cjs → qml-CjtYDlYC.cjs} +1 -1
- package/dist/{r-BUvWMIiI.js → r-CO3AGhxE.js} +1 -1
- package/dist/r-DKRgTYMs.cjs +1 -0
- package/dist/{razor-csAIEUlG.cjs → razor-Cjwm6SbM.cjs} +1 -1
- package/dist/{razor-B9XjYQDL.js → razor-fizwqQUn.js} +1 -1
- package/dist/regexp-BbrbtHcV.cjs +1 -0
- package/dist/{regexp-BgOYBevC.js → regexp-BlBS23LV.js} +1 -1
- package/dist/{rst-DlKl41_0.js → rst-CQ-BOew2.js} +6 -6
- package/dist/{rst-Cp5naB83.cjs → rst-uzixnQEN.cjs} +1 -1
- package/dist/{ruby-BF0WTTH3.js → ruby-DYscwpKq.js} +12 -12
- package/dist/{ruby-CkdMUJEH.cjs → ruby-DcF3FpOo.cjs} +1 -1
- package/dist/{sas-14QiNRYQ.cjs → sas-CQkHM7U4.cjs} +1 -1
- package/dist/{sas-C6FSUZ8u.js → sas-xf7cYJ8D.js} +1 -1
- package/dist/scss-B6SEboBH.cjs +1 -0
- package/dist/{scss-CCWZPu2R.js → scss-D5Ro0FPj.js} +2 -2
- package/dist/{shellscript-DZCVULM8.js → shellscript-DVhVbKuT.js} +1 -1
- package/dist/shellscript-UM_LESkp.cjs +1 -0
- package/dist/{shellsession-BqWcPKhV.cjs → shellsession-CfBYvvpU.cjs} +1 -1
- package/dist/{shellsession-BN3RSO1C.js → shellsession-DCV0F4Wc.js} +1 -1
- package/dist/{soy-Du5nNttL.js → soy-DqvPS_mm.js} +1 -1
- package/dist/{soy-CABMyeew.cjs → soy-HCmyBkD1.cjs} +1 -1
- package/dist/sql-B2O4UoSw.cjs +1 -0
- package/dist/{sql-CYkpqzkZ.js → sql-C8Kl76rR.js} +1 -1
- package/dist/{stata-C2nzzUtY.cjs → stata-B1WKRY4L.cjs} +1 -1
- package/dist/{stata-CTsPxspI.js → stata-CJiPjcNk.js} +1 -1
- package/dist/{surrealql-Do7t2lbF.js → surrealql-1H6TjudE.js} +1 -1
- package/dist/{surrealql-Czd_jpdF.cjs → surrealql-D34WxIUj.cjs} +1 -1
- package/dist/{svelte-DCXhqWK2.cjs → svelte-BdqWwltV.cjs} +1 -1
- package/dist/{svelte-BsAqSY0W.js → svelte-CIN2FBHe.js} +3 -3
- package/dist/{templ-CizIGDIX.cjs → templ-DRfIS7Yk.cjs} +1 -1
- package/dist/{templ-CiuTNFNN.js → templ-DfCxDv8S.js} +2 -2
- package/dist/{tex-BQ--pZc4.js → tex-BTjGzapI.js} +2 -2
- package/dist/tex-W_Dxzamg.cjs +1 -0
- package/dist/{ts-tags-_na8tAcU.js → ts-tags-CV7DYDTm.js} +7 -7
- package/dist/{ts-tags-Cj-sekFe.cjs → ts-tags-T_iDSaWH.cjs} +1 -1
- package/dist/tsx-B3iFrpuZ.cjs +1 -0
- package/dist/{tsx-Be52Rwki.js → tsx-C9xVNnaW.js} +1 -1
- package/dist/{twig-CqrXvA-X.js → twig-C4i_cRPo.js} +5 -5
- package/dist/{twig-CBOETUN2.cjs → twig-D914CUNQ.cjs} +1 -1
- package/dist/types/src/components/Feature/OAOperation.vue.d.ts +3 -1
- package/dist/types/src/components/Feature/OAOperationContent.vue.d.ts +2 -2
- package/dist/types/src/components/Feature/OASpec.vue.d.ts +3 -1
- package/dist/types/src/components/Feature/OASpecContent.vue.d.ts +2 -2
- package/dist/types/src/components/Path/OAPaths.vue.d.ts +2 -2
- package/dist/types/src/components/Path/OAPathsGroup.vue.d.ts +2 -2
- package/dist/types/src/components/Path/OAPathsGroups.vue.d.ts +2 -2
- package/dist/types/src/components/Response/OAResponse.vue.d.ts +13 -3
- package/dist/types/src/components/Response/OAResponses.vue.d.ts +13 -3
- package/dist/types/src/composables/useTheme.d.ts +2 -1
- package/dist/types/src/types.d.ts +11 -0
- package/dist/typescript-Ai8puZIn.cjs +1 -0
- package/dist/{typescript-ED10Lubp.js → typescript-Chl77Ui1.js} +1 -1
- package/dist/{typst-Bx5HBJWo.js → typst-BgQE6TAB.js} +29 -29
- package/dist/{typst-D7Y713mB.cjs → typst-C6fVPKNq.cjs} +1 -1
- package/dist/{useOpenapi-BEqmTxjl.cjs → useOpenapi-D3rJQzeG.cjs} +27 -27
- package/dist/{useOpenapi-DbIj-ke3.js → useOpenapi-DVLwqpMR.js} +1317 -1309
- package/dist/vitepress-openapi.client.cjs.js +5 -5
- package/dist/vitepress-openapi.client.es.js +2367 -2349
- package/dist/vitepress-openapi.node.cjs.js +1 -1
- package/dist/vitepress-openapi.node.es.js +1 -1
- package/dist/{vue-kHo8rCXT.cjs → vue-CaajMfVy.cjs} +1 -1
- package/dist/{vue-Cjtnfpir.js → vue-J95qJkfJ.js} +6 -6
- package/dist/{vue-html-BzsnfhsM.js → vue-html-BjrCwjva.js} +1 -1
- package/dist/{vue-html-_YQvkRyf.cjs → vue-html-CtmhMKZ8.cjs} +1 -1
- package/dist/{vue-vine-COYWN94q.js → vue-vine-C4hFAX9j.js} +3 -3
- package/dist/{vue-vine-DTEBBIT8.cjs → vue-vine-DHwm8nhC.cjs} +1 -1
- package/dist/{xml-B8H1TJZQ.js → xml-4tT4oeZd.js} +2 -2
- package/dist/xml-C1x13bX0.cjs +1 -0
- package/dist/{xsl-cP3lHVuQ.js → xsl-ZTs2D31w.js} +1 -1
- package/dist/{xsl-C_9xxcnq.cjs → xsl-gK25ns76.cjs} +1 -1
- package/dist/yaml-BUexFoMb.cjs +1 -0
- package/dist/{yaml-DEgccW2V.js → yaml-Cr99duBz.js} +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -1
- package/src/components/Common/OAJSONEditorAsync.ts +1 -1
- package/src/components/Feature/OAOperation.vue +4 -2
- package/src/components/Feature/OAOperationContent.vue +13 -3
- package/src/components/Feature/OASpec.vue +4 -2
- package/src/components/Feature/OASpecContent.vue +2 -2
- package/src/components/Path/OAPaths.vue +2 -2
- package/src/components/Path/OAPathsGroup.vue +2 -2
- package/src/components/Path/OAPathsGroups.vue +2 -2
- package/src/components/Response/OAResponse.vue +21 -7
- package/src/components/Response/OAResponses.vue +20 -5
- package/src/composables/useTheme.ts +17 -4
- package/src/types.ts +13 -0
- package/dist/c-CZCz03tk.cjs +0 -1
- package/dist/css-oMq01QVM.cjs +0 -1
- package/dist/glsl-CjCNYdIn.cjs +0 -1
- package/dist/graphql-DAvjEaGE.cjs +0 -1
- package/dist/haml-BRTyh0NA.cjs +0 -1
- package/dist/html-CXX4v0hN.cjs +0 -1
- package/dist/java-DopTp571.cjs +0 -1
- package/dist/javascript-BoVqPY81.cjs +0 -1
- package/dist/json-eIjfv80J.cjs +0 -1
- package/dist/jsx-rnl1r2fp.cjs +0 -1
- package/dist/lib-jITBAUlk.cjs +0 -1
- package/dist/lua-CMQuF1NW.cjs +0 -1
- package/dist/r-kc1tv3cq.cjs +0 -1
- package/dist/regexp-btboojP2.cjs +0 -1
- package/dist/scss-BtbTbZQd.cjs +0 -1
- package/dist/shellscript-DPLlmD_A.cjs +0 -1
- package/dist/sql-HyLtRgmm.cjs +0 -1
- package/dist/tex-CZcUsj1k.cjs +0 -1
- package/dist/tsx-CrwGvZn1.cjs +0 -1
- package/dist/typescript-DdVmgSX4.cjs +0 -1
- package/dist/xml-CTTlGNVY.cjs +0 -1
- package/dist/yaml-2duz-WDn.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as e, et as t } from "./useOpenapi-DVLwqpMR.js";
|
|
2
2
|
//#region node_modules/.pnpm/@shikijs+types@4.4.3/node_modules/@shikijs/types/dist/index.mjs
|
|
3
3
|
var n = class extends Error {
|
|
4
4
|
constructor(e) {
|
|
@@ -73,8 +73,8 @@ function g(e) {
|
|
|
73
73
|
return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
|
|
74
74
|
}
|
|
75
75
|
var _ = class {
|
|
76
|
-
constructor(
|
|
77
|
-
|
|
76
|
+
constructor(t) {
|
|
77
|
+
e(this, "cache", /* @__PURE__ */ new Map()), this.fn = t;
|
|
78
78
|
}
|
|
79
79
|
get(e) {
|
|
80
80
|
if (this.cache.has(e)) return this.cache.get(e);
|
|
@@ -82,8 +82,8 @@ var _ = class {
|
|
|
82
82
|
return this.cache.set(e, t), t;
|
|
83
83
|
}
|
|
84
84
|
}, v = class {
|
|
85
|
-
constructor(
|
|
86
|
-
|
|
85
|
+
constructor(t, n, r) {
|
|
86
|
+
e(this, "_cachedMatchRoot", new _((e) => this._root.match(e))), this._colorMap = t, this._defaults = n, this._root = r;
|
|
87
87
|
}
|
|
88
88
|
static createFromRawTheme(e, t) {
|
|
89
89
|
return this.createFromParsedTheme(ie(e), t);
|
|
@@ -222,10 +222,10 @@ function oe(e, t) {
|
|
|
222
222
|
return new v(a, o, s);
|
|
223
223
|
}
|
|
224
224
|
var se = class {
|
|
225
|
-
constructor(
|
|
226
|
-
if (
|
|
225
|
+
constructor(t) {
|
|
226
|
+
if (e(this, "_isFrozen", void 0), e(this, "_lastColorId", void 0), e(this, "_id2color", void 0), e(this, "_color2id", void 0), this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(t)) {
|
|
227
227
|
this._isFrozen = !0;
|
|
228
|
-
for (let
|
|
228
|
+
for (let e = 0, n = t.length; e < n; e++) this._color2id[t[e]] = e, this._id2color[e] = t[e];
|
|
229
229
|
} else this._isFrozen = !1;
|
|
230
230
|
}
|
|
231
231
|
getId(e) {
|
|
@@ -239,12 +239,12 @@ var se = class {
|
|
|
239
239
|
getColorMap() {
|
|
240
240
|
return this._id2color.slice(0);
|
|
241
241
|
}
|
|
242
|
-
}, ce = Object.freeze([]), le = class
|
|
243
|
-
constructor(
|
|
244
|
-
|
|
242
|
+
}, ce = Object.freeze([]), le = class t {
|
|
243
|
+
constructor(t, n, r, i, a) {
|
|
244
|
+
e(this, "scopeDepth", void 0), e(this, "parentScopes", void 0), e(this, "fontStyle", void 0), e(this, "foreground", void 0), e(this, "background", void 0), this.scopeDepth = t, this.parentScopes = n || ce, this.fontStyle = r, this.foreground = i, this.background = a;
|
|
245
245
|
}
|
|
246
246
|
clone() {
|
|
247
|
-
return new
|
|
247
|
+
return new t(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
248
248
|
}
|
|
249
249
|
static cloneArr(e) {
|
|
250
250
|
let t = [];
|
|
@@ -254,9 +254,9 @@ var se = class {
|
|
|
254
254
|
acceptOverwrite(e, t, n, r) {
|
|
255
255
|
this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, t !== -1 && (this.fontStyle = t), n !== 0 && (this.foreground = n), r !== 0 && (this.background = r);
|
|
256
256
|
}
|
|
257
|
-
}, ue = class
|
|
258
|
-
constructor(
|
|
259
|
-
|
|
257
|
+
}, ue = class t {
|
|
258
|
+
constructor(t, n = [], r = {}) {
|
|
259
|
+
e(this, "_rulesWithParentScopes", void 0), this._mainRule = t, this._children = r, this._rulesWithParentScopes = n;
|
|
260
260
|
}
|
|
261
261
|
static _cmpBySpecificity(e, t) {
|
|
262
262
|
if (e.scopeDepth !== t.scopeDepth) return t.scopeDepth - e.scopeDepth;
|
|
@@ -268,23 +268,23 @@ var se = class {
|
|
|
268
268
|
}
|
|
269
269
|
return t.parentScopes.length - e.parentScopes.length;
|
|
270
270
|
}
|
|
271
|
-
match(
|
|
272
|
-
if (
|
|
273
|
-
let
|
|
274
|
-
if (
|
|
271
|
+
match(e) {
|
|
272
|
+
if (e !== "") {
|
|
273
|
+
let t = e.indexOf("."), n, r;
|
|
274
|
+
if (t === -1 ? (n = e, r = "") : (n = e.substring(0, t), r = e.substring(t + 1)), this._children.hasOwnProperty(n)) return this._children[n].match(r);
|
|
275
275
|
}
|
|
276
276
|
let n = this._rulesWithParentScopes.concat(this._mainRule);
|
|
277
|
-
return n.sort(
|
|
277
|
+
return n.sort(t._cmpBySpecificity), n;
|
|
278
278
|
}
|
|
279
|
-
insert(
|
|
279
|
+
insert(e, n, r, i, a, o) {
|
|
280
280
|
if (n === "") {
|
|
281
|
-
this._doInsertHere(
|
|
281
|
+
this._doInsertHere(e, r, i, a, o);
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
let s = n.indexOf("."), c, l;
|
|
285
285
|
s === -1 ? (c = n, l = "") : (c = n.substring(0, s), l = n.substring(s + 1));
|
|
286
286
|
let u;
|
|
287
|
-
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new
|
|
287
|
+
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new t(this._mainRule.clone(), le.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(e + 1, l, r, i, a, o);
|
|
288
288
|
}
|
|
289
289
|
_doInsertHere(e, t, n, r, i) {
|
|
290
290
|
if (t === null) {
|
|
@@ -433,7 +433,7 @@ var x = class {
|
|
|
433
433
|
}
|
|
434
434
|
}, ve = class {
|
|
435
435
|
constructor() {
|
|
436
|
-
|
|
436
|
+
e(this, "_references", []), e(this, "_seenReferenceKeys", /* @__PURE__ */ new Set()), e(this, "visitedRule", /* @__PURE__ */ new Set());
|
|
437
437
|
}
|
|
438
438
|
get references() {
|
|
439
439
|
return this._references;
|
|
@@ -443,8 +443,8 @@ var x = class {
|
|
|
443
443
|
this._seenReferenceKeys.has(t) || (this._seenReferenceKeys.add(t), this._references.push(e));
|
|
444
444
|
}
|
|
445
445
|
}, ye = class {
|
|
446
|
-
constructor(
|
|
447
|
-
|
|
446
|
+
constructor(t, n) {
|
|
447
|
+
e(this, "seenFullScopeRequests", /* @__PURE__ */ new Set()), e(this, "seenPartialScopeRequests", /* @__PURE__ */ new Set()), e(this, "Q", void 0), this.repo = t, this.initialScopeName = n, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new x(this.initialScopeName)];
|
|
448
448
|
}
|
|
449
449
|
processQueue() {
|
|
450
450
|
let e = this.Q;
|
|
@@ -537,23 +537,23 @@ function Ce(e, t, n) {
|
|
|
537
537
|
}
|
|
538
538
|
var we = class {
|
|
539
539
|
constructor() {
|
|
540
|
-
|
|
540
|
+
e(this, "kind", 0);
|
|
541
541
|
}
|
|
542
542
|
}, Te = class {
|
|
543
543
|
constructor() {
|
|
544
|
-
|
|
544
|
+
e(this, "kind", 1);
|
|
545
545
|
}
|
|
546
546
|
}, Ee = class {
|
|
547
|
-
constructor(
|
|
548
|
-
|
|
547
|
+
constructor(t) {
|
|
548
|
+
e(this, "kind", 2), this.ruleName = t;
|
|
549
549
|
}
|
|
550
550
|
}, De = class {
|
|
551
|
-
constructor(
|
|
552
|
-
|
|
551
|
+
constructor(t) {
|
|
552
|
+
e(this, "kind", 3), this.scopeName = t;
|
|
553
553
|
}
|
|
554
554
|
}, Oe = class {
|
|
555
|
-
constructor(
|
|
556
|
-
|
|
555
|
+
constructor(t, n) {
|
|
556
|
+
e(this, "kind", 4), this.scopeName = t, this.ruleName = n;
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
function ke(e) {
|
|
@@ -570,8 +570,8 @@ function Fe(e) {
|
|
|
570
570
|
return e;
|
|
571
571
|
}
|
|
572
572
|
var S = class {
|
|
573
|
-
constructor(
|
|
574
|
-
|
|
573
|
+
constructor(t, n, r, i) {
|
|
574
|
+
e(this, "$location", void 0), e(this, "id", void 0), e(this, "_nameIsCapturing", void 0), e(this, "_name", void 0), e(this, "_contentNameIsCapturing", void 0), e(this, "_contentName", void 0), this.$location = t, this.id = n, this._name = r || null, this._nameIsCapturing = f.hasCaptures(this._name), this._contentName = i || null, this._contentNameIsCapturing = f.hasCaptures(this._contentName);
|
|
575
575
|
}
|
|
576
576
|
get debugName() {
|
|
577
577
|
let e = this.$location ? `${u(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
@@ -584,8 +584,8 @@ var S = class {
|
|
|
584
584
|
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : f.replaceCaptures(this._contentName, e, t);
|
|
585
585
|
}
|
|
586
586
|
}, Ie = class extends S {
|
|
587
|
-
constructor(
|
|
588
|
-
super(
|
|
587
|
+
constructor(t, n, r, i, a) {
|
|
588
|
+
super(t, n, r, i), e(this, "retokenizeCapturedWithRuleId", void 0), this.retokenizeCapturedWithRuleId = a;
|
|
589
589
|
}
|
|
590
590
|
dispose() {}
|
|
591
591
|
collectPatterns(e, t) {
|
|
@@ -598,8 +598,8 @@ var S = class {
|
|
|
598
598
|
throw Error("Not supported!");
|
|
599
599
|
}
|
|
600
600
|
}, Le = class extends S {
|
|
601
|
-
constructor(
|
|
602
|
-
super(
|
|
601
|
+
constructor(t, n, r, i, a) {
|
|
602
|
+
super(t, n, r, null), e(this, "_match", void 0), e(this, "captures", void 0), e(this, "_cachedCompiledPatterns", void 0), this._match = new C(i, this.id), this.captures = a, this._cachedCompiledPatterns = null;
|
|
603
603
|
}
|
|
604
604
|
dispose() {
|
|
605
605
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -620,8 +620,8 @@ var S = class {
|
|
|
620
620
|
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new w(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
621
621
|
}
|
|
622
622
|
}, Re = class extends S {
|
|
623
|
-
constructor(
|
|
624
|
-
super(
|
|
623
|
+
constructor(t, n, r, i, a) {
|
|
624
|
+
super(t, n, r, i), e(this, "hasMissingPatterns", void 0), e(this, "patterns", void 0), e(this, "_cachedCompiledPatterns", void 0), this.patterns = a.patterns, this.hasMissingPatterns = a.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
625
625
|
}
|
|
626
626
|
dispose() {
|
|
627
627
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -639,8 +639,8 @@ var S = class {
|
|
|
639
639
|
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new w(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
640
640
|
}
|
|
641
641
|
}, ze = class extends S {
|
|
642
|
-
constructor(
|
|
643
|
-
super(
|
|
642
|
+
constructor(t, n, r, i, a, o, s, c, l, u) {
|
|
643
|
+
super(t, n, r, i), e(this, "_begin", void 0), e(this, "beginCaptures", void 0), e(this, "_end", void 0), e(this, "endHasBackReferences", void 0), e(this, "endCaptures", void 0), e(this, "applyEndPatternLast", void 0), e(this, "hasMissingPatterns", void 0), e(this, "patterns", void 0), e(this, "_cachedCompiledPatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this._end = new C(s || "", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = c, this.applyEndPatternLast = l || !1, this.patterns = u.patterns, this.hasMissingPatterns = u.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
644
644
|
}
|
|
645
645
|
dispose() {
|
|
646
646
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -672,8 +672,8 @@ var S = class {
|
|
|
672
672
|
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, t) : this._cachedCompiledPatterns.setSource(0, t)), this._cachedCompiledPatterns;
|
|
673
673
|
}
|
|
674
674
|
}, Be = class extends S {
|
|
675
|
-
constructor(
|
|
676
|
-
super(
|
|
675
|
+
constructor(t, n, r, i, a, o, s, c, l) {
|
|
676
|
+
super(t, n, r, i), e(this, "_begin", void 0), e(this, "beginCaptures", void 0), e(this, "whileCaptures", void 0), e(this, "_while", void 0), e(this, "whileHasBackReferences", void 0), e(this, "hasMissingPatterns", void 0), e(this, "patterns", void 0), e(this, "_cachedCompiledPatterns", void 0), e(this, "_cachedCompiledWhilePatterns", void 0), this._begin = new C(a, this.id), this.beginCaptures = o, this.whileCaptures = c, this._while = new C(s, Ne), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
|
|
677
677
|
}
|
|
678
678
|
dispose() {
|
|
679
679
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null), this._cachedCompiledWhilePatterns && (this._cachedCompiledWhilePatterns.dispose(), this._cachedCompiledWhilePatterns = null);
|
|
@@ -782,20 +782,20 @@ var S = class {
|
|
|
782
782
|
hasMissingPatterns: (t ? t.length : 0) !== i.length
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
}, C = class
|
|
786
|
-
constructor(
|
|
787
|
-
if (
|
|
788
|
-
let
|
|
789
|
-
for (let a = 0; a <
|
|
790
|
-
let
|
|
791
|
-
|
|
785
|
+
}, C = class t {
|
|
786
|
+
constructor(t, n) {
|
|
787
|
+
if (e(this, "source", void 0), e(this, "ruleId", void 0), e(this, "hasAnchor", void 0), e(this, "hasBackReferences", void 0), e(this, "_anchorCache", void 0), t && typeof t == "string") {
|
|
788
|
+
let e = t.length, n = 0, r = [], i = !1;
|
|
789
|
+
for (let a = 0; a < e; a++) if (t.charAt(a) === "\\" && a + 1 < e) {
|
|
790
|
+
let e = t.charAt(a + 1);
|
|
791
|
+
e === "z" ? (r.push(t.substring(n, a)), r.push("$(?!\\n)(?<!\\n)"), n = a + 2) : (e === "A" || e === "G") && (i = !0), a++;
|
|
792
792
|
}
|
|
793
|
-
this.hasAnchor = i, n === 0 ? this.source =
|
|
794
|
-
} else this.hasAnchor = !1, this.source =
|
|
793
|
+
this.hasAnchor = i, n === 0 ? this.source = t : (r.push(t.substring(n, e)), this.source = r.join(""));
|
|
794
|
+
} else this.hasAnchor = !1, this.source = t;
|
|
795
795
|
this._anchorCache = this.hasAnchor ? this._buildAnchorCache() : null, this.ruleId = n, this.hasBackReferences = typeof this.source == "string" && Ae.test(this.source);
|
|
796
796
|
}
|
|
797
797
|
clone() {
|
|
798
|
-
return new
|
|
798
|
+
return new t(this.source, this.ruleId);
|
|
799
799
|
}
|
|
800
800
|
setSource(e) {
|
|
801
801
|
this.source !== e && (this.source = e, this.hasAnchor && (this._anchorCache = this._buildAnchorCache()));
|
|
@@ -821,7 +821,7 @@ var S = class {
|
|
|
821
821
|
}
|
|
822
822
|
}, w = class {
|
|
823
823
|
constructor() {
|
|
824
|
-
|
|
824
|
+
e(this, "_items", void 0), e(this, "_hasAnchors", void 0), e(this, "_cached", void 0), e(this, "_anchorCache", void 0), this._items = [], this._hasAnchors = !1, this._cached = null, this._anchorCache = {
|
|
825
825
|
A0_G0: null,
|
|
826
826
|
A0_G1: null,
|
|
827
827
|
A1_G0: null,
|
|
@@ -860,8 +860,8 @@ var S = class {
|
|
|
860
860
|
return new He(e, this._items.map((e) => e.resolveAnchors(t, n)), this._items.map((e) => e.ruleId));
|
|
861
861
|
}
|
|
862
862
|
}, He = class {
|
|
863
|
-
constructor(
|
|
864
|
-
|
|
863
|
+
constructor(t, n, r) {
|
|
864
|
+
e(this, "scanner", void 0), this.regExps = n, this.rules = r, this.scanner = t.createOnigScanner(n);
|
|
865
865
|
}
|
|
866
866
|
dispose() {
|
|
867
867
|
typeof this.scanner.dispose == "function" && this.scanner.dispose();
|
|
@@ -882,21 +882,21 @@ var S = class {
|
|
|
882
882
|
constructor(e, t) {
|
|
883
883
|
this.languageId = e, this.tokenType = t;
|
|
884
884
|
}
|
|
885
|
-
}, We = (r = class
|
|
886
|
-
constructor(
|
|
887
|
-
|
|
885
|
+
}, We = (r = class t {
|
|
886
|
+
constructor(t, n) {
|
|
887
|
+
e(this, "_defaultAttributes", void 0), e(this, "_embeddedLanguagesMatcher", void 0), e(this, "_getBasicScopeAttributes", new _((e) => new Ue(this._scopeToLanguage(e), this._toStandardTokenType(e)))), this._defaultAttributes = new Ue(t, 8), this._embeddedLanguagesMatcher = new Ge(Object.entries(n || {}));
|
|
888
888
|
}
|
|
889
889
|
getDefaultAttributes() {
|
|
890
890
|
return this._defaultAttributes;
|
|
891
891
|
}
|
|
892
|
-
getBasicScopeAttributes(
|
|
893
|
-
return
|
|
892
|
+
getBasicScopeAttributes(e) {
|
|
893
|
+
return e === null ? t._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(e);
|
|
894
894
|
}
|
|
895
895
|
_scopeToLanguage(e) {
|
|
896
896
|
return this._embeddedLanguagesMatcher.match(e) || 0;
|
|
897
897
|
}
|
|
898
|
-
_toStandardTokenType(
|
|
899
|
-
let n =
|
|
898
|
+
_toStandardTokenType(e) {
|
|
899
|
+
let n = e.match(t.STANDARD_TOKEN_TYPE_REGEXP);
|
|
900
900
|
if (!n) return 8;
|
|
901
901
|
switch (n[1]) {
|
|
902
902
|
case "comment": return 1;
|
|
@@ -906,13 +906,13 @@ var S = class {
|
|
|
906
906
|
}
|
|
907
907
|
throw Error("Unexpected match for standard token type!");
|
|
908
908
|
}
|
|
909
|
-
},
|
|
910
|
-
constructor(
|
|
911
|
-
if (
|
|
909
|
+
}, e(r, "_NULL_SCOPE_METADATA", new Ue(0, 0)), e(r, "STANDARD_TOKEN_TYPE_REGEXP", /\b(comment|string|regex|meta\.embedded)\b/), r), Ge = class {
|
|
910
|
+
constructor(t) {
|
|
911
|
+
if (e(this, "values", void 0), e(this, "scopesRegExp", void 0), t.length === 0) this.values = null, this.scopesRegExp = null;
|
|
912
912
|
else {
|
|
913
|
-
this.values = new Map(
|
|
914
|
-
let
|
|
915
|
-
|
|
913
|
+
this.values = new Map(t);
|
|
914
|
+
let e = t.map(([e, t]) => g(e));
|
|
915
|
+
e.sort(), e.reverse(), this.scopesRegExp = RegExp(`^((${e.join(")|(")}))($|\\.)`, "");
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
match(e) {
|
|
@@ -1079,8 +1079,8 @@ function T(e, t, n, r, i, a, o) {
|
|
|
1079
1079
|
for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1080
1080
|
}
|
|
1081
1081
|
var et = class {
|
|
1082
|
-
constructor(
|
|
1083
|
-
|
|
1082
|
+
constructor(t, n) {
|
|
1083
|
+
e(this, "scopes", void 0), e(this, "endPos", void 0), this.scopes = t, this.endPos = n;
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
1086
|
function tt(e, t, n, r, i, a, o, s) {
|
|
@@ -1111,8 +1111,8 @@ function it(e, t) {
|
|
|
1111
1111
|
return e.length > n && e.substr(0, n) === t && e[n] === ".";
|
|
1112
1112
|
}
|
|
1113
1113
|
var at = class {
|
|
1114
|
-
constructor(
|
|
1115
|
-
if (
|
|
1114
|
+
constructor(t, n, r, i, a, o, s, c) {
|
|
1115
|
+
if (e(this, "_rootId", void 0), e(this, "_lastRuleId", void 0), e(this, "_ruleId2desc", void 0), e(this, "_includedGrammars", void 0), e(this, "_grammarRepository", void 0), e(this, "_grammar", void 0), e(this, "_injections", void 0), e(this, "_basicScopeAttributesProvider", void 0), e(this, "_tokenTypeMatchers", void 0), this._rootScopeName = t, this.balancedBracketSelectors = o, this._onigLib = c, this._basicScopeAttributesProvider = new We(r, i), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = s, this._grammar = ot(n, null), this._injections = null, this._tokenTypeMatchers = [], a) for (let e of Object.keys(a)) {
|
|
1116
1116
|
let t = pe(e, rt);
|
|
1117
1117
|
for (let n of t) this._tokenTypeMatchers.push({
|
|
1118
1118
|
matcher: n.matcher,
|
|
@@ -1274,12 +1274,12 @@ var E = class e {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
return n === e ? t.reverse() : void 0;
|
|
1276
1276
|
}
|
|
1277
|
-
}, st = (i = class
|
|
1278
|
-
constructor(
|
|
1279
|
-
|
|
1277
|
+
}, st = (i = class t {
|
|
1278
|
+
constructor(t, n, r, i, a, o, s, c) {
|
|
1279
|
+
e(this, "_stackElementBrand", void 0), e(this, "_enterPos", void 0), e(this, "_anchorPos", void 0), e(this, "depth", void 0), this.parent = t, this.ruleId = n, this.beginRuleCapturedEOL = a, this.endRule = o, this.nameScopesList = s, this.contentNameScopesList = c, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = r, this._anchorPos = i;
|
|
1280
1280
|
}
|
|
1281
|
-
equals(
|
|
1282
|
-
return
|
|
1281
|
+
equals(e) {
|
|
1282
|
+
return e !== null && t._equals(this, e);
|
|
1283
1283
|
}
|
|
1284
1284
|
static _equals(e, t) {
|
|
1285
1285
|
return e === t ? !0 : this._structuralEquals(e, t) ? E.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
|
|
@@ -1298,7 +1298,7 @@ var E = class e {
|
|
|
1298
1298
|
for (; e;) e._enterPos = -1, e._anchorPos = -1, e = e.parent;
|
|
1299
1299
|
}
|
|
1300
1300
|
reset() {
|
|
1301
|
-
|
|
1301
|
+
t._reset(this);
|
|
1302
1302
|
}
|
|
1303
1303
|
pop() {
|
|
1304
1304
|
return this.parent;
|
|
@@ -1306,8 +1306,8 @@ var E = class e {
|
|
|
1306
1306
|
safePop() {
|
|
1307
1307
|
return this.parent ? this.parent : this;
|
|
1308
1308
|
}
|
|
1309
|
-
push(
|
|
1310
|
-
return new
|
|
1309
|
+
push(e, n, r, i, a, o, s) {
|
|
1310
|
+
return new t(this, e, n, r, i, a, o, s);
|
|
1311
1311
|
}
|
|
1312
1312
|
getEnterPos() {
|
|
1313
1313
|
return this._enterPos;
|
|
@@ -1329,8 +1329,8 @@ var E = class e {
|
|
|
1329
1329
|
withContentNameScopesList(e) {
|
|
1330
1330
|
return this.contentNameScopesList === e ? this : this.parent.push(this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, this.endRule, this.nameScopesList, e);
|
|
1331
1331
|
}
|
|
1332
|
-
withEndRule(
|
|
1333
|
-
return this.endRule ===
|
|
1332
|
+
withEndRule(e) {
|
|
1333
|
+
return this.endRule === e ? this : new t(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, e, this.nameScopesList, this.contentNameScopesList);
|
|
1334
1334
|
}
|
|
1335
1335
|
hasSameRuleAs(e) {
|
|
1336
1336
|
let t = this;
|
|
@@ -1350,14 +1350,14 @@ var E = class e {
|
|
|
1350
1350
|
contentNameScopesList: (i = (a = this.contentNameScopesList) == null ? void 0 : a.getExtensionIfDefined(this.nameScopesList)) == null ? [] : i
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
static pushFrame(
|
|
1353
|
+
static pushFrame(e, n) {
|
|
1354
1354
|
var r, i, a;
|
|
1355
|
-
let o = E.fromExtension((r =
|
|
1356
|
-
return new e
|
|
1355
|
+
let o = E.fromExtension((r = e == null ? void 0 : e.nameScopesList) == null ? null : r, n.nameScopesList);
|
|
1356
|
+
return new t(e, Pe(n.ruleId), (i = n.enterPos) == null ? -1 : i, (a = n.anchorPos) == null ? -1 : a, n.beginRuleCapturedEOL, n.endRule, o, E.fromExtension(o, n.contentNameScopesList));
|
|
1357
1357
|
}
|
|
1358
|
-
},
|
|
1359
|
-
constructor(
|
|
1360
|
-
|
|
1358
|
+
}, e(i, "NULL", new i(null, 0, 0, 0, !1, null, null, null)), i), ct = class {
|
|
1359
|
+
constructor(t, n) {
|
|
1360
|
+
e(this, "balancedBracketScopes", void 0), e(this, "unbalancedBracketScopes", void 0), e(this, "allowAny", !1), this.balancedBracketScopes = t.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : pe(e, rt).map((e) => e.matcher)), this.unbalancedBracketScopes = n.flatMap((e) => pe(e, rt).map((e) => e.matcher));
|
|
1361
1361
|
}
|
|
1362
1362
|
get matchesAlways() {
|
|
1363
1363
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -1371,8 +1371,8 @@ var E = class e {
|
|
|
1371
1371
|
return this.allowAny;
|
|
1372
1372
|
}
|
|
1373
1373
|
}, lt = class {
|
|
1374
|
-
constructor(
|
|
1375
|
-
|
|
1374
|
+
constructor(t, n, r, i) {
|
|
1375
|
+
e(this, "_emitBinaryTokens", void 0), e(this, "_lineText", void 0), e(this, "_tokens", void 0), e(this, "_binaryTokens", void 0), e(this, "_lastTokenEndIndex", void 0), e(this, "_tokenTypeOverrides", void 0), this.balancedBracketSelectors = i, this._emitBinaryTokens = t, this._tokenTypeOverrides = r, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
1376
1376
|
}
|
|
1377
1377
|
produce(e, t) {
|
|
1378
1378
|
this.produceFromScopes(e.contentNameScopesList, t);
|
|
@@ -1413,8 +1413,8 @@ var E = class e {
|
|
|
1413
1413
|
return n;
|
|
1414
1414
|
}
|
|
1415
1415
|
}, ut = class {
|
|
1416
|
-
constructor(
|
|
1417
|
-
|
|
1416
|
+
constructor(t, n) {
|
|
1417
|
+
e(this, "_grammars", /* @__PURE__ */ new Map()), e(this, "_rawGrammars", /* @__PURE__ */ new Map()), e(this, "_injectionGrammars", /* @__PURE__ */ new Map()), e(this, "_theme", void 0), this._onigLib = n, this._theme = t;
|
|
1418
1418
|
}
|
|
1419
1419
|
dispose() {
|
|
1420
1420
|
for (let e of this._grammars.values()) e.dispose();
|
|
@@ -1449,8 +1449,8 @@ var E = class e {
|
|
|
1449
1449
|
return this._grammars.get(e);
|
|
1450
1450
|
}
|
|
1451
1451
|
}, dt = class {
|
|
1452
|
-
constructor(
|
|
1453
|
-
|
|
1452
|
+
constructor(t) {
|
|
1453
|
+
e(this, "_options", void 0), e(this, "_syncRegistry", void 0), e(this, "_ensureGrammarCache", void 0), this._options = t, this._syncRegistry = new ut(v.createFromRawTheme(t.theme, t.colorMap), t.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
1454
1454
|
}
|
|
1455
1455
|
dispose() {
|
|
1456
1456
|
this._syncRegistry.dispose();
|
|
@@ -1614,8 +1614,8 @@ function Ct(e, t) {
|
|
|
1614
1614
|
return e;
|
|
1615
1615
|
}
|
|
1616
1616
|
var wt = class extends dt {
|
|
1617
|
-
constructor(
|
|
1618
|
-
super(
|
|
1617
|
+
constructor(t, n, r, i = {}) {
|
|
1618
|
+
super(t), e(this, "_resolver", void 0), e(this, "_themes", void 0), e(this, "_langs", void 0), e(this, "_alias", void 0), e(this, "_resolvedThemes", /* @__PURE__ */ new Map()), e(this, "_resolvedGrammars", /* @__PURE__ */ new Map()), e(this, "_langMap", /* @__PURE__ */ new Map()), e(this, "_langGraph", /* @__PURE__ */ new Map()), e(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap()), e(this, "_loadedThemesCache", null), e(this, "_loadedLanguagesCache", null), this._resolver = t, this._themes = n, this._langs = r, this._alias = i, this._themes.map((e) => this.loadTheme(e)), this.loadLanguages(this._langs);
|
|
1619
1619
|
}
|
|
1620
1620
|
getTheme(e) {
|
|
1621
1621
|
return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
|
|
@@ -1680,10 +1680,10 @@ var wt = class extends dt {
|
|
|
1680
1680
|
if (n) for (let e of n) this._langGraph.set(e, this._langMap.get(e));
|
|
1681
1681
|
}
|
|
1682
1682
|
}, Tt = class {
|
|
1683
|
-
constructor(
|
|
1684
|
-
|
|
1685
|
-
createOnigScanner: (
|
|
1686
|
-
createOnigString: (
|
|
1683
|
+
constructor(t, n) {
|
|
1684
|
+
e(this, "_langs", /* @__PURE__ */ new Map()), e(this, "_scopeToLang", /* @__PURE__ */ new Map()), e(this, "_injections", /* @__PURE__ */ new Map()), e(this, "_onigLib", void 0), this._onigLib = {
|
|
1685
|
+
createOnigScanner: (e) => t.createScanner(e),
|
|
1686
|
+
createOnigString: (e) => t.createString(e)
|
|
1687
1687
|
}, n.forEach((e) => this.addLanguage(e));
|
|
1688
1688
|
}
|
|
1689
1689
|
get onigLib() {
|
|
@@ -1808,7 +1808,7 @@ function F(e, t) {
|
|
|
1808
1808
|
function I(e) {
|
|
1809
1809
|
return kt.get(e);
|
|
1810
1810
|
}
|
|
1811
|
-
var At = class
|
|
1811
|
+
var At = class t {
|
|
1812
1812
|
get themes() {
|
|
1813
1813
|
return Object.keys(this._stacks);
|
|
1814
1814
|
}
|
|
@@ -1818,16 +1818,16 @@ var At = class e {
|
|
|
1818
1818
|
get _stack() {
|
|
1819
1819
|
return this._stacks[this.theme];
|
|
1820
1820
|
}
|
|
1821
|
-
static initial(
|
|
1822
|
-
return new
|
|
1821
|
+
static initial(e, n) {
|
|
1822
|
+
return new t(Object.fromEntries(pt(n).map((e) => [e, ft])), e);
|
|
1823
1823
|
}
|
|
1824
|
-
constructor(...
|
|
1825
|
-
if (
|
|
1826
|
-
let [
|
|
1827
|
-
this.lang = n, this._stacks =
|
|
1824
|
+
constructor(...t) {
|
|
1825
|
+
if (e(this, "_stacks", {}), e(this, "lang", void 0), t.length === 2) {
|
|
1826
|
+
let [e, n] = t;
|
|
1827
|
+
this.lang = n, this._stacks = e;
|
|
1828
1828
|
} else {
|
|
1829
|
-
let [
|
|
1830
|
-
this.lang = n, this._stacks = { [r]:
|
|
1829
|
+
let [e, n, r] = t;
|
|
1830
|
+
this.lang = n, this._stacks = { [r]: e };
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
getInternalStack(e = this.theme) {
|
|
@@ -2093,7 +2093,7 @@ var R = class {
|
|
|
2093
2093
|
R.prototype.attribute = "", R.prototype.booleanish = !1, R.prototype.boolean = !1, R.prototype.commaOrSpaceSeparated = !1, R.prototype.commaSeparated = !1, R.prototype.defined = !1, R.prototype.mustUseProperty = !1, R.prototype.number = !1, R.prototype.overloadedBoolean = !1, R.prototype.property = "", R.prototype.spaceSeparated = !1, R.prototype.space = void 0;
|
|
2094
2094
|
//#endregion
|
|
2095
2095
|
//#region node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js
|
|
2096
|
-
var Yt = /* @__PURE__ */
|
|
2096
|
+
var Yt = /* @__PURE__ */ t({
|
|
2097
2097
|
boolean: () => z,
|
|
2098
2098
|
booleanish: () => B,
|
|
2099
2099
|
commaOrSpaceSeparated: () => W,
|